Subversion Repositories SmartDukaan

Rev

Rev 4283 | Rev 4295 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
68 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
68 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.order;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
68 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class TransactionService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
68 ashish 26
 
3430 rajveer 27
    public long createTransaction(Transaction transaction) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 28
 
3430 rajveer 29
    public Transaction getTransaction(long id) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 30
 
3430 rajveer 31
    public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 32
 
3430 rajveer 33
    public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, org.apache.thrift.TException;
132 ashish 34
 
3430 rajveer 35
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 36
 
3430 rajveer 37
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 38
 
3430 rajveer 39
    public boolean enqueueTransactionInfoEmail(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
1382 varun.gupt 40
 
3430 rajveer 41
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 42
 
1133 chandransh 43
    /**
4133 chandransh 44
     * Returns at most 'limit' orders with the given statuses for the given warehouse starting from the given offset.
45
     * Pass the status as null and the limit as 0 to ignore them.
46
     * 
47
     * @param statuses
48
     * @param offset
49
     * @param limit
50
     * @param warehouse_id
51
     */
52
    public List<Order> getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;
53
 
54
    /**
55
     * Returns the count of orders with the given statuses assigned to the given warehouse.
56
     * 
57
     * @param statuses
58
     * @param warehouseId
59
     */
60
    public int getOrderCount(List<OrderStatus> statuses, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
61
 
62
    /**
1133 chandransh 63
     * Returns orders within a range of their billing dates
64
     * 
65
     * @param status
66
     * @param start_billing_date
67
     * @param end_billing_date
68
     * @param warehouse_id
69
     */
3430 rajveer 70
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;
1022 varun.gupt 71
 
1382 varun.gupt 72
    /**
3427 chandransh 73
     * Returns orders for a particular provider and warehouse which were shipped between the given dates.
3451 chandransh 74
     * Returned orders comprise of COD orders if cod parameter is true. It comprises of prepaid orders otherwise.
75
     * Pass providerId and warehouseId as -1 to ignore both these parameters.
3427 chandransh 76
     * 
77
     * @param fromShippingDate
78
     * @param toShippingDate
79
     * @param providerId
80
     * @param warehouseId
3451 chandransh 81
     * @param cod
3427 chandransh 82
     */
3451 chandransh 83
    public List<Order> getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException;
3427 chandransh 84
 
85
    /**
1382 varun.gupt 86
     * Returns order ids for orders which can be returned
87
     * 
88
     * @param customer_id
89
     * @param limit
90
     */
3430 rajveer 91
    public List<Long> getReturnableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException;
1382 varun.gupt 92
 
93
    /**
94
     * Returns order ids for orders which can be cancelled
95
     * 
96
     * @param customer_id
97
     * @param limit
98
     */
3430 rajveer 99
    public List<Long> getCancellableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException;
1382 varun.gupt 100
 
3430 rajveer 101
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 102
 
1148 chandransh 103
    /**
1529 ankur.sing 104
     * Returns list of orders for given transaction Id. Also filters based on customer Id so that
105
     * only user who owns the transaction can view its order details.
106
     * 
107
     * @param transactionId
108
     * @param customerId
109
     */
3430 rajveer 110
    public List<Order> getOrdersForTransaction(long transactionId, long customerId) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 111
 
3014 chandransh 112
    /**
113
     * Returns list of orders for the given customer created between the given dates and having the given statuses.
114
     * Pass and empty list to ignore filtering on statuses.
115
     * 
116
     * @param customerId
117
     * @param from_date
118
     * @param to_date
119
     * @param statuses
120
     */
3430 rajveer 121
    public List<Order> getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 122
 
3430 rajveer 123
    public long createOrder(Order order) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 124
 
3430 rajveer 125
    public Order getOrder(long id) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 126
 
3430 rajveer 127
    public List<LineItem> getLineItemsForOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 128
 
758 chandransh 129
    /**
1529 ankur.sing 130
     * Returns an order for the order Id. Also checks if the order belongs to the customer whose Id is passed.
131
     * Throws exception if either order Id is invalid or order does not below to the customer whose Id is passed.
132
     * 
133
     * @param orderId
134
     * @param customerId
135
     */
3430 rajveer 136
    public Order getOrderForCustomer(long orderId, long customerId) throws TransactionServiceException, org.apache.thrift.TException;
1529 ankur.sing 137
 
3430 rajveer 138
    public List<Alert> getAlerts(long orderId, boolean valid) throws org.apache.thrift.TException;
3061 chandransh 139
 
3430 rajveer 140
    public void setAlert(long orderId, boolean unset, long type, String comment) throws org.apache.thrift.TException;
3061 chandransh 141
 
1529 ankur.sing 142
    /**
3061 chandransh 143
     * Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
144
     */
3430 rajveer 145
    public long getValidOrderCount() throws org.apache.thrift.TException;
3061 chandransh 146
 
147
    /**
148
     * Returns the number of distinct customers who have done successful transactions
149
     */
3430 rajveer 150
    public long getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException;
3061 chandransh 151
 
152
    /**
153
     * Returns the minimum and maximum amounts of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
154
     * List contains two values, first minimum amount and second maximum amount.
155
     */
3430 rajveer 156
    public List<Double> getValidOrdersAmountRange() throws org.apache.thrift.TException;
3061 chandransh 157
 
158
    /**
159
     * Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
160
     * If limit is passed as 0, then all valid Orders are returned.
161
     * 
162
     * @param limit
163
     */
3430 rajveer 164
    public List<Order> getValidOrders(long limit) throws org.apache.thrift.TException;
3061 chandransh 165
 
166
    /**
1221 chandransh 167
     * Create a batch of all the pending orders for the given warehouse.
168
     * The returned list is orderd by created_timestamp.
169
     * If there are no pending orders, an empty list is returned.
170
     * 
171
     * @param warehouseId
172
     */
3430 rajveer 173
    public List<Order> batchOrders(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
1221 chandransh 174
 
175
    /**
1209 chandransh 176
     * Mark the given order as out of stock. Throws an exception if the order with the given Id couldn't be found.
177
     * 
178
     * @param orderId
179
     */
3430 rajveer 180
    public boolean markOrderAsOutOfStock(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
1209 chandransh 181
 
182
    /**
3061 chandransh 183
     * Marks the given order as SUBMITTED_FOR_PROCESSING and updates the verified
184
     * timestamp. It is intended to be used for COD orders but can be harmlessly
185
     * used for all other orders as well.
186
     * Throws an exception if no such order exists.
758 chandransh 187
     * 
3061 chandransh 188
     * @param orderId
189
     */
3430 rajveer 190
    public boolean verifyOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
3061 chandransh 191
 
192
    /**
193
     * Marks the given order as ACCEPTED and updates the accepted timestamp. If the
194
     * given order is not a COD order, it also captures the payment if the same has
195
     * not been captured.
196
     * Throws an exception if no such order exists.
197
     * 
198
     * @param orderId
199
     */
3430 rajveer 200
    public boolean acceptOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
3061 chandransh 201
 
202
    /**
203
     * Add billing details such as the bill number and the biller to the Order.
204
     * Adds jacket number, item number and IMEI no. to the order. Doesn't update
205
     * the IMEI no. if a -1 is supplied.
206
     * Also, it generates an invoice number for the order, marks the order as
207
     * BILLED and sets the billing timestamp.
208
     * Returns false if it doesn't find the order with the given ID.
209
     * 
210
     * @param orderId
4283 anupam.sin 211
     * @param invoice_number
3061 chandransh 212
     * @param imeiNumber
213
     * @param itemNumber
4283 anupam.sin 214
     * @param billed_by
215
     * @param jacketNumber
3061 chandransh 216
     * @param billingType
4283 anupam.sin 217
     * @param vendorId
3061 chandransh 218
     */
4283 anupam.sin 219
    public boolean addBillingDetails(long orderId, String invoice_number, long imeiNumber, String itemNumber, String billed_by, long jacketNumber, long billingType, long vendorId) throws TransactionServiceException, org.apache.thrift.TException;
3061 chandransh 220
 
221
    /**
222
     * Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
223
     * given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
224
     * 
758 chandransh 225
     * @param warehouseId
226
     * @param providerId
3061 chandransh 227
     * @param cod
758 chandransh 228
     */
3430 rajveer 229
    public boolean markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException;
758 chandransh 230
 
1114 chandransh 231
    /**
232
     * Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
233
     * Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
234
     * Raises an exception if we encounter report for an AWB number that we did not ship.
235
     * 
236
     * @param providerId
237
     * @param pickupDetails
238
     */
3430 rajveer 239
    public List<Order> markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws TransactionServiceException, org.apache.thrift.TException;
1114 chandransh 240
 
1133 chandransh 241
    /**
242
     * Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
243
     * the name of the receiver.
244
     * Raises an exception if we encounter report for an AWB number that we did not ship.
245
     * 
246
     * @param providerId
247
     * @param deliveredOrders
248
     */
3430 rajveer 249
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TransactionServiceException, org.apache.thrift.TException;
1133 chandransh 250
 
251
    /**
252
     * Mark all orders with AWBs in the given map as failed. Also sets the delivery timestamp.
253
     * Raises an exception if we encounter report for an AWB number that we did not ship.
254
     * 
255
     * @param providerId
256
     * @param returnedOrders
257
     */
3430 rajveer 258
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, org.apache.thrift.TException;
1133 chandransh 259
 
1245 chandransh 260
    /**
261
     * Update the status description of orders whose AWB numbers are keys of the Map.
262
     * 
263
     * @param providerId
264
     * @param undeliveredOrders
265
     */
3430 rajveer 266
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, org.apache.thrift.TException;
1245 chandransh 267
 
1406 ankur.sing 268
    /**
269
     * Returns the list of orders whose delivery time has passed but have not been
270
     * delivered yet for the given provider and warehouse. To get a complete list of
271
     * undelivered orders, pass them as -1.
272
     * Returns an empty list if no such orders exist.
273
     * 
274
     * @param providerId
275
     * @param warehouseId
276
     */
3430 rajveer 277
    public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException;
1406 ankur.sing 278
 
1598 ankur.sing 279
    /**
2538 chandransh 280
     * 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.
281
     * Returns the final flag status.
282
     * Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
283
     * 
284
     * @param orderId
285
     */
3430 rajveer 286
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
2538 chandransh 287
 
288
    /**
289
     * Sends out an email to the account manager of the original courier provider used to ship the order.
290
     * If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUESTED.
291
     * If the order status was DOA_PICKUP_REQUESTED, it is left unchanged.
292
     * For any other status, it returns false.
293
     * Throws an exception if the order with the given id couldn't be found.
294
     * 
295
     * @param orderId
296
     */
3430 rajveer 297
    public boolean requestPickupNumber(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
2538 chandransh 298
 
299
    /**
300
     * If the order status is DOA_PICKUP_REQUESTED, it does the following
301
     * 	1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
302
     * 	2. Changes order status to be DOA_PICKUP_AUTHORIZED.
303
     * 	3. Returns true
2590 chandransh 304
     * If the order is in any other status, it returns false.
2538 chandransh 305
     * Throws an exception if the order with the given id couldn't be found.
306
     * 
307
     * @param orderId
308
     * @param pickupNumber
309
     */
3430 rajveer 310
    public boolean authorizePickup(long orderId, String pickupNumber) throws TransactionServiceException, org.apache.thrift.TException;
2538 chandransh 311
 
2590 chandransh 312
    /**
2765 chandransh 313
     * Marks all DOA_PICKUP_AUTHORIZED orders of the previous day for a provider as DOA_RETURN_IN_TRANSIT.
314
     * Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
315
     * 
316
     * @param providerId
317
     * @param pickupDetails
318
     */
3430 rajveer 319
    public List<Order> markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException;
2765 chandransh 320
 
321
    /**
2601 chandransh 322
     * If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED and returns true.
2615 chandransh 323
     * If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
2590 chandransh 324
     * If the order is in any other state, it returns false.
325
     * Throws an exception if the order with the given id couldn't be found.
326
     * 
327
     * @param orderId
328
     */
3430 rajveer 329
    public boolean receiveReturn(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
2590 chandransh 330
 
331
    /**
2601 chandransh 332
     * Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
2615 chandransh 333
     * the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
2590 chandransh 334
     * If the order is in any other state, it returns false.
335
     * Throws an exception if the order with the given id couldn't be found.
336
     * 
337
     * @param orderId
338
     * @param isValid
339
     */
3430 rajveer 340
    public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, org.apache.thrift.TException;
2590 chandransh 341
 
2615 chandransh 342
    /**
343
     * If the order is in SALES_RET_RECEIVED or DOA_CERT_INVALID state, it does the following:
344
     * 	1. Creates a new order for processing in the BILLED state. All billing information is saved.
345
     * 	2. Marks the current order as one of the final states SALES_RET_RESHIPPED and DOA_INVALID_RESHIPPED depending on what state the order started in.
346
     * 	
347
     * If the order is in DOA_CERT_VALID state, it does the following:
348
     * 	1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
349
     * 	2. Creates a return order for the warehouse executive to return the DOA material.
350
     * 	3. Marks the current order as the final DOA_RESHIPPED state.
351
     * 
352
     * Returns the id of the newly created order.
353
     * 
354
     * Throws an exception if the order with the given id couldn't be found.
355
     * 
356
     * @param orderId
357
     */
3430 rajveer 358
    public long reshipOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
2615 chandransh 359
 
360
    /**
361
     * If the order is in SALES_RET_RECEIVED, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
362
     * 	1. Creates a refund request for batch processing.
363
     * 	2. Creates a return order for the warehouse executive to return the shipped material.
364
     * 	3. Marks the current order as SALES_RET_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
365
     * 
366
     * If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
367
     * 	1. Creates a refund request for batch processing.
3226 chandransh 368
     * 	2. Cancels the reservation of the item in the warehouse.
369
     * 	3. Marks the current order as the REFUNDED final state.
2615 chandransh 370
     * 
3226 chandransh 371
     * For all COD orders, if the order is in INIT, SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
372
     * 	1. Cancels the reservation of the item in the warehouse.
373
     * 	2. Marks the current order as CANCELED.
374
     * 	
375
     * In all cases, it updates the reason for cancellation or refund and the person who performed the action.
376
     *  
2615 chandransh 377
     * Returns True if it is successful, False otherwise.
378
     * 
379
     * Throws an exception if the order with the given id couldn't be found.
380
     * 
381
     * @param orderId
3226 chandransh 382
     * @param refundedBy
383
     * @param reason
2615 chandransh 384
     */
3430 rajveer 385
    public boolean refundOrder(long orderId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException;
2615 chandransh 386
 
2690 chandransh 387
    /**
388
     * Get all return orders created between the from and to dates for the given warehouse.
389
     * Ignores the warehouse if it is passed as -1.
390
     * 
391
     * @param warehouseId
392
     * @param fromDate
393
     * @param toDate
394
     */
3430 rajveer 395
    public List<ReturnOrder> getReturnOrders(long warehouseId, long fromDate, long toDate) throws org.apache.thrift.TException;
2690 chandransh 396
 
397
    /**
2700 chandransh 398
     * Returns the ReturnOrder corresponding to the given id.
399
     * Throws an exception if the return order with the given id couldn't be found.
400
     * 
401
     * @param id
402
     */
3430 rajveer 403
    public ReturnOrder getReturnOrder(long id) throws TransactionServiceException, org.apache.thrift.TException;
2700 chandransh 404
 
405
    /**
2690 chandransh 406
     * Marks the return order with the given id as processed. Raises an exception if no such return order exists.
407
     * 
408
     * @param returnOrderId
409
     */
3430 rajveer 410
    public void processReturn(long returnOrderId) throws TransactionServiceException, org.apache.thrift.TException;
2690 chandransh 411
 
2819 chandransh 412
    /**
413
     * Creates a purchase order corresponding to all the pending orders of the given warehouse.
2842 chandransh 414
     * Returns the PO no. of the newly created purchase order. Returns -1 no new purchase order had to be created.
2819 chandransh 415
     * 
416
     * @param warehouseId
417
     */
3430 rajveer 418
    public long createPurchaseOrder(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
2819 chandransh 419
 
3451 chandransh 420
    /**
421
     * 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.
422
     * 
423
     * @param orderId
424
     * @param weight
425
     */
426
    public Order updateWeight(long orderId, double weight) throws TransactionServiceException, org.apache.thrift.TException;
427
 
3469 chandransh 428
    /**
429
     * Change the item to be shipped for this order. Also adjusts the reservation in the inventory accordingly.
430
     * Currently, it also ensures that only a different color of the given item is shipped.
431
     * 
432
     * @param orderId
433
     * @param itemId
434
     */
435
    public Order changeItem(long orderId, long itemId) throws TransactionServiceException, org.apache.thrift.TException;
436
 
437
    /**
438
     * Moves the given order to the given warehouse. Also adjusts the inventory reservations accordingly.
439
     * 
440
     * @param orderId
441
     * @param warehouseId
442
     */
443
    public Order shiftToWarehouse(long orderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
444
 
3553 chandransh 445
    /**
446
     * Adds the given delay reason to the given order.
3986 chandransh 447
     * Increases the expected delivery time of the given order by the given no. of days.
3553 chandransh 448
     * Raises an exception if no order with the given id can be found.
449
     * 
450
     * @param orderId
451
     * @param delayReason
3986 chandransh 452
     * @param furtherDelay
3553 chandransh 453
     */
3986 chandransh 454
    public boolean addDelayReason(long orderId, DelayReason delayReason, long furtherDelay) throws TransactionServiceException, org.apache.thrift.TException;
3553 chandransh 455
 
3956 chandransh 456
    /**
457
     * Marks the COD orders with given AWB nos. as having been processed.
458
     * Updates the captured amount for the corresponding payment.
459
     * 
460
     * Returns a map of AWBs which were not processed and the associated reason. An AWB is not processed if:
461
     * 1. There is no order corresponding to an AWB number.
462
     * 2. The captured amount for a payment exceeds the total payment.
463
     * 3. The order corresponding to an AWB no. is in a state prior to DELIVERY_SUCCESS.
464
     * 
465
     * @param collectedAmountMap
466
     * @param xferBy
467
     * @param xferTxnId
468
     * @param xferDate
469
     */
470
    public Map<String,String> reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate) throws TransactionServiceException, org.apache.thrift.TException;
471
 
4008 mandeep.dh 472
    /**
4065 mandeep.dh 473
     * Returns the list of transaction ids that require some extra processing and
4008 mandeep.dh 474
     * which belong to a particular category. This is currently used by CRM
4065 mandeep.dh 475
     * application. If no such transaction ids are present, it returns an empty list.
4008 mandeep.dh 476
     * 
477
     * @param category
478
     */
479
    public List<Long> getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category) throws org.apache.thrift.TException;
480
 
481
    /**
482
     * Marks a particular transaction as processed for a particular cateogory.
4065 mandeep.dh 483
     * It essentially deletes the transaction id record for a particular
484
     * processing type category (if present) from DB.
485
     * This is currently used by CRM application.
4008 mandeep.dh 486
     * 
487
     * @param transactionId
488
     * @param category
489
     */
490
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category) throws org.apache.thrift.TException;
491
 
4018 chandransh 492
    /**
493
     * Returns a map containing the number of risky orders keyed by item id. A risky order
494
     * is defined as one whose shipping date is about to expire.
495
     */
496
    public Map<Long,Long> getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException;
497
 
4246 rajveer 498
    /**
499
     * Mark order as cancellation request received. If customer sends request of cancellation of
500
     * a particular order, this method will be called. It will just change status of the order
501
     * depending on its current status. It also records the previous status, so that we can move
502
     * back to that status if cancellation request is denied.
503
     * 
504
     * @param orderId
505
     */
506
    public void markOrderCancellationRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
507
 
508
    /**
509
     * If we decide to to cancel order, CRM will call this method to move the status of order to
510
     * cancellation request confirmed. After this OM will be able to cancel the order.
511
     * 
512
     * @param orderId
513
     */
514
    public void markOrderCancellationRequestConfirmed(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
515
 
516
    /**
517
     * If we decide to not to cancel order, we will move the order ro previous status.
518
     * 
519
     * @param orderId
520
     */
521
    public void markOrderCancellationRequestDenied(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
522
 
523
    /**
4258 rajveer 524
     * If we and/or payment gateway has decided to accept the payment, this method needs to be called.
525
     * Changed transaction and all orders status to payment accepted.
4246 rajveer 526
     * 
4258 rajveer 527
     * @param transactionId
4246 rajveer 528
     */
4258 rajveer 529
    public void markTransactionAsPaymentFlagRemoved(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
4246 rajveer 530
 
4259 anupam.sin 531
    /**
532
     * This method is called when a flagged payment is deemed unserviceable and the corresponding orders
533
     * need to be cancelled
534
     * 
535
     * @param transactionId
536
     * @param refundedBy
537
     * @param reason
538
     */
539
    public void refundTransaction(long transactionId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException;
540
 
4285 rajveer 541
    /**
542
     * Marks the orders as ACCEPTED for the given itemId and inventory. It also updates the accepted timestamp. If the
543
     * given order is not a COD order, it also captures the payment if the same has not been captured.
544
     * 
545
     * @param itemId
546
     * @param inventory
547
     */
548
    public boolean acceptOrdersForItemId(long itemId, long inventory) throws TransactionServiceException, org.apache.thrift.TException;
549
 
68 ashish 550
  }
551
 
3430 rajveer 552
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
553
 
554
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
555
 
556
    public void getTransaction(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransaction_call> resultHandler) throws org.apache.thrift.TException;
557
 
558
    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;
559
 
560
    public void getTransactionsForShoppingCartId(long shoppingCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsForShoppingCartId_call> resultHandler) throws org.apache.thrift.TException;
561
 
562
    public void getTransactionStatus(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
563
 
564
    public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
565
 
566
    public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException;
567
 
568
    public void getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllOrders_call> resultHandler) throws org.apache.thrift.TException;
569
 
4133 chandransh 570
    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;
571
 
572
    public void getOrderCount(List<OrderStatus> statuses, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderCount_call> resultHandler) throws org.apache.thrift.TException;
573
 
3430 rajveer 574
    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;
575
 
3451 chandransh 576
    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;
3430 rajveer 577
 
578
    public void getReturnableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException;
579
 
580
    public void getCancellableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCancellableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException;
581
 
582
    public void changeOrderStatus(long orderId, OrderStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeOrderStatus_call> resultHandler) throws org.apache.thrift.TException;
583
 
584
    public void getOrdersForTransaction(long transactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersForTransaction_call> resultHandler) throws org.apache.thrift.TException;
585
 
586
    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;
587
 
588
    public void createOrder(Order order, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrder_call> resultHandler) throws org.apache.thrift.TException;
589
 
590
    public void getOrder(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrder_call> resultHandler) throws org.apache.thrift.TException;
591
 
592
    public void getLineItemsForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLineItemsForOrder_call> resultHandler) throws org.apache.thrift.TException;
593
 
594
    public void getOrderForCustomer(long orderId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForCustomer_call> resultHandler) throws org.apache.thrift.TException;
595
 
596
    public void getAlerts(long orderId, boolean valid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAlerts_call> resultHandler) throws org.apache.thrift.TException;
597
 
598
    public void setAlert(long orderId, boolean unset, long type, String comment, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setAlert_call> resultHandler) throws org.apache.thrift.TException;
599
 
600
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException;
601
 
602
    public void getNoOfCustomersWithSuccessfulTransaction(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNoOfCustomersWithSuccessfulTransaction_call> resultHandler) throws org.apache.thrift.TException;
603
 
604
    public void getValidOrdersAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrdersAmountRange_call> resultHandler) throws org.apache.thrift.TException;
605
 
606
    public void getValidOrders(long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrders_call> resultHandler) throws org.apache.thrift.TException;
607
 
608
    public void batchOrders(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.batchOrders_call> resultHandler) throws org.apache.thrift.TException;
609
 
610
    public void markOrderAsOutOfStock(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderAsOutOfStock_call> resultHandler) throws org.apache.thrift.TException;
611
 
612
    public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrder_call> resultHandler) throws org.apache.thrift.TException;
613
 
614
    public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrder_call> resultHandler) throws org.apache.thrift.TException;
615
 
4283 anupam.sin 616
    public void addBillingDetails(long orderId, String invoice_number, long imeiNumber, String itemNumber, String billed_by, long jacketNumber, long billingType, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBillingDetails_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 617
 
618
    public void markOrdersAsManifested(long warehouseId, long providerId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsManifested_call> resultHandler) throws org.apache.thrift.TException;
619
 
620
    public void markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
621
 
622
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsDelivered_call> resultHandler) throws org.apache.thrift.TException;
623
 
624
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsFailed_call> resultHandler) throws org.apache.thrift.TException;
625
 
626
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateNonDeliveryReason_call> resultHandler) throws org.apache.thrift.TException;
627
 
628
    public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException;
629
 
630
    public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException;
631
 
632
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException;
633
 
634
    public void authorizePickup(long orderId, String pickupNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authorizePickup_call> resultHandler) throws org.apache.thrift.TException;
635
 
636
    public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
637
 
638
    public void receiveReturn(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveReturn_call> resultHandler) throws org.apache.thrift.TException;
639
 
640
    public void validateDoa(long orderId, boolean isValid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateDoa_call> resultHandler) throws org.apache.thrift.TException;
641
 
642
    public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipOrder_call> resultHandler) throws org.apache.thrift.TException;
643
 
644
    public void refundOrder(long orderId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundOrder_call> resultHandler) throws org.apache.thrift.TException;
645
 
646
    public void getReturnOrders(long warehouseId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrders_call> resultHandler) throws org.apache.thrift.TException;
647
 
648
    public void getReturnOrder(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrder_call> resultHandler) throws org.apache.thrift.TException;
649
 
650
    public void processReturn(long returnOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processReturn_call> resultHandler) throws org.apache.thrift.TException;
651
 
652
    public void createPurchaseOrder(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
653
 
3451 chandransh 654
    public void updateWeight(long orderId, double weight, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateWeight_call> resultHandler) throws org.apache.thrift.TException;
655
 
3469 chandransh 656
    public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItem_call> resultHandler) throws org.apache.thrift.TException;
657
 
658
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException;
659
 
3986 chandransh 660
    public void addDelayReason(long orderId, DelayReason delayReason, long furtherDelay, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addDelayReason_call> resultHandler) throws org.apache.thrift.TException;
3553 chandransh 661
 
3956 chandransh 662
    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;
663
 
4008 mandeep.dh 664
    public void getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException;
665
 
666
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
667
 
4018 chandransh 668
    public void getItemWiseRiskyOrdersCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemWiseRiskyOrdersCount_call> resultHandler) throws org.apache.thrift.TException;
669
 
4246 rajveer 670
    public void markOrderCancellationRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
671
 
672
    public void markOrderCancellationRequestConfirmed(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestConfirmed_call> resultHandler) throws org.apache.thrift.TException;
673
 
674
    public void markOrderCancellationRequestDenied(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestDenied_call> resultHandler) throws org.apache.thrift.TException;
675
 
4258 rajveer 676
    public void markTransactionAsPaymentFlagRemoved(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsPaymentFlagRemoved_call> resultHandler) throws org.apache.thrift.TException;
4246 rajveer 677
 
4259 anupam.sin 678
    public void refundTransaction(long transactionId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundTransaction_call> resultHandler) throws org.apache.thrift.TException;
679
 
4285 rajveer 680
    public void acceptOrdersForItemId(long itemId, long inventory, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrdersForItemId_call> resultHandler) throws org.apache.thrift.TException;
681
 
3430 rajveer 682
  }
683
 
3374 rajveer 684
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 685
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
686
      public Factory() {}
687
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
688
        return new Client(prot);
689
      }
690
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
691
        return new Client(iprot, oprot);
692
      }
693
    }
694
 
695
    public Client(org.apache.thrift.protocol.TProtocol prot)
68 ashish 696
    {
3430 rajveer 697
      super(prot, prot);
68 ashish 698
    }
699
 
3430 rajveer 700
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 701
      super(iprot, oprot);
68 ashish 702
    }
703
 
3430 rajveer 704
    public long createTransaction(Transaction transaction) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 705
    {
706
      send_createTransaction(transaction);
132 ashish 707
      return recv_createTransaction();
68 ashish 708
    }
709
 
3430 rajveer 710
    public void send_createTransaction(Transaction transaction) throws org.apache.thrift.TException
68 ashish 711
    {
712
      createTransaction_args args = new createTransaction_args();
3430 rajveer 713
      args.setTransaction(transaction);
714
      sendBase("createTransaction", args);
68 ashish 715
    }
716
 
3430 rajveer 717
    public long recv_createTransaction() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 718
    {
719
      createTransaction_result result = new createTransaction_result();
3430 rajveer 720
      receiveBase(result, "createTransaction");
132 ashish 721
      if (result.isSetSuccess()) {
722
        return result.success;
723
      }
68 ashish 724
      if (result.ex != null) {
725
        throw result.ex;
726
      }
3430 rajveer 727
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createTransaction failed: unknown result");
68 ashish 728
    }
729
 
3430 rajveer 730
    public Transaction getTransaction(long id) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 731
    {
732
      send_getTransaction(id);
733
      return recv_getTransaction();
734
    }
735
 
3430 rajveer 736
    public void send_getTransaction(long id) throws org.apache.thrift.TException
68 ashish 737
    {
738
      getTransaction_args args = new getTransaction_args();
3430 rajveer 739
      args.setId(id);
740
      sendBase("getTransaction", args);
68 ashish 741
    }
742
 
3430 rajveer 743
    public Transaction recv_getTransaction() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 744
    {
745
      getTransaction_result result = new getTransaction_result();
3430 rajveer 746
      receiveBase(result, "getTransaction");
68 ashish 747
      if (result.isSetSuccess()) {
748
        return result.success;
749
      }
750
      if (result.ex != null) {
751
        throw result.ex;
752
      }
3430 rajveer 753
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");
68 ashish 754
    }
755
 
3430 rajveer 756
    public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 757
    {
132 ashish 758
      send_getTransactionsForCustomer(customerId, from_date, to_date, status);
68 ashish 759
      return recv_getTransactionsForCustomer();
760
    }
761
 
3430 rajveer 762
    public void send_getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws org.apache.thrift.TException
68 ashish 763
    {
764
      getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();
3430 rajveer 765
      args.setCustomerId(customerId);
766
      args.setFrom_date(from_date);
767
      args.setTo_date(to_date);
768
      args.setStatus(status);
769
      sendBase("getTransactionsForCustomer", args);
68 ashish 770
    }
771
 
3430 rajveer 772
    public List<Transaction> recv_getTransactionsForCustomer() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 773
    {
774
      getTransactionsForCustomer_result result = new getTransactionsForCustomer_result();
3430 rajveer 775
      receiveBase(result, "getTransactionsForCustomer");
68 ashish 776
      if (result.isSetSuccess()) {
777
        return result.success;
778
      }
779
      if (result.ex != null) {
780
        throw result.ex;
781
      }
3430 rajveer 782
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");
68 ashish 783
    }
784
 
3430 rajveer 785
    public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, org.apache.thrift.TException
132 ashish 786
    {
787
      send_getTransactionsForShoppingCartId(shoppingCartId);
788
      return recv_getTransactionsForShoppingCartId();
789
    }
790
 
3430 rajveer 791
    public void send_getTransactionsForShoppingCartId(long shoppingCartId) throws org.apache.thrift.TException
132 ashish 792
    {
793
      getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();
3430 rajveer 794
      args.setShoppingCartId(shoppingCartId);
795
      sendBase("getTransactionsForShoppingCartId", args);
132 ashish 796
    }
797
 
3430 rajveer 798
    public List<Transaction> recv_getTransactionsForShoppingCartId() throws TransactionServiceException, org.apache.thrift.TException
132 ashish 799
    {
800
      getTransactionsForShoppingCartId_result result = new getTransactionsForShoppingCartId_result();
3430 rajveer 801
      receiveBase(result, "getTransactionsForShoppingCartId");
132 ashish 802
      if (result.isSetSuccess()) {
803
        return result.success;
804
      }
805
      if (result.ex != null) {
806
        throw result.ex;
807
      }
3430 rajveer 808
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionsForShoppingCartId failed: unknown result");
132 ashish 809
    }
810
 
3430 rajveer 811
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 812
    {
813
      send_getTransactionStatus(transactionId);
814
      return recv_getTransactionStatus();
815
    }
816
 
3430 rajveer 817
    public void send_getTransactionStatus(long transactionId) throws org.apache.thrift.TException
68 ashish 818
    {
819
      getTransactionStatus_args args = new getTransactionStatus_args();
3430 rajveer 820
      args.setTransactionId(transactionId);
821
      sendBase("getTransactionStatus", args);
68 ashish 822
    }
823
 
3430 rajveer 824
    public TransactionStatus recv_getTransactionStatus() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 825
    {
826
      getTransactionStatus_result result = new getTransactionStatus_result();
3430 rajveer 827
      receiveBase(result, "getTransactionStatus");
68 ashish 828
      if (result.isSetSuccess()) {
829
        return result.success;
830
      }
831
      if (result.ex != null) {
832
        throw result.ex;
833
      }
3430 rajveer 834
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
68 ashish 835
    }
836
 
3430 rajveer 837
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 838
    {
839
      send_changeTransactionStatus(transactionId, status, description);
840
      return recv_changeTransactionStatus();
841
    }
842
 
3430 rajveer 843
    public void send_changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws org.apache.thrift.TException
68 ashish 844
    {
845
      changeTransactionStatus_args args = new changeTransactionStatus_args();
3430 rajveer 846
      args.setTransactionId(transactionId);
847
      args.setStatus(status);
848
      args.setDescription(description);
849
      sendBase("changeTransactionStatus", args);
68 ashish 850
    }
851
 
3430 rajveer 852
    public boolean recv_changeTransactionStatus() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 853
    {
854
      changeTransactionStatus_result result = new changeTransactionStatus_result();
3430 rajveer 855
      receiveBase(result, "changeTransactionStatus");
68 ashish 856
      if (result.isSetSuccess()) {
857
        return result.success;
858
      }
859
      if (result.ex != null) {
860
        throw result.ex;
861
      }
3430 rajveer 862
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");
68 ashish 863
    }
864
 
3430 rajveer 865
    public boolean enqueueTransactionInfoEmail(long transactionId) throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 866
    {
1398 varun.gupt 867
      send_enqueueTransactionInfoEmail(transactionId);
868
      return recv_enqueueTransactionInfoEmail();
1382 varun.gupt 869
    }
870
 
3430 rajveer 871
    public void send_enqueueTransactionInfoEmail(long transactionId) throws org.apache.thrift.TException
1382 varun.gupt 872
    {
1398 varun.gupt 873
      enqueueTransactionInfoEmail_args args = new enqueueTransactionInfoEmail_args();
3430 rajveer 874
      args.setTransactionId(transactionId);
875
      sendBase("enqueueTransactionInfoEmail", args);
1382 varun.gupt 876
    }
877
 
3430 rajveer 878
    public boolean recv_enqueueTransactionInfoEmail() throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 879
    {
1398 varun.gupt 880
      enqueueTransactionInfoEmail_result result = new enqueueTransactionInfoEmail_result();
3430 rajveer 881
      receiveBase(result, "enqueueTransactionInfoEmail");
1382 varun.gupt 882
      if (result.isSetSuccess()) {
883
        return result.success;
884
      }
885
      if (result.ex != null) {
886
        throw result.ex;
887
      }
3430 rajveer 888
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enqueueTransactionInfoEmail failed: unknown result");
1382 varun.gupt 889
    }
890
 
3430 rajveer 891
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 892
    {
483 rajveer 893
      send_getAllOrders(status, from_date, to_date, warehouse_id);
894
      return recv_getAllOrders();
68 ashish 895
    }
896
 
3430 rajveer 897
    public void send_getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws org.apache.thrift.TException
68 ashish 898
    {
483 rajveer 899
      getAllOrders_args args = new getAllOrders_args();
3430 rajveer 900
      args.setStatus(status);
901
      args.setFrom_date(from_date);
902
      args.setTo_date(to_date);
903
      args.setWarehouse_id(warehouse_id);
904
      sendBase("getAllOrders", args);
68 ashish 905
    }
906
 
3430 rajveer 907
    public List<Order> recv_getAllOrders() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 908
    {
483 rajveer 909
      getAllOrders_result result = new getAllOrders_result();
3430 rajveer 910
      receiveBase(result, "getAllOrders");
68 ashish 911
      if (result.isSetSuccess()) {
912
        return result.success;
913
      }
914
      if (result.ex != null) {
915
        throw result.ex;
916
      }
3430 rajveer 917
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
68 ashish 918
    }
919
 
4133 chandransh 920
    public List<Order> getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException
921
    {
922
      send_getOrdersInBatch(statuses, offset, limit, warehouse_id);
923
      return recv_getOrdersInBatch();
924
    }
925
 
926
    public void send_getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws org.apache.thrift.TException
927
    {
928
      getOrdersInBatch_args args = new getOrdersInBatch_args();
929
      args.setStatuses(statuses);
930
      args.setOffset(offset);
931
      args.setLimit(limit);
932
      args.setWarehouse_id(warehouse_id);
933
      sendBase("getOrdersInBatch", args);
934
    }
935
 
936
    public List<Order> recv_getOrdersInBatch() throws TransactionServiceException, org.apache.thrift.TException
937
    {
938
      getOrdersInBatch_result result = new getOrdersInBatch_result();
939
      receiveBase(result, "getOrdersInBatch");
940
      if (result.isSetSuccess()) {
941
        return result.success;
942
      }
943
      if (result.ex != null) {
944
        throw result.ex;
945
      }
946
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersInBatch failed: unknown result");
947
    }
948
 
949
    public int getOrderCount(List<OrderStatus> statuses, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
950
    {
951
      send_getOrderCount(statuses, warehouseId);
952
      return recv_getOrderCount();
953
    }
954
 
955
    public void send_getOrderCount(List<OrderStatus> statuses, long warehouseId) throws org.apache.thrift.TException
956
    {
957
      getOrderCount_args args = new getOrderCount_args();
958
      args.setStatuses(statuses);
959
      args.setWarehouseId(warehouseId);
960
      sendBase("getOrderCount", args);
961
    }
962
 
963
    public int recv_getOrderCount() throws TransactionServiceException, org.apache.thrift.TException
964
    {
965
      getOrderCount_result result = new getOrderCount_result();
966
      receiveBase(result, "getOrderCount");
967
      if (result.isSetSuccess()) {
968
        return result.success;
969
      }
970
      if (result.ex != null) {
971
        throw result.ex;
972
      }
973
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderCount failed: unknown result");
974
    }
975
 
3430 rajveer 976
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException
1022 varun.gupt 977
    {
978
      send_getOrdersByBillingDate(status, start_billing_date, end_billing_date, warehouse_id);
979
      return recv_getOrdersByBillingDate();
980
    }
981
 
3430 rajveer 982
    public void send_getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws org.apache.thrift.TException
1022 varun.gupt 983
    {
984
      getOrdersByBillingDate_args args = new getOrdersByBillingDate_args();
3430 rajveer 985
      args.setStatus(status);
986
      args.setStart_billing_date(start_billing_date);
987
      args.setEnd_billing_date(end_billing_date);
988
      args.setWarehouse_id(warehouse_id);
989
      sendBase("getOrdersByBillingDate", args);
1022 varun.gupt 990
    }
991
 
3430 rajveer 992
    public List<Order> recv_getOrdersByBillingDate() throws TransactionServiceException, org.apache.thrift.TException
1022 varun.gupt 993
    {
994
      getOrdersByBillingDate_result result = new getOrdersByBillingDate_result();
3430 rajveer 995
      receiveBase(result, "getOrdersByBillingDate");
1022 varun.gupt 996
      if (result.isSetSuccess()) {
997
        return result.success;
998
      }
999
      if (result.ex != null) {
1000
        throw result.ex;
1001
      }
3430 rajveer 1002
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersByBillingDate failed: unknown result");
1022 varun.gupt 1003
    }
1004
 
3451 chandransh 1005
    public List<Order> getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException
3427 chandransh 1006
    {
3451 chandransh 1007
      send_getOrdersByShippingDate(fromShippingDate, toShippingDate, providerId, warehouseId, cod);
3427 chandransh 1008
      return recv_getOrdersByShippingDate();
1009
    }
1010
 
3451 chandransh 1011
    public void send_getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod) throws org.apache.thrift.TException
3427 chandransh 1012
    {
1013
      getOrdersByShippingDate_args args = new getOrdersByShippingDate_args();
3430 rajveer 1014
      args.setFromShippingDate(fromShippingDate);
1015
      args.setToShippingDate(toShippingDate);
1016
      args.setProviderId(providerId);
1017
      args.setWarehouseId(warehouseId);
3451 chandransh 1018
      args.setCod(cod);
3430 rajveer 1019
      sendBase("getOrdersByShippingDate", args);
3427 chandransh 1020
    }
1021
 
3430 rajveer 1022
    public List<Order> recv_getOrdersByShippingDate() throws TransactionServiceException, org.apache.thrift.TException
3427 chandransh 1023
    {
1024
      getOrdersByShippingDate_result result = new getOrdersByShippingDate_result();
3430 rajveer 1025
      receiveBase(result, "getOrdersByShippingDate");
3427 chandransh 1026
      if (result.isSetSuccess()) {
1027
        return result.success;
1028
      }
1029
      if (result.ex != null) {
1030
        throw result.ex;
1031
      }
3430 rajveer 1032
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersByShippingDate failed: unknown result");
3427 chandransh 1033
    }
1034
 
3430 rajveer 1035
    public List<Long> getReturnableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 1036
    {
1037
      send_getReturnableOrdersForCustomer(customer_id, limit);
1038
      return recv_getReturnableOrdersForCustomer();
1039
    }
1040
 
3430 rajveer 1041
    public void send_getReturnableOrdersForCustomer(long customer_id, long limit) throws org.apache.thrift.TException
1382 varun.gupt 1042
    {
1043
      getReturnableOrdersForCustomer_args args = new getReturnableOrdersForCustomer_args();
3430 rajveer 1044
      args.setCustomer_id(customer_id);
1045
      args.setLimit(limit);
1046
      sendBase("getReturnableOrdersForCustomer", args);
1382 varun.gupt 1047
    }
1048
 
3430 rajveer 1049
    public List<Long> recv_getReturnableOrdersForCustomer() throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 1050
    {
1051
      getReturnableOrdersForCustomer_result result = new getReturnableOrdersForCustomer_result();
3430 rajveer 1052
      receiveBase(result, "getReturnableOrdersForCustomer");
1382 varun.gupt 1053
      if (result.isSetSuccess()) {
1054
        return result.success;
1055
      }
1056
      if (result.ex != null) {
1057
        throw result.ex;
1058
      }
3430 rajveer 1059
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnableOrdersForCustomer failed: unknown result");
1382 varun.gupt 1060
    }
1061
 
3430 rajveer 1062
    public List<Long> getCancellableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 1063
    {
1064
      send_getCancellableOrdersForCustomer(customer_id, limit);
1065
      return recv_getCancellableOrdersForCustomer();
1066
    }
1067
 
3430 rajveer 1068
    public void send_getCancellableOrdersForCustomer(long customer_id, long limit) throws org.apache.thrift.TException
1382 varun.gupt 1069
    {
1070
      getCancellableOrdersForCustomer_args args = new getCancellableOrdersForCustomer_args();
3430 rajveer 1071
      args.setCustomer_id(customer_id);
1072
      args.setLimit(limit);
1073
      sendBase("getCancellableOrdersForCustomer", args);
1382 varun.gupt 1074
    }
1075
 
3430 rajveer 1076
    public List<Long> recv_getCancellableOrdersForCustomer() throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 1077
    {
1078
      getCancellableOrdersForCustomer_result result = new getCancellableOrdersForCustomer_result();
3430 rajveer 1079
      receiveBase(result, "getCancellableOrdersForCustomer");
1382 varun.gupt 1080
      if (result.isSetSuccess()) {
1081
        return result.success;
1082
      }
1083
      if (result.ex != null) {
1084
        throw result.ex;
1085
      }
3430 rajveer 1086
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCancellableOrdersForCustomer failed: unknown result");
1382 varun.gupt 1087
    }
1088
 
3430 rajveer 1089
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1090
    {
483 rajveer 1091
      send_changeOrderStatus(orderId, status, description);
1092
      return recv_changeOrderStatus();
68 ashish 1093
    }
1094
 
3430 rajveer 1095
    public void send_changeOrderStatus(long orderId, OrderStatus status, String description) throws org.apache.thrift.TException
68 ashish 1096
    {
483 rajveer 1097
      changeOrderStatus_args args = new changeOrderStatus_args();
3430 rajveer 1098
      args.setOrderId(orderId);
1099
      args.setStatus(status);
1100
      args.setDescription(description);
1101
      sendBase("changeOrderStatus", args);
68 ashish 1102
    }
1103
 
3430 rajveer 1104
    public boolean recv_changeOrderStatus() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1105
    {
483 rajveer 1106
      changeOrderStatus_result result = new changeOrderStatus_result();
3430 rajveer 1107
      receiveBase(result, "changeOrderStatus");
68 ashish 1108
      if (result.isSetSuccess()) {
1109
        return result.success;
1110
      }
1111
      if (result.ex != null) {
1112
        throw result.ex;
1113
      }
3430 rajveer 1114
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
68 ashish 1115
    }
1116
 
3430 rajveer 1117
    public List<Order> getOrdersForTransaction(long transactionId, long customerId) throws TransactionServiceException, org.apache.thrift.TException
495 rajveer 1118
    {
3061 chandransh 1119
      send_getOrdersForTransaction(transactionId, customerId);
1120
      return recv_getOrdersForTransaction();
495 rajveer 1121
    }
1122
 
3430 rajveer 1123
    public void send_getOrdersForTransaction(long transactionId, long customerId) throws org.apache.thrift.TException
495 rajveer 1124
    {
3061 chandransh 1125
      getOrdersForTransaction_args args = new getOrdersForTransaction_args();
3430 rajveer 1126
      args.setTransactionId(transactionId);
1127
      args.setCustomerId(customerId);
1128
      sendBase("getOrdersForTransaction", args);
495 rajveer 1129
    }
1130
 
3430 rajveer 1131
    public List<Order> recv_getOrdersForTransaction() throws TransactionServiceException, org.apache.thrift.TException
495 rajveer 1132
    {
3061 chandransh 1133
      getOrdersForTransaction_result result = new getOrdersForTransaction_result();
3430 rajveer 1134
      receiveBase(result, "getOrdersForTransaction");
495 rajveer 1135
      if (result.isSetSuccess()) {
1136
        return result.success;
1137
      }
1138
      if (result.ex != null) {
1139
        throw result.ex;
1140
      }
3430 rajveer 1141
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersForTransaction failed: unknown result");
495 rajveer 1142
    }
1143
 
3430 rajveer 1144
    public List<Order> getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws TransactionServiceException, org.apache.thrift.TException
1148 chandransh 1145
    {
3061 chandransh 1146
      send_getOrdersForCustomer(customerId, from_date, to_date, statuses);
1147
      return recv_getOrdersForCustomer();
1148 chandransh 1148
    }
1149
 
3430 rajveer 1150
    public void send_getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws org.apache.thrift.TException
1148 chandransh 1151
    {
3061 chandransh 1152
      getOrdersForCustomer_args args = new getOrdersForCustomer_args();
3430 rajveer 1153
      args.setCustomerId(customerId);
1154
      args.setFrom_date(from_date);
1155
      args.setTo_date(to_date);
1156
      args.setStatuses(statuses);
1157
      sendBase("getOrdersForCustomer", args);
1148 chandransh 1158
    }
1159
 
3430 rajveer 1160
    public List<Order> recv_getOrdersForCustomer() throws TransactionServiceException, org.apache.thrift.TException
1148 chandransh 1161
    {
3061 chandransh 1162
      getOrdersForCustomer_result result = new getOrdersForCustomer_result();
3430 rajveer 1163
      receiveBase(result, "getOrdersForCustomer");
1148 chandransh 1164
      if (result.isSetSuccess()) {
1165
        return result.success;
1166
      }
1167
      if (result.ex != null) {
1168
        throw result.ex;
1169
      }
3430 rajveer 1170
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersForCustomer failed: unknown result");
1148 chandransh 1171
    }
1172
 
3430 rajveer 1173
    public long createOrder(Order order) throws TransactionServiceException, org.apache.thrift.TException
923 rajveer 1174
    {
3061 chandransh 1175
      send_createOrder(order);
1176
      return recv_createOrder();
923 rajveer 1177
    }
1178
 
3430 rajveer 1179
    public void send_createOrder(Order order) throws org.apache.thrift.TException
923 rajveer 1180
    {
3061 chandransh 1181
      createOrder_args args = new createOrder_args();
3430 rajveer 1182
      args.setOrder(order);
1183
      sendBase("createOrder", args);
923 rajveer 1184
    }
1185
 
3430 rajveer 1186
    public long recv_createOrder() throws TransactionServiceException, org.apache.thrift.TException
923 rajveer 1187
    {
3061 chandransh 1188
      createOrder_result result = new createOrder_result();
3430 rajveer 1189
      receiveBase(result, "createOrder");
923 rajveer 1190
      if (result.isSetSuccess()) {
1191
        return result.success;
1192
      }
1193
      if (result.ex != null) {
1194
        throw result.ex;
1195
      }
3430 rajveer 1196
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createOrder failed: unknown result");
923 rajveer 1197
    }
1198
 
3430 rajveer 1199
    public Order getOrder(long id) throws TransactionServiceException, org.apache.thrift.TException
923 rajveer 1200
    {
3061 chandransh 1201
      send_getOrder(id);
1202
      return recv_getOrder();
923 rajveer 1203
    }
1204
 
3430 rajveer 1205
    public void send_getOrder(long id) throws org.apache.thrift.TException
923 rajveer 1206
    {
3061 chandransh 1207
      getOrder_args args = new getOrder_args();
3430 rajveer 1208
      args.setId(id);
1209
      sendBase("getOrder", args);
923 rajveer 1210
    }
1211
 
3430 rajveer 1212
    public Order recv_getOrder() throws TransactionServiceException, org.apache.thrift.TException
923 rajveer 1213
    {
3061 chandransh 1214
      getOrder_result result = new getOrder_result();
3430 rajveer 1215
      receiveBase(result, "getOrder");
923 rajveer 1216
      if (result.isSetSuccess()) {
1217
        return result.success;
1218
      }
1219
      if (result.ex != null) {
1220
        throw result.ex;
1221
      }
3430 rajveer 1222
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrder failed: unknown result");
923 rajveer 1223
    }
1224
 
3430 rajveer 1225
    public List<LineItem> getLineItemsForOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1226
    {
3061 chandransh 1227
      send_getLineItemsForOrder(orderId);
1228
      return recv_getLineItemsForOrder();
68 ashish 1229
    }
1230
 
3430 rajveer 1231
    public void send_getLineItemsForOrder(long orderId) throws org.apache.thrift.TException
68 ashish 1232
    {
3061 chandransh 1233
      getLineItemsForOrder_args args = new getLineItemsForOrder_args();
3430 rajveer 1234
      args.setOrderId(orderId);
1235
      sendBase("getLineItemsForOrder", args);
68 ashish 1236
    }
1237
 
3430 rajveer 1238
    public List<LineItem> recv_getLineItemsForOrder() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1239
    {
3061 chandransh 1240
      getLineItemsForOrder_result result = new getLineItemsForOrder_result();
3430 rajveer 1241
      receiveBase(result, "getLineItemsForOrder");
68 ashish 1242
      if (result.isSetSuccess()) {
1243
        return result.success;
1244
      }
1245
      if (result.ex != null) {
1246
        throw result.ex;
1247
      }
3430 rajveer 1248
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLineItemsForOrder failed: unknown result");
68 ashish 1249
    }
1250
 
3430 rajveer 1251
    public Order getOrderForCustomer(long orderId, long customerId) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1252
    {
3061 chandransh 1253
      send_getOrderForCustomer(orderId, customerId);
1254
      return recv_getOrderForCustomer();
68 ashish 1255
    }
1256
 
3430 rajveer 1257
    public void send_getOrderForCustomer(long orderId, long customerId) throws org.apache.thrift.TException
68 ashish 1258
    {
3061 chandransh 1259
      getOrderForCustomer_args args = new getOrderForCustomer_args();
3430 rajveer 1260
      args.setOrderId(orderId);
1261
      args.setCustomerId(customerId);
1262
      sendBase("getOrderForCustomer", args);
68 ashish 1263
    }
1264
 
3430 rajveer 1265
    public Order recv_getOrderForCustomer() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1266
    {
3061 chandransh 1267
      getOrderForCustomer_result result = new getOrderForCustomer_result();
3430 rajveer 1268
      receiveBase(result, "getOrderForCustomer");
68 ashish 1269
      if (result.isSetSuccess()) {
1270
        return result.success;
1271
      }
1272
      if (result.ex != null) {
1273
        throw result.ex;
1274
      }
3430 rajveer 1275
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
68 ashish 1276
    }
1277
 
3430 rajveer 1278
    public List<Alert> getAlerts(long orderId, boolean valid) throws org.apache.thrift.TException
68 ashish 1279
    {
3061 chandransh 1280
      send_getAlerts(orderId, valid);
1281
      return recv_getAlerts();
68 ashish 1282
    }
1283
 
3430 rajveer 1284
    public void send_getAlerts(long orderId, boolean valid) throws org.apache.thrift.TException
68 ashish 1285
    {
3061 chandransh 1286
      getAlerts_args args = new getAlerts_args();
3430 rajveer 1287
      args.setOrderId(orderId);
1288
      args.setValid(valid);
1289
      sendBase("getAlerts", args);
68 ashish 1290
    }
1291
 
3430 rajveer 1292
    public List<Alert> recv_getAlerts() throws org.apache.thrift.TException
68 ashish 1293
    {
3061 chandransh 1294
      getAlerts_result result = new getAlerts_result();
3430 rajveer 1295
      receiveBase(result, "getAlerts");
68 ashish 1296
      if (result.isSetSuccess()) {
1297
        return result.success;
1298
      }
3430 rajveer 1299
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
3061 chandransh 1300
    }
1301
 
3430 rajveer 1302
    public void setAlert(long orderId, boolean unset, long type, String comment) throws org.apache.thrift.TException
3061 chandransh 1303
    {
1304
      send_setAlert(orderId, unset, type, comment);
1305
      recv_setAlert();
1306
    }
1307
 
3430 rajveer 1308
    public void send_setAlert(long orderId, boolean unset, long type, String comment) throws org.apache.thrift.TException
3061 chandransh 1309
    {
1310
      setAlert_args args = new setAlert_args();
3430 rajveer 1311
      args.setOrderId(orderId);
1312
      args.setUnset(unset);
1313
      args.setType(type);
1314
      args.setComment(comment);
1315
      sendBase("setAlert", args);
3061 chandransh 1316
    }
1317
 
3430 rajveer 1318
    public void recv_setAlert() throws org.apache.thrift.TException
3061 chandransh 1319
    {
1320
      setAlert_result result = new setAlert_result();
3430 rajveer 1321
      receiveBase(result, "setAlert");
3061 chandransh 1322
      return;
68 ashish 1323
    }
1324
 
3430 rajveer 1325
    public long getValidOrderCount() throws org.apache.thrift.TException
68 ashish 1326
    {
3061 chandransh 1327
      send_getValidOrderCount();
1328
      return recv_getValidOrderCount();
68 ashish 1329
    }
1330
 
3430 rajveer 1331
    public void send_getValidOrderCount() throws org.apache.thrift.TException
68 ashish 1332
    {
3061 chandransh 1333
      getValidOrderCount_args args = new getValidOrderCount_args();
3430 rajveer 1334
      sendBase("getValidOrderCount", args);
68 ashish 1335
    }
1336
 
3430 rajveer 1337
    public long recv_getValidOrderCount() throws org.apache.thrift.TException
68 ashish 1338
    {
3061 chandransh 1339
      getValidOrderCount_result result = new getValidOrderCount_result();
3430 rajveer 1340
      receiveBase(result, "getValidOrderCount");
68 ashish 1341
      if (result.isSetSuccess()) {
1342
        return result.success;
1343
      }
3430 rajveer 1344
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
3061 chandransh 1345
    }
1346
 
3430 rajveer 1347
    public long getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException
3061 chandransh 1348
    {
1349
      send_getNoOfCustomersWithSuccessfulTransaction();
1350
      return recv_getNoOfCustomersWithSuccessfulTransaction();
1351
    }
1352
 
3430 rajveer 1353
    public void send_getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException
3061 chandransh 1354
    {
1355
      getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();
3430 rajveer 1356
      sendBase("getNoOfCustomersWithSuccessfulTransaction", args);
3061 chandransh 1357
    }
1358
 
3430 rajveer 1359
    public long recv_getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException
3061 chandransh 1360
    {
1361
      getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();
3430 rajveer 1362
      receiveBase(result, "getNoOfCustomersWithSuccessfulTransaction");
3061 chandransh 1363
      if (result.isSetSuccess()) {
1364
        return result.success;
1365
      }
3430 rajveer 1366
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNoOfCustomersWithSuccessfulTransaction failed: unknown result");
68 ashish 1367
    }
1368
 
3430 rajveer 1369
    public List<Double> getValidOrdersAmountRange() throws org.apache.thrift.TException
68 ashish 1370
    {
3061 chandransh 1371
      send_getValidOrdersAmountRange();
1372
      return recv_getValidOrdersAmountRange();
68 ashish 1373
    }
1374
 
3430 rajveer 1375
    public void send_getValidOrdersAmountRange() throws org.apache.thrift.TException
68 ashish 1376
    {
3061 chandransh 1377
      getValidOrdersAmountRange_args args = new getValidOrdersAmountRange_args();
3430 rajveer 1378
      sendBase("getValidOrdersAmountRange", args);
68 ashish 1379
    }
1380
 
3430 rajveer 1381
    public List<Double> recv_getValidOrdersAmountRange() throws org.apache.thrift.TException
68 ashish 1382
    {
3061 chandransh 1383
      getValidOrdersAmountRange_result result = new getValidOrdersAmountRange_result();
3430 rajveer 1384
      receiveBase(result, "getValidOrdersAmountRange");
68 ashish 1385
      if (result.isSetSuccess()) {
1386
        return result.success;
1387
      }
3430 rajveer 1388
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidOrdersAmountRange failed: unknown result");
68 ashish 1389
    }
1390
 
3430 rajveer 1391
    public List<Order> getValidOrders(long limit) throws org.apache.thrift.TException
1529 ankur.sing 1392
    {
3061 chandransh 1393
      send_getValidOrders(limit);
1394
      return recv_getValidOrders();
1529 ankur.sing 1395
    }
1396
 
3430 rajveer 1397
    public void send_getValidOrders(long limit) throws org.apache.thrift.TException
1529 ankur.sing 1398
    {
3061 chandransh 1399
      getValidOrders_args args = new getValidOrders_args();
3430 rajveer 1400
      args.setLimit(limit);
1401
      sendBase("getValidOrders", args);
1529 ankur.sing 1402
    }
1403
 
3430 rajveer 1404
    public List<Order> recv_getValidOrders() throws org.apache.thrift.TException
1529 ankur.sing 1405
    {
3061 chandransh 1406
      getValidOrders_result result = new getValidOrders_result();
3430 rajveer 1407
      receiveBase(result, "getValidOrders");
1529 ankur.sing 1408
      if (result.isSetSuccess()) {
1409
        return result.success;
1410
      }
3430 rajveer 1411
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidOrders failed: unknown result");
1529 ankur.sing 1412
    }
1413
 
3430 rajveer 1414
    public List<Order> batchOrders(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
1221 chandransh 1415
    {
1416
      send_batchOrders(warehouseId);
1417
      return recv_batchOrders();
1418
    }
1419
 
3430 rajveer 1420
    public void send_batchOrders(long warehouseId) throws org.apache.thrift.TException
1221 chandransh 1421
    {
1422
      batchOrders_args args = new batchOrders_args();
3430 rajveer 1423
      args.setWarehouseId(warehouseId);
1424
      sendBase("batchOrders", args);
1221 chandransh 1425
    }
1426
 
3430 rajveer 1427
    public List<Order> recv_batchOrders() throws TransactionServiceException, org.apache.thrift.TException
1221 chandransh 1428
    {
1429
      batchOrders_result result = new batchOrders_result();
3430 rajveer 1430
      receiveBase(result, "batchOrders");
1221 chandransh 1431
      if (result.isSetSuccess()) {
1432
        return result.success;
1433
      }
1434
      if (result.ex != null) {
1435
        throw result.ex;
1436
      }
3430 rajveer 1437
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "batchOrders failed: unknown result");
1221 chandransh 1438
    }
1439
 
3430 rajveer 1440
    public boolean markOrderAsOutOfStock(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1209 chandransh 1441
    {
1442
      send_markOrderAsOutOfStock(orderId);
1443
      return recv_markOrderAsOutOfStock();
1444
    }
1445
 
3430 rajveer 1446
    public void send_markOrderAsOutOfStock(long orderId) throws org.apache.thrift.TException
1209 chandransh 1447
    {
1448
      markOrderAsOutOfStock_args args = new markOrderAsOutOfStock_args();
3430 rajveer 1449
      args.setOrderId(orderId);
1450
      sendBase("markOrderAsOutOfStock", args);
1209 chandransh 1451
    }
1452
 
3430 rajveer 1453
    public boolean recv_markOrderAsOutOfStock() throws TransactionServiceException, org.apache.thrift.TException
1209 chandransh 1454
    {
1455
      markOrderAsOutOfStock_result result = new markOrderAsOutOfStock_result();
3430 rajveer 1456
      receiveBase(result, "markOrderAsOutOfStock");
1209 chandransh 1457
      if (result.isSetSuccess()) {
1458
        return result.success;
1459
      }
1460
      if (result.ex != null) {
1461
        throw result.ex;
1462
      }
3430 rajveer 1463
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderAsOutOfStock failed: unknown result");
1209 chandransh 1464
    }
1465
 
3430 rajveer 1466
    public boolean verifyOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
758 chandransh 1467
    {
3061 chandransh 1468
      send_verifyOrder(orderId);
1469
      return recv_verifyOrder();
758 chandransh 1470
    }
1471
 
3430 rajveer 1472
    public void send_verifyOrder(long orderId) throws org.apache.thrift.TException
758 chandransh 1473
    {
3061 chandransh 1474
      verifyOrder_args args = new verifyOrder_args();
3430 rajveer 1475
      args.setOrderId(orderId);
1476
      sendBase("verifyOrder", args);
758 chandransh 1477
    }
1478
 
3430 rajveer 1479
    public boolean recv_verifyOrder() throws TransactionServiceException, org.apache.thrift.TException
758 chandransh 1480
    {
3061 chandransh 1481
      verifyOrder_result result = new verifyOrder_result();
3430 rajveer 1482
      receiveBase(result, "verifyOrder");
758 chandransh 1483
      if (result.isSetSuccess()) {
1484
        return result.success;
1485
      }
1486
      if (result.ex != null) {
1487
        throw result.ex;
1488
      }
3430 rajveer 1489
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "verifyOrder failed: unknown result");
758 chandransh 1490
    }
1491
 
3430 rajveer 1492
    public boolean acceptOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1114 chandransh 1493
    {
3061 chandransh 1494
      send_acceptOrder(orderId);
1495
      return recv_acceptOrder();
1114 chandransh 1496
    }
1497
 
3430 rajveer 1498
    public void send_acceptOrder(long orderId) throws org.apache.thrift.TException
1114 chandransh 1499
    {
3061 chandransh 1500
      acceptOrder_args args = new acceptOrder_args();
3430 rajveer 1501
      args.setOrderId(orderId);
1502
      sendBase("acceptOrder", args);
1114 chandransh 1503
    }
1504
 
3430 rajveer 1505
    public boolean recv_acceptOrder() throws TransactionServiceException, org.apache.thrift.TException
1114 chandransh 1506
    {
3061 chandransh 1507
      acceptOrder_result result = new acceptOrder_result();
3430 rajveer 1508
      receiveBase(result, "acceptOrder");
1114 chandransh 1509
      if (result.isSetSuccess()) {
1510
        return result.success;
1511
      }
1512
      if (result.ex != null) {
1513
        throw result.ex;
1514
      }
3430 rajveer 1515
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
1114 chandransh 1516
    }
1517
 
4283 anupam.sin 1518
    public boolean addBillingDetails(long orderId, String invoice_number, long imeiNumber, String itemNumber, String billed_by, long jacketNumber, long billingType, long vendorId) throws TransactionServiceException, org.apache.thrift.TException
1133 chandransh 1519
    {
4283 anupam.sin 1520
      send_addBillingDetails(orderId, invoice_number, imeiNumber, itemNumber, billed_by, jacketNumber, billingType, vendorId);
3061 chandransh 1521
      return recv_addBillingDetails();
1133 chandransh 1522
    }
1523
 
4283 anupam.sin 1524
    public void send_addBillingDetails(long orderId, String invoice_number, long imeiNumber, String itemNumber, String billed_by, long jacketNumber, long billingType, long vendorId) throws org.apache.thrift.TException
1133 chandransh 1525
    {
3061 chandransh 1526
      addBillingDetails_args args = new addBillingDetails_args();
3430 rajveer 1527
      args.setOrderId(orderId);
1528
      args.setInvoice_number(invoice_number);
4283 anupam.sin 1529
      args.setImeiNumber(imeiNumber);
1530
      args.setItemNumber(itemNumber);
3430 rajveer 1531
      args.setBilled_by(billed_by);
4264 rajveer 1532
      args.setJacketNumber(jacketNumber);
4283 anupam.sin 1533
      args.setBillingType(billingType);
1534
      args.setVendorId(vendorId);
3430 rajveer 1535
      sendBase("addBillingDetails", args);
1133 chandransh 1536
    }
1537
 
3430 rajveer 1538
    public boolean recv_addBillingDetails() throws TransactionServiceException, org.apache.thrift.TException
1133 chandransh 1539
    {
3061 chandransh 1540
      addBillingDetails_result result = new addBillingDetails_result();
3430 rajveer 1541
      receiveBase(result, "addBillingDetails");
3061 chandransh 1542
      if (result.isSetSuccess()) {
1543
        return result.success;
1544
      }
1133 chandransh 1545
      if (result.ex != null) {
1546
        throw result.ex;
1547
      }
3430 rajveer 1548
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
1133 chandransh 1549
    }
1550
 
3430 rajveer 1551
    public boolean markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException
1406 ankur.sing 1552
    {
3061 chandransh 1553
      send_markOrdersAsManifested(warehouseId, providerId, cod);
1554
      return recv_markOrdersAsManifested();
1406 ankur.sing 1555
    }
1556
 
3430 rajveer 1557
    public void send_markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws org.apache.thrift.TException
1406 ankur.sing 1558
    {
3061 chandransh 1559
      markOrdersAsManifested_args args = new markOrdersAsManifested_args();
3430 rajveer 1560
      args.setWarehouseId(warehouseId);
1561
      args.setProviderId(providerId);
1562
      args.setCod(cod);
1563
      sendBase("markOrdersAsManifested", args);
1406 ankur.sing 1564
    }
1565
 
3430 rajveer 1566
    public boolean recv_markOrdersAsManifested() throws TransactionServiceException, org.apache.thrift.TException
1406 ankur.sing 1567
    {
3061 chandransh 1568
      markOrdersAsManifested_result result = new markOrdersAsManifested_result();
3430 rajveer 1569
      receiveBase(result, "markOrdersAsManifested");
1406 ankur.sing 1570
      if (result.isSetSuccess()) {
1571
        return result.success;
1572
      }
3061 chandransh 1573
      if (result.ex != null) {
1574
        throw result.ex;
1575
      }
3430 rajveer 1576
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrdersAsManifested failed: unknown result");
1406 ankur.sing 1577
    }
1578
 
3430 rajveer 1579
    public List<Order> markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1580
    {
3061 chandransh 1581
      send_markOrdersAsPickedUp(providerId, pickupDetails);
1582
      return recv_markOrdersAsPickedUp();
305 ashish 1583
    }
1584
 
3430 rajveer 1585
    public void send_markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException
305 ashish 1586
    {
3061 chandransh 1587
      markOrdersAsPickedUp_args args = new markOrdersAsPickedUp_args();
3430 rajveer 1588
      args.setProviderId(providerId);
1589
      args.setPickupDetails(pickupDetails);
1590
      sendBase("markOrdersAsPickedUp", args);
305 ashish 1591
    }
1592
 
3430 rajveer 1593
    public List<Order> recv_markOrdersAsPickedUp() throws TransactionServiceException, org.apache.thrift.TException
305 ashish 1594
    {
3061 chandransh 1595
      markOrdersAsPickedUp_result result = new markOrdersAsPickedUp_result();
3430 rajveer 1596
      receiveBase(result, "markOrdersAsPickedUp");
305 ashish 1597
      if (result.isSetSuccess()) {
1598
        return result.success;
1599
      }
3061 chandransh 1600
      if (result.ex != null) {
1601
        throw result.ex;
305 ashish 1602
      }
3430 rajveer 1603
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrdersAsPickedUp failed: unknown result");
305 ashish 1604
    }
1605
 
3430 rajveer 1606
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TransactionServiceException, org.apache.thrift.TException
1598 ankur.sing 1607
    {
3061 chandransh 1608
      send_markOrdersAsDelivered(providerId, deliveredOrders);
1609
      recv_markOrdersAsDelivered();
1598 ankur.sing 1610
    }
1611
 
3430 rajveer 1612
    public void send_markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws org.apache.thrift.TException
1598 ankur.sing 1613
    {
3061 chandransh 1614
      markOrdersAsDelivered_args args = new markOrdersAsDelivered_args();
3430 rajveer 1615
      args.setProviderId(providerId);
1616
      args.setDeliveredOrders(deliveredOrders);
1617
      sendBase("markOrdersAsDelivered", args);
1598 ankur.sing 1618
    }
1619
 
3430 rajveer 1620
    public void recv_markOrdersAsDelivered() throws TransactionServiceException, org.apache.thrift.TException
1598 ankur.sing 1621
    {
3061 chandransh 1622
      markOrdersAsDelivered_result result = new markOrdersAsDelivered_result();
3430 rajveer 1623
      receiveBase(result, "markOrdersAsDelivered");
3061 chandransh 1624
      if (result.ex != null) {
1625
        throw result.ex;
1598 ankur.sing 1626
      }
3061 chandransh 1627
      return;
1598 ankur.sing 1628
    }
1629
 
3430 rajveer 1630
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, org.apache.thrift.TException
1629 ankur.sing 1631
    {
3061 chandransh 1632
      send_markOrdersAsFailed(providerId, returnedOrders);
1633
      recv_markOrdersAsFailed();
1629 ankur.sing 1634
    }
1635
 
3430 rajveer 1636
    public void send_markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws org.apache.thrift.TException
1629 ankur.sing 1637
    {
3061 chandransh 1638
      markOrdersAsFailed_args args = new markOrdersAsFailed_args();
3430 rajveer 1639
      args.setProviderId(providerId);
1640
      args.setReturnedOrders(returnedOrders);
1641
      sendBase("markOrdersAsFailed", args);
1629 ankur.sing 1642
    }
1643
 
3430 rajveer 1644
    public void recv_markOrdersAsFailed() throws TransactionServiceException, org.apache.thrift.TException
1629 ankur.sing 1645
    {
3061 chandransh 1646
      markOrdersAsFailed_result result = new markOrdersAsFailed_result();
3430 rajveer 1647
      receiveBase(result, "markOrdersAsFailed");
3061 chandransh 1648
      if (result.ex != null) {
1649
        throw result.ex;
1629 ankur.sing 1650
      }
3061 chandransh 1651
      return;
1629 ankur.sing 1652
    }
1653
 
3430 rajveer 1654
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, org.apache.thrift.TException
1629 ankur.sing 1655
    {
3061 chandransh 1656
      send_updateNonDeliveryReason(providerId, undeliveredOrders);
1657
      recv_updateNonDeliveryReason();
1629 ankur.sing 1658
    }
1659
 
3430 rajveer 1660
    public void send_updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws org.apache.thrift.TException
1629 ankur.sing 1661
    {
3061 chandransh 1662
      updateNonDeliveryReason_args args = new updateNonDeliveryReason_args();
3430 rajveer 1663
      args.setProviderId(providerId);
1664
      args.setUndeliveredOrders(undeliveredOrders);
1665
      sendBase("updateNonDeliveryReason", args);
1629 ankur.sing 1666
    }
1667
 
3430 rajveer 1668
    public void recv_updateNonDeliveryReason() throws TransactionServiceException, org.apache.thrift.TException
1629 ankur.sing 1669
    {
3061 chandransh 1670
      updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();
3430 rajveer 1671
      receiveBase(result, "updateNonDeliveryReason");
3061 chandransh 1672
      if (result.ex != null) {
1673
        throw result.ex;
1629 ankur.sing 1674
      }
3061 chandransh 1675
      return;
1629 ankur.sing 1676
    }
1677
 
3430 rajveer 1678
    public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException
1886 ankur.sing 1679
    {
3061 chandransh 1680
      send_getUndeliveredOrders(providerId, warehouseId);
1681
      return recv_getUndeliveredOrders();
1886 ankur.sing 1682
    }
1683
 
3430 rajveer 1684
    public void send_getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException
1886 ankur.sing 1685
    {
3061 chandransh 1686
      getUndeliveredOrders_args args = new getUndeliveredOrders_args();
3430 rajveer 1687
      args.setProviderId(providerId);
1688
      args.setWarehouseId(warehouseId);
1689
      sendBase("getUndeliveredOrders", args);
1886 ankur.sing 1690
    }
1691
 
3430 rajveer 1692
    public List<Order> recv_getUndeliveredOrders() throws org.apache.thrift.TException
1886 ankur.sing 1693
    {
3061 chandransh 1694
      getUndeliveredOrders_result result = new getUndeliveredOrders_result();
3430 rajveer 1695
      receiveBase(result, "getUndeliveredOrders");
1886 ankur.sing 1696
      if (result.isSetSuccess()) {
1697
        return result.success;
1698
      }
3430 rajveer 1699
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUndeliveredOrders failed: unknown result");
1886 ankur.sing 1700
    }
1701
 
3430 rajveer 1702
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1703
    {
1704
      send_toggleDOAFlag(orderId);
1705
      return recv_toggleDOAFlag();
1706
    }
1707
 
3430 rajveer 1708
    public void send_toggleDOAFlag(long orderId) throws org.apache.thrift.TException
2538 chandransh 1709
    {
1710
      toggleDOAFlag_args args = new toggleDOAFlag_args();
3430 rajveer 1711
      args.setOrderId(orderId);
1712
      sendBase("toggleDOAFlag", args);
2538 chandransh 1713
    }
1714
 
3430 rajveer 1715
    public boolean recv_toggleDOAFlag() throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1716
    {
1717
      toggleDOAFlag_result result = new toggleDOAFlag_result();
3430 rajveer 1718
      receiveBase(result, "toggleDOAFlag");
2538 chandransh 1719
      if (result.isSetSuccess()) {
1720
        return result.success;
1721
      }
1722
      if (result.ex != null) {
1723
        throw result.ex;
1724
      }
3430 rajveer 1725
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");
2538 chandransh 1726
    }
1727
 
3430 rajveer 1728
    public boolean requestPickupNumber(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1729
    {
1730
      send_requestPickupNumber(orderId);
1731
      return recv_requestPickupNumber();
1732
    }
1733
 
3430 rajveer 1734
    public void send_requestPickupNumber(long orderId) throws org.apache.thrift.TException
2538 chandransh 1735
    {
1736
      requestPickupNumber_args args = new requestPickupNumber_args();
3430 rajveer 1737
      args.setOrderId(orderId);
1738
      sendBase("requestPickupNumber", args);
2538 chandransh 1739
    }
1740
 
3430 rajveer 1741
    public boolean recv_requestPickupNumber() throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1742
    {
1743
      requestPickupNumber_result result = new requestPickupNumber_result();
3430 rajveer 1744
      receiveBase(result, "requestPickupNumber");
2538 chandransh 1745
      if (result.isSetSuccess()) {
1746
        return result.success;
1747
      }
1748
      if (result.ex != null) {
1749
        throw result.ex;
1750
      }
3430 rajveer 1751
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "requestPickupNumber failed: unknown result");
2538 chandransh 1752
    }
1753
 
3430 rajveer 1754
    public boolean authorizePickup(long orderId, String pickupNumber) throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1755
    {
1756
      send_authorizePickup(orderId, pickupNumber);
1757
      return recv_authorizePickup();
1758
    }
1759
 
3430 rajveer 1760
    public void send_authorizePickup(long orderId, String pickupNumber) throws org.apache.thrift.TException
2538 chandransh 1761
    {
1762
      authorizePickup_args args = new authorizePickup_args();
3430 rajveer 1763
      args.setOrderId(orderId);
1764
      args.setPickupNumber(pickupNumber);
1765
      sendBase("authorizePickup", args);
2538 chandransh 1766
    }
1767
 
3430 rajveer 1768
    public boolean recv_authorizePickup() throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1769
    {
1770
      authorizePickup_result result = new authorizePickup_result();
3430 rajveer 1771
      receiveBase(result, "authorizePickup");
2538 chandransh 1772
      if (result.isSetSuccess()) {
1773
        return result.success;
1774
      }
1775
      if (result.ex != null) {
1776
        throw result.ex;
1777
      }
3430 rajveer 1778
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authorizePickup failed: unknown result");
2538 chandransh 1779
    }
1780
 
3430 rajveer 1781
    public List<Order> markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException
2765 chandransh 1782
    {
1783
      send_markDoasAsPickedUp(providerId, pickupDetails);
1784
      return recv_markDoasAsPickedUp();
1785
    }
1786
 
3430 rajveer 1787
    public void send_markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException
2765 chandransh 1788
    {
1789
      markDoasAsPickedUp_args args = new markDoasAsPickedUp_args();
3430 rajveer 1790
      args.setProviderId(providerId);
1791
      args.setPickupDetails(pickupDetails);
1792
      sendBase("markDoasAsPickedUp", args);
2765 chandransh 1793
    }
1794
 
3430 rajveer 1795
    public List<Order> recv_markDoasAsPickedUp() throws org.apache.thrift.TException
2765 chandransh 1796
    {
1797
      markDoasAsPickedUp_result result = new markDoasAsPickedUp_result();
3430 rajveer 1798
      receiveBase(result, "markDoasAsPickedUp");
2765 chandransh 1799
      if (result.isSetSuccess()) {
1800
        return result.success;
1801
      }
3430 rajveer 1802
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markDoasAsPickedUp failed: unknown result");
2765 chandransh 1803
    }
1804
 
3430 rajveer 1805
    public boolean receiveReturn(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2590 chandransh 1806
    {
2615 chandransh 1807
      send_receiveReturn(orderId);
1808
      return recv_receiveReturn();
2590 chandransh 1809
    }
1810
 
3430 rajveer 1811
    public void send_receiveReturn(long orderId) throws org.apache.thrift.TException
2590 chandransh 1812
    {
2615 chandransh 1813
      receiveReturn_args args = new receiveReturn_args();
3430 rajveer 1814
      args.setOrderId(orderId);
1815
      sendBase("receiveReturn", args);
2590 chandransh 1816
    }
1817
 
3430 rajveer 1818
    public boolean recv_receiveReturn() throws TransactionServiceException, org.apache.thrift.TException
2590 chandransh 1819
    {
2615 chandransh 1820
      receiveReturn_result result = new receiveReturn_result();
3430 rajveer 1821
      receiveBase(result, "receiveReturn");
2590 chandransh 1822
      if (result.isSetSuccess()) {
1823
        return result.success;
1824
      }
1825
      if (result.ex != null) {
1826
        throw result.ex;
1827
      }
3430 rajveer 1828
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "receiveReturn failed: unknown result");
2590 chandransh 1829
    }
1830
 
3430 rajveer 1831
    public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, org.apache.thrift.TException
2590 chandransh 1832
    {
1833
      send_validateDoa(orderId, isValid);
1834
      return recv_validateDoa();
1835
    }
1836
 
3430 rajveer 1837
    public void send_validateDoa(long orderId, boolean isValid) throws org.apache.thrift.TException
2590 chandransh 1838
    {
1839
      validateDoa_args args = new validateDoa_args();
3430 rajveer 1840
      args.setOrderId(orderId);
1841
      args.setIsValid(isValid);
1842
      sendBase("validateDoa", args);
2590 chandransh 1843
    }
1844
 
3430 rajveer 1845
    public boolean recv_validateDoa() throws TransactionServiceException, org.apache.thrift.TException
2590 chandransh 1846
    {
1847
      validateDoa_result result = new validateDoa_result();
3430 rajveer 1848
      receiveBase(result, "validateDoa");
2590 chandransh 1849
      if (result.isSetSuccess()) {
1850
        return result.success;
1851
      }
1852
      if (result.ex != null) {
1853
        throw result.ex;
1854
      }
3430 rajveer 1855
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateDoa failed: unknown result");
2590 chandransh 1856
    }
1857
 
3430 rajveer 1858
    public long reshipOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2615 chandransh 1859
    {
1860
      send_reshipOrder(orderId);
1861
      return recv_reshipOrder();
1862
    }
1863
 
3430 rajveer 1864
    public void send_reshipOrder(long orderId) throws org.apache.thrift.TException
2615 chandransh 1865
    {
1866
      reshipOrder_args args = new reshipOrder_args();
3430 rajveer 1867
      args.setOrderId(orderId);
1868
      sendBase("reshipOrder", args);
2615 chandransh 1869
    }
1870
 
3430 rajveer 1871
    public long recv_reshipOrder() throws TransactionServiceException, org.apache.thrift.TException
2615 chandransh 1872
    {
1873
      reshipOrder_result result = new reshipOrder_result();
3430 rajveer 1874
      receiveBase(result, "reshipOrder");
2615 chandransh 1875
      if (result.isSetSuccess()) {
1876
        return result.success;
1877
      }
1878
      if (result.ex != null) {
1879
        throw result.ex;
1880
      }
3430 rajveer 1881
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reshipOrder failed: unknown result");
2615 chandransh 1882
    }
1883
 
3430 rajveer 1884
    public boolean refundOrder(long orderId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException
2615 chandransh 1885
    {
3226 chandransh 1886
      send_refundOrder(orderId, refundedBy, reason);
2615 chandransh 1887
      return recv_refundOrder();
1888
    }
1889
 
3430 rajveer 1890
    public void send_refundOrder(long orderId, String refundedBy, String reason) throws org.apache.thrift.TException
2615 chandransh 1891
    {
1892
      refundOrder_args args = new refundOrder_args();
3430 rajveer 1893
      args.setOrderId(orderId);
1894
      args.setRefundedBy(refundedBy);
1895
      args.setReason(reason);
1896
      sendBase("refundOrder", args);
2615 chandransh 1897
    }
1898
 
3430 rajveer 1899
    public boolean recv_refundOrder() throws TransactionServiceException, org.apache.thrift.TException
2615 chandransh 1900
    {
1901
      refundOrder_result result = new refundOrder_result();
3430 rajveer 1902
      receiveBase(result, "refundOrder");
2615 chandransh 1903
      if (result.isSetSuccess()) {
1904
        return result.success;
1905
      }
1906
      if (result.ex != null) {
1907
        throw result.ex;
1908
      }
3430 rajveer 1909
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "refundOrder failed: unknown result");
2615 chandransh 1910
    }
1911
 
3430 rajveer 1912
    public List<ReturnOrder> getReturnOrders(long warehouseId, long fromDate, long toDate) throws org.apache.thrift.TException
2690 chandransh 1913
    {
1914
      send_getReturnOrders(warehouseId, fromDate, toDate);
1915
      return recv_getReturnOrders();
1916
    }
1917
 
3430 rajveer 1918
    public void send_getReturnOrders(long warehouseId, long fromDate, long toDate) throws org.apache.thrift.TException
2690 chandransh 1919
    {
1920
      getReturnOrders_args args = new getReturnOrders_args();
3430 rajveer 1921
      args.setWarehouseId(warehouseId);
1922
      args.setFromDate(fromDate);
1923
      args.setToDate(toDate);
1924
      sendBase("getReturnOrders", args);
2690 chandransh 1925
    }
1926
 
3430 rajveer 1927
    public List<ReturnOrder> recv_getReturnOrders() throws org.apache.thrift.TException
2690 chandransh 1928
    {
1929
      getReturnOrders_result result = new getReturnOrders_result();
3430 rajveer 1930
      receiveBase(result, "getReturnOrders");
2690 chandransh 1931
      if (result.isSetSuccess()) {
1932
        return result.success;
1933
      }
3430 rajveer 1934
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnOrders failed: unknown result");
2690 chandransh 1935
    }
1936
 
3430 rajveer 1937
    public ReturnOrder getReturnOrder(long id) throws TransactionServiceException, org.apache.thrift.TException
2700 chandransh 1938
    {
1939
      send_getReturnOrder(id);
1940
      return recv_getReturnOrder();
1941
    }
1942
 
3430 rajveer 1943
    public void send_getReturnOrder(long id) throws org.apache.thrift.TException
2700 chandransh 1944
    {
1945
      getReturnOrder_args args = new getReturnOrder_args();
3430 rajveer 1946
      args.setId(id);
1947
      sendBase("getReturnOrder", args);
2700 chandransh 1948
    }
1949
 
3430 rajveer 1950
    public ReturnOrder recv_getReturnOrder() throws TransactionServiceException, org.apache.thrift.TException
2700 chandransh 1951
    {
1952
      getReturnOrder_result result = new getReturnOrder_result();
3430 rajveer 1953
      receiveBase(result, "getReturnOrder");
2700 chandransh 1954
      if (result.isSetSuccess()) {
1955
        return result.success;
1956
      }
1957
      if (result.ex != null) {
1958
        throw result.ex;
1959
      }
3430 rajveer 1960
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnOrder failed: unknown result");
2700 chandransh 1961
    }
1962
 
3430 rajveer 1963
    public void processReturn(long returnOrderId) throws TransactionServiceException, org.apache.thrift.TException
2690 chandransh 1964
    {
1965
      send_processReturn(returnOrderId);
1966
      recv_processReturn();
1967
    }
1968
 
3430 rajveer 1969
    public void send_processReturn(long returnOrderId) throws org.apache.thrift.TException
2690 chandransh 1970
    {
1971
      processReturn_args args = new processReturn_args();
3430 rajveer 1972
      args.setReturnOrderId(returnOrderId);
1973
      sendBase("processReturn", args);
2690 chandransh 1974
    }
1975
 
3430 rajveer 1976
    public void recv_processReturn() throws TransactionServiceException, org.apache.thrift.TException
2690 chandransh 1977
    {
1978
      processReturn_result result = new processReturn_result();
3430 rajveer 1979
      receiveBase(result, "processReturn");
2690 chandransh 1980
      if (result.ex != null) {
1981
        throw result.ex;
1982
      }
1983
      return;
1984
    }
1985
 
3430 rajveer 1986
    public long createPurchaseOrder(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
2819 chandransh 1987
    {
1988
      send_createPurchaseOrder(warehouseId);
1989
      return recv_createPurchaseOrder();
1990
    }
1991
 
3430 rajveer 1992
    public void send_createPurchaseOrder(long warehouseId) throws org.apache.thrift.TException
2819 chandransh 1993
    {
1994
      createPurchaseOrder_args args = new createPurchaseOrder_args();
3430 rajveer 1995
      args.setWarehouseId(warehouseId);
1996
      sendBase("createPurchaseOrder", args);
2819 chandransh 1997
    }
1998
 
3430 rajveer 1999
    public long recv_createPurchaseOrder() throws TransactionServiceException, org.apache.thrift.TException
2819 chandransh 2000
    {
2001
      createPurchaseOrder_result result = new createPurchaseOrder_result();
3430 rajveer 2002
      receiveBase(result, "createPurchaseOrder");
2819 chandransh 2003
      if (result.isSetSuccess()) {
2004
        return result.success;
2005
      }
2006
      if (result.ex != null) {
2007
        throw result.ex;
2008
      }
3430 rajveer 2009
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPurchaseOrder failed: unknown result");
2819 chandransh 2010
    }
2011
 
3451 chandransh 2012
    public Order updateWeight(long orderId, double weight) throws TransactionServiceException, org.apache.thrift.TException
2013
    {
2014
      send_updateWeight(orderId, weight);
2015
      return recv_updateWeight();
2016
    }
2017
 
2018
    public void send_updateWeight(long orderId, double weight) throws org.apache.thrift.TException
2019
    {
2020
      updateWeight_args args = new updateWeight_args();
2021
      args.setOrderId(orderId);
2022
      args.setWeight(weight);
2023
      sendBase("updateWeight", args);
2024
    }
2025
 
2026
    public Order recv_updateWeight() throws TransactionServiceException, org.apache.thrift.TException
2027
    {
2028
      updateWeight_result result = new updateWeight_result();
2029
      receiveBase(result, "updateWeight");
2030
      if (result.isSetSuccess()) {
2031
        return result.success;
2032
      }
2033
      if (result.ex != null) {
2034
        throw result.ex;
2035
      }
2036
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateWeight failed: unknown result");
2037
    }
2038
 
3469 chandransh 2039
    public Order changeItem(long orderId, long itemId) throws TransactionServiceException, org.apache.thrift.TException
2040
    {
2041
      send_changeItem(orderId, itemId);
2042
      return recv_changeItem();
2043
    }
2044
 
2045
    public void send_changeItem(long orderId, long itemId) throws org.apache.thrift.TException
2046
    {
2047
      changeItem_args args = new changeItem_args();
2048
      args.setOrderId(orderId);
2049
      args.setItemId(itemId);
2050
      sendBase("changeItem", args);
2051
    }
2052
 
2053
    public Order recv_changeItem() throws TransactionServiceException, org.apache.thrift.TException
2054
    {
2055
      changeItem_result result = new changeItem_result();
2056
      receiveBase(result, "changeItem");
2057
      if (result.isSetSuccess()) {
2058
        return result.success;
2059
      }
2060
      if (result.ex != null) {
2061
        throw result.ex;
2062
      }
2063
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeItem failed: unknown result");
2064
    }
2065
 
2066
    public Order shiftToWarehouse(long orderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
2067
    {
2068
      send_shiftToWarehouse(orderId, warehouseId);
2069
      return recv_shiftToWarehouse();
2070
    }
2071
 
2072
    public void send_shiftToWarehouse(long orderId, long warehouseId) throws org.apache.thrift.TException
2073
    {
2074
      shiftToWarehouse_args args = new shiftToWarehouse_args();
2075
      args.setOrderId(orderId);
2076
      args.setWarehouseId(warehouseId);
2077
      sendBase("shiftToWarehouse", args);
2078
    }
2079
 
2080
    public Order recv_shiftToWarehouse() throws TransactionServiceException, org.apache.thrift.TException
2081
    {
2082
      shiftToWarehouse_result result = new shiftToWarehouse_result();
2083
      receiveBase(result, "shiftToWarehouse");
2084
      if (result.isSetSuccess()) {
2085
        return result.success;
2086
      }
2087
      if (result.ex != null) {
2088
        throw result.ex;
2089
      }
2090
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "shiftToWarehouse failed: unknown result");
2091
    }
2092
 
3986 chandransh 2093
    public boolean addDelayReason(long orderId, DelayReason delayReason, long furtherDelay) throws TransactionServiceException, org.apache.thrift.TException
3553 chandransh 2094
    {
3986 chandransh 2095
      send_addDelayReason(orderId, delayReason, furtherDelay);
3553 chandransh 2096
      return recv_addDelayReason();
2097
    }
2098
 
3986 chandransh 2099
    public void send_addDelayReason(long orderId, DelayReason delayReason, long furtherDelay) throws org.apache.thrift.TException
3553 chandransh 2100
    {
2101
      addDelayReason_args args = new addDelayReason_args();
2102
      args.setOrderId(orderId);
2103
      args.setDelayReason(delayReason);
3986 chandransh 2104
      args.setFurtherDelay(furtherDelay);
3553 chandransh 2105
      sendBase("addDelayReason", args);
2106
    }
2107
 
2108
    public boolean recv_addDelayReason() throws TransactionServiceException, org.apache.thrift.TException
2109
    {
2110
      addDelayReason_result result = new addDelayReason_result();
2111
      receiveBase(result, "addDelayReason");
2112
      if (result.isSetSuccess()) {
2113
        return result.success;
2114
      }
2115
      if (result.ex != null) {
2116
        throw result.ex;
2117
      }
2118
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addDelayReason failed: unknown result");
2119
    }
2120
 
3956 chandransh 2121
    public Map<String,String> reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate) throws TransactionServiceException, org.apache.thrift.TException
2122
    {
2123
      send_reconcileCodCollection(collectedAmountMap, xferBy, xferTxnId, xferDate);
2124
      return recv_reconcileCodCollection();
2125
    }
2126
 
2127
    public void send_reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate) throws org.apache.thrift.TException
2128
    {
2129
      reconcileCodCollection_args args = new reconcileCodCollection_args();
2130
      args.setCollectedAmountMap(collectedAmountMap);
2131
      args.setXferBy(xferBy);
2132
      args.setXferTxnId(xferTxnId);
2133
      args.setXferDate(xferDate);
2134
      sendBase("reconcileCodCollection", args);
2135
    }
2136
 
2137
    public Map<String,String> recv_reconcileCodCollection() throws TransactionServiceException, org.apache.thrift.TException
2138
    {
2139
      reconcileCodCollection_result result = new reconcileCodCollection_result();
2140
      receiveBase(result, "reconcileCodCollection");
2141
      if (result.isSetSuccess()) {
2142
        return result.success;
2143
      }
2144
      if (result.ex != null) {
2145
        throw result.ex;
2146
      }
2147
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reconcileCodCollection failed: unknown result");
2148
    }
2149
 
4008 mandeep.dh 2150
    public List<Long> getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category) throws org.apache.thrift.TException
2151
    {
2152
      send_getTransactionsRequiringExtraProcessing(category);
2153
      return recv_getTransactionsRequiringExtraProcessing();
2154
    }
2155
 
2156
    public void send_getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category) throws org.apache.thrift.TException
2157
    {
2158
      getTransactionsRequiringExtraProcessing_args args = new getTransactionsRequiringExtraProcessing_args();
2159
      args.setCategory(category);
2160
      sendBase("getTransactionsRequiringExtraProcessing", args);
2161
    }
2162
 
2163
    public List<Long> recv_getTransactionsRequiringExtraProcessing() throws org.apache.thrift.TException
2164
    {
2165
      getTransactionsRequiringExtraProcessing_result result = new getTransactionsRequiringExtraProcessing_result();
2166
      receiveBase(result, "getTransactionsRequiringExtraProcessing");
2167
      if (result.isSetSuccess()) {
2168
        return result.success;
2169
      }
2170
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionsRequiringExtraProcessing failed: unknown result");
2171
    }
2172
 
2173
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category) throws org.apache.thrift.TException
2174
    {
2175
      send_markTransactionAsProcessed(transactionId, category);
2176
      recv_markTransactionAsProcessed();
2177
    }
2178
 
2179
    public void send_markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category) throws org.apache.thrift.TException
2180
    {
2181
      markTransactionAsProcessed_args args = new markTransactionAsProcessed_args();
2182
      args.setTransactionId(transactionId);
2183
      args.setCategory(category);
2184
      sendBase("markTransactionAsProcessed", args);
2185
    }
2186
 
2187
    public void recv_markTransactionAsProcessed() throws org.apache.thrift.TException
2188
    {
2189
      markTransactionAsProcessed_result result = new markTransactionAsProcessed_result();
2190
      receiveBase(result, "markTransactionAsProcessed");
2191
      return;
2192
    }
2193
 
4018 chandransh 2194
    public Map<Long,Long> getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException
2195
    {
2196
      send_getItemWiseRiskyOrdersCount();
2197
      return recv_getItemWiseRiskyOrdersCount();
2198
    }
2199
 
2200
    public void send_getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException
2201
    {
2202
      getItemWiseRiskyOrdersCount_args args = new getItemWiseRiskyOrdersCount_args();
2203
      sendBase("getItemWiseRiskyOrdersCount", args);
2204
    }
2205
 
2206
    public Map<Long,Long> recv_getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException
2207
    {
2208
      getItemWiseRiskyOrdersCount_result result = new getItemWiseRiskyOrdersCount_result();
2209
      receiveBase(result, "getItemWiseRiskyOrdersCount");
2210
      if (result.isSetSuccess()) {
2211
        return result.success;
2212
      }
2213
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemWiseRiskyOrdersCount failed: unknown result");
2214
    }
2215
 
4246 rajveer 2216
    public void markOrderCancellationRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2217
    {
2218
      send_markOrderCancellationRequestReceived(orderId);
2219
      recv_markOrderCancellationRequestReceived();
2220
    }
2221
 
2222
    public void send_markOrderCancellationRequestReceived(long orderId) throws org.apache.thrift.TException
2223
    {
2224
      markOrderCancellationRequestReceived_args args = new markOrderCancellationRequestReceived_args();
2225
      args.setOrderId(orderId);
2226
      sendBase("markOrderCancellationRequestReceived", args);
2227
    }
2228
 
2229
    public void recv_markOrderCancellationRequestReceived() throws TransactionServiceException, org.apache.thrift.TException
2230
    {
2231
      markOrderCancellationRequestReceived_result result = new markOrderCancellationRequestReceived_result();
2232
      receiveBase(result, "markOrderCancellationRequestReceived");
2233
      if (result.ex != null) {
2234
        throw result.ex;
2235
      }
2236
      return;
2237
    }
2238
 
2239
    public void markOrderCancellationRequestConfirmed(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2240
    {
2241
      send_markOrderCancellationRequestConfirmed(orderId);
2242
      recv_markOrderCancellationRequestConfirmed();
2243
    }
2244
 
2245
    public void send_markOrderCancellationRequestConfirmed(long orderId) throws org.apache.thrift.TException
2246
    {
2247
      markOrderCancellationRequestConfirmed_args args = new markOrderCancellationRequestConfirmed_args();
2248
      args.setOrderId(orderId);
2249
      sendBase("markOrderCancellationRequestConfirmed", args);
2250
    }
2251
 
2252
    public void recv_markOrderCancellationRequestConfirmed() throws TransactionServiceException, org.apache.thrift.TException
2253
    {
2254
      markOrderCancellationRequestConfirmed_result result = new markOrderCancellationRequestConfirmed_result();
2255
      receiveBase(result, "markOrderCancellationRequestConfirmed");
2256
      if (result.ex != null) {
2257
        throw result.ex;
2258
      }
2259
      return;
2260
    }
2261
 
2262
    public void markOrderCancellationRequestDenied(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2263
    {
2264
      send_markOrderCancellationRequestDenied(orderId);
2265
      recv_markOrderCancellationRequestDenied();
2266
    }
2267
 
2268
    public void send_markOrderCancellationRequestDenied(long orderId) throws org.apache.thrift.TException
2269
    {
2270
      markOrderCancellationRequestDenied_args args = new markOrderCancellationRequestDenied_args();
2271
      args.setOrderId(orderId);
2272
      sendBase("markOrderCancellationRequestDenied", args);
2273
    }
2274
 
2275
    public void recv_markOrderCancellationRequestDenied() throws TransactionServiceException, org.apache.thrift.TException
2276
    {
2277
      markOrderCancellationRequestDenied_result result = new markOrderCancellationRequestDenied_result();
2278
      receiveBase(result, "markOrderCancellationRequestDenied");
2279
      if (result.ex != null) {
2280
        throw result.ex;
2281
      }
2282
      return;
2283
    }
2284
 
4258 rajveer 2285
    public void markTransactionAsPaymentFlagRemoved(long transactionId) throws TransactionServiceException, org.apache.thrift.TException
4246 rajveer 2286
    {
4258 rajveer 2287
      send_markTransactionAsPaymentFlagRemoved(transactionId);
2288
      recv_markTransactionAsPaymentFlagRemoved();
4246 rajveer 2289
    }
2290
 
4258 rajveer 2291
    public void send_markTransactionAsPaymentFlagRemoved(long transactionId) throws org.apache.thrift.TException
4246 rajveer 2292
    {
4258 rajveer 2293
      markTransactionAsPaymentFlagRemoved_args args = new markTransactionAsPaymentFlagRemoved_args();
2294
      args.setTransactionId(transactionId);
2295
      sendBase("markTransactionAsPaymentFlagRemoved", args);
4246 rajveer 2296
    }
2297
 
4258 rajveer 2298
    public void recv_markTransactionAsPaymentFlagRemoved() throws TransactionServiceException, org.apache.thrift.TException
4246 rajveer 2299
    {
4258 rajveer 2300
      markTransactionAsPaymentFlagRemoved_result result = new markTransactionAsPaymentFlagRemoved_result();
2301
      receiveBase(result, "markTransactionAsPaymentFlagRemoved");
4246 rajveer 2302
      if (result.ex != null) {
2303
        throw result.ex;
2304
      }
2305
      return;
2306
    }
2307
 
4259 anupam.sin 2308
    public void refundTransaction(long transactionId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException
2309
    {
2310
      send_refundTransaction(transactionId, refundedBy, reason);
2311
      recv_refundTransaction();
2312
    }
2313
 
2314
    public void send_refundTransaction(long transactionId, String refundedBy, String reason) throws org.apache.thrift.TException
2315
    {
2316
      refundTransaction_args args = new refundTransaction_args();
2317
      args.setTransactionId(transactionId);
2318
      args.setRefundedBy(refundedBy);
2319
      args.setReason(reason);
2320
      sendBase("refundTransaction", args);
2321
    }
2322
 
2323
    public void recv_refundTransaction() throws TransactionServiceException, org.apache.thrift.TException
2324
    {
2325
      refundTransaction_result result = new refundTransaction_result();
2326
      receiveBase(result, "refundTransaction");
2327
      if (result.ex != null) {
2328
        throw result.ex;
2329
      }
2330
      return;
2331
    }
2332
 
4285 rajveer 2333
    public boolean acceptOrdersForItemId(long itemId, long inventory) throws TransactionServiceException, org.apache.thrift.TException
2334
    {
2335
      send_acceptOrdersForItemId(itemId, inventory);
2336
      return recv_acceptOrdersForItemId();
2337
    }
2338
 
2339
    public void send_acceptOrdersForItemId(long itemId, long inventory) throws org.apache.thrift.TException
2340
    {
2341
      acceptOrdersForItemId_args args = new acceptOrdersForItemId_args();
2342
      args.setItemId(itemId);
2343
      args.setInventory(inventory);
2344
      sendBase("acceptOrdersForItemId", args);
2345
    }
2346
 
2347
    public boolean recv_acceptOrdersForItemId() throws TransactionServiceException, org.apache.thrift.TException
2348
    {
2349
      acceptOrdersForItemId_result result = new acceptOrdersForItemId_result();
2350
      receiveBase(result, "acceptOrdersForItemId");
2351
      if (result.isSetSuccess()) {
2352
        return result.success;
2353
      }
2354
      if (result.ex != null) {
2355
        throw result.ex;
2356
      }
2357
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "acceptOrdersForItemId failed: unknown result");
2358
    }
2359
 
68 ashish 2360
  }
3430 rajveer 2361
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2362
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2363
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2364
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2365
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
2366
        this.clientManager = clientManager;
2367
        this.protocolFactory = protocolFactory;
2368
      }
2369
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
2370
        return new AsyncClient(protocolFactory, clientManager, transport);
2371
      }
68 ashish 2372
    }
2373
 
3430 rajveer 2374
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
2375
      super(protocolFactory, clientManager, transport);
2376
    }
68 ashish 2377
 
3430 rajveer 2378
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<createTransaction_call> resultHandler) throws org.apache.thrift.TException {
2379
      checkReady();
2380
      createTransaction_call method_call = new createTransaction_call(transaction, resultHandler, this, ___protocolFactory, ___transport);
2381
      this.___currentMethod = method_call;
2382
      ___manager.call(method_call);
2383
    }
2384
 
2385
    public static class createTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
2386
      private Transaction transaction;
2387
      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 {
2388
        super(client, protocolFactory, transport, resultHandler, false);
2389
        this.transaction = transaction;
68 ashish 2390
      }
3430 rajveer 2391
 
2392
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2393
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
2394
        createTransaction_args args = new createTransaction_args();
2395
        args.setTransaction(transaction);
2396
        args.write(prot);
2397
        prot.writeMessageEnd();
2398
      }
2399
 
2400
      public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
2401
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2402
          throw new IllegalStateException("Method call not finished!");
2403
        }
2404
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2405
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2406
        return (new Client(prot)).recv_createTransaction();
2407
      }
68 ashish 2408
    }
2409
 
3430 rajveer 2410
    public void getTransaction(long id, org.apache.thrift.async.AsyncMethodCallback<getTransaction_call> resultHandler) throws org.apache.thrift.TException {
2411
      checkReady();
2412
      getTransaction_call method_call = new getTransaction_call(id, resultHandler, this, ___protocolFactory, ___transport);
2413
      this.___currentMethod = method_call;
2414
      ___manager.call(method_call);
2415
    }
2416
 
2417
    public static class getTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
2418
      private long id;
2419
      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 {
2420
        super(client, protocolFactory, transport, resultHandler, false);
2421
        this.id = id;
2422
      }
2423
 
2424
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2425
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
2426
        getTransaction_args args = new getTransaction_args();
2427
        args.setId(id);
2428
        args.write(prot);
2429
        prot.writeMessageEnd();
2430
      }
2431
 
2432
      public Transaction getResult() throws TransactionServiceException, org.apache.thrift.TException {
2433
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2434
          throw new IllegalStateException("Method call not finished!");
2435
        }
2436
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2437
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2438
        return (new Client(prot)).recv_getTransaction();
2439
      }
2440
    }
2441
 
2442
    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 {
2443
      checkReady();
2444
      getTransactionsForCustomer_call method_call = new getTransactionsForCustomer_call(customerId, from_date, to_date, status, resultHandler, this, ___protocolFactory, ___transport);
2445
      this.___currentMethod = method_call;
2446
      ___manager.call(method_call);
2447
    }
2448
 
2449
    public static class getTransactionsForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2450
      private long customerId;
2451
      private long from_date;
2452
      private long to_date;
2453
      private TransactionStatus status;
2454
      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 {
2455
        super(client, protocolFactory, transport, resultHandler, false);
2456
        this.customerId = customerId;
2457
        this.from_date = from_date;
2458
        this.to_date = to_date;
2459
        this.status = status;
2460
      }
2461
 
2462
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2463
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionsForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2464
        getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();
2465
        args.setCustomerId(customerId);
2466
        args.setFrom_date(from_date);
2467
        args.setTo_date(to_date);
2468
        args.setStatus(status);
2469
        args.write(prot);
2470
        prot.writeMessageEnd();
2471
      }
2472
 
2473
      public List<Transaction> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2474
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2475
          throw new IllegalStateException("Method call not finished!");
2476
        }
2477
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2478
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2479
        return (new Client(prot)).recv_getTransactionsForCustomer();
2480
      }
2481
    }
2482
 
2483
    public void getTransactionsForShoppingCartId(long shoppingCartId, org.apache.thrift.async.AsyncMethodCallback<getTransactionsForShoppingCartId_call> resultHandler) throws org.apache.thrift.TException {
2484
      checkReady();
2485
      getTransactionsForShoppingCartId_call method_call = new getTransactionsForShoppingCartId_call(shoppingCartId, resultHandler, this, ___protocolFactory, ___transport);
2486
      this.___currentMethod = method_call;
2487
      ___manager.call(method_call);
2488
    }
2489
 
2490
    public static class getTransactionsForShoppingCartId_call extends org.apache.thrift.async.TAsyncMethodCall {
2491
      private long shoppingCartId;
2492
      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 {
2493
        super(client, protocolFactory, transport, resultHandler, false);
2494
        this.shoppingCartId = shoppingCartId;
2495
      }
2496
 
2497
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2498
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionsForShoppingCartId", org.apache.thrift.protocol.TMessageType.CALL, 0));
2499
        getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();
2500
        args.setShoppingCartId(shoppingCartId);
2501
        args.write(prot);
2502
        prot.writeMessageEnd();
2503
      }
2504
 
2505
      public List<Transaction> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2506
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2507
          throw new IllegalStateException("Method call not finished!");
2508
        }
2509
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2510
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2511
        return (new Client(prot)).recv_getTransactionsForShoppingCartId();
2512
      }
2513
    }
2514
 
2515
    public void getTransactionStatus(long transactionId, org.apache.thrift.async.AsyncMethodCallback<getTransactionStatus_call> resultHandler) throws org.apache.thrift.TException {
2516
      checkReady();
2517
      getTransactionStatus_call method_call = new getTransactionStatus_call(transactionId, resultHandler, this, ___protocolFactory, ___transport);
2518
      this.___currentMethod = method_call;
2519
      ___manager.call(method_call);
2520
    }
2521
 
2522
    public static class getTransactionStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
2523
      private long transactionId;
2524
      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 {
2525
        super(client, protocolFactory, transport, resultHandler, false);
2526
        this.transactionId = transactionId;
2527
      }
2528
 
2529
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2530
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
2531
        getTransactionStatus_args args = new getTransactionStatus_args();
2532
        args.setTransactionId(transactionId);
2533
        args.write(prot);
2534
        prot.writeMessageEnd();
2535
      }
2536
 
2537
      public TransactionStatus getResult() throws TransactionServiceException, org.apache.thrift.TException {
2538
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2539
          throw new IllegalStateException("Method call not finished!");
2540
        }
2541
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2542
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2543
        return (new Client(prot)).recv_getTransactionStatus();
2544
      }
2545
    }
2546
 
2547
    public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException {
2548
      checkReady();
2549
      changeTransactionStatus_call method_call = new changeTransactionStatus_call(transactionId, status, description, resultHandler, this, ___protocolFactory, ___transport);
2550
      this.___currentMethod = method_call;
2551
      ___manager.call(method_call);
2552
    }
2553
 
2554
    public static class changeTransactionStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
2555
      private long transactionId;
2556
      private TransactionStatus status;
2557
      private String description;
2558
      public changeTransactionStatus_call(long transactionId, TransactionStatus status, String description, 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 {
2559
        super(client, protocolFactory, transport, resultHandler, false);
2560
        this.transactionId = transactionId;
2561
        this.status = status;
2562
        this.description = description;
2563
      }
2564
 
2565
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2566
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeTransactionStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
2567
        changeTransactionStatus_args args = new changeTransactionStatus_args();
2568
        args.setTransactionId(transactionId);
2569
        args.setStatus(status);
2570
        args.setDescription(description);
2571
        args.write(prot);
2572
        prot.writeMessageEnd();
2573
      }
2574
 
2575
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
2576
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2577
          throw new IllegalStateException("Method call not finished!");
2578
        }
2579
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2580
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2581
        return (new Client(prot)).recv_changeTransactionStatus();
2582
      }
2583
    }
2584
 
2585
    public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException {
2586
      checkReady();
2587
      enqueueTransactionInfoEmail_call method_call = new enqueueTransactionInfoEmail_call(transactionId, resultHandler, this, ___protocolFactory, ___transport);
2588
      this.___currentMethod = method_call;
2589
      ___manager.call(method_call);
2590
    }
2591
 
2592
    public static class enqueueTransactionInfoEmail_call extends org.apache.thrift.async.TAsyncMethodCall {
2593
      private long transactionId;
2594
      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 {
2595
        super(client, protocolFactory, transport, resultHandler, false);
2596
        this.transactionId = transactionId;
2597
      }
2598
 
2599
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2600
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enqueueTransactionInfoEmail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2601
        enqueueTransactionInfoEmail_args args = new enqueueTransactionInfoEmail_args();
2602
        args.setTransactionId(transactionId);
2603
        args.write(prot);
2604
        prot.writeMessageEnd();
2605
      }
2606
 
2607
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
2608
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2609
          throw new IllegalStateException("Method call not finished!");
2610
        }
2611
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2612
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2613
        return (new Client(prot)).recv_enqueueTransactionInfoEmail();
2614
      }
2615
    }
2616
 
2617
    public void getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getAllOrders_call> resultHandler) throws org.apache.thrift.TException {
2618
      checkReady();
2619
      getAllOrders_call method_call = new getAllOrders_call(status, from_date, to_date, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2620
      this.___currentMethod = method_call;
2621
      ___manager.call(method_call);
2622
    }
2623
 
2624
    public static class getAllOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
2625
      private OrderStatus status;
2626
      private long from_date;
2627
      private long to_date;
2628
      private long warehouse_id;
2629
      public getAllOrders_call(OrderStatus status, 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 {
2630
        super(client, protocolFactory, transport, resultHandler, false);
2631
        this.status = status;
2632
        this.from_date = from_date;
2633
        this.to_date = to_date;
2634
        this.warehouse_id = warehouse_id;
2635
      }
2636
 
2637
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2638
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
2639
        getAllOrders_args args = new getAllOrders_args();
2640
        args.setStatus(status);
2641
        args.setFrom_date(from_date);
2642
        args.setTo_date(to_date);
2643
        args.setWarehouse_id(warehouse_id);
2644
        args.write(prot);
2645
        prot.writeMessageEnd();
2646
      }
2647
 
2648
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2649
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2650
          throw new IllegalStateException("Method call not finished!");
2651
        }
2652
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2653
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2654
        return (new Client(prot)).recv_getAllOrders();
2655
      }
2656
    }
2657
 
4133 chandransh 2658
    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 {
2659
      checkReady();
2660
      getOrdersInBatch_call method_call = new getOrdersInBatch_call(statuses, offset, limit, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2661
      this.___currentMethod = method_call;
2662
      ___manager.call(method_call);
2663
    }
2664
 
2665
    public static class getOrdersInBatch_call extends org.apache.thrift.async.TAsyncMethodCall {
2666
      private List<OrderStatus> statuses;
2667
      private long offset;
2668
      private long limit;
2669
      private long warehouse_id;
2670
      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 {
2671
        super(client, protocolFactory, transport, resultHandler, false);
2672
        this.statuses = statuses;
2673
        this.offset = offset;
2674
        this.limit = limit;
2675
        this.warehouse_id = warehouse_id;
2676
      }
2677
 
2678
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2679
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersInBatch", org.apache.thrift.protocol.TMessageType.CALL, 0));
2680
        getOrdersInBatch_args args = new getOrdersInBatch_args();
2681
        args.setStatuses(statuses);
2682
        args.setOffset(offset);
2683
        args.setLimit(limit);
2684
        args.setWarehouse_id(warehouse_id);
2685
        args.write(prot);
2686
        prot.writeMessageEnd();
2687
      }
2688
 
2689
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2690
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2691
          throw new IllegalStateException("Method call not finished!");
2692
        }
2693
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2694
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2695
        return (new Client(prot)).recv_getOrdersInBatch();
2696
      }
2697
    }
2698
 
2699
    public void getOrderCount(List<OrderStatus> statuses, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getOrderCount_call> resultHandler) throws org.apache.thrift.TException {
2700
      checkReady();
2701
      getOrderCount_call method_call = new getOrderCount_call(statuses, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2702
      this.___currentMethod = method_call;
2703
      ___manager.call(method_call);
2704
    }
2705
 
2706
    public static class getOrderCount_call extends org.apache.thrift.async.TAsyncMethodCall {
2707
      private List<OrderStatus> statuses;
2708
      private long warehouseId;
2709
      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 {
2710
        super(client, protocolFactory, transport, resultHandler, false);
2711
        this.statuses = statuses;
2712
        this.warehouseId = warehouseId;
2713
      }
2714
 
2715
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2716
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
2717
        getOrderCount_args args = new getOrderCount_args();
2718
        args.setStatuses(statuses);
2719
        args.setWarehouseId(warehouseId);
2720
        args.write(prot);
2721
        prot.writeMessageEnd();
2722
      }
2723
 
2724
      public int getResult() throws TransactionServiceException, org.apache.thrift.TException {
2725
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2726
          throw new IllegalStateException("Method call not finished!");
2727
        }
2728
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2729
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2730
        return (new Client(prot)).recv_getOrderCount();
2731
      }
2732
    }
2733
 
3430 rajveer 2734
    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 {
2735
      checkReady();
2736
      getOrdersByBillingDate_call method_call = new getOrdersByBillingDate_call(status, start_billing_date, end_billing_date, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2737
      this.___currentMethod = method_call;
2738
      ___manager.call(method_call);
2739
    }
2740
 
2741
    public static class getOrdersByBillingDate_call extends org.apache.thrift.async.TAsyncMethodCall {
2742
      private OrderStatus status;
2743
      private long start_billing_date;
2744
      private long end_billing_date;
2745
      private long warehouse_id;
2746
      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 {
2747
        super(client, protocolFactory, transport, resultHandler, false);
2748
        this.status = status;
2749
        this.start_billing_date = start_billing_date;
2750
        this.end_billing_date = end_billing_date;
2751
        this.warehouse_id = warehouse_id;
2752
      }
2753
 
2754
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2755
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersByBillingDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
2756
        getOrdersByBillingDate_args args = new getOrdersByBillingDate_args();
2757
        args.setStatus(status);
2758
        args.setStart_billing_date(start_billing_date);
2759
        args.setEnd_billing_date(end_billing_date);
2760
        args.setWarehouse_id(warehouse_id);
2761
        args.write(prot);
2762
        prot.writeMessageEnd();
2763
      }
2764
 
2765
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2766
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2767
          throw new IllegalStateException("Method call not finished!");
2768
        }
2769
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2770
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2771
        return (new Client(prot)).recv_getOrdersByBillingDate();
2772
      }
2773
    }
2774
 
3451 chandransh 2775
    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 {
3430 rajveer 2776
      checkReady();
3451 chandransh 2777
      getOrdersByShippingDate_call method_call = new getOrdersByShippingDate_call(fromShippingDate, toShippingDate, providerId, warehouseId, cod, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 2778
      this.___currentMethod = method_call;
2779
      ___manager.call(method_call);
2780
    }
2781
 
2782
    public static class getOrdersByShippingDate_call extends org.apache.thrift.async.TAsyncMethodCall {
2783
      private long fromShippingDate;
2784
      private long toShippingDate;
2785
      private long providerId;
2786
      private long warehouseId;
3451 chandransh 2787
      private boolean cod;
2788
      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 {
3430 rajveer 2789
        super(client, protocolFactory, transport, resultHandler, false);
2790
        this.fromShippingDate = fromShippingDate;
2791
        this.toShippingDate = toShippingDate;
2792
        this.providerId = providerId;
2793
        this.warehouseId = warehouseId;
3451 chandransh 2794
        this.cod = cod;
3430 rajveer 2795
      }
2796
 
2797
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2798
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersByShippingDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
2799
        getOrdersByShippingDate_args args = new getOrdersByShippingDate_args();
2800
        args.setFromShippingDate(fromShippingDate);
2801
        args.setToShippingDate(toShippingDate);
2802
        args.setProviderId(providerId);
2803
        args.setWarehouseId(warehouseId);
3451 chandransh 2804
        args.setCod(cod);
3430 rajveer 2805
        args.write(prot);
2806
        prot.writeMessageEnd();
2807
      }
2808
 
2809
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2810
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2811
          throw new IllegalStateException("Method call not finished!");
2812
        }
2813
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2814
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2815
        return (new Client(prot)).recv_getOrdersByShippingDate();
2816
      }
2817
    }
2818
 
2819
    public void getReturnableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<getReturnableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException {
2820
      checkReady();
2821
      getReturnableOrdersForCustomer_call method_call = new getReturnableOrdersForCustomer_call(customer_id, limit, resultHandler, this, ___protocolFactory, ___transport);
2822
      this.___currentMethod = method_call;
2823
      ___manager.call(method_call);
2824
    }
2825
 
2826
    public static class getReturnableOrdersForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2827
      private long customer_id;
2828
      private long limit;
2829
      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 {
2830
        super(client, protocolFactory, transport, resultHandler, false);
2831
        this.customer_id = customer_id;
2832
        this.limit = limit;
2833
      }
2834
 
2835
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2836
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReturnableOrdersForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2837
        getReturnableOrdersForCustomer_args args = new getReturnableOrdersForCustomer_args();
2838
        args.setCustomer_id(customer_id);
2839
        args.setLimit(limit);
2840
        args.write(prot);
2841
        prot.writeMessageEnd();
2842
      }
2843
 
2844
      public List<Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2845
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2846
          throw new IllegalStateException("Method call not finished!");
2847
        }
2848
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2849
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2850
        return (new Client(prot)).recv_getReturnableOrdersForCustomer();
2851
      }
2852
    }
2853
 
2854
    public void getCancellableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<getCancellableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException {
2855
      checkReady();
2856
      getCancellableOrdersForCustomer_call method_call = new getCancellableOrdersForCustomer_call(customer_id, limit, resultHandler, this, ___protocolFactory, ___transport);
2857
      this.___currentMethod = method_call;
2858
      ___manager.call(method_call);
2859
    }
2860
 
2861
    public static class getCancellableOrdersForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2862
      private long customer_id;
2863
      private long limit;
2864
      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 {
2865
        super(client, protocolFactory, transport, resultHandler, false);
2866
        this.customer_id = customer_id;
2867
        this.limit = limit;
2868
      }
2869
 
2870
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2871
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCancellableOrdersForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2872
        getCancellableOrdersForCustomer_args args = new getCancellableOrdersForCustomer_args();
2873
        args.setCustomer_id(customer_id);
2874
        args.setLimit(limit);
2875
        args.write(prot);
2876
        prot.writeMessageEnd();
2877
      }
2878
 
2879
      public List<Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2880
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2881
          throw new IllegalStateException("Method call not finished!");
2882
        }
2883
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2884
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2885
        return (new Client(prot)).recv_getCancellableOrdersForCustomer();
2886
      }
2887
    }
2888
 
2889
    public void changeOrderStatus(long orderId, OrderStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<changeOrderStatus_call> resultHandler) throws org.apache.thrift.TException {
2890
      checkReady();
2891
      changeOrderStatus_call method_call = new changeOrderStatus_call(orderId, status, description, resultHandler, this, ___protocolFactory, ___transport);
2892
      this.___currentMethod = method_call;
2893
      ___manager.call(method_call);
2894
    }
2895
 
2896
    public static class changeOrderStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
2897
      private long orderId;
2898
      private OrderStatus status;
2899
      private String description;
2900
      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 {
2901
        super(client, protocolFactory, transport, resultHandler, false);
2902
        this.orderId = orderId;
2903
        this.status = status;
2904
        this.description = description;
2905
      }
2906
 
2907
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2908
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeOrderStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
2909
        changeOrderStatus_args args = new changeOrderStatus_args();
2910
        args.setOrderId(orderId);
2911
        args.setStatus(status);
2912
        args.setDescription(description);
2913
        args.write(prot);
2914
        prot.writeMessageEnd();
2915
      }
2916
 
2917
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
2918
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2919
          throw new IllegalStateException("Method call not finished!");
2920
        }
2921
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2922
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2923
        return (new Client(prot)).recv_changeOrderStatus();
2924
      }
2925
    }
2926
 
2927
    public void getOrdersForTransaction(long transactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<getOrdersForTransaction_call> resultHandler) throws org.apache.thrift.TException {
2928
      checkReady();
2929
      getOrdersForTransaction_call method_call = new getOrdersForTransaction_call(transactionId, customerId, resultHandler, this, ___protocolFactory, ___transport);
2930
      this.___currentMethod = method_call;
2931
      ___manager.call(method_call);
2932
    }
2933
 
2934
    public static class getOrdersForTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
2935
      private long transactionId;
2936
      private long customerId;
2937
      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 {
2938
        super(client, protocolFactory, transport, resultHandler, false);
2939
        this.transactionId = transactionId;
2940
        this.customerId = customerId;
2941
      }
2942
 
2943
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2944
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersForTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
2945
        getOrdersForTransaction_args args = new getOrdersForTransaction_args();
2946
        args.setTransactionId(transactionId);
2947
        args.setCustomerId(customerId);
2948
        args.write(prot);
2949
        prot.writeMessageEnd();
2950
      }
2951
 
2952
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2953
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2954
          throw new IllegalStateException("Method call not finished!");
2955
        }
2956
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2957
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2958
        return (new Client(prot)).recv_getOrdersForTransaction();
2959
      }
2960
    }
2961
 
2962
    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 {
2963
      checkReady();
2964
      getOrdersForCustomer_call method_call = new getOrdersForCustomer_call(customerId, from_date, to_date, statuses, resultHandler, this, ___protocolFactory, ___transport);
2965
      this.___currentMethod = method_call;
2966
      ___manager.call(method_call);
2967
    }
2968
 
2969
    public static class getOrdersForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2970
      private long customerId;
2971
      private long from_date;
2972
      private long to_date;
2973
      private List<OrderStatus> statuses;
2974
      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 {
2975
        super(client, protocolFactory, transport, resultHandler, false);
2976
        this.customerId = customerId;
2977
        this.from_date = from_date;
2978
        this.to_date = to_date;
2979
        this.statuses = statuses;
2980
      }
2981
 
2982
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2983
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2984
        getOrdersForCustomer_args args = new getOrdersForCustomer_args();
2985
        args.setCustomerId(customerId);
2986
        args.setFrom_date(from_date);
2987
        args.setTo_date(to_date);
2988
        args.setStatuses(statuses);
2989
        args.write(prot);
2990
        prot.writeMessageEnd();
2991
      }
2992
 
2993
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2994
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2995
          throw new IllegalStateException("Method call not finished!");
2996
        }
2997
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2998
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2999
        return (new Client(prot)).recv_getOrdersForCustomer();
3000
      }
3001
    }
3002
 
3003
    public void createOrder(Order order, org.apache.thrift.async.AsyncMethodCallback<createOrder_call> resultHandler) throws org.apache.thrift.TException {
3004
      checkReady();
3005
      createOrder_call method_call = new createOrder_call(order, resultHandler, this, ___protocolFactory, ___transport);
3006
      this.___currentMethod = method_call;
3007
      ___manager.call(method_call);
3008
    }
3009
 
3010
    public static class createOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3011
      private Order order;
3012
      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 {
3013
        super(client, protocolFactory, transport, resultHandler, false);
3014
        this.order = order;
3015
      }
3016
 
3017
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3018
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3019
        createOrder_args args = new createOrder_args();
3020
        args.setOrder(order);
3021
        args.write(prot);
3022
        prot.writeMessageEnd();
3023
      }
3024
 
3025
      public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
3026
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3027
          throw new IllegalStateException("Method call not finished!");
3028
        }
3029
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3030
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3031
        return (new Client(prot)).recv_createOrder();
3032
      }
3033
    }
3034
 
3035
    public void getOrder(long id, org.apache.thrift.async.AsyncMethodCallback<getOrder_call> resultHandler) throws org.apache.thrift.TException {
3036
      checkReady();
3037
      getOrder_call method_call = new getOrder_call(id, resultHandler, this, ___protocolFactory, ___transport);
3038
      this.___currentMethod = method_call;
3039
      ___manager.call(method_call);
3040
    }
3041
 
3042
    public static class getOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3043
      private long id;
3044
      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 {
3045
        super(client, protocolFactory, transport, resultHandler, false);
3046
        this.id = id;
3047
      }
3048
 
3049
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3050
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3051
        getOrder_args args = new getOrder_args();
3052
        args.setId(id);
3053
        args.write(prot);
3054
        prot.writeMessageEnd();
3055
      }
3056
 
3057
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
3058
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3059
          throw new IllegalStateException("Method call not finished!");
3060
        }
3061
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3062
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3063
        return (new Client(prot)).recv_getOrder();
3064
      }
3065
    }
3066
 
3067
    public void getLineItemsForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getLineItemsForOrder_call> resultHandler) throws org.apache.thrift.TException {
3068
      checkReady();
3069
      getLineItemsForOrder_call method_call = new getLineItemsForOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3070
      this.___currentMethod = method_call;
3071
      ___manager.call(method_call);
3072
    }
3073
 
3074
    public static class getLineItemsForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3075
      private long orderId;
3076
      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 {
3077
        super(client, protocolFactory, transport, resultHandler, false);
3078
        this.orderId = orderId;
3079
      }
3080
 
3081
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3082
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLineItemsForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3083
        getLineItemsForOrder_args args = new getLineItemsForOrder_args();
3084
        args.setOrderId(orderId);
3085
        args.write(prot);
3086
        prot.writeMessageEnd();
3087
      }
3088
 
3089
      public List<LineItem> getResult() throws TransactionServiceException, org.apache.thrift.TException {
3090
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3091
          throw new IllegalStateException("Method call not finished!");
3092
        }
3093
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3094
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3095
        return (new Client(prot)).recv_getLineItemsForOrder();
3096
      }
3097
    }
3098
 
3099
    public void getOrderForCustomer(long orderId, long customerId, org.apache.thrift.async.AsyncMethodCallback<getOrderForCustomer_call> resultHandler) throws org.apache.thrift.TException {
3100
      checkReady();
3101
      getOrderForCustomer_call method_call = new getOrderForCustomer_call(orderId, customerId, resultHandler, this, ___protocolFactory, ___transport);
3102
      this.___currentMethod = method_call;
3103
      ___manager.call(method_call);
3104
    }
3105
 
3106
    public static class getOrderForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
3107
      private long orderId;
3108
      private long customerId;
3109
      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 {
3110
        super(client, protocolFactory, transport, resultHandler, false);
3111
        this.orderId = orderId;
3112
        this.customerId = customerId;
3113
      }
3114
 
3115
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3116
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
3117
        getOrderForCustomer_args args = new getOrderForCustomer_args();
3118
        args.setOrderId(orderId);
3119
        args.setCustomerId(customerId);
3120
        args.write(prot);
3121
        prot.writeMessageEnd();
3122
      }
3123
 
3124
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
3125
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3126
          throw new IllegalStateException("Method call not finished!");
3127
        }
3128
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3129
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3130
        return (new Client(prot)).recv_getOrderForCustomer();
3131
      }
3132
    }
3133
 
3134
    public void getAlerts(long orderId, boolean valid, org.apache.thrift.async.AsyncMethodCallback<getAlerts_call> resultHandler) throws org.apache.thrift.TException {
3135
      checkReady();
3136
      getAlerts_call method_call = new getAlerts_call(orderId, valid, resultHandler, this, ___protocolFactory, ___transport);
3137
      this.___currentMethod = method_call;
3138
      ___manager.call(method_call);
3139
    }
3140
 
3141
    public static class getAlerts_call extends org.apache.thrift.async.TAsyncMethodCall {
3142
      private long orderId;
3143
      private boolean valid;
3144
      public getAlerts_call(long orderId, boolean valid, 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 {
3145
        super(client, protocolFactory, transport, resultHandler, false);
3146
        this.orderId = orderId;
3147
        this.valid = valid;
3148
      }
3149
 
3150
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3151
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAlerts", org.apache.thrift.protocol.TMessageType.CALL, 0));
3152
        getAlerts_args args = new getAlerts_args();
3153
        args.setOrderId(orderId);
3154
        args.setValid(valid);
3155
        args.write(prot);
3156
        prot.writeMessageEnd();
3157
      }
3158
 
3159
      public List<Alert> getResult() throws org.apache.thrift.TException {
3160
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3161
          throw new IllegalStateException("Method call not finished!");
3162
        }
3163
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3164
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3165
        return (new Client(prot)).recv_getAlerts();
3166
      }
3167
    }
3168
 
3169
    public void setAlert(long orderId, boolean unset, long type, String comment, org.apache.thrift.async.AsyncMethodCallback<setAlert_call> resultHandler) throws org.apache.thrift.TException {
3170
      checkReady();
3171
      setAlert_call method_call = new setAlert_call(orderId, unset, type, comment, resultHandler, this, ___protocolFactory, ___transport);
3172
      this.___currentMethod = method_call;
3173
      ___manager.call(method_call);
3174
    }
3175
 
3176
    public static class setAlert_call extends org.apache.thrift.async.TAsyncMethodCall {
3177
      private long orderId;
3178
      private boolean unset;
3179
      private long type;
3180
      private String comment;
3181
      public setAlert_call(long orderId, boolean unset, long type, String comment, org.apache.thrift.async.AsyncMethodCallback<setAlert_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 {
3182
        super(client, protocolFactory, transport, resultHandler, false);
3183
        this.orderId = orderId;
3184
        this.unset = unset;
3185
        this.type = type;
3186
        this.comment = comment;
3187
      }
3188
 
3189
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3190
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setAlert", org.apache.thrift.protocol.TMessageType.CALL, 0));
3191
        setAlert_args args = new setAlert_args();
3192
        args.setOrderId(orderId);
3193
        args.setUnset(unset);
3194
        args.setType(type);
3195
        args.setComment(comment);
3196
        args.write(prot);
3197
        prot.writeMessageEnd();
3198
      }
3199
 
3200
      public void getResult() throws org.apache.thrift.TException {
3201
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3202
          throw new IllegalStateException("Method call not finished!");
3203
        }
3204
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3205
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3206
        (new Client(prot)).recv_setAlert();
3207
      }
3208
    }
3209
 
3210
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException {
3211
      checkReady();
3212
      getValidOrderCount_call method_call = new getValidOrderCount_call(resultHandler, this, ___protocolFactory, ___transport);
3213
      this.___currentMethod = method_call;
3214
      ___manager.call(method_call);
3215
    }
3216
 
3217
    public static class getValidOrderCount_call extends org.apache.thrift.async.TAsyncMethodCall {
3218
      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 {
3219
        super(client, protocolFactory, transport, resultHandler, false);
3220
      }
3221
 
3222
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3223
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidOrderCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
3224
        getValidOrderCount_args args = new getValidOrderCount_args();
3225
        args.write(prot);
3226
        prot.writeMessageEnd();
3227
      }
3228
 
3229
      public long getResult() throws org.apache.thrift.TException {
3230
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3231
          throw new IllegalStateException("Method call not finished!");
3232
        }
3233
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3234
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3235
        return (new Client(prot)).recv_getValidOrderCount();
3236
      }
3237
    }
3238
 
3239
    public void getNoOfCustomersWithSuccessfulTransaction(org.apache.thrift.async.AsyncMethodCallback<getNoOfCustomersWithSuccessfulTransaction_call> resultHandler) throws org.apache.thrift.TException {
3240
      checkReady();
3241
      getNoOfCustomersWithSuccessfulTransaction_call method_call = new getNoOfCustomersWithSuccessfulTransaction_call(resultHandler, this, ___protocolFactory, ___transport);
3242
      this.___currentMethod = method_call;
3243
      ___manager.call(method_call);
3244
    }
3245
 
3246
    public static class getNoOfCustomersWithSuccessfulTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
3247
      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 {
3248
        super(client, protocolFactory, transport, resultHandler, false);
3249
      }
3250
 
3251
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3252
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNoOfCustomersWithSuccessfulTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
3253
        getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();
3254
        args.write(prot);
3255
        prot.writeMessageEnd();
3256
      }
3257
 
3258
      public long getResult() throws org.apache.thrift.TException {
3259
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3260
          throw new IllegalStateException("Method call not finished!");
3261
        }
3262
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3263
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3264
        return (new Client(prot)).recv_getNoOfCustomersWithSuccessfulTransaction();
3265
      }
3266
    }
3267
 
3268
    public void getValidOrdersAmountRange(org.apache.thrift.async.AsyncMethodCallback<getValidOrdersAmountRange_call> resultHandler) throws org.apache.thrift.TException {
3269
      checkReady();
3270
      getValidOrdersAmountRange_call method_call = new getValidOrdersAmountRange_call(resultHandler, this, ___protocolFactory, ___transport);
3271
      this.___currentMethod = method_call;
3272
      ___manager.call(method_call);
3273
    }
3274
 
3275
    public static class getValidOrdersAmountRange_call extends org.apache.thrift.async.TAsyncMethodCall {
3276
      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 {
3277
        super(client, protocolFactory, transport, resultHandler, false);
3278
      }
3279
 
3280
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3281
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidOrdersAmountRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
3282
        getValidOrdersAmountRange_args args = new getValidOrdersAmountRange_args();
3283
        args.write(prot);
3284
        prot.writeMessageEnd();
3285
      }
3286
 
3287
      public List<Double> getResult() throws org.apache.thrift.TException {
3288
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3289
          throw new IllegalStateException("Method call not finished!");
3290
        }
3291
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3292
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3293
        return (new Client(prot)).recv_getValidOrdersAmountRange();
3294
      }
3295
    }
3296
 
3297
    public void getValidOrders(long limit, org.apache.thrift.async.AsyncMethodCallback<getValidOrders_call> resultHandler) throws org.apache.thrift.TException {
3298
      checkReady();
3299
      getValidOrders_call method_call = new getValidOrders_call(limit, resultHandler, this, ___protocolFactory, ___transport);
3300
      this.___currentMethod = method_call;
3301
      ___manager.call(method_call);
3302
    }
3303
 
3304
    public static class getValidOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
3305
      private long limit;
3306
      public getValidOrders_call(long limit, 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 {
3307
        super(client, protocolFactory, transport, resultHandler, false);
3308
        this.limit = limit;
3309
      }
3310
 
3311
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3312
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
3313
        getValidOrders_args args = new getValidOrders_args();
3314
        args.setLimit(limit);
3315
        args.write(prot);
3316
        prot.writeMessageEnd();
3317
      }
3318
 
3319
      public List<Order> getResult() throws org.apache.thrift.TException {
3320
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3321
          throw new IllegalStateException("Method call not finished!");
3322
        }
3323
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3324
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3325
        return (new Client(prot)).recv_getValidOrders();
3326
      }
3327
    }
3328
 
3329
    public void batchOrders(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<batchOrders_call> resultHandler) throws org.apache.thrift.TException {
3330
      checkReady();
3331
      batchOrders_call method_call = new batchOrders_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3332
      this.___currentMethod = method_call;
3333
      ___manager.call(method_call);
3334
    }
3335
 
3336
    public static class batchOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
3337
      private long warehouseId;
3338
      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 {
3339
        super(client, protocolFactory, transport, resultHandler, false);
3340
        this.warehouseId = warehouseId;
3341
      }
3342
 
3343
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3344
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("batchOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
3345
        batchOrders_args args = new batchOrders_args();
3346
        args.setWarehouseId(warehouseId);
3347
        args.write(prot);
3348
        prot.writeMessageEnd();
3349
      }
3350
 
3351
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
3352
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3353
          throw new IllegalStateException("Method call not finished!");
3354
        }
3355
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3356
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3357
        return (new Client(prot)).recv_batchOrders();
3358
      }
3359
    }
3360
 
3361
    public void markOrderAsOutOfStock(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderAsOutOfStock_call> resultHandler) throws org.apache.thrift.TException {
3362
      checkReady();
3363
      markOrderAsOutOfStock_call method_call = new markOrderAsOutOfStock_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3364
      this.___currentMethod = method_call;
3365
      ___manager.call(method_call);
3366
    }
3367
 
3368
    public static class markOrderAsOutOfStock_call extends org.apache.thrift.async.TAsyncMethodCall {
3369
      private long orderId;
3370
      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 {
3371
        super(client, protocolFactory, transport, resultHandler, false);
3372
        this.orderId = orderId;
3373
      }
3374
 
3375
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3376
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderAsOutOfStock", org.apache.thrift.protocol.TMessageType.CALL, 0));
3377
        markOrderAsOutOfStock_args args = new markOrderAsOutOfStock_args();
3378
        args.setOrderId(orderId);
3379
        args.write(prot);
3380
        prot.writeMessageEnd();
3381
      }
3382
 
3383
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3384
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3385
          throw new IllegalStateException("Method call not finished!");
3386
        }
3387
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3388
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3389
        return (new Client(prot)).recv_markOrderAsOutOfStock();
3390
      }
3391
    }
3392
 
3393
    public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<verifyOrder_call> resultHandler) throws org.apache.thrift.TException {
3394
      checkReady();
3395
      verifyOrder_call method_call = new verifyOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3396
      this.___currentMethod = method_call;
3397
      ___manager.call(method_call);
3398
    }
3399
 
3400
    public static class verifyOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3401
      private long orderId;
3402
      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 {
3403
        super(client, protocolFactory, transport, resultHandler, false);
3404
        this.orderId = orderId;
3405
      }
3406
 
3407
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3408
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("verifyOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3409
        verifyOrder_args args = new verifyOrder_args();
3410
        args.setOrderId(orderId);
3411
        args.write(prot);
3412
        prot.writeMessageEnd();
3413
      }
3414
 
3415
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3416
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3417
          throw new IllegalStateException("Method call not finished!");
3418
        }
3419
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3420
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3421
        return (new Client(prot)).recv_verifyOrder();
3422
      }
3423
    }
3424
 
3425
    public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<acceptOrder_call> resultHandler) throws org.apache.thrift.TException {
3426
      checkReady();
3427
      acceptOrder_call method_call = new acceptOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3428
      this.___currentMethod = method_call;
3429
      ___manager.call(method_call);
3430
    }
3431
 
3432
    public static class acceptOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3433
      private long orderId;
3434
      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 {
3435
        super(client, protocolFactory, transport, resultHandler, false);
3436
        this.orderId = orderId;
3437
      }
3438
 
3439
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3440
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("acceptOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3441
        acceptOrder_args args = new acceptOrder_args();
3442
        args.setOrderId(orderId);
3443
        args.write(prot);
3444
        prot.writeMessageEnd();
3445
      }
3446
 
3447
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3448
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3449
          throw new IllegalStateException("Method call not finished!");
3450
        }
3451
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3452
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3453
        return (new Client(prot)).recv_acceptOrder();
3454
      }
3455
    }
3456
 
4283 anupam.sin 3457
    public void addBillingDetails(long orderId, String invoice_number, long imeiNumber, String itemNumber, String billed_by, long jacketNumber, long billingType, long vendorId, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 3458
      checkReady();
4283 anupam.sin 3459
      addBillingDetails_call method_call = new addBillingDetails_call(orderId, invoice_number, imeiNumber, itemNumber, billed_by, jacketNumber, billingType, vendorId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 3460
      this.___currentMethod = method_call;
3461
      ___manager.call(method_call);
3462
    }
3463
 
3464
    public static class addBillingDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
3465
      private long orderId;
3466
      private String invoice_number;
4283 anupam.sin 3467
      private long imeiNumber;
3468
      private String itemNumber;
3430 rajveer 3469
      private String billed_by;
4264 rajveer 3470
      private long jacketNumber;
4283 anupam.sin 3471
      private long billingType;
3472
      private long vendorId;
3473
      public addBillingDetails_call(long orderId, String invoice_number, long imeiNumber, String itemNumber, String billed_by, long jacketNumber, long billingType, long vendorId, 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 {
3430 rajveer 3474
        super(client, protocolFactory, transport, resultHandler, false);
3475
        this.orderId = orderId;
3476
        this.invoice_number = invoice_number;
4283 anupam.sin 3477
        this.imeiNumber = imeiNumber;
3478
        this.itemNumber = itemNumber;
3430 rajveer 3479
        this.billed_by = billed_by;
4264 rajveer 3480
        this.jacketNumber = jacketNumber;
4283 anupam.sin 3481
        this.billingType = billingType;
3482
        this.vendorId = vendorId;
3430 rajveer 3483
      }
3484
 
3485
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3486
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBillingDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
3487
        addBillingDetails_args args = new addBillingDetails_args();
3488
        args.setOrderId(orderId);
3489
        args.setInvoice_number(invoice_number);
4283 anupam.sin 3490
        args.setImeiNumber(imeiNumber);
3491
        args.setItemNumber(itemNumber);
3430 rajveer 3492
        args.setBilled_by(billed_by);
4264 rajveer 3493
        args.setJacketNumber(jacketNumber);
4283 anupam.sin 3494
        args.setBillingType(billingType);
3495
        args.setVendorId(vendorId);
3430 rajveer 3496
        args.write(prot);
3497
        prot.writeMessageEnd();
3498
      }
3499
 
3500
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3501
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3502
          throw new IllegalStateException("Method call not finished!");
3503
        }
3504
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3505
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3506
        return (new Client(prot)).recv_addBillingDetails();
3507
      }
3508
    }
3509
 
3510
    public void markOrdersAsManifested(long warehouseId, long providerId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsManifested_call> resultHandler) throws org.apache.thrift.TException {
3511
      checkReady();
3512
      markOrdersAsManifested_call method_call = new markOrdersAsManifested_call(warehouseId, providerId, cod, resultHandler, this, ___protocolFactory, ___transport);
3513
      this.___currentMethod = method_call;
3514
      ___manager.call(method_call);
3515
    }
3516
 
3517
    public static class markOrdersAsManifested_call extends org.apache.thrift.async.TAsyncMethodCall {
3518
      private long warehouseId;
3519
      private long providerId;
3520
      private boolean cod;
3521
      public markOrdersAsManifested_call(long warehouseId, long providerId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsManifested_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 {
3522
        super(client, protocolFactory, transport, resultHandler, false);
3523
        this.warehouseId = warehouseId;
3524
        this.providerId = providerId;
3525
        this.cod = cod;
3526
      }
3527
 
3528
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3529
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsManifested", org.apache.thrift.protocol.TMessageType.CALL, 0));
3530
        markOrdersAsManifested_args args = new markOrdersAsManifested_args();
3531
        args.setWarehouseId(warehouseId);
3532
        args.setProviderId(providerId);
3533
        args.setCod(cod);
3534
        args.write(prot);
3535
        prot.writeMessageEnd();
3536
      }
3537
 
3538
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3539
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3540
          throw new IllegalStateException("Method call not finished!");
3541
        }
3542
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3543
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3544
        return (new Client(prot)).recv_markOrdersAsManifested();
3545
      }
3546
    }
3547
 
3548
    public void markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsPickedUp_call> resultHandler) throws org.apache.thrift.TException {
3549
      checkReady();
3550
      markOrdersAsPickedUp_call method_call = new markOrdersAsPickedUp_call(providerId, pickupDetails, resultHandler, this, ___protocolFactory, ___transport);
3551
      this.___currentMethod = method_call;
3552
      ___manager.call(method_call);
3553
    }
3554
 
3555
    public static class markOrdersAsPickedUp_call extends org.apache.thrift.async.TAsyncMethodCall {
3556
      private long providerId;
3557
      private Map<String,String> pickupDetails;
3558
      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 {
3559
        super(client, protocolFactory, transport, resultHandler, false);
3560
        this.providerId = providerId;
3561
        this.pickupDetails = pickupDetails;
3562
      }
3563
 
3564
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3565
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsPickedUp", org.apache.thrift.protocol.TMessageType.CALL, 0));
3566
        markOrdersAsPickedUp_args args = new markOrdersAsPickedUp_args();
3567
        args.setProviderId(providerId);
3568
        args.setPickupDetails(pickupDetails);
3569
        args.write(prot);
3570
        prot.writeMessageEnd();
3571
      }
3572
 
3573
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
3574
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3575
          throw new IllegalStateException("Method call not finished!");
3576
        }
3577
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3578
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3579
        return (new Client(prot)).recv_markOrdersAsPickedUp();
3580
      }
3581
    }
3582
 
3583
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsDelivered_call> resultHandler) throws org.apache.thrift.TException {
3584
      checkReady();
3585
      markOrdersAsDelivered_call method_call = new markOrdersAsDelivered_call(providerId, deliveredOrders, resultHandler, this, ___protocolFactory, ___transport);
3586
      this.___currentMethod = method_call;
3587
      ___manager.call(method_call);
3588
    }
3589
 
3590
    public static class markOrdersAsDelivered_call extends org.apache.thrift.async.TAsyncMethodCall {
3591
      private long providerId;
3592
      private Map<String,String> deliveredOrders;
3593
      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 {
3594
        super(client, protocolFactory, transport, resultHandler, false);
3595
        this.providerId = providerId;
3596
        this.deliveredOrders = deliveredOrders;
3597
      }
3598
 
3599
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3600
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsDelivered", org.apache.thrift.protocol.TMessageType.CALL, 0));
3601
        markOrdersAsDelivered_args args = new markOrdersAsDelivered_args();
3602
        args.setProviderId(providerId);
3603
        args.setDeliveredOrders(deliveredOrders);
3604
        args.write(prot);
3605
        prot.writeMessageEnd();
3606
      }
3607
 
3608
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
3609
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3610
          throw new IllegalStateException("Method call not finished!");
3611
        }
3612
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3613
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3614
        (new Client(prot)).recv_markOrdersAsDelivered();
3615
      }
3616
    }
3617
 
3618
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsFailed_call> resultHandler) throws org.apache.thrift.TException {
3619
      checkReady();
3620
      markOrdersAsFailed_call method_call = new markOrdersAsFailed_call(providerId, returnedOrders, resultHandler, this, ___protocolFactory, ___transport);
3621
      this.___currentMethod = method_call;
3622
      ___manager.call(method_call);
3623
    }
3624
 
3625
    public static class markOrdersAsFailed_call extends org.apache.thrift.async.TAsyncMethodCall {
3626
      private long providerId;
3627
      private Map<String,String> returnedOrders;
3628
      public markOrdersAsFailed_call(long providerId, Map<String,String> returnedOrders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsFailed_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 {
3629
        super(client, protocolFactory, transport, resultHandler, false);
3630
        this.providerId = providerId;
3631
        this.returnedOrders = returnedOrders;
3632
      }
3633
 
3634
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3635
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsFailed", org.apache.thrift.protocol.TMessageType.CALL, 0));
3636
        markOrdersAsFailed_args args = new markOrdersAsFailed_args();
3637
        args.setProviderId(providerId);
3638
        args.setReturnedOrders(returnedOrders);
3639
        args.write(prot);
3640
        prot.writeMessageEnd();
3641
      }
3642
 
3643
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
3644
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3645
          throw new IllegalStateException("Method call not finished!");
3646
        }
3647
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3648
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3649
        (new Client(prot)).recv_markOrdersAsFailed();
3650
      }
3651
    }
3652
 
3653
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders, org.apache.thrift.async.AsyncMethodCallback<updateNonDeliveryReason_call> resultHandler) throws org.apache.thrift.TException {
3654
      checkReady();
3655
      updateNonDeliveryReason_call method_call = new updateNonDeliveryReason_call(providerId, undeliveredOrders, resultHandler, this, ___protocolFactory, ___transport);
3656
      this.___currentMethod = method_call;
3657
      ___manager.call(method_call);
3658
    }
3659
 
3660
    public static class updateNonDeliveryReason_call extends org.apache.thrift.async.TAsyncMethodCall {
3661
      private long providerId;
3662
      private Map<String,String> undeliveredOrders;
3663
      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 {
3664
        super(client, protocolFactory, transport, resultHandler, false);
3665
        this.providerId = providerId;
3666
        this.undeliveredOrders = undeliveredOrders;
3667
      }
3668
 
3669
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3670
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateNonDeliveryReason", org.apache.thrift.protocol.TMessageType.CALL, 0));
3671
        updateNonDeliveryReason_args args = new updateNonDeliveryReason_args();
3672
        args.setProviderId(providerId);
3673
        args.setUndeliveredOrders(undeliveredOrders);
3674
        args.write(prot);
3675
        prot.writeMessageEnd();
3676
      }
3677
 
3678
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
3679
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3680
          throw new IllegalStateException("Method call not finished!");
3681
        }
3682
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3683
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3684
        (new Client(prot)).recv_updateNonDeliveryReason();
3685
      }
3686
    }
3687
 
3688
    public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException {
3689
      checkReady();
3690
      getUndeliveredOrders_call method_call = new getUndeliveredOrders_call(providerId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3691
      this.___currentMethod = method_call;
3692
      ___manager.call(method_call);
3693
    }
3694
 
3695
    public static class getUndeliveredOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
3696
      private long providerId;
3697
      private long warehouseId;
3698
      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 {
3699
        super(client, protocolFactory, transport, resultHandler, false);
3700
        this.providerId = providerId;
3701
        this.warehouseId = warehouseId;
3702
      }
3703
 
3704
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3705
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUndeliveredOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
3706
        getUndeliveredOrders_args args = new getUndeliveredOrders_args();
3707
        args.setProviderId(providerId);
3708
        args.setWarehouseId(warehouseId);
3709
        args.write(prot);
3710
        prot.writeMessageEnd();
3711
      }
3712
 
3713
      public List<Order> getResult() throws org.apache.thrift.TException {
3714
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3715
          throw new IllegalStateException("Method call not finished!");
3716
        }
3717
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3718
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3719
        return (new Client(prot)).recv_getUndeliveredOrders();
3720
      }
3721
    }
3722
 
3723
    public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException {
3724
      checkReady();
3725
      toggleDOAFlag_call method_call = new toggleDOAFlag_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3726
      this.___currentMethod = method_call;
3727
      ___manager.call(method_call);
3728
    }
3729
 
3730
    public static class toggleDOAFlag_call extends org.apache.thrift.async.TAsyncMethodCall {
3731
      private long orderId;
3732
      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 {
3733
        super(client, protocolFactory, transport, resultHandler, false);
3734
        this.orderId = orderId;
3735
      }
3736
 
3737
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3738
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("toggleDOAFlag", org.apache.thrift.protocol.TMessageType.CALL, 0));
3739
        toggleDOAFlag_args args = new toggleDOAFlag_args();
3740
        args.setOrderId(orderId);
3741
        args.write(prot);
3742
        prot.writeMessageEnd();
3743
      }
3744
 
3745
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3746
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3747
          throw new IllegalStateException("Method call not finished!");
3748
        }
3749
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3750
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3751
        return (new Client(prot)).recv_toggleDOAFlag();
3752
      }
3753
    }
3754
 
3755
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException {
3756
      checkReady();
3757
      requestPickupNumber_call method_call = new requestPickupNumber_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3758
      this.___currentMethod = method_call;
3759
      ___manager.call(method_call);
3760
    }
3761
 
3762
    public static class requestPickupNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
3763
      private long orderId;
3764
      public requestPickupNumber_call(long orderId, 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 {
3765
        super(client, protocolFactory, transport, resultHandler, false);
3766
        this.orderId = orderId;
3767
      }
3768
 
3769
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3770
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("requestPickupNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
3771
        requestPickupNumber_args args = new requestPickupNumber_args();
3772
        args.setOrderId(orderId);
3773
        args.write(prot);
3774
        prot.writeMessageEnd();
3775
      }
3776
 
3777
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3778
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3779
          throw new IllegalStateException("Method call not finished!");
3780
        }
3781
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3782
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3783
        return (new Client(prot)).recv_requestPickupNumber();
3784
      }
3785
    }
3786
 
3787
    public void authorizePickup(long orderId, String pickupNumber, org.apache.thrift.async.AsyncMethodCallback<authorizePickup_call> resultHandler) throws org.apache.thrift.TException {
3788
      checkReady();
3789
      authorizePickup_call method_call = new authorizePickup_call(orderId, pickupNumber, resultHandler, this, ___protocolFactory, ___transport);
3790
      this.___currentMethod = method_call;
3791
      ___manager.call(method_call);
3792
    }
3793
 
3794
    public static class authorizePickup_call extends org.apache.thrift.async.TAsyncMethodCall {
3795
      private long orderId;
3796
      private String pickupNumber;
3797
      public authorizePickup_call(long orderId, String pickupNumber, 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 {
3798
        super(client, protocolFactory, transport, resultHandler, false);
3799
        this.orderId = orderId;
3800
        this.pickupNumber = pickupNumber;
3801
      }
3802
 
3803
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3804
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authorizePickup", org.apache.thrift.protocol.TMessageType.CALL, 0));
3805
        authorizePickup_args args = new authorizePickup_args();
3806
        args.setOrderId(orderId);
3807
        args.setPickupNumber(pickupNumber);
3808
        args.write(prot);
3809
        prot.writeMessageEnd();
3810
      }
3811
 
3812
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3813
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3814
          throw new IllegalStateException("Method call not finished!");
3815
        }
3816
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3817
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3818
        return (new Client(prot)).recv_authorizePickup();
3819
      }
3820
    }
3821
 
3822
    public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException {
3823
      checkReady();
3824
      markDoasAsPickedUp_call method_call = new markDoasAsPickedUp_call(providerId, pickupDetails, resultHandler, this, ___protocolFactory, ___transport);
3825
      this.___currentMethod = method_call;
3826
      ___manager.call(method_call);
3827
    }
3828
 
3829
    public static class markDoasAsPickedUp_call extends org.apache.thrift.async.TAsyncMethodCall {
3830
      private long providerId;
3831
      private Map<String,String> pickupDetails;
3832
      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 {
3833
        super(client, protocolFactory, transport, resultHandler, false);
3834
        this.providerId = providerId;
3835
        this.pickupDetails = pickupDetails;
3836
      }
3837
 
3838
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3839
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markDoasAsPickedUp", org.apache.thrift.protocol.TMessageType.CALL, 0));
3840
        markDoasAsPickedUp_args args = new markDoasAsPickedUp_args();
3841
        args.setProviderId(providerId);
3842
        args.setPickupDetails(pickupDetails);
3843
        args.write(prot);
3844
        prot.writeMessageEnd();
3845
      }
3846
 
3847
      public List<Order> getResult() throws org.apache.thrift.TException {
3848
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3849
          throw new IllegalStateException("Method call not finished!");
3850
        }
3851
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3852
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3853
        return (new Client(prot)).recv_markDoasAsPickedUp();
3854
      }
3855
    }
3856
 
3857
    public void receiveReturn(long orderId, org.apache.thrift.async.AsyncMethodCallback<receiveReturn_call> resultHandler) throws org.apache.thrift.TException {
3858
      checkReady();
3859
      receiveReturn_call method_call = new receiveReturn_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3860
      this.___currentMethod = method_call;
3861
      ___manager.call(method_call);
3862
    }
3863
 
3864
    public static class receiveReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
3865
      private long orderId;
3866
      public receiveReturn_call(long orderId, 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 {
3867
        super(client, protocolFactory, transport, resultHandler, false);
3868
        this.orderId = orderId;
3869
      }
3870
 
3871
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3872
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("receiveReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
3873
        receiveReturn_args args = new receiveReturn_args();
3874
        args.setOrderId(orderId);
3875
        args.write(prot);
3876
        prot.writeMessageEnd();
3877
      }
3878
 
3879
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3880
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3881
          throw new IllegalStateException("Method call not finished!");
3882
        }
3883
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3884
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3885
        return (new Client(prot)).recv_receiveReturn();
3886
      }
3887
    }
3888
 
3889
    public void validateDoa(long orderId, boolean isValid, org.apache.thrift.async.AsyncMethodCallback<validateDoa_call> resultHandler) throws org.apache.thrift.TException {
3890
      checkReady();
3891
      validateDoa_call method_call = new validateDoa_call(orderId, isValid, resultHandler, this, ___protocolFactory, ___transport);
3892
      this.___currentMethod = method_call;
3893
      ___manager.call(method_call);
3894
    }
3895
 
3896
    public static class validateDoa_call extends org.apache.thrift.async.TAsyncMethodCall {
3897
      private long orderId;
3898
      private boolean isValid;
3899
      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 {
3900
        super(client, protocolFactory, transport, resultHandler, false);
3901
        this.orderId = orderId;
3902
        this.isValid = isValid;
3903
      }
3904
 
3905
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3906
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateDoa", org.apache.thrift.protocol.TMessageType.CALL, 0));
3907
        validateDoa_args args = new validateDoa_args();
3908
        args.setOrderId(orderId);
3909
        args.setIsValid(isValid);
3910
        args.write(prot);
3911
        prot.writeMessageEnd();
3912
      }
3913
 
3914
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3915
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3916
          throw new IllegalStateException("Method call not finished!");
3917
        }
3918
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3919
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3920
        return (new Client(prot)).recv_validateDoa();
3921
      }
3922
    }
3923
 
3924
    public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<reshipOrder_call> resultHandler) throws org.apache.thrift.TException {
3925
      checkReady();
3926
      reshipOrder_call method_call = new reshipOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3927
      this.___currentMethod = method_call;
3928
      ___manager.call(method_call);
3929
    }
3930
 
3931
    public static class reshipOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3932
      private long orderId;
3933
      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 {
3934
        super(client, protocolFactory, transport, resultHandler, false);
3935
        this.orderId = orderId;
3936
      }
3937
 
3938
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3939
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reshipOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3940
        reshipOrder_args args = new reshipOrder_args();
3941
        args.setOrderId(orderId);
3942
        args.write(prot);
3943
        prot.writeMessageEnd();
3944
      }
3945
 
3946
      public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
3947
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3948
          throw new IllegalStateException("Method call not finished!");
3949
        }
3950
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3951
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3952
        return (new Client(prot)).recv_reshipOrder();
3953
      }
3954
    }
3955
 
3956
    public void refundOrder(long orderId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<refundOrder_call> resultHandler) throws org.apache.thrift.TException {
3957
      checkReady();
3958
      refundOrder_call method_call = new refundOrder_call(orderId, refundedBy, reason, resultHandler, this, ___protocolFactory, ___transport);
3959
      this.___currentMethod = method_call;
3960
      ___manager.call(method_call);
3961
    }
3962
 
3963
    public static class refundOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3964
      private long orderId;
3965
      private String refundedBy;
3966
      private String reason;
3967
      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 {
3968
        super(client, protocolFactory, transport, resultHandler, false);
3969
        this.orderId = orderId;
3970
        this.refundedBy = refundedBy;
3971
        this.reason = reason;
3972
      }
3973
 
3974
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3975
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("refundOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3976
        refundOrder_args args = new refundOrder_args();
3977
        args.setOrderId(orderId);
3978
        args.setRefundedBy(refundedBy);
3979
        args.setReason(reason);
3980
        args.write(prot);
3981
        prot.writeMessageEnd();
3982
      }
3983
 
3984
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3985
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3986
          throw new IllegalStateException("Method call not finished!");
3987
        }
3988
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3989
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3990
        return (new Client(prot)).recv_refundOrder();
3991
      }
3992
    }
3993
 
3994
    public void getReturnOrders(long warehouseId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getReturnOrders_call> resultHandler) throws org.apache.thrift.TException {
3995
      checkReady();
3996
      getReturnOrders_call method_call = new getReturnOrders_call(warehouseId, fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
3997
      this.___currentMethod = method_call;
3998
      ___manager.call(method_call);
3999
    }
4000
 
4001
    public static class getReturnOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
4002
      private long warehouseId;
4003
      private long fromDate;
4004
      private long toDate;
4005
      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 {
4006
        super(client, protocolFactory, transport, resultHandler, false);
4007
        this.warehouseId = warehouseId;
4008
        this.fromDate = fromDate;
4009
        this.toDate = toDate;
4010
      }
4011
 
4012
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4013
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReturnOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
4014
        getReturnOrders_args args = new getReturnOrders_args();
4015
        args.setWarehouseId(warehouseId);
4016
        args.setFromDate(fromDate);
4017
        args.setToDate(toDate);
4018
        args.write(prot);
4019
        prot.writeMessageEnd();
4020
      }
4021
 
4022
      public List<ReturnOrder> getResult() throws org.apache.thrift.TException {
4023
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4024
          throw new IllegalStateException("Method call not finished!");
4025
        }
4026
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4027
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4028
        return (new Client(prot)).recv_getReturnOrders();
4029
      }
4030
    }
4031
 
4032
    public void getReturnOrder(long id, org.apache.thrift.async.AsyncMethodCallback<getReturnOrder_call> resultHandler) throws org.apache.thrift.TException {
4033
      checkReady();
4034
      getReturnOrder_call method_call = new getReturnOrder_call(id, resultHandler, this, ___protocolFactory, ___transport);
4035
      this.___currentMethod = method_call;
4036
      ___manager.call(method_call);
4037
    }
4038
 
4039
    public static class getReturnOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
4040
      private long id;
4041
      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 {
4042
        super(client, protocolFactory, transport, resultHandler, false);
4043
        this.id = id;
4044
      }
4045
 
4046
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4047
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReturnOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
4048
        getReturnOrder_args args = new getReturnOrder_args();
4049
        args.setId(id);
4050
        args.write(prot);
4051
        prot.writeMessageEnd();
4052
      }
4053
 
4054
      public ReturnOrder getResult() throws TransactionServiceException, org.apache.thrift.TException {
4055
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4056
          throw new IllegalStateException("Method call not finished!");
4057
        }
4058
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4059
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4060
        return (new Client(prot)).recv_getReturnOrder();
4061
      }
4062
    }
4063
 
4064
    public void processReturn(long returnOrderId, org.apache.thrift.async.AsyncMethodCallback<processReturn_call> resultHandler) throws org.apache.thrift.TException {
4065
      checkReady();
4066
      processReturn_call method_call = new processReturn_call(returnOrderId, resultHandler, this, ___protocolFactory, ___transport);
4067
      this.___currentMethod = method_call;
4068
      ___manager.call(method_call);
4069
    }
4070
 
4071
    public static class processReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
4072
      private long returnOrderId;
4073
      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 {
4074
        super(client, protocolFactory, transport, resultHandler, false);
4075
        this.returnOrderId = returnOrderId;
4076
      }
4077
 
4078
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4079
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("processReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
4080
        processReturn_args args = new processReturn_args();
4081
        args.setReturnOrderId(returnOrderId);
4082
        args.write(prot);
4083
        prot.writeMessageEnd();
4084
      }
4085
 
4086
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
4087
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4088
          throw new IllegalStateException("Method call not finished!");
4089
        }
4090
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4091
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4092
        (new Client(prot)).recv_processReturn();
4093
      }
4094
    }
4095
 
4096
    public void createPurchaseOrder(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException {
4097
      checkReady();
4098
      createPurchaseOrder_call method_call = new createPurchaseOrder_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
4099
      this.___currentMethod = method_call;
4100
      ___manager.call(method_call);
4101
    }
4102
 
4103
    public static class createPurchaseOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
4104
      private long warehouseId;
4105
      public createPurchaseOrder_call(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<createPurchaseOrder_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 {
4106
        super(client, protocolFactory, transport, resultHandler, false);
4107
        this.warehouseId = warehouseId;
4108
      }
4109
 
4110
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4111
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPurchaseOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
4112
        createPurchaseOrder_args args = new createPurchaseOrder_args();
4113
        args.setWarehouseId(warehouseId);
4114
        args.write(prot);
4115
        prot.writeMessageEnd();
4116
      }
4117
 
4118
      public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
4119
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4120
          throw new IllegalStateException("Method call not finished!");
4121
        }
4122
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4123
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4124
        return (new Client(prot)).recv_createPurchaseOrder();
4125
      }
4126
    }
4127
 
3451 chandransh 4128
    public void updateWeight(long orderId, double weight, org.apache.thrift.async.AsyncMethodCallback<updateWeight_call> resultHandler) throws org.apache.thrift.TException {
4129
      checkReady();
4130
      updateWeight_call method_call = new updateWeight_call(orderId, weight, resultHandler, this, ___protocolFactory, ___transport);
4131
      this.___currentMethod = method_call;
4132
      ___manager.call(method_call);
4133
    }
4134
 
4135
    public static class updateWeight_call extends org.apache.thrift.async.TAsyncMethodCall {
4136
      private long orderId;
4137
      private double weight;
4138
      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 {
4139
        super(client, protocolFactory, transport, resultHandler, false);
4140
        this.orderId = orderId;
4141
        this.weight = weight;
4142
      }
4143
 
4144
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4145
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateWeight", org.apache.thrift.protocol.TMessageType.CALL, 0));
4146
        updateWeight_args args = new updateWeight_args();
4147
        args.setOrderId(orderId);
4148
        args.setWeight(weight);
4149
        args.write(prot);
4150
        prot.writeMessageEnd();
4151
      }
4152
 
4153
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
4154
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4155
          throw new IllegalStateException("Method call not finished!");
4156
        }
4157
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4158
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4159
        return (new Client(prot)).recv_updateWeight();
4160
      }
4161
    }
4162
 
3469 chandransh 4163
    public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<changeItem_call> resultHandler) throws org.apache.thrift.TException {
4164
      checkReady();
4165
      changeItem_call method_call = new changeItem_call(orderId, itemId, resultHandler, this, ___protocolFactory, ___transport);
4166
      this.___currentMethod = method_call;
4167
      ___manager.call(method_call);
4168
    }
4169
 
4170
    public static class changeItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4171
      private long orderId;
4172
      private long itemId;
4173
      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 {
4174
        super(client, protocolFactory, transport, resultHandler, false);
4175
        this.orderId = orderId;
4176
        this.itemId = itemId;
4177
      }
4178
 
4179
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4180
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4181
        changeItem_args args = new changeItem_args();
4182
        args.setOrderId(orderId);
4183
        args.setItemId(itemId);
4184
        args.write(prot);
4185
        prot.writeMessageEnd();
4186
      }
4187
 
4188
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
4189
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4190
          throw new IllegalStateException("Method call not finished!");
4191
        }
4192
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4193
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4194
        return (new Client(prot)).recv_changeItem();
4195
      }
4196
    }
4197
 
4198
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException {
4199
      checkReady();
4200
      shiftToWarehouse_call method_call = new shiftToWarehouse_call(orderId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
4201
      this.___currentMethod = method_call;
4202
      ___manager.call(method_call);
4203
    }
4204
 
4205
    public static class shiftToWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
4206
      private long orderId;
4207
      private long warehouseId;
4208
      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 {
4209
        super(client, protocolFactory, transport, resultHandler, false);
4210
        this.orderId = orderId;
4211
        this.warehouseId = warehouseId;
4212
      }
4213
 
4214
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4215
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shiftToWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
4216
        shiftToWarehouse_args args = new shiftToWarehouse_args();
4217
        args.setOrderId(orderId);
4218
        args.setWarehouseId(warehouseId);
4219
        args.write(prot);
4220
        prot.writeMessageEnd();
4221
      }
4222
 
4223
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
4224
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4225
          throw new IllegalStateException("Method call not finished!");
4226
        }
4227
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4228
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4229
        return (new Client(prot)).recv_shiftToWarehouse();
4230
      }
4231
    }
4232
 
3986 chandransh 4233
    public void addDelayReason(long orderId, DelayReason delayReason, long furtherDelay, org.apache.thrift.async.AsyncMethodCallback<addDelayReason_call> resultHandler) throws org.apache.thrift.TException {
3553 chandransh 4234
      checkReady();
3986 chandransh 4235
      addDelayReason_call method_call = new addDelayReason_call(orderId, delayReason, furtherDelay, resultHandler, this, ___protocolFactory, ___transport);
3553 chandransh 4236
      this.___currentMethod = method_call;
4237
      ___manager.call(method_call);
4238
    }
4239
 
4240
    public static class addDelayReason_call extends org.apache.thrift.async.TAsyncMethodCall {
4241
      private long orderId;
4242
      private DelayReason delayReason;
3986 chandransh 4243
      private long furtherDelay;
4244
      public addDelayReason_call(long orderId, DelayReason delayReason, long furtherDelay, 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 {
3553 chandransh 4245
        super(client, protocolFactory, transport, resultHandler, false);
4246
        this.orderId = orderId;
4247
        this.delayReason = delayReason;
3986 chandransh 4248
        this.furtherDelay = furtherDelay;
3553 chandransh 4249
      }
4250
 
4251
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4252
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addDelayReason", org.apache.thrift.protocol.TMessageType.CALL, 0));
4253
        addDelayReason_args args = new addDelayReason_args();
4254
        args.setOrderId(orderId);
4255
        args.setDelayReason(delayReason);
3986 chandransh 4256
        args.setFurtherDelay(furtherDelay);
3553 chandransh 4257
        args.write(prot);
4258
        prot.writeMessageEnd();
4259
      }
4260
 
4261
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
4262
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4263
          throw new IllegalStateException("Method call not finished!");
4264
        }
4265
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4266
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4267
        return (new Client(prot)).recv_addDelayReason();
4268
      }
4269
    }
4270
 
3956 chandransh 4271
    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 {
4272
      checkReady();
4273
      reconcileCodCollection_call method_call = new reconcileCodCollection_call(collectedAmountMap, xferBy, xferTxnId, xferDate, resultHandler, this, ___protocolFactory, ___transport);
4274
      this.___currentMethod = method_call;
4275
      ___manager.call(method_call);
4276
    }
4277
 
4278
    public static class reconcileCodCollection_call extends org.apache.thrift.async.TAsyncMethodCall {
4279
      private Map<String,Double> collectedAmountMap;
4280
      private String xferBy;
4281
      private String xferTxnId;
4282
      private long xferDate;
4283
      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 {
4284
        super(client, protocolFactory, transport, resultHandler, false);
4285
        this.collectedAmountMap = collectedAmountMap;
4286
        this.xferBy = xferBy;
4287
        this.xferTxnId = xferTxnId;
4288
        this.xferDate = xferDate;
4289
      }
4290
 
4291
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4292
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reconcileCodCollection", org.apache.thrift.protocol.TMessageType.CALL, 0));
4293
        reconcileCodCollection_args args = new reconcileCodCollection_args();
4294
        args.setCollectedAmountMap(collectedAmountMap);
4295
        args.setXferBy(xferBy);
4296
        args.setXferTxnId(xferTxnId);
4297
        args.setXferDate(xferDate);
4298
        args.write(prot);
4299
        prot.writeMessageEnd();
4300
      }
4301
 
4302
      public Map<String,String> getResult() throws TransactionServiceException, org.apache.thrift.TException {
4303
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4304
          throw new IllegalStateException("Method call not finished!");
4305
        }
4306
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4307
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4308
        return (new Client(prot)).recv_reconcileCodCollection();
4309
      }
4310
    }
4311
 
4008 mandeep.dh 4312
    public void getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<getTransactionsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException {
4313
      checkReady();
4314
      getTransactionsRequiringExtraProcessing_call method_call = new getTransactionsRequiringExtraProcessing_call(category, resultHandler, this, ___protocolFactory, ___transport);
4315
      this.___currentMethod = method_call;
4316
      ___manager.call(method_call);
4317
    }
4318
 
4319
    public static class getTransactionsRequiringExtraProcessing_call extends org.apache.thrift.async.TAsyncMethodCall {
4320
      private ExtraTransactionProcessingType category;
4321
      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 {
4322
        super(client, protocolFactory, transport, resultHandler, false);
4323
        this.category = category;
4324
      }
4325
 
4326
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4327
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionsRequiringExtraProcessing", org.apache.thrift.protocol.TMessageType.CALL, 0));
4328
        getTransactionsRequiringExtraProcessing_args args = new getTransactionsRequiringExtraProcessing_args();
4329
        args.setCategory(category);
4330
        args.write(prot);
4331
        prot.writeMessageEnd();
4332
      }
4333
 
4334
      public List<Long> getResult() throws org.apache.thrift.TException {
4335
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4336
          throw new IllegalStateException("Method call not finished!");
4337
        }
4338
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4339
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4340
        return (new Client(prot)).recv_getTransactionsRequiringExtraProcessing();
4341
      }
4342
    }
4343
 
4344
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<markTransactionAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
4345
      checkReady();
4346
      markTransactionAsProcessed_call method_call = new markTransactionAsProcessed_call(transactionId, category, resultHandler, this, ___protocolFactory, ___transport);
4347
      this.___currentMethod = method_call;
4348
      ___manager.call(method_call);
4349
    }
4350
 
4351
    public static class markTransactionAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
4352
      private long transactionId;
4353
      private ExtraTransactionProcessingType category;
4354
      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 {
4355
        super(client, protocolFactory, transport, resultHandler, false);
4356
        this.transactionId = transactionId;
4357
        this.category = category;
4358
      }
4359
 
4360
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4361
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markTransactionAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
4362
        markTransactionAsProcessed_args args = new markTransactionAsProcessed_args();
4363
        args.setTransactionId(transactionId);
4364
        args.setCategory(category);
4365
        args.write(prot);
4366
        prot.writeMessageEnd();
4367
      }
4368
 
4369
      public void getResult() throws org.apache.thrift.TException {
4370
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4371
          throw new IllegalStateException("Method call not finished!");
4372
        }
4373
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4374
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4375
        (new Client(prot)).recv_markTransactionAsProcessed();
4376
      }
4377
    }
4378
 
4018 chandransh 4379
    public void getItemWiseRiskyOrdersCount(org.apache.thrift.async.AsyncMethodCallback<getItemWiseRiskyOrdersCount_call> resultHandler) throws org.apache.thrift.TException {
4380
      checkReady();
4381
      getItemWiseRiskyOrdersCount_call method_call = new getItemWiseRiskyOrdersCount_call(resultHandler, this, ___protocolFactory, ___transport);
4382
      this.___currentMethod = method_call;
4383
      ___manager.call(method_call);
4384
    }
4385
 
4386
    public static class getItemWiseRiskyOrdersCount_call extends org.apache.thrift.async.TAsyncMethodCall {
4387
      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 {
4388
        super(client, protocolFactory, transport, resultHandler, false);
4389
      }
4390
 
4391
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4392
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemWiseRiskyOrdersCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
4393
        getItemWiseRiskyOrdersCount_args args = new getItemWiseRiskyOrdersCount_args();
4394
        args.write(prot);
4395
        prot.writeMessageEnd();
4396
      }
4397
 
4398
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
4399
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4400
          throw new IllegalStateException("Method call not finished!");
4401
        }
4402
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4403
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4404
        return (new Client(prot)).recv_getItemWiseRiskyOrdersCount();
4405
      }
4406
    }
4407
 
4246 rajveer 4408
    public void markOrderCancellationRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestReceived_call> resultHandler) throws org.apache.thrift.TException {
4409
      checkReady();
4410
      markOrderCancellationRequestReceived_call method_call = new markOrderCancellationRequestReceived_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4411
      this.___currentMethod = method_call;
4412
      ___manager.call(method_call);
4413
    }
4414
 
4415
    public static class markOrderCancellationRequestReceived_call extends org.apache.thrift.async.TAsyncMethodCall {
4416
      private long orderId;
4417
      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 {
4418
        super(client, protocolFactory, transport, resultHandler, false);
4419
        this.orderId = orderId;
4420
      }
4421
 
4422
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4423
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderCancellationRequestReceived", org.apache.thrift.protocol.TMessageType.CALL, 0));
4424
        markOrderCancellationRequestReceived_args args = new markOrderCancellationRequestReceived_args();
4425
        args.setOrderId(orderId);
4426
        args.write(prot);
4427
        prot.writeMessageEnd();
4428
      }
4429
 
4430
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
4431
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4432
          throw new IllegalStateException("Method call not finished!");
4433
        }
4434
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4435
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4436
        (new Client(prot)).recv_markOrderCancellationRequestReceived();
4437
      }
4438
    }
4439
 
4440
    public void markOrderCancellationRequestConfirmed(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestConfirmed_call> resultHandler) throws org.apache.thrift.TException {
4441
      checkReady();
4442
      markOrderCancellationRequestConfirmed_call method_call = new markOrderCancellationRequestConfirmed_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4443
      this.___currentMethod = method_call;
4444
      ___manager.call(method_call);
4445
    }
4446
 
4447
    public static class markOrderCancellationRequestConfirmed_call extends org.apache.thrift.async.TAsyncMethodCall {
4448
      private long orderId;
4449
      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 {
4450
        super(client, protocolFactory, transport, resultHandler, false);
4451
        this.orderId = orderId;
4452
      }
4453
 
4454
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4455
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderCancellationRequestConfirmed", org.apache.thrift.protocol.TMessageType.CALL, 0));
4456
        markOrderCancellationRequestConfirmed_args args = new markOrderCancellationRequestConfirmed_args();
4457
        args.setOrderId(orderId);
4458
        args.write(prot);
4459
        prot.writeMessageEnd();
4460
      }
4461
 
4462
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
4463
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4464
          throw new IllegalStateException("Method call not finished!");
4465
        }
4466
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4467
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4468
        (new Client(prot)).recv_markOrderCancellationRequestConfirmed();
4469
      }
4470
    }
4471
 
4472
    public void markOrderCancellationRequestDenied(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestDenied_call> resultHandler) throws org.apache.thrift.TException {
4473
      checkReady();
4474
      markOrderCancellationRequestDenied_call method_call = new markOrderCancellationRequestDenied_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4475
      this.___currentMethod = method_call;
4476
      ___manager.call(method_call);
4477
    }
4478
 
4479
    public static class markOrderCancellationRequestDenied_call extends org.apache.thrift.async.TAsyncMethodCall {
4480
      private long orderId;
4481
      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 {
4482
        super(client, protocolFactory, transport, resultHandler, false);
4483
        this.orderId = orderId;
4484
      }
4485
 
4486
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4487
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderCancellationRequestDenied", org.apache.thrift.protocol.TMessageType.CALL, 0));
4488
        markOrderCancellationRequestDenied_args args = new markOrderCancellationRequestDenied_args();
4489
        args.setOrderId(orderId);
4490
        args.write(prot);
4491
        prot.writeMessageEnd();
4492
      }
4493
 
4494
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
4495
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4496
          throw new IllegalStateException("Method call not finished!");
4497
        }
4498
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4499
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4500
        (new Client(prot)).recv_markOrderCancellationRequestDenied();
4501
      }
4502
    }
4503
 
4258 rajveer 4504
    public void markTransactionAsPaymentFlagRemoved(long transactionId, org.apache.thrift.async.AsyncMethodCallback<markTransactionAsPaymentFlagRemoved_call> resultHandler) throws org.apache.thrift.TException {
4246 rajveer 4505
      checkReady();
4258 rajveer 4506
      markTransactionAsPaymentFlagRemoved_call method_call = new markTransactionAsPaymentFlagRemoved_call(transactionId, resultHandler, this, ___protocolFactory, ___transport);
4246 rajveer 4507
      this.___currentMethod = method_call;
4508
      ___manager.call(method_call);
4509
    }
4510
 
4258 rajveer 4511
    public static class markTransactionAsPaymentFlagRemoved_call extends org.apache.thrift.async.TAsyncMethodCall {
4512
      private long transactionId;
4513
      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 {
4246 rajveer 4514
        super(client, protocolFactory, transport, resultHandler, false);
4258 rajveer 4515
        this.transactionId = transactionId;
4246 rajveer 4516
      }
4517
 
4518
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4258 rajveer 4519
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markTransactionAsPaymentFlagRemoved", org.apache.thrift.protocol.TMessageType.CALL, 0));
4520
        markTransactionAsPaymentFlagRemoved_args args = new markTransactionAsPaymentFlagRemoved_args();
4521
        args.setTransactionId(transactionId);
4246 rajveer 4522
        args.write(prot);
4523
        prot.writeMessageEnd();
4524
      }
4525
 
4526
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
4527
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4528
          throw new IllegalStateException("Method call not finished!");
4529
        }
4530
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4531
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4258 rajveer 4532
        (new Client(prot)).recv_markTransactionAsPaymentFlagRemoved();
4246 rajveer 4533
      }
4534
    }
4535
 
4259 anupam.sin 4536
    public void refundTransaction(long transactionId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<refundTransaction_call> resultHandler) throws org.apache.thrift.TException {
4537
      checkReady();
4538
      refundTransaction_call method_call = new refundTransaction_call(transactionId, refundedBy, reason, resultHandler, this, ___protocolFactory, ___transport);
4539
      this.___currentMethod = method_call;
4540
      ___manager.call(method_call);
4541
    }
4542
 
4543
    public static class refundTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
4544
      private long transactionId;
4545
      private String refundedBy;
4546
      private String reason;
4547
      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 {
4548
        super(client, protocolFactory, transport, resultHandler, false);
4549
        this.transactionId = transactionId;
4550
        this.refundedBy = refundedBy;
4551
        this.reason = reason;
4552
      }
4553
 
4554
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4555
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("refundTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
4556
        refundTransaction_args args = new refundTransaction_args();
4557
        args.setTransactionId(transactionId);
4558
        args.setRefundedBy(refundedBy);
4559
        args.setReason(reason);
4560
        args.write(prot);
4561
        prot.writeMessageEnd();
4562
      }
4563
 
4564
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
4565
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4566
          throw new IllegalStateException("Method call not finished!");
4567
        }
4568
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4569
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4570
        (new Client(prot)).recv_refundTransaction();
4571
      }
4572
    }
4573
 
4285 rajveer 4574
    public void acceptOrdersForItemId(long itemId, long inventory, org.apache.thrift.async.AsyncMethodCallback<acceptOrdersForItemId_call> resultHandler) throws org.apache.thrift.TException {
4575
      checkReady();
4576
      acceptOrdersForItemId_call method_call = new acceptOrdersForItemId_call(itemId, inventory, resultHandler, this, ___protocolFactory, ___transport);
4577
      this.___currentMethod = method_call;
4578
      ___manager.call(method_call);
4579
    }
4580
 
4581
    public static class acceptOrdersForItemId_call extends org.apache.thrift.async.TAsyncMethodCall {
4582
      private long itemId;
4583
      private long inventory;
4584
      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 {
4585
        super(client, protocolFactory, transport, resultHandler, false);
4586
        this.itemId = itemId;
4587
        this.inventory = inventory;
4588
      }
4589
 
4590
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4591
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("acceptOrdersForItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));
4592
        acceptOrdersForItemId_args args = new acceptOrdersForItemId_args();
4593
        args.setItemId(itemId);
4594
        args.setInventory(inventory);
4595
        args.write(prot);
4596
        prot.writeMessageEnd();
4597
      }
4598
 
4599
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
4600
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4601
          throw new IllegalStateException("Method call not finished!");
4602
        }
4603
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4604
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4605
        return (new Client(prot)).recv_acceptOrdersForItemId();
4606
      }
4607
    }
4608
 
3430 rajveer 4609
  }
4610
 
4611
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4612
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4613
    public Processor(I iface) {
4614
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
4615
    }
4616
 
4617
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
4618
      super(iface, getProcessMap(processMap));
4619
    }
4620
 
4621
    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) {
4622
      processMap.put("createTransaction", new createTransaction());
4623
      processMap.put("getTransaction", new getTransaction());
4624
      processMap.put("getTransactionsForCustomer", new getTransactionsForCustomer());
4625
      processMap.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());
4626
      processMap.put("getTransactionStatus", new getTransactionStatus());
4627
      processMap.put("changeTransactionStatus", new changeTransactionStatus());
4628
      processMap.put("enqueueTransactionInfoEmail", new enqueueTransactionInfoEmail());
4629
      processMap.put("getAllOrders", new getAllOrders());
4133 chandransh 4630
      processMap.put("getOrdersInBatch", new getOrdersInBatch());
4631
      processMap.put("getOrderCount", new getOrderCount());
3430 rajveer 4632
      processMap.put("getOrdersByBillingDate", new getOrdersByBillingDate());
4633
      processMap.put("getOrdersByShippingDate", new getOrdersByShippingDate());
4634
      processMap.put("getReturnableOrdersForCustomer", new getReturnableOrdersForCustomer());
4635
      processMap.put("getCancellableOrdersForCustomer", new getCancellableOrdersForCustomer());
4636
      processMap.put("changeOrderStatus", new changeOrderStatus());
4637
      processMap.put("getOrdersForTransaction", new getOrdersForTransaction());
4638
      processMap.put("getOrdersForCustomer", new getOrdersForCustomer());
4639
      processMap.put("createOrder", new createOrder());
4640
      processMap.put("getOrder", new getOrder());
4641
      processMap.put("getLineItemsForOrder", new getLineItemsForOrder());
4642
      processMap.put("getOrderForCustomer", new getOrderForCustomer());
4643
      processMap.put("getAlerts", new getAlerts());
4644
      processMap.put("setAlert", new setAlert());
4645
      processMap.put("getValidOrderCount", new getValidOrderCount());
4646
      processMap.put("getNoOfCustomersWithSuccessfulTransaction", new getNoOfCustomersWithSuccessfulTransaction());
4647
      processMap.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());
4648
      processMap.put("getValidOrders", new getValidOrders());
4649
      processMap.put("batchOrders", new batchOrders());
4650
      processMap.put("markOrderAsOutOfStock", new markOrderAsOutOfStock());
4651
      processMap.put("verifyOrder", new verifyOrder());
4652
      processMap.put("acceptOrder", new acceptOrder());
4653
      processMap.put("addBillingDetails", new addBillingDetails());
4654
      processMap.put("markOrdersAsManifested", new markOrdersAsManifested());
4655
      processMap.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());
4656
      processMap.put("markOrdersAsDelivered", new markOrdersAsDelivered());
4657
      processMap.put("markOrdersAsFailed", new markOrdersAsFailed());
4658
      processMap.put("updateNonDeliveryReason", new updateNonDeliveryReason());
4659
      processMap.put("getUndeliveredOrders", new getUndeliveredOrders());
4660
      processMap.put("toggleDOAFlag", new toggleDOAFlag());
4661
      processMap.put("requestPickupNumber", new requestPickupNumber());
4662
      processMap.put("authorizePickup", new authorizePickup());
4663
      processMap.put("markDoasAsPickedUp", new markDoasAsPickedUp());
4664
      processMap.put("receiveReturn", new receiveReturn());
4665
      processMap.put("validateDoa", new validateDoa());
4666
      processMap.put("reshipOrder", new reshipOrder());
4667
      processMap.put("refundOrder", new refundOrder());
4668
      processMap.put("getReturnOrders", new getReturnOrders());
4669
      processMap.put("getReturnOrder", new getReturnOrder());
4670
      processMap.put("processReturn", new processReturn());
4671
      processMap.put("createPurchaseOrder", new createPurchaseOrder());
3451 chandransh 4672
      processMap.put("updateWeight", new updateWeight());
3469 chandransh 4673
      processMap.put("changeItem", new changeItem());
4674
      processMap.put("shiftToWarehouse", new shiftToWarehouse());
3553 chandransh 4675
      processMap.put("addDelayReason", new addDelayReason());
3956 chandransh 4676
      processMap.put("reconcileCodCollection", new reconcileCodCollection());
4008 mandeep.dh 4677
      processMap.put("getTransactionsRequiringExtraProcessing", new getTransactionsRequiringExtraProcessing());
4678
      processMap.put("markTransactionAsProcessed", new markTransactionAsProcessed());
4018 chandransh 4679
      processMap.put("getItemWiseRiskyOrdersCount", new getItemWiseRiskyOrdersCount());
4246 rajveer 4680
      processMap.put("markOrderCancellationRequestReceived", new markOrderCancellationRequestReceived());
4681
      processMap.put("markOrderCancellationRequestConfirmed", new markOrderCancellationRequestConfirmed());
4682
      processMap.put("markOrderCancellationRequestDenied", new markOrderCancellationRequestDenied());
4258 rajveer 4683
      processMap.put("markTransactionAsPaymentFlagRemoved", new markTransactionAsPaymentFlagRemoved());
4259 anupam.sin 4684
      processMap.put("refundTransaction", new refundTransaction());
4285 rajveer 4685
      processMap.put("acceptOrdersForItemId", new acceptOrdersForItemId());
3430 rajveer 4686
      return processMap;
4687
    }
4688
 
4689
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
4690
      public createTransaction() {
4691
        super("createTransaction");
4692
      }
4693
 
4694
      protected createTransaction_args getEmptyArgsInstance() {
4695
        return new createTransaction_args();
4696
      }
4697
 
4698
      protected createTransaction_result getResult(I iface, createTransaction_args args) throws org.apache.thrift.TException {
68 ashish 4699
        createTransaction_result result = new createTransaction_result();
4700
        try {
3430 rajveer 4701
          result.success = iface.createTransaction(args.transaction);
132 ashish 4702
          result.setSuccessIsSet(true);
68 ashish 4703
        } catch (TransactionServiceException ex) {
4704
          result.ex = ex;
4705
        }
3430 rajveer 4706
        return result;
68 ashish 4707
      }
4708
    }
4709
 
3430 rajveer 4710
    private static class getTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransaction_args> {
4711
      public getTransaction() {
4712
        super("getTransaction");
4713
      }
4714
 
4715
      protected getTransaction_args getEmptyArgsInstance() {
4716
        return new getTransaction_args();
4717
      }
4718
 
4719
      protected getTransaction_result getResult(I iface, getTransaction_args args) throws org.apache.thrift.TException {
68 ashish 4720
        getTransaction_result result = new getTransaction_result();
4721
        try {
3430 rajveer 4722
          result.success = iface.getTransaction(args.id);
68 ashish 4723
        } catch (TransactionServiceException ex) {
4724
          result.ex = ex;
4725
        }
3430 rajveer 4726
        return result;
68 ashish 4727
      }
4728
    }
4729
 
3430 rajveer 4730
    private static class getTransactionsForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionsForCustomer_args> {
4731
      public getTransactionsForCustomer() {
4732
        super("getTransactionsForCustomer");
4733
      }
4734
 
4735
      protected getTransactionsForCustomer_args getEmptyArgsInstance() {
4736
        return new getTransactionsForCustomer_args();
4737
      }
4738
 
4739
      protected getTransactionsForCustomer_result getResult(I iface, getTransactionsForCustomer_args args) throws org.apache.thrift.TException {
68 ashish 4740
        getTransactionsForCustomer_result result = new getTransactionsForCustomer_result();
4741
        try {
3430 rajveer 4742
          result.success = iface.getTransactionsForCustomer(args.customerId, args.from_date, args.to_date, args.status);
68 ashish 4743
        } catch (TransactionServiceException ex) {
4744
          result.ex = ex;
4745
        }
3430 rajveer 4746
        return result;
68 ashish 4747
      }
4748
    }
4749
 
3430 rajveer 4750
    private static class getTransactionsForShoppingCartId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionsForShoppingCartId_args> {
4751
      public getTransactionsForShoppingCartId() {
4752
        super("getTransactionsForShoppingCartId");
4753
      }
4754
 
4755
      protected getTransactionsForShoppingCartId_args getEmptyArgsInstance() {
4756
        return new getTransactionsForShoppingCartId_args();
4757
      }
4758
 
4759
      protected getTransactionsForShoppingCartId_result getResult(I iface, getTransactionsForShoppingCartId_args args) throws org.apache.thrift.TException {
132 ashish 4760
        getTransactionsForShoppingCartId_result result = new getTransactionsForShoppingCartId_result();
4761
        try {
3430 rajveer 4762
          result.success = iface.getTransactionsForShoppingCartId(args.shoppingCartId);
132 ashish 4763
        } catch (TransactionServiceException ex) {
4764
          result.ex = ex;
4765
        }
3430 rajveer 4766
        return result;
132 ashish 4767
      }
4768
    }
4769
 
3430 rajveer 4770
    private static class getTransactionStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionStatus_args> {
4771
      public getTransactionStatus() {
4772
        super("getTransactionStatus");
4773
      }
4774
 
4775
      protected getTransactionStatus_args getEmptyArgsInstance() {
4776
        return new getTransactionStatus_args();
4777
      }
4778
 
4779
      protected getTransactionStatus_result getResult(I iface, getTransactionStatus_args args) throws org.apache.thrift.TException {
68 ashish 4780
        getTransactionStatus_result result = new getTransactionStatus_result();
4781
        try {
3430 rajveer 4782
          result.success = iface.getTransactionStatus(args.transactionId);
68 ashish 4783
        } catch (TransactionServiceException ex) {
4784
          result.ex = ex;
4785
        }
3430 rajveer 4786
        return result;
68 ashish 4787
      }
4788
    }
4789
 
3430 rajveer 4790
    private static class changeTransactionStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeTransactionStatus_args> {
4791
      public changeTransactionStatus() {
4792
        super("changeTransactionStatus");
4793
      }
4794
 
4795
      protected changeTransactionStatus_args getEmptyArgsInstance() {
4796
        return new changeTransactionStatus_args();
4797
      }
4798
 
4799
      protected changeTransactionStatus_result getResult(I iface, changeTransactionStatus_args args) throws org.apache.thrift.TException {
68 ashish 4800
        changeTransactionStatus_result result = new changeTransactionStatus_result();
4801
        try {
3430 rajveer 4802
          result.success = iface.changeTransactionStatus(args.transactionId, args.status, args.description);
68 ashish 4803
          result.setSuccessIsSet(true);
4804
        } catch (TransactionServiceException ex) {
4805
          result.ex = ex;
4806
        }
3430 rajveer 4807
        return result;
68 ashish 4808
      }
4809
    }
4810
 
3430 rajveer 4811
    private static class enqueueTransactionInfoEmail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enqueueTransactionInfoEmail_args> {
4812
      public enqueueTransactionInfoEmail() {
4813
        super("enqueueTransactionInfoEmail");
4814
      }
4815
 
4816
      protected enqueueTransactionInfoEmail_args getEmptyArgsInstance() {
4817
        return new enqueueTransactionInfoEmail_args();
4818
      }
4819
 
4820
      protected enqueueTransactionInfoEmail_result getResult(I iface, enqueueTransactionInfoEmail_args args) throws org.apache.thrift.TException {
1398 varun.gupt 4821
        enqueueTransactionInfoEmail_result result = new enqueueTransactionInfoEmail_result();
1382 varun.gupt 4822
        try {
3430 rajveer 4823
          result.success = iface.enqueueTransactionInfoEmail(args.transactionId);
1382 varun.gupt 4824
          result.setSuccessIsSet(true);
4825
        } catch (TransactionServiceException ex) {
4826
          result.ex = ex;
4827
        }
3430 rajveer 4828
        return result;
1382 varun.gupt 4829
      }
4830
    }
4831
 
3430 rajveer 4832
    private static class getAllOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllOrders_args> {
4833
      public getAllOrders() {
4834
        super("getAllOrders");
4835
      }
4836
 
4837
      protected getAllOrders_args getEmptyArgsInstance() {
4838
        return new getAllOrders_args();
4839
      }
4840
 
4841
      protected getAllOrders_result getResult(I iface, getAllOrders_args args) throws org.apache.thrift.TException {
483 rajveer 4842
        getAllOrders_result result = new getAllOrders_result();
68 ashish 4843
        try {
3430 rajveer 4844
          result.success = iface.getAllOrders(args.status, args.from_date, args.to_date, args.warehouse_id);
68 ashish 4845
        } catch (TransactionServiceException ex) {
4846
          result.ex = ex;
4847
        }
3430 rajveer 4848
        return result;
68 ashish 4849
      }
4850
    }
4851
 
4133 chandransh 4852
    private static class getOrdersInBatch<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersInBatch_args> {
4853
      public getOrdersInBatch() {
4854
        super("getOrdersInBatch");
4855
      }
4856
 
4857
      protected getOrdersInBatch_args getEmptyArgsInstance() {
4858
        return new getOrdersInBatch_args();
4859
      }
4860
 
4861
      protected getOrdersInBatch_result getResult(I iface, getOrdersInBatch_args args) throws org.apache.thrift.TException {
4862
        getOrdersInBatch_result result = new getOrdersInBatch_result();
4863
        try {
4864
          result.success = iface.getOrdersInBatch(args.statuses, args.offset, args.limit, args.warehouse_id);
4865
        } catch (TransactionServiceException ex) {
4866
          result.ex = ex;
4867
        }
4868
        return result;
4869
      }
4870
    }
4871
 
4872
    private static class getOrderCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderCount_args> {
4873
      public getOrderCount() {
4874
        super("getOrderCount");
4875
      }
4876
 
4877
      protected getOrderCount_args getEmptyArgsInstance() {
4878
        return new getOrderCount_args();
4879
      }
4880
 
4881
      protected getOrderCount_result getResult(I iface, getOrderCount_args args) throws org.apache.thrift.TException {
4882
        getOrderCount_result result = new getOrderCount_result();
4883
        try {
4884
          result.success = iface.getOrderCount(args.statuses, args.warehouseId);
4885
          result.setSuccessIsSet(true);
4886
        } catch (TransactionServiceException ex) {
4887
          result.ex = ex;
4888
        }
4889
        return result;
4890
      }
4891
    }
4892
 
3430 rajveer 4893
    private static class getOrdersByBillingDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersByBillingDate_args> {
4894
      public getOrdersByBillingDate() {
4895
        super("getOrdersByBillingDate");
4896
      }
4897
 
4898
      protected getOrdersByBillingDate_args getEmptyArgsInstance() {
4899
        return new getOrdersByBillingDate_args();
4900
      }
4901
 
4902
      protected getOrdersByBillingDate_result getResult(I iface, getOrdersByBillingDate_args args) throws org.apache.thrift.TException {
1022 varun.gupt 4903
        getOrdersByBillingDate_result result = new getOrdersByBillingDate_result();
4904
        try {
3430 rajveer 4905
          result.success = iface.getOrdersByBillingDate(args.status, args.start_billing_date, args.end_billing_date, args.warehouse_id);
1022 varun.gupt 4906
        } catch (TransactionServiceException ex) {
4907
          result.ex = ex;
4908
        }
3430 rajveer 4909
        return result;
1022 varun.gupt 4910
      }
4911
    }
4912
 
3430 rajveer 4913
    private static class getOrdersByShippingDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersByShippingDate_args> {
4914
      public getOrdersByShippingDate() {
4915
        super("getOrdersByShippingDate");
4916
      }
4917
 
4918
      protected getOrdersByShippingDate_args getEmptyArgsInstance() {
4919
        return new getOrdersByShippingDate_args();
4920
      }
4921
 
4922
      protected getOrdersByShippingDate_result getResult(I iface, getOrdersByShippingDate_args args) throws org.apache.thrift.TException {
3427 chandransh 4923
        getOrdersByShippingDate_result result = new getOrdersByShippingDate_result();
4924
        try {
3451 chandransh 4925
          result.success = iface.getOrdersByShippingDate(args.fromShippingDate, args.toShippingDate, args.providerId, args.warehouseId, args.cod);
3427 chandransh 4926
        } catch (TransactionServiceException ex) {
4927
          result.ex = ex;
4928
        }
3430 rajveer 4929
        return result;
3427 chandransh 4930
      }
4931
    }
4932
 
3430 rajveer 4933
    private static class getReturnableOrdersForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnableOrdersForCustomer_args> {
4934
      public getReturnableOrdersForCustomer() {
4935
        super("getReturnableOrdersForCustomer");
4936
      }
4937
 
4938
      protected getReturnableOrdersForCustomer_args getEmptyArgsInstance() {
4939
        return new getReturnableOrdersForCustomer_args();
4940
      }
4941
 
4942
      protected getReturnableOrdersForCustomer_result getResult(I iface, getReturnableOrdersForCustomer_args args) throws org.apache.thrift.TException {
1382 varun.gupt 4943
        getReturnableOrdersForCustomer_result result = new getReturnableOrdersForCustomer_result();
4944
        try {
3430 rajveer 4945
          result.success = iface.getReturnableOrdersForCustomer(args.customer_id, args.limit);
1382 varun.gupt 4946
        } catch (TransactionServiceException ex) {
4947
          result.ex = ex;
4948
        }
3430 rajveer 4949
        return result;
1382 varun.gupt 4950
      }
4951
    }
4952
 
3430 rajveer 4953
    private static class getCancellableOrdersForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCancellableOrdersForCustomer_args> {
4954
      public getCancellableOrdersForCustomer() {
4955
        super("getCancellableOrdersForCustomer");
4956
      }
4957
 
4958
      protected getCancellableOrdersForCustomer_args getEmptyArgsInstance() {
4959
        return new getCancellableOrdersForCustomer_args();
4960
      }
4961
 
4962
      protected getCancellableOrdersForCustomer_result getResult(I iface, getCancellableOrdersForCustomer_args args) throws org.apache.thrift.TException {
1382 varun.gupt 4963
        getCancellableOrdersForCustomer_result result = new getCancellableOrdersForCustomer_result();
4964
        try {
3430 rajveer 4965
          result.success = iface.getCancellableOrdersForCustomer(args.customer_id, args.limit);
1382 varun.gupt 4966
        } catch (TransactionServiceException ex) {
4967
          result.ex = ex;
4968
        }
3430 rajveer 4969
        return result;
1382 varun.gupt 4970
      }
4971
    }
4972
 
3430 rajveer 4973
    private static class changeOrderStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeOrderStatus_args> {
4974
      public changeOrderStatus() {
4975
        super("changeOrderStatus");
4976
      }
4977
 
4978
      protected changeOrderStatus_args getEmptyArgsInstance() {
4979
        return new changeOrderStatus_args();
4980
      }
4981
 
4982
      protected changeOrderStatus_result getResult(I iface, changeOrderStatus_args args) throws org.apache.thrift.TException {
483 rajveer 4983
        changeOrderStatus_result result = new changeOrderStatus_result();
68 ashish 4984
        try {
3430 rajveer 4985
          result.success = iface.changeOrderStatus(args.orderId, args.status, args.description);
68 ashish 4986
          result.setSuccessIsSet(true);
4987
        } catch (TransactionServiceException ex) {
4988
          result.ex = ex;
4989
        }
3430 rajveer 4990
        return result;
68 ashish 4991
      }
4992
    }
4993
 
3430 rajveer 4994
    private static class getOrdersForTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForTransaction_args> {
4995
      public getOrdersForTransaction() {
4996
        super("getOrdersForTransaction");
4997
      }
4998
 
4999
      protected getOrdersForTransaction_args getEmptyArgsInstance() {
5000
        return new getOrdersForTransaction_args();
5001
      }
5002
 
5003
      protected getOrdersForTransaction_result getResult(I iface, getOrdersForTransaction_args args) throws org.apache.thrift.TException {
3061 chandransh 5004
        getOrdersForTransaction_result result = new getOrdersForTransaction_result();
495 rajveer 5005
        try {
3430 rajveer 5006
          result.success = iface.getOrdersForTransaction(args.transactionId, args.customerId);
495 rajveer 5007
        } catch (TransactionServiceException ex) {
5008
          result.ex = ex;
5009
        }
3430 rajveer 5010
        return result;
495 rajveer 5011
      }
5012
    }
5013
 
3430 rajveer 5014
    private static class getOrdersForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForCustomer_args> {
5015
      public getOrdersForCustomer() {
5016
        super("getOrdersForCustomer");
5017
      }
5018
 
5019
      protected getOrdersForCustomer_args getEmptyArgsInstance() {
5020
        return new getOrdersForCustomer_args();
5021
      }
5022
 
5023
      protected getOrdersForCustomer_result getResult(I iface, getOrdersForCustomer_args args) throws org.apache.thrift.TException {
3061 chandransh 5024
        getOrdersForCustomer_result result = new getOrdersForCustomer_result();
1148 chandransh 5025
        try {
3430 rajveer 5026
          result.success = iface.getOrdersForCustomer(args.customerId, args.from_date, args.to_date, args.statuses);
1148 chandransh 5027
        } catch (TransactionServiceException ex) {
5028
          result.ex = ex;
5029
        }
3430 rajveer 5030
        return result;
1148 chandransh 5031
      }
5032
    }
5033
 
3430 rajveer 5034
    private static class createOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createOrder_args> {
5035
      public createOrder() {
5036
        super("createOrder");
5037
      }
5038
 
5039
      protected createOrder_args getEmptyArgsInstance() {
5040
        return new createOrder_args();
5041
      }
5042
 
5043
      protected createOrder_result getResult(I iface, createOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 5044
        createOrder_result result = new createOrder_result();
923 rajveer 5045
        try {
3430 rajveer 5046
          result.success = iface.createOrder(args.order);
923 rajveer 5047
          result.setSuccessIsSet(true);
5048
        } catch (TransactionServiceException ex) {
5049
          result.ex = ex;
5050
        }
3430 rajveer 5051
        return result;
923 rajveer 5052
      }
5053
    }
5054
 
3430 rajveer 5055
    private static class getOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrder_args> {
5056
      public getOrder() {
5057
        super("getOrder");
5058
      }
5059
 
5060
      protected getOrder_args getEmptyArgsInstance() {
5061
        return new getOrder_args();
5062
      }
5063
 
5064
      protected getOrder_result getResult(I iface, getOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 5065
        getOrder_result result = new getOrder_result();
923 rajveer 5066
        try {
3430 rajveer 5067
          result.success = iface.getOrder(args.id);
923 rajveer 5068
        } catch (TransactionServiceException ex) {
5069
          result.ex = ex;
5070
        }
3430 rajveer 5071
        return result;
923 rajveer 5072
      }
5073
    }
5074
 
3430 rajveer 5075
    private static class getLineItemsForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLineItemsForOrder_args> {
5076
      public getLineItemsForOrder() {
5077
        super("getLineItemsForOrder");
5078
      }
5079
 
5080
      protected getLineItemsForOrder_args getEmptyArgsInstance() {
5081
        return new getLineItemsForOrder_args();
5082
      }
5083
 
5084
      protected getLineItemsForOrder_result getResult(I iface, getLineItemsForOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 5085
        getLineItemsForOrder_result result = new getLineItemsForOrder_result();
68 ashish 5086
        try {
3430 rajveer 5087
          result.success = iface.getLineItemsForOrder(args.orderId);
68 ashish 5088
        } catch (TransactionServiceException ex) {
5089
          result.ex = ex;
5090
        }
3430 rajveer 5091
        return result;
68 ashish 5092
      }
5093
    }
5094
 
3430 rajveer 5095
    private static class getOrderForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderForCustomer_args> {
5096
      public getOrderForCustomer() {
5097
        super("getOrderForCustomer");
5098
      }
5099
 
5100
      protected getOrderForCustomer_args getEmptyArgsInstance() {
5101
        return new getOrderForCustomer_args();
5102
      }
5103
 
5104
      protected getOrderForCustomer_result getResult(I iface, getOrderForCustomer_args args) throws org.apache.thrift.TException {
3061 chandransh 5105
        getOrderForCustomer_result result = new getOrderForCustomer_result();
68 ashish 5106
        try {
3430 rajveer 5107
          result.success = iface.getOrderForCustomer(args.orderId, args.customerId);
68 ashish 5108
        } catch (TransactionServiceException ex) {
5109
          result.ex = ex;
5110
        }
3430 rajveer 5111
        return result;
68 ashish 5112
      }
5113
    }
5114
 
3430 rajveer 5115
    private static class getAlerts<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAlerts_args> {
5116
      public getAlerts() {
5117
        super("getAlerts");
5118
      }
5119
 
5120
      protected getAlerts_args getEmptyArgsInstance() {
5121
        return new getAlerts_args();
5122
      }
5123
 
5124
      protected getAlerts_result getResult(I iface, getAlerts_args args) throws org.apache.thrift.TException {
3061 chandransh 5125
        getAlerts_result result = new getAlerts_result();
3430 rajveer 5126
        result.success = iface.getAlerts(args.orderId, args.valid);
5127
        return result;
3061 chandransh 5128
      }
5129
    }
5130
 
3430 rajveer 5131
    private static class setAlert<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setAlert_args> {
5132
      public setAlert() {
5133
        super("setAlert");
5134
      }
5135
 
5136
      protected setAlert_args getEmptyArgsInstance() {
5137
        return new setAlert_args();
5138
      }
5139
 
5140
      protected setAlert_result getResult(I iface, setAlert_args args) throws org.apache.thrift.TException {
3061 chandransh 5141
        setAlert_result result = new setAlert_result();
3430 rajveer 5142
        iface.setAlert(args.orderId, args.unset, args.type, args.comment);
5143
        return result;
3061 chandransh 5144
      }
5145
    }
5146
 
3430 rajveer 5147
    private static class getValidOrderCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrderCount_args> {
5148
      public getValidOrderCount() {
5149
        super("getValidOrderCount");
5150
      }
5151
 
5152
      protected getValidOrderCount_args getEmptyArgsInstance() {
5153
        return new getValidOrderCount_args();
5154
      }
5155
 
5156
      protected getValidOrderCount_result getResult(I iface, getValidOrderCount_args args) throws org.apache.thrift.TException {
3061 chandransh 5157
        getValidOrderCount_result result = new getValidOrderCount_result();
3430 rajveer 5158
        result.success = iface.getValidOrderCount();
3061 chandransh 5159
        result.setSuccessIsSet(true);
3430 rajveer 5160
        return result;
3061 chandransh 5161
      }
5162
    }
5163
 
3430 rajveer 5164
    private static class getNoOfCustomersWithSuccessfulTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNoOfCustomersWithSuccessfulTransaction_args> {
5165
      public getNoOfCustomersWithSuccessfulTransaction() {
5166
        super("getNoOfCustomersWithSuccessfulTransaction");
5167
      }
5168
 
5169
      protected getNoOfCustomersWithSuccessfulTransaction_args getEmptyArgsInstance() {
5170
        return new getNoOfCustomersWithSuccessfulTransaction_args();
5171
      }
5172
 
5173
      protected getNoOfCustomersWithSuccessfulTransaction_result getResult(I iface, getNoOfCustomersWithSuccessfulTransaction_args args) throws org.apache.thrift.TException {
3061 chandransh 5174
        getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();
3430 rajveer 5175
        result.success = iface.getNoOfCustomersWithSuccessfulTransaction();
3061 chandransh 5176
        result.setSuccessIsSet(true);
3430 rajveer 5177
        return result;
3061 chandransh 5178
      }
5179
    }
5180
 
3430 rajveer 5181
    private static class getValidOrdersAmountRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrdersAmountRange_args> {
5182
      public getValidOrdersAmountRange() {
5183
        super("getValidOrdersAmountRange");
5184
      }
5185
 
5186
      protected getValidOrdersAmountRange_args getEmptyArgsInstance() {
5187
        return new getValidOrdersAmountRange_args();
5188
      }
5189
 
5190
      protected getValidOrdersAmountRange_result getResult(I iface, getValidOrdersAmountRange_args args) throws org.apache.thrift.TException {
3061 chandransh 5191
        getValidOrdersAmountRange_result result = new getValidOrdersAmountRange_result();
3430 rajveer 5192
        result.success = iface.getValidOrdersAmountRange();
5193
        return result;
3061 chandransh 5194
      }
5195
    }
5196
 
3430 rajveer 5197
    private static class getValidOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrders_args> {
5198
      public getValidOrders() {
5199
        super("getValidOrders");
5200
      }
5201
 
5202
      protected getValidOrders_args getEmptyArgsInstance() {
5203
        return new getValidOrders_args();
5204
      }
5205
 
5206
      protected getValidOrders_result getResult(I iface, getValidOrders_args args) throws org.apache.thrift.TException {
3061 chandransh 5207
        getValidOrders_result result = new getValidOrders_result();
3430 rajveer 5208
        result.success = iface.getValidOrders(args.limit);
5209
        return result;
3061 chandransh 5210
      }
5211
    }
5212
 
3430 rajveer 5213
    private static class batchOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, batchOrders_args> {
5214
      public batchOrders() {
5215
        super("batchOrders");
5216
      }
5217
 
5218
      protected batchOrders_args getEmptyArgsInstance() {
5219
        return new batchOrders_args();
5220
      }
5221
 
5222
      protected batchOrders_result getResult(I iface, batchOrders_args args) throws org.apache.thrift.TException {
3061 chandransh 5223
        batchOrders_result result = new batchOrders_result();
68 ashish 5224
        try {
3430 rajveer 5225
          result.success = iface.batchOrders(args.warehouseId);
3061 chandransh 5226
        } catch (TransactionServiceException ex) {
5227
          result.ex = ex;
5228
        }
3430 rajveer 5229
        return result;
3061 chandransh 5230
      }
5231
    }
5232
 
3430 rajveer 5233
    private static class markOrderAsOutOfStock<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderAsOutOfStock_args> {
5234
      public markOrderAsOutOfStock() {
5235
        super("markOrderAsOutOfStock");
5236
      }
5237
 
5238
      protected markOrderAsOutOfStock_args getEmptyArgsInstance() {
5239
        return new markOrderAsOutOfStock_args();
5240
      }
5241
 
5242
      protected markOrderAsOutOfStock_result getResult(I iface, markOrderAsOutOfStock_args args) throws org.apache.thrift.TException {
3061 chandransh 5243
        markOrderAsOutOfStock_result result = new markOrderAsOutOfStock_result();
5244
        try {
3430 rajveer 5245
          result.success = iface.markOrderAsOutOfStock(args.orderId);
68 ashish 5246
          result.setSuccessIsSet(true);
5247
        } catch (TransactionServiceException ex) {
5248
          result.ex = ex;
5249
        }
3430 rajveer 5250
        return result;
68 ashish 5251
      }
5252
    }
5253
 
3430 rajveer 5254
    private static class verifyOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, verifyOrder_args> {
5255
      public verifyOrder() {
5256
        super("verifyOrder");
5257
      }
5258
 
5259
      protected verifyOrder_args getEmptyArgsInstance() {
5260
        return new verifyOrder_args();
5261
      }
5262
 
5263
      protected verifyOrder_result getResult(I iface, verifyOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 5264
        verifyOrder_result result = new verifyOrder_result();
68 ashish 5265
        try {
3430 rajveer 5266
          result.success = iface.verifyOrder(args.orderId);
3061 chandransh 5267
          result.setSuccessIsSet(true);
68 ashish 5268
        } catch (TransactionServiceException ex) {
5269
          result.ex = ex;
5270
        }
3430 rajveer 5271
        return result;
68 ashish 5272
      }
5273
    }
5274
 
3430 rajveer 5275
    private static class acceptOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, acceptOrder_args> {
5276
      public acceptOrder() {
5277
        super("acceptOrder");
5278
      }
5279
 
5280
      protected acceptOrder_args getEmptyArgsInstance() {
5281
        return new acceptOrder_args();
5282
      }
5283
 
5284
      protected acceptOrder_result getResult(I iface, acceptOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 5285
        acceptOrder_result result = new acceptOrder_result();
68 ashish 5286
        try {
3430 rajveer 5287
          result.success = iface.acceptOrder(args.orderId);
3061 chandransh 5288
          result.setSuccessIsSet(true);
68 ashish 5289
        } catch (TransactionServiceException ex) {
5290
          result.ex = ex;
5291
        }
3430 rajveer 5292
        return result;
68 ashish 5293
      }
5294
    }
5295
 
3430 rajveer 5296
    private static class addBillingDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBillingDetails_args> {
5297
      public addBillingDetails() {
5298
        super("addBillingDetails");
5299
      }
5300
 
5301
      protected addBillingDetails_args getEmptyArgsInstance() {
5302
        return new addBillingDetails_args();
5303
      }
5304
 
5305
      protected addBillingDetails_result getResult(I iface, addBillingDetails_args args) throws org.apache.thrift.TException {
3061 chandransh 5306
        addBillingDetails_result result = new addBillingDetails_result();
1221 chandransh 5307
        try {
4283 anupam.sin 5308
          result.success = iface.addBillingDetails(args.orderId, args.invoice_number, args.imeiNumber, args.itemNumber, args.billed_by, args.jacketNumber, args.billingType, args.vendorId);
3061 chandransh 5309
          result.setSuccessIsSet(true);
1221 chandransh 5310
        } catch (TransactionServiceException ex) {
5311
          result.ex = ex;
5312
        }
3430 rajveer 5313
        return result;
1221 chandransh 5314
      }
5315
    }
5316
 
3430 rajveer 5317
    private static class markOrdersAsManifested<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsManifested_args> {
5318
      public markOrdersAsManifested() {
5319
        super("markOrdersAsManifested");
5320
      }
5321
 
5322
      protected markOrdersAsManifested_args getEmptyArgsInstance() {
5323
        return new markOrdersAsManifested_args();
5324
      }
5325
 
5326
      protected markOrdersAsManifested_result getResult(I iface, markOrdersAsManifested_args args) throws org.apache.thrift.TException {
758 chandransh 5327
        markOrdersAsManifested_result result = new markOrdersAsManifested_result();
5328
        try {
3430 rajveer 5329
          result.success = iface.markOrdersAsManifested(args.warehouseId, args.providerId, args.cod);
758 chandransh 5330
          result.setSuccessIsSet(true);
5331
        } catch (TransactionServiceException ex) {
5332
          result.ex = ex;
5333
        }
3430 rajveer 5334
        return result;
758 chandransh 5335
      }
5336
    }
5337
 
3430 rajveer 5338
    private static class markOrdersAsPickedUp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsPickedUp_args> {
5339
      public markOrdersAsPickedUp() {
5340
        super("markOrdersAsPickedUp");
5341
      }
5342
 
5343
      protected markOrdersAsPickedUp_args getEmptyArgsInstance() {
5344
        return new markOrdersAsPickedUp_args();
5345
      }
5346
 
5347
      protected markOrdersAsPickedUp_result getResult(I iface, markOrdersAsPickedUp_args args) throws org.apache.thrift.TException {
1114 chandransh 5348
        markOrdersAsPickedUp_result result = new markOrdersAsPickedUp_result();
5349
        try {
3430 rajveer 5350
          result.success = iface.markOrdersAsPickedUp(args.providerId, args.pickupDetails);
1114 chandransh 5351
        } catch (TransactionServiceException ex) {
5352
          result.ex = ex;
5353
        }
3430 rajveer 5354
        return result;
1114 chandransh 5355
      }
5356
    }
5357
 
3430 rajveer 5358
    private static class markOrdersAsDelivered<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsDelivered_args> {
5359
      public markOrdersAsDelivered() {
5360
        super("markOrdersAsDelivered");
5361
      }
5362
 
5363
      protected markOrdersAsDelivered_args getEmptyArgsInstance() {
5364
        return new markOrdersAsDelivered_args();
5365
      }
5366
 
5367
      protected markOrdersAsDelivered_result getResult(I iface, markOrdersAsDelivered_args args) throws org.apache.thrift.TException {
1133 chandransh 5368
        markOrdersAsDelivered_result result = new markOrdersAsDelivered_result();
5369
        try {
3430 rajveer 5370
          iface.markOrdersAsDelivered(args.providerId, args.deliveredOrders);
1133 chandransh 5371
        } catch (TransactionServiceException ex) {
5372
          result.ex = ex;
5373
        }
3430 rajveer 5374
        return result;
1133 chandransh 5375
      }
5376
    }
5377
 
3430 rajveer 5378
    private static class markOrdersAsFailed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsFailed_args> {
5379
      public markOrdersAsFailed() {
5380
        super("markOrdersAsFailed");
5381
      }
5382
 
5383
      protected markOrdersAsFailed_args getEmptyArgsInstance() {
5384
        return new markOrdersAsFailed_args();
5385
      }
5386
 
5387
      protected markOrdersAsFailed_result getResult(I iface, markOrdersAsFailed_args args) throws org.apache.thrift.TException {
1133 chandransh 5388
        markOrdersAsFailed_result result = new markOrdersAsFailed_result();
5389
        try {
3430 rajveer 5390
          iface.markOrdersAsFailed(args.providerId, args.returnedOrders);
1133 chandransh 5391
        } catch (TransactionServiceException ex) {
5392
          result.ex = ex;
5393
        }
3430 rajveer 5394
        return result;
1133 chandransh 5395
      }
5396
    }
5397
 
3430 rajveer 5398
    private static class updateNonDeliveryReason<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateNonDeliveryReason_args> {
5399
      public updateNonDeliveryReason() {
5400
        super("updateNonDeliveryReason");
5401
      }
5402
 
5403
      protected updateNonDeliveryReason_args getEmptyArgsInstance() {
5404
        return new updateNonDeliveryReason_args();
5405
      }
5406
 
5407
      protected updateNonDeliveryReason_result getResult(I iface, updateNonDeliveryReason_args args) throws org.apache.thrift.TException {
1245 chandransh 5408
        updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();
5409
        try {
3430 rajveer 5410
          iface.updateNonDeliveryReason(args.providerId, args.undeliveredOrders);
1245 chandransh 5411
        } catch (TransactionServiceException ex) {
5412
          result.ex = ex;
5413
        }
3430 rajveer 5414
        return result;
1245 chandransh 5415
      }
5416
    }
5417
 
3430 rajveer 5418
    private static class getUndeliveredOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUndeliveredOrders_args> {
5419
      public getUndeliveredOrders() {
5420
        super("getUndeliveredOrders");
5421
      }
5422
 
5423
      protected getUndeliveredOrders_args getEmptyArgsInstance() {
5424
        return new getUndeliveredOrders_args();
5425
      }
5426
 
5427
      protected getUndeliveredOrders_result getResult(I iface, getUndeliveredOrders_args args) throws org.apache.thrift.TException {
1406 ankur.sing 5428
        getUndeliveredOrders_result result = new getUndeliveredOrders_result();
3430 rajveer 5429
        result.success = iface.getUndeliveredOrders(args.providerId, args.warehouseId);
5430
        return result;
1406 ankur.sing 5431
      }
5432
    }
5433
 
3430 rajveer 5434
    private static class toggleDOAFlag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, toggleDOAFlag_args> {
5435
      public toggleDOAFlag() {
5436
        super("toggleDOAFlag");
5437
      }
5438
 
5439
      protected toggleDOAFlag_args getEmptyArgsInstance() {
5440
        return new toggleDOAFlag_args();
5441
      }
5442
 
5443
      protected toggleDOAFlag_result getResult(I iface, toggleDOAFlag_args args) throws org.apache.thrift.TException {
2538 chandransh 5444
        toggleDOAFlag_result result = new toggleDOAFlag_result();
5445
        try {
3430 rajveer 5446
          result.success = iface.toggleDOAFlag(args.orderId);
2538 chandransh 5447
          result.setSuccessIsSet(true);
5448
        } catch (TransactionServiceException ex) {
5449
          result.ex = ex;
5450
        }
3430 rajveer 5451
        return result;
2538 chandransh 5452
      }
5453
    }
5454
 
3430 rajveer 5455
    private static class requestPickupNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, requestPickupNumber_args> {
5456
      public requestPickupNumber() {
5457
        super("requestPickupNumber");
5458
      }
5459
 
5460
      protected requestPickupNumber_args getEmptyArgsInstance() {
5461
        return new requestPickupNumber_args();
5462
      }
5463
 
5464
      protected requestPickupNumber_result getResult(I iface, requestPickupNumber_args args) throws org.apache.thrift.TException {
2538 chandransh 5465
        requestPickupNumber_result result = new requestPickupNumber_result();
5466
        try {
3430 rajveer 5467
          result.success = iface.requestPickupNumber(args.orderId);
2538 chandransh 5468
          result.setSuccessIsSet(true);
5469
        } catch (TransactionServiceException ex) {
5470
          result.ex = ex;
5471
        }
3430 rajveer 5472
        return result;
2538 chandransh 5473
      }
5474
    }
5475
 
3430 rajveer 5476
    private static class authorizePickup<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authorizePickup_args> {
5477
      public authorizePickup() {
5478
        super("authorizePickup");
5479
      }
5480
 
5481
      protected authorizePickup_args getEmptyArgsInstance() {
5482
        return new authorizePickup_args();
5483
      }
5484
 
5485
      protected authorizePickup_result getResult(I iface, authorizePickup_args args) throws org.apache.thrift.TException {
2538 chandransh 5486
        authorizePickup_result result = new authorizePickup_result();
5487
        try {
3430 rajveer 5488
          result.success = iface.authorizePickup(args.orderId, args.pickupNumber);
2538 chandransh 5489
          result.setSuccessIsSet(true);
5490
        } catch (TransactionServiceException ex) {
5491
          result.ex = ex;
5492
        }
3430 rajveer 5493
        return result;
2538 chandransh 5494
      }
5495
    }
5496
 
3430 rajveer 5497
    private static class markDoasAsPickedUp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markDoasAsPickedUp_args> {
5498
      public markDoasAsPickedUp() {
5499
        super("markDoasAsPickedUp");
5500
      }
5501
 
5502
      protected markDoasAsPickedUp_args getEmptyArgsInstance() {
5503
        return new markDoasAsPickedUp_args();
5504
      }
5505
 
5506
      protected markDoasAsPickedUp_result getResult(I iface, markDoasAsPickedUp_args args) throws org.apache.thrift.TException {
2765 chandransh 5507
        markDoasAsPickedUp_result result = new markDoasAsPickedUp_result();
3430 rajveer 5508
        result.success = iface.markDoasAsPickedUp(args.providerId, args.pickupDetails);
5509
        return result;
2765 chandransh 5510
      }
5511
    }
5512
 
3430 rajveer 5513
    private static class receiveReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, receiveReturn_args> {
5514
      public receiveReturn() {
5515
        super("receiveReturn");
5516
      }
5517
 
5518
      protected receiveReturn_args getEmptyArgsInstance() {
5519
        return new receiveReturn_args();
5520
      }
5521
 
5522
      protected receiveReturn_result getResult(I iface, receiveReturn_args args) throws org.apache.thrift.TException {
2615 chandransh 5523
        receiveReturn_result result = new receiveReturn_result();
2590 chandransh 5524
        try {
3430 rajveer 5525
          result.success = iface.receiveReturn(args.orderId);
2590 chandransh 5526
          result.setSuccessIsSet(true);
5527
        } catch (TransactionServiceException ex) {
5528
          result.ex = ex;
5529
        }
3430 rajveer 5530
        return result;
2590 chandransh 5531
      }
5532
    }
5533
 
3430 rajveer 5534
    private static class validateDoa<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateDoa_args> {
5535
      public validateDoa() {
5536
        super("validateDoa");
5537
      }
5538
 
5539
      protected validateDoa_args getEmptyArgsInstance() {
5540
        return new validateDoa_args();
5541
      }
5542
 
5543
      protected validateDoa_result getResult(I iface, validateDoa_args args) throws org.apache.thrift.TException {
2590 chandransh 5544
        validateDoa_result result = new validateDoa_result();
5545
        try {
3430 rajveer 5546
          result.success = iface.validateDoa(args.orderId, args.isValid);
2590 chandransh 5547
          result.setSuccessIsSet(true);
5548
        } catch (TransactionServiceException ex) {
5549
          result.ex = ex;
5550
        }
3430 rajveer 5551
        return result;
2590 chandransh 5552
      }
5553
    }
5554
 
3430 rajveer 5555
    private static class reshipOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reshipOrder_args> {
5556
      public reshipOrder() {
5557
        super("reshipOrder");
5558
      }
5559
 
5560
      protected reshipOrder_args getEmptyArgsInstance() {
5561
        return new reshipOrder_args();
5562
      }
5563
 
5564
      protected reshipOrder_result getResult(I iface, reshipOrder_args args) throws org.apache.thrift.TException {
2615 chandransh 5565
        reshipOrder_result result = new reshipOrder_result();
5566
        try {
3430 rajveer 5567
          result.success = iface.reshipOrder(args.orderId);
2615 chandransh 5568
          result.setSuccessIsSet(true);
5569
        } catch (TransactionServiceException ex) {
5570
          result.ex = ex;
5571
        }
3430 rajveer 5572
        return result;
2615 chandransh 5573
      }
5574
    }
5575
 
3430 rajveer 5576
    private static class refundOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, refundOrder_args> {
5577
      public refundOrder() {
5578
        super("refundOrder");
5579
      }
5580
 
5581
      protected refundOrder_args getEmptyArgsInstance() {
5582
        return new refundOrder_args();
5583
      }
5584
 
5585
      protected refundOrder_result getResult(I iface, refundOrder_args args) throws org.apache.thrift.TException {
2615 chandransh 5586
        refundOrder_result result = new refundOrder_result();
5587
        try {
3430 rajveer 5588
          result.success = iface.refundOrder(args.orderId, args.refundedBy, args.reason);
2615 chandransh 5589
          result.setSuccessIsSet(true);
5590
        } catch (TransactionServiceException ex) {
5591
          result.ex = ex;
5592
        }
3430 rajveer 5593
        return result;
2615 chandransh 5594
      }
5595
    }
5596
 
3430 rajveer 5597
    private static class getReturnOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnOrders_args> {
5598
      public getReturnOrders() {
5599
        super("getReturnOrders");
5600
      }
5601
 
5602
      protected getReturnOrders_args getEmptyArgsInstance() {
5603
        return new getReturnOrders_args();
5604
      }
5605
 
5606
      protected getReturnOrders_result getResult(I iface, getReturnOrders_args args) throws org.apache.thrift.TException {
2690 chandransh 5607
        getReturnOrders_result result = new getReturnOrders_result();
3430 rajveer 5608
        result.success = iface.getReturnOrders(args.warehouseId, args.fromDate, args.toDate);
5609
        return result;
2690 chandransh 5610
      }
5611
    }
5612
 
3430 rajveer 5613
    private static class getReturnOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnOrder_args> {
5614
      public getReturnOrder() {
5615
        super("getReturnOrder");
5616
      }
5617
 
5618
      protected getReturnOrder_args getEmptyArgsInstance() {
5619
        return new getReturnOrder_args();
5620
      }
5621
 
5622
      protected getReturnOrder_result getResult(I iface, getReturnOrder_args args) throws org.apache.thrift.TException {
2700 chandransh 5623
        getReturnOrder_result result = new getReturnOrder_result();
5624
        try {
3430 rajveer 5625
          result.success = iface.getReturnOrder(args.id);
2700 chandransh 5626
        } catch (TransactionServiceException ex) {
5627
          result.ex = ex;
5628
        }
3430 rajveer 5629
        return result;
2700 chandransh 5630
      }
5631
    }
5632
 
3430 rajveer 5633
    private static class processReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, processReturn_args> {
5634
      public processReturn() {
5635
        super("processReturn");
5636
      }
5637
 
5638
      protected processReturn_args getEmptyArgsInstance() {
5639
        return new processReturn_args();
5640
      }
5641
 
5642
      protected processReturn_result getResult(I iface, processReturn_args args) throws org.apache.thrift.TException {
2690 chandransh 5643
        processReturn_result result = new processReturn_result();
5644
        try {
3430 rajveer 5645
          iface.processReturn(args.returnOrderId);
2690 chandransh 5646
        } catch (TransactionServiceException ex) {
5647
          result.ex = ex;
5648
        }
3430 rajveer 5649
        return result;
2690 chandransh 5650
      }
5651
    }
5652
 
3430 rajveer 5653
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
5654
      public createPurchaseOrder() {
5655
        super("createPurchaseOrder");
5656
      }
5657
 
5658
      protected createPurchaseOrder_args getEmptyArgsInstance() {
5659
        return new createPurchaseOrder_args();
5660
      }
5661
 
5662
      protected createPurchaseOrder_result getResult(I iface, createPurchaseOrder_args args) throws org.apache.thrift.TException {
2819 chandransh 5663
        createPurchaseOrder_result result = new createPurchaseOrder_result();
5664
        try {
3430 rajveer 5665
          result.success = iface.createPurchaseOrder(args.warehouseId);
2819 chandransh 5666
          result.setSuccessIsSet(true);
5667
        } catch (TransactionServiceException ex) {
5668
          result.ex = ex;
5669
        }
3430 rajveer 5670
        return result;
2819 chandransh 5671
      }
5672
    }
5673
 
3451 chandransh 5674
    private static class updateWeight<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateWeight_args> {
5675
      public updateWeight() {
5676
        super("updateWeight");
5677
      }
5678
 
5679
      protected updateWeight_args getEmptyArgsInstance() {
5680
        return new updateWeight_args();
5681
      }
5682
 
5683
      protected updateWeight_result getResult(I iface, updateWeight_args args) throws org.apache.thrift.TException {
5684
        updateWeight_result result = new updateWeight_result();
5685
        try {
5686
          result.success = iface.updateWeight(args.orderId, args.weight);
5687
        } catch (TransactionServiceException ex) {
5688
          result.ex = ex;
5689
        }
5690
        return result;
5691
      }
5692
    }
5693
 
3469 chandransh 5694
    private static class changeItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItem_args> {
5695
      public changeItem() {
5696
        super("changeItem");
5697
      }
5698
 
5699
      protected changeItem_args getEmptyArgsInstance() {
5700
        return new changeItem_args();
5701
      }
5702
 
5703
      protected changeItem_result getResult(I iface, changeItem_args args) throws org.apache.thrift.TException {
5704
        changeItem_result result = new changeItem_result();
5705
        try {
5706
          result.success = iface.changeItem(args.orderId, args.itemId);
5707
        } catch (TransactionServiceException ex) {
5708
          result.ex = ex;
5709
        }
5710
        return result;
5711
      }
5712
    }
5713
 
5714
    private static class shiftToWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shiftToWarehouse_args> {
5715
      public shiftToWarehouse() {
5716
        super("shiftToWarehouse");
5717
      }
5718
 
5719
      protected shiftToWarehouse_args getEmptyArgsInstance() {
5720
        return new shiftToWarehouse_args();
5721
      }
5722
 
5723
      protected shiftToWarehouse_result getResult(I iface, shiftToWarehouse_args args) throws org.apache.thrift.TException {
5724
        shiftToWarehouse_result result = new shiftToWarehouse_result();
5725
        try {
5726
          result.success = iface.shiftToWarehouse(args.orderId, args.warehouseId);
5727
        } catch (TransactionServiceException ex) {
5728
          result.ex = ex;
5729
        }
5730
        return result;
5731
      }
5732
    }
5733
 
3553 chandransh 5734
    private static class addDelayReason<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addDelayReason_args> {
5735
      public addDelayReason() {
5736
        super("addDelayReason");
5737
      }
5738
 
5739
      protected addDelayReason_args getEmptyArgsInstance() {
5740
        return new addDelayReason_args();
5741
      }
5742
 
5743
      protected addDelayReason_result getResult(I iface, addDelayReason_args args) throws org.apache.thrift.TException {
5744
        addDelayReason_result result = new addDelayReason_result();
5745
        try {
3986 chandransh 5746
          result.success = iface.addDelayReason(args.orderId, args.delayReason, args.furtherDelay);
3553 chandransh 5747
          result.setSuccessIsSet(true);
5748
        } catch (TransactionServiceException ex) {
5749
          result.ex = ex;
5750
        }
5751
        return result;
5752
      }
5753
    }
5754
 
3956 chandransh 5755
    private static class reconcileCodCollection<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reconcileCodCollection_args> {
5756
      public reconcileCodCollection() {
5757
        super("reconcileCodCollection");
5758
      }
5759
 
5760
      protected reconcileCodCollection_args getEmptyArgsInstance() {
5761
        return new reconcileCodCollection_args();
5762
      }
5763
 
5764
      protected reconcileCodCollection_result getResult(I iface, reconcileCodCollection_args args) throws org.apache.thrift.TException {
5765
        reconcileCodCollection_result result = new reconcileCodCollection_result();
5766
        try {
5767
          result.success = iface.reconcileCodCollection(args.collectedAmountMap, args.xferBy, args.xferTxnId, args.xferDate);
5768
        } catch (TransactionServiceException ex) {
5769
          result.ex = ex;
5770
        }
5771
        return result;
5772
      }
5773
    }
5774
 
4008 mandeep.dh 5775
    private static class getTransactionsRequiringExtraProcessing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionsRequiringExtraProcessing_args> {
5776
      public getTransactionsRequiringExtraProcessing() {
5777
        super("getTransactionsRequiringExtraProcessing");
5778
      }
5779
 
5780
      protected getTransactionsRequiringExtraProcessing_args getEmptyArgsInstance() {
5781
        return new getTransactionsRequiringExtraProcessing_args();
5782
      }
5783
 
5784
      protected getTransactionsRequiringExtraProcessing_result getResult(I iface, getTransactionsRequiringExtraProcessing_args args) throws org.apache.thrift.TException {
5785
        getTransactionsRequiringExtraProcessing_result result = new getTransactionsRequiringExtraProcessing_result();
5786
        result.success = iface.getTransactionsRequiringExtraProcessing(args.category);
5787
        return result;
5788
      }
5789
    }
5790
 
5791
    private static class markTransactionAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markTransactionAsProcessed_args> {
5792
      public markTransactionAsProcessed() {
5793
        super("markTransactionAsProcessed");
5794
      }
5795
 
5796
      protected markTransactionAsProcessed_args getEmptyArgsInstance() {
5797
        return new markTransactionAsProcessed_args();
5798
      }
5799
 
5800
      protected markTransactionAsProcessed_result getResult(I iface, markTransactionAsProcessed_args args) throws org.apache.thrift.TException {
5801
        markTransactionAsProcessed_result result = new markTransactionAsProcessed_result();
5802
        iface.markTransactionAsProcessed(args.transactionId, args.category);
5803
        return result;
5804
      }
5805
    }
5806
 
4018 chandransh 5807
    private static class getItemWiseRiskyOrdersCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemWiseRiskyOrdersCount_args> {
5808
      public getItemWiseRiskyOrdersCount() {
5809
        super("getItemWiseRiskyOrdersCount");
5810
      }
5811
 
5812
      protected getItemWiseRiskyOrdersCount_args getEmptyArgsInstance() {
5813
        return new getItemWiseRiskyOrdersCount_args();
5814
      }
5815
 
5816
      protected getItemWiseRiskyOrdersCount_result getResult(I iface, getItemWiseRiskyOrdersCount_args args) throws org.apache.thrift.TException {
5817
        getItemWiseRiskyOrdersCount_result result = new getItemWiseRiskyOrdersCount_result();
5818
        result.success = iface.getItemWiseRiskyOrdersCount();
5819
        return result;
5820
      }
5821
    }
5822
 
4246 rajveer 5823
    private static class markOrderCancellationRequestReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderCancellationRequestReceived_args> {
5824
      public markOrderCancellationRequestReceived() {
5825
        super("markOrderCancellationRequestReceived");
5826
      }
5827
 
5828
      protected markOrderCancellationRequestReceived_args getEmptyArgsInstance() {
5829
        return new markOrderCancellationRequestReceived_args();
5830
      }
5831
 
5832
      protected markOrderCancellationRequestReceived_result getResult(I iface, markOrderCancellationRequestReceived_args args) throws org.apache.thrift.TException {
5833
        markOrderCancellationRequestReceived_result result = new markOrderCancellationRequestReceived_result();
5834
        try {
5835
          iface.markOrderCancellationRequestReceived(args.orderId);
5836
        } catch (TransactionServiceException ex) {
5837
          result.ex = ex;
5838
        }
5839
        return result;
5840
      }
5841
    }
5842
 
5843
    private static class markOrderCancellationRequestConfirmed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderCancellationRequestConfirmed_args> {
5844
      public markOrderCancellationRequestConfirmed() {
5845
        super("markOrderCancellationRequestConfirmed");
5846
      }
5847
 
5848
      protected markOrderCancellationRequestConfirmed_args getEmptyArgsInstance() {
5849
        return new markOrderCancellationRequestConfirmed_args();
5850
      }
5851
 
5852
      protected markOrderCancellationRequestConfirmed_result getResult(I iface, markOrderCancellationRequestConfirmed_args args) throws org.apache.thrift.TException {
5853
        markOrderCancellationRequestConfirmed_result result = new markOrderCancellationRequestConfirmed_result();
5854
        try {
5855
          iface.markOrderCancellationRequestConfirmed(args.orderId);
5856
        } catch (TransactionServiceException ex) {
5857
          result.ex = ex;
5858
        }
5859
        return result;
5860
      }
5861
    }
5862
 
5863
    private static class markOrderCancellationRequestDenied<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderCancellationRequestDenied_args> {
5864
      public markOrderCancellationRequestDenied() {
5865
        super("markOrderCancellationRequestDenied");
5866
      }
5867
 
5868
      protected markOrderCancellationRequestDenied_args getEmptyArgsInstance() {
5869
        return new markOrderCancellationRequestDenied_args();
5870
      }
5871
 
5872
      protected markOrderCancellationRequestDenied_result getResult(I iface, markOrderCancellationRequestDenied_args args) throws org.apache.thrift.TException {
5873
        markOrderCancellationRequestDenied_result result = new markOrderCancellationRequestDenied_result();
5874
        try {
5875
          iface.markOrderCancellationRequestDenied(args.orderId);
5876
        } catch (TransactionServiceException ex) {
5877
          result.ex = ex;
5878
        }
5879
        return result;
5880
      }
5881
    }
5882
 
4258 rajveer 5883
    private static class markTransactionAsPaymentFlagRemoved<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markTransactionAsPaymentFlagRemoved_args> {
5884
      public markTransactionAsPaymentFlagRemoved() {
5885
        super("markTransactionAsPaymentFlagRemoved");
4246 rajveer 5886
      }
5887
 
4258 rajveer 5888
      protected markTransactionAsPaymentFlagRemoved_args getEmptyArgsInstance() {
5889
        return new markTransactionAsPaymentFlagRemoved_args();
4246 rajveer 5890
      }
5891
 
4258 rajveer 5892
      protected markTransactionAsPaymentFlagRemoved_result getResult(I iface, markTransactionAsPaymentFlagRemoved_args args) throws org.apache.thrift.TException {
5893
        markTransactionAsPaymentFlagRemoved_result result = new markTransactionAsPaymentFlagRemoved_result();
4246 rajveer 5894
        try {
4258 rajveer 5895
          iface.markTransactionAsPaymentFlagRemoved(args.transactionId);
4246 rajveer 5896
        } catch (TransactionServiceException ex) {
5897
          result.ex = ex;
5898
        }
5899
        return result;
5900
      }
5901
    }
5902
 
4259 anupam.sin 5903
    private static class refundTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, refundTransaction_args> {
5904
      public refundTransaction() {
5905
        super("refundTransaction");
5906
      }
5907
 
5908
      protected refundTransaction_args getEmptyArgsInstance() {
5909
        return new refundTransaction_args();
5910
      }
5911
 
5912
      protected refundTransaction_result getResult(I iface, refundTransaction_args args) throws org.apache.thrift.TException {
5913
        refundTransaction_result result = new refundTransaction_result();
5914
        try {
5915
          iface.refundTransaction(args.transactionId, args.refundedBy, args.reason);
5916
        } catch (TransactionServiceException ex) {
5917
          result.ex = ex;
5918
        }
5919
        return result;
5920
      }
5921
    }
5922
 
4285 rajveer 5923
    private static class acceptOrdersForItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, acceptOrdersForItemId_args> {
5924
      public acceptOrdersForItemId() {
5925
        super("acceptOrdersForItemId");
5926
      }
5927
 
5928
      protected acceptOrdersForItemId_args getEmptyArgsInstance() {
5929
        return new acceptOrdersForItemId_args();
5930
      }
5931
 
5932
      protected acceptOrdersForItemId_result getResult(I iface, acceptOrdersForItemId_args args) throws org.apache.thrift.TException {
5933
        acceptOrdersForItemId_result result = new acceptOrdersForItemId_result();
5934
        try {
5935
          result.success = iface.acceptOrdersForItemId(args.itemId, args.inventory);
5936
          result.setSuccessIsSet(true);
5937
        } catch (TransactionServiceException ex) {
5938
          result.ex = ex;
5939
        }
5940
        return result;
5941
      }
5942
    }
5943
 
68 ashish 5944
  }
5945
 
3430 rajveer 5946
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
5947
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
68 ashish 5948
 
3430 rajveer 5949
    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);
68 ashish 5950
 
3430 rajveer 5951
    private Transaction transaction; // required
68 ashish 5952
 
5953
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5954
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 5955
      TRANSACTION((short)1, "transaction");
5956
 
5957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5958
 
5959
      static {
5960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5961
          byName.put(field.getFieldName(), field);
5962
        }
5963
      }
5964
 
5965
      /**
5966
       * Find the _Fields constant that matches fieldId, or null if its not found.
5967
       */
5968
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5969
        switch(fieldId) {
5970
          case 1: // TRANSACTION
5971
            return TRANSACTION;
5972
          default:
5973
            return null;
5974
        }
68 ashish 5975
      }
5976
 
5977
      /**
5978
       * Find the _Fields constant that matches fieldId, throwing an exception
5979
       * if it is not found.
5980
       */
5981
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5982
        _Fields fields = findByThriftId(fieldId);
5983
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5984
        return fields;
5985
      }
5986
 
5987
      /**
5988
       * Find the _Fields constant that matches name, or null if its not found.
5989
       */
5990
      public static _Fields findByName(String name) {
5991
        return byName.get(name);
5992
      }
5993
 
5994
      private final short _thriftId;
5995
      private final String _fieldName;
5996
 
5997
      _Fields(short thriftId, String fieldName) {
5998
        _thriftId = thriftId;
5999
        _fieldName = fieldName;
6000
      }
6001
 
6002
      public short getThriftFieldId() {
6003
        return _thriftId;
6004
      }
6005
 
6006
      public String getFieldName() {
6007
        return _fieldName;
6008
      }
6009
    }
6010
 
6011
    // isset id assignments
6012
 
3430 rajveer 6013
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 6014
    static {
3430 rajveer 6015
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6016
      tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6017
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class)));
6018
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6019
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransaction_args.class, metaDataMap);
68 ashish 6020
    }
6021
 
6022
    public createTransaction_args() {
6023
    }
6024
 
6025
    public createTransaction_args(
6026
      Transaction transaction)
6027
    {
6028
      this();
6029
      this.transaction = transaction;
6030
    }
6031
 
6032
    /**
6033
     * Performs a deep copy on <i>other</i>.
6034
     */
6035
    public createTransaction_args(createTransaction_args other) {
6036
      if (other.isSetTransaction()) {
6037
        this.transaction = new Transaction(other.transaction);
6038
      }
6039
    }
6040
 
6041
    public createTransaction_args deepCopy() {
6042
      return new createTransaction_args(this);
6043
    }
6044
 
3430 rajveer 6045
    @Override
6046
    public void clear() {
6047
      this.transaction = null;
68 ashish 6048
    }
6049
 
6050
    public Transaction getTransaction() {
6051
      return this.transaction;
6052
    }
6053
 
3430 rajveer 6054
    public void setTransaction(Transaction transaction) {
68 ashish 6055
      this.transaction = transaction;
6056
    }
6057
 
6058
    public void unsetTransaction() {
6059
      this.transaction = null;
6060
    }
6061
 
3430 rajveer 6062
    /** Returns true if field transaction is set (has been assigned a value) and false otherwise */
68 ashish 6063
    public boolean isSetTransaction() {
6064
      return this.transaction != null;
6065
    }
6066
 
6067
    public void setTransactionIsSet(boolean value) {
6068
      if (!value) {
6069
        this.transaction = null;
6070
      }
6071
    }
6072
 
6073
    public void setFieldValue(_Fields field, Object value) {
6074
      switch (field) {
6075
      case TRANSACTION:
6076
        if (value == null) {
6077
          unsetTransaction();
6078
        } else {
6079
          setTransaction((Transaction)value);
6080
        }
6081
        break;
6082
 
6083
      }
6084
    }
6085
 
6086
    public Object getFieldValue(_Fields field) {
6087
      switch (field) {
6088
      case TRANSACTION:
6089
        return getTransaction();
6090
 
6091
      }
6092
      throw new IllegalStateException();
6093
    }
6094
 
3430 rajveer 6095
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6096
    public boolean isSet(_Fields field) {
6097
      if (field == null) {
6098
        throw new IllegalArgumentException();
6099
      }
68 ashish 6100
 
6101
      switch (field) {
6102
      case TRANSACTION:
6103
        return isSetTransaction();
6104
      }
6105
      throw new IllegalStateException();
6106
    }
6107
 
6108
    @Override
6109
    public boolean equals(Object that) {
6110
      if (that == null)
6111
        return false;
6112
      if (that instanceof createTransaction_args)
6113
        return this.equals((createTransaction_args)that);
6114
      return false;
6115
    }
6116
 
6117
    public boolean equals(createTransaction_args that) {
6118
      if (that == null)
6119
        return false;
6120
 
6121
      boolean this_present_transaction = true && this.isSetTransaction();
6122
      boolean that_present_transaction = true && that.isSetTransaction();
6123
      if (this_present_transaction || that_present_transaction) {
6124
        if (!(this_present_transaction && that_present_transaction))
6125
          return false;
6126
        if (!this.transaction.equals(that.transaction))
6127
          return false;
6128
      }
6129
 
6130
      return true;
6131
    }
6132
 
6133
    @Override
6134
    public int hashCode() {
6135
      return 0;
6136
    }
6137
 
684 chandransh 6138
    public int compareTo(createTransaction_args other) {
6139
      if (!getClass().equals(other.getClass())) {
6140
        return getClass().getName().compareTo(other.getClass().getName());
6141
      }
6142
 
6143
      int lastComparison = 0;
6144
      createTransaction_args typedOther = (createTransaction_args)other;
6145
 
3430 rajveer 6146
      lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(typedOther.isSetTransaction());
684 chandransh 6147
      if (lastComparison != 0) {
6148
        return lastComparison;
6149
      }
3430 rajveer 6150
      if (isSetTransaction()) {
6151
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, typedOther.transaction);
6152
        if (lastComparison != 0) {
6153
          return lastComparison;
6154
        }
684 chandransh 6155
      }
6156
      return 0;
6157
    }
6158
 
3430 rajveer 6159
    public _Fields fieldForId(int fieldId) {
6160
      return _Fields.findByThriftId(fieldId);
6161
    }
6162
 
6163
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6164
      org.apache.thrift.protocol.TField field;
68 ashish 6165
      iprot.readStructBegin();
6166
      while (true)
6167
      {
6168
        field = iprot.readFieldBegin();
3430 rajveer 6169
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 6170
          break;
6171
        }
3430 rajveer 6172
        switch (field.id) {
6173
          case 1: // TRANSACTION
6174
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6175
              this.transaction = new Transaction();
6176
              this.transaction.read(iprot);
6177
            } else { 
6178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6179
            }
6180
            break;
6181
          default:
6182
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 6183
        }
3430 rajveer 6184
        iprot.readFieldEnd();
68 ashish 6185
      }
6186
      iprot.readStructEnd();
6187
      validate();
6188
    }
6189
 
3430 rajveer 6190
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 6191
      validate();
6192
 
6193
      oprot.writeStructBegin(STRUCT_DESC);
6194
      if (this.transaction != null) {
6195
        oprot.writeFieldBegin(TRANSACTION_FIELD_DESC);
6196
        this.transaction.write(oprot);
6197
        oprot.writeFieldEnd();
6198
      }
6199
      oprot.writeFieldStop();
6200
      oprot.writeStructEnd();
6201
    }
6202
 
6203
    @Override
6204
    public String toString() {
6205
      StringBuilder sb = new StringBuilder("createTransaction_args(");
6206
      boolean first = true;
6207
 
6208
      sb.append("transaction:");
6209
      if (this.transaction == null) {
6210
        sb.append("null");
6211
      } else {
6212
        sb.append(this.transaction);
6213
      }
6214
      first = false;
6215
      sb.append(")");
6216
      return sb.toString();
6217
    }
6218
 
3430 rajveer 6219
    public void validate() throws org.apache.thrift.TException {
68 ashish 6220
      // check for required fields
6221
    }
6222
 
3430 rajveer 6223
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6224
      try {
6225
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6226
      } catch (org.apache.thrift.TException te) {
6227
        throw new java.io.IOException(te);
6228
      }
6229
    }
6230
 
6231
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6232
      try {
6233
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6234
      } catch (org.apache.thrift.TException te) {
6235
        throw new java.io.IOException(te);
6236
      }
6237
    }
6238
 
68 ashish 6239
  }
6240
 
3430 rajveer 6241
  public static class createTransaction_result implements org.apache.thrift.TBase<createTransaction_result, createTransaction_result._Fields>, java.io.Serializable, Cloneable   {
6242
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_result");
68 ashish 6243
 
3430 rajveer 6244
    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);
6245
    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);
68 ashish 6246
 
3430 rajveer 6247
    private long success; // required
6248
    private TransactionServiceException ex; // required
68 ashish 6249
 
6250
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6251
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
132 ashish 6252
      SUCCESS((short)0, "success"),
68 ashish 6253
      EX((short)1, "ex");
6254
 
6255
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6256
 
6257
      static {
6258
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6259
          byName.put(field.getFieldName(), field);
6260
        }
6261
      }
6262
 
6263
      /**
6264
       * Find the _Fields constant that matches fieldId, or null if its not found.
6265
       */
6266
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6267
        switch(fieldId) {
6268
          case 0: // SUCCESS
6269
            return SUCCESS;
6270
          case 1: // EX
6271
            return EX;
6272
          default:
6273
            return null;
6274
        }
68 ashish 6275
      }
6276
 
6277
      /**
6278
       * Find the _Fields constant that matches fieldId, throwing an exception
6279
       * if it is not found.
6280
       */
6281
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6282
        _Fields fields = findByThriftId(fieldId);
6283
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6284
        return fields;
6285
      }
6286
 
6287
      /**
6288
       * Find the _Fields constant that matches name, or null if its not found.
6289
       */
6290
      public static _Fields findByName(String name) {
6291
        return byName.get(name);
6292
      }
6293
 
6294
      private final short _thriftId;
6295
      private final String _fieldName;
6296
 
6297
      _Fields(short thriftId, String fieldName) {
6298
        _thriftId = thriftId;
6299
        _fieldName = fieldName;
6300
      }
6301
 
6302
      public short getThriftFieldId() {
6303
        return _thriftId;
6304
      }
6305
 
6306
      public String getFieldName() {
6307
        return _fieldName;
6308
      }
6309
    }
6310
 
6311
    // isset id assignments
132 ashish 6312
    private static final int __SUCCESS_ISSET_ID = 0;
6313
    private BitSet __isset_bit_vector = new BitSet(1);
68 ashish 6314
 
3430 rajveer 6315
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 6316
    static {
3430 rajveer 6317
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6318
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6319
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6320
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6321
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6322
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6323
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransaction_result.class, metaDataMap);
68 ashish 6324
    }
6325
 
6326
    public createTransaction_result() {
6327
    }
6328
 
6329
    public createTransaction_result(
132 ashish 6330
      long success,
68 ashish 6331
      TransactionServiceException ex)
6332
    {
6333
      this();
132 ashish 6334
      this.success = success;
6335
      setSuccessIsSet(true);
68 ashish 6336
      this.ex = ex;
6337
    }
6338
 
6339
    /**
6340
     * Performs a deep copy on <i>other</i>.
6341
     */
6342
    public createTransaction_result(createTransaction_result other) {
132 ashish 6343
      __isset_bit_vector.clear();
6344
      __isset_bit_vector.or(other.__isset_bit_vector);
6345
      this.success = other.success;
68 ashish 6346
      if (other.isSetEx()) {
6347
        this.ex = new TransactionServiceException(other.ex);
6348
      }
6349
    }
6350
 
6351
    public createTransaction_result deepCopy() {
6352
      return new createTransaction_result(this);
6353
    }
6354
 
3430 rajveer 6355
    @Override
6356
    public void clear() {
6357
      setSuccessIsSet(false);
6358
      this.success = 0;
6359
      this.ex = null;
68 ashish 6360
    }
6361
 
132 ashish 6362
    public long getSuccess() {
6363
      return this.success;
6364
    }
6365
 
3430 rajveer 6366
    public void setSuccess(long success) {
132 ashish 6367
      this.success = success;
6368
      setSuccessIsSet(true);
6369
    }
6370
 
6371
    public void unsetSuccess() {
6372
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
6373
    }
6374
 
3430 rajveer 6375
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
132 ashish 6376
    public boolean isSetSuccess() {
6377
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
6378
    }
6379
 
6380
    public void setSuccessIsSet(boolean value) {
6381
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
6382
    }
6383
 
68 ashish 6384
    public TransactionServiceException getEx() {
6385
      return this.ex;
6386
    }
6387
 
3430 rajveer 6388
    public void setEx(TransactionServiceException ex) {
68 ashish 6389
      this.ex = ex;
6390
    }
6391
 
6392
    public void unsetEx() {
6393
      this.ex = null;
6394
    }
6395
 
3430 rajveer 6396
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 6397
    public boolean isSetEx() {
6398
      return this.ex != null;
6399
    }
6400
 
6401
    public void setExIsSet(boolean value) {
6402
      if (!value) {
6403
        this.ex = null;
6404
      }
6405
    }
6406
 
6407
    public void setFieldValue(_Fields field, Object value) {
6408
      switch (field) {
132 ashish 6409
      case SUCCESS:
6410
        if (value == null) {
6411
          unsetSuccess();
6412
        } else {
6413
          setSuccess((Long)value);
6414
        }
6415
        break;
6416
 
68 ashish 6417
      case EX:
6418
        if (value == null) {
6419
          unsetEx();
6420
        } else {
6421
          setEx((TransactionServiceException)value);
6422
        }
6423
        break;
6424
 
6425
      }
6426
    }
6427
 
6428
    public Object getFieldValue(_Fields field) {
6429
      switch (field) {
132 ashish 6430
      case SUCCESS:
3430 rajveer 6431
        return Long.valueOf(getSuccess());
132 ashish 6432
 
68 ashish 6433
      case EX:
6434
        return getEx();
6435
 
6436
      }
6437
      throw new IllegalStateException();
6438
    }
6439
 
3430 rajveer 6440
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6441
    public boolean isSet(_Fields field) {
6442
      if (field == null) {
6443
        throw new IllegalArgumentException();
6444
      }
68 ashish 6445
 
6446
      switch (field) {
132 ashish 6447
      case SUCCESS:
6448
        return isSetSuccess();
68 ashish 6449
      case EX:
6450
        return isSetEx();
6451
      }
6452
      throw new IllegalStateException();
6453
    }
6454
 
6455
    @Override
6456
    public boolean equals(Object that) {
6457
      if (that == null)
6458
        return false;
6459
      if (that instanceof createTransaction_result)
6460
        return this.equals((createTransaction_result)that);
6461
      return false;
6462
    }
6463
 
6464
    public boolean equals(createTransaction_result that) {
6465
      if (that == null)
6466
        return false;
6467
 
132 ashish 6468
      boolean this_present_success = true;
6469
      boolean that_present_success = true;
6470
      if (this_present_success || that_present_success) {
6471
        if (!(this_present_success && that_present_success))
6472
          return false;
6473
        if (this.success != that.success)
6474
          return false;
6475
      }
6476
 
68 ashish 6477
      boolean this_present_ex = true && this.isSetEx();
6478
      boolean that_present_ex = true && that.isSetEx();
6479
      if (this_present_ex || that_present_ex) {
6480
        if (!(this_present_ex && that_present_ex))
6481
          return false;
6482
        if (!this.ex.equals(that.ex))
6483
          return false;
6484
      }
6485
 
6486
      return true;
6487
    }
6488
 
6489
    @Override
6490
    public int hashCode() {
6491
      return 0;
6492
    }
6493
 
6494
    public int compareTo(createTransaction_result other) {
6495
      if (!getClass().equals(other.getClass())) {
6496
        return getClass().getName().compareTo(other.getClass().getName());
6497
      }
6498
 
6499
      int lastComparison = 0;
6500
      createTransaction_result typedOther = (createTransaction_result)other;
6501
 
3430 rajveer 6502
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
132 ashish 6503
      if (lastComparison != 0) {
6504
        return lastComparison;
6505
      }
3430 rajveer 6506
      if (isSetSuccess()) {
6507
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6508
        if (lastComparison != 0) {
6509
          return lastComparison;
6510
        }
132 ashish 6511
      }
3430 rajveer 6512
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 6513
      if (lastComparison != 0) {
6514
        return lastComparison;
6515
      }
3430 rajveer 6516
      if (isSetEx()) {
6517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
6518
        if (lastComparison != 0) {
6519
          return lastComparison;
6520
        }
68 ashish 6521
      }
6522
      return 0;
6523
    }
6524
 
3430 rajveer 6525
    public _Fields fieldForId(int fieldId) {
6526
      return _Fields.findByThriftId(fieldId);
6527
    }
6528
 
6529
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6530
      org.apache.thrift.protocol.TField field;
68 ashish 6531
      iprot.readStructBegin();
6532
      while (true)
6533
      {
6534
        field = iprot.readFieldBegin();
3430 rajveer 6535
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 6536
          break;
6537
        }
3430 rajveer 6538
        switch (field.id) {
6539
          case 0: // SUCCESS
6540
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6541
              this.success = iprot.readI64();
6542
              setSuccessIsSet(true);
6543
            } else { 
6544
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6545
            }
6546
            break;
6547
          case 1: // EX
6548
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6549
              this.ex = new TransactionServiceException();
6550
              this.ex.read(iprot);
6551
            } else { 
6552
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6553
            }
6554
            break;
6555
          default:
6556
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 6557
        }
3430 rajveer 6558
        iprot.readFieldEnd();
68 ashish 6559
      }
6560
      iprot.readStructEnd();
6561
      validate();
6562
    }
6563
 
3430 rajveer 6564
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 6565
      oprot.writeStructBegin(STRUCT_DESC);
6566
 
132 ashish 6567
      if (this.isSetSuccess()) {
6568
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6569
        oprot.writeI64(this.success);
6570
        oprot.writeFieldEnd();
6571
      } else if (this.isSetEx()) {
68 ashish 6572
        oprot.writeFieldBegin(EX_FIELD_DESC);
6573
        this.ex.write(oprot);
6574
        oprot.writeFieldEnd();
6575
      }
6576
      oprot.writeFieldStop();
6577
      oprot.writeStructEnd();
6578
    }
6579
 
6580
    @Override
6581
    public String toString() {
6582
      StringBuilder sb = new StringBuilder("createTransaction_result(");
6583
      boolean first = true;
6584
 
132 ashish 6585
      sb.append("success:");
6586
      sb.append(this.success);
6587
      first = false;
6588
      if (!first) sb.append(", ");
68 ashish 6589
      sb.append("ex:");
6590
      if (this.ex == null) {
6591
        sb.append("null");
6592
      } else {
6593
        sb.append(this.ex);
6594
      }
6595
      first = false;
6596
      sb.append(")");
6597
      return sb.toString();
6598
    }
6599
 
3430 rajveer 6600
    public void validate() throws org.apache.thrift.TException {
68 ashish 6601
      // check for required fields
6602
    }
6603
 
3430 rajveer 6604
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6605
      try {
6606
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6607
      } catch (org.apache.thrift.TException te) {
6608
        throw new java.io.IOException(te);
6609
      }
6610
    }
6611
 
6612
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6613
      try {
6614
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6615
      } catch (org.apache.thrift.TException te) {
6616
        throw new java.io.IOException(te);
6617
      }
6618
    }
6619
 
68 ashish 6620
  }
6621
 
3430 rajveer 6622
  public static class getTransaction_args implements org.apache.thrift.TBase<getTransaction_args, getTransaction_args._Fields>, java.io.Serializable, Cloneable   {
6623
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransaction_args");
68 ashish 6624
 
3430 rajveer 6625
    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);
68 ashish 6626
 
3430 rajveer 6627
    private long id; // required
68 ashish 6628
 
6629
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6630
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 6631
      ID((short)1, "id");
6632
 
6633
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6634
 
6635
      static {
6636
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6637
          byName.put(field.getFieldName(), field);
6638
        }
6639
      }
6640
 
6641
      /**
6642
       * Find the _Fields constant that matches fieldId, or null if its not found.
6643
       */
6644
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6645
        switch(fieldId) {
6646
          case 1: // ID
6647
            return ID;
6648
          default:
6649
            return null;
6650
        }
68 ashish 6651
      }
6652
 
6653
      /**
6654
       * Find the _Fields constant that matches fieldId, throwing an exception
6655
       * if it is not found.
6656
       */
6657
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6658
        _Fields fields = findByThriftId(fieldId);
6659
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6660
        return fields;
6661
      }
6662
 
6663
      /**
6664
       * Find the _Fields constant that matches name, or null if its not found.
6665
       */
6666
      public static _Fields findByName(String name) {
6667
        return byName.get(name);
6668
      }
6669
 
6670
      private final short _thriftId;
6671
      private final String _fieldName;
6672
 
6673
      _Fields(short thriftId, String fieldName) {
6674
        _thriftId = thriftId;
6675
        _fieldName = fieldName;
6676
      }
6677
 
6678
      public short getThriftFieldId() {
6679
        return _thriftId;
6680
      }
6681
 
6682
      public String getFieldName() {
6683
        return _fieldName;
6684
      }
6685
    }
6686
 
6687
    // isset id assignments
6688
    private static final int __ID_ISSET_ID = 0;
6689
    private BitSet __isset_bit_vector = new BitSet(1);
6690
 
3430 rajveer 6691
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 6692
    static {
3430 rajveer 6693
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6694
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6695
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6696
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6697
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransaction_args.class, metaDataMap);
68 ashish 6698
    }
6699
 
6700
    public getTransaction_args() {
6701
    }
6702
 
6703
    public getTransaction_args(
6704
      long id)
6705
    {
6706
      this();
6707
      this.id = id;
6708
      setIdIsSet(true);
6709
    }
6710
 
6711
    /**
6712
     * Performs a deep copy on <i>other</i>.
6713
     */
6714
    public getTransaction_args(getTransaction_args other) {
6715
      __isset_bit_vector.clear();
6716
      __isset_bit_vector.or(other.__isset_bit_vector);
6717
      this.id = other.id;
6718
    }
6719
 
6720
    public getTransaction_args deepCopy() {
6721
      return new getTransaction_args(this);
6722
    }
6723
 
3430 rajveer 6724
    @Override
6725
    public void clear() {
6726
      setIdIsSet(false);
6727
      this.id = 0;
68 ashish 6728
    }
6729
 
6730
    public long getId() {
6731
      return this.id;
6732
    }
6733
 
3430 rajveer 6734
    public void setId(long id) {
68 ashish 6735
      this.id = id;
6736
      setIdIsSet(true);
6737
    }
6738
 
6739
    public void unsetId() {
6740
      __isset_bit_vector.clear(__ID_ISSET_ID);
6741
    }
6742
 
3430 rajveer 6743
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
68 ashish 6744
    public boolean isSetId() {
6745
      return __isset_bit_vector.get(__ID_ISSET_ID);
6746
    }
6747
 
6748
    public void setIdIsSet(boolean value) {
6749
      __isset_bit_vector.set(__ID_ISSET_ID, value);
6750
    }
6751
 
6752
    public void setFieldValue(_Fields field, Object value) {
6753
      switch (field) {
6754
      case ID:
6755
        if (value == null) {
6756
          unsetId();
6757
        } else {
6758
          setId((Long)value);
6759
        }
6760
        break;
6761
 
6762
      }
6763
    }
6764
 
6765
    public Object getFieldValue(_Fields field) {
6766
      switch (field) {
6767
      case ID:
3430 rajveer 6768
        return Long.valueOf(getId());
68 ashish 6769
 
6770
      }
6771
      throw new IllegalStateException();
6772
    }
6773
 
3430 rajveer 6774
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6775
    public boolean isSet(_Fields field) {
6776
      if (field == null) {
6777
        throw new IllegalArgumentException();
6778
      }
68 ashish 6779
 
6780
      switch (field) {
6781
      case ID:
6782
        return isSetId();
6783
      }
6784
      throw new IllegalStateException();
6785
    }
6786
 
6787
    @Override
6788
    public boolean equals(Object that) {
6789
      if (that == null)
6790
        return false;
6791
      if (that instanceof getTransaction_args)
6792
        return this.equals((getTransaction_args)that);
6793
      return false;
6794
    }
6795
 
6796
    public boolean equals(getTransaction_args that) {
6797
      if (that == null)
6798
        return false;
6799
 
6800
      boolean this_present_id = true;
6801
      boolean that_present_id = true;
6802
      if (this_present_id || that_present_id) {
6803
        if (!(this_present_id && that_present_id))
6804
          return false;
6805
        if (this.id != that.id)
6806
          return false;
6807
      }
6808
 
6809
      return true;
6810
    }
6811
 
6812
    @Override
6813
    public int hashCode() {
6814
      return 0;
6815
    }
6816
 
6817
    public int compareTo(getTransaction_args other) {
6818
      if (!getClass().equals(other.getClass())) {
6819
        return getClass().getName().compareTo(other.getClass().getName());
6820
      }
6821
 
6822
      int lastComparison = 0;
6823
      getTransaction_args typedOther = (getTransaction_args)other;
6824
 
3430 rajveer 6825
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
68 ashish 6826
      if (lastComparison != 0) {
6827
        return lastComparison;
6828
      }
3430 rajveer 6829
      if (isSetId()) {
6830
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6831
        if (lastComparison != 0) {
6832
          return lastComparison;
6833
        }
68 ashish 6834
      }
6835
      return 0;
6836
    }
6837
 
3430 rajveer 6838
    public _Fields fieldForId(int fieldId) {
6839
      return _Fields.findByThriftId(fieldId);
6840
    }
6841
 
6842
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6843
      org.apache.thrift.protocol.TField field;
68 ashish 6844
      iprot.readStructBegin();
6845
      while (true)
6846
      {
6847
        field = iprot.readFieldBegin();
3430 rajveer 6848
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 6849
          break;
6850
        }
3430 rajveer 6851
        switch (field.id) {
6852
          case 1: // ID
6853
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6854
              this.id = iprot.readI64();
6855
              setIdIsSet(true);
6856
            } else { 
6857
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6858
            }
6859
            break;
6860
          default:
6861
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 6862
        }
3430 rajveer 6863
        iprot.readFieldEnd();
68 ashish 6864
      }
6865
      iprot.readStructEnd();
6866
      validate();
6867
    }
6868
 
3430 rajveer 6869
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 6870
      validate();
6871
 
6872
      oprot.writeStructBegin(STRUCT_DESC);
6873
      oprot.writeFieldBegin(ID_FIELD_DESC);
6874
      oprot.writeI64(this.id);
6875
      oprot.writeFieldEnd();
6876
      oprot.writeFieldStop();
6877
      oprot.writeStructEnd();
6878
    }
6879
 
6880
    @Override
6881
    public String toString() {
6882
      StringBuilder sb = new StringBuilder("getTransaction_args(");
6883
      boolean first = true;
6884
 
6885
      sb.append("id:");
6886
      sb.append(this.id);
6887
      first = false;
6888
      sb.append(")");
6889
      return sb.toString();
6890
    }
6891
 
3430 rajveer 6892
    public void validate() throws org.apache.thrift.TException {
68 ashish 6893
      // check for required fields
6894
    }
6895
 
3430 rajveer 6896
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6897
      try {
6898
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6899
      } catch (org.apache.thrift.TException te) {
6900
        throw new java.io.IOException(te);
6901
      }
6902
    }
6903
 
6904
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6905
      try {
6906
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6907
        __isset_bit_vector = new BitSet(1);
6908
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6909
      } catch (org.apache.thrift.TException te) {
6910
        throw new java.io.IOException(te);
6911
      }
6912
    }
6913
 
68 ashish 6914
  }
6915
 
3430 rajveer 6916
  public static class getTransaction_result implements org.apache.thrift.TBase<getTransaction_result, getTransaction_result._Fields>, java.io.Serializable, Cloneable   {
6917
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransaction_result");
68 ashish 6918
 
3430 rajveer 6919
    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);
6920
    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);
68 ashish 6921
 
3430 rajveer 6922
    private Transaction success; // required
6923
    private TransactionServiceException ex; // required
68 ashish 6924
 
6925
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6926
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 6927
      SUCCESS((short)0, "success"),
6928
      EX((short)1, "ex");
6929
 
6930
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6931
 
6932
      static {
6933
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6934
          byName.put(field.getFieldName(), field);
6935
        }
6936
      }
6937
 
6938
      /**
6939
       * Find the _Fields constant that matches fieldId, or null if its not found.
6940
       */
6941
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6942
        switch(fieldId) {
6943
          case 0: // SUCCESS
6944
            return SUCCESS;
6945
          case 1: // EX
6946
            return EX;
6947
          default:
6948
            return null;
6949
        }
68 ashish 6950
      }
6951
 
6952
      /**
6953
       * Find the _Fields constant that matches fieldId, throwing an exception
6954
       * if it is not found.
6955
       */
6956
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6957
        _Fields fields = findByThriftId(fieldId);
6958
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6959
        return fields;
6960
      }
6961
 
6962
      /**
6963
       * Find the _Fields constant that matches name, or null if its not found.
6964
       */
6965
      public static _Fields findByName(String name) {
6966
        return byName.get(name);
6967
      }
6968
 
6969
      private final short _thriftId;
6970
      private final String _fieldName;
6971
 
6972
      _Fields(short thriftId, String fieldName) {
6973
        _thriftId = thriftId;
6974
        _fieldName = fieldName;
6975
      }
6976
 
6977
      public short getThriftFieldId() {
6978
        return _thriftId;
6979
      }
6980
 
6981
      public String getFieldName() {
6982
        return _fieldName;
6983
      }
6984
    }
6985
 
6986
    // isset id assignments
6987
 
3430 rajveer 6988
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 6989
    static {
3430 rajveer 6990
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6991
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6992
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class)));
6993
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6994
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6995
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6996
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransaction_result.class, metaDataMap);
68 ashish 6997
    }
6998
 
6999
    public getTransaction_result() {
7000
    }
7001
 
7002
    public getTransaction_result(
7003
      Transaction success,
7004
      TransactionServiceException ex)
7005
    {
7006
      this();
7007
      this.success = success;
7008
      this.ex = ex;
7009
    }
7010
 
7011
    /**
7012
     * Performs a deep copy on <i>other</i>.
7013
     */
7014
    public getTransaction_result(getTransaction_result other) {
7015
      if (other.isSetSuccess()) {
7016
        this.success = new Transaction(other.success);
7017
      }
7018
      if (other.isSetEx()) {
7019
        this.ex = new TransactionServiceException(other.ex);
7020
      }
7021
    }
7022
 
7023
    public getTransaction_result deepCopy() {
7024
      return new getTransaction_result(this);
7025
    }
7026
 
3430 rajveer 7027
    @Override
7028
    public void clear() {
7029
      this.success = null;
7030
      this.ex = null;
68 ashish 7031
    }
7032
 
7033
    public Transaction getSuccess() {
7034
      return this.success;
7035
    }
7036
 
3430 rajveer 7037
    public void setSuccess(Transaction success) {
68 ashish 7038
      this.success = success;
7039
    }
7040
 
7041
    public void unsetSuccess() {
7042
      this.success = null;
7043
    }
7044
 
3430 rajveer 7045
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 7046
    public boolean isSetSuccess() {
7047
      return this.success != null;
7048
    }
7049
 
7050
    public void setSuccessIsSet(boolean value) {
7051
      if (!value) {
7052
        this.success = null;
7053
      }
7054
    }
7055
 
7056
    public TransactionServiceException getEx() {
7057
      return this.ex;
7058
    }
7059
 
3430 rajveer 7060
    public void setEx(TransactionServiceException ex) {
68 ashish 7061
      this.ex = ex;
7062
    }
7063
 
7064
    public void unsetEx() {
7065
      this.ex = null;
7066
    }
7067
 
3430 rajveer 7068
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 7069
    public boolean isSetEx() {
7070
      return this.ex != null;
7071
    }
7072
 
7073
    public void setExIsSet(boolean value) {
7074
      if (!value) {
7075
        this.ex = null;
7076
      }
7077
    }
7078
 
7079
    public void setFieldValue(_Fields field, Object value) {
7080
      switch (field) {
7081
      case SUCCESS:
7082
        if (value == null) {
7083
          unsetSuccess();
7084
        } else {
7085
          setSuccess((Transaction)value);
7086
        }
7087
        break;
7088
 
7089
      case EX:
7090
        if (value == null) {
7091
          unsetEx();
7092
        } else {
7093
          setEx((TransactionServiceException)value);
7094
        }
7095
        break;
7096
 
7097
      }
7098
    }
7099
 
7100
    public Object getFieldValue(_Fields field) {
7101
      switch (field) {
7102
      case SUCCESS:
7103
        return getSuccess();
7104
 
7105
      case EX:
7106
        return getEx();
7107
 
7108
      }
7109
      throw new IllegalStateException();
7110
    }
7111
 
3430 rajveer 7112
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7113
    public boolean isSet(_Fields field) {
7114
      if (field == null) {
7115
        throw new IllegalArgumentException();
7116
      }
68 ashish 7117
 
7118
      switch (field) {
7119
      case SUCCESS:
7120
        return isSetSuccess();
7121
      case EX:
7122
        return isSetEx();
7123
      }
7124
      throw new IllegalStateException();
7125
    }
7126
 
7127
    @Override
7128
    public boolean equals(Object that) {
7129
      if (that == null)
7130
        return false;
7131
      if (that instanceof getTransaction_result)
7132
        return this.equals((getTransaction_result)that);
7133
      return false;
7134
    }
7135
 
7136
    public boolean equals(getTransaction_result that) {
7137
      if (that == null)
7138
        return false;
7139
 
7140
      boolean this_present_success = true && this.isSetSuccess();
7141
      boolean that_present_success = true && that.isSetSuccess();
7142
      if (this_present_success || that_present_success) {
7143
        if (!(this_present_success && that_present_success))
7144
          return false;
7145
        if (!this.success.equals(that.success))
7146
          return false;
7147
      }
7148
 
7149
      boolean this_present_ex = true && this.isSetEx();
7150
      boolean that_present_ex = true && that.isSetEx();
7151
      if (this_present_ex || that_present_ex) {
7152
        if (!(this_present_ex && that_present_ex))
7153
          return false;
7154
        if (!this.ex.equals(that.ex))
7155
          return false;
7156
      }
7157
 
7158
      return true;
7159
    }
7160
 
7161
    @Override
7162
    public int hashCode() {
7163
      return 0;
7164
    }
7165
 
684 chandransh 7166
    public int compareTo(getTransaction_result other) {
7167
      if (!getClass().equals(other.getClass())) {
7168
        return getClass().getName().compareTo(other.getClass().getName());
7169
      }
7170
 
7171
      int lastComparison = 0;
7172
      getTransaction_result typedOther = (getTransaction_result)other;
7173
 
3430 rajveer 7174
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
684 chandransh 7175
      if (lastComparison != 0) {
7176
        return lastComparison;
7177
      }
3430 rajveer 7178
      if (isSetSuccess()) {
7179
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7180
        if (lastComparison != 0) {
7181
          return lastComparison;
7182
        }
684 chandransh 7183
      }
3430 rajveer 7184
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
684 chandransh 7185
      if (lastComparison != 0) {
7186
        return lastComparison;
7187
      }
3430 rajveer 7188
      if (isSetEx()) {
7189
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
7190
        if (lastComparison != 0) {
7191
          return lastComparison;
7192
        }
684 chandransh 7193
      }
7194
      return 0;
7195
    }
7196
 
3430 rajveer 7197
    public _Fields fieldForId(int fieldId) {
7198
      return _Fields.findByThriftId(fieldId);
7199
    }
7200
 
7201
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7202
      org.apache.thrift.protocol.TField field;
68 ashish 7203
      iprot.readStructBegin();
7204
      while (true)
7205
      {
7206
        field = iprot.readFieldBegin();
3430 rajveer 7207
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 7208
          break;
7209
        }
3430 rajveer 7210
        switch (field.id) {
7211
          case 0: // SUCCESS
7212
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7213
              this.success = new Transaction();
7214
              this.success.read(iprot);
7215
            } else { 
7216
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7217
            }
7218
            break;
7219
          case 1: // EX
7220
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7221
              this.ex = new TransactionServiceException();
7222
              this.ex.read(iprot);
7223
            } else { 
7224
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7225
            }
7226
            break;
7227
          default:
7228
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 7229
        }
3430 rajveer 7230
        iprot.readFieldEnd();
68 ashish 7231
      }
7232
      iprot.readStructEnd();
7233
      validate();
7234
    }
7235
 
3430 rajveer 7236
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 7237
      oprot.writeStructBegin(STRUCT_DESC);
7238
 
7239
      if (this.isSetSuccess()) {
7240
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7241
        this.success.write(oprot);
7242
        oprot.writeFieldEnd();
7243
      } else if (this.isSetEx()) {
7244
        oprot.writeFieldBegin(EX_FIELD_DESC);
7245
        this.ex.write(oprot);
7246
        oprot.writeFieldEnd();
7247
      }
7248
      oprot.writeFieldStop();
7249
      oprot.writeStructEnd();
7250
    }
7251
 
7252
    @Override
7253
    public String toString() {
7254
      StringBuilder sb = new StringBuilder("getTransaction_result(");
7255
      boolean first = true;
7256
 
7257
      sb.append("success:");
7258
      if (this.success == null) {
7259
        sb.append("null");
7260
      } else {
7261
        sb.append(this.success);
7262
      }
7263
      first = false;
7264
      if (!first) sb.append(", ");
7265
      sb.append("ex:");
7266
      if (this.ex == null) {
7267
        sb.append("null");
7268
      } else {
7269
        sb.append(this.ex);
7270
      }
7271
      first = false;
7272
      sb.append(")");
7273
      return sb.toString();
7274
    }
7275
 
3430 rajveer 7276
    public void validate() throws org.apache.thrift.TException {
68 ashish 7277
      // check for required fields
7278
    }
7279
 
3430 rajveer 7280
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7281
      try {
7282
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7283
      } catch (org.apache.thrift.TException te) {
7284
        throw new java.io.IOException(te);
7285
      }
7286
    }
7287
 
7288
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7289
      try {
7290
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7291
      } catch (org.apache.thrift.TException te) {
7292
        throw new java.io.IOException(te);
7293
      }
7294
    }
7295
 
68 ashish 7296
  }
7297
 
3430 rajveer 7298
  public static class getTransactionsForCustomer_args implements org.apache.thrift.TBase<getTransactionsForCustomer_args, getTransactionsForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
7299
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForCustomer_args");
68 ashish 7300
 
3430 rajveer 7301
    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);
7302
    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);
7303
    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);
7304
    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);
68 ashish 7305
 
3430 rajveer 7306
    private long customerId; // required
7307
    private long from_date; // required
7308
    private long to_date; // required
7309
    private TransactionStatus status; // required
68 ashish 7310
 
7311
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7312
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 7313
      CUSTOMER_ID((short)1, "customerId"),
132 ashish 7314
      FROM_DATE((short)2, "from_date"),
7315
      TO_DATE((short)3, "to_date"),
68 ashish 7316
      /**
7317
       * 
7318
       * @see TransactionStatus
7319
       */
7320
      STATUS((short)4, "status");
7321
 
7322
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7323
 
7324
      static {
7325
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7326
          byName.put(field.getFieldName(), field);
7327
        }
7328
      }
7329
 
7330
      /**
7331
       * Find the _Fields constant that matches fieldId, or null if its not found.
7332
       */
7333
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7334
        switch(fieldId) {
7335
          case 1: // CUSTOMER_ID
7336
            return CUSTOMER_ID;
7337
          case 2: // FROM_DATE
7338
            return FROM_DATE;
7339
          case 3: // TO_DATE
7340
            return TO_DATE;
7341
          case 4: // STATUS
7342
            return STATUS;
7343
          default:
7344
            return null;
7345
        }
68 ashish 7346
      }
7347
 
7348
      /**
7349
       * Find the _Fields constant that matches fieldId, throwing an exception
7350
       * if it is not found.
7351
       */
7352
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7353
        _Fields fields = findByThriftId(fieldId);
7354
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7355
        return fields;
7356
      }
7357
 
7358
      /**
7359
       * Find the _Fields constant that matches name, or null if its not found.
7360
       */
7361
      public static _Fields findByName(String name) {
7362
        return byName.get(name);
7363
      }
7364
 
7365
      private final short _thriftId;
7366
      private final String _fieldName;
7367
 
7368
      _Fields(short thriftId, String fieldName) {
7369
        _thriftId = thriftId;
7370
        _fieldName = fieldName;
7371
      }
7372
 
7373
      public short getThriftFieldId() {
7374
        return _thriftId;
7375
      }
7376
 
7377
      public String getFieldName() {
7378
        return _fieldName;
7379
      }
7380
    }
7381
 
7382
    // isset id assignments
7383
    private static final int __CUSTOMERID_ISSET_ID = 0;
132 ashish 7384
    private static final int __FROM_DATE_ISSET_ID = 1;
7385
    private static final int __TO_DATE_ISSET_ID = 2;
68 ashish 7386
    private BitSet __isset_bit_vector = new BitSet(3);
7387
 
3430 rajveer 7388
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 7389
    static {
3430 rajveer 7390
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7391
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7392
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7393
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("from_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7394
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7395
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("to_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7396
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7397
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7398
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
7399
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7400
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForCustomer_args.class, metaDataMap);
68 ashish 7401
    }
7402
 
7403
    public getTransactionsForCustomer_args() {
7404
    }
7405
 
7406
    public getTransactionsForCustomer_args(
7407
      long customerId,
132 ashish 7408
      long from_date,
7409
      long to_date,
68 ashish 7410
      TransactionStatus status)
7411
    {
7412
      this();
7413
      this.customerId = customerId;
7414
      setCustomerIdIsSet(true);
132 ashish 7415
      this.from_date = from_date;
7416
      setFrom_dateIsSet(true);
7417
      this.to_date = to_date;
7418
      setTo_dateIsSet(true);
68 ashish 7419
      this.status = status;
7420
    }
7421
 
7422
    /**
7423
     * Performs a deep copy on <i>other</i>.
7424
     */
7425
    public getTransactionsForCustomer_args(getTransactionsForCustomer_args other) {
7426
      __isset_bit_vector.clear();
7427
      __isset_bit_vector.or(other.__isset_bit_vector);
7428
      this.customerId = other.customerId;
132 ashish 7429
      this.from_date = other.from_date;
7430
      this.to_date = other.to_date;
68 ashish 7431
      if (other.isSetStatus()) {
7432
        this.status = other.status;
7433
      }
7434
    }
7435
 
7436
    public getTransactionsForCustomer_args deepCopy() {
7437
      return new getTransactionsForCustomer_args(this);
7438
    }
7439
 
3430 rajveer 7440
    @Override
7441
    public void clear() {
7442
      setCustomerIdIsSet(false);
7443
      this.customerId = 0;
7444
      setFrom_dateIsSet(false);
7445
      this.from_date = 0;
7446
      setTo_dateIsSet(false);
7447
      this.to_date = 0;
7448
      this.status = null;
68 ashish 7449
    }
7450
 
7451
    public long getCustomerId() {
7452
      return this.customerId;
7453
    }
7454
 
3430 rajveer 7455
    public void setCustomerId(long customerId) {
68 ashish 7456
      this.customerId = customerId;
7457
      setCustomerIdIsSet(true);
7458
    }
7459
 
7460
    public void unsetCustomerId() {
7461
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
7462
    }
7463
 
3430 rajveer 7464
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
68 ashish 7465
    public boolean isSetCustomerId() {
7466
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
7467
    }
7468
 
7469
    public void setCustomerIdIsSet(boolean value) {
7470
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
7471
    }
7472
 
132 ashish 7473
    public long getFrom_date() {
7474
      return this.from_date;
68 ashish 7475
    }
7476
 
3430 rajveer 7477
    public void setFrom_date(long from_date) {
132 ashish 7478
      this.from_date = from_date;
7479
      setFrom_dateIsSet(true);
68 ashish 7480
    }
7481
 
132 ashish 7482
    public void unsetFrom_date() {
7483
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
68 ashish 7484
    }
7485
 
3430 rajveer 7486
    /** Returns true if field from_date is set (has been assigned a value) and false otherwise */
132 ashish 7487
    public boolean isSetFrom_date() {
7488
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
68 ashish 7489
    }
7490
 
132 ashish 7491
    public void setFrom_dateIsSet(boolean value) {
7492
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
68 ashish 7493
    }
7494
 
132 ashish 7495
    public long getTo_date() {
7496
      return this.to_date;
68 ashish 7497
    }
7498
 
3430 rajveer 7499
    public void setTo_date(long to_date) {
132 ashish 7500
      this.to_date = to_date;
7501
      setTo_dateIsSet(true);
68 ashish 7502
    }
7503
 
132 ashish 7504
    public void unsetTo_date() {
7505
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
68 ashish 7506
    }
7507
 
3430 rajveer 7508
    /** Returns true if field to_date is set (has been assigned a value) and false otherwise */
132 ashish 7509
    public boolean isSetTo_date() {
7510
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
68 ashish 7511
    }
7512
 
132 ashish 7513
    public void setTo_dateIsSet(boolean value) {
7514
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
68 ashish 7515
    }
7516
 
7517
    /**
7518
     * 
7519
     * @see TransactionStatus
7520
     */
7521
    public TransactionStatus getStatus() {
7522
      return this.status;
7523
    }
7524
 
7525
    /**
7526
     * 
7527
     * @see TransactionStatus
7528
     */
3430 rajveer 7529
    public void setStatus(TransactionStatus status) {
68 ashish 7530
      this.status = status;
7531
    }
7532
 
7533
    public void unsetStatus() {
7534
      this.status = null;
7535
    }
7536
 
3430 rajveer 7537
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
68 ashish 7538
    public boolean isSetStatus() {
7539
      return this.status != null;
7540
    }
7541
 
7542
    public void setStatusIsSet(boolean value) {
7543
      if (!value) {
7544
        this.status = null;
7545
      }
7546
    }
7547
 
7548
    public void setFieldValue(_Fields field, Object value) {
7549
      switch (field) {
7550
      case CUSTOMER_ID:
7551
        if (value == null) {
7552
          unsetCustomerId();
7553
        } else {
7554
          setCustomerId((Long)value);
7555
        }
7556
        break;
7557
 
132 ashish 7558
      case FROM_DATE:
68 ashish 7559
        if (value == null) {
132 ashish 7560
          unsetFrom_date();
68 ashish 7561
        } else {
132 ashish 7562
          setFrom_date((Long)value);
68 ashish 7563
        }
7564
        break;
7565
 
132 ashish 7566
      case TO_DATE:
68 ashish 7567
        if (value == null) {
132 ashish 7568
          unsetTo_date();
68 ashish 7569
        } else {
132 ashish 7570
          setTo_date((Long)value);
68 ashish 7571
        }
7572
        break;
7573
 
7574
      case STATUS:
7575
        if (value == null) {
7576
          unsetStatus();
7577
        } else {
7578
          setStatus((TransactionStatus)value);
7579
        }
7580
        break;
7581
 
7582
      }
7583
    }
7584
 
7585
    public Object getFieldValue(_Fields field) {
7586
      switch (field) {
7587
      case CUSTOMER_ID:
3430 rajveer 7588
        return Long.valueOf(getCustomerId());
68 ashish 7589
 
132 ashish 7590
      case FROM_DATE:
3430 rajveer 7591
        return Long.valueOf(getFrom_date());
68 ashish 7592
 
132 ashish 7593
      case TO_DATE:
3430 rajveer 7594
        return Long.valueOf(getTo_date());
68 ashish 7595
 
7596
      case STATUS:
7597
        return getStatus();
7598
 
7599
      }
7600
      throw new IllegalStateException();
7601
    }
7602
 
3430 rajveer 7603
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7604
    public boolean isSet(_Fields field) {
7605
      if (field == null) {
7606
        throw new IllegalArgumentException();
7607
      }
68 ashish 7608
 
7609
      switch (field) {
7610
      case CUSTOMER_ID:
7611
        return isSetCustomerId();
132 ashish 7612
      case FROM_DATE:
7613
        return isSetFrom_date();
7614
      case TO_DATE:
7615
        return isSetTo_date();
68 ashish 7616
      case STATUS:
7617
        return isSetStatus();
7618
      }
7619
      throw new IllegalStateException();
7620
    }
7621
 
7622
    @Override
7623
    public boolean equals(Object that) {
7624
      if (that == null)
7625
        return false;
7626
      if (that instanceof getTransactionsForCustomer_args)
7627
        return this.equals((getTransactionsForCustomer_args)that);
7628
      return false;
7629
    }
7630
 
7631
    public boolean equals(getTransactionsForCustomer_args that) {
7632
      if (that == null)
7633
        return false;
7634
 
7635
      boolean this_present_customerId = true;
7636
      boolean that_present_customerId = true;
7637
      if (this_present_customerId || that_present_customerId) {
7638
        if (!(this_present_customerId && that_present_customerId))
7639
          return false;
7640
        if (this.customerId != that.customerId)
7641
          return false;
7642
      }
7643
 
132 ashish 7644
      boolean this_present_from_date = true;
7645
      boolean that_present_from_date = true;
7646
      if (this_present_from_date || that_present_from_date) {
7647
        if (!(this_present_from_date && that_present_from_date))
68 ashish 7648
          return false;
132 ashish 7649
        if (this.from_date != that.from_date)
68 ashish 7650
          return false;
7651
      }
7652
 
132 ashish 7653
      boolean this_present_to_date = true;
7654
      boolean that_present_to_date = true;
7655
      if (this_present_to_date || that_present_to_date) {
7656
        if (!(this_present_to_date && that_present_to_date))
68 ashish 7657
          return false;
132 ashish 7658
        if (this.to_date != that.to_date)
68 ashish 7659
          return false;
7660
      }
7661
 
7662
      boolean this_present_status = true && this.isSetStatus();
7663
      boolean that_present_status = true && that.isSetStatus();
7664
      if (this_present_status || that_present_status) {
7665
        if (!(this_present_status && that_present_status))
7666
          return false;
7667
        if (!this.status.equals(that.status))
7668
          return false;
7669
      }
7670
 
7671
      return true;
7672
    }
7673
 
7674
    @Override
7675
    public int hashCode() {
7676
      return 0;
7677
    }
7678
 
7679
    public int compareTo(getTransactionsForCustomer_args other) {
7680
      if (!getClass().equals(other.getClass())) {
7681
        return getClass().getName().compareTo(other.getClass().getName());
7682
      }
7683
 
7684
      int lastComparison = 0;
7685
      getTransactionsForCustomer_args typedOther = (getTransactionsForCustomer_args)other;
7686
 
3430 rajveer 7687
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
68 ashish 7688
      if (lastComparison != 0) {
7689
        return lastComparison;
7690
      }
3430 rajveer 7691
      if (isSetCustomerId()) {
7692
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
7693
        if (lastComparison != 0) {
7694
          return lastComparison;
7695
        }
68 ashish 7696
      }
3430 rajveer 7697
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(typedOther.isSetFrom_date());
68 ashish 7698
      if (lastComparison != 0) {
7699
        return lastComparison;
7700
      }
3430 rajveer 7701
      if (isSetFrom_date()) {
7702
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_date, typedOther.from_date);
7703
        if (lastComparison != 0) {
7704
          return lastComparison;
7705
        }
68 ashish 7706
      }
3430 rajveer 7707
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(typedOther.isSetTo_date());
68 ashish 7708
      if (lastComparison != 0) {
7709
        return lastComparison;
7710
      }
3430 rajveer 7711
      if (isSetTo_date()) {
7712
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_date, typedOther.to_date);
7713
        if (lastComparison != 0) {
7714
          return lastComparison;
7715
        }
68 ashish 7716
      }
3430 rajveer 7717
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
68 ashish 7718
      if (lastComparison != 0) {
7719
        return lastComparison;
7720
      }
3430 rajveer 7721
      if (isSetStatus()) {
7722
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
7723
        if (lastComparison != 0) {
7724
          return lastComparison;
7725
        }
68 ashish 7726
      }
7727
      return 0;
7728
    }
7729
 
3430 rajveer 7730
    public _Fields fieldForId(int fieldId) {
7731
      return _Fields.findByThriftId(fieldId);
7732
    }
7733
 
7734
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7735
      org.apache.thrift.protocol.TField field;
68 ashish 7736
      iprot.readStructBegin();
7737
      while (true)
7738
      {
7739
        field = iprot.readFieldBegin();
3430 rajveer 7740
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 7741
          break;
7742
        }
3430 rajveer 7743
        switch (field.id) {
7744
          case 1: // CUSTOMER_ID
7745
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7746
              this.customerId = iprot.readI64();
7747
              setCustomerIdIsSet(true);
7748
            } else { 
7749
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7750
            }
7751
            break;
7752
          case 2: // FROM_DATE
7753
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7754
              this.from_date = iprot.readI64();
7755
              setFrom_dateIsSet(true);
7756
            } else { 
7757
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7758
            }
7759
            break;
7760
          case 3: // TO_DATE
7761
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7762
              this.to_date = iprot.readI64();
7763
              setTo_dateIsSet(true);
7764
            } else { 
7765
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7766
            }
7767
            break;
7768
          case 4: // STATUS
7769
            if (field.type == org.apache.thrift.protocol.TType.I32) {
7770
              this.status = TransactionStatus.findByValue(iprot.readI32());
7771
            } else { 
7772
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7773
            }
7774
            break;
7775
          default:
7776
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 7777
        }
3430 rajveer 7778
        iprot.readFieldEnd();
68 ashish 7779
      }
7780
      iprot.readStructEnd();
7781
      validate();
7782
    }
7783
 
3430 rajveer 7784
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 7785
      validate();
7786
 
7787
      oprot.writeStructBegin(STRUCT_DESC);
7788
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
7789
      oprot.writeI64(this.customerId);
7790
      oprot.writeFieldEnd();
132 ashish 7791
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
7792
      oprot.writeI64(this.from_date);
68 ashish 7793
      oprot.writeFieldEnd();
132 ashish 7794
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
7795
      oprot.writeI64(this.to_date);
68 ashish 7796
      oprot.writeFieldEnd();
7797
      if (this.status != null) {
7798
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
7799
        oprot.writeI32(this.status.getValue());
7800
        oprot.writeFieldEnd();
7801
      }
7802
      oprot.writeFieldStop();
7803
      oprot.writeStructEnd();
7804
    }
7805
 
7806
    @Override
7807
    public String toString() {
7808
      StringBuilder sb = new StringBuilder("getTransactionsForCustomer_args(");
7809
      boolean first = true;
7810
 
7811
      sb.append("customerId:");
7812
      sb.append(this.customerId);
7813
      first = false;
7814
      if (!first) sb.append(", ");
132 ashish 7815
      sb.append("from_date:");
7816
      sb.append(this.from_date);
68 ashish 7817
      first = false;
7818
      if (!first) sb.append(", ");
132 ashish 7819
      sb.append("to_date:");
7820
      sb.append(this.to_date);
68 ashish 7821
      first = false;
7822
      if (!first) sb.append(", ");
7823
      sb.append("status:");
7824
      if (this.status == null) {
7825
        sb.append("null");
7826
      } else {
7827
        sb.append(this.status);
7828
      }
7829
      first = false;
7830
      sb.append(")");
7831
      return sb.toString();
7832
    }
7833
 
3430 rajveer 7834
    public void validate() throws org.apache.thrift.TException {
68 ashish 7835
      // check for required fields
7836
    }
7837
 
3430 rajveer 7838
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7839
      try {
7840
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7841
      } catch (org.apache.thrift.TException te) {
7842
        throw new java.io.IOException(te);
7843
      }
7844
    }
7845
 
7846
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7847
      try {
7848
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7849
        __isset_bit_vector = new BitSet(1);
7850
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7851
      } catch (org.apache.thrift.TException te) {
7852
        throw new java.io.IOException(te);
7853
      }
7854
    }
7855
 
68 ashish 7856
  }
7857
 
3430 rajveer 7858
  public static class getTransactionsForCustomer_result implements org.apache.thrift.TBase<getTransactionsForCustomer_result, getTransactionsForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
7859
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForCustomer_result");
68 ashish 7860
 
3430 rajveer 7861
    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);
7862
    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);
68 ashish 7863
 
3430 rajveer 7864
    private List<Transaction> success; // required
7865
    private TransactionServiceException ex; // required
68 ashish 7866
 
7867
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7868
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 7869
      SUCCESS((short)0, "success"),
7870
      EX((short)1, "ex");
7871
 
7872
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7873
 
7874
      static {
7875
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7876
          byName.put(field.getFieldName(), field);
7877
        }
7878
      }
7879
 
7880
      /**
7881
       * Find the _Fields constant that matches fieldId, or null if its not found.
7882
       */
7883
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7884
        switch(fieldId) {
7885
          case 0: // SUCCESS
7886
            return SUCCESS;
7887
          case 1: // EX
7888
            return EX;
7889
          default:
7890
            return null;
7891
        }
68 ashish 7892
      }
7893
 
7894
      /**
7895
       * Find the _Fields constant that matches fieldId, throwing an exception
7896
       * if it is not found.
7897
       */
7898
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7899
        _Fields fields = findByThriftId(fieldId);
7900
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7901
        return fields;
7902
      }
7903
 
7904
      /**
7905
       * Find the _Fields constant that matches name, or null if its not found.
7906
       */
7907
      public static _Fields findByName(String name) {
7908
        return byName.get(name);
7909
      }
7910
 
7911
      private final short _thriftId;
7912
      private final String _fieldName;
7913
 
7914
      _Fields(short thriftId, String fieldName) {
7915
        _thriftId = thriftId;
7916
        _fieldName = fieldName;
7917
      }
7918
 
7919
      public short getThriftFieldId() {
7920
        return _thriftId;
7921
      }
7922
 
7923
      public String getFieldName() {
7924
        return _fieldName;
7925
      }
7926
    }
7927
 
7928
    // isset id assignments
7929
 
3430 rajveer 7930
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 7931
    static {
3430 rajveer 7932
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7933
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7934
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7935
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class))));
7936
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7937
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7938
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7939
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForCustomer_result.class, metaDataMap);
68 ashish 7940
    }
7941
 
7942
    public getTransactionsForCustomer_result() {
7943
    }
7944
 
7945
    public getTransactionsForCustomer_result(
7946
      List<Transaction> success,
7947
      TransactionServiceException ex)
7948
    {
7949
      this();
7950
      this.success = success;
7951
      this.ex = ex;
7952
    }
7953
 
7954
    /**
7955
     * Performs a deep copy on <i>other</i>.
7956
     */
7957
    public getTransactionsForCustomer_result(getTransactionsForCustomer_result other) {
7958
      if (other.isSetSuccess()) {
7959
        List<Transaction> __this__success = new ArrayList<Transaction>();
7960
        for (Transaction other_element : other.success) {
7961
          __this__success.add(new Transaction(other_element));
7962
        }
7963
        this.success = __this__success;
7964
      }
7965
      if (other.isSetEx()) {
7966
        this.ex = new TransactionServiceException(other.ex);
7967
      }
7968
    }
7969
 
7970
    public getTransactionsForCustomer_result deepCopy() {
7971
      return new getTransactionsForCustomer_result(this);
7972
    }
7973
 
3430 rajveer 7974
    @Override
7975
    public void clear() {
7976
      this.success = null;
7977
      this.ex = null;
68 ashish 7978
    }
7979
 
7980
    public int getSuccessSize() {
7981
      return (this.success == null) ? 0 : this.success.size();
7982
    }
7983
 
7984
    public java.util.Iterator<Transaction> getSuccessIterator() {
7985
      return (this.success == null) ? null : this.success.iterator();
7986
    }
7987
 
7988
    public void addToSuccess(Transaction elem) {
7989
      if (this.success == null) {
7990
        this.success = new ArrayList<Transaction>();
7991
      }
7992
      this.success.add(elem);
7993
    }
7994
 
7995
    public List<Transaction> getSuccess() {
7996
      return this.success;
7997
    }
7998
 
3430 rajveer 7999
    public void setSuccess(List<Transaction> success) {
68 ashish 8000
      this.success = success;
8001
    }
8002
 
8003
    public void unsetSuccess() {
8004
      this.success = null;
8005
    }
8006
 
3430 rajveer 8007
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 8008
    public boolean isSetSuccess() {
8009
      return this.success != null;
8010
    }
8011
 
8012
    public void setSuccessIsSet(boolean value) {
8013
      if (!value) {
8014
        this.success = null;
8015
      }
8016
    }
8017
 
8018
    public TransactionServiceException getEx() {
8019
      return this.ex;
8020
    }
8021
 
3430 rajveer 8022
    public void setEx(TransactionServiceException ex) {
68 ashish 8023
      this.ex = ex;
8024
    }
8025
 
8026
    public void unsetEx() {
8027
      this.ex = null;
8028
    }
8029
 
3430 rajveer 8030
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 8031
    public boolean isSetEx() {
8032
      return this.ex != null;
8033
    }
8034
 
8035
    public void setExIsSet(boolean value) {
8036
      if (!value) {
8037
        this.ex = null;
8038
      }
8039
    }
8040
 
8041
    public void setFieldValue(_Fields field, Object value) {
8042
      switch (field) {
8043
      case SUCCESS:
8044
        if (value == null) {
8045
          unsetSuccess();
8046
        } else {
8047
          setSuccess((List<Transaction>)value);
8048
        }
8049
        break;
8050
 
8051
      case EX:
8052
        if (value == null) {
8053
          unsetEx();
8054
        } else {
8055
          setEx((TransactionServiceException)value);
8056
        }
8057
        break;
8058
 
8059
      }
8060
    }
8061
 
8062
    public Object getFieldValue(_Fields field) {
8063
      switch (field) {
8064
      case SUCCESS:
8065
        return getSuccess();
8066
 
8067
      case EX:
8068
        return getEx();
8069
 
8070
      }
8071
      throw new IllegalStateException();
8072
    }
8073
 
3430 rajveer 8074
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8075
    public boolean isSet(_Fields field) {
8076
      if (field == null) {
8077
        throw new IllegalArgumentException();
8078
      }
68 ashish 8079
 
8080
      switch (field) {
8081
      case SUCCESS:
8082
        return isSetSuccess();
8083
      case EX:
8084
        return isSetEx();
8085
      }
8086
      throw new IllegalStateException();
8087
    }
8088
 
8089
    @Override
8090
    public boolean equals(Object that) {
8091
      if (that == null)
8092
        return false;
8093
      if (that instanceof getTransactionsForCustomer_result)
8094
        return this.equals((getTransactionsForCustomer_result)that);
8095
      return false;
8096
    }
8097
 
8098
    public boolean equals(getTransactionsForCustomer_result that) {
8099
      if (that == null)
8100
        return false;
8101
 
8102
      boolean this_present_success = true && this.isSetSuccess();
8103
      boolean that_present_success = true && that.isSetSuccess();
8104
      if (this_present_success || that_present_success) {
8105
        if (!(this_present_success && that_present_success))
8106
          return false;
8107
        if (!this.success.equals(that.success))
8108
          return false;
8109
      }
8110
 
8111
      boolean this_present_ex = true && this.isSetEx();
8112
      boolean that_present_ex = true && that.isSetEx();
8113
      if (this_present_ex || that_present_ex) {
8114
        if (!(this_present_ex && that_present_ex))
8115
          return false;
8116
        if (!this.ex.equals(that.ex))
8117
          return false;
8118
      }
8119
 
8120
      return true;
8121
    }
8122
 
8123
    @Override
8124
    public int hashCode() {
8125
      return 0;
8126
    }
8127
 
684 chandransh 8128
    public int compareTo(getTransactionsForCustomer_result other) {
8129
      if (!getClass().equals(other.getClass())) {
8130
        return getClass().getName().compareTo(other.getClass().getName());
8131
      }
8132
 
8133
      int lastComparison = 0;
8134
      getTransactionsForCustomer_result typedOther = (getTransactionsForCustomer_result)other;
8135
 
3430 rajveer 8136
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
684 chandransh 8137
      if (lastComparison != 0) {
8138
        return lastComparison;
8139
      }
3430 rajveer 8140
      if (isSetSuccess()) {
8141
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8142
        if (lastComparison != 0) {
8143
          return lastComparison;
8144
        }
684 chandransh 8145
      }
3430 rajveer 8146
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
684 chandransh 8147
      if (lastComparison != 0) {
8148
        return lastComparison;
8149
      }
3430 rajveer 8150
      if (isSetEx()) {
8151
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
8152
        if (lastComparison != 0) {
8153
          return lastComparison;
8154
        }
684 chandransh 8155
      }
8156
      return 0;
8157
    }
8158
 
3430 rajveer 8159
    public _Fields fieldForId(int fieldId) {
8160
      return _Fields.findByThriftId(fieldId);
8161
    }
8162
 
8163
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8164
      org.apache.thrift.protocol.TField field;
68 ashish 8165
      iprot.readStructBegin();
8166
      while (true)
8167
      {
8168
        field = iprot.readFieldBegin();
3430 rajveer 8169
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 8170
          break;
8171
        }
3430 rajveer 8172
        switch (field.id) {
8173
          case 0: // SUCCESS
8174
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8175
              {
8176
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
8177
                this.success = new ArrayList<Transaction>(_list8.size);
8178
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
68 ashish 8179
                {
3430 rajveer 8180
                  Transaction _elem10; // required
8181
                  _elem10 = new Transaction();
8182
                  _elem10.read(iprot);
8183
                  this.success.add(_elem10);
68 ashish 8184
                }
3430 rajveer 8185
                iprot.readListEnd();
68 ashish 8186
              }
3430 rajveer 8187
            } else { 
8188
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8189
            }
8190
            break;
8191
          case 1: // EX
8192
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8193
              this.ex = new TransactionServiceException();
8194
              this.ex.read(iprot);
8195
            } else { 
8196
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8197
            }
8198
            break;
8199
          default:
8200
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 8201
        }
3430 rajveer 8202
        iprot.readFieldEnd();
68 ashish 8203
      }
8204
      iprot.readStructEnd();
8205
      validate();
8206
    }
8207
 
3430 rajveer 8208
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 8209
      oprot.writeStructBegin(STRUCT_DESC);
8210
 
8211
      if (this.isSetSuccess()) {
8212
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8213
        {
3430 rajveer 8214
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
684 chandransh 8215
          for (Transaction _iter11 : this.success)
68 ashish 8216
          {
684 chandransh 8217
            _iter11.write(oprot);
68 ashish 8218
          }
8219
          oprot.writeListEnd();
8220
        }
8221
        oprot.writeFieldEnd();
8222
      } else if (this.isSetEx()) {
8223
        oprot.writeFieldBegin(EX_FIELD_DESC);
8224
        this.ex.write(oprot);
8225
        oprot.writeFieldEnd();
8226
      }
8227
      oprot.writeFieldStop();
8228
      oprot.writeStructEnd();
8229
    }
8230
 
8231
    @Override
8232
    public String toString() {
8233
      StringBuilder sb = new StringBuilder("getTransactionsForCustomer_result(");
8234
      boolean first = true;
8235
 
8236
      sb.append("success:");
8237
      if (this.success == null) {
8238
        sb.append("null");
8239
      } else {
8240
        sb.append(this.success);
8241
      }
8242
      first = false;
8243
      if (!first) sb.append(", ");
8244
      sb.append("ex:");
8245
      if (this.ex == null) {
8246
        sb.append("null");
8247
      } else {
8248
        sb.append(this.ex);
8249
      }
8250
      first = false;
8251
      sb.append(")");
8252
      return sb.toString();
8253
    }
8254
 
3430 rajveer 8255
    public void validate() throws org.apache.thrift.TException {
68 ashish 8256
      // check for required fields
8257
    }
8258
 
3430 rajveer 8259
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8260
      try {
8261
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8262
      } catch (org.apache.thrift.TException te) {
8263
        throw new java.io.IOException(te);
8264
      }
8265
    }
8266
 
8267
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8268
      try {
8269
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8270
      } catch (org.apache.thrift.TException te) {
8271
        throw new java.io.IOException(te);
8272
      }
8273
    }
8274
 
68 ashish 8275
  }
8276
 
3430 rajveer 8277
  public static class getTransactionsForShoppingCartId_args implements org.apache.thrift.TBase<getTransactionsForShoppingCartId_args, getTransactionsForShoppingCartId_args._Fields>, java.io.Serializable, Cloneable   {
8278
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForShoppingCartId_args");
132 ashish 8279
 
3430 rajveer 8280
    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);
132 ashish 8281
 
3430 rajveer 8282
    private long shoppingCartId; // required
132 ashish 8283
 
8284
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8285
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
132 ashish 8286
      SHOPPING_CART_ID((short)1, "shoppingCartId");
8287
 
8288
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8289
 
8290
      static {
8291
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8292
          byName.put(field.getFieldName(), field);
8293
        }
8294
      }
8295
 
8296
      /**
8297
       * Find the _Fields constant that matches fieldId, or null if its not found.
8298
       */
8299
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8300
        switch(fieldId) {
8301
          case 1: // SHOPPING_CART_ID
8302
            return SHOPPING_CART_ID;
8303
          default:
8304
            return null;
8305
        }
132 ashish 8306
      }
8307
 
8308
      /**
8309
       * Find the _Fields constant that matches fieldId, throwing an exception
8310
       * if it is not found.
8311
       */
8312
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8313
        _Fields fields = findByThriftId(fieldId);
8314
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8315
        return fields;
8316
      }
8317
 
8318
      /**
8319
       * Find the _Fields constant that matches name, or null if its not found.
8320
       */
8321
      public static _Fields findByName(String name) {
8322
        return byName.get(name);
8323
      }
8324
 
8325
      private final short _thriftId;
8326
      private final String _fieldName;
8327
 
8328
      _Fields(short thriftId, String fieldName) {
8329
        _thriftId = thriftId;
8330
        _fieldName = fieldName;
8331
      }
8332
 
8333
      public short getThriftFieldId() {
8334
        return _thriftId;
8335
      }
8336
 
8337
      public String getFieldName() {
8338
        return _fieldName;
8339
      }
8340
    }
8341
 
8342
    // isset id assignments
8343
    private static final int __SHOPPINGCARTID_ISSET_ID = 0;
8344
    private BitSet __isset_bit_vector = new BitSet(1);
8345
 
3430 rajveer 8346
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
132 ashish 8347
    static {
3430 rajveer 8348
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8349
      tmpMap.put(_Fields.SHOPPING_CART_ID, new org.apache.thrift.meta_data.FieldMetaData("shoppingCartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8350
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8351
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8352
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForShoppingCartId_args.class, metaDataMap);
132 ashish 8353
    }
8354
 
8355
    public getTransactionsForShoppingCartId_args() {
8356
    }
8357
 
8358
    public getTransactionsForShoppingCartId_args(
8359
      long shoppingCartId)
8360
    {
8361
      this();
8362
      this.shoppingCartId = shoppingCartId;
8363
      setShoppingCartIdIsSet(true);
8364
    }
8365
 
8366
    /**
8367
     * Performs a deep copy on <i>other</i>.
8368
     */
8369
    public getTransactionsForShoppingCartId_args(getTransactionsForShoppingCartId_args other) {
8370
      __isset_bit_vector.clear();
8371
      __isset_bit_vector.or(other.__isset_bit_vector);
8372
      this.shoppingCartId = other.shoppingCartId;
8373
    }
8374
 
8375
    public getTransactionsForShoppingCartId_args deepCopy() {
8376
      return new getTransactionsForShoppingCartId_args(this);
8377
    }
8378
 
3430 rajveer 8379
    @Override
8380
    public void clear() {
8381
      setShoppingCartIdIsSet(false);
8382
      this.shoppingCartId = 0;
132 ashish 8383
    }
8384
 
8385
    public long getShoppingCartId() {
8386
      return this.shoppingCartId;
8387
    }
8388
 
3430 rajveer 8389
    public void setShoppingCartId(long shoppingCartId) {
132 ashish 8390
      this.shoppingCartId = shoppingCartId;
8391
      setShoppingCartIdIsSet(true);
8392
    }
8393
 
8394
    public void unsetShoppingCartId() {
8395
      __isset_bit_vector.clear(__SHOPPINGCARTID_ISSET_ID);
8396
    }
8397
 
3430 rajveer 8398
    /** Returns true if field shoppingCartId is set (has been assigned a value) and false otherwise */
132 ashish 8399
    public boolean isSetShoppingCartId() {
8400
      return __isset_bit_vector.get(__SHOPPINGCARTID_ISSET_ID);
8401
    }
8402
 
8403
    public void setShoppingCartIdIsSet(boolean value) {
8404
      __isset_bit_vector.set(__SHOPPINGCARTID_ISSET_ID, value);
8405
    }
8406
 
8407
    public void setFieldValue(_Fields field, Object value) {
8408
      switch (field) {
8409
      case SHOPPING_CART_ID:
8410
        if (value == null) {
8411
          unsetShoppingCartId();
8412
        } else {
8413
          setShoppingCartId((Long)value);
8414
        }
8415
        break;
8416
 
8417
      }
8418
    }
8419
 
8420
    public Object getFieldValue(_Fields field) {
8421
      switch (field) {
8422
      case SHOPPING_CART_ID:
3430 rajveer 8423
        return Long.valueOf(getShoppingCartId());
132 ashish 8424
 
8425
      }
8426
      throw new IllegalStateException();
8427
    }
8428
 
3430 rajveer 8429
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8430
    public boolean isSet(_Fields field) {
8431
      if (field == null) {
8432
        throw new IllegalArgumentException();
8433
      }
132 ashish 8434
 
8435
      switch (field) {
8436
      case SHOPPING_CART_ID:
8437
        return isSetShoppingCartId();
8438
      }
8439
      throw new IllegalStateException();
8440
    }
8441
 
8442
    @Override
8443
    public boolean equals(Object that) {
8444
      if (that == null)
8445
        return false;
8446
      if (that instanceof getTransactionsForShoppingCartId_args)
8447
        return this.equals((getTransactionsForShoppingCartId_args)that);
8448
      return false;
8449
    }
8450
 
8451
    public boolean equals(getTransactionsForShoppingCartId_args that) {
8452
      if (that == null)
8453
        return false;
8454
 
8455
      boolean this_present_shoppingCartId = true;
8456
      boolean that_present_shoppingCartId = true;
8457
      if (this_present_shoppingCartId || that_present_shoppingCartId) {
8458
        if (!(this_present_shoppingCartId && that_present_shoppingCartId))
8459
          return false;
8460
        if (this.shoppingCartId != that.shoppingCartId)
8461
          return false;
8462
      }
8463
 
8464
      return true;
8465
    }
8466
 
8467
    @Override
8468
    public int hashCode() {
8469
      return 0;
8470
    }
8471
 
8472
    public int compareTo(getTransactionsForShoppingCartId_args other) {
8473
      if (!getClass().equals(other.getClass())) {
8474
        return getClass().getName().compareTo(other.getClass().getName());
8475
      }
8476
 
8477
      int lastComparison = 0;
8478
      getTransactionsForShoppingCartId_args typedOther = (getTransactionsForShoppingCartId_args)other;
8479
 
3430 rajveer 8480
      lastComparison = Boolean.valueOf(isSetShoppingCartId()).compareTo(typedOther.isSetShoppingCartId());
132 ashish 8481
      if (lastComparison != 0) {
8482
        return lastComparison;
8483
      }
3430 rajveer 8484
      if (isSetShoppingCartId()) {
8485
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shoppingCartId, typedOther.shoppingCartId);
8486
        if (lastComparison != 0) {
8487
          return lastComparison;
8488
        }
132 ashish 8489
      }
8490
      return 0;
8491
    }
8492
 
3430 rajveer 8493
    public _Fields fieldForId(int fieldId) {
8494
      return _Fields.findByThriftId(fieldId);
8495
    }
8496
 
8497
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8498
      org.apache.thrift.protocol.TField field;
132 ashish 8499
      iprot.readStructBegin();
8500
      while (true)
8501
      {
8502
        field = iprot.readFieldBegin();
3430 rajveer 8503
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
132 ashish 8504
          break;
8505
        }
3430 rajveer 8506
        switch (field.id) {
8507
          case 1: // SHOPPING_CART_ID
8508
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8509
              this.shoppingCartId = iprot.readI64();
8510
              setShoppingCartIdIsSet(true);
8511
            } else { 
8512
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8513
            }
8514
            break;
8515
          default:
8516
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
132 ashish 8517
        }
3430 rajveer 8518
        iprot.readFieldEnd();
132 ashish 8519
      }
8520
      iprot.readStructEnd();
8521
      validate();
8522
    }
8523
 
3430 rajveer 8524
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
132 ashish 8525
      validate();
8526
 
8527
      oprot.writeStructBegin(STRUCT_DESC);
8528
      oprot.writeFieldBegin(SHOPPING_CART_ID_FIELD_DESC);
8529
      oprot.writeI64(this.shoppingCartId);
8530
      oprot.writeFieldEnd();
8531
      oprot.writeFieldStop();
8532
      oprot.writeStructEnd();
8533
    }
8534
 
8535
    @Override
8536
    public String toString() {
8537
      StringBuilder sb = new StringBuilder("getTransactionsForShoppingCartId_args(");
8538
      boolean first = true;
8539
 
8540
      sb.append("shoppingCartId:");
8541
      sb.append(this.shoppingCartId);
8542
      first = false;
8543
      sb.append(")");
8544
      return sb.toString();
8545
    }
8546
 
3430 rajveer 8547
    public void validate() throws org.apache.thrift.TException {
132 ashish 8548
      // check for required fields
8549
    }
8550
 
3430 rajveer 8551
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8552
      try {
8553
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8554
      } catch (org.apache.thrift.TException te) {
8555
        throw new java.io.IOException(te);
8556
      }
8557
    }
8558
 
8559
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8560
      try {
8561
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8562
        __isset_bit_vector = new BitSet(1);
8563
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8564
      } catch (org.apache.thrift.TException te) {
8565
        throw new java.io.IOException(te);
8566
      }
8567
    }
8568
 
132 ashish 8569
  }
8570
 
3430 rajveer 8571
  public static class getTransactionsForShoppingCartId_result implements org.apache.thrift.TBase<getTransactionsForShoppingCartId_result, getTransactionsForShoppingCartId_result._Fields>, java.io.Serializable, Cloneable   {
8572
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForShoppingCartId_result");
132 ashish 8573
 
3430 rajveer 8574
    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);
8575
    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);
132 ashish 8576
 
3430 rajveer 8577
    private List<Transaction> success; // required
8578
    private TransactionServiceException ex; // required
132 ashish 8579
 
8580
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8581
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
132 ashish 8582
      SUCCESS((short)0, "success"),
8583
      EX((short)1, "ex");
8584
 
8585
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8586
 
8587
      static {
8588
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8589
          byName.put(field.getFieldName(), field);
8590
        }
8591
      }
8592
 
8593
      /**
8594
       * Find the _Fields constant that matches fieldId, or null if its not found.
8595
       */
8596
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8597
        switch(fieldId) {
8598
          case 0: // SUCCESS
8599
            return SUCCESS;
8600
          case 1: // EX
8601
            return EX;
8602
          default:
8603
            return null;
8604
        }
132 ashish 8605
      }
8606
 
8607
      /**
8608
       * Find the _Fields constant that matches fieldId, throwing an exception
8609
       * if it is not found.
8610
       */
8611
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8612
        _Fields fields = findByThriftId(fieldId);
8613
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8614
        return fields;
8615
      }
8616
 
8617
      /**
8618
       * Find the _Fields constant that matches name, or null if its not found.
8619
       */
8620
      public static _Fields findByName(String name) {
8621
        return byName.get(name);
8622
      }
8623
 
8624
      private final short _thriftId;
8625
      private final String _fieldName;
8626
 
8627
      _Fields(short thriftId, String fieldName) {
8628
        _thriftId = thriftId;
8629
        _fieldName = fieldName;
8630
      }
8631
 
8632
      public short getThriftFieldId() {
8633
        return _thriftId;
8634
      }
8635
 
8636
      public String getFieldName() {
8637
        return _fieldName;
8638
      }
8639
    }
8640
 
8641
    // isset id assignments
8642
 
3430 rajveer 8643
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
132 ashish 8644
    static {
3430 rajveer 8645
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8646
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8647
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8648
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class))));
8649
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForShoppingCartId_result.class, metaDataMap);
132 ashish 8653
    }
8654
 
8655
    public getTransactionsForShoppingCartId_result() {
8656
    }
8657
 
8658
    public getTransactionsForShoppingCartId_result(
8659
      List<Transaction> success,
8660
      TransactionServiceException ex)
8661
    {
8662
      this();
8663
      this.success = success;
8664
      this.ex = ex;
8665
    }
8666
 
8667
    /**
8668
     * Performs a deep copy on <i>other</i>.
8669
     */
8670
    public getTransactionsForShoppingCartId_result(getTransactionsForShoppingCartId_result other) {
8671
      if (other.isSetSuccess()) {
8672
        List<Transaction> __this__success = new ArrayList<Transaction>();
8673
        for (Transaction other_element : other.success) {
8674
          __this__success.add(new Transaction(other_element));
8675
        }
8676
        this.success = __this__success;
8677
      }
8678
      if (other.isSetEx()) {
8679
        this.ex = new TransactionServiceException(other.ex);
8680
      }
8681
    }
8682
 
8683
    public getTransactionsForShoppingCartId_result deepCopy() {
8684
      return new getTransactionsForShoppingCartId_result(this);
8685
    }
8686
 
3430 rajveer 8687
    @Override
8688
    public void clear() {
8689
      this.success = null;
8690
      this.ex = null;
132 ashish 8691
    }
8692
 
8693
    public int getSuccessSize() {
8694
      return (this.success == null) ? 0 : this.success.size();
8695
    }
8696
 
8697
    public java.util.Iterator<Transaction> getSuccessIterator() {
8698
      return (this.success == null) ? null : this.success.iterator();
8699
    }
8700
 
8701
    public void addToSuccess(Transaction elem) {
8702
      if (this.success == null) {
8703
        this.success = new ArrayList<Transaction>();
8704
      }
8705
      this.success.add(elem);
8706
    }
8707
 
8708
    public List<Transaction> getSuccess() {
8709
      return this.success;
8710
    }
8711
 
3430 rajveer 8712
    public void setSuccess(List<Transaction> success) {
132 ashish 8713
      this.success = success;
8714
    }
8715
 
8716
    public void unsetSuccess() {
8717
      this.success = null;
8718
    }
8719
 
3430 rajveer 8720
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
132 ashish 8721
    public boolean isSetSuccess() {
8722
      return this.success != null;
8723
    }
8724
 
8725
    public void setSuccessIsSet(boolean value) {
8726
      if (!value) {
8727
        this.success = null;
8728
      }
8729
    }
8730
 
8731
    public TransactionServiceException getEx() {
8732
      return this.ex;
8733
    }
8734
 
3430 rajveer 8735
    public void setEx(TransactionServiceException ex) {
132 ashish 8736
      this.ex = ex;
8737
    }
8738
 
8739
    public void unsetEx() {
8740
      this.ex = null;
8741
    }
8742
 
3430 rajveer 8743
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
132 ashish 8744
    public boolean isSetEx() {
8745
      return this.ex != null;
8746
    }
8747
 
8748
    public void setExIsSet(boolean value) {
8749
      if (!value) {
8750
        this.ex = null;
8751
      }
8752
    }
8753
 
8754
    public void setFieldValue(_Fields field, Object value) {
8755
      switch (field) {
8756
      case SUCCESS:
8757
        if (value == null) {
8758
          unsetSuccess();
8759
        } else {
8760
          setSuccess((List<Transaction>)value);
8761
        }
8762
        break;
8763
 
8764
      case EX:
8765
        if (value == null) {
8766
          unsetEx();
8767
        } else {
8768
          setEx((TransactionServiceException)value);
8769
        }
8770
        break;
8771
 
8772
      }
8773
    }
8774
 
8775
    public Object getFieldValue(_Fields field) {
8776
      switch (field) {
8777
      case SUCCESS:
8778
        return getSuccess();
8779
 
8780
      case EX:
8781
        return getEx();
8782
 
8783
      }
8784
      throw new IllegalStateException();
8785
    }
8786
 
3430 rajveer 8787
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8788
    public boolean isSet(_Fields field) {
8789
      if (field == null) {
8790
        throw new IllegalArgumentException();
8791
      }
132 ashish 8792
 
8793
      switch (field) {
8794
      case SUCCESS:
8795
        return isSetSuccess();
8796
      case EX:
8797
        return isSetEx();
8798
      }
8799
      throw new IllegalStateException();
8800
    }
8801
 
8802
    @Override
8803
    public boolean equals(Object that) {
8804
      if (that == null)
8805
        return false;
8806
      if (that instanceof getTransactionsForShoppingCartId_result)
8807
        return this.equals((getTransactionsForShoppingCartId_result)that);
8808
      return false;
8809
    }
8810
 
8811
    public boolean equals(getTransactionsForShoppingCartId_result that) {
8812
      if (that == null)
8813
        return false;
8814
 
8815
      boolean this_present_success = true && this.isSetSuccess();
8816
      boolean that_present_success = true && that.isSetSuccess();
8817
      if (this_present_success || that_present_success) {
8818
        if (!(this_present_success && that_present_success))
8819
          return false;
8820
        if (!this.success.equals(that.success))
8821
          return false;
8822
      }
8823
 
8824
      boolean this_present_ex = true && this.isSetEx();
8825
      boolean that_present_ex = true && that.isSetEx();
8826
      if (this_present_ex || that_present_ex) {
8827
        if (!(this_present_ex && that_present_ex))
8828
          return false;
8829
        if (!this.ex.equals(that.ex))
8830
          return false;
8831
      }
8832
 
8833
      return true;
8834
    }
8835
 
8836
    @Override
8837
    public int hashCode() {
8838
      return 0;
8839
    }
8840
 
684 chandransh 8841
    public int compareTo(getTransactionsForShoppingCartId_result other) {
8842
      if (!getClass().equals(other.getClass())) {
8843
        return getClass().getName().compareTo(other.getClass().getName());
8844
      }
8845
 
8846
      int lastComparison = 0;
8847
      getTransactionsForShoppingCartId_result typedOther = (getTransactionsForShoppingCartId_result)other;
8848
 
3430 rajveer 8849
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
684 chandransh 8850
      if (lastComparison != 0) {
8851
        return lastComparison;
8852
      }
3430 rajveer 8853
      if (isSetSuccess()) {
8854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8855
        if (lastComparison != 0) {
8856
          return lastComparison;
8857
        }
684 chandransh 8858
      }
3430 rajveer 8859
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
684 chandransh 8860
      if (lastComparison != 0) {
8861
        return lastComparison;
8862
      }
3430 rajveer 8863
      if (isSetEx()) {
8864
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
8865
        if (lastComparison != 0) {
8866
          return lastComparison;
8867
        }
684 chandransh 8868
      }
8869
      return 0;
8870
    }
8871
 
3430 rajveer 8872
    public _Fields fieldForId(int fieldId) {
8873
      return _Fields.findByThriftId(fieldId);
8874
    }
8875
 
8876
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8877
      org.apache.thrift.protocol.TField field;
132 ashish 8878
      iprot.readStructBegin();
8879
      while (true)
8880
      {
8881
        field = iprot.readFieldBegin();
3430 rajveer 8882
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
132 ashish 8883
          break;
8884
        }
3430 rajveer 8885
        switch (field.id) {
8886
          case 0: // SUCCESS
8887
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8888
              {
8889
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
8890
                this.success = new ArrayList<Transaction>(_list12.size);
8891
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
132 ashish 8892
                {
3430 rajveer 8893
                  Transaction _elem14; // required
8894
                  _elem14 = new Transaction();
8895
                  _elem14.read(iprot);
8896
                  this.success.add(_elem14);
132 ashish 8897
                }
3430 rajveer 8898
                iprot.readListEnd();
132 ashish 8899
              }
3430 rajveer 8900
            } else { 
8901
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8902
            }
8903
            break;
8904
          case 1: // EX
8905
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8906
              this.ex = new TransactionServiceException();
8907
              this.ex.read(iprot);
8908
            } else { 
8909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8910
            }
8911
            break;
8912
          default:
8913
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
132 ashish 8914
        }
3430 rajveer 8915
        iprot.readFieldEnd();
132 ashish 8916
      }
8917
      iprot.readStructEnd();
8918
      validate();
8919
    }
8920
 
3430 rajveer 8921
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
132 ashish 8922
      oprot.writeStructBegin(STRUCT_DESC);
8923
 
8924
      if (this.isSetSuccess()) {
8925
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8926
        {
3430 rajveer 8927
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
684 chandransh 8928
          for (Transaction _iter15 : this.success)
132 ashish 8929
          {
684 chandransh 8930
            _iter15.write(oprot);
132 ashish 8931
          }
8932
          oprot.writeListEnd();
8933
        }
8934
        oprot.writeFieldEnd();
8935
      } else if (this.isSetEx()) {
8936
        oprot.writeFieldBegin(EX_FIELD_DESC);
8937
        this.ex.write(oprot);
8938
        oprot.writeFieldEnd();
8939
      }
8940
      oprot.writeFieldStop();
8941
      oprot.writeStructEnd();
8942
    }
8943
 
8944
    @Override
8945
    public String toString() {
8946
      StringBuilder sb = new StringBuilder("getTransactionsForShoppingCartId_result(");
8947
      boolean first = true;
8948
 
8949
      sb.append("success:");
8950
      if (this.success == null) {
8951
        sb.append("null");
8952
      } else {
8953
        sb.append(this.success);
8954
      }
8955
      first = false;
8956
      if (!first) sb.append(", ");
8957
      sb.append("ex:");
8958
      if (this.ex == null) {
8959
        sb.append("null");
8960
      } else {
8961
        sb.append(this.ex);
8962
      }
8963
      first = false;
8964
      sb.append(")");
8965
      return sb.toString();
8966
    }
8967
 
3430 rajveer 8968
    public void validate() throws org.apache.thrift.TException {
132 ashish 8969
      // check for required fields
8970
    }
8971
 
3430 rajveer 8972
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8973
      try {
8974
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8975
      } catch (org.apache.thrift.TException te) {
8976
        throw new java.io.IOException(te);
8977
      }
8978
    }
8979
 
8980
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8981
      try {
8982
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8983
      } catch (org.apache.thrift.TException te) {
8984
        throw new java.io.IOException(te);
8985
      }
8986
    }
8987
 
132 ashish 8988
  }
8989
 
3430 rajveer 8990
  public static class getTransactionStatus_args implements org.apache.thrift.TBase<getTransactionStatus_args, getTransactionStatus_args._Fields>, java.io.Serializable, Cloneable   {
8991
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionStatus_args");
68 ashish 8992
 
3430 rajveer 8993
    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);
68 ashish 8994
 
3430 rajveer 8995
    private long transactionId; // required
68 ashish 8996
 
8997
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8998
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 8999
      TRANSACTION_ID((short)1, "transactionId");
9000
 
9001
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9002
 
9003
      static {
9004
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9005
          byName.put(field.getFieldName(), field);
9006
        }
9007
      }
9008
 
9009
      /**
9010
       * Find the _Fields constant that matches fieldId, or null if its not found.
9011
       */
9012
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9013
        switch(fieldId) {
9014
          case 1: // TRANSACTION_ID
9015
            return TRANSACTION_ID;
9016
          default:
9017
            return null;
9018
        }
68 ashish 9019
      }
9020
 
9021
      /**
9022
       * Find the _Fields constant that matches fieldId, throwing an exception
9023
       * if it is not found.
9024
       */
9025
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9026
        _Fields fields = findByThriftId(fieldId);
9027
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9028
        return fields;
9029
      }
9030
 
9031
      /**
9032
       * Find the _Fields constant that matches name, or null if its not found.
9033
       */
9034
      public static _Fields findByName(String name) {
9035
        return byName.get(name);
9036
      }
9037
 
9038
      private final short _thriftId;
9039
      private final String _fieldName;
9040
 
9041
      _Fields(short thriftId, String fieldName) {
9042
        _thriftId = thriftId;
9043
        _fieldName = fieldName;
9044
      }
9045
 
9046
      public short getThriftFieldId() {
9047
        return _thriftId;
9048
      }
9049
 
9050
      public String getFieldName() {
9051
        return _fieldName;
9052
      }
9053
    }
9054
 
9055
    // isset id assignments
9056
    private static final int __TRANSACTIONID_ISSET_ID = 0;
9057
    private BitSet __isset_bit_vector = new BitSet(1);
9058
 
3430 rajveer 9059
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 9060
    static {
3430 rajveer 9061
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9062
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9063
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9064
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9065
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionStatus_args.class, metaDataMap);
68 ashish 9066
    }
9067
 
9068
    public getTransactionStatus_args() {
9069
    }
9070
 
9071
    public getTransactionStatus_args(
9072
      long transactionId)
9073
    {
9074
      this();
9075
      this.transactionId = transactionId;
9076
      setTransactionIdIsSet(true);
9077
    }
9078
 
9079
    /**
9080
     * Performs a deep copy on <i>other</i>.
9081
     */
9082
    public getTransactionStatus_args(getTransactionStatus_args other) {
9083
      __isset_bit_vector.clear();
9084
      __isset_bit_vector.or(other.__isset_bit_vector);
9085
      this.transactionId = other.transactionId;
9086
    }
9087
 
9088
    public getTransactionStatus_args deepCopy() {
9089
      return new getTransactionStatus_args(this);
9090
    }
9091
 
3430 rajveer 9092
    @Override
9093
    public void clear() {
9094
      setTransactionIdIsSet(false);
9095
      this.transactionId = 0;
68 ashish 9096
    }
9097
 
9098
    public long getTransactionId() {
9099
      return this.transactionId;
9100
    }
9101
 
3430 rajveer 9102
    public void setTransactionId(long transactionId) {
68 ashish 9103
      this.transactionId = transactionId;
9104
      setTransactionIdIsSet(true);
9105
    }
9106
 
9107
    public void unsetTransactionId() {
9108
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
9109
    }
9110
 
3430 rajveer 9111
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
68 ashish 9112
    public boolean isSetTransactionId() {
9113
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
9114
    }
9115
 
9116
    public void setTransactionIdIsSet(boolean value) {
9117
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
9118
    }
9119
 
9120
    public void setFieldValue(_Fields field, Object value) {
9121
      switch (field) {
9122
      case TRANSACTION_ID:
9123
        if (value == null) {
9124
          unsetTransactionId();
9125
        } else {
9126
          setTransactionId((Long)value);
9127
        }
9128
        break;
9129
 
9130
      }
9131
    }
9132
 
9133
    public Object getFieldValue(_Fields field) {
9134
      switch (field) {
9135
      case TRANSACTION_ID:
3430 rajveer 9136
        return Long.valueOf(getTransactionId());
68 ashish 9137
 
9138
      }
9139
      throw new IllegalStateException();
9140
    }
9141
 
3430 rajveer 9142
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9143
    public boolean isSet(_Fields field) {
9144
      if (field == null) {
9145
        throw new IllegalArgumentException();
9146
      }
68 ashish 9147
 
9148
      switch (field) {
9149
      case TRANSACTION_ID:
9150
        return isSetTransactionId();
9151
      }
9152
      throw new IllegalStateException();
9153
    }
9154
 
9155
    @Override
9156
    public boolean equals(Object that) {
9157
      if (that == null)
9158
        return false;
9159
      if (that instanceof getTransactionStatus_args)
9160
        return this.equals((getTransactionStatus_args)that);
9161
      return false;
9162
    }
9163
 
9164
    public boolean equals(getTransactionStatus_args that) {
9165
      if (that == null)
9166
        return false;
9167
 
9168
      boolean this_present_transactionId = true;
9169
      boolean that_present_transactionId = true;
9170
      if (this_present_transactionId || that_present_transactionId) {
9171
        if (!(this_present_transactionId && that_present_transactionId))
9172
          return false;
9173
        if (this.transactionId != that.transactionId)
9174
          return false;
9175
      }
9176
 
9177
      return true;
9178
    }
9179
 
9180
    @Override
9181
    public int hashCode() {
9182
      return 0;
9183
    }
9184
 
9185
    public int compareTo(getTransactionStatus_args other) {
9186
      if (!getClass().equals(other.getClass())) {
9187
        return getClass().getName().compareTo(other.getClass().getName());
9188
      }
9189
 
9190
      int lastComparison = 0;
9191
      getTransactionStatus_args typedOther = (getTransactionStatus_args)other;
9192
 
3430 rajveer 9193
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
68 ashish 9194
      if (lastComparison != 0) {
9195
        return lastComparison;
9196
      }
3430 rajveer 9197
      if (isSetTransactionId()) {
9198
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
9199
        if (lastComparison != 0) {
9200
          return lastComparison;
9201
        }
68 ashish 9202
      }
9203
      return 0;
9204
    }
9205
 
3430 rajveer 9206
    public _Fields fieldForId(int fieldId) {
9207
      return _Fields.findByThriftId(fieldId);
9208
    }
9209
 
9210
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9211
      org.apache.thrift.protocol.TField field;
68 ashish 9212
      iprot.readStructBegin();
9213
      while (true)
9214
      {
9215
        field = iprot.readFieldBegin();
3430 rajveer 9216
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 9217
          break;
9218
        }
3430 rajveer 9219
        switch (field.id) {
9220
          case 1: // TRANSACTION_ID
9221
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9222
              this.transactionId = iprot.readI64();
9223
              setTransactionIdIsSet(true);
9224
            } else { 
9225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9226
            }
9227
            break;
9228
          default:
9229
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 9230
        }
3430 rajveer 9231
        iprot.readFieldEnd();
68 ashish 9232
      }
9233
      iprot.readStructEnd();
9234
      validate();
9235
    }
9236
 
3430 rajveer 9237
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 9238
      validate();
9239
 
9240
      oprot.writeStructBegin(STRUCT_DESC);
9241
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
9242
      oprot.writeI64(this.transactionId);
9243
      oprot.writeFieldEnd();
9244
      oprot.writeFieldStop();
9245
      oprot.writeStructEnd();
9246
    }
9247
 
9248
    @Override
9249
    public String toString() {
9250
      StringBuilder sb = new StringBuilder("getTransactionStatus_args(");
9251
      boolean first = true;
9252
 
9253
      sb.append("transactionId:");
9254
      sb.append(this.transactionId);
9255
      first = false;
9256
      sb.append(")");
9257
      return sb.toString();
9258
    }
9259
 
3430 rajveer 9260
    public void validate() throws org.apache.thrift.TException {
68 ashish 9261
      // check for required fields
9262
    }
9263
 
3430 rajveer 9264
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9265
      try {
9266
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9267
      } catch (org.apache.thrift.TException te) {
9268
        throw new java.io.IOException(te);
9269
      }
9270
    }
9271
 
9272
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9273
      try {
9274
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9275
        __isset_bit_vector = new BitSet(1);
9276
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9277
      } catch (org.apache.thrift.TException te) {
9278
        throw new java.io.IOException(te);
9279
      }
9280
    }
9281
 
68 ashish 9282
  }
9283
 
3430 rajveer 9284
  public static class getTransactionStatus_result implements org.apache.thrift.TBase<getTransactionStatus_result, getTransactionStatus_result._Fields>, java.io.Serializable, Cloneable   {
9285
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionStatus_result");
68 ashish 9286
 
3430 rajveer 9287
    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);
9288
    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);
68 ashish 9289
 
3430 rajveer 9290
    private TransactionStatus success; // required
9291
    private TransactionServiceException ex; // required
68 ashish 9292
 
9293
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9294
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 9295
      /**
9296
       * 
9297
       * @see TransactionStatus
9298
       */
9299
      SUCCESS((short)0, "success"),
9300
      EX((short)1, "ex");
9301
 
9302
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9303
 
9304
      static {
9305
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9306
          byName.put(field.getFieldName(), field);
9307
        }
9308
      }
9309
 
9310
      /**
9311
       * Find the _Fields constant that matches fieldId, or null if its not found.
9312
       */
9313
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9314
        switch(fieldId) {
9315
          case 0: // SUCCESS
9316
            return SUCCESS;
9317
          case 1: // EX
9318
            return EX;
9319
          default:
9320
            return null;
9321
        }
68 ashish 9322
      }
9323
 
9324
      /**
9325
       * Find the _Fields constant that matches fieldId, throwing an exception
9326
       * if it is not found.
9327
       */
9328
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9329
        _Fields fields = findByThriftId(fieldId);
9330
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9331
        return fields;
9332
      }
9333
 
9334
      /**
9335
       * Find the _Fields constant that matches name, or null if its not found.
9336
       */
9337
      public static _Fields findByName(String name) {
9338
        return byName.get(name);
9339
      }
9340
 
9341
      private final short _thriftId;
9342
      private final String _fieldName;
9343
 
9344
      _Fields(short thriftId, String fieldName) {
9345
        _thriftId = thriftId;
9346
        _fieldName = fieldName;
9347
      }
9348
 
9349
      public short getThriftFieldId() {
9350
        return _thriftId;
9351
      }
9352
 
9353
      public String getFieldName() {
9354
        return _fieldName;
9355
      }
9356
    }
9357
 
9358
    // isset id assignments
9359
 
3430 rajveer 9360
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 9361
    static {
3430 rajveer 9362
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9363
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9364
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
9365
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9366
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9367
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9368
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionStatus_result.class, metaDataMap);
68 ashish 9369
    }
9370
 
9371
    public getTransactionStatus_result() {
9372
    }
9373
 
9374
    public getTransactionStatus_result(
9375
      TransactionStatus success,
9376
      TransactionServiceException ex)
9377
    {
9378
      this();
9379
      this.success = success;
9380
      this.ex = ex;
9381
    }
9382
 
9383
    /**
9384
     * Performs a deep copy on <i>other</i>.
9385
     */
9386
    public getTransactionStatus_result(getTransactionStatus_result other) {
9387
      if (other.isSetSuccess()) {
9388
        this.success = other.success;
9389
      }
9390
      if (other.isSetEx()) {
9391
        this.ex = new TransactionServiceException(other.ex);
9392
      }
9393
    }
9394
 
9395
    public getTransactionStatus_result deepCopy() {
9396
      return new getTransactionStatus_result(this);
9397
    }
9398
 
3430 rajveer 9399
    @Override
9400
    public void clear() {
9401
      this.success = null;
9402
      this.ex = null;
68 ashish 9403
    }
9404
 
9405
    /**
9406
     * 
9407
     * @see TransactionStatus
9408
     */
9409
    public TransactionStatus getSuccess() {
9410
      return this.success;
9411
    }
9412
 
9413
    /**
9414
     * 
9415
     * @see TransactionStatus
9416
     */
3430 rajveer 9417
    public void setSuccess(TransactionStatus success) {
68 ashish 9418
      this.success = success;
9419
    }
9420
 
9421
    public void unsetSuccess() {
9422
      this.success = null;
9423
    }
9424
 
3430 rajveer 9425
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 9426
    public boolean isSetSuccess() {
9427
      return this.success != null;
9428
    }
9429
 
9430
    public void setSuccessIsSet(boolean value) {
9431
      if (!value) {
9432
        this.success = null;
9433
      }
9434
    }
9435
 
9436
    public TransactionServiceException getEx() {
9437
      return this.ex;
9438
    }
9439
 
3430 rajveer 9440
    public void setEx(TransactionServiceException ex) {
68 ashish 9441
      this.ex = ex;
9442
    }
9443
 
9444
    public void unsetEx() {
9445
      this.ex = null;
9446
    }
9447
 
3430 rajveer 9448
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 9449
    public boolean isSetEx() {
9450
      return this.ex != null;
9451
    }
9452
 
9453
    public void setExIsSet(boolean value) {
9454
      if (!value) {
9455
        this.ex = null;
9456
      }
9457
    }
9458
 
9459
    public void setFieldValue(_Fields field, Object value) {
9460
      switch (field) {
9461
      case SUCCESS:
9462
        if (value == null) {
9463
          unsetSuccess();
9464
        } else {
9465
          setSuccess((TransactionStatus)value);
9466
        }
9467
        break;
9468
 
9469
      case EX:
9470
        if (value == null) {
9471
          unsetEx();
9472
        } else {
9473
          setEx((TransactionServiceException)value);
9474
        }
9475
        break;
9476
 
9477
      }
9478
    }
9479
 
9480
    public Object getFieldValue(_Fields field) {
9481
      switch (field) {
9482
      case SUCCESS:
9483
        return getSuccess();
9484
 
9485
      case EX:
9486
        return getEx();
9487
 
9488
      }
9489
      throw new IllegalStateException();
9490
    }
9491
 
3430 rajveer 9492
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9493
    public boolean isSet(_Fields field) {
9494
      if (field == null) {
9495
        throw new IllegalArgumentException();
9496
      }
68 ashish 9497
 
9498
      switch (field) {
9499
      case SUCCESS:
9500
        return isSetSuccess();
9501
      case EX:
9502
        return isSetEx();
9503
      }
9504
      throw new IllegalStateException();
9505
    }
9506
 
9507
    @Override
9508
    public boolean equals(Object that) {
9509
      if (that == null)
9510
        return false;
9511
      if (that instanceof getTransactionStatus_result)
9512
        return this.equals((getTransactionStatus_result)that);
9513
      return false;
9514
    }
9515
 
9516
    public boolean equals(getTransactionStatus_result that) {
9517
      if (that == null)
9518
        return false;
9519
 
9520
      boolean this_present_success = true && this.isSetSuccess();
9521
      boolean that_present_success = true && that.isSetSuccess();
9522
      if (this_present_success || that_present_success) {
9523
        if (!(this_present_success && that_present_success))
9524
          return false;
9525
        if (!this.success.equals(that.success))
9526
          return false;
9527
      }
9528
 
9529
      boolean this_present_ex = true && this.isSetEx();
9530
      boolean that_present_ex = true && that.isSetEx();
9531
      if (this_present_ex || that_present_ex) {
9532
        if (!(this_present_ex && that_present_ex))
9533
          return false;
9534
        if (!this.ex.equals(that.ex))
9535
          return false;
9536
      }
9537
 
9538
      return true;
9539
    }
9540
 
9541
    @Override
9542
    public int hashCode() {
9543
      return 0;
9544
    }
9545
 
9546
    public int compareTo(getTransactionStatus_result other) {
9547
      if (!getClass().equals(other.getClass())) {
9548
        return getClass().getName().compareTo(other.getClass().getName());
9549
      }
9550
 
9551
      int lastComparison = 0;
9552
      getTransactionStatus_result typedOther = (getTransactionStatus_result)other;
9553
 
3430 rajveer 9554
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 9555
      if (lastComparison != 0) {
9556
        return lastComparison;
9557
      }
3430 rajveer 9558
      if (isSetSuccess()) {
9559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9560
        if (lastComparison != 0) {
9561
          return lastComparison;
9562
        }
68 ashish 9563
      }
3430 rajveer 9564
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 9565
      if (lastComparison != 0) {
9566
        return lastComparison;
9567
      }
3430 rajveer 9568
      if (isSetEx()) {
9569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
9570
        if (lastComparison != 0) {
9571
          return lastComparison;
9572
        }
68 ashish 9573
      }
9574
      return 0;
9575
    }
9576
 
3430 rajveer 9577
    public _Fields fieldForId(int fieldId) {
9578
      return _Fields.findByThriftId(fieldId);
9579
    }
9580
 
9581
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9582
      org.apache.thrift.protocol.TField field;
68 ashish 9583
      iprot.readStructBegin();
9584
      while (true)
9585
      {
9586
        field = iprot.readFieldBegin();
3430 rajveer 9587
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 9588
          break;
9589
        }
3430 rajveer 9590
        switch (field.id) {
9591
          case 0: // SUCCESS
9592
            if (field.type == org.apache.thrift.protocol.TType.I32) {
9593
              this.success = TransactionStatus.findByValue(iprot.readI32());
9594
            } else { 
9595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9596
            }
9597
            break;
9598
          case 1: // EX
9599
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9600
              this.ex = new TransactionServiceException();
9601
              this.ex.read(iprot);
9602
            } else { 
9603
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9604
            }
9605
            break;
9606
          default:
9607
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 9608
        }
3430 rajveer 9609
        iprot.readFieldEnd();
68 ashish 9610
      }
9611
      iprot.readStructEnd();
9612
      validate();
9613
    }
9614
 
3430 rajveer 9615
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 9616
      oprot.writeStructBegin(STRUCT_DESC);
9617
 
9618
      if (this.isSetSuccess()) {
9619
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9620
        oprot.writeI32(this.success.getValue());
9621
        oprot.writeFieldEnd();
9622
      } else if (this.isSetEx()) {
9623
        oprot.writeFieldBegin(EX_FIELD_DESC);
9624
        this.ex.write(oprot);
9625
        oprot.writeFieldEnd();
9626
      }
9627
      oprot.writeFieldStop();
9628
      oprot.writeStructEnd();
9629
    }
9630
 
9631
    @Override
9632
    public String toString() {
9633
      StringBuilder sb = new StringBuilder("getTransactionStatus_result(");
9634
      boolean first = true;
9635
 
9636
      sb.append("success:");
9637
      if (this.success == null) {
9638
        sb.append("null");
9639
      } else {
9640
        sb.append(this.success);
9641
      }
9642
      first = false;
9643
      if (!first) sb.append(", ");
9644
      sb.append("ex:");
9645
      if (this.ex == null) {
9646
        sb.append("null");
9647
      } else {
9648
        sb.append(this.ex);
9649
      }
9650
      first = false;
9651
      sb.append(")");
9652
      return sb.toString();
9653
    }
9654
 
3430 rajveer 9655
    public void validate() throws org.apache.thrift.TException {
68 ashish 9656
      // check for required fields
9657
    }
9658
 
3430 rajveer 9659
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9660
      try {
9661
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9662
      } catch (org.apache.thrift.TException te) {
9663
        throw new java.io.IOException(te);
9664
      }
9665
    }
9666
 
9667
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9668
      try {
9669
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9670
      } catch (org.apache.thrift.TException te) {
9671
        throw new java.io.IOException(te);
9672
      }
9673
    }
9674
 
68 ashish 9675
  }
9676
 
3430 rajveer 9677
  public static class changeTransactionStatus_args implements org.apache.thrift.TBase<changeTransactionStatus_args, changeTransactionStatus_args._Fields>, java.io.Serializable, Cloneable   {
9678
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeTransactionStatus_args");
68 ashish 9679
 
3430 rajveer 9680
    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);
9681
    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);
9682
    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);
68 ashish 9683
 
3430 rajveer 9684
    private long transactionId; // required
9685
    private TransactionStatus status; // required
9686
    private String description; // required
68 ashish 9687
 
9688
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9689
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 9690
      TRANSACTION_ID((short)1, "transactionId"),
9691
      /**
9692
       * 
9693
       * @see TransactionStatus
9694
       */
9695
      STATUS((short)2, "status"),
9696
      DESCRIPTION((short)3, "description");
9697
 
9698
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9699
 
9700
      static {
9701
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9702
          byName.put(field.getFieldName(), field);
9703
        }
9704
      }
9705
 
9706
      /**
9707
       * Find the _Fields constant that matches fieldId, or null if its not found.
9708
       */
9709
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9710
        switch(fieldId) {
9711
          case 1: // TRANSACTION_ID
9712
            return TRANSACTION_ID;
9713
          case 2: // STATUS
9714
            return STATUS;
9715
          case 3: // DESCRIPTION
9716
            return DESCRIPTION;
9717
          default:
9718
            return null;
9719
        }
68 ashish 9720
      }
9721
 
9722
      /**
9723
       * Find the _Fields constant that matches fieldId, throwing an exception
9724
       * if it is not found.
9725
       */
9726
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9727
        _Fields fields = findByThriftId(fieldId);
9728
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9729
        return fields;
9730
      }
9731
 
9732
      /**
9733
       * Find the _Fields constant that matches name, or null if its not found.
9734
       */
9735
      public static _Fields findByName(String name) {
9736
        return byName.get(name);
9737
      }
9738
 
9739
      private final short _thriftId;
9740
      private final String _fieldName;
9741
 
9742
      _Fields(short thriftId, String fieldName) {
9743
        _thriftId = thriftId;
9744
        _fieldName = fieldName;
9745
      }
9746
 
9747
      public short getThriftFieldId() {
9748
        return _thriftId;
9749
      }
9750
 
9751
      public String getFieldName() {
9752
        return _fieldName;
9753
      }
9754
    }
9755
 
9756
    // isset id assignments
9757
    private static final int __TRANSACTIONID_ISSET_ID = 0;
9758
    private BitSet __isset_bit_vector = new BitSet(1);
9759
 
3430 rajveer 9760
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 9761
    static {
3430 rajveer 9762
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9763
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9764
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9765
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9766
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
9767
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9768
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9769
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9770
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeTransactionStatus_args.class, metaDataMap);
68 ashish 9771
    }
9772
 
9773
    public changeTransactionStatus_args() {
9774
    }
9775
 
9776
    public changeTransactionStatus_args(
9777
      long transactionId,
9778
      TransactionStatus status,
9779
      String description)
9780
    {
9781
      this();
9782
      this.transactionId = transactionId;
9783
      setTransactionIdIsSet(true);
9784
      this.status = status;
9785
      this.description = description;
9786
    }
9787
 
9788
    /**
9789
     * Performs a deep copy on <i>other</i>.
9790
     */
9791
    public changeTransactionStatus_args(changeTransactionStatus_args other) {
9792
      __isset_bit_vector.clear();
9793
      __isset_bit_vector.or(other.__isset_bit_vector);
9794
      this.transactionId = other.transactionId;
9795
      if (other.isSetStatus()) {
9796
        this.status = other.status;
9797
      }
9798
      if (other.isSetDescription()) {
9799
        this.description = other.description;
9800
      }
9801
    }
9802
 
9803
    public changeTransactionStatus_args deepCopy() {
9804
      return new changeTransactionStatus_args(this);
9805
    }
9806
 
3430 rajveer 9807
    @Override
9808
    public void clear() {
9809
      setTransactionIdIsSet(false);
9810
      this.transactionId = 0;
9811
      this.status = null;
9812
      this.description = null;
68 ashish 9813
    }
9814
 
9815
    public long getTransactionId() {
9816
      return this.transactionId;
9817
    }
9818
 
3430 rajveer 9819
    public void setTransactionId(long transactionId) {
68 ashish 9820
      this.transactionId = transactionId;
9821
      setTransactionIdIsSet(true);
9822
    }
9823
 
9824
    public void unsetTransactionId() {
9825
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
9826
    }
9827
 
3430 rajveer 9828
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
68 ashish 9829
    public boolean isSetTransactionId() {
9830
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
9831
    }
9832
 
9833
    public void setTransactionIdIsSet(boolean value) {
9834
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
9835
    }
9836
 
9837
    /**
9838
     * 
9839
     * @see TransactionStatus
9840
     */
9841
    public TransactionStatus getStatus() {
9842
      return this.status;
9843
    }
9844
 
9845
    /**
9846
     * 
9847
     * @see TransactionStatus
9848
     */
3430 rajveer 9849
    public void setStatus(TransactionStatus status) {
68 ashish 9850
      this.status = status;
9851
    }
9852
 
9853
    public void unsetStatus() {
9854
      this.status = null;
9855
    }
9856
 
3430 rajveer 9857
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
68 ashish 9858
    public boolean isSetStatus() {
9859
      return this.status != null;
9860
    }
9861
 
9862
    public void setStatusIsSet(boolean value) {
9863
      if (!value) {
9864
        this.status = null;
9865
      }
9866
    }
9867
 
9868
    public String getDescription() {
9869
      return this.description;
9870
    }
9871
 
3430 rajveer 9872
    public void setDescription(String description) {
68 ashish 9873
      this.description = description;
9874
    }
9875
 
9876
    public void unsetDescription() {
9877
      this.description = null;
9878
    }
9879
 
3430 rajveer 9880
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
68 ashish 9881
    public boolean isSetDescription() {
9882
      return this.description != null;
9883
    }
9884
 
9885
    public void setDescriptionIsSet(boolean value) {
9886
      if (!value) {
9887
        this.description = null;
9888
      }
9889
    }
9890
 
9891
    public void setFieldValue(_Fields field, Object value) {
9892
      switch (field) {
9893
      case TRANSACTION_ID:
9894
        if (value == null) {
9895
          unsetTransactionId();
9896
        } else {
9897
          setTransactionId((Long)value);
9898
        }
9899
        break;
9900
 
9901
      case STATUS:
9902
        if (value == null) {
9903
          unsetStatus();
9904
        } else {
9905
          setStatus((TransactionStatus)value);
9906
        }
9907
        break;
9908
 
9909
      case DESCRIPTION:
9910
        if (value == null) {
9911
          unsetDescription();
9912
        } else {
9913
          setDescription((String)value);
9914
        }
9915
        break;
9916
 
9917
      }
9918
    }
9919
 
9920
    public Object getFieldValue(_Fields field) {
9921
      switch (field) {
9922
      case TRANSACTION_ID:
3430 rajveer 9923
        return Long.valueOf(getTransactionId());
68 ashish 9924
 
9925
      case STATUS:
9926
        return getStatus();
9927
 
9928
      case DESCRIPTION:
9929
        return getDescription();
9930
 
9931
      }
9932
      throw new IllegalStateException();
9933
    }
9934
 
3430 rajveer 9935
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9936
    public boolean isSet(_Fields field) {
9937
      if (field == null) {
9938
        throw new IllegalArgumentException();
9939
      }
68 ashish 9940
 
9941
      switch (field) {
9942
      case TRANSACTION_ID:
9943
        return isSetTransactionId();
9944
      case STATUS:
9945
        return isSetStatus();
9946
      case DESCRIPTION:
9947
        return isSetDescription();
9948
      }
9949
      throw new IllegalStateException();
9950
    }
9951
 
9952
    @Override
9953
    public boolean equals(Object that) {
9954
      if (that == null)
9955
        return false;
9956
      if (that instanceof changeTransactionStatus_args)
9957
        return this.equals((changeTransactionStatus_args)that);
9958
      return false;
9959
    }
9960
 
9961
    public boolean equals(changeTransactionStatus_args that) {
9962
      if (that == null)
9963
        return false;
9964
 
9965
      boolean this_present_transactionId = true;
9966
      boolean that_present_transactionId = true;
9967
      if (this_present_transactionId || that_present_transactionId) {
9968
        if (!(this_present_transactionId && that_present_transactionId))
9969
          return false;
9970
        if (this.transactionId != that.transactionId)
9971
          return false;
9972
      }
9973
 
9974
      boolean this_present_status = true && this.isSetStatus();
9975
      boolean that_present_status = true && that.isSetStatus();
9976
      if (this_present_status || that_present_status) {
9977
        if (!(this_present_status && that_present_status))
9978
          return false;
9979
        if (!this.status.equals(that.status))
9980
          return false;
9981
      }
9982
 
9983
      boolean this_present_description = true && this.isSetDescription();
9984
      boolean that_present_description = true && that.isSetDescription();
9985
      if (this_present_description || that_present_description) {
9986
        if (!(this_present_description && that_present_description))
9987
          return false;
9988
        if (!this.description.equals(that.description))
9989
          return false;
9990
      }
9991
 
9992
      return true;
9993
    }
9994
 
9995
    @Override
9996
    public int hashCode() {
9997
      return 0;
9998
    }
9999
 
10000
    public int compareTo(changeTransactionStatus_args other) {
10001
      if (!getClass().equals(other.getClass())) {
10002
        return getClass().getName().compareTo(other.getClass().getName());
10003
      }
10004
 
10005
      int lastComparison = 0;
10006
      changeTransactionStatus_args typedOther = (changeTransactionStatus_args)other;
10007
 
3430 rajveer 10008
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
68 ashish 10009
      if (lastComparison != 0) {
10010
        return lastComparison;
10011
      }
3430 rajveer 10012
      if (isSetTransactionId()) {
10013
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
10014
        if (lastComparison != 0) {
10015
          return lastComparison;
10016
        }
68 ashish 10017
      }
3430 rajveer 10018
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
68 ashish 10019
      if (lastComparison != 0) {
10020
        return lastComparison;
10021
      }
3430 rajveer 10022
      if (isSetStatus()) {
10023
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
10024
        if (lastComparison != 0) {
10025
          return lastComparison;
10026
        }
68 ashish 10027
      }
3430 rajveer 10028
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
68 ashish 10029
      if (lastComparison != 0) {
10030
        return lastComparison;
10031
      }
3430 rajveer 10032
      if (isSetDescription()) {
10033
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
10034
        if (lastComparison != 0) {
10035
          return lastComparison;
10036
        }
68 ashish 10037
      }
10038
      return 0;
10039
    }
10040
 
3430 rajveer 10041
    public _Fields fieldForId(int fieldId) {
10042
      return _Fields.findByThriftId(fieldId);
10043
    }
10044
 
10045
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10046
      org.apache.thrift.protocol.TField field;
68 ashish 10047
      iprot.readStructBegin();
10048
      while (true)
10049
      {
10050
        field = iprot.readFieldBegin();
3430 rajveer 10051
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 10052
          break;
10053
        }
3430 rajveer 10054
        switch (field.id) {
10055
          case 1: // TRANSACTION_ID
10056
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10057
              this.transactionId = iprot.readI64();
10058
              setTransactionIdIsSet(true);
10059
            } else { 
10060
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10061
            }
10062
            break;
10063
          case 2: // STATUS
10064
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10065
              this.status = TransactionStatus.findByValue(iprot.readI32());
10066
            } else { 
10067
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10068
            }
10069
            break;
10070
          case 3: // DESCRIPTION
10071
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10072
              this.description = iprot.readString();
10073
            } else { 
10074
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10075
            }
10076
            break;
10077
          default:
10078
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 10079
        }
3430 rajveer 10080
        iprot.readFieldEnd();
68 ashish 10081
      }
10082
      iprot.readStructEnd();
10083
      validate();
10084
    }
10085
 
3430 rajveer 10086
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 10087
      validate();
10088
 
10089
      oprot.writeStructBegin(STRUCT_DESC);
10090
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
10091
      oprot.writeI64(this.transactionId);
10092
      oprot.writeFieldEnd();
10093
      if (this.status != null) {
10094
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
10095
        oprot.writeI32(this.status.getValue());
10096
        oprot.writeFieldEnd();
10097
      }
10098
      if (this.description != null) {
10099
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
10100
        oprot.writeString(this.description);
10101
        oprot.writeFieldEnd();
10102
      }
10103
      oprot.writeFieldStop();
10104
      oprot.writeStructEnd();
10105
    }
10106
 
10107
    @Override
10108
    public String toString() {
10109
      StringBuilder sb = new StringBuilder("changeTransactionStatus_args(");
10110
      boolean first = true;
10111
 
10112
      sb.append("transactionId:");
10113
      sb.append(this.transactionId);
10114
      first = false;
10115
      if (!first) sb.append(", ");
10116
      sb.append("status:");
10117
      if (this.status == null) {
10118
        sb.append("null");
10119
      } else {
10120
        sb.append(this.status);
10121
      }
10122
      first = false;
10123
      if (!first) sb.append(", ");
10124
      sb.append("description:");
10125
      if (this.description == null) {
10126
        sb.append("null");
10127
      } else {
10128
        sb.append(this.description);
10129
      }
10130
      first = false;
10131
      sb.append(")");
10132
      return sb.toString();
10133
    }
10134
 
3430 rajveer 10135
    public void validate() throws org.apache.thrift.TException {
68 ashish 10136
      // check for required fields
10137
    }
10138
 
3430 rajveer 10139
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10140
      try {
10141
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10142
      } catch (org.apache.thrift.TException te) {
10143
        throw new java.io.IOException(te);
10144
      }
10145
    }
10146
 
10147
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10148
      try {
10149
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10150
        __isset_bit_vector = new BitSet(1);
10151
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10152
      } catch (org.apache.thrift.TException te) {
10153
        throw new java.io.IOException(te);
10154
      }
10155
    }
10156
 
68 ashish 10157
  }
10158
 
3430 rajveer 10159
  public static class changeTransactionStatus_result implements org.apache.thrift.TBase<changeTransactionStatus_result, changeTransactionStatus_result._Fields>, java.io.Serializable, Cloneable   {
10160
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeTransactionStatus_result");
68 ashish 10161
 
3430 rajveer 10162
    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);
10163
    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);
68 ashish 10164
 
3430 rajveer 10165
    private boolean success; // required
10166
    private TransactionServiceException ex; // required
68 ashish 10167
 
10168
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10169
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 10170
      SUCCESS((short)0, "success"),
10171
      EX((short)1, "ex");
10172
 
10173
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10174
 
10175
      static {
10176
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10177
          byName.put(field.getFieldName(), field);
10178
        }
10179
      }
10180
 
10181
      /**
10182
       * Find the _Fields constant that matches fieldId, or null if its not found.
10183
       */
10184
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10185
        switch(fieldId) {
10186
          case 0: // SUCCESS
10187
            return SUCCESS;
10188
          case 1: // EX
10189
            return EX;
10190
          default:
10191
            return null;
10192
        }
68 ashish 10193
      }
10194
 
10195
      /**
10196
       * Find the _Fields constant that matches fieldId, throwing an exception
10197
       * if it is not found.
10198
       */
10199
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10200
        _Fields fields = findByThriftId(fieldId);
10201
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10202
        return fields;
10203
      }
10204
 
10205
      /**
10206
       * Find the _Fields constant that matches name, or null if its not found.
10207
       */
10208
      public static _Fields findByName(String name) {
10209
        return byName.get(name);
10210
      }
10211
 
10212
      private final short _thriftId;
10213
      private final String _fieldName;
10214
 
10215
      _Fields(short thriftId, String fieldName) {
10216
        _thriftId = thriftId;
10217
        _fieldName = fieldName;
10218
      }
10219
 
10220
      public short getThriftFieldId() {
10221
        return _thriftId;
10222
      }
10223
 
10224
      public String getFieldName() {
10225
        return _fieldName;
10226
      }
10227
    }
10228
 
10229
    // isset id assignments
10230
    private static final int __SUCCESS_ISSET_ID = 0;
10231
    private BitSet __isset_bit_vector = new BitSet(1);
10232
 
3430 rajveer 10233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 10234
    static {
3430 rajveer 10235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10236
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10238
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10239
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10240
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10241
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeTransactionStatus_result.class, metaDataMap);
68 ashish 10242
    }
10243
 
10244
    public changeTransactionStatus_result() {
10245
    }
10246
 
10247
    public changeTransactionStatus_result(
10248
      boolean success,
10249
      TransactionServiceException ex)
10250
    {
10251
      this();
10252
      this.success = success;
10253
      setSuccessIsSet(true);
10254
      this.ex = ex;
10255
    }
10256
 
10257
    /**
10258
     * Performs a deep copy on <i>other</i>.
10259
     */
10260
    public changeTransactionStatus_result(changeTransactionStatus_result other) {
10261
      __isset_bit_vector.clear();
10262
      __isset_bit_vector.or(other.__isset_bit_vector);
10263
      this.success = other.success;
10264
      if (other.isSetEx()) {
10265
        this.ex = new TransactionServiceException(other.ex);
10266
      }
10267
    }
10268
 
10269
    public changeTransactionStatus_result deepCopy() {
10270
      return new changeTransactionStatus_result(this);
10271
    }
10272
 
3430 rajveer 10273
    @Override
10274
    public void clear() {
10275
      setSuccessIsSet(false);
10276
      this.success = false;
10277
      this.ex = null;
68 ashish 10278
    }
10279
 
10280
    public boolean isSuccess() {
10281
      return this.success;
10282
    }
10283
 
3430 rajveer 10284
    public void setSuccess(boolean success) {
68 ashish 10285
      this.success = success;
10286
      setSuccessIsSet(true);
10287
    }
10288
 
10289
    public void unsetSuccess() {
10290
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10291
    }
10292
 
3430 rajveer 10293
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 10294
    public boolean isSetSuccess() {
10295
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10296
    }
10297
 
10298
    public void setSuccessIsSet(boolean value) {
10299
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10300
    }
10301
 
10302
    public TransactionServiceException getEx() {
10303
      return this.ex;
10304
    }
10305
 
3430 rajveer 10306
    public void setEx(TransactionServiceException ex) {
68 ashish 10307
      this.ex = ex;
10308
    }
10309
 
10310
    public void unsetEx() {
10311
      this.ex = null;
10312
    }
10313
 
3430 rajveer 10314
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 10315
    public boolean isSetEx() {
10316
      return this.ex != null;
10317
    }
10318
 
10319
    public void setExIsSet(boolean value) {
10320
      if (!value) {
10321
        this.ex = null;
10322
      }
10323
    }
10324
 
10325
    public void setFieldValue(_Fields field, Object value) {
10326
      switch (field) {
10327
      case SUCCESS:
10328
        if (value == null) {
10329
          unsetSuccess();
10330
        } else {
10331
          setSuccess((Boolean)value);
10332
        }
10333
        break;
10334
 
10335
      case EX:
10336
        if (value == null) {
10337
          unsetEx();
10338
        } else {
10339
          setEx((TransactionServiceException)value);
10340
        }
10341
        break;
10342
 
10343
      }
10344
    }
10345
 
10346
    public Object getFieldValue(_Fields field) {
10347
      switch (field) {
10348
      case SUCCESS:
3430 rajveer 10349
        return Boolean.valueOf(isSuccess());
68 ashish 10350
 
10351
      case EX:
10352
        return getEx();
10353
 
10354
      }
10355
      throw new IllegalStateException();
10356
    }
10357
 
3430 rajveer 10358
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10359
    public boolean isSet(_Fields field) {
10360
      if (field == null) {
10361
        throw new IllegalArgumentException();
10362
      }
68 ashish 10363
 
10364
      switch (field) {
10365
      case SUCCESS:
10366
        return isSetSuccess();
10367
      case EX:
10368
        return isSetEx();
10369
      }
10370
      throw new IllegalStateException();
10371
    }
10372
 
10373
    @Override
10374
    public boolean equals(Object that) {
10375
      if (that == null)
10376
        return false;
10377
      if (that instanceof changeTransactionStatus_result)
10378
        return this.equals((changeTransactionStatus_result)that);
10379
      return false;
10380
    }
10381
 
10382
    public boolean equals(changeTransactionStatus_result that) {
10383
      if (that == null)
10384
        return false;
10385
 
10386
      boolean this_present_success = true;
10387
      boolean that_present_success = true;
10388
      if (this_present_success || that_present_success) {
10389
        if (!(this_present_success && that_present_success))
10390
          return false;
10391
        if (this.success != that.success)
10392
          return false;
10393
      }
10394
 
10395
      boolean this_present_ex = true && this.isSetEx();
10396
      boolean that_present_ex = true && that.isSetEx();
10397
      if (this_present_ex || that_present_ex) {
10398
        if (!(this_present_ex && that_present_ex))
10399
          return false;
10400
        if (!this.ex.equals(that.ex))
10401
          return false;
10402
      }
10403
 
10404
      return true;
10405
    }
10406
 
10407
    @Override
10408
    public int hashCode() {
10409
      return 0;
10410
    }
10411
 
10412
    public int compareTo(changeTransactionStatus_result other) {
10413
      if (!getClass().equals(other.getClass())) {
10414
        return getClass().getName().compareTo(other.getClass().getName());
10415
      }
10416
 
10417
      int lastComparison = 0;
10418
      changeTransactionStatus_result typedOther = (changeTransactionStatus_result)other;
10419
 
3430 rajveer 10420
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 10421
      if (lastComparison != 0) {
10422
        return lastComparison;
10423
      }
3430 rajveer 10424
      if (isSetSuccess()) {
10425
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10426
        if (lastComparison != 0) {
10427
          return lastComparison;
10428
        }
68 ashish 10429
      }
3430 rajveer 10430
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 10431
      if (lastComparison != 0) {
10432
        return lastComparison;
10433
      }
3430 rajveer 10434
      if (isSetEx()) {
10435
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
10436
        if (lastComparison != 0) {
10437
          return lastComparison;
10438
        }
68 ashish 10439
      }
10440
      return 0;
10441
    }
10442
 
3430 rajveer 10443
    public _Fields fieldForId(int fieldId) {
10444
      return _Fields.findByThriftId(fieldId);
10445
    }
10446
 
10447
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10448
      org.apache.thrift.protocol.TField field;
68 ashish 10449
      iprot.readStructBegin();
10450
      while (true)
10451
      {
10452
        field = iprot.readFieldBegin();
3430 rajveer 10453
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 10454
          break;
10455
        }
3430 rajveer 10456
        switch (field.id) {
10457
          case 0: // SUCCESS
10458
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10459
              this.success = iprot.readBool();
10460
              setSuccessIsSet(true);
10461
            } else { 
10462
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10463
            }
10464
            break;
10465
          case 1: // EX
10466
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10467
              this.ex = new TransactionServiceException();
10468
              this.ex.read(iprot);
10469
            } else { 
10470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10471
            }
10472
            break;
10473
          default:
10474
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 10475
        }
3430 rajveer 10476
        iprot.readFieldEnd();
68 ashish 10477
      }
10478
      iprot.readStructEnd();
10479
      validate();
10480
    }
10481
 
3430 rajveer 10482
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 10483
      oprot.writeStructBegin(STRUCT_DESC);
10484
 
10485
      if (this.isSetSuccess()) {
10486
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10487
        oprot.writeBool(this.success);
10488
        oprot.writeFieldEnd();
10489
      } else if (this.isSetEx()) {
10490
        oprot.writeFieldBegin(EX_FIELD_DESC);
10491
        this.ex.write(oprot);
10492
        oprot.writeFieldEnd();
10493
      }
10494
      oprot.writeFieldStop();
10495
      oprot.writeStructEnd();
10496
    }
10497
 
10498
    @Override
10499
    public String toString() {
10500
      StringBuilder sb = new StringBuilder("changeTransactionStatus_result(");
10501
      boolean first = true;
10502
 
10503
      sb.append("success:");
10504
      sb.append(this.success);
10505
      first = false;
10506
      if (!first) sb.append(", ");
10507
      sb.append("ex:");
10508
      if (this.ex == null) {
10509
        sb.append("null");
10510
      } else {
10511
        sb.append(this.ex);
10512
      }
10513
      first = false;
10514
      sb.append(")");
10515
      return sb.toString();
10516
    }
10517
 
3430 rajveer 10518
    public void validate() throws org.apache.thrift.TException {
68 ashish 10519
      // check for required fields
10520
    }
10521
 
3430 rajveer 10522
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10523
      try {
10524
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10525
      } catch (org.apache.thrift.TException te) {
10526
        throw new java.io.IOException(te);
10527
      }
10528
    }
10529
 
10530
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10531
      try {
10532
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10533
      } catch (org.apache.thrift.TException te) {
10534
        throw new java.io.IOException(te);
10535
      }
10536
    }
10537
 
68 ashish 10538
  }
10539
 
3430 rajveer 10540
  public static class enqueueTransactionInfoEmail_args implements org.apache.thrift.TBase<enqueueTransactionInfoEmail_args, enqueueTransactionInfoEmail_args._Fields>, java.io.Serializable, Cloneable   {
10541
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enqueueTransactionInfoEmail_args");
1382 varun.gupt 10542
 
3430 rajveer 10543
    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);
1382 varun.gupt 10544
 
3430 rajveer 10545
    private long transactionId; // required
1382 varun.gupt 10546
 
10547
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10548
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 10549
      TRANSACTION_ID((short)1, "transactionId");
10550
 
10551
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10552
 
10553
      static {
10554
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10555
          byName.put(field.getFieldName(), field);
10556
        }
10557
      }
10558
 
10559
      /**
10560
       * Find the _Fields constant that matches fieldId, or null if its not found.
10561
       */
10562
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10563
        switch(fieldId) {
10564
          case 1: // TRANSACTION_ID
10565
            return TRANSACTION_ID;
10566
          default:
10567
            return null;
10568
        }
1382 varun.gupt 10569
      }
10570
 
10571
      /**
10572
       * Find the _Fields constant that matches fieldId, throwing an exception
10573
       * if it is not found.
10574
       */
10575
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10576
        _Fields fields = findByThriftId(fieldId);
10577
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10578
        return fields;
10579
      }
10580
 
10581
      /**
10582
       * Find the _Fields constant that matches name, or null if its not found.
10583
       */
10584
      public static _Fields findByName(String name) {
10585
        return byName.get(name);
10586
      }
10587
 
10588
      private final short _thriftId;
10589
      private final String _fieldName;
10590
 
10591
      _Fields(short thriftId, String fieldName) {
10592
        _thriftId = thriftId;
10593
        _fieldName = fieldName;
10594
      }
10595
 
10596
      public short getThriftFieldId() {
10597
        return _thriftId;
10598
      }
10599
 
10600
      public String getFieldName() {
10601
        return _fieldName;
10602
      }
10603
    }
10604
 
10605
    // isset id assignments
10606
    private static final int __TRANSACTIONID_ISSET_ID = 0;
10607
    private BitSet __isset_bit_vector = new BitSet(1);
10608
 
3430 rajveer 10609
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 10610
    static {
3430 rajveer 10611
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10612
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10613
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10614
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10615
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enqueueTransactionInfoEmail_args.class, metaDataMap);
1382 varun.gupt 10616
    }
10617
 
1398 varun.gupt 10618
    public enqueueTransactionInfoEmail_args() {
1382 varun.gupt 10619
    }
10620
 
1398 varun.gupt 10621
    public enqueueTransactionInfoEmail_args(
1382 varun.gupt 10622
      long transactionId)
10623
    {
10624
      this();
10625
      this.transactionId = transactionId;
10626
      setTransactionIdIsSet(true);
10627
    }
10628
 
10629
    /**
10630
     * Performs a deep copy on <i>other</i>.
10631
     */
1398 varun.gupt 10632
    public enqueueTransactionInfoEmail_args(enqueueTransactionInfoEmail_args other) {
1382 varun.gupt 10633
      __isset_bit_vector.clear();
10634
      __isset_bit_vector.or(other.__isset_bit_vector);
10635
      this.transactionId = other.transactionId;
10636
    }
10637
 
1398 varun.gupt 10638
    public enqueueTransactionInfoEmail_args deepCopy() {
10639
      return new enqueueTransactionInfoEmail_args(this);
1382 varun.gupt 10640
    }
10641
 
3430 rajveer 10642
    @Override
10643
    public void clear() {
10644
      setTransactionIdIsSet(false);
10645
      this.transactionId = 0;
1382 varun.gupt 10646
    }
10647
 
10648
    public long getTransactionId() {
10649
      return this.transactionId;
10650
    }
10651
 
3430 rajveer 10652
    public void setTransactionId(long transactionId) {
1382 varun.gupt 10653
      this.transactionId = transactionId;
10654
      setTransactionIdIsSet(true);
10655
    }
10656
 
10657
    public void unsetTransactionId() {
10658
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
10659
    }
10660
 
3430 rajveer 10661
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
1382 varun.gupt 10662
    public boolean isSetTransactionId() {
10663
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
10664
    }
10665
 
10666
    public void setTransactionIdIsSet(boolean value) {
10667
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
10668
    }
10669
 
10670
    public void setFieldValue(_Fields field, Object value) {
10671
      switch (field) {
10672
      case TRANSACTION_ID:
10673
        if (value == null) {
10674
          unsetTransactionId();
10675
        } else {
10676
          setTransactionId((Long)value);
10677
        }
10678
        break;
10679
 
10680
      }
10681
    }
10682
 
10683
    public Object getFieldValue(_Fields field) {
10684
      switch (field) {
10685
      case TRANSACTION_ID:
3430 rajveer 10686
        return Long.valueOf(getTransactionId());
1382 varun.gupt 10687
 
10688
      }
10689
      throw new IllegalStateException();
10690
    }
10691
 
3430 rajveer 10692
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10693
    public boolean isSet(_Fields field) {
10694
      if (field == null) {
10695
        throw new IllegalArgumentException();
10696
      }
1382 varun.gupt 10697
 
10698
      switch (field) {
10699
      case TRANSACTION_ID:
10700
        return isSetTransactionId();
10701
      }
10702
      throw new IllegalStateException();
10703
    }
10704
 
10705
    @Override
10706
    public boolean equals(Object that) {
10707
      if (that == null)
10708
        return false;
1398 varun.gupt 10709
      if (that instanceof enqueueTransactionInfoEmail_args)
10710
        return this.equals((enqueueTransactionInfoEmail_args)that);
1382 varun.gupt 10711
      return false;
10712
    }
10713
 
1398 varun.gupt 10714
    public boolean equals(enqueueTransactionInfoEmail_args that) {
1382 varun.gupt 10715
      if (that == null)
10716
        return false;
10717
 
10718
      boolean this_present_transactionId = true;
10719
      boolean that_present_transactionId = true;
10720
      if (this_present_transactionId || that_present_transactionId) {
10721
        if (!(this_present_transactionId && that_present_transactionId))
10722
          return false;
10723
        if (this.transactionId != that.transactionId)
10724
          return false;
10725
      }
10726
 
10727
      return true;
10728
    }
10729
 
10730
    @Override
10731
    public int hashCode() {
10732
      return 0;
10733
    }
10734
 
1398 varun.gupt 10735
    public int compareTo(enqueueTransactionInfoEmail_args other) {
1382 varun.gupt 10736
      if (!getClass().equals(other.getClass())) {
10737
        return getClass().getName().compareTo(other.getClass().getName());
10738
      }
10739
 
10740
      int lastComparison = 0;
1398 varun.gupt 10741
      enqueueTransactionInfoEmail_args typedOther = (enqueueTransactionInfoEmail_args)other;
1382 varun.gupt 10742
 
3430 rajveer 10743
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
1382 varun.gupt 10744
      if (lastComparison != 0) {
10745
        return lastComparison;
10746
      }
3430 rajveer 10747
      if (isSetTransactionId()) {
10748
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
10749
        if (lastComparison != 0) {
10750
          return lastComparison;
10751
        }
1382 varun.gupt 10752
      }
10753
      return 0;
10754
    }
10755
 
3430 rajveer 10756
    public _Fields fieldForId(int fieldId) {
10757
      return _Fields.findByThriftId(fieldId);
10758
    }
10759
 
10760
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10761
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 10762
      iprot.readStructBegin();
10763
      while (true)
10764
      {
10765
        field = iprot.readFieldBegin();
3430 rajveer 10766
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 10767
          break;
10768
        }
3430 rajveer 10769
        switch (field.id) {
10770
          case 1: // TRANSACTION_ID
10771
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10772
              this.transactionId = iprot.readI64();
10773
              setTransactionIdIsSet(true);
10774
            } else { 
10775
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10776
            }
10777
            break;
10778
          default:
10779
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 10780
        }
3430 rajveer 10781
        iprot.readFieldEnd();
1382 varun.gupt 10782
      }
10783
      iprot.readStructEnd();
10784
      validate();
10785
    }
10786
 
3430 rajveer 10787
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 10788
      validate();
10789
 
10790
      oprot.writeStructBegin(STRUCT_DESC);
10791
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
10792
      oprot.writeI64(this.transactionId);
10793
      oprot.writeFieldEnd();
10794
      oprot.writeFieldStop();
10795
      oprot.writeStructEnd();
10796
    }
10797
 
10798
    @Override
10799
    public String toString() {
1398 varun.gupt 10800
      StringBuilder sb = new StringBuilder("enqueueTransactionInfoEmail_args(");
1382 varun.gupt 10801
      boolean first = true;
10802
 
10803
      sb.append("transactionId:");
10804
      sb.append(this.transactionId);
10805
      first = false;
10806
      sb.append(")");
10807
      return sb.toString();
10808
    }
10809
 
3430 rajveer 10810
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 10811
      // check for required fields
10812
    }
10813
 
3430 rajveer 10814
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10815
      try {
10816
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10817
      } catch (org.apache.thrift.TException te) {
10818
        throw new java.io.IOException(te);
10819
      }
10820
    }
10821
 
10822
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10823
      try {
10824
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10825
        __isset_bit_vector = new BitSet(1);
10826
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10827
      } catch (org.apache.thrift.TException te) {
10828
        throw new java.io.IOException(te);
10829
      }
10830
    }
10831
 
1382 varun.gupt 10832
  }
10833
 
3430 rajveer 10834
  public static class enqueueTransactionInfoEmail_result implements org.apache.thrift.TBase<enqueueTransactionInfoEmail_result, enqueueTransactionInfoEmail_result._Fields>, java.io.Serializable, Cloneable   {
10835
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enqueueTransactionInfoEmail_result");
1382 varun.gupt 10836
 
3430 rajveer 10837
    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);
10838
    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);
1382 varun.gupt 10839
 
3430 rajveer 10840
    private boolean success; // required
10841
    private TransactionServiceException ex; // required
1382 varun.gupt 10842
 
10843
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10844
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 10845
      SUCCESS((short)0, "success"),
10846
      EX((short)1, "ex");
10847
 
10848
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10849
 
10850
      static {
10851
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10852
          byName.put(field.getFieldName(), field);
10853
        }
10854
      }
10855
 
10856
      /**
10857
       * Find the _Fields constant that matches fieldId, or null if its not found.
10858
       */
10859
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10860
        switch(fieldId) {
10861
          case 0: // SUCCESS
10862
            return SUCCESS;
10863
          case 1: // EX
10864
            return EX;
10865
          default:
10866
            return null;
10867
        }
1382 varun.gupt 10868
      }
10869
 
10870
      /**
10871
       * Find the _Fields constant that matches fieldId, throwing an exception
10872
       * if it is not found.
10873
       */
10874
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10875
        _Fields fields = findByThriftId(fieldId);
10876
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10877
        return fields;
10878
      }
10879
 
10880
      /**
10881
       * Find the _Fields constant that matches name, or null if its not found.
10882
       */
10883
      public static _Fields findByName(String name) {
10884
        return byName.get(name);
10885
      }
10886
 
10887
      private final short _thriftId;
10888
      private final String _fieldName;
10889
 
10890
      _Fields(short thriftId, String fieldName) {
10891
        _thriftId = thriftId;
10892
        _fieldName = fieldName;
10893
      }
10894
 
10895
      public short getThriftFieldId() {
10896
        return _thriftId;
10897
      }
10898
 
10899
      public String getFieldName() {
10900
        return _fieldName;
10901
      }
10902
    }
10903
 
10904
    // isset id assignments
10905
    private static final int __SUCCESS_ISSET_ID = 0;
10906
    private BitSet __isset_bit_vector = new BitSet(1);
10907
 
3430 rajveer 10908
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 10909
    static {
3430 rajveer 10910
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10911
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10912
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10913
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10914
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10915
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10916
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enqueueTransactionInfoEmail_result.class, metaDataMap);
1382 varun.gupt 10917
    }
10918
 
1398 varun.gupt 10919
    public enqueueTransactionInfoEmail_result() {
1382 varun.gupt 10920
    }
10921
 
1398 varun.gupt 10922
    public enqueueTransactionInfoEmail_result(
1382 varun.gupt 10923
      boolean success,
10924
      TransactionServiceException ex)
10925
    {
10926
      this();
10927
      this.success = success;
10928
      setSuccessIsSet(true);
10929
      this.ex = ex;
10930
    }
10931
 
10932
    /**
10933
     * Performs a deep copy on <i>other</i>.
10934
     */
1398 varun.gupt 10935
    public enqueueTransactionInfoEmail_result(enqueueTransactionInfoEmail_result other) {
1382 varun.gupt 10936
      __isset_bit_vector.clear();
10937
      __isset_bit_vector.or(other.__isset_bit_vector);
10938
      this.success = other.success;
10939
      if (other.isSetEx()) {
10940
        this.ex = new TransactionServiceException(other.ex);
10941
      }
10942
    }
10943
 
1398 varun.gupt 10944
    public enqueueTransactionInfoEmail_result deepCopy() {
10945
      return new enqueueTransactionInfoEmail_result(this);
1382 varun.gupt 10946
    }
10947
 
3430 rajveer 10948
    @Override
10949
    public void clear() {
10950
      setSuccessIsSet(false);
10951
      this.success = false;
10952
      this.ex = null;
1382 varun.gupt 10953
    }
10954
 
10955
    public boolean isSuccess() {
10956
      return this.success;
10957
    }
10958
 
3430 rajveer 10959
    public void setSuccess(boolean success) {
1382 varun.gupt 10960
      this.success = success;
10961
      setSuccessIsSet(true);
10962
    }
10963
 
10964
    public void unsetSuccess() {
10965
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10966
    }
10967
 
3430 rajveer 10968
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1382 varun.gupt 10969
    public boolean isSetSuccess() {
10970
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10971
    }
10972
 
10973
    public void setSuccessIsSet(boolean value) {
10974
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10975
    }
10976
 
10977
    public TransactionServiceException getEx() {
10978
      return this.ex;
10979
    }
10980
 
3430 rajveer 10981
    public void setEx(TransactionServiceException ex) {
1382 varun.gupt 10982
      this.ex = ex;
10983
    }
10984
 
10985
    public void unsetEx() {
10986
      this.ex = null;
10987
    }
10988
 
3430 rajveer 10989
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1382 varun.gupt 10990
    public boolean isSetEx() {
10991
      return this.ex != null;
10992
    }
10993
 
10994
    public void setExIsSet(boolean value) {
10995
      if (!value) {
10996
        this.ex = null;
10997
      }
10998
    }
10999
 
11000
    public void setFieldValue(_Fields field, Object value) {
11001
      switch (field) {
11002
      case SUCCESS:
11003
        if (value == null) {
11004
          unsetSuccess();
11005
        } else {
11006
          setSuccess((Boolean)value);
11007
        }
11008
        break;
11009
 
11010
      case EX:
11011
        if (value == null) {
11012
          unsetEx();
11013
        } else {
11014
          setEx((TransactionServiceException)value);
11015
        }
11016
        break;
11017
 
11018
      }
11019
    }
11020
 
11021
    public Object getFieldValue(_Fields field) {
11022
      switch (field) {
11023
      case SUCCESS:
3430 rajveer 11024
        return Boolean.valueOf(isSuccess());
1382 varun.gupt 11025
 
11026
      case EX:
11027
        return getEx();
11028
 
11029
      }
11030
      throw new IllegalStateException();
11031
    }
11032
 
3430 rajveer 11033
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11034
    public boolean isSet(_Fields field) {
11035
      if (field == null) {
11036
        throw new IllegalArgumentException();
11037
      }
1382 varun.gupt 11038
 
11039
      switch (field) {
11040
      case SUCCESS:
11041
        return isSetSuccess();
11042
      case EX:
11043
        return isSetEx();
11044
      }
11045
      throw new IllegalStateException();
11046
    }
11047
 
11048
    @Override
11049
    public boolean equals(Object that) {
11050
      if (that == null)
11051
        return false;
1398 varun.gupt 11052
      if (that instanceof enqueueTransactionInfoEmail_result)
11053
        return this.equals((enqueueTransactionInfoEmail_result)that);
1382 varun.gupt 11054
      return false;
11055
    }
11056
 
1398 varun.gupt 11057
    public boolean equals(enqueueTransactionInfoEmail_result that) {
1382 varun.gupt 11058
      if (that == null)
11059
        return false;
11060
 
11061
      boolean this_present_success = true;
11062
      boolean that_present_success = true;
11063
      if (this_present_success || that_present_success) {
11064
        if (!(this_present_success && that_present_success))
11065
          return false;
11066
        if (this.success != that.success)
11067
          return false;
11068
      }
11069
 
11070
      boolean this_present_ex = true && this.isSetEx();
11071
      boolean that_present_ex = true && that.isSetEx();
11072
      if (this_present_ex || that_present_ex) {
11073
        if (!(this_present_ex && that_present_ex))
11074
          return false;
11075
        if (!this.ex.equals(that.ex))
11076
          return false;
11077
      }
11078
 
11079
      return true;
11080
    }
11081
 
11082
    @Override
11083
    public int hashCode() {
11084
      return 0;
11085
    }
11086
 
1398 varun.gupt 11087
    public int compareTo(enqueueTransactionInfoEmail_result other) {
1382 varun.gupt 11088
      if (!getClass().equals(other.getClass())) {
11089
        return getClass().getName().compareTo(other.getClass().getName());
11090
      }
11091
 
11092
      int lastComparison = 0;
1398 varun.gupt 11093
      enqueueTransactionInfoEmail_result typedOther = (enqueueTransactionInfoEmail_result)other;
1382 varun.gupt 11094
 
3430 rajveer 11095
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1382 varun.gupt 11096
      if (lastComparison != 0) {
11097
        return lastComparison;
11098
      }
3430 rajveer 11099
      if (isSetSuccess()) {
11100
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11101
        if (lastComparison != 0) {
11102
          return lastComparison;
11103
        }
1382 varun.gupt 11104
      }
3430 rajveer 11105
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1382 varun.gupt 11106
      if (lastComparison != 0) {
11107
        return lastComparison;
11108
      }
3430 rajveer 11109
      if (isSetEx()) {
11110
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
11111
        if (lastComparison != 0) {
11112
          return lastComparison;
11113
        }
1382 varun.gupt 11114
      }
11115
      return 0;
11116
    }
11117
 
3430 rajveer 11118
    public _Fields fieldForId(int fieldId) {
11119
      return _Fields.findByThriftId(fieldId);
11120
    }
11121
 
11122
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11123
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 11124
      iprot.readStructBegin();
11125
      while (true)
11126
      {
11127
        field = iprot.readFieldBegin();
3430 rajveer 11128
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 11129
          break;
11130
        }
3430 rajveer 11131
        switch (field.id) {
11132
          case 0: // SUCCESS
11133
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11134
              this.success = iprot.readBool();
11135
              setSuccessIsSet(true);
11136
            } else { 
11137
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11138
            }
11139
            break;
11140
          case 1: // EX
11141
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11142
              this.ex = new TransactionServiceException();
11143
              this.ex.read(iprot);
11144
            } else { 
11145
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11146
            }
11147
            break;
11148
          default:
11149
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 11150
        }
3430 rajveer 11151
        iprot.readFieldEnd();
1382 varun.gupt 11152
      }
11153
      iprot.readStructEnd();
11154
      validate();
11155
    }
11156
 
3430 rajveer 11157
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 11158
      oprot.writeStructBegin(STRUCT_DESC);
11159
 
11160
      if (this.isSetSuccess()) {
11161
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11162
        oprot.writeBool(this.success);
11163
        oprot.writeFieldEnd();
11164
      } else if (this.isSetEx()) {
11165
        oprot.writeFieldBegin(EX_FIELD_DESC);
11166
        this.ex.write(oprot);
11167
        oprot.writeFieldEnd();
11168
      }
11169
      oprot.writeFieldStop();
11170
      oprot.writeStructEnd();
11171
    }
11172
 
11173
    @Override
11174
    public String toString() {
1398 varun.gupt 11175
      StringBuilder sb = new StringBuilder("enqueueTransactionInfoEmail_result(");
1382 varun.gupt 11176
      boolean first = true;
11177
 
11178
      sb.append("success:");
11179
      sb.append(this.success);
11180
      first = false;
11181
      if (!first) sb.append(", ");
11182
      sb.append("ex:");
11183
      if (this.ex == null) {
11184
        sb.append("null");
11185
      } else {
11186
        sb.append(this.ex);
11187
      }
11188
      first = false;
11189
      sb.append(")");
11190
      return sb.toString();
11191
    }
11192
 
3430 rajveer 11193
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 11194
      // check for required fields
11195
    }
11196
 
3430 rajveer 11197
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11198
      try {
11199
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11200
      } catch (org.apache.thrift.TException te) {
11201
        throw new java.io.IOException(te);
11202
      }
11203
    }
11204
 
11205
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11206
      try {
11207
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11208
      } catch (org.apache.thrift.TException te) {
11209
        throw new java.io.IOException(te);
11210
      }
11211
    }
11212
 
1382 varun.gupt 11213
  }
11214
 
3430 rajveer 11215
  public static class getAllOrders_args implements org.apache.thrift.TBase<getAllOrders_args, getAllOrders_args._Fields>, java.io.Serializable, Cloneable   {
11216
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrders_args");
68 ashish 11217
 
3430 rajveer 11218
    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);
11219
    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);
11220
    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);
11221
    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);
68 ashish 11222
 
3430 rajveer 11223
    private OrderStatus status; // required
11224
    private long from_date; // required
11225
    private long to_date; // required
11226
    private long warehouse_id; // required
68 ashish 11227
 
11228
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11229
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
483 rajveer 11230
      /**
11231
       * 
11232
       * @see OrderStatus
11233
       */
11234
      STATUS((short)1, "status"),
11235
      FROM_DATE((short)2, "from_date"),
11236
      TO_DATE((short)3, "to_date"),
11237
      WAREHOUSE_ID((short)4, "warehouse_id");
68 ashish 11238
 
11239
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11240
 
11241
      static {
11242
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11243
          byName.put(field.getFieldName(), field);
11244
        }
11245
      }
11246
 
11247
      /**
11248
       * Find the _Fields constant that matches fieldId, or null if its not found.
11249
       */
11250
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11251
        switch(fieldId) {
11252
          case 1: // STATUS
11253
            return STATUS;
11254
          case 2: // FROM_DATE
11255
            return FROM_DATE;
11256
          case 3: // TO_DATE
11257
            return TO_DATE;
11258
          case 4: // WAREHOUSE_ID
11259
            return WAREHOUSE_ID;
11260
          default:
11261
            return null;
11262
        }
68 ashish 11263
      }
11264
 
11265
      /**
11266
       * Find the _Fields constant that matches fieldId, throwing an exception
11267
       * if it is not found.
11268
       */
11269
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11270
        _Fields fields = findByThriftId(fieldId);
11271
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11272
        return fields;
11273
      }
11274
 
11275
      /**
11276
       * Find the _Fields constant that matches name, or null if its not found.
11277
       */
11278
      public static _Fields findByName(String name) {
11279
        return byName.get(name);
11280
      }
11281
 
11282
      private final short _thriftId;
11283
      private final String _fieldName;
11284
 
11285
      _Fields(short thriftId, String fieldName) {
11286
        _thriftId = thriftId;
11287
        _fieldName = fieldName;
11288
      }
11289
 
11290
      public short getThriftFieldId() {
11291
        return _thriftId;
11292
      }
11293
 
11294
      public String getFieldName() {
11295
        return _fieldName;
11296
      }
11297
    }
11298
 
11299
    // isset id assignments
483 rajveer 11300
    private static final int __FROM_DATE_ISSET_ID = 0;
11301
    private static final int __TO_DATE_ISSET_ID = 1;
11302
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
11303
    private BitSet __isset_bit_vector = new BitSet(3);
68 ashish 11304
 
3430 rajveer 11305
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 11306
    static {
3430 rajveer 11307
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11308
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11309
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
11310
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("from_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11311
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11312
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("to_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11313
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11314
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11315
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11316
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11317
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrders_args.class, metaDataMap);
68 ashish 11318
    }
11319
 
483 rajveer 11320
    public getAllOrders_args() {
68 ashish 11321
    }
11322
 
483 rajveer 11323
    public getAllOrders_args(
11324
      OrderStatus status,
11325
      long from_date,
11326
      long to_date,
11327
      long warehouse_id)
68 ashish 11328
    {
11329
      this();
483 rajveer 11330
      this.status = status;
11331
      this.from_date = from_date;
11332
      setFrom_dateIsSet(true);
11333
      this.to_date = to_date;
11334
      setTo_dateIsSet(true);
11335
      this.warehouse_id = warehouse_id;
11336
      setWarehouse_idIsSet(true);
68 ashish 11337
    }
11338
 
11339
    /**
11340
     * Performs a deep copy on <i>other</i>.
11341
     */
483 rajveer 11342
    public getAllOrders_args(getAllOrders_args other) {
68 ashish 11343
      __isset_bit_vector.clear();
11344
      __isset_bit_vector.or(other.__isset_bit_vector);
483 rajveer 11345
      if (other.isSetStatus()) {
11346
        this.status = other.status;
11347
      }
11348
      this.from_date = other.from_date;
11349
      this.to_date = other.to_date;
11350
      this.warehouse_id = other.warehouse_id;
68 ashish 11351
    }
11352
 
483 rajveer 11353
    public getAllOrders_args deepCopy() {
11354
      return new getAllOrders_args(this);
68 ashish 11355
    }
11356
 
3430 rajveer 11357
    @Override
11358
    public void clear() {
11359
      this.status = null;
11360
      setFrom_dateIsSet(false);
11361
      this.from_date = 0;
11362
      setTo_dateIsSet(false);
11363
      this.to_date = 0;
11364
      setWarehouse_idIsSet(false);
11365
      this.warehouse_id = 0;
68 ashish 11366
    }
11367
 
483 rajveer 11368
    /**
11369
     * 
11370
     * @see OrderStatus
11371
     */
11372
    public OrderStatus getStatus() {
11373
      return this.status;
68 ashish 11374
    }
11375
 
483 rajveer 11376
    /**
11377
     * 
11378
     * @see OrderStatus
11379
     */
3430 rajveer 11380
    public void setStatus(OrderStatus status) {
483 rajveer 11381
      this.status = status;
68 ashish 11382
    }
11383
 
483 rajveer 11384
    public void unsetStatus() {
11385
      this.status = null;
68 ashish 11386
    }
11387
 
3430 rajveer 11388
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
483 rajveer 11389
    public boolean isSetStatus() {
11390
      return this.status != null;
68 ashish 11391
    }
11392
 
483 rajveer 11393
    public void setStatusIsSet(boolean value) {
11394
      if (!value) {
11395
        this.status = null;
68 ashish 11396
      }
11397
    }
11398
 
483 rajveer 11399
    public long getFrom_date() {
11400
      return this.from_date;
68 ashish 11401
    }
11402
 
3430 rajveer 11403
    public void setFrom_date(long from_date) {
483 rajveer 11404
      this.from_date = from_date;
11405
      setFrom_dateIsSet(true);
68 ashish 11406
    }
11407
 
483 rajveer 11408
    public void unsetFrom_date() {
11409
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
68 ashish 11410
    }
11411
 
3430 rajveer 11412
    /** Returns true if field from_date is set (has been assigned a value) and false otherwise */
483 rajveer 11413
    public boolean isSetFrom_date() {
11414
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
68 ashish 11415
    }
11416
 
483 rajveer 11417
    public void setFrom_dateIsSet(boolean value) {
11418
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
68 ashish 11419
    }
11420
 
483 rajveer 11421
    public long getTo_date() {
11422
      return this.to_date;
68 ashish 11423
    }
11424
 
3430 rajveer 11425
    public void setTo_date(long to_date) {
483 rajveer 11426
      this.to_date = to_date;
11427
      setTo_dateIsSet(true);
68 ashish 11428
    }
11429
 
483 rajveer 11430
    public void unsetTo_date() {
11431
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
68 ashish 11432
    }
11433
 
3430 rajveer 11434
    /** Returns true if field to_date is set (has been assigned a value) and false otherwise */
483 rajveer 11435
    public boolean isSetTo_date() {
11436
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
68 ashish 11437
    }
11438
 
483 rajveer 11439
    public void setTo_dateIsSet(boolean value) {
11440
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
68 ashish 11441
    }
11442
 
483 rajveer 11443
    public long getWarehouse_id() {
11444
      return this.warehouse_id;
68 ashish 11445
    }
11446
 
3430 rajveer 11447
    public void setWarehouse_id(long warehouse_id) {
483 rajveer 11448
      this.warehouse_id = warehouse_id;
11449
      setWarehouse_idIsSet(true);
68 ashish 11450
    }
11451
 
483 rajveer 11452
    public void unsetWarehouse_id() {
11453
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
68 ashish 11454
    }
11455
 
3430 rajveer 11456
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
483 rajveer 11457
    public boolean isSetWarehouse_id() {
11458
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
68 ashish 11459
    }
11460
 
483 rajveer 11461
    public void setWarehouse_idIsSet(boolean value) {
11462
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
68 ashish 11463
    }
11464
 
11465
    public void setFieldValue(_Fields field, Object value) {
11466
      switch (field) {
483 rajveer 11467
      case STATUS:
68 ashish 11468
        if (value == null) {
483 rajveer 11469
          unsetStatus();
68 ashish 11470
        } else {
483 rajveer 11471
          setStatus((OrderStatus)value);
68 ashish 11472
        }
11473
        break;
11474
 
483 rajveer 11475
      case FROM_DATE:
68 ashish 11476
        if (value == null) {
483 rajveer 11477
          unsetFrom_date();
68 ashish 11478
        } else {
483 rajveer 11479
          setFrom_date((Long)value);
68 ashish 11480
        }
11481
        break;
11482
 
483 rajveer 11483
      case TO_DATE:
11484
        if (value == null) {
11485
          unsetTo_date();
11486
        } else {
11487
          setTo_date((Long)value);
11488
        }
11489
        break;
11490
 
11491
      case WAREHOUSE_ID:
11492
        if (value == null) {
11493
          unsetWarehouse_id();
11494
        } else {
11495
          setWarehouse_id((Long)value);
11496
        }
11497
        break;
11498
 
68 ashish 11499
      }
11500
    }
11501
 
11502
    public Object getFieldValue(_Fields field) {
11503
      switch (field) {
483 rajveer 11504
      case STATUS:
11505
        return getStatus();
68 ashish 11506
 
483 rajveer 11507
      case FROM_DATE:
3430 rajveer 11508
        return Long.valueOf(getFrom_date());
68 ashish 11509
 
483 rajveer 11510
      case TO_DATE:
3430 rajveer 11511
        return Long.valueOf(getTo_date());
483 rajveer 11512
 
11513
      case WAREHOUSE_ID:
3430 rajveer 11514
        return Long.valueOf(getWarehouse_id());
483 rajveer 11515
 
68 ashish 11516
      }
11517
      throw new IllegalStateException();
11518
    }
11519
 
3430 rajveer 11520
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11521
    public boolean isSet(_Fields field) {
11522
      if (field == null) {
11523
        throw new IllegalArgumentException();
11524
      }
68 ashish 11525
 
11526
      switch (field) {
483 rajveer 11527
      case STATUS:
11528
        return isSetStatus();
11529
      case FROM_DATE:
11530
        return isSetFrom_date();
11531
      case TO_DATE:
11532
        return isSetTo_date();
11533
      case WAREHOUSE_ID:
11534
        return isSetWarehouse_id();
68 ashish 11535
      }
11536
      throw new IllegalStateException();
11537
    }
11538
 
11539
    @Override
11540
    public boolean equals(Object that) {
11541
      if (that == null)
11542
        return false;
483 rajveer 11543
      if (that instanceof getAllOrders_args)
11544
        return this.equals((getAllOrders_args)that);
68 ashish 11545
      return false;
11546
    }
11547
 
483 rajveer 11548
    public boolean equals(getAllOrders_args that) {
68 ashish 11549
      if (that == null)
11550
        return false;
11551
 
483 rajveer 11552
      boolean this_present_status = true && this.isSetStatus();
11553
      boolean that_present_status = true && that.isSetStatus();
11554
      if (this_present_status || that_present_status) {
11555
        if (!(this_present_status && that_present_status))
68 ashish 11556
          return false;
483 rajveer 11557
        if (!this.status.equals(that.status))
68 ashish 11558
          return false;
11559
      }
11560
 
483 rajveer 11561
      boolean this_present_from_date = true;
11562
      boolean that_present_from_date = true;
11563
      if (this_present_from_date || that_present_from_date) {
11564
        if (!(this_present_from_date && that_present_from_date))
68 ashish 11565
          return false;
483 rajveer 11566
        if (this.from_date != that.from_date)
68 ashish 11567
          return false;
11568
      }
11569
 
483 rajveer 11570
      boolean this_present_to_date = true;
11571
      boolean that_present_to_date = true;
11572
      if (this_present_to_date || that_present_to_date) {
11573
        if (!(this_present_to_date && that_present_to_date))
11574
          return false;
11575
        if (this.to_date != that.to_date)
11576
          return false;
68 ashish 11577
      }
11578
 
483 rajveer 11579
      boolean this_present_warehouse_id = true;
11580
      boolean that_present_warehouse_id = true;
11581
      if (this_present_warehouse_id || that_present_warehouse_id) {
11582
        if (!(this_present_warehouse_id && that_present_warehouse_id))
68 ashish 11583
          return false;
483 rajveer 11584
        if (this.warehouse_id != that.warehouse_id)
68 ashish 11585
          return false;
11586
      }
11587
 
11588
      return true;
11589
    }
11590
 
11591
    @Override
11592
    public int hashCode() {
11593
      return 0;
11594
    }
11595
 
483 rajveer 11596
    public int compareTo(getAllOrders_args other) {
68 ashish 11597
      if (!getClass().equals(other.getClass())) {
11598
        return getClass().getName().compareTo(other.getClass().getName());
11599
      }
11600
 
11601
      int lastComparison = 0;
483 rajveer 11602
      getAllOrders_args typedOther = (getAllOrders_args)other;
68 ashish 11603
 
3430 rajveer 11604
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
68 ashish 11605
      if (lastComparison != 0) {
11606
        return lastComparison;
11607
      }
3430 rajveer 11608
      if (isSetStatus()) {
11609
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
11610
        if (lastComparison != 0) {
11611
          return lastComparison;
11612
        }
68 ashish 11613
      }
3430 rajveer 11614
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(typedOther.isSetFrom_date());
483 rajveer 11615
      if (lastComparison != 0) {
11616
        return lastComparison;
11617
      }
3430 rajveer 11618
      if (isSetFrom_date()) {
11619
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_date, typedOther.from_date);
11620
        if (lastComparison != 0) {
11621
          return lastComparison;
11622
        }
483 rajveer 11623
      }
3430 rajveer 11624
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(typedOther.isSetTo_date());
483 rajveer 11625
      if (lastComparison != 0) {
11626
        return lastComparison;
11627
      }
3430 rajveer 11628
      if (isSetTo_date()) {
11629
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_date, typedOther.to_date);
11630
        if (lastComparison != 0) {
11631
          return lastComparison;
11632
        }
483 rajveer 11633
      }
3430 rajveer 11634
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
483 rajveer 11635
      if (lastComparison != 0) {
11636
        return lastComparison;
11637
      }
3430 rajveer 11638
      if (isSetWarehouse_id()) {
11639
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
11640
        if (lastComparison != 0) {
11641
          return lastComparison;
11642
        }
483 rajveer 11643
      }
68 ashish 11644
      return 0;
11645
    }
11646
 
3430 rajveer 11647
    public _Fields fieldForId(int fieldId) {
11648
      return _Fields.findByThriftId(fieldId);
11649
    }
11650
 
11651
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11652
      org.apache.thrift.protocol.TField field;
68 ashish 11653
      iprot.readStructBegin();
11654
      while (true)
11655
      {
11656
        field = iprot.readFieldBegin();
3430 rajveer 11657
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 11658
          break;
11659
        }
3430 rajveer 11660
        switch (field.id) {
11661
          case 1: // STATUS
11662
            if (field.type == org.apache.thrift.protocol.TType.I32) {
11663
              this.status = OrderStatus.findByValue(iprot.readI32());
11664
            } else { 
11665
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11666
            }
11667
            break;
11668
          case 2: // FROM_DATE
11669
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11670
              this.from_date = iprot.readI64();
11671
              setFrom_dateIsSet(true);
11672
            } else { 
11673
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11674
            }
11675
            break;
11676
          case 3: // TO_DATE
11677
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11678
              this.to_date = iprot.readI64();
11679
              setTo_dateIsSet(true);
11680
            } else { 
11681
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11682
            }
11683
            break;
11684
          case 4: // WAREHOUSE_ID
11685
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11686
              this.warehouse_id = iprot.readI64();
11687
              setWarehouse_idIsSet(true);
11688
            } else { 
11689
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11690
            }
11691
            break;
11692
          default:
11693
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 11694
        }
3430 rajveer 11695
        iprot.readFieldEnd();
68 ashish 11696
      }
11697
      iprot.readStructEnd();
11698
      validate();
11699
    }
11700
 
3430 rajveer 11701
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 11702
      validate();
11703
 
11704
      oprot.writeStructBegin(STRUCT_DESC);
483 rajveer 11705
      if (this.status != null) {
11706
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
11707
        oprot.writeI32(this.status.getValue());
11708
        oprot.writeFieldEnd();
11709
      }
11710
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
11711
      oprot.writeI64(this.from_date);
68 ashish 11712
      oprot.writeFieldEnd();
483 rajveer 11713
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
11714
      oprot.writeI64(this.to_date);
11715
      oprot.writeFieldEnd();
11716
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
11717
      oprot.writeI64(this.warehouse_id);
11718
      oprot.writeFieldEnd();
68 ashish 11719
      oprot.writeFieldStop();
11720
      oprot.writeStructEnd();
11721
    }
11722
 
11723
    @Override
11724
    public String toString() {
483 rajveer 11725
      StringBuilder sb = new StringBuilder("getAllOrders_args(");
68 ashish 11726
      boolean first = true;
11727
 
483 rajveer 11728
      sb.append("status:");
11729
      if (this.status == null) {
11730
        sb.append("null");
11731
      } else {
11732
        sb.append(this.status);
11733
      }
68 ashish 11734
      first = false;
483 rajveer 11735
      if (!first) sb.append(", ");
11736
      sb.append("from_date:");
11737
      sb.append(this.from_date);
11738
      first = false;
11739
      if (!first) sb.append(", ");
11740
      sb.append("to_date:");
11741
      sb.append(this.to_date);
11742
      first = false;
11743
      if (!first) sb.append(", ");
11744
      sb.append("warehouse_id:");
11745
      sb.append(this.warehouse_id);
11746
      first = false;
68 ashish 11747
      sb.append(")");
11748
      return sb.toString();
11749
    }
11750
 
3430 rajveer 11751
    public void validate() throws org.apache.thrift.TException {
68 ashish 11752
      // check for required fields
11753
    }
11754
 
3430 rajveer 11755
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11756
      try {
11757
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11758
      } catch (org.apache.thrift.TException te) {
11759
        throw new java.io.IOException(te);
11760
      }
11761
    }
11762
 
11763
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11764
      try {
11765
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11766
        __isset_bit_vector = new BitSet(1);
11767
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11768
      } catch (org.apache.thrift.TException te) {
11769
        throw new java.io.IOException(te);
11770
      }
11771
    }
11772
 
68 ashish 11773
  }
11774
 
3430 rajveer 11775
  public static class getAllOrders_result implements org.apache.thrift.TBase<getAllOrders_result, getAllOrders_result._Fields>, java.io.Serializable, Cloneable   {
11776
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrders_result");
68 ashish 11777
 
3430 rajveer 11778
    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);
11779
    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);
68 ashish 11780
 
3430 rajveer 11781
    private List<Order> success; // required
11782
    private TransactionServiceException ex; // required
68 ashish 11783
 
11784
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11785
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 11786
      SUCCESS((short)0, "success"),
11787
      EX((short)1, "ex");
11788
 
11789
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11790
 
11791
      static {
11792
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11793
          byName.put(field.getFieldName(), field);
11794
        }
11795
      }
11796
 
11797
      /**
11798
       * Find the _Fields constant that matches fieldId, or null if its not found.
11799
       */
11800
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11801
        switch(fieldId) {
11802
          case 0: // SUCCESS
11803
            return SUCCESS;
11804
          case 1: // EX
11805
            return EX;
11806
          default:
11807
            return null;
11808
        }
68 ashish 11809
      }
11810
 
11811
      /**
11812
       * Find the _Fields constant that matches fieldId, throwing an exception
11813
       * if it is not found.
11814
       */
11815
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11816
        _Fields fields = findByThriftId(fieldId);
11817
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11818
        return fields;
11819
      }
11820
 
11821
      /**
11822
       * Find the _Fields constant that matches name, or null if its not found.
11823
       */
11824
      public static _Fields findByName(String name) {
11825
        return byName.get(name);
11826
      }
11827
 
11828
      private final short _thriftId;
11829
      private final String _fieldName;
11830
 
11831
      _Fields(short thriftId, String fieldName) {
11832
        _thriftId = thriftId;
11833
        _fieldName = fieldName;
11834
      }
11835
 
11836
      public short getThriftFieldId() {
11837
        return _thriftId;
11838
      }
11839
 
11840
      public String getFieldName() {
11841
        return _fieldName;
11842
      }
11843
    }
11844
 
11845
    // isset id assignments
11846
 
3430 rajveer 11847
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 11848
    static {
3430 rajveer 11849
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11850
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11851
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11852
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
11853
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11854
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11855
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11856
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrders_result.class, metaDataMap);
68 ashish 11857
    }
11858
 
483 rajveer 11859
    public getAllOrders_result() {
68 ashish 11860
    }
11861
 
483 rajveer 11862
    public getAllOrders_result(
11863
      List<Order> success,
68 ashish 11864
      TransactionServiceException ex)
11865
    {
11866
      this();
11867
      this.success = success;
11868
      this.ex = ex;
11869
    }
11870
 
11871
    /**
11872
     * Performs a deep copy on <i>other</i>.
11873
     */
483 rajveer 11874
    public getAllOrders_result(getAllOrders_result other) {
68 ashish 11875
      if (other.isSetSuccess()) {
483 rajveer 11876
        List<Order> __this__success = new ArrayList<Order>();
11877
        for (Order other_element : other.success) {
11878
          __this__success.add(new Order(other_element));
11879
        }
11880
        this.success = __this__success;
68 ashish 11881
      }
11882
      if (other.isSetEx()) {
11883
        this.ex = new TransactionServiceException(other.ex);
11884
      }
11885
    }
11886
 
483 rajveer 11887
    public getAllOrders_result deepCopy() {
11888
      return new getAllOrders_result(this);
68 ashish 11889
    }
11890
 
3430 rajveer 11891
    @Override
11892
    public void clear() {
11893
      this.success = null;
11894
      this.ex = null;
68 ashish 11895
    }
11896
 
483 rajveer 11897
    public int getSuccessSize() {
11898
      return (this.success == null) ? 0 : this.success.size();
11899
    }
11900
 
11901
    public java.util.Iterator<Order> getSuccessIterator() {
11902
      return (this.success == null) ? null : this.success.iterator();
11903
    }
11904
 
11905
    public void addToSuccess(Order elem) {
11906
      if (this.success == null) {
11907
        this.success = new ArrayList<Order>();
11908
      }
11909
      this.success.add(elem);
11910
    }
11911
 
11912
    public List<Order> getSuccess() {
68 ashish 11913
      return this.success;
11914
    }
11915
 
3430 rajveer 11916
    public void setSuccess(List<Order> success) {
68 ashish 11917
      this.success = success;
11918
    }
11919
 
11920
    public void unsetSuccess() {
11921
      this.success = null;
11922
    }
11923
 
3430 rajveer 11924
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 11925
    public boolean isSetSuccess() {
11926
      return this.success != null;
11927
    }
11928
 
11929
    public void setSuccessIsSet(boolean value) {
11930
      if (!value) {
11931
        this.success = null;
11932
      }
11933
    }
11934
 
11935
    public TransactionServiceException getEx() {
11936
      return this.ex;
11937
    }
11938
 
3430 rajveer 11939
    public void setEx(TransactionServiceException ex) {
68 ashish 11940
      this.ex = ex;
11941
    }
11942
 
11943
    public void unsetEx() {
11944
      this.ex = null;
11945
    }
11946
 
3430 rajveer 11947
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 11948
    public boolean isSetEx() {
11949
      return this.ex != null;
11950
    }
11951
 
11952
    public void setExIsSet(boolean value) {
11953
      if (!value) {
11954
        this.ex = null;
11955
      }
11956
    }
11957
 
11958
    public void setFieldValue(_Fields field, Object value) {
11959
      switch (field) {
11960
      case SUCCESS:
11961
        if (value == null) {
11962
          unsetSuccess();
11963
        } else {
483 rajveer 11964
          setSuccess((List<Order>)value);
68 ashish 11965
        }
11966
        break;
11967
 
11968
      case EX:
11969
        if (value == null) {
11970
          unsetEx();
11971
        } else {
11972
          setEx((TransactionServiceException)value);
11973
        }
11974
        break;
11975
 
11976
      }
11977
    }
11978
 
11979
    public Object getFieldValue(_Fields field) {
11980
      switch (field) {
11981
      case SUCCESS:
11982
        return getSuccess();
11983
 
11984
      case EX:
11985
        return getEx();
11986
 
11987
      }
11988
      throw new IllegalStateException();
11989
    }
11990
 
3430 rajveer 11991
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11992
    public boolean isSet(_Fields field) {
11993
      if (field == null) {
11994
        throw new IllegalArgumentException();
11995
      }
68 ashish 11996
 
11997
      switch (field) {
11998
      case SUCCESS:
11999
        return isSetSuccess();
12000
      case EX:
12001
        return isSetEx();
12002
      }
12003
      throw new IllegalStateException();
12004
    }
12005
 
12006
    @Override
12007
    public boolean equals(Object that) {
12008
      if (that == null)
12009
        return false;
483 rajveer 12010
      if (that instanceof getAllOrders_result)
12011
        return this.equals((getAllOrders_result)that);
68 ashish 12012
      return false;
12013
    }
12014
 
483 rajveer 12015
    public boolean equals(getAllOrders_result that) {
68 ashish 12016
      if (that == null)
12017
        return false;
12018
 
12019
      boolean this_present_success = true && this.isSetSuccess();
12020
      boolean that_present_success = true && that.isSetSuccess();
12021
      if (this_present_success || that_present_success) {
12022
        if (!(this_present_success && that_present_success))
12023
          return false;
12024
        if (!this.success.equals(that.success))
12025
          return false;
12026
      }
12027
 
12028
      boolean this_present_ex = true && this.isSetEx();
12029
      boolean that_present_ex = true && that.isSetEx();
12030
      if (this_present_ex || that_present_ex) {
12031
        if (!(this_present_ex && that_present_ex))
12032
          return false;
12033
        if (!this.ex.equals(that.ex))
12034
          return false;
12035
      }
12036
 
12037
      return true;
12038
    }
12039
 
12040
    @Override
12041
    public int hashCode() {
12042
      return 0;
12043
    }
12044
 
483 rajveer 12045
    public int compareTo(getAllOrders_result other) {
12046
      if (!getClass().equals(other.getClass())) {
12047
        return getClass().getName().compareTo(other.getClass().getName());
12048
      }
12049
 
12050
      int lastComparison = 0;
12051
      getAllOrders_result typedOther = (getAllOrders_result)other;
12052
 
3430 rajveer 12053
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
483 rajveer 12054
      if (lastComparison != 0) {
12055
        return lastComparison;
12056
      }
3430 rajveer 12057
      if (isSetSuccess()) {
12058
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12059
        if (lastComparison != 0) {
12060
          return lastComparison;
12061
        }
483 rajveer 12062
      }
3430 rajveer 12063
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
483 rajveer 12064
      if (lastComparison != 0) {
12065
        return lastComparison;
12066
      }
3430 rajveer 12067
      if (isSetEx()) {
12068
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
12069
        if (lastComparison != 0) {
12070
          return lastComparison;
12071
        }
483 rajveer 12072
      }
12073
      return 0;
12074
    }
12075
 
3430 rajveer 12076
    public _Fields fieldForId(int fieldId) {
12077
      return _Fields.findByThriftId(fieldId);
12078
    }
12079
 
12080
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12081
      org.apache.thrift.protocol.TField field;
68 ashish 12082
      iprot.readStructBegin();
12083
      while (true)
12084
      {
12085
        field = iprot.readFieldBegin();
3430 rajveer 12086
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 12087
          break;
12088
        }
3430 rajveer 12089
        switch (field.id) {
12090
          case 0: // SUCCESS
12091
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12092
              {
12093
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
12094
                this.success = new ArrayList<Order>(_list16.size);
12095
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
483 rajveer 12096
                {
3430 rajveer 12097
                  Order _elem18; // required
12098
                  _elem18 = new Order();
12099
                  _elem18.read(iprot);
12100
                  this.success.add(_elem18);
483 rajveer 12101
                }
3430 rajveer 12102
                iprot.readListEnd();
68 ashish 12103
              }
3430 rajveer 12104
            } else { 
12105
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12106
            }
12107
            break;
12108
          case 1: // EX
12109
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12110
              this.ex = new TransactionServiceException();
12111
              this.ex.read(iprot);
12112
            } else { 
12113
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12114
            }
12115
            break;
12116
          default:
12117
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 12118
        }
3430 rajveer 12119
        iprot.readFieldEnd();
68 ashish 12120
      }
12121
      iprot.readStructEnd();
12122
      validate();
12123
    }
12124
 
3430 rajveer 12125
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 12126
      oprot.writeStructBegin(STRUCT_DESC);
12127
 
12128
      if (this.isSetSuccess()) {
12129
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
483 rajveer 12130
        {
3430 rajveer 12131
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
684 chandransh 12132
          for (Order _iter19 : this.success)
483 rajveer 12133
          {
684 chandransh 12134
            _iter19.write(oprot);
483 rajveer 12135
          }
12136
          oprot.writeListEnd();
12137
        }
68 ashish 12138
        oprot.writeFieldEnd();
12139
      } else if (this.isSetEx()) {
12140
        oprot.writeFieldBegin(EX_FIELD_DESC);
12141
        this.ex.write(oprot);
12142
        oprot.writeFieldEnd();
12143
      }
12144
      oprot.writeFieldStop();
12145
      oprot.writeStructEnd();
12146
    }
12147
 
12148
    @Override
12149
    public String toString() {
483 rajveer 12150
      StringBuilder sb = new StringBuilder("getAllOrders_result(");
68 ashish 12151
      boolean first = true;
12152
 
12153
      sb.append("success:");
12154
      if (this.success == null) {
12155
        sb.append("null");
12156
      } else {
12157
        sb.append(this.success);
12158
      }
12159
      first = false;
12160
      if (!first) sb.append(", ");
12161
      sb.append("ex:");
12162
      if (this.ex == null) {
12163
        sb.append("null");
12164
      } else {
12165
        sb.append(this.ex);
12166
      }
12167
      first = false;
12168
      sb.append(")");
12169
      return sb.toString();
12170
    }
12171
 
3430 rajveer 12172
    public void validate() throws org.apache.thrift.TException {
68 ashish 12173
      // check for required fields
12174
    }
12175
 
3430 rajveer 12176
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12177
      try {
12178
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12179
      } catch (org.apache.thrift.TException te) {
12180
        throw new java.io.IOException(te);
12181
      }
12182
    }
12183
 
12184
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12185
      try {
12186
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12187
      } catch (org.apache.thrift.TException te) {
12188
        throw new java.io.IOException(te);
12189
      }
12190
    }
12191
 
68 ashish 12192
  }
12193
 
4133 chandransh 12194
  public static class getOrdersInBatch_args implements org.apache.thrift.TBase<getOrdersInBatch_args, getOrdersInBatch_args._Fields>, java.io.Serializable, Cloneable   {
12195
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersInBatch_args");
12196
 
12197
    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);
12198
    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);
12199
    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);
12200
    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);
12201
 
12202
    private List<OrderStatus> statuses; // required
12203
    private long offset; // required
12204
    private long limit; // required
12205
    private long warehouse_id; // required
12206
 
12207
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12208
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12209
      STATUSES((short)1, "statuses"),
12210
      OFFSET((short)2, "offset"),
12211
      LIMIT((short)3, "limit"),
12212
      WAREHOUSE_ID((short)4, "warehouse_id");
12213
 
12214
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12215
 
12216
      static {
12217
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12218
          byName.put(field.getFieldName(), field);
12219
        }
12220
      }
12221
 
12222
      /**
12223
       * Find the _Fields constant that matches fieldId, or null if its not found.
12224
       */
12225
      public static _Fields findByThriftId(int fieldId) {
12226
        switch(fieldId) {
12227
          case 1: // STATUSES
12228
            return STATUSES;
12229
          case 2: // OFFSET
12230
            return OFFSET;
12231
          case 3: // LIMIT
12232
            return LIMIT;
12233
          case 4: // WAREHOUSE_ID
12234
            return WAREHOUSE_ID;
12235
          default:
12236
            return null;
12237
        }
12238
      }
12239
 
12240
      /**
12241
       * Find the _Fields constant that matches fieldId, throwing an exception
12242
       * if it is not found.
12243
       */
12244
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12245
        _Fields fields = findByThriftId(fieldId);
12246
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12247
        return fields;
12248
      }
12249
 
12250
      /**
12251
       * Find the _Fields constant that matches name, or null if its not found.
12252
       */
12253
      public static _Fields findByName(String name) {
12254
        return byName.get(name);
12255
      }
12256
 
12257
      private final short _thriftId;
12258
      private final String _fieldName;
12259
 
12260
      _Fields(short thriftId, String fieldName) {
12261
        _thriftId = thriftId;
12262
        _fieldName = fieldName;
12263
      }
12264
 
12265
      public short getThriftFieldId() {
12266
        return _thriftId;
12267
      }
12268
 
12269
      public String getFieldName() {
12270
        return _fieldName;
12271
      }
12272
    }
12273
 
12274
    // isset id assignments
12275
    private static final int __OFFSET_ISSET_ID = 0;
12276
    private static final int __LIMIT_ISSET_ID = 1;
12277
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
12278
    private BitSet __isset_bit_vector = new BitSet(3);
12279
 
12280
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12281
    static {
12282
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12283
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12284
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12285
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
12286
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12287
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12288
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12289
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12290
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12291
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12292
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12293
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersInBatch_args.class, metaDataMap);
12294
    }
12295
 
12296
    public getOrdersInBatch_args() {
12297
    }
12298
 
12299
    public getOrdersInBatch_args(
12300
      List<OrderStatus> statuses,
12301
      long offset,
12302
      long limit,
12303
      long warehouse_id)
12304
    {
12305
      this();
12306
      this.statuses = statuses;
12307
      this.offset = offset;
12308
      setOffsetIsSet(true);
12309
      this.limit = limit;
12310
      setLimitIsSet(true);
12311
      this.warehouse_id = warehouse_id;
12312
      setWarehouse_idIsSet(true);
12313
    }
12314
 
12315
    /**
12316
     * Performs a deep copy on <i>other</i>.
12317
     */
12318
    public getOrdersInBatch_args(getOrdersInBatch_args other) {
12319
      __isset_bit_vector.clear();
12320
      __isset_bit_vector.or(other.__isset_bit_vector);
12321
      if (other.isSetStatuses()) {
12322
        List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();
12323
        for (OrderStatus other_element : other.statuses) {
12324
          __this__statuses.add(other_element);
12325
        }
12326
        this.statuses = __this__statuses;
12327
      }
12328
      this.offset = other.offset;
12329
      this.limit = other.limit;
12330
      this.warehouse_id = other.warehouse_id;
12331
    }
12332
 
12333
    public getOrdersInBatch_args deepCopy() {
12334
      return new getOrdersInBatch_args(this);
12335
    }
12336
 
12337
    @Override
12338
    public void clear() {
12339
      this.statuses = null;
12340
      setOffsetIsSet(false);
12341
      this.offset = 0;
12342
      setLimitIsSet(false);
12343
      this.limit = 0;
12344
      setWarehouse_idIsSet(false);
12345
      this.warehouse_id = 0;
12346
    }
12347
 
12348
    public int getStatusesSize() {
12349
      return (this.statuses == null) ? 0 : this.statuses.size();
12350
    }
12351
 
12352
    public java.util.Iterator<OrderStatus> getStatusesIterator() {
12353
      return (this.statuses == null) ? null : this.statuses.iterator();
12354
    }
12355
 
12356
    public void addToStatuses(OrderStatus elem) {
12357
      if (this.statuses == null) {
12358
        this.statuses = new ArrayList<OrderStatus>();
12359
      }
12360
      this.statuses.add(elem);
12361
    }
12362
 
12363
    public List<OrderStatus> getStatuses() {
12364
      return this.statuses;
12365
    }
12366
 
12367
    public void setStatuses(List<OrderStatus> statuses) {
12368
      this.statuses = statuses;
12369
    }
12370
 
12371
    public void unsetStatuses() {
12372
      this.statuses = null;
12373
    }
12374
 
12375
    /** Returns true if field statuses is set (has been assigned a value) and false otherwise */
12376
    public boolean isSetStatuses() {
12377
      return this.statuses != null;
12378
    }
12379
 
12380
    public void setStatusesIsSet(boolean value) {
12381
      if (!value) {
12382
        this.statuses = null;
12383
      }
12384
    }
12385
 
12386
    public long getOffset() {
12387
      return this.offset;
12388
    }
12389
 
12390
    public void setOffset(long offset) {
12391
      this.offset = offset;
12392
      setOffsetIsSet(true);
12393
    }
12394
 
12395
    public void unsetOffset() {
12396
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
12397
    }
12398
 
12399
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
12400
    public boolean isSetOffset() {
12401
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
12402
    }
12403
 
12404
    public void setOffsetIsSet(boolean value) {
12405
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
12406
    }
12407
 
12408
    public long getLimit() {
12409
      return this.limit;
12410
    }
12411
 
12412
    public void setLimit(long limit) {
12413
      this.limit = limit;
12414
      setLimitIsSet(true);
12415
    }
12416
 
12417
    public void unsetLimit() {
12418
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
12419
    }
12420
 
12421
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
12422
    public boolean isSetLimit() {
12423
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
12424
    }
12425
 
12426
    public void setLimitIsSet(boolean value) {
12427
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
12428
    }
12429
 
12430
    public long getWarehouse_id() {
12431
      return this.warehouse_id;
12432
    }
12433
 
12434
    public void setWarehouse_id(long warehouse_id) {
12435
      this.warehouse_id = warehouse_id;
12436
      setWarehouse_idIsSet(true);
12437
    }
12438
 
12439
    public void unsetWarehouse_id() {
12440
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
12441
    }
12442
 
12443
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
12444
    public boolean isSetWarehouse_id() {
12445
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
12446
    }
12447
 
12448
    public void setWarehouse_idIsSet(boolean value) {
12449
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
12450
    }
12451
 
12452
    public void setFieldValue(_Fields field, Object value) {
12453
      switch (field) {
12454
      case STATUSES:
12455
        if (value == null) {
12456
          unsetStatuses();
12457
        } else {
12458
          setStatuses((List<OrderStatus>)value);
12459
        }
12460
        break;
12461
 
12462
      case OFFSET:
12463
        if (value == null) {
12464
          unsetOffset();
12465
        } else {
12466
          setOffset((Long)value);
12467
        }
12468
        break;
12469
 
12470
      case LIMIT:
12471
        if (value == null) {
12472
          unsetLimit();
12473
        } else {
12474
          setLimit((Long)value);
12475
        }
12476
        break;
12477
 
12478
      case WAREHOUSE_ID:
12479
        if (value == null) {
12480
          unsetWarehouse_id();
12481
        } else {
12482
          setWarehouse_id((Long)value);
12483
        }
12484
        break;
12485
 
12486
      }
12487
    }
12488
 
12489
    public Object getFieldValue(_Fields field) {
12490
      switch (field) {
12491
      case STATUSES:
12492
        return getStatuses();
12493
 
12494
      case OFFSET:
12495
        return Long.valueOf(getOffset());
12496
 
12497
      case LIMIT:
12498
        return Long.valueOf(getLimit());
12499
 
12500
      case WAREHOUSE_ID:
12501
        return Long.valueOf(getWarehouse_id());
12502
 
12503
      }
12504
      throw new IllegalStateException();
12505
    }
12506
 
12507
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12508
    public boolean isSet(_Fields field) {
12509
      if (field == null) {
12510
        throw new IllegalArgumentException();
12511
      }
12512
 
12513
      switch (field) {
12514
      case STATUSES:
12515
        return isSetStatuses();
12516
      case OFFSET:
12517
        return isSetOffset();
12518
      case LIMIT:
12519
        return isSetLimit();
12520
      case WAREHOUSE_ID:
12521
        return isSetWarehouse_id();
12522
      }
12523
      throw new IllegalStateException();
12524
    }
12525
 
12526
    @Override
12527
    public boolean equals(Object that) {
12528
      if (that == null)
12529
        return false;
12530
      if (that instanceof getOrdersInBatch_args)
12531
        return this.equals((getOrdersInBatch_args)that);
12532
      return false;
12533
    }
12534
 
12535
    public boolean equals(getOrdersInBatch_args that) {
12536
      if (that == null)
12537
        return false;
12538
 
12539
      boolean this_present_statuses = true && this.isSetStatuses();
12540
      boolean that_present_statuses = true && that.isSetStatuses();
12541
      if (this_present_statuses || that_present_statuses) {
12542
        if (!(this_present_statuses && that_present_statuses))
12543
          return false;
12544
        if (!this.statuses.equals(that.statuses))
12545
          return false;
12546
      }
12547
 
12548
      boolean this_present_offset = true;
12549
      boolean that_present_offset = true;
12550
      if (this_present_offset || that_present_offset) {
12551
        if (!(this_present_offset && that_present_offset))
12552
          return false;
12553
        if (this.offset != that.offset)
12554
          return false;
12555
      }
12556
 
12557
      boolean this_present_limit = true;
12558
      boolean that_present_limit = true;
12559
      if (this_present_limit || that_present_limit) {
12560
        if (!(this_present_limit && that_present_limit))
12561
          return false;
12562
        if (this.limit != that.limit)
12563
          return false;
12564
      }
12565
 
12566
      boolean this_present_warehouse_id = true;
12567
      boolean that_present_warehouse_id = true;
12568
      if (this_present_warehouse_id || that_present_warehouse_id) {
12569
        if (!(this_present_warehouse_id && that_present_warehouse_id))
12570
          return false;
12571
        if (this.warehouse_id != that.warehouse_id)
12572
          return false;
12573
      }
12574
 
12575
      return true;
12576
    }
12577
 
12578
    @Override
12579
    public int hashCode() {
12580
      return 0;
12581
    }
12582
 
12583
    public int compareTo(getOrdersInBatch_args other) {
12584
      if (!getClass().equals(other.getClass())) {
12585
        return getClass().getName().compareTo(other.getClass().getName());
12586
      }
12587
 
12588
      int lastComparison = 0;
12589
      getOrdersInBatch_args typedOther = (getOrdersInBatch_args)other;
12590
 
12591
      lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());
12592
      if (lastComparison != 0) {
12593
        return lastComparison;
12594
      }
12595
      if (isSetStatuses()) {
12596
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);
12597
        if (lastComparison != 0) {
12598
          return lastComparison;
12599
        }
12600
      }
12601
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
12602
      if (lastComparison != 0) {
12603
        return lastComparison;
12604
      }
12605
      if (isSetOffset()) {
12606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
12607
        if (lastComparison != 0) {
12608
          return lastComparison;
12609
        }
12610
      }
12611
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
12612
      if (lastComparison != 0) {
12613
        return lastComparison;
12614
      }
12615
      if (isSetLimit()) {
12616
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
12617
        if (lastComparison != 0) {
12618
          return lastComparison;
12619
        }
12620
      }
12621
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
12622
      if (lastComparison != 0) {
12623
        return lastComparison;
12624
      }
12625
      if (isSetWarehouse_id()) {
12626
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
12627
        if (lastComparison != 0) {
12628
          return lastComparison;
12629
        }
12630
      }
12631
      return 0;
12632
    }
12633
 
12634
    public _Fields fieldForId(int fieldId) {
12635
      return _Fields.findByThriftId(fieldId);
12636
    }
12637
 
12638
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12639
      org.apache.thrift.protocol.TField field;
12640
      iprot.readStructBegin();
12641
      while (true)
12642
      {
12643
        field = iprot.readFieldBegin();
12644
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12645
          break;
12646
        }
12647
        switch (field.id) {
12648
          case 1: // STATUSES
12649
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12650
              {
12651
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12652
                this.statuses = new ArrayList<OrderStatus>(_list20.size);
12653
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
12654
                {
12655
                  OrderStatus _elem22; // required
12656
                  _elem22 = OrderStatus.findByValue(iprot.readI32());
12657
                  this.statuses.add(_elem22);
12658
                }
12659
                iprot.readListEnd();
12660
              }
12661
            } else { 
12662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12663
            }
12664
            break;
12665
          case 2: // OFFSET
12666
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12667
              this.offset = iprot.readI64();
12668
              setOffsetIsSet(true);
12669
            } else { 
12670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12671
            }
12672
            break;
12673
          case 3: // LIMIT
12674
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12675
              this.limit = iprot.readI64();
12676
              setLimitIsSet(true);
12677
            } else { 
12678
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12679
            }
12680
            break;
12681
          case 4: // WAREHOUSE_ID
12682
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12683
              this.warehouse_id = iprot.readI64();
12684
              setWarehouse_idIsSet(true);
12685
            } else { 
12686
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12687
            }
12688
            break;
12689
          default:
12690
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12691
        }
12692
        iprot.readFieldEnd();
12693
      }
12694
      iprot.readStructEnd();
12695
      validate();
12696
    }
12697
 
12698
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12699
      validate();
12700
 
12701
      oprot.writeStructBegin(STRUCT_DESC);
12702
      if (this.statuses != null) {
12703
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
12704
        {
12705
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
12706
          for (OrderStatus _iter23 : this.statuses)
12707
          {
12708
            oprot.writeI32(_iter23.getValue());
12709
          }
12710
          oprot.writeListEnd();
12711
        }
12712
        oprot.writeFieldEnd();
12713
      }
12714
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
12715
      oprot.writeI64(this.offset);
12716
      oprot.writeFieldEnd();
12717
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
12718
      oprot.writeI64(this.limit);
12719
      oprot.writeFieldEnd();
12720
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12721
      oprot.writeI64(this.warehouse_id);
12722
      oprot.writeFieldEnd();
12723
      oprot.writeFieldStop();
12724
      oprot.writeStructEnd();
12725
    }
12726
 
12727
    @Override
12728
    public String toString() {
12729
      StringBuilder sb = new StringBuilder("getOrdersInBatch_args(");
12730
      boolean first = true;
12731
 
12732
      sb.append("statuses:");
12733
      if (this.statuses == null) {
12734
        sb.append("null");
12735
      } else {
12736
        sb.append(this.statuses);
12737
      }
12738
      first = false;
12739
      if (!first) sb.append(", ");
12740
      sb.append("offset:");
12741
      sb.append(this.offset);
12742
      first = false;
12743
      if (!first) sb.append(", ");
12744
      sb.append("limit:");
12745
      sb.append(this.limit);
12746
      first = false;
12747
      if (!first) sb.append(", ");
12748
      sb.append("warehouse_id:");
12749
      sb.append(this.warehouse_id);
12750
      first = false;
12751
      sb.append(")");
12752
      return sb.toString();
12753
    }
12754
 
12755
    public void validate() throws org.apache.thrift.TException {
12756
      // check for required fields
12757
    }
12758
 
12759
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12760
      try {
12761
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12762
      } catch (org.apache.thrift.TException te) {
12763
        throw new java.io.IOException(te);
12764
      }
12765
    }
12766
 
12767
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12768
      try {
12769
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12770
      } catch (org.apache.thrift.TException te) {
12771
        throw new java.io.IOException(te);
12772
      }
12773
    }
12774
 
12775
  }
12776
 
12777
  public static class getOrdersInBatch_result implements org.apache.thrift.TBase<getOrdersInBatch_result, getOrdersInBatch_result._Fields>, java.io.Serializable, Cloneable   {
12778
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersInBatch_result");
12779
 
12780
    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);
12781
    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);
12782
 
12783
    private List<Order> success; // required
12784
    private TransactionServiceException ex; // required
12785
 
12786
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12787
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12788
      SUCCESS((short)0, "success"),
12789
      EX((short)1, "ex");
12790
 
12791
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12792
 
12793
      static {
12794
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12795
          byName.put(field.getFieldName(), field);
12796
        }
12797
      }
12798
 
12799
      /**
12800
       * Find the _Fields constant that matches fieldId, or null if its not found.
12801
       */
12802
      public static _Fields findByThriftId(int fieldId) {
12803
        switch(fieldId) {
12804
          case 0: // SUCCESS
12805
            return SUCCESS;
12806
          case 1: // EX
12807
            return EX;
12808
          default:
12809
            return null;
12810
        }
12811
      }
12812
 
12813
      /**
12814
       * Find the _Fields constant that matches fieldId, throwing an exception
12815
       * if it is not found.
12816
       */
12817
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12818
        _Fields fields = findByThriftId(fieldId);
12819
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12820
        return fields;
12821
      }
12822
 
12823
      /**
12824
       * Find the _Fields constant that matches name, or null if its not found.
12825
       */
12826
      public static _Fields findByName(String name) {
12827
        return byName.get(name);
12828
      }
12829
 
12830
      private final short _thriftId;
12831
      private final String _fieldName;
12832
 
12833
      _Fields(short thriftId, String fieldName) {
12834
        _thriftId = thriftId;
12835
        _fieldName = fieldName;
12836
      }
12837
 
12838
      public short getThriftFieldId() {
12839
        return _thriftId;
12840
      }
12841
 
12842
      public String getFieldName() {
12843
        return _fieldName;
12844
      }
12845
    }
12846
 
12847
    // isset id assignments
12848
 
12849
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12850
    static {
12851
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12852
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12853
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12854
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
12855
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12856
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12857
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12858
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersInBatch_result.class, metaDataMap);
12859
    }
12860
 
12861
    public getOrdersInBatch_result() {
12862
    }
12863
 
12864
    public getOrdersInBatch_result(
12865
      List<Order> success,
12866
      TransactionServiceException ex)
12867
    {
12868
      this();
12869
      this.success = success;
12870
      this.ex = ex;
12871
    }
12872
 
12873
    /**
12874
     * Performs a deep copy on <i>other</i>.
12875
     */
12876
    public getOrdersInBatch_result(getOrdersInBatch_result other) {
12877
      if (other.isSetSuccess()) {
12878
        List<Order> __this__success = new ArrayList<Order>();
12879
        for (Order other_element : other.success) {
12880
          __this__success.add(new Order(other_element));
12881
        }
12882
        this.success = __this__success;
12883
      }
12884
      if (other.isSetEx()) {
12885
        this.ex = new TransactionServiceException(other.ex);
12886
      }
12887
    }
12888
 
12889
    public getOrdersInBatch_result deepCopy() {
12890
      return new getOrdersInBatch_result(this);
12891
    }
12892
 
12893
    @Override
12894
    public void clear() {
12895
      this.success = null;
12896
      this.ex = null;
12897
    }
12898
 
12899
    public int getSuccessSize() {
12900
      return (this.success == null) ? 0 : this.success.size();
12901
    }
12902
 
12903
    public java.util.Iterator<Order> getSuccessIterator() {
12904
      return (this.success == null) ? null : this.success.iterator();
12905
    }
12906
 
12907
    public void addToSuccess(Order elem) {
12908
      if (this.success == null) {
12909
        this.success = new ArrayList<Order>();
12910
      }
12911
      this.success.add(elem);
12912
    }
12913
 
12914
    public List<Order> getSuccess() {
12915
      return this.success;
12916
    }
12917
 
12918
    public void setSuccess(List<Order> success) {
12919
      this.success = success;
12920
    }
12921
 
12922
    public void unsetSuccess() {
12923
      this.success = null;
12924
    }
12925
 
12926
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12927
    public boolean isSetSuccess() {
12928
      return this.success != null;
12929
    }
12930
 
12931
    public void setSuccessIsSet(boolean value) {
12932
      if (!value) {
12933
        this.success = null;
12934
      }
12935
    }
12936
 
12937
    public TransactionServiceException getEx() {
12938
      return this.ex;
12939
    }
12940
 
12941
    public void setEx(TransactionServiceException ex) {
12942
      this.ex = ex;
12943
    }
12944
 
12945
    public void unsetEx() {
12946
      this.ex = null;
12947
    }
12948
 
12949
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
12950
    public boolean isSetEx() {
12951
      return this.ex != null;
12952
    }
12953
 
12954
    public void setExIsSet(boolean value) {
12955
      if (!value) {
12956
        this.ex = null;
12957
      }
12958
    }
12959
 
12960
    public void setFieldValue(_Fields field, Object value) {
12961
      switch (field) {
12962
      case SUCCESS:
12963
        if (value == null) {
12964
          unsetSuccess();
12965
        } else {
12966
          setSuccess((List<Order>)value);
12967
        }
12968
        break;
12969
 
12970
      case EX:
12971
        if (value == null) {
12972
          unsetEx();
12973
        } else {
12974
          setEx((TransactionServiceException)value);
12975
        }
12976
        break;
12977
 
12978
      }
12979
    }
12980
 
12981
    public Object getFieldValue(_Fields field) {
12982
      switch (field) {
12983
      case SUCCESS:
12984
        return getSuccess();
12985
 
12986
      case EX:
12987
        return getEx();
12988
 
12989
      }
12990
      throw new IllegalStateException();
12991
    }
12992
 
12993
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12994
    public boolean isSet(_Fields field) {
12995
      if (field == null) {
12996
        throw new IllegalArgumentException();
12997
      }
12998
 
12999
      switch (field) {
13000
      case SUCCESS:
13001
        return isSetSuccess();
13002
      case EX:
13003
        return isSetEx();
13004
      }
13005
      throw new IllegalStateException();
13006
    }
13007
 
13008
    @Override
13009
    public boolean equals(Object that) {
13010
      if (that == null)
13011
        return false;
13012
      if (that instanceof getOrdersInBatch_result)
13013
        return this.equals((getOrdersInBatch_result)that);
13014
      return false;
13015
    }
13016
 
13017
    public boolean equals(getOrdersInBatch_result that) {
13018
      if (that == null)
13019
        return false;
13020
 
13021
      boolean this_present_success = true && this.isSetSuccess();
13022
      boolean that_present_success = true && that.isSetSuccess();
13023
      if (this_present_success || that_present_success) {
13024
        if (!(this_present_success && that_present_success))
13025
          return false;
13026
        if (!this.success.equals(that.success))
13027
          return false;
13028
      }
13029
 
13030
      boolean this_present_ex = true && this.isSetEx();
13031
      boolean that_present_ex = true && that.isSetEx();
13032
      if (this_present_ex || that_present_ex) {
13033
        if (!(this_present_ex && that_present_ex))
13034
          return false;
13035
        if (!this.ex.equals(that.ex))
13036
          return false;
13037
      }
13038
 
13039
      return true;
13040
    }
13041
 
13042
    @Override
13043
    public int hashCode() {
13044
      return 0;
13045
    }
13046
 
13047
    public int compareTo(getOrdersInBatch_result other) {
13048
      if (!getClass().equals(other.getClass())) {
13049
        return getClass().getName().compareTo(other.getClass().getName());
13050
      }
13051
 
13052
      int lastComparison = 0;
13053
      getOrdersInBatch_result typedOther = (getOrdersInBatch_result)other;
13054
 
13055
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13056
      if (lastComparison != 0) {
13057
        return lastComparison;
13058
      }
13059
      if (isSetSuccess()) {
13060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13061
        if (lastComparison != 0) {
13062
          return lastComparison;
13063
        }
13064
      }
13065
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
13066
      if (lastComparison != 0) {
13067
        return lastComparison;
13068
      }
13069
      if (isSetEx()) {
13070
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
13071
        if (lastComparison != 0) {
13072
          return lastComparison;
13073
        }
13074
      }
13075
      return 0;
13076
    }
13077
 
13078
    public _Fields fieldForId(int fieldId) {
13079
      return _Fields.findByThriftId(fieldId);
13080
    }
13081
 
13082
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13083
      org.apache.thrift.protocol.TField field;
13084
      iprot.readStructBegin();
13085
      while (true)
13086
      {
13087
        field = iprot.readFieldBegin();
13088
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13089
          break;
13090
        }
13091
        switch (field.id) {
13092
          case 0: // SUCCESS
13093
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13094
              {
13095
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
13096
                this.success = new ArrayList<Order>(_list24.size);
13097
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
13098
                {
13099
                  Order _elem26; // required
13100
                  _elem26 = new Order();
13101
                  _elem26.read(iprot);
13102
                  this.success.add(_elem26);
13103
                }
13104
                iprot.readListEnd();
13105
              }
13106
            } else { 
13107
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13108
            }
13109
            break;
13110
          case 1: // EX
13111
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13112
              this.ex = new TransactionServiceException();
13113
              this.ex.read(iprot);
13114
            } else { 
13115
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13116
            }
13117
            break;
13118
          default:
13119
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13120
        }
13121
        iprot.readFieldEnd();
13122
      }
13123
      iprot.readStructEnd();
13124
      validate();
13125
    }
13126
 
13127
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13128
      oprot.writeStructBegin(STRUCT_DESC);
13129
 
13130
      if (this.isSetSuccess()) {
13131
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13132
        {
13133
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13134
          for (Order _iter27 : this.success)
13135
          {
13136
            _iter27.write(oprot);
13137
          }
13138
          oprot.writeListEnd();
13139
        }
13140
        oprot.writeFieldEnd();
13141
      } else if (this.isSetEx()) {
13142
        oprot.writeFieldBegin(EX_FIELD_DESC);
13143
        this.ex.write(oprot);
13144
        oprot.writeFieldEnd();
13145
      }
13146
      oprot.writeFieldStop();
13147
      oprot.writeStructEnd();
13148
    }
13149
 
13150
    @Override
13151
    public String toString() {
13152
      StringBuilder sb = new StringBuilder("getOrdersInBatch_result(");
13153
      boolean first = true;
13154
 
13155
      sb.append("success:");
13156
      if (this.success == null) {
13157
        sb.append("null");
13158
      } else {
13159
        sb.append(this.success);
13160
      }
13161
      first = false;
13162
      if (!first) sb.append(", ");
13163
      sb.append("ex:");
13164
      if (this.ex == null) {
13165
        sb.append("null");
13166
      } else {
13167
        sb.append(this.ex);
13168
      }
13169
      first = false;
13170
      sb.append(")");
13171
      return sb.toString();
13172
    }
13173
 
13174
    public void validate() throws org.apache.thrift.TException {
13175
      // check for required fields
13176
    }
13177
 
13178
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13179
      try {
13180
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13181
      } catch (org.apache.thrift.TException te) {
13182
        throw new java.io.IOException(te);
13183
      }
13184
    }
13185
 
13186
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13187
      try {
13188
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13189
      } catch (org.apache.thrift.TException te) {
13190
        throw new java.io.IOException(te);
13191
      }
13192
    }
13193
 
13194
  }
13195
 
13196
  public static class getOrderCount_args implements org.apache.thrift.TBase<getOrderCount_args, getOrderCount_args._Fields>, java.io.Serializable, Cloneable   {
13197
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderCount_args");
13198
 
13199
    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);
13200
    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);
13201
 
13202
    private List<OrderStatus> statuses; // required
13203
    private long warehouseId; // required
13204
 
13205
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13206
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13207
      STATUSES((short)1, "statuses"),
13208
      WAREHOUSE_ID((short)2, "warehouseId");
13209
 
13210
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13211
 
13212
      static {
13213
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13214
          byName.put(field.getFieldName(), field);
13215
        }
13216
      }
13217
 
13218
      /**
13219
       * Find the _Fields constant that matches fieldId, or null if its not found.
13220
       */
13221
      public static _Fields findByThriftId(int fieldId) {
13222
        switch(fieldId) {
13223
          case 1: // STATUSES
13224
            return STATUSES;
13225
          case 2: // WAREHOUSE_ID
13226
            return WAREHOUSE_ID;
13227
          default:
13228
            return null;
13229
        }
13230
      }
13231
 
13232
      /**
13233
       * Find the _Fields constant that matches fieldId, throwing an exception
13234
       * if it is not found.
13235
       */
13236
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13237
        _Fields fields = findByThriftId(fieldId);
13238
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13239
        return fields;
13240
      }
13241
 
13242
      /**
13243
       * Find the _Fields constant that matches name, or null if its not found.
13244
       */
13245
      public static _Fields findByName(String name) {
13246
        return byName.get(name);
13247
      }
13248
 
13249
      private final short _thriftId;
13250
      private final String _fieldName;
13251
 
13252
      _Fields(short thriftId, String fieldName) {
13253
        _thriftId = thriftId;
13254
        _fieldName = fieldName;
13255
      }
13256
 
13257
      public short getThriftFieldId() {
13258
        return _thriftId;
13259
      }
13260
 
13261
      public String getFieldName() {
13262
        return _fieldName;
13263
      }
13264
    }
13265
 
13266
    // isset id assignments
13267
    private static final int __WAREHOUSEID_ISSET_ID = 0;
13268
    private BitSet __isset_bit_vector = new BitSet(1);
13269
 
13270
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13271
    static {
13272
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13273
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13274
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13275
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
13276
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13277
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13278
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13279
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderCount_args.class, metaDataMap);
13280
    }
13281
 
13282
    public getOrderCount_args() {
13283
    }
13284
 
13285
    public getOrderCount_args(
13286
      List<OrderStatus> statuses,
13287
      long warehouseId)
13288
    {
13289
      this();
13290
      this.statuses = statuses;
13291
      this.warehouseId = warehouseId;
13292
      setWarehouseIdIsSet(true);
13293
    }
13294
 
13295
    /**
13296
     * Performs a deep copy on <i>other</i>.
13297
     */
13298
    public getOrderCount_args(getOrderCount_args other) {
13299
      __isset_bit_vector.clear();
13300
      __isset_bit_vector.or(other.__isset_bit_vector);
13301
      if (other.isSetStatuses()) {
13302
        List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();
13303
        for (OrderStatus other_element : other.statuses) {
13304
          __this__statuses.add(other_element);
13305
        }
13306
        this.statuses = __this__statuses;
13307
      }
13308
      this.warehouseId = other.warehouseId;
13309
    }
13310
 
13311
    public getOrderCount_args deepCopy() {
13312
      return new getOrderCount_args(this);
13313
    }
13314
 
13315
    @Override
13316
    public void clear() {
13317
      this.statuses = null;
13318
      setWarehouseIdIsSet(false);
13319
      this.warehouseId = 0;
13320
    }
13321
 
13322
    public int getStatusesSize() {
13323
      return (this.statuses == null) ? 0 : this.statuses.size();
13324
    }
13325
 
13326
    public java.util.Iterator<OrderStatus> getStatusesIterator() {
13327
      return (this.statuses == null) ? null : this.statuses.iterator();
13328
    }
13329
 
13330
    public void addToStatuses(OrderStatus elem) {
13331
      if (this.statuses == null) {
13332
        this.statuses = new ArrayList<OrderStatus>();
13333
      }
13334
      this.statuses.add(elem);
13335
    }
13336
 
13337
    public List<OrderStatus> getStatuses() {
13338
      return this.statuses;
13339
    }
13340
 
13341
    public void setStatuses(List<OrderStatus> statuses) {
13342
      this.statuses = statuses;
13343
    }
13344
 
13345
    public void unsetStatuses() {
13346
      this.statuses = null;
13347
    }
13348
 
13349
    /** Returns true if field statuses is set (has been assigned a value) and false otherwise */
13350
    public boolean isSetStatuses() {
13351
      return this.statuses != null;
13352
    }
13353
 
13354
    public void setStatusesIsSet(boolean value) {
13355
      if (!value) {
13356
        this.statuses = null;
13357
      }
13358
    }
13359
 
13360
    public long getWarehouseId() {
13361
      return this.warehouseId;
13362
    }
13363
 
13364
    public void setWarehouseId(long warehouseId) {
13365
      this.warehouseId = warehouseId;
13366
      setWarehouseIdIsSet(true);
13367
    }
13368
 
13369
    public void unsetWarehouseId() {
13370
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
13371
    }
13372
 
13373
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
13374
    public boolean isSetWarehouseId() {
13375
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
13376
    }
13377
 
13378
    public void setWarehouseIdIsSet(boolean value) {
13379
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
13380
    }
13381
 
13382
    public void setFieldValue(_Fields field, Object value) {
13383
      switch (field) {
13384
      case STATUSES:
13385
        if (value == null) {
13386
          unsetStatuses();
13387
        } else {
13388
          setStatuses((List<OrderStatus>)value);
13389
        }
13390
        break;
13391
 
13392
      case WAREHOUSE_ID:
13393
        if (value == null) {
13394
          unsetWarehouseId();
13395
        } else {
13396
          setWarehouseId((Long)value);
13397
        }
13398
        break;
13399
 
13400
      }
13401
    }
13402
 
13403
    public Object getFieldValue(_Fields field) {
13404
      switch (field) {
13405
      case STATUSES:
13406
        return getStatuses();
13407
 
13408
      case WAREHOUSE_ID:
13409
        return Long.valueOf(getWarehouseId());
13410
 
13411
      }
13412
      throw new IllegalStateException();
13413
    }
13414
 
13415
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13416
    public boolean isSet(_Fields field) {
13417
      if (field == null) {
13418
        throw new IllegalArgumentException();
13419
      }
13420
 
13421
      switch (field) {
13422
      case STATUSES:
13423
        return isSetStatuses();
13424
      case WAREHOUSE_ID:
13425
        return isSetWarehouseId();
13426
      }
13427
      throw new IllegalStateException();
13428
    }
13429
 
13430
    @Override
13431
    public boolean equals(Object that) {
13432
      if (that == null)
13433
        return false;
13434
      if (that instanceof getOrderCount_args)
13435
        return this.equals((getOrderCount_args)that);
13436
      return false;
13437
    }
13438
 
13439
    public boolean equals(getOrderCount_args that) {
13440
      if (that == null)
13441
        return false;
13442
 
13443
      boolean this_present_statuses = true && this.isSetStatuses();
13444
      boolean that_present_statuses = true && that.isSetStatuses();
13445
      if (this_present_statuses || that_present_statuses) {
13446
        if (!(this_present_statuses && that_present_statuses))
13447
          return false;
13448
        if (!this.statuses.equals(that.statuses))
13449
          return false;
13450
      }
13451
 
13452
      boolean this_present_warehouseId = true;
13453
      boolean that_present_warehouseId = true;
13454
      if (this_present_warehouseId || that_present_warehouseId) {
13455
        if (!(this_present_warehouseId && that_present_warehouseId))
13456
          return false;
13457
        if (this.warehouseId != that.warehouseId)
13458
          return false;
13459
      }
13460
 
13461
      return true;
13462
    }
13463
 
13464
    @Override
13465
    public int hashCode() {
13466
      return 0;
13467
    }
13468
 
13469
    public int compareTo(getOrderCount_args other) {
13470
      if (!getClass().equals(other.getClass())) {
13471
        return getClass().getName().compareTo(other.getClass().getName());
13472
      }
13473
 
13474
      int lastComparison = 0;
13475
      getOrderCount_args typedOther = (getOrderCount_args)other;
13476
 
13477
      lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());
13478
      if (lastComparison != 0) {
13479
        return lastComparison;
13480
      }
13481
      if (isSetStatuses()) {
13482
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);
13483
        if (lastComparison != 0) {
13484
          return lastComparison;
13485
        }
13486
      }
13487
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
13488
      if (lastComparison != 0) {
13489
        return lastComparison;
13490
      }
13491
      if (isSetWarehouseId()) {
13492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
13493
        if (lastComparison != 0) {
13494
          return lastComparison;
13495
        }
13496
      }
13497
      return 0;
13498
    }
13499
 
13500
    public _Fields fieldForId(int fieldId) {
13501
      return _Fields.findByThriftId(fieldId);
13502
    }
13503
 
13504
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13505
      org.apache.thrift.protocol.TField field;
13506
      iprot.readStructBegin();
13507
      while (true)
13508
      {
13509
        field = iprot.readFieldBegin();
13510
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13511
          break;
13512
        }
13513
        switch (field.id) {
13514
          case 1: // STATUSES
13515
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13516
              {
13517
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
13518
                this.statuses = new ArrayList<OrderStatus>(_list28.size);
13519
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
13520
                {
13521
                  OrderStatus _elem30; // required
13522
                  _elem30 = OrderStatus.findByValue(iprot.readI32());
13523
                  this.statuses.add(_elem30);
13524
                }
13525
                iprot.readListEnd();
13526
              }
13527
            } else { 
13528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13529
            }
13530
            break;
13531
          case 2: // WAREHOUSE_ID
13532
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13533
              this.warehouseId = iprot.readI64();
13534
              setWarehouseIdIsSet(true);
13535
            } else { 
13536
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13537
            }
13538
            break;
13539
          default:
13540
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13541
        }
13542
        iprot.readFieldEnd();
13543
      }
13544
      iprot.readStructEnd();
13545
      validate();
13546
    }
13547
 
13548
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13549
      validate();
13550
 
13551
      oprot.writeStructBegin(STRUCT_DESC);
13552
      if (this.statuses != null) {
13553
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
13554
        {
13555
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
13556
          for (OrderStatus _iter31 : this.statuses)
13557
          {
13558
            oprot.writeI32(_iter31.getValue());
13559
          }
13560
          oprot.writeListEnd();
13561
        }
13562
        oprot.writeFieldEnd();
13563
      }
13564
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
13565
      oprot.writeI64(this.warehouseId);
13566
      oprot.writeFieldEnd();
13567
      oprot.writeFieldStop();
13568
      oprot.writeStructEnd();
13569
    }
13570
 
13571
    @Override
13572
    public String toString() {
13573
      StringBuilder sb = new StringBuilder("getOrderCount_args(");
13574
      boolean first = true;
13575
 
13576
      sb.append("statuses:");
13577
      if (this.statuses == null) {
13578
        sb.append("null");
13579
      } else {
13580
        sb.append(this.statuses);
13581
      }
13582
      first = false;
13583
      if (!first) sb.append(", ");
13584
      sb.append("warehouseId:");
13585
      sb.append(this.warehouseId);
13586
      first = false;
13587
      sb.append(")");
13588
      return sb.toString();
13589
    }
13590
 
13591
    public void validate() throws org.apache.thrift.TException {
13592
      // check for required fields
13593
    }
13594
 
13595
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13596
      try {
13597
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13598
      } catch (org.apache.thrift.TException te) {
13599
        throw new java.io.IOException(te);
13600
      }
13601
    }
13602
 
13603
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13604
      try {
13605
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13606
      } catch (org.apache.thrift.TException te) {
13607
        throw new java.io.IOException(te);
13608
      }
13609
    }
13610
 
13611
  }
13612
 
13613
  public static class getOrderCount_result implements org.apache.thrift.TBase<getOrderCount_result, getOrderCount_result._Fields>, java.io.Serializable, Cloneable   {
13614
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderCount_result");
13615
 
13616
    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);
13617
    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);
13618
 
13619
    private int success; // required
13620
    private TransactionServiceException ex; // required
13621
 
13622
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13623
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13624
      SUCCESS((short)0, "success"),
13625
      EX((short)1, "ex");
13626
 
13627
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13628
 
13629
      static {
13630
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13631
          byName.put(field.getFieldName(), field);
13632
        }
13633
      }
13634
 
13635
      /**
13636
       * Find the _Fields constant that matches fieldId, or null if its not found.
13637
       */
13638
      public static _Fields findByThriftId(int fieldId) {
13639
        switch(fieldId) {
13640
          case 0: // SUCCESS
13641
            return SUCCESS;
13642
          case 1: // EX
13643
            return EX;
13644
          default:
13645
            return null;
13646
        }
13647
      }
13648
 
13649
      /**
13650
       * Find the _Fields constant that matches fieldId, throwing an exception
13651
       * if it is not found.
13652
       */
13653
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13654
        _Fields fields = findByThriftId(fieldId);
13655
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13656
        return fields;
13657
      }
13658
 
13659
      /**
13660
       * Find the _Fields constant that matches name, or null if its not found.
13661
       */
13662
      public static _Fields findByName(String name) {
13663
        return byName.get(name);
13664
      }
13665
 
13666
      private final short _thriftId;
13667
      private final String _fieldName;
13668
 
13669
      _Fields(short thriftId, String fieldName) {
13670
        _thriftId = thriftId;
13671
        _fieldName = fieldName;
13672
      }
13673
 
13674
      public short getThriftFieldId() {
13675
        return _thriftId;
13676
      }
13677
 
13678
      public String getFieldName() {
13679
        return _fieldName;
13680
      }
13681
    }
13682
 
13683
    // isset id assignments
13684
    private static final int __SUCCESS_ISSET_ID = 0;
13685
    private BitSet __isset_bit_vector = new BitSet(1);
13686
 
13687
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13688
    static {
13689
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13690
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13691
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13692
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13693
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13694
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13695
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderCount_result.class, metaDataMap);
13696
    }
13697
 
13698
    public getOrderCount_result() {
13699
    }
13700
 
13701
    public getOrderCount_result(
13702
      int success,
13703
      TransactionServiceException ex)
13704
    {
13705
      this();
13706
      this.success = success;
13707
      setSuccessIsSet(true);
13708
      this.ex = ex;
13709
    }
13710
 
13711
    /**
13712
     * Performs a deep copy on <i>other</i>.
13713
     */
13714
    public getOrderCount_result(getOrderCount_result other) {
13715
      __isset_bit_vector.clear();
13716
      __isset_bit_vector.or(other.__isset_bit_vector);
13717
      this.success = other.success;
13718
      if (other.isSetEx()) {
13719
        this.ex = new TransactionServiceException(other.ex);
13720
      }
13721
    }
13722
 
13723
    public getOrderCount_result deepCopy() {
13724
      return new getOrderCount_result(this);
13725
    }
13726
 
13727
    @Override
13728
    public void clear() {
13729
      setSuccessIsSet(false);
13730
      this.success = 0;
13731
      this.ex = null;
13732
    }
13733
 
13734
    public int getSuccess() {
13735
      return this.success;
13736
    }
13737
 
13738
    public void setSuccess(int success) {
13739
      this.success = success;
13740
      setSuccessIsSet(true);
13741
    }
13742
 
13743
    public void unsetSuccess() {
13744
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13745
    }
13746
 
13747
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13748
    public boolean isSetSuccess() {
13749
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13750
    }
13751
 
13752
    public void setSuccessIsSet(boolean value) {
13753
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13754
    }
13755
 
13756
    public TransactionServiceException getEx() {
13757
      return this.ex;
13758
    }
13759
 
13760
    public void setEx(TransactionServiceException ex) {
13761
      this.ex = ex;
13762
    }
13763
 
13764
    public void unsetEx() {
13765
      this.ex = null;
13766
    }
13767
 
13768
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
13769
    public boolean isSetEx() {
13770
      return this.ex != null;
13771
    }
13772
 
13773
    public void setExIsSet(boolean value) {
13774
      if (!value) {
13775
        this.ex = null;
13776
      }
13777
    }
13778
 
13779
    public void setFieldValue(_Fields field, Object value) {
13780
      switch (field) {
13781
      case SUCCESS:
13782
        if (value == null) {
13783
          unsetSuccess();
13784
        } else {
13785
          setSuccess((Integer)value);
13786
        }
13787
        break;
13788
 
13789
      case EX:
13790
        if (value == null) {
13791
          unsetEx();
13792
        } else {
13793
          setEx((TransactionServiceException)value);
13794
        }
13795
        break;
13796
 
13797
      }
13798
    }
13799
 
13800
    public Object getFieldValue(_Fields field) {
13801
      switch (field) {
13802
      case SUCCESS:
13803
        return Integer.valueOf(getSuccess());
13804
 
13805
      case EX:
13806
        return getEx();
13807
 
13808
      }
13809
      throw new IllegalStateException();
13810
    }
13811
 
13812
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13813
    public boolean isSet(_Fields field) {
13814
      if (field == null) {
13815
        throw new IllegalArgumentException();
13816
      }
13817
 
13818
      switch (field) {
13819
      case SUCCESS:
13820
        return isSetSuccess();
13821
      case EX:
13822
        return isSetEx();
13823
      }
13824
      throw new IllegalStateException();
13825
    }
13826
 
13827
    @Override
13828
    public boolean equals(Object that) {
13829
      if (that == null)
13830
        return false;
13831
      if (that instanceof getOrderCount_result)
13832
        return this.equals((getOrderCount_result)that);
13833
      return false;
13834
    }
13835
 
13836
    public boolean equals(getOrderCount_result that) {
13837
      if (that == null)
13838
        return false;
13839
 
13840
      boolean this_present_success = true;
13841
      boolean that_present_success = true;
13842
      if (this_present_success || that_present_success) {
13843
        if (!(this_present_success && that_present_success))
13844
          return false;
13845
        if (this.success != that.success)
13846
          return false;
13847
      }
13848
 
13849
      boolean this_present_ex = true && this.isSetEx();
13850
      boolean that_present_ex = true && that.isSetEx();
13851
      if (this_present_ex || that_present_ex) {
13852
        if (!(this_present_ex && that_present_ex))
13853
          return false;
13854
        if (!this.ex.equals(that.ex))
13855
          return false;
13856
      }
13857
 
13858
      return true;
13859
    }
13860
 
13861
    @Override
13862
    public int hashCode() {
13863
      return 0;
13864
    }
13865
 
13866
    public int compareTo(getOrderCount_result other) {
13867
      if (!getClass().equals(other.getClass())) {
13868
        return getClass().getName().compareTo(other.getClass().getName());
13869
      }
13870
 
13871
      int lastComparison = 0;
13872
      getOrderCount_result typedOther = (getOrderCount_result)other;
13873
 
13874
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13875
      if (lastComparison != 0) {
13876
        return lastComparison;
13877
      }
13878
      if (isSetSuccess()) {
13879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13880
        if (lastComparison != 0) {
13881
          return lastComparison;
13882
        }
13883
      }
13884
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
13885
      if (lastComparison != 0) {
13886
        return lastComparison;
13887
      }
13888
      if (isSetEx()) {
13889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
13890
        if (lastComparison != 0) {
13891
          return lastComparison;
13892
        }
13893
      }
13894
      return 0;
13895
    }
13896
 
13897
    public _Fields fieldForId(int fieldId) {
13898
      return _Fields.findByThriftId(fieldId);
13899
    }
13900
 
13901
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13902
      org.apache.thrift.protocol.TField field;
13903
      iprot.readStructBegin();
13904
      while (true)
13905
      {
13906
        field = iprot.readFieldBegin();
13907
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13908
          break;
13909
        }
13910
        switch (field.id) {
13911
          case 0: // SUCCESS
13912
            if (field.type == org.apache.thrift.protocol.TType.I32) {
13913
              this.success = iprot.readI32();
13914
              setSuccessIsSet(true);
13915
            } else { 
13916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13917
            }
13918
            break;
13919
          case 1: // EX
13920
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13921
              this.ex = new TransactionServiceException();
13922
              this.ex.read(iprot);
13923
            } else { 
13924
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13925
            }
13926
            break;
13927
          default:
13928
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13929
        }
13930
        iprot.readFieldEnd();
13931
      }
13932
      iprot.readStructEnd();
13933
      validate();
13934
    }
13935
 
13936
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13937
      oprot.writeStructBegin(STRUCT_DESC);
13938
 
13939
      if (this.isSetSuccess()) {
13940
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13941
        oprot.writeI32(this.success);
13942
        oprot.writeFieldEnd();
13943
      } else if (this.isSetEx()) {
13944
        oprot.writeFieldBegin(EX_FIELD_DESC);
13945
        this.ex.write(oprot);
13946
        oprot.writeFieldEnd();
13947
      }
13948
      oprot.writeFieldStop();
13949
      oprot.writeStructEnd();
13950
    }
13951
 
13952
    @Override
13953
    public String toString() {
13954
      StringBuilder sb = new StringBuilder("getOrderCount_result(");
13955
      boolean first = true;
13956
 
13957
      sb.append("success:");
13958
      sb.append(this.success);
13959
      first = false;
13960
      if (!first) sb.append(", ");
13961
      sb.append("ex:");
13962
      if (this.ex == null) {
13963
        sb.append("null");
13964
      } else {
13965
        sb.append(this.ex);
13966
      }
13967
      first = false;
13968
      sb.append(")");
13969
      return sb.toString();
13970
    }
13971
 
13972
    public void validate() throws org.apache.thrift.TException {
13973
      // check for required fields
13974
    }
13975
 
13976
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13977
      try {
13978
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13979
      } catch (org.apache.thrift.TException te) {
13980
        throw new java.io.IOException(te);
13981
      }
13982
    }
13983
 
13984
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13985
      try {
13986
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13987
      } catch (org.apache.thrift.TException te) {
13988
        throw new java.io.IOException(te);
13989
      }
13990
    }
13991
 
13992
  }
13993
 
3430 rajveer 13994
  public static class getOrdersByBillingDate_args implements org.apache.thrift.TBase<getOrdersByBillingDate_args, getOrdersByBillingDate_args._Fields>, java.io.Serializable, Cloneable   {
13995
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByBillingDate_args");
1022 varun.gupt 13996
 
3430 rajveer 13997
    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);
13998
    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);
13999
    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);
14000
    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);
1022 varun.gupt 14001
 
3430 rajveer 14002
    private OrderStatus status; // required
14003
    private long start_billing_date; // required
14004
    private long end_billing_date; // required
14005
    private long warehouse_id; // required
1022 varun.gupt 14006
 
14007
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14008
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1022 varun.gupt 14009
      /**
14010
       * 
14011
       * @see OrderStatus
14012
       */
14013
      STATUS((short)1, "status"),
14014
      START_BILLING_DATE((short)2, "start_billing_date"),
14015
      END_BILLING_DATE((short)3, "end_billing_date"),
14016
      WAREHOUSE_ID((short)4, "warehouse_id");
14017
 
14018
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14019
 
14020
      static {
14021
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14022
          byName.put(field.getFieldName(), field);
14023
        }
14024
      }
14025
 
14026
      /**
14027
       * Find the _Fields constant that matches fieldId, or null if its not found.
14028
       */
14029
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14030
        switch(fieldId) {
14031
          case 1: // STATUS
14032
            return STATUS;
14033
          case 2: // START_BILLING_DATE
14034
            return START_BILLING_DATE;
14035
          case 3: // END_BILLING_DATE
14036
            return END_BILLING_DATE;
14037
          case 4: // WAREHOUSE_ID
14038
            return WAREHOUSE_ID;
14039
          default:
14040
            return null;
14041
        }
1022 varun.gupt 14042
      }
14043
 
14044
      /**
14045
       * Find the _Fields constant that matches fieldId, throwing an exception
14046
       * if it is not found.
14047
       */
14048
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14049
        _Fields fields = findByThriftId(fieldId);
14050
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14051
        return fields;
14052
      }
14053
 
14054
      /**
14055
       * Find the _Fields constant that matches name, or null if its not found.
14056
       */
14057
      public static _Fields findByName(String name) {
14058
        return byName.get(name);
14059
      }
14060
 
14061
      private final short _thriftId;
14062
      private final String _fieldName;
14063
 
14064
      _Fields(short thriftId, String fieldName) {
14065
        _thriftId = thriftId;
14066
        _fieldName = fieldName;
14067
      }
14068
 
14069
      public short getThriftFieldId() {
14070
        return _thriftId;
14071
      }
14072
 
14073
      public String getFieldName() {
14074
        return _fieldName;
14075
      }
14076
    }
14077
 
14078
    // isset id assignments
14079
    private static final int __START_BILLING_DATE_ISSET_ID = 0;
14080
    private static final int __END_BILLING_DATE_ISSET_ID = 1;
14081
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
14082
    private BitSet __isset_bit_vector = new BitSet(3);
14083
 
3430 rajveer 14084
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1022 varun.gupt 14085
    static {
3430 rajveer 14086
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14087
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14088
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
14089
      tmpMap.put(_Fields.START_BILLING_DATE, new org.apache.thrift.meta_data.FieldMetaData("start_billing_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14090
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14091
      tmpMap.put(_Fields.END_BILLING_DATE, new org.apache.thrift.meta_data.FieldMetaData("end_billing_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14092
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14093
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14094
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14095
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14096
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByBillingDate_args.class, metaDataMap);
1022 varun.gupt 14097
    }
14098
 
14099
    public getOrdersByBillingDate_args() {
14100
    }
14101
 
14102
    public getOrdersByBillingDate_args(
14103
      OrderStatus status,
14104
      long start_billing_date,
14105
      long end_billing_date,
14106
      long warehouse_id)
14107
    {
14108
      this();
14109
      this.status = status;
14110
      this.start_billing_date = start_billing_date;
14111
      setStart_billing_dateIsSet(true);
14112
      this.end_billing_date = end_billing_date;
14113
      setEnd_billing_dateIsSet(true);
14114
      this.warehouse_id = warehouse_id;
14115
      setWarehouse_idIsSet(true);
14116
    }
14117
 
14118
    /**
14119
     * Performs a deep copy on <i>other</i>.
14120
     */
14121
    public getOrdersByBillingDate_args(getOrdersByBillingDate_args other) {
14122
      __isset_bit_vector.clear();
14123
      __isset_bit_vector.or(other.__isset_bit_vector);
14124
      if (other.isSetStatus()) {
14125
        this.status = other.status;
14126
      }
14127
      this.start_billing_date = other.start_billing_date;
14128
      this.end_billing_date = other.end_billing_date;
14129
      this.warehouse_id = other.warehouse_id;
14130
    }
14131
 
14132
    public getOrdersByBillingDate_args deepCopy() {
14133
      return new getOrdersByBillingDate_args(this);
14134
    }
14135
 
3430 rajveer 14136
    @Override
14137
    public void clear() {
14138
      this.status = null;
14139
      setStart_billing_dateIsSet(false);
14140
      this.start_billing_date = 0;
14141
      setEnd_billing_dateIsSet(false);
14142
      this.end_billing_date = 0;
14143
      setWarehouse_idIsSet(false);
14144
      this.warehouse_id = 0;
1022 varun.gupt 14145
    }
14146
 
14147
    /**
14148
     * 
14149
     * @see OrderStatus
14150
     */
14151
    public OrderStatus getStatus() {
14152
      return this.status;
14153
    }
14154
 
14155
    /**
14156
     * 
14157
     * @see OrderStatus
14158
     */
3430 rajveer 14159
    public void setStatus(OrderStatus status) {
1022 varun.gupt 14160
      this.status = status;
14161
    }
14162
 
14163
    public void unsetStatus() {
14164
      this.status = null;
14165
    }
14166
 
3430 rajveer 14167
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
1022 varun.gupt 14168
    public boolean isSetStatus() {
14169
      return this.status != null;
14170
    }
14171
 
14172
    public void setStatusIsSet(boolean value) {
14173
      if (!value) {
14174
        this.status = null;
14175
      }
14176
    }
14177
 
14178
    public long getStart_billing_date() {
14179
      return this.start_billing_date;
14180
    }
14181
 
3430 rajveer 14182
    public void setStart_billing_date(long start_billing_date) {
1022 varun.gupt 14183
      this.start_billing_date = start_billing_date;
14184
      setStart_billing_dateIsSet(true);
14185
    }
14186
 
14187
    public void unsetStart_billing_date() {
14188
      __isset_bit_vector.clear(__START_BILLING_DATE_ISSET_ID);
14189
    }
14190
 
3430 rajveer 14191
    /** Returns true if field start_billing_date is set (has been assigned a value) and false otherwise */
1022 varun.gupt 14192
    public boolean isSetStart_billing_date() {
14193
      return __isset_bit_vector.get(__START_BILLING_DATE_ISSET_ID);
14194
    }
14195
 
14196
    public void setStart_billing_dateIsSet(boolean value) {
14197
      __isset_bit_vector.set(__START_BILLING_DATE_ISSET_ID, value);
14198
    }
14199
 
14200
    public long getEnd_billing_date() {
14201
      return this.end_billing_date;
14202
    }
14203
 
3430 rajveer 14204
    public void setEnd_billing_date(long end_billing_date) {
1022 varun.gupt 14205
      this.end_billing_date = end_billing_date;
14206
      setEnd_billing_dateIsSet(true);
14207
    }
14208
 
14209
    public void unsetEnd_billing_date() {
14210
      __isset_bit_vector.clear(__END_BILLING_DATE_ISSET_ID);
14211
    }
14212
 
3430 rajveer 14213
    /** Returns true if field end_billing_date is set (has been assigned a value) and false otherwise */
1022 varun.gupt 14214
    public boolean isSetEnd_billing_date() {
14215
      return __isset_bit_vector.get(__END_BILLING_DATE_ISSET_ID);
14216
    }
14217
 
14218
    public void setEnd_billing_dateIsSet(boolean value) {
14219
      __isset_bit_vector.set(__END_BILLING_DATE_ISSET_ID, value);
14220
    }
14221
 
14222
    public long getWarehouse_id() {
14223
      return this.warehouse_id;
14224
    }
14225
 
3430 rajveer 14226
    public void setWarehouse_id(long warehouse_id) {
1022 varun.gupt 14227
      this.warehouse_id = warehouse_id;
14228
      setWarehouse_idIsSet(true);
14229
    }
14230
 
14231
    public void unsetWarehouse_id() {
14232
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
14233
    }
14234
 
3430 rajveer 14235
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
1022 varun.gupt 14236
    public boolean isSetWarehouse_id() {
14237
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
14238
    }
14239
 
14240
    public void setWarehouse_idIsSet(boolean value) {
14241
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
14242
    }
14243
 
14244
    public void setFieldValue(_Fields field, Object value) {
14245
      switch (field) {
14246
      case STATUS:
14247
        if (value == null) {
14248
          unsetStatus();
14249
        } else {
14250
          setStatus((OrderStatus)value);
14251
        }
14252
        break;
14253
 
14254
      case START_BILLING_DATE:
14255
        if (value == null) {
14256
          unsetStart_billing_date();
14257
        } else {
14258
          setStart_billing_date((Long)value);
14259
        }
14260
        break;
14261
 
14262
      case END_BILLING_DATE:
14263
        if (value == null) {
14264
          unsetEnd_billing_date();
14265
        } else {
14266
          setEnd_billing_date((Long)value);
14267
        }
14268
        break;
14269
 
14270
      case WAREHOUSE_ID:
14271
        if (value == null) {
14272
          unsetWarehouse_id();
14273
        } else {
14274
          setWarehouse_id((Long)value);
14275
        }
14276
        break;
14277
 
14278
      }
14279
    }
14280
 
14281
    public Object getFieldValue(_Fields field) {
14282
      switch (field) {
14283
      case STATUS:
14284
        return getStatus();
14285
 
14286
      case START_BILLING_DATE:
3430 rajveer 14287
        return Long.valueOf(getStart_billing_date());
1022 varun.gupt 14288
 
14289
      case END_BILLING_DATE:
3430 rajveer 14290
        return Long.valueOf(getEnd_billing_date());
1022 varun.gupt 14291
 
14292
      case WAREHOUSE_ID:
3430 rajveer 14293
        return Long.valueOf(getWarehouse_id());
1022 varun.gupt 14294
 
14295
      }
14296
      throw new IllegalStateException();
14297
    }
14298
 
3430 rajveer 14299
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14300
    public boolean isSet(_Fields field) {
14301
      if (field == null) {
14302
        throw new IllegalArgumentException();
14303
      }
1022 varun.gupt 14304
 
14305
      switch (field) {
14306
      case STATUS:
14307
        return isSetStatus();
14308
      case START_BILLING_DATE:
14309
        return isSetStart_billing_date();
14310
      case END_BILLING_DATE:
14311
        return isSetEnd_billing_date();
14312
      case WAREHOUSE_ID:
14313
        return isSetWarehouse_id();
14314
      }
14315
      throw new IllegalStateException();
14316
    }
14317
 
14318
    @Override
14319
    public boolean equals(Object that) {
14320
      if (that == null)
14321
        return false;
14322
      if (that instanceof getOrdersByBillingDate_args)
14323
        return this.equals((getOrdersByBillingDate_args)that);
14324
      return false;
14325
    }
14326
 
14327
    public boolean equals(getOrdersByBillingDate_args that) {
14328
      if (that == null)
14329
        return false;
14330
 
14331
      boolean this_present_status = true && this.isSetStatus();
14332
      boolean that_present_status = true && that.isSetStatus();
14333
      if (this_present_status || that_present_status) {
14334
        if (!(this_present_status && that_present_status))
14335
          return false;
14336
        if (!this.status.equals(that.status))
14337
          return false;
14338
      }
14339
 
14340
      boolean this_present_start_billing_date = true;
14341
      boolean that_present_start_billing_date = true;
14342
      if (this_present_start_billing_date || that_present_start_billing_date) {
14343
        if (!(this_present_start_billing_date && that_present_start_billing_date))
14344
          return false;
14345
        if (this.start_billing_date != that.start_billing_date)
14346
          return false;
14347
      }
14348
 
14349
      boolean this_present_end_billing_date = true;
14350
      boolean that_present_end_billing_date = true;
14351
      if (this_present_end_billing_date || that_present_end_billing_date) {
14352
        if (!(this_present_end_billing_date && that_present_end_billing_date))
14353
          return false;
14354
        if (this.end_billing_date != that.end_billing_date)
14355
          return false;
14356
      }
14357
 
14358
      boolean this_present_warehouse_id = true;
14359
      boolean that_present_warehouse_id = true;
14360
      if (this_present_warehouse_id || that_present_warehouse_id) {
14361
        if (!(this_present_warehouse_id && that_present_warehouse_id))
14362
          return false;
14363
        if (this.warehouse_id != that.warehouse_id)
14364
          return false;
14365
      }
14366
 
14367
      return true;
14368
    }
14369
 
14370
    @Override
14371
    public int hashCode() {
14372
      return 0;
14373
    }
14374
 
14375
    public int compareTo(getOrdersByBillingDate_args other) {
14376
      if (!getClass().equals(other.getClass())) {
14377
        return getClass().getName().compareTo(other.getClass().getName());
14378
      }
14379
 
14380
      int lastComparison = 0;
14381
      getOrdersByBillingDate_args typedOther = (getOrdersByBillingDate_args)other;
14382
 
3430 rajveer 14383
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
1022 varun.gupt 14384
      if (lastComparison != 0) {
14385
        return lastComparison;
14386
      }
3430 rajveer 14387
      if (isSetStatus()) {
14388
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
14389
        if (lastComparison != 0) {
14390
          return lastComparison;
14391
        }
1022 varun.gupt 14392
      }
3430 rajveer 14393
      lastComparison = Boolean.valueOf(isSetStart_billing_date()).compareTo(typedOther.isSetStart_billing_date());
1022 varun.gupt 14394
      if (lastComparison != 0) {
14395
        return lastComparison;
14396
      }
3430 rajveer 14397
      if (isSetStart_billing_date()) {
14398
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start_billing_date, typedOther.start_billing_date);
14399
        if (lastComparison != 0) {
14400
          return lastComparison;
14401
        }
1022 varun.gupt 14402
      }
3430 rajveer 14403
      lastComparison = Boolean.valueOf(isSetEnd_billing_date()).compareTo(typedOther.isSetEnd_billing_date());
1022 varun.gupt 14404
      if (lastComparison != 0) {
14405
        return lastComparison;
14406
      }
3430 rajveer 14407
      if (isSetEnd_billing_date()) {
14408
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.end_billing_date, typedOther.end_billing_date);
14409
        if (lastComparison != 0) {
14410
          return lastComparison;
14411
        }
1022 varun.gupt 14412
      }
3430 rajveer 14413
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
1022 varun.gupt 14414
      if (lastComparison != 0) {
14415
        return lastComparison;
14416
      }
3430 rajveer 14417
      if (isSetWarehouse_id()) {
14418
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
14419
        if (lastComparison != 0) {
14420
          return lastComparison;
14421
        }
1022 varun.gupt 14422
      }
14423
      return 0;
14424
    }
14425
 
3430 rajveer 14426
    public _Fields fieldForId(int fieldId) {
14427
      return _Fields.findByThriftId(fieldId);
14428
    }
14429
 
14430
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14431
      org.apache.thrift.protocol.TField field;
1022 varun.gupt 14432
      iprot.readStructBegin();
14433
      while (true)
14434
      {
14435
        field = iprot.readFieldBegin();
3430 rajveer 14436
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1022 varun.gupt 14437
          break;
14438
        }
3430 rajveer 14439
        switch (field.id) {
14440
          case 1: // STATUS
14441
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14442
              this.status = OrderStatus.findByValue(iprot.readI32());
14443
            } else { 
14444
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14445
            }
14446
            break;
14447
          case 2: // START_BILLING_DATE
14448
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14449
              this.start_billing_date = iprot.readI64();
14450
              setStart_billing_dateIsSet(true);
14451
            } else { 
14452
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14453
            }
14454
            break;
14455
          case 3: // END_BILLING_DATE
14456
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14457
              this.end_billing_date = iprot.readI64();
14458
              setEnd_billing_dateIsSet(true);
14459
            } else { 
14460
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14461
            }
14462
            break;
14463
          case 4: // WAREHOUSE_ID
14464
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14465
              this.warehouse_id = iprot.readI64();
14466
              setWarehouse_idIsSet(true);
14467
            } else { 
14468
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14469
            }
14470
            break;
14471
          default:
14472
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1022 varun.gupt 14473
        }
3430 rajveer 14474
        iprot.readFieldEnd();
1022 varun.gupt 14475
      }
14476
      iprot.readStructEnd();
14477
      validate();
14478
    }
14479
 
3430 rajveer 14480
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1022 varun.gupt 14481
      validate();
14482
 
14483
      oprot.writeStructBegin(STRUCT_DESC);
14484
      if (this.status != null) {
14485
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
14486
        oprot.writeI32(this.status.getValue());
14487
        oprot.writeFieldEnd();
14488
      }
14489
      oprot.writeFieldBegin(START_BILLING_DATE_FIELD_DESC);
14490
      oprot.writeI64(this.start_billing_date);
14491
      oprot.writeFieldEnd();
14492
      oprot.writeFieldBegin(END_BILLING_DATE_FIELD_DESC);
14493
      oprot.writeI64(this.end_billing_date);
14494
      oprot.writeFieldEnd();
14495
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
14496
      oprot.writeI64(this.warehouse_id);
14497
      oprot.writeFieldEnd();
14498
      oprot.writeFieldStop();
14499
      oprot.writeStructEnd();
14500
    }
14501
 
14502
    @Override
14503
    public String toString() {
14504
      StringBuilder sb = new StringBuilder("getOrdersByBillingDate_args(");
14505
      boolean first = true;
14506
 
14507
      sb.append("status:");
14508
      if (this.status == null) {
14509
        sb.append("null");
14510
      } else {
14511
        sb.append(this.status);
14512
      }
14513
      first = false;
14514
      if (!first) sb.append(", ");
14515
      sb.append("start_billing_date:");
14516
      sb.append(this.start_billing_date);
14517
      first = false;
14518
      if (!first) sb.append(", ");
14519
      sb.append("end_billing_date:");
14520
      sb.append(this.end_billing_date);
14521
      first = false;
14522
      if (!first) sb.append(", ");
14523
      sb.append("warehouse_id:");
14524
      sb.append(this.warehouse_id);
14525
      first = false;
14526
      sb.append(")");
14527
      return sb.toString();
14528
    }
14529
 
3430 rajveer 14530
    public void validate() throws org.apache.thrift.TException {
1022 varun.gupt 14531
      // check for required fields
14532
    }
14533
 
3430 rajveer 14534
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14535
      try {
14536
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14537
      } catch (org.apache.thrift.TException te) {
14538
        throw new java.io.IOException(te);
14539
      }
14540
    }
14541
 
14542
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14543
      try {
14544
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14545
        __isset_bit_vector = new BitSet(1);
14546
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14547
      } catch (org.apache.thrift.TException te) {
14548
        throw new java.io.IOException(te);
14549
      }
14550
    }
14551
 
1022 varun.gupt 14552
  }
14553
 
3430 rajveer 14554
  public static class getOrdersByBillingDate_result implements org.apache.thrift.TBase<getOrdersByBillingDate_result, getOrdersByBillingDate_result._Fields>, java.io.Serializable, Cloneable   {
14555
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByBillingDate_result");
1022 varun.gupt 14556
 
3430 rajveer 14557
    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);
14558
    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);
1022 varun.gupt 14559
 
3430 rajveer 14560
    private List<Order> success; // required
14561
    private TransactionServiceException ex; // required
1022 varun.gupt 14562
 
14563
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14564
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1022 varun.gupt 14565
      SUCCESS((short)0, "success"),
14566
      EX((short)1, "ex");
14567
 
14568
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14569
 
14570
      static {
14571
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14572
          byName.put(field.getFieldName(), field);
14573
        }
14574
      }
14575
 
14576
      /**
14577
       * Find the _Fields constant that matches fieldId, or null if its not found.
14578
       */
14579
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14580
        switch(fieldId) {
14581
          case 0: // SUCCESS
14582
            return SUCCESS;
14583
          case 1: // EX
14584
            return EX;
14585
          default:
14586
            return null;
14587
        }
1022 varun.gupt 14588
      }
14589
 
14590
      /**
14591
       * Find the _Fields constant that matches fieldId, throwing an exception
14592
       * if it is not found.
14593
       */
14594
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14595
        _Fields fields = findByThriftId(fieldId);
14596
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14597
        return fields;
14598
      }
14599
 
14600
      /**
14601
       * Find the _Fields constant that matches name, or null if its not found.
14602
       */
14603
      public static _Fields findByName(String name) {
14604
        return byName.get(name);
14605
      }
14606
 
14607
      private final short _thriftId;
14608
      private final String _fieldName;
14609
 
14610
      _Fields(short thriftId, String fieldName) {
14611
        _thriftId = thriftId;
14612
        _fieldName = fieldName;
14613
      }
14614
 
14615
      public short getThriftFieldId() {
14616
        return _thriftId;
14617
      }
14618
 
14619
      public String getFieldName() {
14620
        return _fieldName;
14621
      }
14622
    }
14623
 
14624
    // isset id assignments
14625
 
3430 rajveer 14626
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1022 varun.gupt 14627
    static {
3430 rajveer 14628
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14629
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14630
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14631
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
14632
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14633
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14634
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14635
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByBillingDate_result.class, metaDataMap);
1022 varun.gupt 14636
    }
14637
 
14638
    public getOrdersByBillingDate_result() {
14639
    }
14640
 
14641
    public getOrdersByBillingDate_result(
14642
      List<Order> success,
14643
      TransactionServiceException ex)
14644
    {
14645
      this();
14646
      this.success = success;
14647
      this.ex = ex;
14648
    }
14649
 
14650
    /**
14651
     * Performs a deep copy on <i>other</i>.
14652
     */
14653
    public getOrdersByBillingDate_result(getOrdersByBillingDate_result other) {
14654
      if (other.isSetSuccess()) {
14655
        List<Order> __this__success = new ArrayList<Order>();
14656
        for (Order other_element : other.success) {
14657
          __this__success.add(new Order(other_element));
14658
        }
14659
        this.success = __this__success;
14660
      }
14661
      if (other.isSetEx()) {
14662
        this.ex = new TransactionServiceException(other.ex);
14663
      }
14664
    }
14665
 
14666
    public getOrdersByBillingDate_result deepCopy() {
14667
      return new getOrdersByBillingDate_result(this);
14668
    }
14669
 
3430 rajveer 14670
    @Override
14671
    public void clear() {
14672
      this.success = null;
14673
      this.ex = null;
1022 varun.gupt 14674
    }
14675
 
14676
    public int getSuccessSize() {
14677
      return (this.success == null) ? 0 : this.success.size();
14678
    }
14679
 
14680
    public java.util.Iterator<Order> getSuccessIterator() {
14681
      return (this.success == null) ? null : this.success.iterator();
14682
    }
14683
 
14684
    public void addToSuccess(Order elem) {
14685
      if (this.success == null) {
14686
        this.success = new ArrayList<Order>();
14687
      }
14688
      this.success.add(elem);
14689
    }
14690
 
14691
    public List<Order> getSuccess() {
14692
      return this.success;
14693
    }
14694
 
3430 rajveer 14695
    public void setSuccess(List<Order> success) {
1022 varun.gupt 14696
      this.success = success;
14697
    }
14698
 
14699
    public void unsetSuccess() {
14700
      this.success = null;
14701
    }
14702
 
3430 rajveer 14703
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1022 varun.gupt 14704
    public boolean isSetSuccess() {
14705
      return this.success != null;
14706
    }
14707
 
14708
    public void setSuccessIsSet(boolean value) {
14709
      if (!value) {
14710
        this.success = null;
14711
      }
14712
    }
14713
 
14714
    public TransactionServiceException getEx() {
14715
      return this.ex;
14716
    }
14717
 
3430 rajveer 14718
    public void setEx(TransactionServiceException ex) {
1022 varun.gupt 14719
      this.ex = ex;
14720
    }
14721
 
14722
    public void unsetEx() {
14723
      this.ex = null;
14724
    }
14725
 
3430 rajveer 14726
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1022 varun.gupt 14727
    public boolean isSetEx() {
14728
      return this.ex != null;
14729
    }
14730
 
14731
    public void setExIsSet(boolean value) {
14732
      if (!value) {
14733
        this.ex = null;
14734
      }
14735
    }
14736
 
14737
    public void setFieldValue(_Fields field, Object value) {
14738
      switch (field) {
14739
      case SUCCESS:
14740
        if (value == null) {
14741
          unsetSuccess();
14742
        } else {
14743
          setSuccess((List<Order>)value);
14744
        }
14745
        break;
14746
 
14747
      case EX:
14748
        if (value == null) {
14749
          unsetEx();
14750
        } else {
14751
          setEx((TransactionServiceException)value);
14752
        }
14753
        break;
14754
 
14755
      }
14756
    }
14757
 
14758
    public Object getFieldValue(_Fields field) {
14759
      switch (field) {
14760
      case SUCCESS:
14761
        return getSuccess();
14762
 
14763
      case EX:
14764
        return getEx();
14765
 
14766
      }
14767
      throw new IllegalStateException();
14768
    }
14769
 
3430 rajveer 14770
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14771
    public boolean isSet(_Fields field) {
14772
      if (field == null) {
14773
        throw new IllegalArgumentException();
14774
      }
1022 varun.gupt 14775
 
14776
      switch (field) {
14777
      case SUCCESS:
14778
        return isSetSuccess();
14779
      case EX:
14780
        return isSetEx();
14781
      }
14782
      throw new IllegalStateException();
14783
    }
14784
 
14785
    @Override
14786
    public boolean equals(Object that) {
14787
      if (that == null)
14788
        return false;
14789
      if (that instanceof getOrdersByBillingDate_result)
14790
        return this.equals((getOrdersByBillingDate_result)that);
14791
      return false;
14792
    }
14793
 
14794
    public boolean equals(getOrdersByBillingDate_result that) {
14795
      if (that == null)
14796
        return false;
14797
 
14798
      boolean this_present_success = true && this.isSetSuccess();
14799
      boolean that_present_success = true && that.isSetSuccess();
14800
      if (this_present_success || that_present_success) {
14801
        if (!(this_present_success && that_present_success))
14802
          return false;
14803
        if (!this.success.equals(that.success))
14804
          return false;
14805
      }
14806
 
14807
      boolean this_present_ex = true && this.isSetEx();
14808
      boolean that_present_ex = true && that.isSetEx();
14809
      if (this_present_ex || that_present_ex) {
14810
        if (!(this_present_ex && that_present_ex))
14811
          return false;
14812
        if (!this.ex.equals(that.ex))
14813
          return false;
14814
      }
14815
 
14816
      return true;
14817
    }
14818
 
14819
    @Override
14820
    public int hashCode() {
14821
      return 0;
14822
    }
14823
 
14824
    public int compareTo(getOrdersByBillingDate_result other) {
14825
      if (!getClass().equals(other.getClass())) {
14826
        return getClass().getName().compareTo(other.getClass().getName());
14827
      }
14828
 
14829
      int lastComparison = 0;
14830
      getOrdersByBillingDate_result typedOther = (getOrdersByBillingDate_result)other;
14831
 
3430 rajveer 14832
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1022 varun.gupt 14833
      if (lastComparison != 0) {
14834
        return lastComparison;
14835
      }
3430 rajveer 14836
      if (isSetSuccess()) {
14837
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14838
        if (lastComparison != 0) {
14839
          return lastComparison;
14840
        }
1022 varun.gupt 14841
      }
3430 rajveer 14842
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1022 varun.gupt 14843
      if (lastComparison != 0) {
14844
        return lastComparison;
14845
      }
3430 rajveer 14846
      if (isSetEx()) {
14847
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
14848
        if (lastComparison != 0) {
14849
          return lastComparison;
14850
        }
1022 varun.gupt 14851
      }
14852
      return 0;
14853
    }
14854
 
3430 rajveer 14855
    public _Fields fieldForId(int fieldId) {
14856
      return _Fields.findByThriftId(fieldId);
14857
    }
14858
 
14859
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14860
      org.apache.thrift.protocol.TField field;
1022 varun.gupt 14861
      iprot.readStructBegin();
14862
      while (true)
14863
      {
14864
        field = iprot.readFieldBegin();
3430 rajveer 14865
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1022 varun.gupt 14866
          break;
14867
        }
3430 rajveer 14868
        switch (field.id) {
14869
          case 0: // SUCCESS
14870
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14871
              {
4133 chandransh 14872
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
14873
                this.success = new ArrayList<Order>(_list32.size);
14874
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1022 varun.gupt 14875
                {
4133 chandransh 14876
                  Order _elem34; // required
14877
                  _elem34 = new Order();
14878
                  _elem34.read(iprot);
14879
                  this.success.add(_elem34);
1022 varun.gupt 14880
                }
3430 rajveer 14881
                iprot.readListEnd();
1022 varun.gupt 14882
              }
3430 rajveer 14883
            } else { 
14884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14885
            }
14886
            break;
14887
          case 1: // EX
14888
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14889
              this.ex = new TransactionServiceException();
14890
              this.ex.read(iprot);
14891
            } else { 
14892
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14893
            }
14894
            break;
14895
          default:
14896
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1022 varun.gupt 14897
        }
3430 rajveer 14898
        iprot.readFieldEnd();
1022 varun.gupt 14899
      }
14900
      iprot.readStructEnd();
14901
      validate();
14902
    }
14903
 
3430 rajveer 14904
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1022 varun.gupt 14905
      oprot.writeStructBegin(STRUCT_DESC);
14906
 
14907
      if (this.isSetSuccess()) {
14908
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14909
        {
3430 rajveer 14910
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 14911
          for (Order _iter35 : this.success)
1022 varun.gupt 14912
          {
4133 chandransh 14913
            _iter35.write(oprot);
1022 varun.gupt 14914
          }
14915
          oprot.writeListEnd();
14916
        }
14917
        oprot.writeFieldEnd();
14918
      } else if (this.isSetEx()) {
14919
        oprot.writeFieldBegin(EX_FIELD_DESC);
14920
        this.ex.write(oprot);
14921
        oprot.writeFieldEnd();
14922
      }
14923
      oprot.writeFieldStop();
14924
      oprot.writeStructEnd();
14925
    }
14926
 
14927
    @Override
14928
    public String toString() {
14929
      StringBuilder sb = new StringBuilder("getOrdersByBillingDate_result(");
14930
      boolean first = true;
14931
 
14932
      sb.append("success:");
14933
      if (this.success == null) {
14934
        sb.append("null");
14935
      } else {
14936
        sb.append(this.success);
14937
      }
14938
      first = false;
14939
      if (!first) sb.append(", ");
14940
      sb.append("ex:");
14941
      if (this.ex == null) {
14942
        sb.append("null");
14943
      } else {
14944
        sb.append(this.ex);
14945
      }
14946
      first = false;
14947
      sb.append(")");
14948
      return sb.toString();
14949
    }
14950
 
3430 rajveer 14951
    public void validate() throws org.apache.thrift.TException {
1022 varun.gupt 14952
      // check for required fields
14953
    }
14954
 
3430 rajveer 14955
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14956
      try {
14957
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14958
      } catch (org.apache.thrift.TException te) {
14959
        throw new java.io.IOException(te);
14960
      }
14961
    }
14962
 
14963
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14964
      try {
14965
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14966
      } catch (org.apache.thrift.TException te) {
14967
        throw new java.io.IOException(te);
14968
      }
14969
    }
14970
 
1022 varun.gupt 14971
  }
14972
 
3430 rajveer 14973
  public static class getOrdersByShippingDate_args implements org.apache.thrift.TBase<getOrdersByShippingDate_args, getOrdersByShippingDate_args._Fields>, java.io.Serializable, Cloneable   {
14974
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByShippingDate_args");
3427 chandransh 14975
 
3430 rajveer 14976
    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);
14977
    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);
14978
    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);
14979
    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);
3451 chandransh 14980
    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);
3427 chandransh 14981
 
3430 rajveer 14982
    private long fromShippingDate; // required
14983
    private long toShippingDate; // required
14984
    private long providerId; // required
14985
    private long warehouseId; // required
3451 chandransh 14986
    private boolean cod; // required
3427 chandransh 14987
 
14988
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14989
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3427 chandransh 14990
      FROM_SHIPPING_DATE((short)1, "fromShippingDate"),
14991
      TO_SHIPPING_DATE((short)2, "toShippingDate"),
14992
      PROVIDER_ID((short)3, "providerId"),
3451 chandransh 14993
      WAREHOUSE_ID((short)4, "warehouseId"),
14994
      COD((short)5, "cod");
3427 chandransh 14995
 
14996
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14997
 
14998
      static {
14999
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15000
          byName.put(field.getFieldName(), field);
15001
        }
15002
      }
15003
 
15004
      /**
15005
       * Find the _Fields constant that matches fieldId, or null if its not found.
15006
       */
15007
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15008
        switch(fieldId) {
15009
          case 1: // FROM_SHIPPING_DATE
15010
            return FROM_SHIPPING_DATE;
15011
          case 2: // TO_SHIPPING_DATE
15012
            return TO_SHIPPING_DATE;
15013
          case 3: // PROVIDER_ID
15014
            return PROVIDER_ID;
15015
          case 4: // WAREHOUSE_ID
15016
            return WAREHOUSE_ID;
3451 chandransh 15017
          case 5: // COD
15018
            return COD;
3430 rajveer 15019
          default:
15020
            return null;
15021
        }
3427 chandransh 15022
      }
15023
 
15024
      /**
15025
       * Find the _Fields constant that matches fieldId, throwing an exception
15026
       * if it is not found.
15027
       */
15028
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15029
        _Fields fields = findByThriftId(fieldId);
15030
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15031
        return fields;
15032
      }
15033
 
15034
      /**
15035
       * Find the _Fields constant that matches name, or null if its not found.
15036
       */
15037
      public static _Fields findByName(String name) {
15038
        return byName.get(name);
15039
      }
15040
 
15041
      private final short _thriftId;
15042
      private final String _fieldName;
15043
 
15044
      _Fields(short thriftId, String fieldName) {
15045
        _thriftId = thriftId;
15046
        _fieldName = fieldName;
15047
      }
15048
 
15049
      public short getThriftFieldId() {
15050
        return _thriftId;
15051
      }
15052
 
15053
      public String getFieldName() {
15054
        return _fieldName;
15055
      }
15056
    }
15057
 
15058
    // isset id assignments
15059
    private static final int __FROMSHIPPINGDATE_ISSET_ID = 0;
15060
    private static final int __TOSHIPPINGDATE_ISSET_ID = 1;
15061
    private static final int __PROVIDERID_ISSET_ID = 2;
15062
    private static final int __WAREHOUSEID_ISSET_ID = 3;
3451 chandransh 15063
    private static final int __COD_ISSET_ID = 4;
15064
    private BitSet __isset_bit_vector = new BitSet(5);
3427 chandransh 15065
 
3430 rajveer 15066
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3427 chandransh 15067
    static {
3430 rajveer 15068
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15069
      tmpMap.put(_Fields.FROM_SHIPPING_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromShippingDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15070
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15071
      tmpMap.put(_Fields.TO_SHIPPING_DATE, new org.apache.thrift.meta_data.FieldMetaData("toShippingDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15072
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15073
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15074
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15075
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15076
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3451 chandransh 15077
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15078
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3430 rajveer 15079
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15080
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByShippingDate_args.class, metaDataMap);
3427 chandransh 15081
    }
15082
 
15083
    public getOrdersByShippingDate_args() {
15084
    }
15085
 
15086
    public getOrdersByShippingDate_args(
15087
      long fromShippingDate,
15088
      long toShippingDate,
15089
      long providerId,
3451 chandransh 15090
      long warehouseId,
15091
      boolean cod)
3427 chandransh 15092
    {
15093
      this();
15094
      this.fromShippingDate = fromShippingDate;
15095
      setFromShippingDateIsSet(true);
15096
      this.toShippingDate = toShippingDate;
15097
      setToShippingDateIsSet(true);
15098
      this.providerId = providerId;
15099
      setProviderIdIsSet(true);
15100
      this.warehouseId = warehouseId;
15101
      setWarehouseIdIsSet(true);
3451 chandransh 15102
      this.cod = cod;
15103
      setCodIsSet(true);
3427 chandransh 15104
    }
15105
 
15106
    /**
15107
     * Performs a deep copy on <i>other</i>.
15108
     */
15109
    public getOrdersByShippingDate_args(getOrdersByShippingDate_args other) {
15110
      __isset_bit_vector.clear();
15111
      __isset_bit_vector.or(other.__isset_bit_vector);
15112
      this.fromShippingDate = other.fromShippingDate;
15113
      this.toShippingDate = other.toShippingDate;
15114
      this.providerId = other.providerId;
15115
      this.warehouseId = other.warehouseId;
3451 chandransh 15116
      this.cod = other.cod;
3427 chandransh 15117
    }
15118
 
15119
    public getOrdersByShippingDate_args deepCopy() {
15120
      return new getOrdersByShippingDate_args(this);
15121
    }
15122
 
3430 rajveer 15123
    @Override
15124
    public void clear() {
15125
      setFromShippingDateIsSet(false);
15126
      this.fromShippingDate = 0;
15127
      setToShippingDateIsSet(false);
15128
      this.toShippingDate = 0;
15129
      setProviderIdIsSet(false);
15130
      this.providerId = 0;
15131
      setWarehouseIdIsSet(false);
15132
      this.warehouseId = 0;
3451 chandransh 15133
      setCodIsSet(false);
15134
      this.cod = false;
3427 chandransh 15135
    }
15136
 
15137
    public long getFromShippingDate() {
15138
      return this.fromShippingDate;
15139
    }
15140
 
3430 rajveer 15141
    public void setFromShippingDate(long fromShippingDate) {
3427 chandransh 15142
      this.fromShippingDate = fromShippingDate;
15143
      setFromShippingDateIsSet(true);
15144
    }
15145
 
15146
    public void unsetFromShippingDate() {
15147
      __isset_bit_vector.clear(__FROMSHIPPINGDATE_ISSET_ID);
15148
    }
15149
 
3430 rajveer 15150
    /** Returns true if field fromShippingDate is set (has been assigned a value) and false otherwise */
3427 chandransh 15151
    public boolean isSetFromShippingDate() {
15152
      return __isset_bit_vector.get(__FROMSHIPPINGDATE_ISSET_ID);
15153
    }
15154
 
15155
    public void setFromShippingDateIsSet(boolean value) {
15156
      __isset_bit_vector.set(__FROMSHIPPINGDATE_ISSET_ID, value);
15157
    }
15158
 
15159
    public long getToShippingDate() {
15160
      return this.toShippingDate;
15161
    }
15162
 
3430 rajveer 15163
    public void setToShippingDate(long toShippingDate) {
3427 chandransh 15164
      this.toShippingDate = toShippingDate;
15165
      setToShippingDateIsSet(true);
15166
    }
15167
 
15168
    public void unsetToShippingDate() {
15169
      __isset_bit_vector.clear(__TOSHIPPINGDATE_ISSET_ID);
15170
    }
15171
 
3430 rajveer 15172
    /** Returns true if field toShippingDate is set (has been assigned a value) and false otherwise */
3427 chandransh 15173
    public boolean isSetToShippingDate() {
15174
      return __isset_bit_vector.get(__TOSHIPPINGDATE_ISSET_ID);
15175
    }
15176
 
15177
    public void setToShippingDateIsSet(boolean value) {
15178
      __isset_bit_vector.set(__TOSHIPPINGDATE_ISSET_ID, value);
15179
    }
15180
 
15181
    public long getProviderId() {
15182
      return this.providerId;
15183
    }
15184
 
3430 rajveer 15185
    public void setProviderId(long providerId) {
3427 chandransh 15186
      this.providerId = providerId;
15187
      setProviderIdIsSet(true);
15188
    }
15189
 
15190
    public void unsetProviderId() {
15191
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15192
    }
15193
 
3430 rajveer 15194
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3427 chandransh 15195
    public boolean isSetProviderId() {
15196
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15197
    }
15198
 
15199
    public void setProviderIdIsSet(boolean value) {
15200
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15201
    }
15202
 
15203
    public long getWarehouseId() {
15204
      return this.warehouseId;
15205
    }
15206
 
3430 rajveer 15207
    public void setWarehouseId(long warehouseId) {
3427 chandransh 15208
      this.warehouseId = warehouseId;
15209
      setWarehouseIdIsSet(true);
15210
    }
15211
 
15212
    public void unsetWarehouseId() {
15213
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
15214
    }
15215
 
3430 rajveer 15216
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
3427 chandransh 15217
    public boolean isSetWarehouseId() {
15218
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
15219
    }
15220
 
15221
    public void setWarehouseIdIsSet(boolean value) {
15222
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
15223
    }
15224
 
3451 chandransh 15225
    public boolean isCod() {
15226
      return this.cod;
15227
    }
15228
 
15229
    public void setCod(boolean cod) {
15230
      this.cod = cod;
15231
      setCodIsSet(true);
15232
    }
15233
 
15234
    public void unsetCod() {
15235
      __isset_bit_vector.clear(__COD_ISSET_ID);
15236
    }
15237
 
15238
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15239
    public boolean isSetCod() {
15240
      return __isset_bit_vector.get(__COD_ISSET_ID);
15241
    }
15242
 
15243
    public void setCodIsSet(boolean value) {
15244
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15245
    }
15246
 
3427 chandransh 15247
    public void setFieldValue(_Fields field, Object value) {
15248
      switch (field) {
15249
      case FROM_SHIPPING_DATE:
15250
        if (value == null) {
15251
          unsetFromShippingDate();
15252
        } else {
15253
          setFromShippingDate((Long)value);
15254
        }
15255
        break;
15256
 
15257
      case TO_SHIPPING_DATE:
15258
        if (value == null) {
15259
          unsetToShippingDate();
15260
        } else {
15261
          setToShippingDate((Long)value);
15262
        }
15263
        break;
15264
 
15265
      case PROVIDER_ID:
15266
        if (value == null) {
15267
          unsetProviderId();
15268
        } else {
15269
          setProviderId((Long)value);
15270
        }
15271
        break;
15272
 
15273
      case WAREHOUSE_ID:
15274
        if (value == null) {
15275
          unsetWarehouseId();
15276
        } else {
15277
          setWarehouseId((Long)value);
15278
        }
15279
        break;
15280
 
3451 chandransh 15281
      case COD:
15282
        if (value == null) {
15283
          unsetCod();
15284
        } else {
15285
          setCod((Boolean)value);
15286
        }
15287
        break;
15288
 
3427 chandransh 15289
      }
15290
    }
15291
 
15292
    public Object getFieldValue(_Fields field) {
15293
      switch (field) {
15294
      case FROM_SHIPPING_DATE:
3430 rajveer 15295
        return Long.valueOf(getFromShippingDate());
3427 chandransh 15296
 
15297
      case TO_SHIPPING_DATE:
3430 rajveer 15298
        return Long.valueOf(getToShippingDate());
3427 chandransh 15299
 
15300
      case PROVIDER_ID:
3430 rajveer 15301
        return Long.valueOf(getProviderId());
3427 chandransh 15302
 
15303
      case WAREHOUSE_ID:
3430 rajveer 15304
        return Long.valueOf(getWarehouseId());
3427 chandransh 15305
 
3451 chandransh 15306
      case COD:
15307
        return Boolean.valueOf(isCod());
15308
 
3427 chandransh 15309
      }
15310
      throw new IllegalStateException();
15311
    }
15312
 
3430 rajveer 15313
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15314
    public boolean isSet(_Fields field) {
15315
      if (field == null) {
15316
        throw new IllegalArgumentException();
15317
      }
3427 chandransh 15318
 
15319
      switch (field) {
15320
      case FROM_SHIPPING_DATE:
15321
        return isSetFromShippingDate();
15322
      case TO_SHIPPING_DATE:
15323
        return isSetToShippingDate();
15324
      case PROVIDER_ID:
15325
        return isSetProviderId();
15326
      case WAREHOUSE_ID:
15327
        return isSetWarehouseId();
3451 chandransh 15328
      case COD:
15329
        return isSetCod();
3427 chandransh 15330
      }
15331
      throw new IllegalStateException();
15332
    }
15333
 
15334
    @Override
15335
    public boolean equals(Object that) {
15336
      if (that == null)
15337
        return false;
15338
      if (that instanceof getOrdersByShippingDate_args)
15339
        return this.equals((getOrdersByShippingDate_args)that);
15340
      return false;
15341
    }
15342
 
15343
    public boolean equals(getOrdersByShippingDate_args that) {
15344
      if (that == null)
15345
        return false;
15346
 
15347
      boolean this_present_fromShippingDate = true;
15348
      boolean that_present_fromShippingDate = true;
15349
      if (this_present_fromShippingDate || that_present_fromShippingDate) {
15350
        if (!(this_present_fromShippingDate && that_present_fromShippingDate))
15351
          return false;
15352
        if (this.fromShippingDate != that.fromShippingDate)
15353
          return false;
15354
      }
15355
 
15356
      boolean this_present_toShippingDate = true;
15357
      boolean that_present_toShippingDate = true;
15358
      if (this_present_toShippingDate || that_present_toShippingDate) {
15359
        if (!(this_present_toShippingDate && that_present_toShippingDate))
15360
          return false;
15361
        if (this.toShippingDate != that.toShippingDate)
15362
          return false;
15363
      }
15364
 
15365
      boolean this_present_providerId = true;
15366
      boolean that_present_providerId = true;
15367
      if (this_present_providerId || that_present_providerId) {
15368
        if (!(this_present_providerId && that_present_providerId))
15369
          return false;
15370
        if (this.providerId != that.providerId)
15371
          return false;
15372
      }
15373
 
15374
      boolean this_present_warehouseId = true;
15375
      boolean that_present_warehouseId = true;
15376
      if (this_present_warehouseId || that_present_warehouseId) {
15377
        if (!(this_present_warehouseId && that_present_warehouseId))
15378
          return false;
15379
        if (this.warehouseId != that.warehouseId)
15380
          return false;
15381
      }
15382
 
3451 chandransh 15383
      boolean this_present_cod = true;
15384
      boolean that_present_cod = true;
15385
      if (this_present_cod || that_present_cod) {
15386
        if (!(this_present_cod && that_present_cod))
15387
          return false;
15388
        if (this.cod != that.cod)
15389
          return false;
15390
      }
15391
 
3427 chandransh 15392
      return true;
15393
    }
15394
 
15395
    @Override
15396
    public int hashCode() {
15397
      return 0;
15398
    }
15399
 
15400
    public int compareTo(getOrdersByShippingDate_args other) {
15401
      if (!getClass().equals(other.getClass())) {
15402
        return getClass().getName().compareTo(other.getClass().getName());
15403
      }
15404
 
15405
      int lastComparison = 0;
15406
      getOrdersByShippingDate_args typedOther = (getOrdersByShippingDate_args)other;
15407
 
3430 rajveer 15408
      lastComparison = Boolean.valueOf(isSetFromShippingDate()).compareTo(typedOther.isSetFromShippingDate());
3427 chandransh 15409
      if (lastComparison != 0) {
15410
        return lastComparison;
15411
      }
3430 rajveer 15412
      if (isSetFromShippingDate()) {
15413
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromShippingDate, typedOther.fromShippingDate);
15414
        if (lastComparison != 0) {
15415
          return lastComparison;
15416
        }
3427 chandransh 15417
      }
3430 rajveer 15418
      lastComparison = Boolean.valueOf(isSetToShippingDate()).compareTo(typedOther.isSetToShippingDate());
3427 chandransh 15419
      if (lastComparison != 0) {
15420
        return lastComparison;
15421
      }
3430 rajveer 15422
      if (isSetToShippingDate()) {
15423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toShippingDate, typedOther.toShippingDate);
15424
        if (lastComparison != 0) {
15425
          return lastComparison;
15426
        }
3427 chandransh 15427
      }
3430 rajveer 15428
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
3427 chandransh 15429
      if (lastComparison != 0) {
15430
        return lastComparison;
15431
      }
3430 rajveer 15432
      if (isSetProviderId()) {
15433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15434
        if (lastComparison != 0) {
15435
          return lastComparison;
15436
        }
3427 chandransh 15437
      }
3430 rajveer 15438
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
3427 chandransh 15439
      if (lastComparison != 0) {
15440
        return lastComparison;
15441
      }
3430 rajveer 15442
      if (isSetWarehouseId()) {
15443
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
15444
        if (lastComparison != 0) {
15445
          return lastComparison;
15446
        }
3427 chandransh 15447
      }
3451 chandransh 15448
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15449
      if (lastComparison != 0) {
15450
        return lastComparison;
15451
      }
15452
      if (isSetCod()) {
15453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15454
        if (lastComparison != 0) {
15455
          return lastComparison;
15456
        }
15457
      }
3427 chandransh 15458
      return 0;
15459
    }
15460
 
3430 rajveer 15461
    public _Fields fieldForId(int fieldId) {
15462
      return _Fields.findByThriftId(fieldId);
15463
    }
15464
 
15465
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15466
      org.apache.thrift.protocol.TField field;
3427 chandransh 15467
      iprot.readStructBegin();
15468
      while (true)
15469
      {
15470
        field = iprot.readFieldBegin();
3430 rajveer 15471
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3427 chandransh 15472
          break;
15473
        }
3430 rajveer 15474
        switch (field.id) {
15475
          case 1: // FROM_SHIPPING_DATE
15476
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15477
              this.fromShippingDate = iprot.readI64();
15478
              setFromShippingDateIsSet(true);
15479
            } else { 
15480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15481
            }
15482
            break;
15483
          case 2: // TO_SHIPPING_DATE
15484
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15485
              this.toShippingDate = iprot.readI64();
15486
              setToShippingDateIsSet(true);
15487
            } else { 
15488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15489
            }
15490
            break;
15491
          case 3: // PROVIDER_ID
15492
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15493
              this.providerId = iprot.readI64();
15494
              setProviderIdIsSet(true);
15495
            } else { 
15496
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15497
            }
15498
            break;
15499
          case 4: // WAREHOUSE_ID
15500
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15501
              this.warehouseId = iprot.readI64();
15502
              setWarehouseIdIsSet(true);
15503
            } else { 
15504
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15505
            }
15506
            break;
3451 chandransh 15507
          case 5: // COD
15508
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15509
              this.cod = iprot.readBool();
15510
              setCodIsSet(true);
15511
            } else { 
15512
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15513
            }
15514
            break;
3430 rajveer 15515
          default:
15516
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3427 chandransh 15517
        }
3430 rajveer 15518
        iprot.readFieldEnd();
3427 chandransh 15519
      }
15520
      iprot.readStructEnd();
15521
      validate();
15522
    }
15523
 
3430 rajveer 15524
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3427 chandransh 15525
      validate();
15526
 
15527
      oprot.writeStructBegin(STRUCT_DESC);
15528
      oprot.writeFieldBegin(FROM_SHIPPING_DATE_FIELD_DESC);
15529
      oprot.writeI64(this.fromShippingDate);
15530
      oprot.writeFieldEnd();
15531
      oprot.writeFieldBegin(TO_SHIPPING_DATE_FIELD_DESC);
15532
      oprot.writeI64(this.toShippingDate);
15533
      oprot.writeFieldEnd();
15534
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15535
      oprot.writeI64(this.providerId);
15536
      oprot.writeFieldEnd();
15537
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
15538
      oprot.writeI64(this.warehouseId);
15539
      oprot.writeFieldEnd();
3451 chandransh 15540
      oprot.writeFieldBegin(COD_FIELD_DESC);
15541
      oprot.writeBool(this.cod);
15542
      oprot.writeFieldEnd();
3427 chandransh 15543
      oprot.writeFieldStop();
15544
      oprot.writeStructEnd();
15545
    }
15546
 
15547
    @Override
15548
    public String toString() {
15549
      StringBuilder sb = new StringBuilder("getOrdersByShippingDate_args(");
15550
      boolean first = true;
15551
 
15552
      sb.append("fromShippingDate:");
15553
      sb.append(this.fromShippingDate);
15554
      first = false;
15555
      if (!first) sb.append(", ");
15556
      sb.append("toShippingDate:");
15557
      sb.append(this.toShippingDate);
15558
      first = false;
15559
      if (!first) sb.append(", ");
15560
      sb.append("providerId:");
15561
      sb.append(this.providerId);
15562
      first = false;
15563
      if (!first) sb.append(", ");
15564
      sb.append("warehouseId:");
15565
      sb.append(this.warehouseId);
15566
      first = false;
3451 chandransh 15567
      if (!first) sb.append(", ");
15568
      sb.append("cod:");
15569
      sb.append(this.cod);
15570
      first = false;
3427 chandransh 15571
      sb.append(")");
15572
      return sb.toString();
15573
    }
15574
 
3430 rajveer 15575
    public void validate() throws org.apache.thrift.TException {
3427 chandransh 15576
      // check for required fields
15577
    }
15578
 
3430 rajveer 15579
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15580
      try {
15581
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15582
      } catch (org.apache.thrift.TException te) {
15583
        throw new java.io.IOException(te);
15584
      }
15585
    }
15586
 
15587
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15588
      try {
15589
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15590
      } catch (org.apache.thrift.TException te) {
15591
        throw new java.io.IOException(te);
15592
      }
15593
    }
15594
 
3427 chandransh 15595
  }
15596
 
3430 rajveer 15597
  public static class getOrdersByShippingDate_result implements org.apache.thrift.TBase<getOrdersByShippingDate_result, getOrdersByShippingDate_result._Fields>, java.io.Serializable, Cloneable   {
15598
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByShippingDate_result");
3427 chandransh 15599
 
3430 rajveer 15600
    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);
15601
    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);
3427 chandransh 15602
 
3430 rajveer 15603
    private List<Order> success; // required
15604
    private TransactionServiceException ex; // required
3427 chandransh 15605
 
15606
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15607
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3427 chandransh 15608
      SUCCESS((short)0, "success"),
15609
      EX((short)1, "ex");
15610
 
15611
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15612
 
15613
      static {
15614
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15615
          byName.put(field.getFieldName(), field);
15616
        }
15617
      }
15618
 
15619
      /**
15620
       * Find the _Fields constant that matches fieldId, or null if its not found.
15621
       */
15622
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15623
        switch(fieldId) {
15624
          case 0: // SUCCESS
15625
            return SUCCESS;
15626
          case 1: // EX
15627
            return EX;
15628
          default:
15629
            return null;
15630
        }
3427 chandransh 15631
      }
15632
 
15633
      /**
15634
       * Find the _Fields constant that matches fieldId, throwing an exception
15635
       * if it is not found.
15636
       */
15637
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15638
        _Fields fields = findByThriftId(fieldId);
15639
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15640
        return fields;
15641
      }
15642
 
15643
      /**
15644
       * Find the _Fields constant that matches name, or null if its not found.
15645
       */
15646
      public static _Fields findByName(String name) {
15647
        return byName.get(name);
15648
      }
15649
 
15650
      private final short _thriftId;
15651
      private final String _fieldName;
15652
 
15653
      _Fields(short thriftId, String fieldName) {
15654
        _thriftId = thriftId;
15655
        _fieldName = fieldName;
15656
      }
15657
 
15658
      public short getThriftFieldId() {
15659
        return _thriftId;
15660
      }
15661
 
15662
      public String getFieldName() {
15663
        return _fieldName;
15664
      }
15665
    }
15666
 
15667
    // isset id assignments
15668
 
3430 rajveer 15669
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3427 chandransh 15670
    static {
3430 rajveer 15671
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15672
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15673
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15674
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
15675
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15676
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15677
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15678
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByShippingDate_result.class, metaDataMap);
3427 chandransh 15679
    }
15680
 
15681
    public getOrdersByShippingDate_result() {
15682
    }
15683
 
15684
    public getOrdersByShippingDate_result(
15685
      List<Order> success,
15686
      TransactionServiceException ex)
15687
    {
15688
      this();
15689
      this.success = success;
15690
      this.ex = ex;
15691
    }
15692
 
15693
    /**
15694
     * Performs a deep copy on <i>other</i>.
15695
     */
15696
    public getOrdersByShippingDate_result(getOrdersByShippingDate_result other) {
15697
      if (other.isSetSuccess()) {
15698
        List<Order> __this__success = new ArrayList<Order>();
15699
        for (Order other_element : other.success) {
15700
          __this__success.add(new Order(other_element));
15701
        }
15702
        this.success = __this__success;
15703
      }
15704
      if (other.isSetEx()) {
15705
        this.ex = new TransactionServiceException(other.ex);
15706
      }
15707
    }
15708
 
15709
    public getOrdersByShippingDate_result deepCopy() {
15710
      return new getOrdersByShippingDate_result(this);
15711
    }
15712
 
3430 rajveer 15713
    @Override
15714
    public void clear() {
15715
      this.success = null;
15716
      this.ex = null;
3427 chandransh 15717
    }
15718
 
15719
    public int getSuccessSize() {
15720
      return (this.success == null) ? 0 : this.success.size();
15721
    }
15722
 
15723
    public java.util.Iterator<Order> getSuccessIterator() {
15724
      return (this.success == null) ? null : this.success.iterator();
15725
    }
15726
 
15727
    public void addToSuccess(Order elem) {
15728
      if (this.success == null) {
15729
        this.success = new ArrayList<Order>();
15730
      }
15731
      this.success.add(elem);
15732
    }
15733
 
15734
    public List<Order> getSuccess() {
15735
      return this.success;
15736
    }
15737
 
3430 rajveer 15738
    public void setSuccess(List<Order> success) {
3427 chandransh 15739
      this.success = success;
15740
    }
15741
 
15742
    public void unsetSuccess() {
15743
      this.success = null;
15744
    }
15745
 
3430 rajveer 15746
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3427 chandransh 15747
    public boolean isSetSuccess() {
15748
      return this.success != null;
15749
    }
15750
 
15751
    public void setSuccessIsSet(boolean value) {
15752
      if (!value) {
15753
        this.success = null;
15754
      }
15755
    }
15756
 
15757
    public TransactionServiceException getEx() {
15758
      return this.ex;
15759
    }
15760
 
3430 rajveer 15761
    public void setEx(TransactionServiceException ex) {
3427 chandransh 15762
      this.ex = ex;
15763
    }
15764
 
15765
    public void unsetEx() {
15766
      this.ex = null;
15767
    }
15768
 
3430 rajveer 15769
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3427 chandransh 15770
    public boolean isSetEx() {
15771
      return this.ex != null;
15772
    }
15773
 
15774
    public void setExIsSet(boolean value) {
15775
      if (!value) {
15776
        this.ex = null;
15777
      }
15778
    }
15779
 
15780
    public void setFieldValue(_Fields field, Object value) {
15781
      switch (field) {
15782
      case SUCCESS:
15783
        if (value == null) {
15784
          unsetSuccess();
15785
        } else {
15786
          setSuccess((List<Order>)value);
15787
        }
15788
        break;
15789
 
15790
      case EX:
15791
        if (value == null) {
15792
          unsetEx();
15793
        } else {
15794
          setEx((TransactionServiceException)value);
15795
        }
15796
        break;
15797
 
15798
      }
15799
    }
15800
 
15801
    public Object getFieldValue(_Fields field) {
15802
      switch (field) {
15803
      case SUCCESS:
15804
        return getSuccess();
15805
 
15806
      case EX:
15807
        return getEx();
15808
 
15809
      }
15810
      throw new IllegalStateException();
15811
    }
15812
 
3430 rajveer 15813
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15814
    public boolean isSet(_Fields field) {
15815
      if (field == null) {
15816
        throw new IllegalArgumentException();
15817
      }
3427 chandransh 15818
 
15819
      switch (field) {
15820
      case SUCCESS:
15821
        return isSetSuccess();
15822
      case EX:
15823
        return isSetEx();
15824
      }
15825
      throw new IllegalStateException();
15826
    }
15827
 
15828
    @Override
15829
    public boolean equals(Object that) {
15830
      if (that == null)
15831
        return false;
15832
      if (that instanceof getOrdersByShippingDate_result)
15833
        return this.equals((getOrdersByShippingDate_result)that);
15834
      return false;
15835
    }
15836
 
15837
    public boolean equals(getOrdersByShippingDate_result that) {
15838
      if (that == null)
15839
        return false;
15840
 
15841
      boolean this_present_success = true && this.isSetSuccess();
15842
      boolean that_present_success = true && that.isSetSuccess();
15843
      if (this_present_success || that_present_success) {
15844
        if (!(this_present_success && that_present_success))
15845
          return false;
15846
        if (!this.success.equals(that.success))
15847
          return false;
15848
      }
15849
 
15850
      boolean this_present_ex = true && this.isSetEx();
15851
      boolean that_present_ex = true && that.isSetEx();
15852
      if (this_present_ex || that_present_ex) {
15853
        if (!(this_present_ex && that_present_ex))
15854
          return false;
15855
        if (!this.ex.equals(that.ex))
15856
          return false;
15857
      }
15858
 
15859
      return true;
15860
    }
15861
 
15862
    @Override
15863
    public int hashCode() {
15864
      return 0;
15865
    }
15866
 
15867
    public int compareTo(getOrdersByShippingDate_result other) {
15868
      if (!getClass().equals(other.getClass())) {
15869
        return getClass().getName().compareTo(other.getClass().getName());
15870
      }
15871
 
15872
      int lastComparison = 0;
15873
      getOrdersByShippingDate_result typedOther = (getOrdersByShippingDate_result)other;
15874
 
3430 rajveer 15875
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3427 chandransh 15876
      if (lastComparison != 0) {
15877
        return lastComparison;
15878
      }
3430 rajveer 15879
      if (isSetSuccess()) {
15880
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15881
        if (lastComparison != 0) {
15882
          return lastComparison;
15883
        }
3427 chandransh 15884
      }
3430 rajveer 15885
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
3427 chandransh 15886
      if (lastComparison != 0) {
15887
        return lastComparison;
15888
      }
3430 rajveer 15889
      if (isSetEx()) {
15890
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
15891
        if (lastComparison != 0) {
15892
          return lastComparison;
15893
        }
3427 chandransh 15894
      }
15895
      return 0;
15896
    }
15897
 
3430 rajveer 15898
    public _Fields fieldForId(int fieldId) {
15899
      return _Fields.findByThriftId(fieldId);
15900
    }
15901
 
15902
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15903
      org.apache.thrift.protocol.TField field;
3427 chandransh 15904
      iprot.readStructBegin();
15905
      while (true)
15906
      {
15907
        field = iprot.readFieldBegin();
3430 rajveer 15908
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3427 chandransh 15909
          break;
15910
        }
3430 rajveer 15911
        switch (field.id) {
15912
          case 0: // SUCCESS
15913
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15914
              {
4133 chandransh 15915
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
15916
                this.success = new ArrayList<Order>(_list36.size);
15917
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
3427 chandransh 15918
                {
4133 chandransh 15919
                  Order _elem38; // required
15920
                  _elem38 = new Order();
15921
                  _elem38.read(iprot);
15922
                  this.success.add(_elem38);
3427 chandransh 15923
                }
3430 rajveer 15924
                iprot.readListEnd();
3427 chandransh 15925
              }
3430 rajveer 15926
            } else { 
15927
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15928
            }
15929
            break;
15930
          case 1: // EX
15931
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15932
              this.ex = new TransactionServiceException();
15933
              this.ex.read(iprot);
15934
            } else { 
15935
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15936
            }
15937
            break;
15938
          default:
15939
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3427 chandransh 15940
        }
3430 rajveer 15941
        iprot.readFieldEnd();
3427 chandransh 15942
      }
15943
      iprot.readStructEnd();
15944
      validate();
15945
    }
15946
 
3430 rajveer 15947
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3427 chandransh 15948
      oprot.writeStructBegin(STRUCT_DESC);
15949
 
15950
      if (this.isSetSuccess()) {
15951
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15952
        {
3430 rajveer 15953
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 15954
          for (Order _iter39 : this.success)
3427 chandransh 15955
          {
4133 chandransh 15956
            _iter39.write(oprot);
3427 chandransh 15957
          }
15958
          oprot.writeListEnd();
15959
        }
15960
        oprot.writeFieldEnd();
15961
      } else if (this.isSetEx()) {
15962
        oprot.writeFieldBegin(EX_FIELD_DESC);
15963
        this.ex.write(oprot);
15964
        oprot.writeFieldEnd();
15965
      }
15966
      oprot.writeFieldStop();
15967
      oprot.writeStructEnd();
15968
    }
15969
 
15970
    @Override
15971
    public String toString() {
15972
      StringBuilder sb = new StringBuilder("getOrdersByShippingDate_result(");
15973
      boolean first = true;
15974
 
15975
      sb.append("success:");
15976
      if (this.success == null) {
15977
        sb.append("null");
15978
      } else {
15979
        sb.append(this.success);
15980
      }
15981
      first = false;
15982
      if (!first) sb.append(", ");
15983
      sb.append("ex:");
15984
      if (this.ex == null) {
15985
        sb.append("null");
15986
      } else {
15987
        sb.append(this.ex);
15988
      }
15989
      first = false;
15990
      sb.append(")");
15991
      return sb.toString();
15992
    }
15993
 
3430 rajveer 15994
    public void validate() throws org.apache.thrift.TException {
3427 chandransh 15995
      // check for required fields
15996
    }
15997
 
3430 rajveer 15998
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15999
      try {
16000
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16001
      } catch (org.apache.thrift.TException te) {
16002
        throw new java.io.IOException(te);
16003
      }
16004
    }
16005
 
16006
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16007
      try {
16008
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16009
      } catch (org.apache.thrift.TException te) {
16010
        throw new java.io.IOException(te);
16011
      }
16012
    }
16013
 
3427 chandransh 16014
  }
16015
 
3430 rajveer 16016
  public static class getReturnableOrdersForCustomer_args implements org.apache.thrift.TBase<getReturnableOrdersForCustomer_args, getReturnableOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
16017
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnableOrdersForCustomer_args");
1382 varun.gupt 16018
 
3430 rajveer 16019
    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);
16020
    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);
1382 varun.gupt 16021
 
3430 rajveer 16022
    private long customer_id; // required
16023
    private long limit; // required
1382 varun.gupt 16024
 
16025
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16026
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 16027
      CUSTOMER_ID((short)1, "customer_id"),
16028
      LIMIT((short)2, "limit");
16029
 
16030
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16031
 
16032
      static {
16033
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16034
          byName.put(field.getFieldName(), field);
16035
        }
16036
      }
16037
 
16038
      /**
16039
       * Find the _Fields constant that matches fieldId, or null if its not found.
16040
       */
16041
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16042
        switch(fieldId) {
16043
          case 1: // CUSTOMER_ID
16044
            return CUSTOMER_ID;
16045
          case 2: // LIMIT
16046
            return LIMIT;
16047
          default:
16048
            return null;
16049
        }
1382 varun.gupt 16050
      }
16051
 
16052
      /**
16053
       * Find the _Fields constant that matches fieldId, throwing an exception
16054
       * if it is not found.
16055
       */
16056
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16057
        _Fields fields = findByThriftId(fieldId);
16058
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16059
        return fields;
16060
      }
16061
 
16062
      /**
16063
       * Find the _Fields constant that matches name, or null if its not found.
16064
       */
16065
      public static _Fields findByName(String name) {
16066
        return byName.get(name);
16067
      }
16068
 
16069
      private final short _thriftId;
16070
      private final String _fieldName;
16071
 
16072
      _Fields(short thriftId, String fieldName) {
16073
        _thriftId = thriftId;
16074
        _fieldName = fieldName;
16075
      }
16076
 
16077
      public short getThriftFieldId() {
16078
        return _thriftId;
16079
      }
16080
 
16081
      public String getFieldName() {
16082
        return _fieldName;
16083
      }
16084
    }
16085
 
16086
    // isset id assignments
16087
    private static final int __CUSTOMER_ID_ISSET_ID = 0;
16088
    private static final int __LIMIT_ISSET_ID = 1;
16089
    private BitSet __isset_bit_vector = new BitSet(2);
16090
 
3430 rajveer 16091
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 16092
    static {
3430 rajveer 16093
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16094
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customer_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16095
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16096
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16097
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16098
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16099
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnableOrdersForCustomer_args.class, metaDataMap);
1382 varun.gupt 16100
    }
16101
 
16102
    public getReturnableOrdersForCustomer_args() {
16103
    }
16104
 
16105
    public getReturnableOrdersForCustomer_args(
16106
      long customer_id,
16107
      long limit)
16108
    {
16109
      this();
16110
      this.customer_id = customer_id;
16111
      setCustomer_idIsSet(true);
16112
      this.limit = limit;
16113
      setLimitIsSet(true);
16114
    }
16115
 
16116
    /**
16117
     * Performs a deep copy on <i>other</i>.
16118
     */
16119
    public getReturnableOrdersForCustomer_args(getReturnableOrdersForCustomer_args other) {
16120
      __isset_bit_vector.clear();
16121
      __isset_bit_vector.or(other.__isset_bit_vector);
16122
      this.customer_id = other.customer_id;
16123
      this.limit = other.limit;
16124
    }
16125
 
16126
    public getReturnableOrdersForCustomer_args deepCopy() {
16127
      return new getReturnableOrdersForCustomer_args(this);
16128
    }
16129
 
3430 rajveer 16130
    @Override
16131
    public void clear() {
16132
      setCustomer_idIsSet(false);
16133
      this.customer_id = 0;
16134
      setLimitIsSet(false);
16135
      this.limit = 0;
1382 varun.gupt 16136
    }
16137
 
16138
    public long getCustomer_id() {
16139
      return this.customer_id;
16140
    }
16141
 
3430 rajveer 16142
    public void setCustomer_id(long customer_id) {
1382 varun.gupt 16143
      this.customer_id = customer_id;
16144
      setCustomer_idIsSet(true);
16145
    }
16146
 
16147
    public void unsetCustomer_id() {
16148
      __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
16149
    }
16150
 
3430 rajveer 16151
    /** Returns true if field customer_id is set (has been assigned a value) and false otherwise */
1382 varun.gupt 16152
    public boolean isSetCustomer_id() {
16153
      return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
16154
    }
16155
 
16156
    public void setCustomer_idIsSet(boolean value) {
16157
      __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
16158
    }
16159
 
16160
    public long getLimit() {
16161
      return this.limit;
16162
    }
16163
 
3430 rajveer 16164
    public void setLimit(long limit) {
1382 varun.gupt 16165
      this.limit = limit;
16166
      setLimitIsSet(true);
16167
    }
16168
 
16169
    public void unsetLimit() {
16170
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
16171
    }
16172
 
3430 rajveer 16173
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
1382 varun.gupt 16174
    public boolean isSetLimit() {
16175
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
16176
    }
16177
 
16178
    public void setLimitIsSet(boolean value) {
16179
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
16180
    }
16181
 
16182
    public void setFieldValue(_Fields field, Object value) {
16183
      switch (field) {
16184
      case CUSTOMER_ID:
16185
        if (value == null) {
16186
          unsetCustomer_id();
16187
        } else {
16188
          setCustomer_id((Long)value);
16189
        }
16190
        break;
16191
 
16192
      case LIMIT:
16193
        if (value == null) {
16194
          unsetLimit();
16195
        } else {
16196
          setLimit((Long)value);
16197
        }
16198
        break;
16199
 
16200
      }
16201
    }
16202
 
16203
    public Object getFieldValue(_Fields field) {
16204
      switch (field) {
16205
      case CUSTOMER_ID:
3430 rajveer 16206
        return Long.valueOf(getCustomer_id());
1382 varun.gupt 16207
 
16208
      case LIMIT:
3430 rajveer 16209
        return Long.valueOf(getLimit());
1382 varun.gupt 16210
 
16211
      }
16212
      throw new IllegalStateException();
16213
    }
16214
 
3430 rajveer 16215
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16216
    public boolean isSet(_Fields field) {
16217
      if (field == null) {
16218
        throw new IllegalArgumentException();
16219
      }
1382 varun.gupt 16220
 
16221
      switch (field) {
16222
      case CUSTOMER_ID:
16223
        return isSetCustomer_id();
16224
      case LIMIT:
16225
        return isSetLimit();
16226
      }
16227
      throw new IllegalStateException();
16228
    }
16229
 
16230
    @Override
16231
    public boolean equals(Object that) {
16232
      if (that == null)
16233
        return false;
16234
      if (that instanceof getReturnableOrdersForCustomer_args)
16235
        return this.equals((getReturnableOrdersForCustomer_args)that);
16236
      return false;
16237
    }
16238
 
16239
    public boolean equals(getReturnableOrdersForCustomer_args that) {
16240
      if (that == null)
16241
        return false;
16242
 
16243
      boolean this_present_customer_id = true;
16244
      boolean that_present_customer_id = true;
16245
      if (this_present_customer_id || that_present_customer_id) {
16246
        if (!(this_present_customer_id && that_present_customer_id))
16247
          return false;
16248
        if (this.customer_id != that.customer_id)
16249
          return false;
16250
      }
16251
 
16252
      boolean this_present_limit = true;
16253
      boolean that_present_limit = true;
16254
      if (this_present_limit || that_present_limit) {
16255
        if (!(this_present_limit && that_present_limit))
16256
          return false;
16257
        if (this.limit != that.limit)
16258
          return false;
16259
      }
16260
 
16261
      return true;
16262
    }
16263
 
16264
    @Override
16265
    public int hashCode() {
16266
      return 0;
16267
    }
16268
 
16269
    public int compareTo(getReturnableOrdersForCustomer_args other) {
16270
      if (!getClass().equals(other.getClass())) {
16271
        return getClass().getName().compareTo(other.getClass().getName());
16272
      }
16273
 
16274
      int lastComparison = 0;
16275
      getReturnableOrdersForCustomer_args typedOther = (getReturnableOrdersForCustomer_args)other;
16276
 
3430 rajveer 16277
      lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(typedOther.isSetCustomer_id());
1382 varun.gupt 16278
      if (lastComparison != 0) {
16279
        return lastComparison;
16280
      }
3430 rajveer 16281
      if (isSetCustomer_id()) {
16282
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_id, typedOther.customer_id);
16283
        if (lastComparison != 0) {
16284
          return lastComparison;
16285
        }
1382 varun.gupt 16286
      }
3430 rajveer 16287
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
1382 varun.gupt 16288
      if (lastComparison != 0) {
16289
        return lastComparison;
16290
      }
3430 rajveer 16291
      if (isSetLimit()) {
16292
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
16293
        if (lastComparison != 0) {
16294
          return lastComparison;
16295
        }
1382 varun.gupt 16296
      }
16297
      return 0;
16298
    }
16299
 
3430 rajveer 16300
    public _Fields fieldForId(int fieldId) {
16301
      return _Fields.findByThriftId(fieldId);
16302
    }
16303
 
16304
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16305
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 16306
      iprot.readStructBegin();
16307
      while (true)
16308
      {
16309
        field = iprot.readFieldBegin();
3430 rajveer 16310
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 16311
          break;
16312
        }
3430 rajveer 16313
        switch (field.id) {
16314
          case 1: // CUSTOMER_ID
16315
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16316
              this.customer_id = iprot.readI64();
16317
              setCustomer_idIsSet(true);
16318
            } else { 
16319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16320
            }
16321
            break;
16322
          case 2: // LIMIT
16323
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16324
              this.limit = iprot.readI64();
16325
              setLimitIsSet(true);
16326
            } else { 
16327
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16328
            }
16329
            break;
16330
          default:
16331
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 16332
        }
3430 rajveer 16333
        iprot.readFieldEnd();
1382 varun.gupt 16334
      }
16335
      iprot.readStructEnd();
16336
      validate();
16337
    }
16338
 
3430 rajveer 16339
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 16340
      validate();
16341
 
16342
      oprot.writeStructBegin(STRUCT_DESC);
16343
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
16344
      oprot.writeI64(this.customer_id);
16345
      oprot.writeFieldEnd();
16346
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
16347
      oprot.writeI64(this.limit);
16348
      oprot.writeFieldEnd();
16349
      oprot.writeFieldStop();
16350
      oprot.writeStructEnd();
16351
    }
16352
 
16353
    @Override
16354
    public String toString() {
16355
      StringBuilder sb = new StringBuilder("getReturnableOrdersForCustomer_args(");
16356
      boolean first = true;
16357
 
16358
      sb.append("customer_id:");
16359
      sb.append(this.customer_id);
16360
      first = false;
16361
      if (!first) sb.append(", ");
16362
      sb.append("limit:");
16363
      sb.append(this.limit);
16364
      first = false;
16365
      sb.append(")");
16366
      return sb.toString();
16367
    }
16368
 
3430 rajveer 16369
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 16370
      // check for required fields
16371
    }
16372
 
3430 rajveer 16373
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16374
      try {
16375
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16376
      } catch (org.apache.thrift.TException te) {
16377
        throw new java.io.IOException(te);
16378
      }
16379
    }
16380
 
16381
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16382
      try {
16383
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16384
        __isset_bit_vector = new BitSet(1);
16385
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16386
      } catch (org.apache.thrift.TException te) {
16387
        throw new java.io.IOException(te);
16388
      }
16389
    }
16390
 
1382 varun.gupt 16391
  }
16392
 
3430 rajveer 16393
  public static class getReturnableOrdersForCustomer_result implements org.apache.thrift.TBase<getReturnableOrdersForCustomer_result, getReturnableOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
16394
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnableOrdersForCustomer_result");
1382 varun.gupt 16395
 
3430 rajveer 16396
    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);
16397
    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);
1382 varun.gupt 16398
 
3430 rajveer 16399
    private List<Long> success; // required
16400
    private TransactionServiceException ex; // required
1382 varun.gupt 16401
 
16402
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16403
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 16404
      SUCCESS((short)0, "success"),
16405
      EX((short)1, "ex");
16406
 
16407
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16408
 
16409
      static {
16410
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16411
          byName.put(field.getFieldName(), field);
16412
        }
16413
      }
16414
 
16415
      /**
16416
       * Find the _Fields constant that matches fieldId, or null if its not found.
16417
       */
16418
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16419
        switch(fieldId) {
16420
          case 0: // SUCCESS
16421
            return SUCCESS;
16422
          case 1: // EX
16423
            return EX;
16424
          default:
16425
            return null;
16426
        }
1382 varun.gupt 16427
      }
16428
 
16429
      /**
16430
       * Find the _Fields constant that matches fieldId, throwing an exception
16431
       * if it is not found.
16432
       */
16433
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16434
        _Fields fields = findByThriftId(fieldId);
16435
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16436
        return fields;
16437
      }
16438
 
16439
      /**
16440
       * Find the _Fields constant that matches name, or null if its not found.
16441
       */
16442
      public static _Fields findByName(String name) {
16443
        return byName.get(name);
16444
      }
16445
 
16446
      private final short _thriftId;
16447
      private final String _fieldName;
16448
 
16449
      _Fields(short thriftId, String fieldName) {
16450
        _thriftId = thriftId;
16451
        _fieldName = fieldName;
16452
      }
16453
 
16454
      public short getThriftFieldId() {
16455
        return _thriftId;
16456
      }
16457
 
16458
      public String getFieldName() {
16459
        return _fieldName;
16460
      }
16461
    }
16462
 
16463
    // isset id assignments
16464
 
3430 rajveer 16465
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 16466
    static {
3430 rajveer 16467
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16468
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16469
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16470
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
16471
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16472
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16473
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16474
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnableOrdersForCustomer_result.class, metaDataMap);
1382 varun.gupt 16475
    }
16476
 
16477
    public getReturnableOrdersForCustomer_result() {
16478
    }
16479
 
16480
    public getReturnableOrdersForCustomer_result(
16481
      List<Long> success,
16482
      TransactionServiceException ex)
16483
    {
16484
      this();
16485
      this.success = success;
16486
      this.ex = ex;
16487
    }
16488
 
16489
    /**
16490
     * Performs a deep copy on <i>other</i>.
16491
     */
16492
    public getReturnableOrdersForCustomer_result(getReturnableOrdersForCustomer_result other) {
16493
      if (other.isSetSuccess()) {
16494
        List<Long> __this__success = new ArrayList<Long>();
16495
        for (Long other_element : other.success) {
16496
          __this__success.add(other_element);
16497
        }
16498
        this.success = __this__success;
16499
      }
16500
      if (other.isSetEx()) {
16501
        this.ex = new TransactionServiceException(other.ex);
16502
      }
16503
    }
16504
 
16505
    public getReturnableOrdersForCustomer_result deepCopy() {
16506
      return new getReturnableOrdersForCustomer_result(this);
16507
    }
16508
 
3430 rajveer 16509
    @Override
16510
    public void clear() {
16511
      this.success = null;
16512
      this.ex = null;
1382 varun.gupt 16513
    }
16514
 
16515
    public int getSuccessSize() {
16516
      return (this.success == null) ? 0 : this.success.size();
16517
    }
16518
 
16519
    public java.util.Iterator<Long> getSuccessIterator() {
16520
      return (this.success == null) ? null : this.success.iterator();
16521
    }
16522
 
16523
    public void addToSuccess(long elem) {
16524
      if (this.success == null) {
16525
        this.success = new ArrayList<Long>();
16526
      }
16527
      this.success.add(elem);
16528
    }
16529
 
16530
    public List<Long> getSuccess() {
16531
      return this.success;
16532
    }
16533
 
3430 rajveer 16534
    public void setSuccess(List<Long> success) {
1382 varun.gupt 16535
      this.success = success;
16536
    }
16537
 
16538
    public void unsetSuccess() {
16539
      this.success = null;
16540
    }
16541
 
3430 rajveer 16542
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1382 varun.gupt 16543
    public boolean isSetSuccess() {
16544
      return this.success != null;
16545
    }
16546
 
16547
    public void setSuccessIsSet(boolean value) {
16548
      if (!value) {
16549
        this.success = null;
16550
      }
16551
    }
16552
 
16553
    public TransactionServiceException getEx() {
16554
      return this.ex;
16555
    }
16556
 
3430 rajveer 16557
    public void setEx(TransactionServiceException ex) {
1382 varun.gupt 16558
      this.ex = ex;
16559
    }
16560
 
16561
    public void unsetEx() {
16562
      this.ex = null;
16563
    }
16564
 
3430 rajveer 16565
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1382 varun.gupt 16566
    public boolean isSetEx() {
16567
      return this.ex != null;
16568
    }
16569
 
16570
    public void setExIsSet(boolean value) {
16571
      if (!value) {
16572
        this.ex = null;
16573
      }
16574
    }
16575
 
16576
    public void setFieldValue(_Fields field, Object value) {
16577
      switch (field) {
16578
      case SUCCESS:
16579
        if (value == null) {
16580
          unsetSuccess();
16581
        } else {
16582
          setSuccess((List<Long>)value);
16583
        }
16584
        break;
16585
 
16586
      case EX:
16587
        if (value == null) {
16588
          unsetEx();
16589
        } else {
16590
          setEx((TransactionServiceException)value);
16591
        }
16592
        break;
16593
 
16594
      }
16595
    }
16596
 
16597
    public Object getFieldValue(_Fields field) {
16598
      switch (field) {
16599
      case SUCCESS:
16600
        return getSuccess();
16601
 
16602
      case EX:
16603
        return getEx();
16604
 
16605
      }
16606
      throw new IllegalStateException();
16607
    }
16608
 
3430 rajveer 16609
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16610
    public boolean isSet(_Fields field) {
16611
      if (field == null) {
16612
        throw new IllegalArgumentException();
16613
      }
1382 varun.gupt 16614
 
16615
      switch (field) {
16616
      case SUCCESS:
16617
        return isSetSuccess();
16618
      case EX:
16619
        return isSetEx();
16620
      }
16621
      throw new IllegalStateException();
16622
    }
16623
 
16624
    @Override
16625
    public boolean equals(Object that) {
16626
      if (that == null)
16627
        return false;
16628
      if (that instanceof getReturnableOrdersForCustomer_result)
16629
        return this.equals((getReturnableOrdersForCustomer_result)that);
16630
      return false;
16631
    }
16632
 
16633
    public boolean equals(getReturnableOrdersForCustomer_result that) {
16634
      if (that == null)
16635
        return false;
16636
 
16637
      boolean this_present_success = true && this.isSetSuccess();
16638
      boolean that_present_success = true && that.isSetSuccess();
16639
      if (this_present_success || that_present_success) {
16640
        if (!(this_present_success && that_present_success))
16641
          return false;
16642
        if (!this.success.equals(that.success))
16643
          return false;
16644
      }
16645
 
16646
      boolean this_present_ex = true && this.isSetEx();
16647
      boolean that_present_ex = true && that.isSetEx();
16648
      if (this_present_ex || that_present_ex) {
16649
        if (!(this_present_ex && that_present_ex))
16650
          return false;
16651
        if (!this.ex.equals(that.ex))
16652
          return false;
16653
      }
16654
 
16655
      return true;
16656
    }
16657
 
16658
    @Override
16659
    public int hashCode() {
16660
      return 0;
16661
    }
16662
 
16663
    public int compareTo(getReturnableOrdersForCustomer_result other) {
16664
      if (!getClass().equals(other.getClass())) {
16665
        return getClass().getName().compareTo(other.getClass().getName());
16666
      }
16667
 
16668
      int lastComparison = 0;
16669
      getReturnableOrdersForCustomer_result typedOther = (getReturnableOrdersForCustomer_result)other;
16670
 
3430 rajveer 16671
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1382 varun.gupt 16672
      if (lastComparison != 0) {
16673
        return lastComparison;
16674
      }
3430 rajveer 16675
      if (isSetSuccess()) {
16676
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16677
        if (lastComparison != 0) {
16678
          return lastComparison;
16679
        }
1382 varun.gupt 16680
      }
3430 rajveer 16681
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1382 varun.gupt 16682
      if (lastComparison != 0) {
16683
        return lastComparison;
16684
      }
3430 rajveer 16685
      if (isSetEx()) {
16686
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
16687
        if (lastComparison != 0) {
16688
          return lastComparison;
16689
        }
1382 varun.gupt 16690
      }
16691
      return 0;
16692
    }
16693
 
3430 rajveer 16694
    public _Fields fieldForId(int fieldId) {
16695
      return _Fields.findByThriftId(fieldId);
16696
    }
16697
 
16698
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16699
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 16700
      iprot.readStructBegin();
16701
      while (true)
16702
      {
16703
        field = iprot.readFieldBegin();
3430 rajveer 16704
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 16705
          break;
16706
        }
3430 rajveer 16707
        switch (field.id) {
16708
          case 0: // SUCCESS
16709
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16710
              {
4133 chandransh 16711
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
16712
                this.success = new ArrayList<Long>(_list40.size);
16713
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
1382 varun.gupt 16714
                {
4133 chandransh 16715
                  long _elem42; // required
16716
                  _elem42 = iprot.readI64();
16717
                  this.success.add(_elem42);
1382 varun.gupt 16718
                }
3430 rajveer 16719
                iprot.readListEnd();
1382 varun.gupt 16720
              }
3430 rajveer 16721
            } else { 
16722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16723
            }
16724
            break;
16725
          case 1: // EX
16726
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16727
              this.ex = new TransactionServiceException();
16728
              this.ex.read(iprot);
16729
            } else { 
16730
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16731
            }
16732
            break;
16733
          default:
16734
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 16735
        }
3430 rajveer 16736
        iprot.readFieldEnd();
1382 varun.gupt 16737
      }
16738
      iprot.readStructEnd();
16739
      validate();
16740
    }
16741
 
3430 rajveer 16742
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 16743
      oprot.writeStructBegin(STRUCT_DESC);
16744
 
16745
      if (this.isSetSuccess()) {
16746
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16747
        {
3430 rajveer 16748
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
4133 chandransh 16749
          for (long _iter43 : this.success)
1382 varun.gupt 16750
          {
4133 chandransh 16751
            oprot.writeI64(_iter43);
1382 varun.gupt 16752
          }
16753
          oprot.writeListEnd();
16754
        }
16755
        oprot.writeFieldEnd();
16756
      } else if (this.isSetEx()) {
16757
        oprot.writeFieldBegin(EX_FIELD_DESC);
16758
        this.ex.write(oprot);
16759
        oprot.writeFieldEnd();
16760
      }
16761
      oprot.writeFieldStop();
16762
      oprot.writeStructEnd();
16763
    }
16764
 
16765
    @Override
16766
    public String toString() {
16767
      StringBuilder sb = new StringBuilder("getReturnableOrdersForCustomer_result(");
16768
      boolean first = true;
16769
 
16770
      sb.append("success:");
16771
      if (this.success == null) {
16772
        sb.append("null");
16773
      } else {
16774
        sb.append(this.success);
16775
      }
16776
      first = false;
16777
      if (!first) sb.append(", ");
16778
      sb.append("ex:");
16779
      if (this.ex == null) {
16780
        sb.append("null");
16781
      } else {
16782
        sb.append(this.ex);
16783
      }
16784
      first = false;
16785
      sb.append(")");
16786
      return sb.toString();
16787
    }
16788
 
3430 rajveer 16789
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 16790
      // check for required fields
16791
    }
16792
 
3430 rajveer 16793
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16794
      try {
16795
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16796
      } catch (org.apache.thrift.TException te) {
16797
        throw new java.io.IOException(te);
16798
      }
16799
    }
16800
 
16801
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16802
      try {
16803
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16804
      } catch (org.apache.thrift.TException te) {
16805
        throw new java.io.IOException(te);
16806
      }
16807
    }
16808
 
1382 varun.gupt 16809
  }
16810
 
3430 rajveer 16811
  public static class getCancellableOrdersForCustomer_args implements org.apache.thrift.TBase<getCancellableOrdersForCustomer_args, getCancellableOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
16812
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCancellableOrdersForCustomer_args");
1382 varun.gupt 16813
 
3430 rajveer 16814
    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);
16815
    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);
1382 varun.gupt 16816
 
3430 rajveer 16817
    private long customer_id; // required
16818
    private long limit; // required
1382 varun.gupt 16819
 
16820
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16821
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 16822
      CUSTOMER_ID((short)1, "customer_id"),
16823
      LIMIT((short)2, "limit");
16824
 
16825
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16826
 
16827
      static {
16828
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16829
          byName.put(field.getFieldName(), field);
16830
        }
16831
      }
16832
 
16833
      /**
16834
       * Find the _Fields constant that matches fieldId, or null if its not found.
16835
       */
16836
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16837
        switch(fieldId) {
16838
          case 1: // CUSTOMER_ID
16839
            return CUSTOMER_ID;
16840
          case 2: // LIMIT
16841
            return LIMIT;
16842
          default:
16843
            return null;
16844
        }
1382 varun.gupt 16845
      }
16846
 
16847
      /**
16848
       * Find the _Fields constant that matches fieldId, throwing an exception
16849
       * if it is not found.
16850
       */
16851
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16852
        _Fields fields = findByThriftId(fieldId);
16853
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16854
        return fields;
16855
      }
16856
 
16857
      /**
16858
       * Find the _Fields constant that matches name, or null if its not found.
16859
       */
16860
      public static _Fields findByName(String name) {
16861
        return byName.get(name);
16862
      }
16863
 
16864
      private final short _thriftId;
16865
      private final String _fieldName;
16866
 
16867
      _Fields(short thriftId, String fieldName) {
16868
        _thriftId = thriftId;
16869
        _fieldName = fieldName;
16870
      }
16871
 
16872
      public short getThriftFieldId() {
16873
        return _thriftId;
16874
      }
16875
 
16876
      public String getFieldName() {
16877
        return _fieldName;
16878
      }
16879
    }
16880
 
16881
    // isset id assignments
16882
    private static final int __CUSTOMER_ID_ISSET_ID = 0;
16883
    private static final int __LIMIT_ISSET_ID = 1;
16884
    private BitSet __isset_bit_vector = new BitSet(2);
16885
 
3430 rajveer 16886
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 16887
    static {
3430 rajveer 16888
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16889
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customer_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16890
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16891
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16892
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16893
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16894
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCancellableOrdersForCustomer_args.class, metaDataMap);
1382 varun.gupt 16895
    }
16896
 
16897
    public getCancellableOrdersForCustomer_args() {
16898
    }
16899
 
16900
    public getCancellableOrdersForCustomer_args(
16901
      long customer_id,
16902
      long limit)
16903
    {
16904
      this();
16905
      this.customer_id = customer_id;
16906
      setCustomer_idIsSet(true);
16907
      this.limit = limit;
16908
      setLimitIsSet(true);
16909
    }
16910
 
16911
    /**
16912
     * Performs a deep copy on <i>other</i>.
16913
     */
16914
    public getCancellableOrdersForCustomer_args(getCancellableOrdersForCustomer_args other) {
16915
      __isset_bit_vector.clear();
16916
      __isset_bit_vector.or(other.__isset_bit_vector);
16917
      this.customer_id = other.customer_id;
16918
      this.limit = other.limit;
16919
    }
16920
 
16921
    public getCancellableOrdersForCustomer_args deepCopy() {
16922
      return new getCancellableOrdersForCustomer_args(this);
16923
    }
16924
 
3430 rajveer 16925
    @Override
16926
    public void clear() {
16927
      setCustomer_idIsSet(false);
16928
      this.customer_id = 0;
16929
      setLimitIsSet(false);
16930
      this.limit = 0;
1382 varun.gupt 16931
    }
16932
 
16933
    public long getCustomer_id() {
16934
      return this.customer_id;
16935
    }
16936
 
3430 rajveer 16937
    public void setCustomer_id(long customer_id) {
1382 varun.gupt 16938
      this.customer_id = customer_id;
16939
      setCustomer_idIsSet(true);
16940
    }
16941
 
16942
    public void unsetCustomer_id() {
16943
      __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
16944
    }
16945
 
3430 rajveer 16946
    /** Returns true if field customer_id is set (has been assigned a value) and false otherwise */
1382 varun.gupt 16947
    public boolean isSetCustomer_id() {
16948
      return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
16949
    }
16950
 
16951
    public void setCustomer_idIsSet(boolean value) {
16952
      __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
16953
    }
16954
 
16955
    public long getLimit() {
16956
      return this.limit;
16957
    }
16958
 
3430 rajveer 16959
    public void setLimit(long limit) {
1382 varun.gupt 16960
      this.limit = limit;
16961
      setLimitIsSet(true);
16962
    }
16963
 
16964
    public void unsetLimit() {
16965
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
16966
    }
16967
 
3430 rajveer 16968
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
1382 varun.gupt 16969
    public boolean isSetLimit() {
16970
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
16971
    }
16972
 
16973
    public void setLimitIsSet(boolean value) {
16974
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
16975
    }
16976
 
16977
    public void setFieldValue(_Fields field, Object value) {
16978
      switch (field) {
16979
      case CUSTOMER_ID:
16980
        if (value == null) {
16981
          unsetCustomer_id();
16982
        } else {
16983
          setCustomer_id((Long)value);
16984
        }
16985
        break;
16986
 
16987
      case LIMIT:
16988
        if (value == null) {
16989
          unsetLimit();
16990
        } else {
16991
          setLimit((Long)value);
16992
        }
16993
        break;
16994
 
16995
      }
16996
    }
16997
 
16998
    public Object getFieldValue(_Fields field) {
16999
      switch (field) {
17000
      case CUSTOMER_ID:
3430 rajveer 17001
        return Long.valueOf(getCustomer_id());
1382 varun.gupt 17002
 
17003
      case LIMIT:
3430 rajveer 17004
        return Long.valueOf(getLimit());
1382 varun.gupt 17005
 
17006
      }
17007
      throw new IllegalStateException();
17008
    }
17009
 
3430 rajveer 17010
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17011
    public boolean isSet(_Fields field) {
17012
      if (field == null) {
17013
        throw new IllegalArgumentException();
17014
      }
1382 varun.gupt 17015
 
17016
      switch (field) {
17017
      case CUSTOMER_ID:
17018
        return isSetCustomer_id();
17019
      case LIMIT:
17020
        return isSetLimit();
17021
      }
17022
      throw new IllegalStateException();
17023
    }
17024
 
17025
    @Override
17026
    public boolean equals(Object that) {
17027
      if (that == null)
17028
        return false;
17029
      if (that instanceof getCancellableOrdersForCustomer_args)
17030
        return this.equals((getCancellableOrdersForCustomer_args)that);
17031
      return false;
17032
    }
17033
 
17034
    public boolean equals(getCancellableOrdersForCustomer_args that) {
17035
      if (that == null)
17036
        return false;
17037
 
17038
      boolean this_present_customer_id = true;
17039
      boolean that_present_customer_id = true;
17040
      if (this_present_customer_id || that_present_customer_id) {
17041
        if (!(this_present_customer_id && that_present_customer_id))
17042
          return false;
17043
        if (this.customer_id != that.customer_id)
17044
          return false;
17045
      }
17046
 
17047
      boolean this_present_limit = true;
17048
      boolean that_present_limit = true;
17049
      if (this_present_limit || that_present_limit) {
17050
        if (!(this_present_limit && that_present_limit))
17051
          return false;
17052
        if (this.limit != that.limit)
17053
          return false;
17054
      }
17055
 
17056
      return true;
17057
    }
17058
 
17059
    @Override
17060
    public int hashCode() {
17061
      return 0;
17062
    }
17063
 
17064
    public int compareTo(getCancellableOrdersForCustomer_args other) {
17065
      if (!getClass().equals(other.getClass())) {
17066
        return getClass().getName().compareTo(other.getClass().getName());
17067
      }
17068
 
17069
      int lastComparison = 0;
17070
      getCancellableOrdersForCustomer_args typedOther = (getCancellableOrdersForCustomer_args)other;
17071
 
3430 rajveer 17072
      lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(typedOther.isSetCustomer_id());
1382 varun.gupt 17073
      if (lastComparison != 0) {
17074
        return lastComparison;
17075
      }
3430 rajveer 17076
      if (isSetCustomer_id()) {
17077
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_id, typedOther.customer_id);
17078
        if (lastComparison != 0) {
17079
          return lastComparison;
17080
        }
1382 varun.gupt 17081
      }
3430 rajveer 17082
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
1382 varun.gupt 17083
      if (lastComparison != 0) {
17084
        return lastComparison;
17085
      }
3430 rajveer 17086
      if (isSetLimit()) {
17087
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
17088
        if (lastComparison != 0) {
17089
          return lastComparison;
17090
        }
1382 varun.gupt 17091
      }
17092
      return 0;
17093
    }
17094
 
3430 rajveer 17095
    public _Fields fieldForId(int fieldId) {
17096
      return _Fields.findByThriftId(fieldId);
17097
    }
17098
 
17099
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17100
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 17101
      iprot.readStructBegin();
17102
      while (true)
17103
      {
17104
        field = iprot.readFieldBegin();
3430 rajveer 17105
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 17106
          break;
17107
        }
3430 rajveer 17108
        switch (field.id) {
17109
          case 1: // CUSTOMER_ID
17110
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17111
              this.customer_id = iprot.readI64();
17112
              setCustomer_idIsSet(true);
17113
            } else { 
17114
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17115
            }
17116
            break;
17117
          case 2: // LIMIT
17118
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17119
              this.limit = iprot.readI64();
17120
              setLimitIsSet(true);
17121
            } else { 
17122
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17123
            }
17124
            break;
17125
          default:
17126
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 17127
        }
3430 rajveer 17128
        iprot.readFieldEnd();
1382 varun.gupt 17129
      }
17130
      iprot.readStructEnd();
17131
      validate();
17132
    }
17133
 
3430 rajveer 17134
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 17135
      validate();
17136
 
17137
      oprot.writeStructBegin(STRUCT_DESC);
17138
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
17139
      oprot.writeI64(this.customer_id);
17140
      oprot.writeFieldEnd();
17141
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
17142
      oprot.writeI64(this.limit);
17143
      oprot.writeFieldEnd();
17144
      oprot.writeFieldStop();
17145
      oprot.writeStructEnd();
17146
    }
17147
 
17148
    @Override
17149
    public String toString() {
17150
      StringBuilder sb = new StringBuilder("getCancellableOrdersForCustomer_args(");
17151
      boolean first = true;
17152
 
17153
      sb.append("customer_id:");
17154
      sb.append(this.customer_id);
17155
      first = false;
17156
      if (!first) sb.append(", ");
17157
      sb.append("limit:");
17158
      sb.append(this.limit);
17159
      first = false;
17160
      sb.append(")");
17161
      return sb.toString();
17162
    }
17163
 
3430 rajveer 17164
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 17165
      // check for required fields
17166
    }
17167
 
3430 rajveer 17168
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17169
      try {
17170
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17171
      } catch (org.apache.thrift.TException te) {
17172
        throw new java.io.IOException(te);
17173
      }
17174
    }
17175
 
17176
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17177
      try {
17178
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17179
        __isset_bit_vector = new BitSet(1);
17180
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17181
      } catch (org.apache.thrift.TException te) {
17182
        throw new java.io.IOException(te);
17183
      }
17184
    }
17185
 
1382 varun.gupt 17186
  }
17187
 
3430 rajveer 17188
  public static class getCancellableOrdersForCustomer_result implements org.apache.thrift.TBase<getCancellableOrdersForCustomer_result, getCancellableOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
17189
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCancellableOrdersForCustomer_result");
1382 varun.gupt 17190
 
3430 rajveer 17191
    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);
17192
    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);
1382 varun.gupt 17193
 
3430 rajveer 17194
    private List<Long> success; // required
17195
    private TransactionServiceException ex; // required
1382 varun.gupt 17196
 
17197
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17198
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 17199
      SUCCESS((short)0, "success"),
17200
      EX((short)1, "ex");
17201
 
17202
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17203
 
17204
      static {
17205
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17206
          byName.put(field.getFieldName(), field);
17207
        }
17208
      }
17209
 
17210
      /**
17211
       * Find the _Fields constant that matches fieldId, or null if its not found.
17212
       */
17213
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17214
        switch(fieldId) {
17215
          case 0: // SUCCESS
17216
            return SUCCESS;
17217
          case 1: // EX
17218
            return EX;
17219
          default:
17220
            return null;
17221
        }
1382 varun.gupt 17222
      }
17223
 
17224
      /**
17225
       * Find the _Fields constant that matches fieldId, throwing an exception
17226
       * if it is not found.
17227
       */
17228
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17229
        _Fields fields = findByThriftId(fieldId);
17230
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17231
        return fields;
17232
      }
17233
 
17234
      /**
17235
       * Find the _Fields constant that matches name, or null if its not found.
17236
       */
17237
      public static _Fields findByName(String name) {
17238
        return byName.get(name);
17239
      }
17240
 
17241
      private final short _thriftId;
17242
      private final String _fieldName;
17243
 
17244
      _Fields(short thriftId, String fieldName) {
17245
        _thriftId = thriftId;
17246
        _fieldName = fieldName;
17247
      }
17248
 
17249
      public short getThriftFieldId() {
17250
        return _thriftId;
17251
      }
17252
 
17253
      public String getFieldName() {
17254
        return _fieldName;
17255
      }
17256
    }
17257
 
17258
    // isset id assignments
17259
 
3430 rajveer 17260
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 17261
    static {
3430 rajveer 17262
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17263
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17264
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17265
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
17266
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17267
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17268
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17269
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCancellableOrdersForCustomer_result.class, metaDataMap);
1382 varun.gupt 17270
    }
17271
 
17272
    public getCancellableOrdersForCustomer_result() {
17273
    }
17274
 
17275
    public getCancellableOrdersForCustomer_result(
17276
      List<Long> success,
17277
      TransactionServiceException ex)
17278
    {
17279
      this();
17280
      this.success = success;
17281
      this.ex = ex;
17282
    }
17283
 
17284
    /**
17285
     * Performs a deep copy on <i>other</i>.
17286
     */
17287
    public getCancellableOrdersForCustomer_result(getCancellableOrdersForCustomer_result other) {
17288
      if (other.isSetSuccess()) {
17289
        List<Long> __this__success = new ArrayList<Long>();
17290
        for (Long other_element : other.success) {
17291
          __this__success.add(other_element);
17292
        }
17293
        this.success = __this__success;
17294
      }
17295
      if (other.isSetEx()) {
17296
        this.ex = new TransactionServiceException(other.ex);
17297
      }
17298
    }
17299
 
17300
    public getCancellableOrdersForCustomer_result deepCopy() {
17301
      return new getCancellableOrdersForCustomer_result(this);
17302
    }
17303
 
3430 rajveer 17304
    @Override
17305
    public void clear() {
17306
      this.success = null;
17307
      this.ex = null;
1382 varun.gupt 17308
    }
17309
 
17310
    public int getSuccessSize() {
17311
      return (this.success == null) ? 0 : this.success.size();
17312
    }
17313
 
17314
    public java.util.Iterator<Long> getSuccessIterator() {
17315
      return (this.success == null) ? null : this.success.iterator();
17316
    }
17317
 
17318
    public void addToSuccess(long elem) {
17319
      if (this.success == null) {
17320
        this.success = new ArrayList<Long>();
17321
      }
17322
      this.success.add(elem);
17323
    }
17324
 
17325
    public List<Long> getSuccess() {
17326
      return this.success;
17327
    }
17328
 
3430 rajveer 17329
    public void setSuccess(List<Long> success) {
1382 varun.gupt 17330
      this.success = success;
17331
    }
17332
 
17333
    public void unsetSuccess() {
17334
      this.success = null;
17335
    }
17336
 
3430 rajveer 17337
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1382 varun.gupt 17338
    public boolean isSetSuccess() {
17339
      return this.success != null;
17340
    }
17341
 
17342
    public void setSuccessIsSet(boolean value) {
17343
      if (!value) {
17344
        this.success = null;
17345
      }
17346
    }
17347
 
17348
    public TransactionServiceException getEx() {
17349
      return this.ex;
17350
    }
17351
 
3430 rajveer 17352
    public void setEx(TransactionServiceException ex) {
1382 varun.gupt 17353
      this.ex = ex;
17354
    }
17355
 
17356
    public void unsetEx() {
17357
      this.ex = null;
17358
    }
17359
 
3430 rajveer 17360
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1382 varun.gupt 17361
    public boolean isSetEx() {
17362
      return this.ex != null;
17363
    }
17364
 
17365
    public void setExIsSet(boolean value) {
17366
      if (!value) {
17367
        this.ex = null;
17368
      }
17369
    }
17370
 
17371
    public void setFieldValue(_Fields field, Object value) {
17372
      switch (field) {
17373
      case SUCCESS:
17374
        if (value == null) {
17375
          unsetSuccess();
17376
        } else {
17377
          setSuccess((List<Long>)value);
17378
        }
17379
        break;
17380
 
17381
      case EX:
17382
        if (value == null) {
17383
          unsetEx();
17384
        } else {
17385
          setEx((TransactionServiceException)value);
17386
        }
17387
        break;
17388
 
17389
      }
17390
    }
17391
 
17392
    public Object getFieldValue(_Fields field) {
17393
      switch (field) {
17394
      case SUCCESS:
17395
        return getSuccess();
17396
 
17397
      case EX:
17398
        return getEx();
17399
 
17400
      }
17401
      throw new IllegalStateException();
17402
    }
17403
 
3430 rajveer 17404
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17405
    public boolean isSet(_Fields field) {
17406
      if (field == null) {
17407
        throw new IllegalArgumentException();
17408
      }
1382 varun.gupt 17409
 
17410
      switch (field) {
17411
      case SUCCESS:
17412
        return isSetSuccess();
17413
      case EX:
17414
        return isSetEx();
17415
      }
17416
      throw new IllegalStateException();
17417
    }
17418
 
17419
    @Override
17420
    public boolean equals(Object that) {
17421
      if (that == null)
17422
        return false;
17423
      if (that instanceof getCancellableOrdersForCustomer_result)
17424
        return this.equals((getCancellableOrdersForCustomer_result)that);
17425
      return false;
17426
    }
17427
 
17428
    public boolean equals(getCancellableOrdersForCustomer_result that) {
17429
      if (that == null)
17430
        return false;
17431
 
17432
      boolean this_present_success = true && this.isSetSuccess();
17433
      boolean that_present_success = true && that.isSetSuccess();
17434
      if (this_present_success || that_present_success) {
17435
        if (!(this_present_success && that_present_success))
17436
          return false;
17437
        if (!this.success.equals(that.success))
17438
          return false;
17439
      }
17440
 
17441
      boolean this_present_ex = true && this.isSetEx();
17442
      boolean that_present_ex = true && that.isSetEx();
17443
      if (this_present_ex || that_present_ex) {
17444
        if (!(this_present_ex && that_present_ex))
17445
          return false;
17446
        if (!this.ex.equals(that.ex))
17447
          return false;
17448
      }
17449
 
17450
      return true;
17451
    }
17452
 
17453
    @Override
17454
    public int hashCode() {
17455
      return 0;
17456
    }
17457
 
17458
    public int compareTo(getCancellableOrdersForCustomer_result other) {
17459
      if (!getClass().equals(other.getClass())) {
17460
        return getClass().getName().compareTo(other.getClass().getName());
17461
      }
17462
 
17463
      int lastComparison = 0;
17464
      getCancellableOrdersForCustomer_result typedOther = (getCancellableOrdersForCustomer_result)other;
17465
 
3430 rajveer 17466
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1382 varun.gupt 17467
      if (lastComparison != 0) {
17468
        return lastComparison;
17469
      }
3430 rajveer 17470
      if (isSetSuccess()) {
17471
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17472
        if (lastComparison != 0) {
17473
          return lastComparison;
17474
        }
1382 varun.gupt 17475
      }
3430 rajveer 17476
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1382 varun.gupt 17477
      if (lastComparison != 0) {
17478
        return lastComparison;
17479
      }
3430 rajveer 17480
      if (isSetEx()) {
17481
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
17482
        if (lastComparison != 0) {
17483
          return lastComparison;
17484
        }
1382 varun.gupt 17485
      }
17486
      return 0;
17487
    }
17488
 
3430 rajveer 17489
    public _Fields fieldForId(int fieldId) {
17490
      return _Fields.findByThriftId(fieldId);
17491
    }
17492
 
17493
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17494
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 17495
      iprot.readStructBegin();
17496
      while (true)
17497
      {
17498
        field = iprot.readFieldBegin();
3430 rajveer 17499
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 17500
          break;
17501
        }
3430 rajveer 17502
        switch (field.id) {
17503
          case 0: // SUCCESS
17504
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17505
              {
4133 chandransh 17506
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
17507
                this.success = new ArrayList<Long>(_list44.size);
17508
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
1382 varun.gupt 17509
                {
4133 chandransh 17510
                  long _elem46; // required
17511
                  _elem46 = iprot.readI64();
17512
                  this.success.add(_elem46);
1382 varun.gupt 17513
                }
3430 rajveer 17514
                iprot.readListEnd();
1382 varun.gupt 17515
              }
3430 rajveer 17516
            } else { 
17517
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17518
            }
17519
            break;
17520
          case 1: // EX
17521
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17522
              this.ex = new TransactionServiceException();
17523
              this.ex.read(iprot);
17524
            } else { 
17525
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17526
            }
17527
            break;
17528
          default:
17529
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 17530
        }
3430 rajveer 17531
        iprot.readFieldEnd();
1382 varun.gupt 17532
      }
17533
      iprot.readStructEnd();
17534
      validate();
17535
    }
17536
 
3430 rajveer 17537
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 17538
      oprot.writeStructBegin(STRUCT_DESC);
17539
 
17540
      if (this.isSetSuccess()) {
17541
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17542
        {
3430 rajveer 17543
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
4133 chandransh 17544
          for (long _iter47 : this.success)
1382 varun.gupt 17545
          {
4133 chandransh 17546
            oprot.writeI64(_iter47);
1382 varun.gupt 17547
          }
17548
          oprot.writeListEnd();
17549
        }
17550
        oprot.writeFieldEnd();
17551
      } else if (this.isSetEx()) {
17552
        oprot.writeFieldBegin(EX_FIELD_DESC);
17553
        this.ex.write(oprot);
17554
        oprot.writeFieldEnd();
17555
      }
17556
      oprot.writeFieldStop();
17557
      oprot.writeStructEnd();
17558
    }
17559
 
17560
    @Override
17561
    public String toString() {
17562
      StringBuilder sb = new StringBuilder("getCancellableOrdersForCustomer_result(");
17563
      boolean first = true;
17564
 
17565
      sb.append("success:");
17566
      if (this.success == null) {
17567
        sb.append("null");
17568
      } else {
17569
        sb.append(this.success);
17570
      }
17571
      first = false;
17572
      if (!first) sb.append(", ");
17573
      sb.append("ex:");
17574
      if (this.ex == null) {
17575
        sb.append("null");
17576
      } else {
17577
        sb.append(this.ex);
17578
      }
17579
      first = false;
17580
      sb.append(")");
17581
      return sb.toString();
17582
    }
17583
 
3430 rajveer 17584
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 17585
      // check for required fields
17586
    }
17587
 
3430 rajveer 17588
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17589
      try {
17590
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17591
      } catch (org.apache.thrift.TException te) {
17592
        throw new java.io.IOException(te);
17593
      }
17594
    }
17595
 
17596
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17597
      try {
17598
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17599
      } catch (org.apache.thrift.TException te) {
17600
        throw new java.io.IOException(te);
17601
      }
17602
    }
17603
 
1382 varun.gupt 17604
  }
17605
 
3430 rajveer 17606
  public static class changeOrderStatus_args implements org.apache.thrift.TBase<changeOrderStatus_args, changeOrderStatus_args._Fields>, java.io.Serializable, Cloneable   {
17607
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeOrderStatus_args");
68 ashish 17608
 
3430 rajveer 17609
    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);
17610
    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);
17611
    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);
68 ashish 17612
 
3430 rajveer 17613
    private long orderId; // required
17614
    private OrderStatus status; // required
17615
    private String description; // required
68 ashish 17616
 
17617
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17618
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
483 rajveer 17619
      ORDER_ID((short)1, "orderId"),
17620
      /**
17621
       * 
17622
       * @see OrderStatus
17623
       */
17624
      STATUS((short)2, "status"),
17625
      DESCRIPTION((short)3, "description");
68 ashish 17626
 
17627
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17628
 
17629
      static {
17630
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17631
          byName.put(field.getFieldName(), field);
17632
        }
17633
      }
17634
 
17635
      /**
17636
       * Find the _Fields constant that matches fieldId, or null if its not found.
17637
       */
17638
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17639
        switch(fieldId) {
17640
          case 1: // ORDER_ID
17641
            return ORDER_ID;
17642
          case 2: // STATUS
17643
            return STATUS;
17644
          case 3: // DESCRIPTION
17645
            return DESCRIPTION;
17646
          default:
17647
            return null;
17648
        }
68 ashish 17649
      }
17650
 
17651
      /**
17652
       * Find the _Fields constant that matches fieldId, throwing an exception
17653
       * if it is not found.
17654
       */
17655
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17656
        _Fields fields = findByThriftId(fieldId);
17657
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17658
        return fields;
17659
      }
17660
 
17661
      /**
17662
       * Find the _Fields constant that matches name, or null if its not found.
17663
       */
17664
      public static _Fields findByName(String name) {
17665
        return byName.get(name);
17666
      }
17667
 
17668
      private final short _thriftId;
17669
      private final String _fieldName;
17670
 
17671
      _Fields(short thriftId, String fieldName) {
17672
        _thriftId = thriftId;
17673
        _fieldName = fieldName;
17674
      }
17675
 
17676
      public short getThriftFieldId() {
17677
        return _thriftId;
17678
      }
17679
 
17680
      public String getFieldName() {
17681
        return _fieldName;
17682
      }
17683
    }
17684
 
17685
    // isset id assignments
483 rajveer 17686
    private static final int __ORDERID_ISSET_ID = 0;
68 ashish 17687
    private BitSet __isset_bit_vector = new BitSet(1);
17688
 
3430 rajveer 17689
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 17690
    static {
3430 rajveer 17691
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17692
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17693
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17694
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17695
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
17696
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17697
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17698
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17699
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeOrderStatus_args.class, metaDataMap);
68 ashish 17700
    }
17701
 
483 rajveer 17702
    public changeOrderStatus_args() {
68 ashish 17703
    }
17704
 
483 rajveer 17705
    public changeOrderStatus_args(
17706
      long orderId,
17707
      OrderStatus status,
17708
      String description)
68 ashish 17709
    {
17710
      this();
483 rajveer 17711
      this.orderId = orderId;
17712
      setOrderIdIsSet(true);
17713
      this.status = status;
17714
      this.description = description;
68 ashish 17715
    }
17716
 
17717
    /**
17718
     * Performs a deep copy on <i>other</i>.
17719
     */
483 rajveer 17720
    public changeOrderStatus_args(changeOrderStatus_args other) {
68 ashish 17721
      __isset_bit_vector.clear();
17722
      __isset_bit_vector.or(other.__isset_bit_vector);
483 rajveer 17723
      this.orderId = other.orderId;
17724
      if (other.isSetStatus()) {
17725
        this.status = other.status;
17726
      }
17727
      if (other.isSetDescription()) {
17728
        this.description = other.description;
17729
      }
68 ashish 17730
    }
17731
 
483 rajveer 17732
    public changeOrderStatus_args deepCopy() {
17733
      return new changeOrderStatus_args(this);
68 ashish 17734
    }
17735
 
3430 rajveer 17736
    @Override
17737
    public void clear() {
17738
      setOrderIdIsSet(false);
17739
      this.orderId = 0;
17740
      this.status = null;
17741
      this.description = null;
68 ashish 17742
    }
17743
 
483 rajveer 17744
    public long getOrderId() {
17745
      return this.orderId;
68 ashish 17746
    }
17747
 
3430 rajveer 17748
    public void setOrderId(long orderId) {
483 rajveer 17749
      this.orderId = orderId;
17750
      setOrderIdIsSet(true);
68 ashish 17751
    }
17752
 
483 rajveer 17753
    public void unsetOrderId() {
17754
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
68 ashish 17755
    }
17756
 
3430 rajveer 17757
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
483 rajveer 17758
    public boolean isSetOrderId() {
17759
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
68 ashish 17760
    }
17761
 
483 rajveer 17762
    public void setOrderIdIsSet(boolean value) {
17763
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
68 ashish 17764
    }
17765
 
483 rajveer 17766
    /**
17767
     * 
17768
     * @see OrderStatus
17769
     */
17770
    public OrderStatus getStatus() {
17771
      return this.status;
68 ashish 17772
    }
17773
 
17774
    /**
483 rajveer 17775
     * 
17776
     * @see OrderStatus
68 ashish 17777
     */
3430 rajveer 17778
    public void setStatus(OrderStatus status) {
483 rajveer 17779
      this.status = status;
68 ashish 17780
    }
17781
 
483 rajveer 17782
    public void unsetStatus() {
17783
      this.status = null;
68 ashish 17784
    }
17785
 
3430 rajveer 17786
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
483 rajveer 17787
    public boolean isSetStatus() {
17788
      return this.status != null;
68 ashish 17789
    }
17790
 
483 rajveer 17791
    public void setStatusIsSet(boolean value) {
68 ashish 17792
      if (!value) {
483 rajveer 17793
        this.status = null;
68 ashish 17794
      }
17795
    }
17796
 
483 rajveer 17797
    public String getDescription() {
17798
      return this.description;
68 ashish 17799
    }
17800
 
3430 rajveer 17801
    public void setDescription(String description) {
483 rajveer 17802
      this.description = description;
68 ashish 17803
    }
17804
 
483 rajveer 17805
    public void unsetDescription() {
17806
      this.description = null;
68 ashish 17807
    }
17808
 
3430 rajveer 17809
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
483 rajveer 17810
    public boolean isSetDescription() {
17811
      return this.description != null;
68 ashish 17812
    }
17813
 
483 rajveer 17814
    public void setDescriptionIsSet(boolean value) {
68 ashish 17815
      if (!value) {
483 rajveer 17816
        this.description = null;
68 ashish 17817
      }
17818
    }
17819
 
17820
    public void setFieldValue(_Fields field, Object value) {
17821
      switch (field) {
483 rajveer 17822
      case ORDER_ID:
68 ashish 17823
        if (value == null) {
483 rajveer 17824
          unsetOrderId();
68 ashish 17825
        } else {
483 rajveer 17826
          setOrderId((Long)value);
68 ashish 17827
        }
17828
        break;
17829
 
483 rajveer 17830
      case STATUS:
68 ashish 17831
        if (value == null) {
483 rajveer 17832
          unsetStatus();
68 ashish 17833
        } else {
483 rajveer 17834
          setStatus((OrderStatus)value);
68 ashish 17835
        }
17836
        break;
17837
 
483 rajveer 17838
      case DESCRIPTION:
17839
        if (value == null) {
17840
          unsetDescription();
17841
        } else {
17842
          setDescription((String)value);
17843
        }
17844
        break;
17845
 
68 ashish 17846
      }
17847
    }
17848
 
17849
    public Object getFieldValue(_Fields field) {
17850
      switch (field) {
483 rajveer 17851
      case ORDER_ID:
3430 rajveer 17852
        return Long.valueOf(getOrderId());
68 ashish 17853
 
483 rajveer 17854
      case STATUS:
17855
        return getStatus();
68 ashish 17856
 
483 rajveer 17857
      case DESCRIPTION:
17858
        return getDescription();
17859
 
68 ashish 17860
      }
17861
      throw new IllegalStateException();
17862
    }
17863
 
3430 rajveer 17864
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17865
    public boolean isSet(_Fields field) {
17866
      if (field == null) {
17867
        throw new IllegalArgumentException();
17868
      }
68 ashish 17869
 
17870
      switch (field) {
483 rajveer 17871
      case ORDER_ID:
17872
        return isSetOrderId();
17873
      case STATUS:
17874
        return isSetStatus();
17875
      case DESCRIPTION:
17876
        return isSetDescription();
68 ashish 17877
      }
17878
      throw new IllegalStateException();
17879
    }
17880
 
17881
    @Override
17882
    public boolean equals(Object that) {
17883
      if (that == null)
17884
        return false;
483 rajveer 17885
      if (that instanceof changeOrderStatus_args)
17886
        return this.equals((changeOrderStatus_args)that);
68 ashish 17887
      return false;
17888
    }
17889
 
483 rajveer 17890
    public boolean equals(changeOrderStatus_args that) {
68 ashish 17891
      if (that == null)
17892
        return false;
17893
 
483 rajveer 17894
      boolean this_present_orderId = true;
17895
      boolean that_present_orderId = true;
17896
      if (this_present_orderId || that_present_orderId) {
17897
        if (!(this_present_orderId && that_present_orderId))
68 ashish 17898
          return false;
483 rajveer 17899
        if (this.orderId != that.orderId)
68 ashish 17900
          return false;
17901
      }
17902
 
483 rajveer 17903
      boolean this_present_status = true && this.isSetStatus();
17904
      boolean that_present_status = true && that.isSetStatus();
17905
      if (this_present_status || that_present_status) {
17906
        if (!(this_present_status && that_present_status))
68 ashish 17907
          return false;
483 rajveer 17908
        if (!this.status.equals(that.status))
68 ashish 17909
          return false;
17910
      }
17911
 
483 rajveer 17912
      boolean this_present_description = true && this.isSetDescription();
17913
      boolean that_present_description = true && that.isSetDescription();
17914
      if (this_present_description || that_present_description) {
17915
        if (!(this_present_description && that_present_description))
17916
          return false;
17917
        if (!this.description.equals(that.description))
17918
          return false;
17919
      }
17920
 
68 ashish 17921
      return true;
17922
    }
17923
 
17924
    @Override
17925
    public int hashCode() {
17926
      return 0;
17927
    }
17928
 
483 rajveer 17929
    public int compareTo(changeOrderStatus_args other) {
17930
      if (!getClass().equals(other.getClass())) {
17931
        return getClass().getName().compareTo(other.getClass().getName());
68 ashish 17932
      }
17933
 
483 rajveer 17934
      int lastComparison = 0;
17935
      changeOrderStatus_args typedOther = (changeOrderStatus_args)other;
68 ashish 17936
 
3430 rajveer 17937
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
483 rajveer 17938
      if (lastComparison != 0) {
17939
        return lastComparison;
68 ashish 17940
      }
3430 rajveer 17941
      if (isSetOrderId()) {
17942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
17943
        if (lastComparison != 0) {
17944
          return lastComparison;
17945
        }
68 ashish 17946
      }
3430 rajveer 17947
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
483 rajveer 17948
      if (lastComparison != 0) {
17949
        return lastComparison;
68 ashish 17950
      }
3430 rajveer 17951
      if (isSetStatus()) {
17952
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
17953
        if (lastComparison != 0) {
17954
          return lastComparison;
17955
        }
68 ashish 17956
      }
3430 rajveer 17957
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
483 rajveer 17958
      if (lastComparison != 0) {
17959
        return lastComparison;
68 ashish 17960
      }
3430 rajveer 17961
      if (isSetDescription()) {
17962
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
17963
        if (lastComparison != 0) {
17964
          return lastComparison;
17965
        }
68 ashish 17966
      }
17967
      return 0;
17968
    }
17969
 
3430 rajveer 17970
    public _Fields fieldForId(int fieldId) {
17971
      return _Fields.findByThriftId(fieldId);
17972
    }
17973
 
17974
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17975
      org.apache.thrift.protocol.TField field;
68 ashish 17976
      iprot.readStructBegin();
17977
      while (true)
17978
      {
17979
        field = iprot.readFieldBegin();
3430 rajveer 17980
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 17981
          break;
17982
        }
3430 rajveer 17983
        switch (field.id) {
17984
          case 1: // ORDER_ID
17985
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17986
              this.orderId = iprot.readI64();
17987
              setOrderIdIsSet(true);
17988
            } else { 
17989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17990
            }
17991
            break;
17992
          case 2: // STATUS
17993
            if (field.type == org.apache.thrift.protocol.TType.I32) {
17994
              this.status = OrderStatus.findByValue(iprot.readI32());
17995
            } else { 
17996
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17997
            }
17998
            break;
17999
          case 3: // DESCRIPTION
18000
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18001
              this.description = iprot.readString();
18002
            } else { 
18003
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18004
            }
18005
            break;
18006
          default:
18007
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 18008
        }
3430 rajveer 18009
        iprot.readFieldEnd();
68 ashish 18010
      }
18011
      iprot.readStructEnd();
18012
      validate();
18013
    }
18014
 
3430 rajveer 18015
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 18016
      validate();
18017
 
18018
      oprot.writeStructBegin(STRUCT_DESC);
483 rajveer 18019
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
18020
      oprot.writeI64(this.orderId);
68 ashish 18021
      oprot.writeFieldEnd();
483 rajveer 18022
      if (this.status != null) {
18023
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
18024
        oprot.writeI32(this.status.getValue());
68 ashish 18025
        oprot.writeFieldEnd();
18026
      }
483 rajveer 18027
      if (this.description != null) {
18028
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
18029
        oprot.writeString(this.description);
18030
        oprot.writeFieldEnd();
18031
      }
68 ashish 18032
      oprot.writeFieldStop();
18033
      oprot.writeStructEnd();
18034
    }
18035
 
18036
    @Override
18037
    public String toString() {
483 rajveer 18038
      StringBuilder sb = new StringBuilder("changeOrderStatus_args(");
68 ashish 18039
      boolean first = true;
18040
 
483 rajveer 18041
      sb.append("orderId:");
18042
      sb.append(this.orderId);
68 ashish 18043
      first = false;
18044
      if (!first) sb.append(", ");
483 rajveer 18045
      sb.append("status:");
18046
      if (this.status == null) {
68 ashish 18047
        sb.append("null");
18048
      } else {
483 rajveer 18049
        sb.append(this.status);
68 ashish 18050
      }
18051
      first = false;
483 rajveer 18052
      if (!first) sb.append(", ");
18053
      sb.append("description:");
18054
      if (this.description == null) {
18055
        sb.append("null");
18056
      } else {
18057
        sb.append(this.description);
18058
      }
18059
      first = false;
68 ashish 18060
      sb.append(")");
18061
      return sb.toString();
18062
    }
18063
 
3430 rajveer 18064
    public void validate() throws org.apache.thrift.TException {
68 ashish 18065
      // check for required fields
18066
    }
18067
 
3430 rajveer 18068
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18069
      try {
18070
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18071
      } catch (org.apache.thrift.TException te) {
18072
        throw new java.io.IOException(te);
18073
      }
18074
    }
18075
 
18076
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18077
      try {
18078
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18079
        __isset_bit_vector = new BitSet(1);
18080
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18081
      } catch (org.apache.thrift.TException te) {
18082
        throw new java.io.IOException(te);
18083
      }
18084
    }
18085
 
68 ashish 18086
  }
18087
 
3430 rajveer 18088
  public static class changeOrderStatus_result implements org.apache.thrift.TBase<changeOrderStatus_result, changeOrderStatus_result._Fields>, java.io.Serializable, Cloneable   {
18089
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeOrderStatus_result");
68 ashish 18090
 
3430 rajveer 18091
    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);
18092
    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);
68 ashish 18093
 
3430 rajveer 18094
    private boolean success; // required
18095
    private TransactionServiceException ex; // required
68 ashish 18096
 
18097
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18098
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 18099
      SUCCESS((short)0, "success"),
18100
      EX((short)1, "ex");
18101
 
18102
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18103
 
18104
      static {
18105
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18106
          byName.put(field.getFieldName(), field);
18107
        }
18108
      }
18109
 
18110
      /**
18111
       * Find the _Fields constant that matches fieldId, or null if its not found.
18112
       */
18113
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18114
        switch(fieldId) {
18115
          case 0: // SUCCESS
18116
            return SUCCESS;
18117
          case 1: // EX
18118
            return EX;
18119
          default:
18120
            return null;
18121
        }
68 ashish 18122
      }
18123
 
18124
      /**
18125
       * Find the _Fields constant that matches fieldId, throwing an exception
18126
       * if it is not found.
18127
       */
18128
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18129
        _Fields fields = findByThriftId(fieldId);
18130
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18131
        return fields;
18132
      }
18133
 
18134
      /**
18135
       * Find the _Fields constant that matches name, or null if its not found.
18136
       */
18137
      public static _Fields findByName(String name) {
18138
        return byName.get(name);
18139
      }
18140
 
18141
      private final short _thriftId;
18142
      private final String _fieldName;
18143
 
18144
      _Fields(short thriftId, String fieldName) {
18145
        _thriftId = thriftId;
18146
        _fieldName = fieldName;
18147
      }
18148
 
18149
      public short getThriftFieldId() {
18150
        return _thriftId;
18151
      }
18152
 
18153
      public String getFieldName() {
18154
        return _fieldName;
18155
      }
18156
    }
18157
 
18158
    // isset id assignments
18159
    private static final int __SUCCESS_ISSET_ID = 0;
18160
    private BitSet __isset_bit_vector = new BitSet(1);
18161
 
3430 rajveer 18162
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 18163
    static {
3430 rajveer 18164
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18165
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18166
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
18167
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18168
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18169
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18170
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeOrderStatus_result.class, metaDataMap);
68 ashish 18171
    }
18172
 
483 rajveer 18173
    public changeOrderStatus_result() {
68 ashish 18174
    }
18175
 
483 rajveer 18176
    public changeOrderStatus_result(
68 ashish 18177
      boolean success,
18178
      TransactionServiceException ex)
18179
    {
18180
      this();
18181
      this.success = success;
18182
      setSuccessIsSet(true);
18183
      this.ex = ex;
18184
    }
18185
 
18186
    /**
18187
     * Performs a deep copy on <i>other</i>.
18188
     */
483 rajveer 18189
    public changeOrderStatus_result(changeOrderStatus_result other) {
68 ashish 18190
      __isset_bit_vector.clear();
18191
      __isset_bit_vector.or(other.__isset_bit_vector);
18192
      this.success = other.success;
18193
      if (other.isSetEx()) {
18194
        this.ex = new TransactionServiceException(other.ex);
18195
      }
18196
    }
18197
 
483 rajveer 18198
    public changeOrderStatus_result deepCopy() {
18199
      return new changeOrderStatus_result(this);
68 ashish 18200
    }
18201
 
3430 rajveer 18202
    @Override
18203
    public void clear() {
18204
      setSuccessIsSet(false);
18205
      this.success = false;
18206
      this.ex = null;
68 ashish 18207
    }
18208
 
18209
    public boolean isSuccess() {
18210
      return this.success;
18211
    }
18212
 
3430 rajveer 18213
    public void setSuccess(boolean success) {
68 ashish 18214
      this.success = success;
18215
      setSuccessIsSet(true);
18216
    }
18217
 
18218
    public void unsetSuccess() {
18219
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18220
    }
18221
 
3430 rajveer 18222
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 18223
    public boolean isSetSuccess() {
18224
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18225
    }
18226
 
18227
    public void setSuccessIsSet(boolean value) {
18228
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18229
    }
18230
 
18231
    public TransactionServiceException getEx() {
18232
      return this.ex;
18233
    }
18234
 
3430 rajveer 18235
    public void setEx(TransactionServiceException ex) {
68 ashish 18236
      this.ex = ex;
18237
    }
18238
 
18239
    public void unsetEx() {
18240
      this.ex = null;
18241
    }
18242
 
3430 rajveer 18243
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 18244
    public boolean isSetEx() {
18245
      return this.ex != null;
18246
    }
18247
 
18248
    public void setExIsSet(boolean value) {
18249
      if (!value) {
18250
        this.ex = null;
18251
      }
18252
    }
18253
 
18254
    public void setFieldValue(_Fields field, Object value) {
18255
      switch (field) {
18256
      case SUCCESS:
18257
        if (value == null) {
18258
          unsetSuccess();
18259
        } else {
18260
          setSuccess((Boolean)value);
18261
        }
18262
        break;
18263
 
18264
      case EX:
18265
        if (value == null) {
18266
          unsetEx();
18267
        } else {
18268
          setEx((TransactionServiceException)value);
18269
        }
18270
        break;
18271
 
18272
      }
18273
    }
18274
 
18275
    public Object getFieldValue(_Fields field) {
18276
      switch (field) {
18277
      case SUCCESS:
3430 rajveer 18278
        return Boolean.valueOf(isSuccess());
68 ashish 18279
 
18280
      case EX:
18281
        return getEx();
18282
 
18283
      }
18284
      throw new IllegalStateException();
18285
    }
18286
 
3430 rajveer 18287
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18288
    public boolean isSet(_Fields field) {
18289
      if (field == null) {
18290
        throw new IllegalArgumentException();
18291
      }
68 ashish 18292
 
18293
      switch (field) {
18294
      case SUCCESS:
18295
        return isSetSuccess();
18296
      case EX:
18297
        return isSetEx();
18298
      }
18299
      throw new IllegalStateException();
18300
    }
18301
 
18302
    @Override
18303
    public boolean equals(Object that) {
18304
      if (that == null)
18305
        return false;
483 rajveer 18306
      if (that instanceof changeOrderStatus_result)
18307
        return this.equals((changeOrderStatus_result)that);
68 ashish 18308
      return false;
18309
    }
18310
 
483 rajveer 18311
    public boolean equals(changeOrderStatus_result that) {
68 ashish 18312
      if (that == null)
18313
        return false;
18314
 
18315
      boolean this_present_success = true;
18316
      boolean that_present_success = true;
18317
      if (this_present_success || that_present_success) {
18318
        if (!(this_present_success && that_present_success))
18319
          return false;
18320
        if (this.success != that.success)
18321
          return false;
18322
      }
18323
 
18324
      boolean this_present_ex = true && this.isSetEx();
18325
      boolean that_present_ex = true && that.isSetEx();
18326
      if (this_present_ex || that_present_ex) {
18327
        if (!(this_present_ex && that_present_ex))
18328
          return false;
18329
        if (!this.ex.equals(that.ex))
18330
          return false;
18331
      }
18332
 
18333
      return true;
18334
    }
18335
 
18336
    @Override
18337
    public int hashCode() {
18338
      return 0;
18339
    }
18340
 
483 rajveer 18341
    public int compareTo(changeOrderStatus_result other) {
68 ashish 18342
      if (!getClass().equals(other.getClass())) {
18343
        return getClass().getName().compareTo(other.getClass().getName());
18344
      }
18345
 
18346
      int lastComparison = 0;
483 rajveer 18347
      changeOrderStatus_result typedOther = (changeOrderStatus_result)other;
68 ashish 18348
 
3430 rajveer 18349
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 18350
      if (lastComparison != 0) {
18351
        return lastComparison;
18352
      }
3430 rajveer 18353
      if (isSetSuccess()) {
18354
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18355
        if (lastComparison != 0) {
18356
          return lastComparison;
18357
        }
68 ashish 18358
      }
3430 rajveer 18359
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 18360
      if (lastComparison != 0) {
18361
        return lastComparison;
18362
      }
3430 rajveer 18363
      if (isSetEx()) {
18364
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
18365
        if (lastComparison != 0) {
18366
          return lastComparison;
18367
        }
68 ashish 18368
      }
18369
      return 0;
18370
    }
18371
 
3430 rajveer 18372
    public _Fields fieldForId(int fieldId) {
18373
      return _Fields.findByThriftId(fieldId);
18374
    }
18375
 
18376
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18377
      org.apache.thrift.protocol.TField field;
68 ashish 18378
      iprot.readStructBegin();
18379
      while (true)
18380
      {
18381
        field = iprot.readFieldBegin();
3430 rajveer 18382
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 18383
          break;
18384
        }
3430 rajveer 18385
        switch (field.id) {
18386
          case 0: // SUCCESS
18387
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
18388
              this.success = iprot.readBool();
18389
              setSuccessIsSet(true);
18390
            } else { 
18391
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18392
            }
18393
            break;
18394
          case 1: // EX
18395
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18396
              this.ex = new TransactionServiceException();
18397
              this.ex.read(iprot);
18398
            } else { 
18399
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18400
            }
18401
            break;
18402
          default:
18403
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 18404
        }
3430 rajveer 18405
        iprot.readFieldEnd();
68 ashish 18406
      }
18407
      iprot.readStructEnd();
18408
      validate();
18409
    }
18410
 
3430 rajveer 18411
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 18412
      oprot.writeStructBegin(STRUCT_DESC);
18413
 
18414
      if (this.isSetSuccess()) {
18415
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18416
        oprot.writeBool(this.success);
18417
        oprot.writeFieldEnd();
18418
      } else if (this.isSetEx()) {
18419
        oprot.writeFieldBegin(EX_FIELD_DESC);
18420
        this.ex.write(oprot);
18421
        oprot.writeFieldEnd();
18422
      }
18423
      oprot.writeFieldStop();
18424
      oprot.writeStructEnd();
18425
    }
18426
 
18427
    @Override
18428
    public String toString() {
483 rajveer 18429
      StringBuilder sb = new StringBuilder("changeOrderStatus_result(");
68 ashish 18430
      boolean first = true;
18431
 
18432
      sb.append("success:");
18433
      sb.append(this.success);
18434
      first = false;
18435
      if (!first) sb.append(", ");
18436
      sb.append("ex:");
18437
      if (this.ex == null) {
18438
        sb.append("null");
18439
      } else {
18440
        sb.append(this.ex);
18441
      }
18442
      first = false;
18443
      sb.append(")");
18444
      return sb.toString();
18445
    }
18446
 
3430 rajveer 18447
    public void validate() throws org.apache.thrift.TException {
68 ashish 18448
      // check for required fields
18449
    }
18450
 
3430 rajveer 18451
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18452
      try {
18453
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18454
      } catch (org.apache.thrift.TException te) {
18455
        throw new java.io.IOException(te);
18456
      }
18457
    }
18458
 
18459
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18460
      try {
18461
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18462
      } catch (org.apache.thrift.TException te) {
18463
        throw new java.io.IOException(te);
18464
      }
18465
    }
18466
 
68 ashish 18467
  }
18468
 
3430 rajveer 18469
  public static class getOrdersForTransaction_args implements org.apache.thrift.TBase<getOrdersForTransaction_args, getOrdersForTransaction_args._Fields>, java.io.Serializable, Cloneable   {
18470
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForTransaction_args");
495 rajveer 18471
 
3430 rajveer 18472
    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);
18473
    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);
495 rajveer 18474
 
3430 rajveer 18475
    private long transactionId; // required
18476
    private long customerId; // required
495 rajveer 18477
 
18478
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18479
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 18480
      TRANSACTION_ID((short)1, "transactionId"),
18481
      CUSTOMER_ID((short)2, "customerId");
495 rajveer 18482
 
18483
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18484
 
18485
      static {
18486
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18487
          byName.put(field.getFieldName(), field);
18488
        }
18489
      }
18490
 
18491
      /**
18492
       * Find the _Fields constant that matches fieldId, or null if its not found.
18493
       */
18494
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18495
        switch(fieldId) {
18496
          case 1: // TRANSACTION_ID
18497
            return TRANSACTION_ID;
18498
          case 2: // CUSTOMER_ID
18499
            return CUSTOMER_ID;
18500
          default:
18501
            return null;
18502
        }
495 rajveer 18503
      }
18504
 
18505
      /**
18506
       * Find the _Fields constant that matches fieldId, throwing an exception
18507
       * if it is not found.
18508
       */
18509
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18510
        _Fields fields = findByThriftId(fieldId);
18511
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18512
        return fields;
18513
      }
18514
 
18515
      /**
18516
       * Find the _Fields constant that matches name, or null if its not found.
18517
       */
18518
      public static _Fields findByName(String name) {
18519
        return byName.get(name);
18520
      }
18521
 
18522
      private final short _thriftId;
18523
      private final String _fieldName;
18524
 
18525
      _Fields(short thriftId, String fieldName) {
18526
        _thriftId = thriftId;
18527
        _fieldName = fieldName;
18528
      }
18529
 
18530
      public short getThriftFieldId() {
18531
        return _thriftId;
18532
      }
18533
 
18534
      public String getFieldName() {
18535
        return _fieldName;
18536
      }
18537
    }
18538
 
18539
    // isset id assignments
3061 chandransh 18540
    private static final int __TRANSACTIONID_ISSET_ID = 0;
18541
    private static final int __CUSTOMERID_ISSET_ID = 1;
18542
    private BitSet __isset_bit_vector = new BitSet(2);
495 rajveer 18543
 
3430 rajveer 18544
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 18545
    static {
3430 rajveer 18546
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18547
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18548
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18549
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18550
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18551
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18552
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForTransaction_args.class, metaDataMap);
495 rajveer 18553
    }
18554
 
3061 chandransh 18555
    public getOrdersForTransaction_args() {
495 rajveer 18556
    }
18557
 
3061 chandransh 18558
    public getOrdersForTransaction_args(
18559
      long transactionId,
18560
      long customerId)
495 rajveer 18561
    {
18562
      this();
3061 chandransh 18563
      this.transactionId = transactionId;
18564
      setTransactionIdIsSet(true);
18565
      this.customerId = customerId;
18566
      setCustomerIdIsSet(true);
495 rajveer 18567
    }
18568
 
18569
    /**
18570
     * Performs a deep copy on <i>other</i>.
18571
     */
3061 chandransh 18572
    public getOrdersForTransaction_args(getOrdersForTransaction_args other) {
495 rajveer 18573
      __isset_bit_vector.clear();
18574
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 18575
      this.transactionId = other.transactionId;
18576
      this.customerId = other.customerId;
495 rajveer 18577
    }
18578
 
3061 chandransh 18579
    public getOrdersForTransaction_args deepCopy() {
18580
      return new getOrdersForTransaction_args(this);
495 rajveer 18581
    }
18582
 
3430 rajveer 18583
    @Override
18584
    public void clear() {
18585
      setTransactionIdIsSet(false);
18586
      this.transactionId = 0;
18587
      setCustomerIdIsSet(false);
18588
      this.customerId = 0;
495 rajveer 18589
    }
18590
 
3061 chandransh 18591
    public long getTransactionId() {
18592
      return this.transactionId;
495 rajveer 18593
    }
18594
 
3430 rajveer 18595
    public void setTransactionId(long transactionId) {
3061 chandransh 18596
      this.transactionId = transactionId;
18597
      setTransactionIdIsSet(true);
495 rajveer 18598
    }
18599
 
3061 chandransh 18600
    public void unsetTransactionId() {
18601
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
495 rajveer 18602
    }
18603
 
3430 rajveer 18604
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
3061 chandransh 18605
    public boolean isSetTransactionId() {
18606
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
495 rajveer 18607
    }
18608
 
3061 chandransh 18609
    public void setTransactionIdIsSet(boolean value) {
18610
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
495 rajveer 18611
    }
18612
 
3061 chandransh 18613
    public long getCustomerId() {
18614
      return this.customerId;
495 rajveer 18615
    }
18616
 
3430 rajveer 18617
    public void setCustomerId(long customerId) {
3061 chandransh 18618
      this.customerId = customerId;
18619
      setCustomerIdIsSet(true);
495 rajveer 18620
    }
18621
 
3061 chandransh 18622
    public void unsetCustomerId() {
18623
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
495 rajveer 18624
    }
18625
 
3430 rajveer 18626
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
3061 chandransh 18627
    public boolean isSetCustomerId() {
18628
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
495 rajveer 18629
    }
18630
 
3061 chandransh 18631
    public void setCustomerIdIsSet(boolean value) {
18632
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
495 rajveer 18633
    }
18634
 
18635
    public void setFieldValue(_Fields field, Object value) {
18636
      switch (field) {
3061 chandransh 18637
      case TRANSACTION_ID:
495 rajveer 18638
        if (value == null) {
3061 chandransh 18639
          unsetTransactionId();
495 rajveer 18640
        } else {
3061 chandransh 18641
          setTransactionId((Long)value);
495 rajveer 18642
        }
18643
        break;
18644
 
3061 chandransh 18645
      case CUSTOMER_ID:
495 rajveer 18646
        if (value == null) {
3061 chandransh 18647
          unsetCustomerId();
495 rajveer 18648
        } else {
3061 chandransh 18649
          setCustomerId((Long)value);
495 rajveer 18650
        }
18651
        break;
18652
 
18653
      }
18654
    }
18655
 
18656
    public Object getFieldValue(_Fields field) {
18657
      switch (field) {
3061 chandransh 18658
      case TRANSACTION_ID:
3430 rajveer 18659
        return Long.valueOf(getTransactionId());
495 rajveer 18660
 
3061 chandransh 18661
      case CUSTOMER_ID:
3430 rajveer 18662
        return Long.valueOf(getCustomerId());
495 rajveer 18663
 
18664
      }
18665
      throw new IllegalStateException();
18666
    }
18667
 
3430 rajveer 18668
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18669
    public boolean isSet(_Fields field) {
18670
      if (field == null) {
18671
        throw new IllegalArgumentException();
18672
      }
495 rajveer 18673
 
18674
      switch (field) {
3061 chandransh 18675
      case TRANSACTION_ID:
18676
        return isSetTransactionId();
18677
      case CUSTOMER_ID:
18678
        return isSetCustomerId();
495 rajveer 18679
      }
18680
      throw new IllegalStateException();
18681
    }
18682
 
18683
    @Override
18684
    public boolean equals(Object that) {
18685
      if (that == null)
18686
        return false;
3061 chandransh 18687
      if (that instanceof getOrdersForTransaction_args)
18688
        return this.equals((getOrdersForTransaction_args)that);
495 rajveer 18689
      return false;
18690
    }
18691
 
3061 chandransh 18692
    public boolean equals(getOrdersForTransaction_args that) {
495 rajveer 18693
      if (that == null)
18694
        return false;
18695
 
3061 chandransh 18696
      boolean this_present_transactionId = true;
18697
      boolean that_present_transactionId = true;
18698
      if (this_present_transactionId || that_present_transactionId) {
18699
        if (!(this_present_transactionId && that_present_transactionId))
495 rajveer 18700
          return false;
3061 chandransh 18701
        if (this.transactionId != that.transactionId)
495 rajveer 18702
          return false;
18703
      }
18704
 
3061 chandransh 18705
      boolean this_present_customerId = true;
18706
      boolean that_present_customerId = true;
18707
      if (this_present_customerId || that_present_customerId) {
18708
        if (!(this_present_customerId && that_present_customerId))
495 rajveer 18709
          return false;
3061 chandransh 18710
        if (this.customerId != that.customerId)
495 rajveer 18711
          return false;
18712
      }
18713
 
18714
      return true;
18715
    }
18716
 
18717
    @Override
18718
    public int hashCode() {
18719
      return 0;
18720
    }
18721
 
3061 chandransh 18722
    public int compareTo(getOrdersForTransaction_args other) {
495 rajveer 18723
      if (!getClass().equals(other.getClass())) {
18724
        return getClass().getName().compareTo(other.getClass().getName());
18725
      }
18726
 
18727
      int lastComparison = 0;
3061 chandransh 18728
      getOrdersForTransaction_args typedOther = (getOrdersForTransaction_args)other;
495 rajveer 18729
 
3430 rajveer 18730
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
495 rajveer 18731
      if (lastComparison != 0) {
18732
        return lastComparison;
18733
      }
3430 rajveer 18734
      if (isSetTransactionId()) {
18735
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
18736
        if (lastComparison != 0) {
18737
          return lastComparison;
18738
        }
495 rajveer 18739
      }
3430 rajveer 18740
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
495 rajveer 18741
      if (lastComparison != 0) {
18742
        return lastComparison;
18743
      }
3430 rajveer 18744
      if (isSetCustomerId()) {
18745
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
18746
        if (lastComparison != 0) {
18747
          return lastComparison;
18748
        }
495 rajveer 18749
      }
18750
      return 0;
18751
    }
18752
 
3430 rajveer 18753
    public _Fields fieldForId(int fieldId) {
18754
      return _Fields.findByThriftId(fieldId);
18755
    }
18756
 
18757
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18758
      org.apache.thrift.protocol.TField field;
495 rajveer 18759
      iprot.readStructBegin();
18760
      while (true)
18761
      {
18762
        field = iprot.readFieldBegin();
3430 rajveer 18763
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 18764
          break;
18765
        }
3430 rajveer 18766
        switch (field.id) {
18767
          case 1: // TRANSACTION_ID
18768
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18769
              this.transactionId = iprot.readI64();
18770
              setTransactionIdIsSet(true);
18771
            } else { 
18772
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18773
            }
18774
            break;
18775
          case 2: // CUSTOMER_ID
18776
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18777
              this.customerId = iprot.readI64();
18778
              setCustomerIdIsSet(true);
18779
            } else { 
18780
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18781
            }
18782
            break;
18783
          default:
18784
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 18785
        }
3430 rajveer 18786
        iprot.readFieldEnd();
495 rajveer 18787
      }
18788
      iprot.readStructEnd();
18789
      validate();
18790
    }
18791
 
3430 rajveer 18792
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 18793
      validate();
18794
 
18795
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 18796
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
18797
      oprot.writeI64(this.transactionId);
495 rajveer 18798
      oprot.writeFieldEnd();
3061 chandransh 18799
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
18800
      oprot.writeI64(this.customerId);
18801
      oprot.writeFieldEnd();
495 rajveer 18802
      oprot.writeFieldStop();
18803
      oprot.writeStructEnd();
18804
    }
18805
 
18806
    @Override
18807
    public String toString() {
3061 chandransh 18808
      StringBuilder sb = new StringBuilder("getOrdersForTransaction_args(");
495 rajveer 18809
      boolean first = true;
18810
 
3061 chandransh 18811
      sb.append("transactionId:");
18812
      sb.append(this.transactionId);
495 rajveer 18813
      first = false;
18814
      if (!first) sb.append(", ");
3061 chandransh 18815
      sb.append("customerId:");
18816
      sb.append(this.customerId);
495 rajveer 18817
      first = false;
18818
      sb.append(")");
18819
      return sb.toString();
18820
    }
18821
 
3430 rajveer 18822
    public void validate() throws org.apache.thrift.TException {
495 rajveer 18823
      // check for required fields
18824
    }
18825
 
3430 rajveer 18826
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18827
      try {
18828
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18829
      } catch (org.apache.thrift.TException te) {
18830
        throw new java.io.IOException(te);
18831
      }
18832
    }
18833
 
18834
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18835
      try {
18836
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18837
      } catch (org.apache.thrift.TException te) {
18838
        throw new java.io.IOException(te);
18839
      }
18840
    }
18841
 
495 rajveer 18842
  }
18843
 
3430 rajveer 18844
  public static class getOrdersForTransaction_result implements org.apache.thrift.TBase<getOrdersForTransaction_result, getOrdersForTransaction_result._Fields>, java.io.Serializable, Cloneable   {
18845
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForTransaction_result");
495 rajveer 18846
 
3430 rajveer 18847
    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);
18848
    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);
495 rajveer 18849
 
3430 rajveer 18850
    private List<Order> success; // required
18851
    private TransactionServiceException ex; // required
495 rajveer 18852
 
18853
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18854
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 18855
      SUCCESS((short)0, "success"),
18856
      EX((short)1, "ex");
18857
 
18858
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18859
 
18860
      static {
18861
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18862
          byName.put(field.getFieldName(), field);
18863
        }
18864
      }
18865
 
18866
      /**
18867
       * Find the _Fields constant that matches fieldId, or null if its not found.
18868
       */
18869
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18870
        switch(fieldId) {
18871
          case 0: // SUCCESS
18872
            return SUCCESS;
18873
          case 1: // EX
18874
            return EX;
18875
          default:
18876
            return null;
18877
        }
495 rajveer 18878
      }
18879
 
18880
      /**
18881
       * Find the _Fields constant that matches fieldId, throwing an exception
18882
       * if it is not found.
18883
       */
18884
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18885
        _Fields fields = findByThriftId(fieldId);
18886
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18887
        return fields;
18888
      }
18889
 
18890
      /**
18891
       * Find the _Fields constant that matches name, or null if its not found.
18892
       */
18893
      public static _Fields findByName(String name) {
18894
        return byName.get(name);
18895
      }
18896
 
18897
      private final short _thriftId;
18898
      private final String _fieldName;
18899
 
18900
      _Fields(short thriftId, String fieldName) {
18901
        _thriftId = thriftId;
18902
        _fieldName = fieldName;
18903
      }
18904
 
18905
      public short getThriftFieldId() {
18906
        return _thriftId;
18907
      }
18908
 
18909
      public String getFieldName() {
18910
        return _fieldName;
18911
      }
18912
    }
18913
 
18914
    // isset id assignments
18915
 
3430 rajveer 18916
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 18917
    static {
3430 rajveer 18918
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18919
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18920
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18921
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
18922
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18923
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18924
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18925
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForTransaction_result.class, metaDataMap);
495 rajveer 18926
    }
18927
 
3061 chandransh 18928
    public getOrdersForTransaction_result() {
495 rajveer 18929
    }
18930
 
3061 chandransh 18931
    public getOrdersForTransaction_result(
18932
      List<Order> success,
495 rajveer 18933
      TransactionServiceException ex)
18934
    {
18935
      this();
18936
      this.success = success;
18937
      this.ex = ex;
18938
    }
18939
 
18940
    /**
18941
     * Performs a deep copy on <i>other</i>.
18942
     */
3061 chandransh 18943
    public getOrdersForTransaction_result(getOrdersForTransaction_result other) {
18944
      if (other.isSetSuccess()) {
18945
        List<Order> __this__success = new ArrayList<Order>();
18946
        for (Order other_element : other.success) {
18947
          __this__success.add(new Order(other_element));
18948
        }
18949
        this.success = __this__success;
18950
      }
495 rajveer 18951
      if (other.isSetEx()) {
18952
        this.ex = new TransactionServiceException(other.ex);
18953
      }
18954
    }
18955
 
3061 chandransh 18956
    public getOrdersForTransaction_result deepCopy() {
18957
      return new getOrdersForTransaction_result(this);
495 rajveer 18958
    }
18959
 
3430 rajveer 18960
    @Override
18961
    public void clear() {
18962
      this.success = null;
18963
      this.ex = null;
495 rajveer 18964
    }
18965
 
3061 chandransh 18966
    public int getSuccessSize() {
18967
      return (this.success == null) ? 0 : this.success.size();
18968
    }
18969
 
18970
    public java.util.Iterator<Order> getSuccessIterator() {
18971
      return (this.success == null) ? null : this.success.iterator();
18972
    }
18973
 
18974
    public void addToSuccess(Order elem) {
18975
      if (this.success == null) {
18976
        this.success = new ArrayList<Order>();
18977
      }
18978
      this.success.add(elem);
18979
    }
18980
 
18981
    public List<Order> getSuccess() {
495 rajveer 18982
      return this.success;
18983
    }
18984
 
3430 rajveer 18985
    public void setSuccess(List<Order> success) {
495 rajveer 18986
      this.success = success;
18987
    }
18988
 
18989
    public void unsetSuccess() {
3061 chandransh 18990
      this.success = null;
495 rajveer 18991
    }
18992
 
3430 rajveer 18993
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 18994
    public boolean isSetSuccess() {
3061 chandransh 18995
      return this.success != null;
495 rajveer 18996
    }
18997
 
18998
    public void setSuccessIsSet(boolean value) {
3061 chandransh 18999
      if (!value) {
19000
        this.success = null;
19001
      }
495 rajveer 19002
    }
19003
 
19004
    public TransactionServiceException getEx() {
19005
      return this.ex;
19006
    }
19007
 
3430 rajveer 19008
    public void setEx(TransactionServiceException ex) {
495 rajveer 19009
      this.ex = ex;
19010
    }
19011
 
19012
    public void unsetEx() {
19013
      this.ex = null;
19014
    }
19015
 
3430 rajveer 19016
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
495 rajveer 19017
    public boolean isSetEx() {
19018
      return this.ex != null;
19019
    }
19020
 
19021
    public void setExIsSet(boolean value) {
19022
      if (!value) {
19023
        this.ex = null;
19024
      }
19025
    }
19026
 
19027
    public void setFieldValue(_Fields field, Object value) {
19028
      switch (field) {
19029
      case SUCCESS:
19030
        if (value == null) {
19031
          unsetSuccess();
19032
        } else {
3061 chandransh 19033
          setSuccess((List<Order>)value);
495 rajveer 19034
        }
19035
        break;
19036
 
19037
      case EX:
19038
        if (value == null) {
19039
          unsetEx();
19040
        } else {
19041
          setEx((TransactionServiceException)value);
19042
        }
19043
        break;
19044
 
19045
      }
19046
    }
19047
 
19048
    public Object getFieldValue(_Fields field) {
19049
      switch (field) {
19050
      case SUCCESS:
3061 chandransh 19051
        return getSuccess();
495 rajveer 19052
 
19053
      case EX:
19054
        return getEx();
19055
 
19056
      }
19057
      throw new IllegalStateException();
19058
    }
19059
 
3430 rajveer 19060
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19061
    public boolean isSet(_Fields field) {
19062
      if (field == null) {
19063
        throw new IllegalArgumentException();
19064
      }
495 rajveer 19065
 
19066
      switch (field) {
19067
      case SUCCESS:
19068
        return isSetSuccess();
19069
      case EX:
19070
        return isSetEx();
19071
      }
19072
      throw new IllegalStateException();
19073
    }
19074
 
19075
    @Override
19076
    public boolean equals(Object that) {
19077
      if (that == null)
19078
        return false;
3061 chandransh 19079
      if (that instanceof getOrdersForTransaction_result)
19080
        return this.equals((getOrdersForTransaction_result)that);
495 rajveer 19081
      return false;
19082
    }
19083
 
3061 chandransh 19084
    public boolean equals(getOrdersForTransaction_result that) {
495 rajveer 19085
      if (that == null)
19086
        return false;
19087
 
3061 chandransh 19088
      boolean this_present_success = true && this.isSetSuccess();
19089
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 19090
      if (this_present_success || that_present_success) {
19091
        if (!(this_present_success && that_present_success))
19092
          return false;
3061 chandransh 19093
        if (!this.success.equals(that.success))
495 rajveer 19094
          return false;
19095
      }
19096
 
19097
      boolean this_present_ex = true && this.isSetEx();
19098
      boolean that_present_ex = true && that.isSetEx();
19099
      if (this_present_ex || that_present_ex) {
19100
        if (!(this_present_ex && that_present_ex))
19101
          return false;
19102
        if (!this.ex.equals(that.ex))
19103
          return false;
19104
      }
19105
 
19106
      return true;
19107
    }
19108
 
19109
    @Override
19110
    public int hashCode() {
19111
      return 0;
19112
    }
19113
 
3061 chandransh 19114
    public int compareTo(getOrdersForTransaction_result other) {
495 rajveer 19115
      if (!getClass().equals(other.getClass())) {
19116
        return getClass().getName().compareTo(other.getClass().getName());
19117
      }
19118
 
19119
      int lastComparison = 0;
3061 chandransh 19120
      getOrdersForTransaction_result typedOther = (getOrdersForTransaction_result)other;
495 rajveer 19121
 
3430 rajveer 19122
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 19123
      if (lastComparison != 0) {
19124
        return lastComparison;
19125
      }
3430 rajveer 19126
      if (isSetSuccess()) {
19127
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19128
        if (lastComparison != 0) {
19129
          return lastComparison;
19130
        }
495 rajveer 19131
      }
3430 rajveer 19132
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
495 rajveer 19133
      if (lastComparison != 0) {
19134
        return lastComparison;
19135
      }
3430 rajveer 19136
      if (isSetEx()) {
19137
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
19138
        if (lastComparison != 0) {
19139
          return lastComparison;
19140
        }
495 rajveer 19141
      }
19142
      return 0;
19143
    }
19144
 
3430 rajveer 19145
    public _Fields fieldForId(int fieldId) {
19146
      return _Fields.findByThriftId(fieldId);
19147
    }
19148
 
19149
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19150
      org.apache.thrift.protocol.TField field;
495 rajveer 19151
      iprot.readStructBegin();
19152
      while (true)
19153
      {
19154
        field = iprot.readFieldBegin();
3430 rajveer 19155
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 19156
          break;
19157
        }
3430 rajveer 19158
        switch (field.id) {
19159
          case 0: // SUCCESS
19160
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19161
              {
4133 chandransh 19162
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
19163
                this.success = new ArrayList<Order>(_list48.size);
19164
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
3061 chandransh 19165
                {
4133 chandransh 19166
                  Order _elem50; // required
19167
                  _elem50 = new Order();
19168
                  _elem50.read(iprot);
19169
                  this.success.add(_elem50);
3061 chandransh 19170
                }
3430 rajveer 19171
                iprot.readListEnd();
495 rajveer 19172
              }
3430 rajveer 19173
            } else { 
19174
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19175
            }
19176
            break;
19177
          case 1: // EX
19178
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19179
              this.ex = new TransactionServiceException();
19180
              this.ex.read(iprot);
19181
            } else { 
19182
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19183
            }
19184
            break;
19185
          default:
19186
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 19187
        }
3430 rajveer 19188
        iprot.readFieldEnd();
495 rajveer 19189
      }
19190
      iprot.readStructEnd();
19191
      validate();
19192
    }
19193
 
3430 rajveer 19194
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 19195
      oprot.writeStructBegin(STRUCT_DESC);
19196
 
19197
      if (this.isSetSuccess()) {
19198
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 19199
        {
3430 rajveer 19200
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 19201
          for (Order _iter51 : this.success)
3061 chandransh 19202
          {
4133 chandransh 19203
            _iter51.write(oprot);
3061 chandransh 19204
          }
19205
          oprot.writeListEnd();
19206
        }
495 rajveer 19207
        oprot.writeFieldEnd();
19208
      } else if (this.isSetEx()) {
19209
        oprot.writeFieldBegin(EX_FIELD_DESC);
19210
        this.ex.write(oprot);
19211
        oprot.writeFieldEnd();
19212
      }
19213
      oprot.writeFieldStop();
19214
      oprot.writeStructEnd();
19215
    }
19216
 
19217
    @Override
19218
    public String toString() {
3061 chandransh 19219
      StringBuilder sb = new StringBuilder("getOrdersForTransaction_result(");
495 rajveer 19220
      boolean first = true;
19221
 
19222
      sb.append("success:");
3061 chandransh 19223
      if (this.success == null) {
19224
        sb.append("null");
19225
      } else {
19226
        sb.append(this.success);
19227
      }
495 rajveer 19228
      first = false;
19229
      if (!first) sb.append(", ");
19230
      sb.append("ex:");
19231
      if (this.ex == null) {
19232
        sb.append("null");
19233
      } else {
19234
        sb.append(this.ex);
19235
      }
19236
      first = false;
19237
      sb.append(")");
19238
      return sb.toString();
19239
    }
19240
 
3430 rajveer 19241
    public void validate() throws org.apache.thrift.TException {
495 rajveer 19242
      // check for required fields
19243
    }
19244
 
3430 rajveer 19245
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19246
      try {
19247
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19248
      } catch (org.apache.thrift.TException te) {
19249
        throw new java.io.IOException(te);
19250
      }
19251
    }
19252
 
19253
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19254
      try {
19255
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19256
      } catch (org.apache.thrift.TException te) {
19257
        throw new java.io.IOException(te);
19258
      }
19259
    }
19260
 
495 rajveer 19261
  }
19262
 
3430 rajveer 19263
  public static class getOrdersForCustomer_args implements org.apache.thrift.TBase<getOrdersForCustomer_args, getOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
19264
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForCustomer_args");
1148 chandransh 19265
 
3430 rajveer 19266
    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);
19267
    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);
19268
    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);
19269
    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);
1148 chandransh 19270
 
3430 rajveer 19271
    private long customerId; // required
19272
    private long from_date; // required
19273
    private long to_date; // required
19274
    private List<OrderStatus> statuses; // required
1148 chandransh 19275
 
19276
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19277
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 19278
      CUSTOMER_ID((short)1, "customerId"),
19279
      FROM_DATE((short)2, "from_date"),
19280
      TO_DATE((short)3, "to_date"),
19281
      STATUSES((short)4, "statuses");
1148 chandransh 19282
 
19283
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19284
 
19285
      static {
19286
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19287
          byName.put(field.getFieldName(), field);
19288
        }
19289
      }
19290
 
19291
      /**
19292
       * Find the _Fields constant that matches fieldId, or null if its not found.
19293
       */
19294
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19295
        switch(fieldId) {
19296
          case 1: // CUSTOMER_ID
19297
            return CUSTOMER_ID;
19298
          case 2: // FROM_DATE
19299
            return FROM_DATE;
19300
          case 3: // TO_DATE
19301
            return TO_DATE;
19302
          case 4: // STATUSES
19303
            return STATUSES;
19304
          default:
19305
            return null;
19306
        }
1148 chandransh 19307
      }
19308
 
19309
      /**
19310
       * Find the _Fields constant that matches fieldId, throwing an exception
19311
       * if it is not found.
19312
       */
19313
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19314
        _Fields fields = findByThriftId(fieldId);
19315
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19316
        return fields;
19317
      }
19318
 
19319
      /**
19320
       * Find the _Fields constant that matches name, or null if its not found.
19321
       */
19322
      public static _Fields findByName(String name) {
19323
        return byName.get(name);
19324
      }
19325
 
19326
      private final short _thriftId;
19327
      private final String _fieldName;
19328
 
19329
      _Fields(short thriftId, String fieldName) {
19330
        _thriftId = thriftId;
19331
        _fieldName = fieldName;
19332
      }
19333
 
19334
      public short getThriftFieldId() {
19335
        return _thriftId;
19336
      }
19337
 
19338
      public String getFieldName() {
19339
        return _fieldName;
19340
      }
19341
    }
19342
 
19343
    // isset id assignments
3061 chandransh 19344
    private static final int __CUSTOMERID_ISSET_ID = 0;
19345
    private static final int __FROM_DATE_ISSET_ID = 1;
19346
    private static final int __TO_DATE_ISSET_ID = 2;
19347
    private BitSet __isset_bit_vector = new BitSet(3);
1148 chandransh 19348
 
3430 rajveer 19349
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1148 chandransh 19350
    static {
3430 rajveer 19351
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19352
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19353
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19354
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("from_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19355
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19356
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("to_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19357
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19358
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19359
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19360
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
19361
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19362
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_args.class, metaDataMap);
1148 chandransh 19363
    }
19364
 
3061 chandransh 19365
    public getOrdersForCustomer_args() {
1148 chandransh 19366
    }
19367
 
3061 chandransh 19368
    public getOrdersForCustomer_args(
19369
      long customerId,
19370
      long from_date,
19371
      long to_date,
19372
      List<OrderStatus> statuses)
1148 chandransh 19373
    {
19374
      this();
3061 chandransh 19375
      this.customerId = customerId;
19376
      setCustomerIdIsSet(true);
19377
      this.from_date = from_date;
19378
      setFrom_dateIsSet(true);
19379
      this.to_date = to_date;
19380
      setTo_dateIsSet(true);
19381
      this.statuses = statuses;
1148 chandransh 19382
    }
19383
 
19384
    /**
19385
     * Performs a deep copy on <i>other</i>.
19386
     */
3061 chandransh 19387
    public getOrdersForCustomer_args(getOrdersForCustomer_args other) {
1148 chandransh 19388
      __isset_bit_vector.clear();
19389
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 19390
      this.customerId = other.customerId;
19391
      this.from_date = other.from_date;
19392
      this.to_date = other.to_date;
19393
      if (other.isSetStatuses()) {
19394
        List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();
19395
        for (OrderStatus other_element : other.statuses) {
19396
          __this__statuses.add(other_element);
19397
        }
19398
        this.statuses = __this__statuses;
2779 chandransh 19399
      }
1148 chandransh 19400
    }
19401
 
3061 chandransh 19402
    public getOrdersForCustomer_args deepCopy() {
19403
      return new getOrdersForCustomer_args(this);
1148 chandransh 19404
    }
19405
 
3430 rajveer 19406
    @Override
19407
    public void clear() {
19408
      setCustomerIdIsSet(false);
19409
      this.customerId = 0;
19410
      setFrom_dateIsSet(false);
19411
      this.from_date = 0;
19412
      setTo_dateIsSet(false);
19413
      this.to_date = 0;
19414
      this.statuses = null;
1148 chandransh 19415
    }
19416
 
3061 chandransh 19417
    public long getCustomerId() {
19418
      return this.customerId;
1148 chandransh 19419
    }
19420
 
3430 rajveer 19421
    public void setCustomerId(long customerId) {
3061 chandransh 19422
      this.customerId = customerId;
19423
      setCustomerIdIsSet(true);
1148 chandransh 19424
    }
19425
 
3061 chandransh 19426
    public void unsetCustomerId() {
19427
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
1148 chandransh 19428
    }
19429
 
3430 rajveer 19430
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
3061 chandransh 19431
    public boolean isSetCustomerId() {
19432
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
1148 chandransh 19433
    }
19434
 
3061 chandransh 19435
    public void setCustomerIdIsSet(boolean value) {
19436
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
1148 chandransh 19437
    }
19438
 
3061 chandransh 19439
    public long getFrom_date() {
19440
      return this.from_date;
1148 chandransh 19441
    }
19442
 
3430 rajveer 19443
    public void setFrom_date(long from_date) {
3061 chandransh 19444
      this.from_date = from_date;
19445
      setFrom_dateIsSet(true);
1148 chandransh 19446
    }
19447
 
3061 chandransh 19448
    public void unsetFrom_date() {
19449
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
1148 chandransh 19450
    }
19451
 
3430 rajveer 19452
    /** Returns true if field from_date is set (has been assigned a value) and false otherwise */
3061 chandransh 19453
    public boolean isSetFrom_date() {
19454
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
1148 chandransh 19455
    }
19456
 
3061 chandransh 19457
    public void setFrom_dateIsSet(boolean value) {
19458
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
1148 chandransh 19459
    }
19460
 
3061 chandransh 19461
    public long getTo_date() {
19462
      return this.to_date;
2779 chandransh 19463
    }
19464
 
3430 rajveer 19465
    public void setTo_date(long to_date) {
3061 chandransh 19466
      this.to_date = to_date;
19467
      setTo_dateIsSet(true);
2779 chandransh 19468
    }
19469
 
3061 chandransh 19470
    public void unsetTo_date() {
19471
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
2779 chandransh 19472
    }
19473
 
3430 rajveer 19474
    /** Returns true if field to_date is set (has been assigned a value) and false otherwise */
3061 chandransh 19475
    public boolean isSetTo_date() {
19476
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
2779 chandransh 19477
    }
19478
 
3061 chandransh 19479
    public void setTo_dateIsSet(boolean value) {
19480
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
2779 chandransh 19481
    }
19482
 
3061 chandransh 19483
    public int getStatusesSize() {
19484
      return (this.statuses == null) ? 0 : this.statuses.size();
2779 chandransh 19485
    }
19486
 
3061 chandransh 19487
    public java.util.Iterator<OrderStatus> getStatusesIterator() {
19488
      return (this.statuses == null) ? null : this.statuses.iterator();
2779 chandransh 19489
    }
19490
 
3061 chandransh 19491
    public void addToStatuses(OrderStatus elem) {
19492
      if (this.statuses == null) {
19493
        this.statuses = new ArrayList<OrderStatus>();
2779 chandransh 19494
      }
3061 chandransh 19495
      this.statuses.add(elem);
2779 chandransh 19496
    }
19497
 
3061 chandransh 19498
    public List<OrderStatus> getStatuses() {
19499
      return this.statuses;
2779 chandransh 19500
    }
19501
 
3430 rajveer 19502
    public void setStatuses(List<OrderStatus> statuses) {
3061 chandransh 19503
      this.statuses = statuses;
2779 chandransh 19504
    }
19505
 
3061 chandransh 19506
    public void unsetStatuses() {
19507
      this.statuses = null;
2779 chandransh 19508
    }
19509
 
3430 rajveer 19510
    /** Returns true if field statuses is set (has been assigned a value) and false otherwise */
3061 chandransh 19511
    public boolean isSetStatuses() {
19512
      return this.statuses != null;
2779 chandransh 19513
    }
19514
 
3061 chandransh 19515
    public void setStatusesIsSet(boolean value) {
2779 chandransh 19516
      if (!value) {
3061 chandransh 19517
        this.statuses = null;
2779 chandransh 19518
      }
19519
    }
19520
 
1148 chandransh 19521
    public void setFieldValue(_Fields field, Object value) {
19522
      switch (field) {
3061 chandransh 19523
      case CUSTOMER_ID:
1148 chandransh 19524
        if (value == null) {
3061 chandransh 19525
          unsetCustomerId();
1148 chandransh 19526
        } else {
3061 chandransh 19527
          setCustomerId((Long)value);
1148 chandransh 19528
        }
19529
        break;
19530
 
3061 chandransh 19531
      case FROM_DATE:
1148 chandransh 19532
        if (value == null) {
3061 chandransh 19533
          unsetFrom_date();
1148 chandransh 19534
        } else {
3061 chandransh 19535
          setFrom_date((Long)value);
1148 chandransh 19536
        }
19537
        break;
19538
 
3061 chandransh 19539
      case TO_DATE:
2779 chandransh 19540
        if (value == null) {
3061 chandransh 19541
          unsetTo_date();
2779 chandransh 19542
        } else {
3061 chandransh 19543
          setTo_date((Long)value);
2779 chandransh 19544
        }
19545
        break;
19546
 
3061 chandransh 19547
      case STATUSES:
2779 chandransh 19548
        if (value == null) {
3061 chandransh 19549
          unsetStatuses();
2779 chandransh 19550
        } else {
3061 chandransh 19551
          setStatuses((List<OrderStatus>)value);
2779 chandransh 19552
        }
19553
        break;
19554
 
1148 chandransh 19555
      }
19556
    }
19557
 
19558
    public Object getFieldValue(_Fields field) {
19559
      switch (field) {
3061 chandransh 19560
      case CUSTOMER_ID:
3430 rajveer 19561
        return Long.valueOf(getCustomerId());
1148 chandransh 19562
 
3061 chandransh 19563
      case FROM_DATE:
3430 rajveer 19564
        return Long.valueOf(getFrom_date());
1148 chandransh 19565
 
3061 chandransh 19566
      case TO_DATE:
3430 rajveer 19567
        return Long.valueOf(getTo_date());
2779 chandransh 19568
 
3061 chandransh 19569
      case STATUSES:
19570
        return getStatuses();
2779 chandransh 19571
 
1148 chandransh 19572
      }
19573
      throw new IllegalStateException();
19574
    }
19575
 
3430 rajveer 19576
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19577
    public boolean isSet(_Fields field) {
19578
      if (field == null) {
19579
        throw new IllegalArgumentException();
19580
      }
1148 chandransh 19581
 
19582
      switch (field) {
3061 chandransh 19583
      case CUSTOMER_ID:
19584
        return isSetCustomerId();
19585
      case FROM_DATE:
19586
        return isSetFrom_date();
19587
      case TO_DATE:
19588
        return isSetTo_date();
19589
      case STATUSES:
19590
        return isSetStatuses();
1148 chandransh 19591
      }
19592
      throw new IllegalStateException();
19593
    }
19594
 
19595
    @Override
19596
    public boolean equals(Object that) {
19597
      if (that == null)
19598
        return false;
3061 chandransh 19599
      if (that instanceof getOrdersForCustomer_args)
19600
        return this.equals((getOrdersForCustomer_args)that);
1148 chandransh 19601
      return false;
19602
    }
19603
 
3061 chandransh 19604
    public boolean equals(getOrdersForCustomer_args that) {
1148 chandransh 19605
      if (that == null)
19606
        return false;
19607
 
3061 chandransh 19608
      boolean this_present_customerId = true;
19609
      boolean that_present_customerId = true;
19610
      if (this_present_customerId || that_present_customerId) {
19611
        if (!(this_present_customerId && that_present_customerId))
1148 chandransh 19612
          return false;
3061 chandransh 19613
        if (this.customerId != that.customerId)
1148 chandransh 19614
          return false;
19615
      }
19616
 
3061 chandransh 19617
      boolean this_present_from_date = true;
19618
      boolean that_present_from_date = true;
19619
      if (this_present_from_date || that_present_from_date) {
19620
        if (!(this_present_from_date && that_present_from_date))
1148 chandransh 19621
          return false;
3061 chandransh 19622
        if (this.from_date != that.from_date)
1148 chandransh 19623
          return false;
19624
      }
19625
 
3061 chandransh 19626
      boolean this_present_to_date = true;
19627
      boolean that_present_to_date = true;
19628
      if (this_present_to_date || that_present_to_date) {
19629
        if (!(this_present_to_date && that_present_to_date))
2779 chandransh 19630
          return false;
3061 chandransh 19631
        if (this.to_date != that.to_date)
2779 chandransh 19632
          return false;
19633
      }
19634
 
3061 chandransh 19635
      boolean this_present_statuses = true && this.isSetStatuses();
19636
      boolean that_present_statuses = true && that.isSetStatuses();
19637
      if (this_present_statuses || that_present_statuses) {
19638
        if (!(this_present_statuses && that_present_statuses))
2779 chandransh 19639
          return false;
3061 chandransh 19640
        if (!this.statuses.equals(that.statuses))
2779 chandransh 19641
          return false;
19642
      }
19643
 
1148 chandransh 19644
      return true;
19645
    }
19646
 
19647
    @Override
19648
    public int hashCode() {
19649
      return 0;
19650
    }
19651
 
3061 chandransh 19652
    public int compareTo(getOrdersForCustomer_args other) {
1148 chandransh 19653
      if (!getClass().equals(other.getClass())) {
19654
        return getClass().getName().compareTo(other.getClass().getName());
19655
      }
19656
 
19657
      int lastComparison = 0;
3061 chandransh 19658
      getOrdersForCustomer_args typedOther = (getOrdersForCustomer_args)other;
1148 chandransh 19659
 
3430 rajveer 19660
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
1148 chandransh 19661
      if (lastComparison != 0) {
19662
        return lastComparison;
19663
      }
3430 rajveer 19664
      if (isSetCustomerId()) {
19665
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
19666
        if (lastComparison != 0) {
19667
          return lastComparison;
19668
        }
1148 chandransh 19669
      }
3430 rajveer 19670
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(typedOther.isSetFrom_date());
1148 chandransh 19671
      if (lastComparison != 0) {
19672
        return lastComparison;
19673
      }
3430 rajveer 19674
      if (isSetFrom_date()) {
19675
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_date, typedOther.from_date);
19676
        if (lastComparison != 0) {
19677
          return lastComparison;
19678
        }
1148 chandransh 19679
      }
3430 rajveer 19680
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(typedOther.isSetTo_date());
2779 chandransh 19681
      if (lastComparison != 0) {
19682
        return lastComparison;
19683
      }
3430 rajveer 19684
      if (isSetTo_date()) {
19685
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_date, typedOther.to_date);
19686
        if (lastComparison != 0) {
19687
          return lastComparison;
19688
        }
2779 chandransh 19689
      }
3430 rajveer 19690
      lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());
2779 chandransh 19691
      if (lastComparison != 0) {
19692
        return lastComparison;
19693
      }
3430 rajveer 19694
      if (isSetStatuses()) {
19695
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);
19696
        if (lastComparison != 0) {
19697
          return lastComparison;
19698
        }
2779 chandransh 19699
      }
1148 chandransh 19700
      return 0;
19701
    }
19702
 
3430 rajveer 19703
    public _Fields fieldForId(int fieldId) {
19704
      return _Fields.findByThriftId(fieldId);
19705
    }
19706
 
19707
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19708
      org.apache.thrift.protocol.TField field;
1148 chandransh 19709
      iprot.readStructBegin();
19710
      while (true)
19711
      {
19712
        field = iprot.readFieldBegin();
3430 rajveer 19713
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1148 chandransh 19714
          break;
19715
        }
3430 rajveer 19716
        switch (field.id) {
19717
          case 1: // CUSTOMER_ID
19718
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19719
              this.customerId = iprot.readI64();
19720
              setCustomerIdIsSet(true);
19721
            } else { 
19722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19723
            }
19724
            break;
19725
          case 2: // FROM_DATE
19726
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19727
              this.from_date = iprot.readI64();
19728
              setFrom_dateIsSet(true);
19729
            } else { 
19730
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19731
            }
19732
            break;
19733
          case 3: // TO_DATE
19734
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19735
              this.to_date = iprot.readI64();
19736
              setTo_dateIsSet(true);
19737
            } else { 
19738
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19739
            }
19740
            break;
19741
          case 4: // STATUSES
19742
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19743
              {
4133 chandransh 19744
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
19745
                this.statuses = new ArrayList<OrderStatus>(_list52.size);
19746
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
3061 chandransh 19747
                {
4133 chandransh 19748
                  OrderStatus _elem54; // required
19749
                  _elem54 = OrderStatus.findByValue(iprot.readI32());
19750
                  this.statuses.add(_elem54);
3061 chandransh 19751
                }
3430 rajveer 19752
                iprot.readListEnd();
2779 chandransh 19753
              }
3430 rajveer 19754
            } else { 
19755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19756
            }
19757
            break;
19758
          default:
19759
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1148 chandransh 19760
        }
3430 rajveer 19761
        iprot.readFieldEnd();
1148 chandransh 19762
      }
19763
      iprot.readStructEnd();
19764
      validate();
19765
    }
19766
 
3430 rajveer 19767
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1148 chandransh 19768
      validate();
19769
 
19770
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 19771
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
19772
      oprot.writeI64(this.customerId);
1148 chandransh 19773
      oprot.writeFieldEnd();
3061 chandransh 19774
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
19775
      oprot.writeI64(this.from_date);
1148 chandransh 19776
      oprot.writeFieldEnd();
3061 chandransh 19777
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
19778
      oprot.writeI64(this.to_date);
2779 chandransh 19779
      oprot.writeFieldEnd();
3061 chandransh 19780
      if (this.statuses != null) {
19781
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
19782
        {
3430 rajveer 19783
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
4133 chandransh 19784
          for (OrderStatus _iter55 : this.statuses)
3061 chandransh 19785
          {
4133 chandransh 19786
            oprot.writeI32(_iter55.getValue());
3061 chandransh 19787
          }
19788
          oprot.writeListEnd();
19789
        }
2779 chandransh 19790
        oprot.writeFieldEnd();
19791
      }
1148 chandransh 19792
      oprot.writeFieldStop();
19793
      oprot.writeStructEnd();
19794
    }
19795
 
19796
    @Override
19797
    public String toString() {
3061 chandransh 19798
      StringBuilder sb = new StringBuilder("getOrdersForCustomer_args(");
1148 chandransh 19799
      boolean first = true;
19800
 
3061 chandransh 19801
      sb.append("customerId:");
19802
      sb.append(this.customerId);
1148 chandransh 19803
      first = false;
19804
      if (!first) sb.append(", ");
3061 chandransh 19805
      sb.append("from_date:");
19806
      sb.append(this.from_date);
1148 chandransh 19807
      first = false;
2779 chandransh 19808
      if (!first) sb.append(", ");
3061 chandransh 19809
      sb.append("to_date:");
19810
      sb.append(this.to_date);
2779 chandransh 19811
      first = false;
19812
      if (!first) sb.append(", ");
3061 chandransh 19813
      sb.append("statuses:");
19814
      if (this.statuses == null) {
2779 chandransh 19815
        sb.append("null");
19816
      } else {
3061 chandransh 19817
        sb.append(this.statuses);
2779 chandransh 19818
      }
19819
      first = false;
1148 chandransh 19820
      sb.append(")");
19821
      return sb.toString();
19822
    }
19823
 
3430 rajveer 19824
    public void validate() throws org.apache.thrift.TException {
1148 chandransh 19825
      // check for required fields
19826
    }
19827
 
3430 rajveer 19828
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19829
      try {
19830
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19831
      } catch (org.apache.thrift.TException te) {
19832
        throw new java.io.IOException(te);
19833
      }
19834
    }
19835
 
19836
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19837
      try {
19838
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19839
      } catch (org.apache.thrift.TException te) {
19840
        throw new java.io.IOException(te);
19841
      }
19842
    }
19843
 
1148 chandransh 19844
  }
19845
 
3430 rajveer 19846
  public static class getOrdersForCustomer_result implements org.apache.thrift.TBase<getOrdersForCustomer_result, getOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
19847
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForCustomer_result");
1148 chandransh 19848
 
3430 rajveer 19849
    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);
19850
    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);
1148 chandransh 19851
 
3430 rajveer 19852
    private List<Order> success; // required
19853
    private TransactionServiceException ex; // required
1148 chandransh 19854
 
19855
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19856
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1148 chandransh 19857
      SUCCESS((short)0, "success"),
19858
      EX((short)1, "ex");
19859
 
19860
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19861
 
19862
      static {
19863
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19864
          byName.put(field.getFieldName(), field);
19865
        }
19866
      }
19867
 
19868
      /**
19869
       * Find the _Fields constant that matches fieldId, or null if its not found.
19870
       */
19871
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19872
        switch(fieldId) {
19873
          case 0: // SUCCESS
19874
            return SUCCESS;
19875
          case 1: // EX
19876
            return EX;
19877
          default:
19878
            return null;
19879
        }
1148 chandransh 19880
      }
19881
 
19882
      /**
19883
       * Find the _Fields constant that matches fieldId, throwing an exception
19884
       * if it is not found.
19885
       */
19886
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19887
        _Fields fields = findByThriftId(fieldId);
19888
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19889
        return fields;
19890
      }
19891
 
19892
      /**
19893
       * Find the _Fields constant that matches name, or null if its not found.
19894
       */
19895
      public static _Fields findByName(String name) {
19896
        return byName.get(name);
19897
      }
19898
 
19899
      private final short _thriftId;
19900
      private final String _fieldName;
19901
 
19902
      _Fields(short thriftId, String fieldName) {
19903
        _thriftId = thriftId;
19904
        _fieldName = fieldName;
19905
      }
19906
 
19907
      public short getThriftFieldId() {
19908
        return _thriftId;
19909
      }
19910
 
19911
      public String getFieldName() {
19912
        return _fieldName;
19913
      }
19914
    }
19915
 
19916
    // isset id assignments
19917
 
3430 rajveer 19918
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1148 chandransh 19919
    static {
3430 rajveer 19920
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19921
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19922
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19923
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
19924
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19925
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19926
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19927
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_result.class, metaDataMap);
1148 chandransh 19928
    }
19929
 
3061 chandransh 19930
    public getOrdersForCustomer_result() {
1148 chandransh 19931
    }
19932
 
3061 chandransh 19933
    public getOrdersForCustomer_result(
19934
      List<Order> success,
1148 chandransh 19935
      TransactionServiceException ex)
19936
    {
19937
      this();
19938
      this.success = success;
19939
      this.ex = ex;
19940
    }
19941
 
19942
    /**
19943
     * Performs a deep copy on <i>other</i>.
19944
     */
3061 chandransh 19945
    public getOrdersForCustomer_result(getOrdersForCustomer_result other) {
19946
      if (other.isSetSuccess()) {
19947
        List<Order> __this__success = new ArrayList<Order>();
19948
        for (Order other_element : other.success) {
19949
          __this__success.add(new Order(other_element));
19950
        }
19951
        this.success = __this__success;
19952
      }
1148 chandransh 19953
      if (other.isSetEx()) {
19954
        this.ex = new TransactionServiceException(other.ex);
19955
      }
19956
    }
19957
 
3061 chandransh 19958
    public getOrdersForCustomer_result deepCopy() {
19959
      return new getOrdersForCustomer_result(this);
1148 chandransh 19960
    }
19961
 
3430 rajveer 19962
    @Override
19963
    public void clear() {
19964
      this.success = null;
19965
      this.ex = null;
1148 chandransh 19966
    }
19967
 
3061 chandransh 19968
    public int getSuccessSize() {
19969
      return (this.success == null) ? 0 : this.success.size();
19970
    }
19971
 
19972
    public java.util.Iterator<Order> getSuccessIterator() {
19973
      return (this.success == null) ? null : this.success.iterator();
19974
    }
19975
 
19976
    public void addToSuccess(Order elem) {
19977
      if (this.success == null) {
19978
        this.success = new ArrayList<Order>();
19979
      }
19980
      this.success.add(elem);
19981
    }
19982
 
19983
    public List<Order> getSuccess() {
1148 chandransh 19984
      return this.success;
19985
    }
19986
 
3430 rajveer 19987
    public void setSuccess(List<Order> success) {
1148 chandransh 19988
      this.success = success;
19989
    }
19990
 
19991
    public void unsetSuccess() {
3061 chandransh 19992
      this.success = null;
1148 chandransh 19993
    }
19994
 
3430 rajveer 19995
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1148 chandransh 19996
    public boolean isSetSuccess() {
3061 chandransh 19997
      return this.success != null;
1148 chandransh 19998
    }
19999
 
20000
    public void setSuccessIsSet(boolean value) {
3061 chandransh 20001
      if (!value) {
20002
        this.success = null;
20003
      }
1148 chandransh 20004
    }
20005
 
20006
    public TransactionServiceException getEx() {
20007
      return this.ex;
20008
    }
20009
 
3430 rajveer 20010
    public void setEx(TransactionServiceException ex) {
1148 chandransh 20011
      this.ex = ex;
20012
    }
20013
 
20014
    public void unsetEx() {
20015
      this.ex = null;
20016
    }
20017
 
3430 rajveer 20018
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1148 chandransh 20019
    public boolean isSetEx() {
20020
      return this.ex != null;
20021
    }
20022
 
20023
    public void setExIsSet(boolean value) {
20024
      if (!value) {
20025
        this.ex = null;
20026
      }
20027
    }
20028
 
20029
    public void setFieldValue(_Fields field, Object value) {
20030
      switch (field) {
20031
      case SUCCESS:
20032
        if (value == null) {
20033
          unsetSuccess();
20034
        } else {
3061 chandransh 20035
          setSuccess((List<Order>)value);
1148 chandransh 20036
        }
20037
        break;
20038
 
20039
      case EX:
20040
        if (value == null) {
20041
          unsetEx();
20042
        } else {
20043
          setEx((TransactionServiceException)value);
20044
        }
20045
        break;
20046
 
20047
      }
20048
    }
20049
 
20050
    public Object getFieldValue(_Fields field) {
20051
      switch (field) {
20052
      case SUCCESS:
3061 chandransh 20053
        return getSuccess();
1148 chandransh 20054
 
20055
      case EX:
20056
        return getEx();
20057
 
20058
      }
20059
      throw new IllegalStateException();
20060
    }
20061
 
3430 rajveer 20062
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20063
    public boolean isSet(_Fields field) {
20064
      if (field == null) {
20065
        throw new IllegalArgumentException();
20066
      }
1148 chandransh 20067
 
20068
      switch (field) {
20069
      case SUCCESS:
20070
        return isSetSuccess();
20071
      case EX:
20072
        return isSetEx();
20073
      }
20074
      throw new IllegalStateException();
20075
    }
20076
 
20077
    @Override
20078
    public boolean equals(Object that) {
20079
      if (that == null)
20080
        return false;
3061 chandransh 20081
      if (that instanceof getOrdersForCustomer_result)
20082
        return this.equals((getOrdersForCustomer_result)that);
1148 chandransh 20083
      return false;
20084
    }
20085
 
3061 chandransh 20086
    public boolean equals(getOrdersForCustomer_result that) {
1148 chandransh 20087
      if (that == null)
20088
        return false;
20089
 
3061 chandransh 20090
      boolean this_present_success = true && this.isSetSuccess();
20091
      boolean that_present_success = true && that.isSetSuccess();
1148 chandransh 20092
      if (this_present_success || that_present_success) {
20093
        if (!(this_present_success && that_present_success))
20094
          return false;
3061 chandransh 20095
        if (!this.success.equals(that.success))
1148 chandransh 20096
          return false;
20097
      }
20098
 
20099
      boolean this_present_ex = true && this.isSetEx();
20100
      boolean that_present_ex = true && that.isSetEx();
20101
      if (this_present_ex || that_present_ex) {
20102
        if (!(this_present_ex && that_present_ex))
20103
          return false;
20104
        if (!this.ex.equals(that.ex))
20105
          return false;
20106
      }
20107
 
20108
      return true;
20109
    }
20110
 
20111
    @Override
20112
    public int hashCode() {
20113
      return 0;
20114
    }
20115
 
3061 chandransh 20116
    public int compareTo(getOrdersForCustomer_result other) {
1148 chandransh 20117
      if (!getClass().equals(other.getClass())) {
20118
        return getClass().getName().compareTo(other.getClass().getName());
20119
      }
20120
 
20121
      int lastComparison = 0;
3061 chandransh 20122
      getOrdersForCustomer_result typedOther = (getOrdersForCustomer_result)other;
1148 chandransh 20123
 
3430 rajveer 20124
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1148 chandransh 20125
      if (lastComparison != 0) {
20126
        return lastComparison;
20127
      }
3430 rajveer 20128
      if (isSetSuccess()) {
20129
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20130
        if (lastComparison != 0) {
20131
          return lastComparison;
20132
        }
1148 chandransh 20133
      }
3430 rajveer 20134
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1148 chandransh 20135
      if (lastComparison != 0) {
20136
        return lastComparison;
20137
      }
3430 rajveer 20138
      if (isSetEx()) {
20139
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
20140
        if (lastComparison != 0) {
20141
          return lastComparison;
20142
        }
1148 chandransh 20143
      }
20144
      return 0;
20145
    }
20146
 
3430 rajveer 20147
    public _Fields fieldForId(int fieldId) {
20148
      return _Fields.findByThriftId(fieldId);
20149
    }
20150
 
20151
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20152
      org.apache.thrift.protocol.TField field;
1148 chandransh 20153
      iprot.readStructBegin();
20154
      while (true)
20155
      {
20156
        field = iprot.readFieldBegin();
3430 rajveer 20157
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1148 chandransh 20158
          break;
20159
        }
3430 rajveer 20160
        switch (field.id) {
20161
          case 0: // SUCCESS
20162
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20163
              {
4133 chandransh 20164
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
20165
                this.success = new ArrayList<Order>(_list56.size);
20166
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
3061 chandransh 20167
                {
4133 chandransh 20168
                  Order _elem58; // required
20169
                  _elem58 = new Order();
20170
                  _elem58.read(iprot);
20171
                  this.success.add(_elem58);
3061 chandransh 20172
                }
3430 rajveer 20173
                iprot.readListEnd();
1148 chandransh 20174
              }
3430 rajveer 20175
            } else { 
20176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20177
            }
20178
            break;
20179
          case 1: // EX
20180
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20181
              this.ex = new TransactionServiceException();
20182
              this.ex.read(iprot);
20183
            } else { 
20184
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20185
            }
20186
            break;
20187
          default:
20188
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1148 chandransh 20189
        }
3430 rajveer 20190
        iprot.readFieldEnd();
1148 chandransh 20191
      }
20192
      iprot.readStructEnd();
20193
      validate();
20194
    }
20195
 
3430 rajveer 20196
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1148 chandransh 20197
      oprot.writeStructBegin(STRUCT_DESC);
20198
 
20199
      if (this.isSetSuccess()) {
20200
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 20201
        {
3430 rajveer 20202
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 20203
          for (Order _iter59 : this.success)
3061 chandransh 20204
          {
4133 chandransh 20205
            _iter59.write(oprot);
3061 chandransh 20206
          }
20207
          oprot.writeListEnd();
20208
        }
1148 chandransh 20209
        oprot.writeFieldEnd();
20210
      } else if (this.isSetEx()) {
20211
        oprot.writeFieldBegin(EX_FIELD_DESC);
20212
        this.ex.write(oprot);
20213
        oprot.writeFieldEnd();
20214
      }
20215
      oprot.writeFieldStop();
20216
      oprot.writeStructEnd();
20217
    }
20218
 
20219
    @Override
20220
    public String toString() {
3061 chandransh 20221
      StringBuilder sb = new StringBuilder("getOrdersForCustomer_result(");
1148 chandransh 20222
      boolean first = true;
20223
 
20224
      sb.append("success:");
3061 chandransh 20225
      if (this.success == null) {
20226
        sb.append("null");
20227
      } else {
20228
        sb.append(this.success);
20229
      }
1148 chandransh 20230
      first = false;
20231
      if (!first) sb.append(", ");
20232
      sb.append("ex:");
20233
      if (this.ex == null) {
20234
        sb.append("null");
20235
      } else {
20236
        sb.append(this.ex);
20237
      }
20238
      first = false;
20239
      sb.append(")");
20240
      return sb.toString();
20241
    }
20242
 
3430 rajveer 20243
    public void validate() throws org.apache.thrift.TException {
1148 chandransh 20244
      // check for required fields
20245
    }
20246
 
3430 rajveer 20247
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20248
      try {
20249
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20250
      } catch (org.apache.thrift.TException te) {
20251
        throw new java.io.IOException(te);
20252
      }
20253
    }
20254
 
20255
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20256
      try {
20257
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20258
      } catch (org.apache.thrift.TException te) {
20259
        throw new java.io.IOException(te);
20260
      }
20261
    }
20262
 
1148 chandransh 20263
  }
20264
 
3430 rajveer 20265
  public static class createOrder_args implements org.apache.thrift.TBase<createOrder_args, createOrder_args._Fields>, java.io.Serializable, Cloneable   {
20266
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrder_args");
923 rajveer 20267
 
3430 rajveer 20268
    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);
923 rajveer 20269
 
3430 rajveer 20270
    private Order order; // required
923 rajveer 20271
 
20272
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20273
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 20274
      ORDER((short)1, "order");
923 rajveer 20275
 
20276
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20277
 
20278
      static {
20279
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20280
          byName.put(field.getFieldName(), field);
20281
        }
20282
      }
20283
 
20284
      /**
20285
       * Find the _Fields constant that matches fieldId, or null if its not found.
20286
       */
20287
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20288
        switch(fieldId) {
20289
          case 1: // ORDER
20290
            return ORDER;
20291
          default:
20292
            return null;
20293
        }
923 rajveer 20294
      }
20295
 
20296
      /**
20297
       * Find the _Fields constant that matches fieldId, throwing an exception
20298
       * if it is not found.
20299
       */
20300
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20301
        _Fields fields = findByThriftId(fieldId);
20302
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20303
        return fields;
20304
      }
20305
 
20306
      /**
20307
       * Find the _Fields constant that matches name, or null if its not found.
20308
       */
20309
      public static _Fields findByName(String name) {
20310
        return byName.get(name);
20311
      }
20312
 
20313
      private final short _thriftId;
20314
      private final String _fieldName;
20315
 
20316
      _Fields(short thriftId, String fieldName) {
20317
        _thriftId = thriftId;
20318
        _fieldName = fieldName;
20319
      }
20320
 
20321
      public short getThriftFieldId() {
20322
        return _thriftId;
20323
      }
20324
 
20325
      public String getFieldName() {
20326
        return _fieldName;
20327
      }
20328
    }
20329
 
20330
    // isset id assignments
20331
 
3430 rajveer 20332
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
923 rajveer 20333
    static {
3430 rajveer 20334
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20335
      tmpMap.put(_Fields.ORDER, new org.apache.thrift.meta_data.FieldMetaData("order", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20336
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
20337
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20338
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrder_args.class, metaDataMap);
923 rajveer 20339
    }
20340
 
3061 chandransh 20341
    public createOrder_args() {
923 rajveer 20342
    }
20343
 
3061 chandransh 20344
    public createOrder_args(
20345
      Order order)
923 rajveer 20346
    {
20347
      this();
3061 chandransh 20348
      this.order = order;
923 rajveer 20349
    }
20350
 
20351
    /**
20352
     * Performs a deep copy on <i>other</i>.
20353
     */
3061 chandransh 20354
    public createOrder_args(createOrder_args other) {
20355
      if (other.isSetOrder()) {
20356
        this.order = new Order(other.order);
20357
      }
923 rajveer 20358
    }
20359
 
3061 chandransh 20360
    public createOrder_args deepCopy() {
20361
      return new createOrder_args(this);
923 rajveer 20362
    }
20363
 
3430 rajveer 20364
    @Override
20365
    public void clear() {
20366
      this.order = null;
923 rajveer 20367
    }
20368
 
3061 chandransh 20369
    public Order getOrder() {
20370
      return this.order;
923 rajveer 20371
    }
20372
 
3430 rajveer 20373
    public void setOrder(Order order) {
3061 chandransh 20374
      this.order = order;
923 rajveer 20375
    }
20376
 
3061 chandransh 20377
    public void unsetOrder() {
20378
      this.order = null;
923 rajveer 20379
    }
20380
 
3430 rajveer 20381
    /** Returns true if field order is set (has been assigned a value) and false otherwise */
3061 chandransh 20382
    public boolean isSetOrder() {
20383
      return this.order != null;
923 rajveer 20384
    }
20385
 
3061 chandransh 20386
    public void setOrderIsSet(boolean value) {
20387
      if (!value) {
20388
        this.order = null;
20389
      }
923 rajveer 20390
    }
20391
 
20392
    public void setFieldValue(_Fields field, Object value) {
20393
      switch (field) {
3061 chandransh 20394
      case ORDER:
923 rajveer 20395
        if (value == null) {
3061 chandransh 20396
          unsetOrder();
923 rajveer 20397
        } else {
3061 chandransh 20398
          setOrder((Order)value);
923 rajveer 20399
        }
20400
        break;
20401
 
20402
      }
20403
    }
20404
 
20405
    public Object getFieldValue(_Fields field) {
20406
      switch (field) {
3061 chandransh 20407
      case ORDER:
20408
        return getOrder();
923 rajveer 20409
 
20410
      }
20411
      throw new IllegalStateException();
20412
    }
20413
 
3430 rajveer 20414
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20415
    public boolean isSet(_Fields field) {
20416
      if (field == null) {
20417
        throw new IllegalArgumentException();
20418
      }
923 rajveer 20419
 
20420
      switch (field) {
3061 chandransh 20421
      case ORDER:
20422
        return isSetOrder();
923 rajveer 20423
      }
20424
      throw new IllegalStateException();
20425
    }
20426
 
20427
    @Override
20428
    public boolean equals(Object that) {
20429
      if (that == null)
20430
        return false;
3061 chandransh 20431
      if (that instanceof createOrder_args)
20432
        return this.equals((createOrder_args)that);
923 rajveer 20433
      return false;
20434
    }
20435
 
3061 chandransh 20436
    public boolean equals(createOrder_args that) {
923 rajveer 20437
      if (that == null)
20438
        return false;
20439
 
3061 chandransh 20440
      boolean this_present_order = true && this.isSetOrder();
20441
      boolean that_present_order = true && that.isSetOrder();
20442
      if (this_present_order || that_present_order) {
20443
        if (!(this_present_order && that_present_order))
923 rajveer 20444
          return false;
3061 chandransh 20445
        if (!this.order.equals(that.order))
923 rajveer 20446
          return false;
20447
      }
20448
 
20449
      return true;
20450
    }
20451
 
20452
    @Override
20453
    public int hashCode() {
20454
      return 0;
20455
    }
20456
 
3061 chandransh 20457
    public int compareTo(createOrder_args other) {
923 rajveer 20458
      if (!getClass().equals(other.getClass())) {
20459
        return getClass().getName().compareTo(other.getClass().getName());
20460
      }
20461
 
20462
      int lastComparison = 0;
3061 chandransh 20463
      createOrder_args typedOther = (createOrder_args)other;
923 rajveer 20464
 
3430 rajveer 20465
      lastComparison = Boolean.valueOf(isSetOrder()).compareTo(typedOther.isSetOrder());
923 rajveer 20466
      if (lastComparison != 0) {
20467
        return lastComparison;
20468
      }
3430 rajveer 20469
      if (isSetOrder()) {
20470
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, typedOther.order);
20471
        if (lastComparison != 0) {
20472
          return lastComparison;
20473
        }
923 rajveer 20474
      }
20475
      return 0;
20476
    }
20477
 
3430 rajveer 20478
    public _Fields fieldForId(int fieldId) {
20479
      return _Fields.findByThriftId(fieldId);
20480
    }
20481
 
20482
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20483
      org.apache.thrift.protocol.TField field;
923 rajveer 20484
      iprot.readStructBegin();
20485
      while (true)
20486
      {
20487
        field = iprot.readFieldBegin();
3430 rajveer 20488
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
923 rajveer 20489
          break;
20490
        }
3430 rajveer 20491
        switch (field.id) {
20492
          case 1: // ORDER
20493
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20494
              this.order = new Order();
20495
              this.order.read(iprot);
20496
            } else { 
20497
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20498
            }
20499
            break;
20500
          default:
20501
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923 rajveer 20502
        }
3430 rajveer 20503
        iprot.readFieldEnd();
923 rajveer 20504
      }
20505
      iprot.readStructEnd();
20506
      validate();
20507
    }
20508
 
3430 rajveer 20509
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
923 rajveer 20510
      validate();
20511
 
20512
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 20513
      if (this.order != null) {
20514
        oprot.writeFieldBegin(ORDER_FIELD_DESC);
20515
        this.order.write(oprot);
20516
        oprot.writeFieldEnd();
20517
      }
923 rajveer 20518
      oprot.writeFieldStop();
20519
      oprot.writeStructEnd();
20520
    }
20521
 
20522
    @Override
20523
    public String toString() {
3061 chandransh 20524
      StringBuilder sb = new StringBuilder("createOrder_args(");
923 rajveer 20525
      boolean first = true;
20526
 
3061 chandransh 20527
      sb.append("order:");
20528
      if (this.order == null) {
20529
        sb.append("null");
20530
      } else {
20531
        sb.append(this.order);
20532
      }
923 rajveer 20533
      first = false;
20534
      sb.append(")");
20535
      return sb.toString();
20536
    }
20537
 
3430 rajveer 20538
    public void validate() throws org.apache.thrift.TException {
923 rajveer 20539
      // check for required fields
20540
    }
20541
 
3430 rajveer 20542
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20543
      try {
20544
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20545
      } catch (org.apache.thrift.TException te) {
20546
        throw new java.io.IOException(te);
20547
      }
20548
    }
20549
 
20550
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20551
      try {
20552
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20553
      } catch (org.apache.thrift.TException te) {
20554
        throw new java.io.IOException(te);
20555
      }
20556
    }
20557
 
923 rajveer 20558
  }
20559
 
3430 rajveer 20560
  public static class createOrder_result implements org.apache.thrift.TBase<createOrder_result, createOrder_result._Fields>, java.io.Serializable, Cloneable   {
20561
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrder_result");
923 rajveer 20562
 
3430 rajveer 20563
    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);
20564
    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);
923 rajveer 20565
 
3430 rajveer 20566
    private long success; // required
20567
    private TransactionServiceException ex; // required
923 rajveer 20568
 
20569
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20570
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
923 rajveer 20571
      SUCCESS((short)0, "success"),
20572
      EX((short)1, "ex");
20573
 
20574
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20575
 
20576
      static {
20577
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20578
          byName.put(field.getFieldName(), field);
20579
        }
20580
      }
20581
 
20582
      /**
20583
       * Find the _Fields constant that matches fieldId, or null if its not found.
20584
       */
20585
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20586
        switch(fieldId) {
20587
          case 0: // SUCCESS
20588
            return SUCCESS;
20589
          case 1: // EX
20590
            return EX;
20591
          default:
20592
            return null;
20593
        }
923 rajveer 20594
      }
20595
 
20596
      /**
20597
       * Find the _Fields constant that matches fieldId, throwing an exception
20598
       * if it is not found.
20599
       */
20600
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20601
        _Fields fields = findByThriftId(fieldId);
20602
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20603
        return fields;
20604
      }
20605
 
20606
      /**
20607
       * Find the _Fields constant that matches name, or null if its not found.
20608
       */
20609
      public static _Fields findByName(String name) {
20610
        return byName.get(name);
20611
      }
20612
 
20613
      private final short _thriftId;
20614
      private final String _fieldName;
20615
 
20616
      _Fields(short thriftId, String fieldName) {
20617
        _thriftId = thriftId;
20618
        _fieldName = fieldName;
20619
      }
20620
 
20621
      public short getThriftFieldId() {
20622
        return _thriftId;
20623
      }
20624
 
20625
      public String getFieldName() {
20626
        return _fieldName;
20627
      }
20628
    }
20629
 
20630
    // isset id assignments
20631
    private static final int __SUCCESS_ISSET_ID = 0;
20632
    private BitSet __isset_bit_vector = new BitSet(1);
20633
 
3430 rajveer 20634
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
923 rajveer 20635
    static {
3430 rajveer 20636
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20637
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20638
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20639
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20640
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20641
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20642
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrder_result.class, metaDataMap);
923 rajveer 20643
    }
20644
 
3061 chandransh 20645
    public createOrder_result() {
923 rajveer 20646
    }
20647
 
3061 chandransh 20648
    public createOrder_result(
20649
      long success,
923 rajveer 20650
      TransactionServiceException ex)
20651
    {
20652
      this();
20653
      this.success = success;
20654
      setSuccessIsSet(true);
20655
      this.ex = ex;
20656
    }
20657
 
20658
    /**
20659
     * Performs a deep copy on <i>other</i>.
20660
     */
3061 chandransh 20661
    public createOrder_result(createOrder_result other) {
923 rajveer 20662
      __isset_bit_vector.clear();
20663
      __isset_bit_vector.or(other.__isset_bit_vector);
20664
      this.success = other.success;
20665
      if (other.isSetEx()) {
20666
        this.ex = new TransactionServiceException(other.ex);
20667
      }
20668
    }
20669
 
3061 chandransh 20670
    public createOrder_result deepCopy() {
20671
      return new createOrder_result(this);
923 rajveer 20672
    }
20673
 
3430 rajveer 20674
    @Override
20675
    public void clear() {
20676
      setSuccessIsSet(false);
20677
      this.success = 0;
20678
      this.ex = null;
923 rajveer 20679
    }
20680
 
3061 chandransh 20681
    public long getSuccess() {
923 rajveer 20682
      return this.success;
20683
    }
20684
 
3430 rajveer 20685
    public void setSuccess(long success) {
923 rajveer 20686
      this.success = success;
20687
      setSuccessIsSet(true);
20688
    }
20689
 
20690
    public void unsetSuccess() {
20691
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
20692
    }
20693
 
3430 rajveer 20694
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
923 rajveer 20695
    public boolean isSetSuccess() {
20696
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
20697
    }
20698
 
20699
    public void setSuccessIsSet(boolean value) {
20700
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
20701
    }
20702
 
20703
    public TransactionServiceException getEx() {
20704
      return this.ex;
20705
    }
20706
 
3430 rajveer 20707
    public void setEx(TransactionServiceException ex) {
923 rajveer 20708
      this.ex = ex;
20709
    }
20710
 
20711
    public void unsetEx() {
20712
      this.ex = null;
20713
    }
20714
 
3430 rajveer 20715
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
923 rajveer 20716
    public boolean isSetEx() {
20717
      return this.ex != null;
20718
    }
20719
 
20720
    public void setExIsSet(boolean value) {
20721
      if (!value) {
20722
        this.ex = null;
20723
      }
20724
    }
20725
 
20726
    public void setFieldValue(_Fields field, Object value) {
20727
      switch (field) {
20728
      case SUCCESS:
20729
        if (value == null) {
20730
          unsetSuccess();
20731
        } else {
3061 chandransh 20732
          setSuccess((Long)value);
923 rajveer 20733
        }
20734
        break;
20735
 
20736
      case EX:
20737
        if (value == null) {
20738
          unsetEx();
20739
        } else {
20740
          setEx((TransactionServiceException)value);
20741
        }
20742
        break;
20743
 
20744
      }
20745
    }
20746
 
20747
    public Object getFieldValue(_Fields field) {
20748
      switch (field) {
20749
      case SUCCESS:
3430 rajveer 20750
        return Long.valueOf(getSuccess());
923 rajveer 20751
 
20752
      case EX:
20753
        return getEx();
20754
 
20755
      }
20756
      throw new IllegalStateException();
20757
    }
20758
 
3430 rajveer 20759
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20760
    public boolean isSet(_Fields field) {
20761
      if (field == null) {
20762
        throw new IllegalArgumentException();
20763
      }
923 rajveer 20764
 
20765
      switch (field) {
20766
      case SUCCESS:
20767
        return isSetSuccess();
20768
      case EX:
20769
        return isSetEx();
20770
      }
20771
      throw new IllegalStateException();
20772
    }
20773
 
20774
    @Override
20775
    public boolean equals(Object that) {
20776
      if (that == null)
20777
        return false;
3061 chandransh 20778
      if (that instanceof createOrder_result)
20779
        return this.equals((createOrder_result)that);
923 rajveer 20780
      return false;
20781
    }
20782
 
3061 chandransh 20783
    public boolean equals(createOrder_result that) {
923 rajveer 20784
      if (that == null)
20785
        return false;
20786
 
20787
      boolean this_present_success = true;
20788
      boolean that_present_success = true;
20789
      if (this_present_success || that_present_success) {
20790
        if (!(this_present_success && that_present_success))
20791
          return false;
20792
        if (this.success != that.success)
20793
          return false;
20794
      }
20795
 
20796
      boolean this_present_ex = true && this.isSetEx();
20797
      boolean that_present_ex = true && that.isSetEx();
20798
      if (this_present_ex || that_present_ex) {
20799
        if (!(this_present_ex && that_present_ex))
20800
          return false;
20801
        if (!this.ex.equals(that.ex))
20802
          return false;
20803
      }
20804
 
20805
      return true;
20806
    }
20807
 
20808
    @Override
20809
    public int hashCode() {
20810
      return 0;
20811
    }
20812
 
3061 chandransh 20813
    public int compareTo(createOrder_result other) {
923 rajveer 20814
      if (!getClass().equals(other.getClass())) {
20815
        return getClass().getName().compareTo(other.getClass().getName());
20816
      }
20817
 
20818
      int lastComparison = 0;
3061 chandransh 20819
      createOrder_result typedOther = (createOrder_result)other;
923 rajveer 20820
 
3430 rajveer 20821
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
923 rajveer 20822
      if (lastComparison != 0) {
20823
        return lastComparison;
20824
      }
3430 rajveer 20825
      if (isSetSuccess()) {
20826
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20827
        if (lastComparison != 0) {
20828
          return lastComparison;
20829
        }
923 rajveer 20830
      }
3430 rajveer 20831
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
923 rajveer 20832
      if (lastComparison != 0) {
20833
        return lastComparison;
20834
      }
3430 rajveer 20835
      if (isSetEx()) {
20836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
20837
        if (lastComparison != 0) {
20838
          return lastComparison;
20839
        }
923 rajveer 20840
      }
20841
      return 0;
20842
    }
20843
 
3430 rajveer 20844
    public _Fields fieldForId(int fieldId) {
20845
      return _Fields.findByThriftId(fieldId);
20846
    }
20847
 
20848
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20849
      org.apache.thrift.protocol.TField field;
923 rajveer 20850
      iprot.readStructBegin();
20851
      while (true)
20852
      {
20853
        field = iprot.readFieldBegin();
3430 rajveer 20854
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
923 rajveer 20855
          break;
20856
        }
3430 rajveer 20857
        switch (field.id) {
20858
          case 0: // SUCCESS
20859
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20860
              this.success = iprot.readI64();
20861
              setSuccessIsSet(true);
20862
            } else { 
20863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20864
            }
20865
            break;
20866
          case 1: // EX
20867
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20868
              this.ex = new TransactionServiceException();
20869
              this.ex.read(iprot);
20870
            } else { 
20871
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20872
            }
20873
            break;
20874
          default:
20875
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923 rajveer 20876
        }
3430 rajveer 20877
        iprot.readFieldEnd();
923 rajveer 20878
      }
20879
      iprot.readStructEnd();
20880
      validate();
20881
    }
20882
 
3430 rajveer 20883
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
923 rajveer 20884
      oprot.writeStructBegin(STRUCT_DESC);
20885
 
20886
      if (this.isSetSuccess()) {
20887
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 20888
        oprot.writeI64(this.success);
923 rajveer 20889
        oprot.writeFieldEnd();
20890
      } else if (this.isSetEx()) {
20891
        oprot.writeFieldBegin(EX_FIELD_DESC);
20892
        this.ex.write(oprot);
20893
        oprot.writeFieldEnd();
20894
      }
20895
      oprot.writeFieldStop();
20896
      oprot.writeStructEnd();
20897
    }
20898
 
20899
    @Override
20900
    public String toString() {
3061 chandransh 20901
      StringBuilder sb = new StringBuilder("createOrder_result(");
923 rajveer 20902
      boolean first = true;
20903
 
20904
      sb.append("success:");
20905
      sb.append(this.success);
20906
      first = false;
20907
      if (!first) sb.append(", ");
20908
      sb.append("ex:");
20909
      if (this.ex == null) {
20910
        sb.append("null");
20911
      } else {
20912
        sb.append(this.ex);
20913
      }
20914
      first = false;
20915
      sb.append(")");
20916
      return sb.toString();
20917
    }
20918
 
3430 rajveer 20919
    public void validate() throws org.apache.thrift.TException {
923 rajveer 20920
      // check for required fields
20921
    }
20922
 
3430 rajveer 20923
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20924
      try {
20925
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20926
      } catch (org.apache.thrift.TException te) {
20927
        throw new java.io.IOException(te);
20928
      }
20929
    }
20930
 
20931
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20932
      try {
20933
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20934
      } catch (org.apache.thrift.TException te) {
20935
        throw new java.io.IOException(te);
20936
      }
20937
    }
20938
 
923 rajveer 20939
  }
20940
 
3430 rajveer 20941
  public static class getOrder_args implements org.apache.thrift.TBase<getOrder_args, getOrder_args._Fields>, java.io.Serializable, Cloneable   {
20942
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrder_args");
923 rajveer 20943
 
3430 rajveer 20944
    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);
923 rajveer 20945
 
3430 rajveer 20946
    private long id; // required
923 rajveer 20947
 
20948
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20949
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 20950
      ID((short)1, "id");
923 rajveer 20951
 
20952
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20953
 
20954
      static {
20955
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20956
          byName.put(field.getFieldName(), field);
20957
        }
20958
      }
20959
 
20960
      /**
20961
       * Find the _Fields constant that matches fieldId, or null if its not found.
20962
       */
20963
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20964
        switch(fieldId) {
20965
          case 1: // ID
20966
            return ID;
20967
          default:
20968
            return null;
20969
        }
923 rajveer 20970
      }
20971
 
20972
      /**
20973
       * Find the _Fields constant that matches fieldId, throwing an exception
20974
       * if it is not found.
20975
       */
20976
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20977
        _Fields fields = findByThriftId(fieldId);
20978
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20979
        return fields;
20980
      }
20981
 
20982
      /**
20983
       * Find the _Fields constant that matches name, or null if its not found.
20984
       */
20985
      public static _Fields findByName(String name) {
20986
        return byName.get(name);
20987
      }
20988
 
20989
      private final short _thriftId;
20990
      private final String _fieldName;
20991
 
20992
      _Fields(short thriftId, String fieldName) {
20993
        _thriftId = thriftId;
20994
        _fieldName = fieldName;
20995
      }
20996
 
20997
      public short getThriftFieldId() {
20998
        return _thriftId;
20999
      }
21000
 
21001
      public String getFieldName() {
21002
        return _fieldName;
21003
      }
21004
    }
21005
 
21006
    // isset id assignments
3061 chandransh 21007
    private static final int __ID_ISSET_ID = 0;
923 rajveer 21008
    private BitSet __isset_bit_vector = new BitSet(1);
21009
 
3430 rajveer 21010
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
923 rajveer 21011
    static {
3430 rajveer 21012
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21013
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21014
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21015
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21016
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrder_args.class, metaDataMap);
923 rajveer 21017
    }
21018
 
3061 chandransh 21019
    public getOrder_args() {
923 rajveer 21020
    }
21021
 
3061 chandransh 21022
    public getOrder_args(
21023
      long id)
923 rajveer 21024
    {
21025
      this();
3061 chandransh 21026
      this.id = id;
21027
      setIdIsSet(true);
923 rajveer 21028
    }
21029
 
21030
    /**
21031
     * Performs a deep copy on <i>other</i>.
21032
     */
3061 chandransh 21033
    public getOrder_args(getOrder_args other) {
923 rajveer 21034
      __isset_bit_vector.clear();
21035
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 21036
      this.id = other.id;
923 rajveer 21037
    }
21038
 
3061 chandransh 21039
    public getOrder_args deepCopy() {
21040
      return new getOrder_args(this);
923 rajveer 21041
    }
21042
 
3430 rajveer 21043
    @Override
21044
    public void clear() {
21045
      setIdIsSet(false);
21046
      this.id = 0;
923 rajveer 21047
    }
21048
 
3061 chandransh 21049
    public long getId() {
21050
      return this.id;
923 rajveer 21051
    }
21052
 
3430 rajveer 21053
    public void setId(long id) {
3061 chandransh 21054
      this.id = id;
21055
      setIdIsSet(true);
923 rajveer 21056
    }
21057
 
3061 chandransh 21058
    public void unsetId() {
21059
      __isset_bit_vector.clear(__ID_ISSET_ID);
923 rajveer 21060
    }
21061
 
3430 rajveer 21062
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
3061 chandransh 21063
    public boolean isSetId() {
21064
      return __isset_bit_vector.get(__ID_ISSET_ID);
923 rajveer 21065
    }
21066
 
3061 chandransh 21067
    public void setIdIsSet(boolean value) {
21068
      __isset_bit_vector.set(__ID_ISSET_ID, value);
923 rajveer 21069
    }
21070
 
21071
    public void setFieldValue(_Fields field, Object value) {
21072
      switch (field) {
3061 chandransh 21073
      case ID:
923 rajveer 21074
        if (value == null) {
3061 chandransh 21075
          unsetId();
923 rajveer 21076
        } else {
3061 chandransh 21077
          setId((Long)value);
923 rajveer 21078
        }
21079
        break;
21080
 
21081
      }
21082
    }
21083
 
21084
    public Object getFieldValue(_Fields field) {
21085
      switch (field) {
3061 chandransh 21086
      case ID:
3430 rajveer 21087
        return Long.valueOf(getId());
923 rajveer 21088
 
21089
      }
21090
      throw new IllegalStateException();
21091
    }
21092
 
3430 rajveer 21093
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21094
    public boolean isSet(_Fields field) {
21095
      if (field == null) {
21096
        throw new IllegalArgumentException();
21097
      }
923 rajveer 21098
 
21099
      switch (field) {
3061 chandransh 21100
      case ID:
21101
        return isSetId();
923 rajveer 21102
      }
21103
      throw new IllegalStateException();
21104
    }
21105
 
21106
    @Override
21107
    public boolean equals(Object that) {
21108
      if (that == null)
21109
        return false;
3061 chandransh 21110
      if (that instanceof getOrder_args)
21111
        return this.equals((getOrder_args)that);
923 rajveer 21112
      return false;
21113
    }
21114
 
3061 chandransh 21115
    public boolean equals(getOrder_args that) {
923 rajveer 21116
      if (that == null)
21117
        return false;
21118
 
3061 chandransh 21119
      boolean this_present_id = true;
21120
      boolean that_present_id = true;
21121
      if (this_present_id || that_present_id) {
21122
        if (!(this_present_id && that_present_id))
923 rajveer 21123
          return false;
3061 chandransh 21124
        if (this.id != that.id)
923 rajveer 21125
          return false;
21126
      }
21127
 
21128
      return true;
21129
    }
21130
 
21131
    @Override
21132
    public int hashCode() {
21133
      return 0;
21134
    }
21135
 
3061 chandransh 21136
    public int compareTo(getOrder_args other) {
923 rajveer 21137
      if (!getClass().equals(other.getClass())) {
21138
        return getClass().getName().compareTo(other.getClass().getName());
21139
      }
21140
 
21141
      int lastComparison = 0;
3061 chandransh 21142
      getOrder_args typedOther = (getOrder_args)other;
923 rajveer 21143
 
3430 rajveer 21144
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
923 rajveer 21145
      if (lastComparison != 0) {
21146
        return lastComparison;
21147
      }
3430 rajveer 21148
      if (isSetId()) {
21149
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
21150
        if (lastComparison != 0) {
21151
          return lastComparison;
21152
        }
923 rajveer 21153
      }
21154
      return 0;
21155
    }
21156
 
3430 rajveer 21157
    public _Fields fieldForId(int fieldId) {
21158
      return _Fields.findByThriftId(fieldId);
21159
    }
21160
 
21161
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21162
      org.apache.thrift.protocol.TField field;
923 rajveer 21163
      iprot.readStructBegin();
21164
      while (true)
21165
      {
21166
        field = iprot.readFieldBegin();
3430 rajveer 21167
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
923 rajveer 21168
          break;
21169
        }
3430 rajveer 21170
        switch (field.id) {
21171
          case 1: // ID
21172
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21173
              this.id = iprot.readI64();
21174
              setIdIsSet(true);
21175
            } else { 
21176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21177
            }
21178
            break;
21179
          default:
21180
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923 rajveer 21181
        }
3430 rajveer 21182
        iprot.readFieldEnd();
923 rajveer 21183
      }
21184
      iprot.readStructEnd();
21185
      validate();
21186
    }
21187
 
3430 rajveer 21188
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
923 rajveer 21189
      validate();
21190
 
21191
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 21192
      oprot.writeFieldBegin(ID_FIELD_DESC);
21193
      oprot.writeI64(this.id);
923 rajveer 21194
      oprot.writeFieldEnd();
21195
      oprot.writeFieldStop();
21196
      oprot.writeStructEnd();
21197
    }
21198
 
21199
    @Override
21200
    public String toString() {
3061 chandransh 21201
      StringBuilder sb = new StringBuilder("getOrder_args(");
923 rajveer 21202
      boolean first = true;
21203
 
3061 chandransh 21204
      sb.append("id:");
21205
      sb.append(this.id);
923 rajveer 21206
      first = false;
21207
      sb.append(")");
21208
      return sb.toString();
21209
    }
21210
 
3430 rajveer 21211
    public void validate() throws org.apache.thrift.TException {
923 rajveer 21212
      // check for required fields
21213
    }
21214
 
3430 rajveer 21215
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21216
      try {
21217
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21218
      } catch (org.apache.thrift.TException te) {
21219
        throw new java.io.IOException(te);
21220
      }
21221
    }
21222
 
21223
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21224
      try {
21225
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21226
        __isset_bit_vector = new BitSet(1);
21227
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21228
      } catch (org.apache.thrift.TException te) {
21229
        throw new java.io.IOException(te);
21230
      }
21231
    }
21232
 
923 rajveer 21233
  }
21234
 
3430 rajveer 21235
  public static class getOrder_result implements org.apache.thrift.TBase<getOrder_result, getOrder_result._Fields>, java.io.Serializable, Cloneable   {
21236
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrder_result");
923 rajveer 21237
 
3430 rajveer 21238
    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);
21239
    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);
923 rajveer 21240
 
3430 rajveer 21241
    private Order success; // required
21242
    private TransactionServiceException ex; // required
923 rajveer 21243
 
21244
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 21245
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
923 rajveer 21246
      SUCCESS((short)0, "success"),
21247
      EX((short)1, "ex");
21248
 
21249
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21250
 
21251
      static {
21252
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21253
          byName.put(field.getFieldName(), field);
21254
        }
21255
      }
21256
 
21257
      /**
21258
       * Find the _Fields constant that matches fieldId, or null if its not found.
21259
       */
21260
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21261
        switch(fieldId) {
21262
          case 0: // SUCCESS
21263
            return SUCCESS;
21264
          case 1: // EX
21265
            return EX;
21266
          default:
21267
            return null;
21268
        }
923 rajveer 21269
      }
21270
 
21271
      /**
21272
       * Find the _Fields constant that matches fieldId, throwing an exception
21273
       * if it is not found.
21274
       */
21275
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21276
        _Fields fields = findByThriftId(fieldId);
21277
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21278
        return fields;
21279
      }
21280
 
21281
      /**
21282
       * Find the _Fields constant that matches name, or null if its not found.
21283
       */
21284
      public static _Fields findByName(String name) {
21285
        return byName.get(name);
21286
      }
21287
 
21288
      private final short _thriftId;
21289
      private final String _fieldName;
21290
 
21291
      _Fields(short thriftId, String fieldName) {
21292
        _thriftId = thriftId;
21293
        _fieldName = fieldName;
21294
      }
21295
 
21296
      public short getThriftFieldId() {
21297
        return _thriftId;
21298
      }
21299
 
21300
      public String getFieldName() {
21301
        return _fieldName;
21302
      }
21303
    }
21304
 
21305
    // isset id assignments
21306
 
3430 rajveer 21307
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
923 rajveer 21308
    static {
3430 rajveer 21309
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21310
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21311
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
21312
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21313
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21314
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21315
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrder_result.class, metaDataMap);
923 rajveer 21316
    }
21317
 
3061 chandransh 21318
    public getOrder_result() {
923 rajveer 21319
    }
21320
 
3061 chandransh 21321
    public getOrder_result(
21322
      Order success,
923 rajveer 21323
      TransactionServiceException ex)
21324
    {
21325
      this();
21326
      this.success = success;
21327
      this.ex = ex;
21328
    }
21329
 
21330
    /**
21331
     * Performs a deep copy on <i>other</i>.
21332
     */
3061 chandransh 21333
    public getOrder_result(getOrder_result other) {
21334
      if (other.isSetSuccess()) {
21335
        this.success = new Order(other.success);
21336
      }
923 rajveer 21337
      if (other.isSetEx()) {
21338
        this.ex = new TransactionServiceException(other.ex);
21339
      }
21340
    }
21341
 
3061 chandransh 21342
    public getOrder_result deepCopy() {
21343
      return new getOrder_result(this);
923 rajveer 21344
    }
21345
 
3430 rajveer 21346
    @Override
21347
    public void clear() {
21348
      this.success = null;
21349
      this.ex = null;
923 rajveer 21350
    }
21351
 
3061 chandransh 21352
    public Order getSuccess() {
923 rajveer 21353
      return this.success;
21354
    }
21355
 
3430 rajveer 21356
    public void setSuccess(Order success) {
923 rajveer 21357
      this.success = success;
21358
    }
21359
 
21360
    public void unsetSuccess() {
3061 chandransh 21361
      this.success = null;
923 rajveer 21362
    }
21363
 
3430 rajveer 21364
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
923 rajveer 21365
    public boolean isSetSuccess() {
3061 chandransh 21366
      return this.success != null;
923 rajveer 21367
    }
21368
 
21369
    public void setSuccessIsSet(boolean value) {
3061 chandransh 21370
      if (!value) {
21371
        this.success = null;
21372
      }
923 rajveer 21373
    }
21374
 
21375
    public TransactionServiceException getEx() {
21376
      return this.ex;
21377
    }
21378
 
3430 rajveer 21379
    public void setEx(TransactionServiceException ex) {
923 rajveer 21380
      this.ex = ex;
21381
    }
21382
 
21383
    public void unsetEx() {
21384
      this.ex = null;
21385
    }
21386
 
3430 rajveer 21387
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
923 rajveer 21388
    public boolean isSetEx() {
21389
      return this.ex != null;
21390
    }
21391
 
21392
    public void setExIsSet(boolean value) {
21393
      if (!value) {
21394
        this.ex = null;
21395
      }
21396
    }
21397
 
21398
    public void setFieldValue(_Fields field, Object value) {
21399
      switch (field) {
21400
      case SUCCESS:
21401
        if (value == null) {
21402
          unsetSuccess();
21403
        } else {
3061 chandransh 21404
          setSuccess((Order)value);
923 rajveer 21405
        }
21406
        break;
21407
 
21408
      case EX:
21409
        if (value == null) {
21410
          unsetEx();
21411
        } else {
21412
          setEx((TransactionServiceException)value);
21413
        }
21414
        break;
21415
 
21416
      }
21417
    }
21418
 
21419
    public Object getFieldValue(_Fields field) {
21420
      switch (field) {
21421
      case SUCCESS:
3061 chandransh 21422
        return getSuccess();
923 rajveer 21423
 
21424
      case EX:
21425
        return getEx();
21426
 
21427
      }
21428
      throw new IllegalStateException();
21429
    }
21430
 
3430 rajveer 21431
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21432
    public boolean isSet(_Fields field) {
21433
      if (field == null) {
21434
        throw new IllegalArgumentException();
21435
      }
923 rajveer 21436
 
21437
      switch (field) {
21438
      case SUCCESS:
21439
        return isSetSuccess();
21440
      case EX:
21441
        return isSetEx();
21442
      }
21443
      throw new IllegalStateException();
21444
    }
21445
 
21446
    @Override
21447
    public boolean equals(Object that) {
21448
      if (that == null)
21449
        return false;
3061 chandransh 21450
      if (that instanceof getOrder_result)
21451
        return this.equals((getOrder_result)that);
923 rajveer 21452
      return false;
21453
    }
21454
 
3061 chandransh 21455
    public boolean equals(getOrder_result that) {
923 rajveer 21456
      if (that == null)
21457
        return false;
21458
 
3061 chandransh 21459
      boolean this_present_success = true && this.isSetSuccess();
21460
      boolean that_present_success = true && that.isSetSuccess();
923 rajveer 21461
      if (this_present_success || that_present_success) {
21462
        if (!(this_present_success && that_present_success))
21463
          return false;
3061 chandransh 21464
        if (!this.success.equals(that.success))
923 rajveer 21465
          return false;
21466
      }
21467
 
21468
      boolean this_present_ex = true && this.isSetEx();
21469
      boolean that_present_ex = true && that.isSetEx();
21470
      if (this_present_ex || that_present_ex) {
21471
        if (!(this_present_ex && that_present_ex))
21472
          return false;
21473
        if (!this.ex.equals(that.ex))
21474
          return false;
21475
      }
21476
 
21477
      return true;
21478
    }
21479
 
21480
    @Override
21481
    public int hashCode() {
21482
      return 0;
21483
    }
21484
 
3061 chandransh 21485
    public int compareTo(getOrder_result other) {
923 rajveer 21486
      if (!getClass().equals(other.getClass())) {
21487
        return getClass().getName().compareTo(other.getClass().getName());
21488
      }
21489
 
21490
      int lastComparison = 0;
3061 chandransh 21491
      getOrder_result typedOther = (getOrder_result)other;
923 rajveer 21492
 
3430 rajveer 21493
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
923 rajveer 21494
      if (lastComparison != 0) {
21495
        return lastComparison;
21496
      }
3430 rajveer 21497
      if (isSetSuccess()) {
21498
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21499
        if (lastComparison != 0) {
21500
          return lastComparison;
21501
        }
923 rajveer 21502
      }
3430 rajveer 21503
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
923 rajveer 21504
      if (lastComparison != 0) {
21505
        return lastComparison;
21506
      }
3430 rajveer 21507
      if (isSetEx()) {
21508
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
21509
        if (lastComparison != 0) {
21510
          return lastComparison;
21511
        }
923 rajveer 21512
      }
21513
      return 0;
21514
    }
21515
 
3430 rajveer 21516
    public _Fields fieldForId(int fieldId) {
21517
      return _Fields.findByThriftId(fieldId);
21518
    }
21519
 
21520
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21521
      org.apache.thrift.protocol.TField field;
923 rajveer 21522
      iprot.readStructBegin();
21523
      while (true)
21524
      {
21525
        field = iprot.readFieldBegin();
3430 rajveer 21526
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
923 rajveer 21527
          break;
21528
        }
3430 rajveer 21529
        switch (field.id) {
21530
          case 0: // SUCCESS
21531
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21532
              this.success = new Order();
21533
              this.success.read(iprot);
21534
            } else { 
21535
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21536
            }
21537
            break;
21538
          case 1: // EX
21539
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21540
              this.ex = new TransactionServiceException();
21541
              this.ex.read(iprot);
21542
            } else { 
21543
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21544
            }
21545
            break;
21546
          default:
21547
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923 rajveer 21548
        }
3430 rajveer 21549
        iprot.readFieldEnd();
923 rajveer 21550
      }
21551
      iprot.readStructEnd();
21552
      validate();
21553
    }
21554
 
3430 rajveer 21555
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
923 rajveer 21556
      oprot.writeStructBegin(STRUCT_DESC);
21557
 
21558
      if (this.isSetSuccess()) {
21559
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 21560
        this.success.write(oprot);
923 rajveer 21561
        oprot.writeFieldEnd();
21562
      } else if (this.isSetEx()) {
21563
        oprot.writeFieldBegin(EX_FIELD_DESC);
21564
        this.ex.write(oprot);
21565
        oprot.writeFieldEnd();
21566
      }
21567
      oprot.writeFieldStop();
21568
      oprot.writeStructEnd();
21569
    }
21570
 
21571
    @Override
21572
    public String toString() {
3061 chandransh 21573
      StringBuilder sb = new StringBuilder("getOrder_result(");
923 rajveer 21574
      boolean first = true;
21575
 
21576
      sb.append("success:");
3061 chandransh 21577
      if (this.success == null) {
21578
        sb.append("null");
21579
      } else {
21580
        sb.append(this.success);
21581
      }
923 rajveer 21582
      first = false;
21583
      if (!first) sb.append(", ");
21584
      sb.append("ex:");
21585
      if (this.ex == null) {
21586
        sb.append("null");
21587
      } else {
21588
        sb.append(this.ex);
21589
      }
21590
      first = false;
21591
      sb.append(")");
21592
      return sb.toString();
21593
    }
21594
 
3430 rajveer 21595
    public void validate() throws org.apache.thrift.TException {
923 rajveer 21596
      // check for required fields
21597
    }
21598
 
3430 rajveer 21599
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21600
      try {
21601
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21602
      } catch (org.apache.thrift.TException te) {
21603
        throw new java.io.IOException(te);
21604
      }
21605
    }
21606
 
21607
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21608
      try {
21609
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21610
      } catch (org.apache.thrift.TException te) {
21611
        throw new java.io.IOException(te);
21612
      }
21613
    }
21614
 
923 rajveer 21615
  }
21616
 
3430 rajveer 21617
  public static class getLineItemsForOrder_args implements org.apache.thrift.TBase<getLineItemsForOrder_args, getLineItemsForOrder_args._Fields>, java.io.Serializable, Cloneable   {
21618
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLineItemsForOrder_args");
68 ashish 21619
 
3430 rajveer 21620
    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);
68 ashish 21621
 
3430 rajveer 21622
    private long orderId; // required
68 ashish 21623
 
21624
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 21625
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 21626
      ORDER_ID((short)1, "orderId");
68 ashish 21627
 
21628
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21629
 
21630
      static {
21631
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21632
          byName.put(field.getFieldName(), field);
21633
        }
21634
      }
21635
 
21636
      /**
21637
       * Find the _Fields constant that matches fieldId, or null if its not found.
21638
       */
21639
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21640
        switch(fieldId) {
21641
          case 1: // ORDER_ID
21642
            return ORDER_ID;
21643
          default:
21644
            return null;
21645
        }
68 ashish 21646
      }
21647
 
21648
      /**
21649
       * Find the _Fields constant that matches fieldId, throwing an exception
21650
       * if it is not found.
21651
       */
21652
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21653
        _Fields fields = findByThriftId(fieldId);
21654
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21655
        return fields;
21656
      }
21657
 
21658
      /**
21659
       * Find the _Fields constant that matches name, or null if its not found.
21660
       */
21661
      public static _Fields findByName(String name) {
21662
        return byName.get(name);
21663
      }
21664
 
21665
      private final short _thriftId;
21666
      private final String _fieldName;
21667
 
21668
      _Fields(short thriftId, String fieldName) {
21669
        _thriftId = thriftId;
21670
        _fieldName = fieldName;
21671
      }
21672
 
21673
      public short getThriftFieldId() {
21674
        return _thriftId;
21675
      }
21676
 
21677
      public String getFieldName() {
21678
        return _fieldName;
21679
      }
21680
    }
21681
 
21682
    // isset id assignments
3061 chandransh 21683
    private static final int __ORDERID_ISSET_ID = 0;
21684
    private BitSet __isset_bit_vector = new BitSet(1);
68 ashish 21685
 
3430 rajveer 21686
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 21687
    static {
3430 rajveer 21688
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21689
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21690
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21691
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21692
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_args.class, metaDataMap);
68 ashish 21693
    }
21694
 
3061 chandransh 21695
    public getLineItemsForOrder_args() {
68 ashish 21696
    }
21697
 
3061 chandransh 21698
    public getLineItemsForOrder_args(
21699
      long orderId)
68 ashish 21700
    {
21701
      this();
3061 chandransh 21702
      this.orderId = orderId;
21703
      setOrderIdIsSet(true);
68 ashish 21704
    }
21705
 
21706
    /**
21707
     * Performs a deep copy on <i>other</i>.
21708
     */
3061 chandransh 21709
    public getLineItemsForOrder_args(getLineItemsForOrder_args other) {
68 ashish 21710
      __isset_bit_vector.clear();
21711
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 21712
      this.orderId = other.orderId;
68 ashish 21713
    }
21714
 
3061 chandransh 21715
    public getLineItemsForOrder_args deepCopy() {
21716
      return new getLineItemsForOrder_args(this);
68 ashish 21717
    }
21718
 
3430 rajveer 21719
    @Override
21720
    public void clear() {
21721
      setOrderIdIsSet(false);
21722
      this.orderId = 0;
68 ashish 21723
    }
21724
 
3061 chandransh 21725
    public long getOrderId() {
21726
      return this.orderId;
68 ashish 21727
    }
21728
 
3430 rajveer 21729
    public void setOrderId(long orderId) {
3061 chandransh 21730
      this.orderId = orderId;
21731
      setOrderIdIsSet(true);
68 ashish 21732
    }
21733
 
3061 chandransh 21734
    public void unsetOrderId() {
21735
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
68 ashish 21736
    }
21737
 
3430 rajveer 21738
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 21739
    public boolean isSetOrderId() {
21740
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
68 ashish 21741
    }
21742
 
3061 chandransh 21743
    public void setOrderIdIsSet(boolean value) {
21744
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
68 ashish 21745
    }
21746
 
21747
    public void setFieldValue(_Fields field, Object value) {
21748
      switch (field) {
3061 chandransh 21749
      case ORDER_ID:
68 ashish 21750
        if (value == null) {
3061 chandransh 21751
          unsetOrderId();
68 ashish 21752
        } else {
3061 chandransh 21753
          setOrderId((Long)value);
68 ashish 21754
        }
21755
        break;
21756
 
21757
      }
21758
    }
21759
 
21760
    public Object getFieldValue(_Fields field) {
21761
      switch (field) {
3061 chandransh 21762
      case ORDER_ID:
3430 rajveer 21763
        return Long.valueOf(getOrderId());
68 ashish 21764
 
21765
      }
21766
      throw new IllegalStateException();
21767
    }
21768
 
3430 rajveer 21769
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21770
    public boolean isSet(_Fields field) {
21771
      if (field == null) {
21772
        throw new IllegalArgumentException();
21773
      }
68 ashish 21774
 
21775
      switch (field) {
3061 chandransh 21776
      case ORDER_ID:
21777
        return isSetOrderId();
68 ashish 21778
      }
21779
      throw new IllegalStateException();
21780
    }
21781
 
21782
    @Override
21783
    public boolean equals(Object that) {
21784
      if (that == null)
21785
        return false;
3061 chandransh 21786
      if (that instanceof getLineItemsForOrder_args)
21787
        return this.equals((getLineItemsForOrder_args)that);
68 ashish 21788
      return false;
21789
    }
21790
 
3061 chandransh 21791
    public boolean equals(getLineItemsForOrder_args that) {
68 ashish 21792
      if (that == null)
21793
        return false;
21794
 
3061 chandransh 21795
      boolean this_present_orderId = true;
21796
      boolean that_present_orderId = true;
21797
      if (this_present_orderId || that_present_orderId) {
21798
        if (!(this_present_orderId && that_present_orderId))
68 ashish 21799
          return false;
3061 chandransh 21800
        if (this.orderId != that.orderId)
68 ashish 21801
          return false;
21802
      }
21803
 
21804
      return true;
21805
    }
21806
 
21807
    @Override
21808
    public int hashCode() {
21809
      return 0;
21810
    }
21811
 
3061 chandransh 21812
    public int compareTo(getLineItemsForOrder_args other) {
68 ashish 21813
      if (!getClass().equals(other.getClass())) {
21814
        return getClass().getName().compareTo(other.getClass().getName());
21815
      }
21816
 
21817
      int lastComparison = 0;
3061 chandransh 21818
      getLineItemsForOrder_args typedOther = (getLineItemsForOrder_args)other;
68 ashish 21819
 
3430 rajveer 21820
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
68 ashish 21821
      if (lastComparison != 0) {
21822
        return lastComparison;
21823
      }
3430 rajveer 21824
      if (isSetOrderId()) {
21825
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
21826
        if (lastComparison != 0) {
21827
          return lastComparison;
21828
        }
68 ashish 21829
      }
21830
      return 0;
21831
    }
21832
 
3430 rajveer 21833
    public _Fields fieldForId(int fieldId) {
21834
      return _Fields.findByThriftId(fieldId);
21835
    }
21836
 
21837
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21838
      org.apache.thrift.protocol.TField field;
68 ashish 21839
      iprot.readStructBegin();
21840
      while (true)
21841
      {
21842
        field = iprot.readFieldBegin();
3430 rajveer 21843
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 21844
          break;
21845
        }
3430 rajveer 21846
        switch (field.id) {
21847
          case 1: // ORDER_ID
21848
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21849
              this.orderId = iprot.readI64();
21850
              setOrderIdIsSet(true);
21851
            } else { 
21852
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21853
            }
21854
            break;
21855
          default:
21856
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 21857
        }
3430 rajveer 21858
        iprot.readFieldEnd();
68 ashish 21859
      }
21860
      iprot.readStructEnd();
21861
      validate();
21862
    }
21863
 
3430 rajveer 21864
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 21865
      validate();
21866
 
21867
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 21868
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
21869
      oprot.writeI64(this.orderId);
68 ashish 21870
      oprot.writeFieldEnd();
21871
      oprot.writeFieldStop();
21872
      oprot.writeStructEnd();
21873
    }
21874
 
21875
    @Override
21876
    public String toString() {
3061 chandransh 21877
      StringBuilder sb = new StringBuilder("getLineItemsForOrder_args(");
68 ashish 21878
      boolean first = true;
21879
 
3061 chandransh 21880
      sb.append("orderId:");
21881
      sb.append(this.orderId);
68 ashish 21882
      first = false;
21883
      sb.append(")");
21884
      return sb.toString();
21885
    }
21886
 
3430 rajveer 21887
    public void validate() throws org.apache.thrift.TException {
68 ashish 21888
      // check for required fields
21889
    }
21890
 
3430 rajveer 21891
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21892
      try {
21893
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21894
      } catch (org.apache.thrift.TException te) {
21895
        throw new java.io.IOException(te);
21896
      }
21897
    }
21898
 
21899
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21900
      try {
21901
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21902
        __isset_bit_vector = new BitSet(1);
21903
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21904
      } catch (org.apache.thrift.TException te) {
21905
        throw new java.io.IOException(te);
21906
      }
21907
    }
21908
 
68 ashish 21909
  }
21910
 
3430 rajveer 21911
  public static class getLineItemsForOrder_result implements org.apache.thrift.TBase<getLineItemsForOrder_result, getLineItemsForOrder_result._Fields>, java.io.Serializable, Cloneable   {
21912
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLineItemsForOrder_result");
68 ashish 21913
 
3430 rajveer 21914
    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);
21915
    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);
68 ashish 21916
 
3430 rajveer 21917
    private List<LineItem> success; // required
21918
    private TransactionServiceException ex; // required
68 ashish 21919
 
21920
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 21921
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 21922
      SUCCESS((short)0, "success"),
21923
      EX((short)1, "ex");
21924
 
21925
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21926
 
21927
      static {
21928
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21929
          byName.put(field.getFieldName(), field);
21930
        }
21931
      }
21932
 
21933
      /**
21934
       * Find the _Fields constant that matches fieldId, or null if its not found.
21935
       */
21936
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21937
        switch(fieldId) {
21938
          case 0: // SUCCESS
21939
            return SUCCESS;
21940
          case 1: // EX
21941
            return EX;
21942
          default:
21943
            return null;
21944
        }
68 ashish 21945
      }
21946
 
21947
      /**
21948
       * Find the _Fields constant that matches fieldId, throwing an exception
21949
       * if it is not found.
21950
       */
21951
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21952
        _Fields fields = findByThriftId(fieldId);
21953
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21954
        return fields;
21955
      }
21956
 
21957
      /**
21958
       * Find the _Fields constant that matches name, or null if its not found.
21959
       */
21960
      public static _Fields findByName(String name) {
21961
        return byName.get(name);
21962
      }
21963
 
21964
      private final short _thriftId;
21965
      private final String _fieldName;
21966
 
21967
      _Fields(short thriftId, String fieldName) {
21968
        _thriftId = thriftId;
21969
        _fieldName = fieldName;
21970
      }
21971
 
21972
      public short getThriftFieldId() {
21973
        return _thriftId;
21974
      }
21975
 
21976
      public String getFieldName() {
21977
        return _fieldName;
21978
      }
21979
    }
21980
 
21981
    // isset id assignments
21982
 
3430 rajveer 21983
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 21984
    static {
3430 rajveer 21985
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21986
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21987
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
21988
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LineItem.class))));
21989
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21990
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21991
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21992
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_result.class, metaDataMap);
68 ashish 21993
    }
21994
 
3061 chandransh 21995
    public getLineItemsForOrder_result() {
68 ashish 21996
    }
21997
 
3061 chandransh 21998
    public getLineItemsForOrder_result(
21999
      List<LineItem> success,
68 ashish 22000
      TransactionServiceException ex)
22001
    {
22002
      this();
22003
      this.success = success;
22004
      this.ex = ex;
22005
    }
22006
 
22007
    /**
22008
     * Performs a deep copy on <i>other</i>.
22009
     */
3061 chandransh 22010
    public getLineItemsForOrder_result(getLineItemsForOrder_result other) {
483 rajveer 22011
      if (other.isSetSuccess()) {
3061 chandransh 22012
        List<LineItem> __this__success = new ArrayList<LineItem>();
22013
        for (LineItem other_element : other.success) {
22014
          __this__success.add(new LineItem(other_element));
483 rajveer 22015
        }
22016
        this.success = __this__success;
22017
      }
68 ashish 22018
      if (other.isSetEx()) {
22019
        this.ex = new TransactionServiceException(other.ex);
22020
      }
22021
    }
22022
 
3061 chandransh 22023
    public getLineItemsForOrder_result deepCopy() {
22024
      return new getLineItemsForOrder_result(this);
68 ashish 22025
    }
22026
 
3430 rajveer 22027
    @Override
22028
    public void clear() {
22029
      this.success = null;
22030
      this.ex = null;
68 ashish 22031
    }
22032
 
483 rajveer 22033
    public int getSuccessSize() {
22034
      return (this.success == null) ? 0 : this.success.size();
22035
    }
22036
 
3061 chandransh 22037
    public java.util.Iterator<LineItem> getSuccessIterator() {
483 rajveer 22038
      return (this.success == null) ? null : this.success.iterator();
22039
    }
22040
 
3061 chandransh 22041
    public void addToSuccess(LineItem elem) {
483 rajveer 22042
      if (this.success == null) {
3061 chandransh 22043
        this.success = new ArrayList<LineItem>();
483 rajveer 22044
      }
22045
      this.success.add(elem);
22046
    }
22047
 
3061 chandransh 22048
    public List<LineItem> getSuccess() {
68 ashish 22049
      return this.success;
22050
    }
22051
 
3430 rajveer 22052
    public void setSuccess(List<LineItem> success) {
68 ashish 22053
      this.success = success;
22054
    }
22055
 
22056
    public void unsetSuccess() {
483 rajveer 22057
      this.success = null;
68 ashish 22058
    }
22059
 
3430 rajveer 22060
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 22061
    public boolean isSetSuccess() {
483 rajveer 22062
      return this.success != null;
68 ashish 22063
    }
22064
 
22065
    public void setSuccessIsSet(boolean value) {
483 rajveer 22066
      if (!value) {
22067
        this.success = null;
22068
      }
68 ashish 22069
    }
22070
 
22071
    public TransactionServiceException getEx() {
22072
      return this.ex;
22073
    }
22074
 
3430 rajveer 22075
    public void setEx(TransactionServiceException ex) {
68 ashish 22076
      this.ex = ex;
22077
    }
22078
 
22079
    public void unsetEx() {
22080
      this.ex = null;
22081
    }
22082
 
3430 rajveer 22083
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 22084
    public boolean isSetEx() {
22085
      return this.ex != null;
22086
    }
22087
 
22088
    public void setExIsSet(boolean value) {
22089
      if (!value) {
22090
        this.ex = null;
22091
      }
22092
    }
22093
 
22094
    public void setFieldValue(_Fields field, Object value) {
22095
      switch (field) {
22096
      case SUCCESS:
22097
        if (value == null) {
22098
          unsetSuccess();
22099
        } else {
3061 chandransh 22100
          setSuccess((List<LineItem>)value);
68 ashish 22101
        }
22102
        break;
22103
 
22104
      case EX:
22105
        if (value == null) {
22106
          unsetEx();
22107
        } else {
22108
          setEx((TransactionServiceException)value);
22109
        }
22110
        break;
22111
 
22112
      }
22113
    }
22114
 
22115
    public Object getFieldValue(_Fields field) {
22116
      switch (field) {
22117
      case SUCCESS:
483 rajveer 22118
        return getSuccess();
68 ashish 22119
 
22120
      case EX:
22121
        return getEx();
22122
 
22123
      }
22124
      throw new IllegalStateException();
22125
    }
22126
 
3430 rajveer 22127
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22128
    public boolean isSet(_Fields field) {
22129
      if (field == null) {
22130
        throw new IllegalArgumentException();
22131
      }
68 ashish 22132
 
22133
      switch (field) {
22134
      case SUCCESS:
22135
        return isSetSuccess();
22136
      case EX:
22137
        return isSetEx();
22138
      }
22139
      throw new IllegalStateException();
22140
    }
22141
 
22142
    @Override
22143
    public boolean equals(Object that) {
22144
      if (that == null)
22145
        return false;
3061 chandransh 22146
      if (that instanceof getLineItemsForOrder_result)
22147
        return this.equals((getLineItemsForOrder_result)that);
68 ashish 22148
      return false;
22149
    }
22150
 
3061 chandransh 22151
    public boolean equals(getLineItemsForOrder_result that) {
68 ashish 22152
      if (that == null)
22153
        return false;
22154
 
483 rajveer 22155
      boolean this_present_success = true && this.isSetSuccess();
22156
      boolean that_present_success = true && that.isSetSuccess();
68 ashish 22157
      if (this_present_success || that_present_success) {
22158
        if (!(this_present_success && that_present_success))
22159
          return false;
483 rajveer 22160
        if (!this.success.equals(that.success))
68 ashish 22161
          return false;
22162
      }
22163
 
22164
      boolean this_present_ex = true && this.isSetEx();
22165
      boolean that_present_ex = true && that.isSetEx();
22166
      if (this_present_ex || that_present_ex) {
22167
        if (!(this_present_ex && that_present_ex))
22168
          return false;
22169
        if (!this.ex.equals(that.ex))
22170
          return false;
22171
      }
22172
 
22173
      return true;
22174
    }
22175
 
22176
    @Override
22177
    public int hashCode() {
22178
      return 0;
22179
    }
22180
 
3061 chandransh 22181
    public int compareTo(getLineItemsForOrder_result other) {
68 ashish 22182
      if (!getClass().equals(other.getClass())) {
22183
        return getClass().getName().compareTo(other.getClass().getName());
22184
      }
22185
 
22186
      int lastComparison = 0;
3061 chandransh 22187
      getLineItemsForOrder_result typedOther = (getLineItemsForOrder_result)other;
68 ashish 22188
 
3430 rajveer 22189
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 22190
      if (lastComparison != 0) {
22191
        return lastComparison;
22192
      }
3430 rajveer 22193
      if (isSetSuccess()) {
22194
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22195
        if (lastComparison != 0) {
22196
          return lastComparison;
22197
        }
68 ashish 22198
      }
3430 rajveer 22199
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 22200
      if (lastComparison != 0) {
22201
        return lastComparison;
22202
      }
3430 rajveer 22203
      if (isSetEx()) {
22204
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
22205
        if (lastComparison != 0) {
22206
          return lastComparison;
22207
        }
68 ashish 22208
      }
22209
      return 0;
22210
    }
22211
 
3430 rajveer 22212
    public _Fields fieldForId(int fieldId) {
22213
      return _Fields.findByThriftId(fieldId);
22214
    }
22215
 
22216
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22217
      org.apache.thrift.protocol.TField field;
68 ashish 22218
      iprot.readStructBegin();
22219
      while (true)
22220
      {
22221
        field = iprot.readFieldBegin();
3430 rajveer 22222
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 22223
          break;
22224
        }
3430 rajveer 22225
        switch (field.id) {
22226
          case 0: // SUCCESS
22227
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22228
              {
4133 chandransh 22229
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
22230
                this.success = new ArrayList<LineItem>(_list60.size);
22231
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
483 rajveer 22232
                {
4133 chandransh 22233
                  LineItem _elem62; // required
22234
                  _elem62 = new LineItem();
22235
                  _elem62.read(iprot);
22236
                  this.success.add(_elem62);
483 rajveer 22237
                }
3430 rajveer 22238
                iprot.readListEnd();
68 ashish 22239
              }
3430 rajveer 22240
            } else { 
22241
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22242
            }
22243
            break;
22244
          case 1: // EX
22245
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22246
              this.ex = new TransactionServiceException();
22247
              this.ex.read(iprot);
22248
            } else { 
22249
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22250
            }
22251
            break;
22252
          default:
22253
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 22254
        }
3430 rajveer 22255
        iprot.readFieldEnd();
68 ashish 22256
      }
22257
      iprot.readStructEnd();
22258
      validate();
22259
    }
22260
 
3430 rajveer 22261
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 22262
      oprot.writeStructBegin(STRUCT_DESC);
22263
 
22264
      if (this.isSetSuccess()) {
22265
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
483 rajveer 22266
        {
3430 rajveer 22267
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 22268
          for (LineItem _iter63 : this.success)
483 rajveer 22269
          {
4133 chandransh 22270
            _iter63.write(oprot);
483 rajveer 22271
          }
22272
          oprot.writeListEnd();
22273
        }
68 ashish 22274
        oprot.writeFieldEnd();
22275
      } else if (this.isSetEx()) {
22276
        oprot.writeFieldBegin(EX_FIELD_DESC);
22277
        this.ex.write(oprot);
22278
        oprot.writeFieldEnd();
22279
      }
22280
      oprot.writeFieldStop();
22281
      oprot.writeStructEnd();
22282
    }
22283
 
22284
    @Override
22285
    public String toString() {
3061 chandransh 22286
      StringBuilder sb = new StringBuilder("getLineItemsForOrder_result(");
68 ashish 22287
      boolean first = true;
22288
 
22289
      sb.append("success:");
483 rajveer 22290
      if (this.success == null) {
22291
        sb.append("null");
22292
      } else {
22293
        sb.append(this.success);
22294
      }
68 ashish 22295
      first = false;
22296
      if (!first) sb.append(", ");
22297
      sb.append("ex:");
22298
      if (this.ex == null) {
22299
        sb.append("null");
22300
      } else {
22301
        sb.append(this.ex);
22302
      }
22303
      first = false;
22304
      sb.append(")");
22305
      return sb.toString();
22306
    }
22307
 
3430 rajveer 22308
    public void validate() throws org.apache.thrift.TException {
68 ashish 22309
      // check for required fields
22310
    }
22311
 
3430 rajveer 22312
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22313
      try {
22314
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22315
      } catch (org.apache.thrift.TException te) {
22316
        throw new java.io.IOException(te);
22317
      }
22318
    }
22319
 
22320
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22321
      try {
22322
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22323
      } catch (org.apache.thrift.TException te) {
22324
        throw new java.io.IOException(te);
22325
      }
22326
    }
22327
 
68 ashish 22328
  }
22329
 
3430 rajveer 22330
  public static class getOrderForCustomer_args implements org.apache.thrift.TBase<getOrderForCustomer_args, getOrderForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
22331
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForCustomer_args");
68 ashish 22332
 
3430 rajveer 22333
    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);
22334
    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);
68 ashish 22335
 
3430 rajveer 22336
    private long orderId; // required
22337
    private long customerId; // required
68 ashish 22338
 
22339
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22340
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 22341
      ORDER_ID((short)1, "orderId"),
22342
      CUSTOMER_ID((short)2, "customerId");
68 ashish 22343
 
22344
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22345
 
22346
      static {
22347
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22348
          byName.put(field.getFieldName(), field);
22349
        }
22350
      }
22351
 
22352
      /**
22353
       * Find the _Fields constant that matches fieldId, or null if its not found.
22354
       */
22355
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22356
        switch(fieldId) {
22357
          case 1: // ORDER_ID
22358
            return ORDER_ID;
22359
          case 2: // CUSTOMER_ID
22360
            return CUSTOMER_ID;
22361
          default:
22362
            return null;
22363
        }
68 ashish 22364
      }
22365
 
22366
      /**
22367
       * Find the _Fields constant that matches fieldId, throwing an exception
22368
       * if it is not found.
22369
       */
22370
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22371
        _Fields fields = findByThriftId(fieldId);
22372
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22373
        return fields;
22374
      }
22375
 
22376
      /**
22377
       * Find the _Fields constant that matches name, or null if its not found.
22378
       */
22379
      public static _Fields findByName(String name) {
22380
        return byName.get(name);
22381
      }
22382
 
22383
      private final short _thriftId;
22384
      private final String _fieldName;
22385
 
22386
      _Fields(short thriftId, String fieldName) {
22387
        _thriftId = thriftId;
22388
        _fieldName = fieldName;
22389
      }
22390
 
22391
      public short getThriftFieldId() {
22392
        return _thriftId;
22393
      }
22394
 
22395
      public String getFieldName() {
22396
        return _fieldName;
22397
      }
22398
    }
22399
 
22400
    // isset id assignments
3061 chandransh 22401
    private static final int __ORDERID_ISSET_ID = 0;
22402
    private static final int __CUSTOMERID_ISSET_ID = 1;
22403
    private BitSet __isset_bit_vector = new BitSet(2);
68 ashish 22404
 
3430 rajveer 22405
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 22406
    static {
3430 rajveer 22407
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22408
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22409
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22410
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22411
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22412
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22413
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForCustomer_args.class, metaDataMap);
68 ashish 22414
    }
22415
 
3061 chandransh 22416
    public getOrderForCustomer_args() {
68 ashish 22417
    }
22418
 
3061 chandransh 22419
    public getOrderForCustomer_args(
22420
      long orderId,
22421
      long customerId)
68 ashish 22422
    {
22423
      this();
3061 chandransh 22424
      this.orderId = orderId;
22425
      setOrderIdIsSet(true);
483 rajveer 22426
      this.customerId = customerId;
22427
      setCustomerIdIsSet(true);
68 ashish 22428
    }
22429
 
22430
    /**
22431
     * Performs a deep copy on <i>other</i>.
22432
     */
3061 chandransh 22433
    public getOrderForCustomer_args(getOrderForCustomer_args other) {
68 ashish 22434
      __isset_bit_vector.clear();
22435
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 22436
      this.orderId = other.orderId;
483 rajveer 22437
      this.customerId = other.customerId;
68 ashish 22438
    }
22439
 
3061 chandransh 22440
    public getOrderForCustomer_args deepCopy() {
22441
      return new getOrderForCustomer_args(this);
68 ashish 22442
    }
22443
 
3430 rajveer 22444
    @Override
22445
    public void clear() {
22446
      setOrderIdIsSet(false);
22447
      this.orderId = 0;
22448
      setCustomerIdIsSet(false);
22449
      this.customerId = 0;
68 ashish 22450
    }
22451
 
3061 chandransh 22452
    public long getOrderId() {
22453
      return this.orderId;
22454
    }
22455
 
3430 rajveer 22456
    public void setOrderId(long orderId) {
3061 chandransh 22457
      this.orderId = orderId;
22458
      setOrderIdIsSet(true);
22459
    }
22460
 
22461
    public void unsetOrderId() {
22462
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
22463
    }
22464
 
3430 rajveer 22465
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 22466
    public boolean isSetOrderId() {
22467
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
22468
    }
22469
 
22470
    public void setOrderIdIsSet(boolean value) {
22471
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
22472
    }
22473
 
483 rajveer 22474
    public long getCustomerId() {
22475
      return this.customerId;
68 ashish 22476
    }
22477
 
3430 rajveer 22478
    public void setCustomerId(long customerId) {
483 rajveer 22479
      this.customerId = customerId;
22480
      setCustomerIdIsSet(true);
68 ashish 22481
    }
22482
 
483 rajveer 22483
    public void unsetCustomerId() {
22484
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
68 ashish 22485
    }
22486
 
3430 rajveer 22487
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
483 rajveer 22488
    public boolean isSetCustomerId() {
22489
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
68 ashish 22490
    }
22491
 
483 rajveer 22492
    public void setCustomerIdIsSet(boolean value) {
22493
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
68 ashish 22494
    }
22495
 
22496
    public void setFieldValue(_Fields field, Object value) {
22497
      switch (field) {
3061 chandransh 22498
      case ORDER_ID:
68 ashish 22499
        if (value == null) {
3061 chandransh 22500
          unsetOrderId();
68 ashish 22501
        } else {
3061 chandransh 22502
          setOrderId((Long)value);
68 ashish 22503
        }
22504
        break;
22505
 
3061 chandransh 22506
      case CUSTOMER_ID:
68 ashish 22507
        if (value == null) {
3061 chandransh 22508
          unsetCustomerId();
68 ashish 22509
        } else {
3061 chandransh 22510
          setCustomerId((Long)value);
68 ashish 22511
        }
22512
        break;
22513
 
22514
      }
22515
    }
22516
 
22517
    public Object getFieldValue(_Fields field) {
22518
      switch (field) {
3061 chandransh 22519
      case ORDER_ID:
3430 rajveer 22520
        return Long.valueOf(getOrderId());
3061 chandransh 22521
 
483 rajveer 22522
      case CUSTOMER_ID:
3430 rajveer 22523
        return Long.valueOf(getCustomerId());
68 ashish 22524
 
22525
      }
22526
      throw new IllegalStateException();
22527
    }
22528
 
3430 rajveer 22529
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22530
    public boolean isSet(_Fields field) {
22531
      if (field == null) {
22532
        throw new IllegalArgumentException();
22533
      }
68 ashish 22534
 
22535
      switch (field) {
3061 chandransh 22536
      case ORDER_ID:
22537
        return isSetOrderId();
483 rajveer 22538
      case CUSTOMER_ID:
22539
        return isSetCustomerId();
68 ashish 22540
      }
22541
      throw new IllegalStateException();
22542
    }
22543
 
22544
    @Override
22545
    public boolean equals(Object that) {
22546
      if (that == null)
22547
        return false;
3061 chandransh 22548
      if (that instanceof getOrderForCustomer_args)
22549
        return this.equals((getOrderForCustomer_args)that);
68 ashish 22550
      return false;
22551
    }
22552
 
3061 chandransh 22553
    public boolean equals(getOrderForCustomer_args that) {
68 ashish 22554
      if (that == null)
22555
        return false;
22556
 
3061 chandransh 22557
      boolean this_present_orderId = true;
22558
      boolean that_present_orderId = true;
22559
      if (this_present_orderId || that_present_orderId) {
22560
        if (!(this_present_orderId && that_present_orderId))
22561
          return false;
22562
        if (this.orderId != that.orderId)
22563
          return false;
22564
      }
22565
 
483 rajveer 22566
      boolean this_present_customerId = true;
22567
      boolean that_present_customerId = true;
22568
      if (this_present_customerId || that_present_customerId) {
22569
        if (!(this_present_customerId && that_present_customerId))
68 ashish 22570
          return false;
483 rajveer 22571
        if (this.customerId != that.customerId)
68 ashish 22572
          return false;
22573
      }
22574
 
22575
      return true;
22576
    }
22577
 
22578
    @Override
22579
    public int hashCode() {
22580
      return 0;
22581
    }
22582
 
3061 chandransh 22583
    public int compareTo(getOrderForCustomer_args other) {
68 ashish 22584
      if (!getClass().equals(other.getClass())) {
22585
        return getClass().getName().compareTo(other.getClass().getName());
22586
      }
22587
 
22588
      int lastComparison = 0;
3061 chandransh 22589
      getOrderForCustomer_args typedOther = (getOrderForCustomer_args)other;
68 ashish 22590
 
3430 rajveer 22591
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
68 ashish 22592
      if (lastComparison != 0) {
22593
        return lastComparison;
22594
      }
3430 rajveer 22595
      if (isSetOrderId()) {
22596
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
22597
        if (lastComparison != 0) {
22598
          return lastComparison;
22599
        }
68 ashish 22600
      }
3430 rajveer 22601
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
68 ashish 22602
      if (lastComparison != 0) {
22603
        return lastComparison;
22604
      }
3430 rajveer 22605
      if (isSetCustomerId()) {
22606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
22607
        if (lastComparison != 0) {
22608
          return lastComparison;
22609
        }
68 ashish 22610
      }
22611
      return 0;
22612
    }
22613
 
3430 rajveer 22614
    public _Fields fieldForId(int fieldId) {
22615
      return _Fields.findByThriftId(fieldId);
22616
    }
22617
 
22618
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22619
      org.apache.thrift.protocol.TField field;
68 ashish 22620
      iprot.readStructBegin();
22621
      while (true)
22622
      {
22623
        field = iprot.readFieldBegin();
3430 rajveer 22624
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 22625
          break;
22626
        }
3430 rajveer 22627
        switch (field.id) {
22628
          case 1: // ORDER_ID
22629
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22630
              this.orderId = iprot.readI64();
22631
              setOrderIdIsSet(true);
22632
            } else { 
22633
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22634
            }
22635
            break;
22636
          case 2: // CUSTOMER_ID
22637
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22638
              this.customerId = iprot.readI64();
22639
              setCustomerIdIsSet(true);
22640
            } else { 
22641
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22642
            }
22643
            break;
22644
          default:
22645
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 22646
        }
3430 rajveer 22647
        iprot.readFieldEnd();
68 ashish 22648
      }
22649
      iprot.readStructEnd();
22650
      validate();
22651
    }
22652
 
3430 rajveer 22653
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 22654
      validate();
22655
 
22656
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 22657
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
22658
      oprot.writeI64(this.orderId);
22659
      oprot.writeFieldEnd();
483 rajveer 22660
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
22661
      oprot.writeI64(this.customerId);
68 ashish 22662
      oprot.writeFieldEnd();
22663
      oprot.writeFieldStop();
22664
      oprot.writeStructEnd();
22665
    }
22666
 
22667
    @Override
22668
    public String toString() {
3061 chandransh 22669
      StringBuilder sb = new StringBuilder("getOrderForCustomer_args(");
68 ashish 22670
      boolean first = true;
22671
 
3061 chandransh 22672
      sb.append("orderId:");
22673
      sb.append(this.orderId);
22674
      first = false;
22675
      if (!first) sb.append(", ");
483 rajveer 22676
      sb.append("customerId:");
22677
      sb.append(this.customerId);
68 ashish 22678
      first = false;
22679
      sb.append(")");
22680
      return sb.toString();
22681
    }
22682
 
3430 rajveer 22683
    public void validate() throws org.apache.thrift.TException {
68 ashish 22684
      // check for required fields
22685
    }
22686
 
3430 rajveer 22687
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22688
      try {
22689
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22690
      } catch (org.apache.thrift.TException te) {
22691
        throw new java.io.IOException(te);
22692
      }
22693
    }
22694
 
22695
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22696
      try {
22697
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22698
      } catch (org.apache.thrift.TException te) {
22699
        throw new java.io.IOException(te);
22700
      }
22701
    }
22702
 
68 ashish 22703
  }
22704
 
3430 rajveer 22705
  public static class getOrderForCustomer_result implements org.apache.thrift.TBase<getOrderForCustomer_result, getOrderForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
22706
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForCustomer_result");
68 ashish 22707
 
3430 rajveer 22708
    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);
22709
    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);
68 ashish 22710
 
3430 rajveer 22711
    private Order success; // required
22712
    private TransactionServiceException ex; // required
68 ashish 22713
 
22714
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22715
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 22716
      SUCCESS((short)0, "success"),
22717
      EX((short)1, "ex");
22718
 
22719
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22720
 
22721
      static {
22722
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22723
          byName.put(field.getFieldName(), field);
22724
        }
22725
      }
22726
 
22727
      /**
22728
       * Find the _Fields constant that matches fieldId, or null if its not found.
22729
       */
22730
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22731
        switch(fieldId) {
22732
          case 0: // SUCCESS
22733
            return SUCCESS;
22734
          case 1: // EX
22735
            return EX;
22736
          default:
22737
            return null;
22738
        }
68 ashish 22739
      }
22740
 
22741
      /**
22742
       * Find the _Fields constant that matches fieldId, throwing an exception
22743
       * if it is not found.
22744
       */
22745
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22746
        _Fields fields = findByThriftId(fieldId);
22747
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22748
        return fields;
22749
      }
22750
 
22751
      /**
22752
       * Find the _Fields constant that matches name, or null if its not found.
22753
       */
22754
      public static _Fields findByName(String name) {
22755
        return byName.get(name);
22756
      }
22757
 
22758
      private final short _thriftId;
22759
      private final String _fieldName;
22760
 
22761
      _Fields(short thriftId, String fieldName) {
22762
        _thriftId = thriftId;
22763
        _fieldName = fieldName;
22764
      }
22765
 
22766
      public short getThriftFieldId() {
22767
        return _thriftId;
22768
      }
22769
 
22770
      public String getFieldName() {
22771
        return _fieldName;
22772
      }
22773
    }
22774
 
22775
    // isset id assignments
22776
 
3430 rajveer 22777
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 22778
    static {
3430 rajveer 22779
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22780
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22781
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
22782
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22783
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22784
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22785
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForCustomer_result.class, metaDataMap);
68 ashish 22786
    }
22787
 
3061 chandransh 22788
    public getOrderForCustomer_result() {
68 ashish 22789
    }
22790
 
3061 chandransh 22791
    public getOrderForCustomer_result(
22792
      Order success,
68 ashish 22793
      TransactionServiceException ex)
22794
    {
22795
      this();
22796
      this.success = success;
22797
      this.ex = ex;
22798
    }
22799
 
22800
    /**
22801
     * Performs a deep copy on <i>other</i>.
22802
     */
3061 chandransh 22803
    public getOrderForCustomer_result(getOrderForCustomer_result other) {
483 rajveer 22804
      if (other.isSetSuccess()) {
3061 chandransh 22805
        this.success = new Order(other.success);
483 rajveer 22806
      }
68 ashish 22807
      if (other.isSetEx()) {
22808
        this.ex = new TransactionServiceException(other.ex);
22809
      }
22810
    }
22811
 
3061 chandransh 22812
    public getOrderForCustomer_result deepCopy() {
22813
      return new getOrderForCustomer_result(this);
68 ashish 22814
    }
22815
 
3430 rajveer 22816
    @Override
22817
    public void clear() {
22818
      this.success = null;
22819
      this.ex = null;
68 ashish 22820
    }
22821
 
3061 chandransh 22822
    public Order getSuccess() {
68 ashish 22823
      return this.success;
22824
    }
22825
 
3430 rajveer 22826
    public void setSuccess(Order success) {
68 ashish 22827
      this.success = success;
22828
    }
22829
 
22830
    public void unsetSuccess() {
483 rajveer 22831
      this.success = null;
68 ashish 22832
    }
22833
 
3430 rajveer 22834
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 22835
    public boolean isSetSuccess() {
483 rajveer 22836
      return this.success != null;
68 ashish 22837
    }
22838
 
22839
    public void setSuccessIsSet(boolean value) {
483 rajveer 22840
      if (!value) {
22841
        this.success = null;
22842
      }
68 ashish 22843
    }
22844
 
22845
    public TransactionServiceException getEx() {
22846
      return this.ex;
22847
    }
22848
 
3430 rajveer 22849
    public void setEx(TransactionServiceException ex) {
68 ashish 22850
      this.ex = ex;
22851
    }
22852
 
22853
    public void unsetEx() {
22854
      this.ex = null;
22855
    }
22856
 
3430 rajveer 22857
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 22858
    public boolean isSetEx() {
22859
      return this.ex != null;
22860
    }
22861
 
22862
    public void setExIsSet(boolean value) {
22863
      if (!value) {
22864
        this.ex = null;
22865
      }
22866
    }
22867
 
22868
    public void setFieldValue(_Fields field, Object value) {
22869
      switch (field) {
22870
      case SUCCESS:
22871
        if (value == null) {
22872
          unsetSuccess();
22873
        } else {
3061 chandransh 22874
          setSuccess((Order)value);
68 ashish 22875
        }
22876
        break;
22877
 
22878
      case EX:
22879
        if (value == null) {
22880
          unsetEx();
22881
        } else {
22882
          setEx((TransactionServiceException)value);
22883
        }
22884
        break;
22885
 
22886
      }
22887
    }
22888
 
22889
    public Object getFieldValue(_Fields field) {
22890
      switch (field) {
22891
      case SUCCESS:
483 rajveer 22892
        return getSuccess();
68 ashish 22893
 
22894
      case EX:
22895
        return getEx();
22896
 
22897
      }
22898
      throw new IllegalStateException();
22899
    }
22900
 
3430 rajveer 22901
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22902
    public boolean isSet(_Fields field) {
22903
      if (field == null) {
22904
        throw new IllegalArgumentException();
22905
      }
68 ashish 22906
 
22907
      switch (field) {
22908
      case SUCCESS:
22909
        return isSetSuccess();
22910
      case EX:
22911
        return isSetEx();
22912
      }
22913
      throw new IllegalStateException();
22914
    }
22915
 
22916
    @Override
22917
    public boolean equals(Object that) {
22918
      if (that == null)
22919
        return false;
3061 chandransh 22920
      if (that instanceof getOrderForCustomer_result)
22921
        return this.equals((getOrderForCustomer_result)that);
68 ashish 22922
      return false;
22923
    }
22924
 
3061 chandransh 22925
    public boolean equals(getOrderForCustomer_result that) {
68 ashish 22926
      if (that == null)
22927
        return false;
22928
 
483 rajveer 22929
      boolean this_present_success = true && this.isSetSuccess();
22930
      boolean that_present_success = true && that.isSetSuccess();
68 ashish 22931
      if (this_present_success || that_present_success) {
22932
        if (!(this_present_success && that_present_success))
22933
          return false;
483 rajveer 22934
        if (!this.success.equals(that.success))
68 ashish 22935
          return false;
22936
      }
22937
 
22938
      boolean this_present_ex = true && this.isSetEx();
22939
      boolean that_present_ex = true && that.isSetEx();
22940
      if (this_present_ex || that_present_ex) {
22941
        if (!(this_present_ex && that_present_ex))
22942
          return false;
22943
        if (!this.ex.equals(that.ex))
22944
          return false;
22945
      }
22946
 
22947
      return true;
22948
    }
22949
 
22950
    @Override
22951
    public int hashCode() {
22952
      return 0;
22953
    }
22954
 
3061 chandransh 22955
    public int compareTo(getOrderForCustomer_result other) {
68 ashish 22956
      if (!getClass().equals(other.getClass())) {
22957
        return getClass().getName().compareTo(other.getClass().getName());
22958
      }
22959
 
22960
      int lastComparison = 0;
3061 chandransh 22961
      getOrderForCustomer_result typedOther = (getOrderForCustomer_result)other;
68 ashish 22962
 
3430 rajveer 22963
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 22964
      if (lastComparison != 0) {
22965
        return lastComparison;
22966
      }
3430 rajveer 22967
      if (isSetSuccess()) {
22968
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22969
        if (lastComparison != 0) {
22970
          return lastComparison;
22971
        }
68 ashish 22972
      }
3430 rajveer 22973
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 22974
      if (lastComparison != 0) {
22975
        return lastComparison;
22976
      }
3430 rajveer 22977
      if (isSetEx()) {
22978
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
22979
        if (lastComparison != 0) {
22980
          return lastComparison;
22981
        }
68 ashish 22982
      }
22983
      return 0;
22984
    }
22985
 
3430 rajveer 22986
    public _Fields fieldForId(int fieldId) {
22987
      return _Fields.findByThriftId(fieldId);
22988
    }
22989
 
22990
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22991
      org.apache.thrift.protocol.TField field;
68 ashish 22992
      iprot.readStructBegin();
22993
      while (true)
22994
      {
22995
        field = iprot.readFieldBegin();
3430 rajveer 22996
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 22997
          break;
22998
        }
3430 rajveer 22999
        switch (field.id) {
23000
          case 0: // SUCCESS
23001
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23002
              this.success = new Order();
23003
              this.success.read(iprot);
23004
            } else { 
23005
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23006
            }
23007
            break;
23008
          case 1: // EX
23009
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23010
              this.ex = new TransactionServiceException();
23011
              this.ex.read(iprot);
23012
            } else { 
23013
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23014
            }
23015
            break;
23016
          default:
23017
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 23018
        }
3430 rajveer 23019
        iprot.readFieldEnd();
68 ashish 23020
      }
23021
      iprot.readStructEnd();
23022
      validate();
23023
    }
23024
 
3430 rajveer 23025
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 23026
      oprot.writeStructBegin(STRUCT_DESC);
23027
 
23028
      if (this.isSetSuccess()) {
23029
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 23030
        this.success.write(oprot);
68 ashish 23031
        oprot.writeFieldEnd();
23032
      } else if (this.isSetEx()) {
23033
        oprot.writeFieldBegin(EX_FIELD_DESC);
23034
        this.ex.write(oprot);
23035
        oprot.writeFieldEnd();
23036
      }
23037
      oprot.writeFieldStop();
23038
      oprot.writeStructEnd();
23039
    }
23040
 
23041
    @Override
23042
    public String toString() {
3061 chandransh 23043
      StringBuilder sb = new StringBuilder("getOrderForCustomer_result(");
68 ashish 23044
      boolean first = true;
23045
 
23046
      sb.append("success:");
483 rajveer 23047
      if (this.success == null) {
23048
        sb.append("null");
23049
      } else {
23050
        sb.append(this.success);
23051
      }
68 ashish 23052
      first = false;
23053
      if (!first) sb.append(", ");
23054
      sb.append("ex:");
23055
      if (this.ex == null) {
23056
        sb.append("null");
23057
      } else {
23058
        sb.append(this.ex);
23059
      }
23060
      first = false;
23061
      sb.append(")");
23062
      return sb.toString();
23063
    }
23064
 
3430 rajveer 23065
    public void validate() throws org.apache.thrift.TException {
68 ashish 23066
      // check for required fields
23067
    }
23068
 
3430 rajveer 23069
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23070
      try {
23071
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23072
      } catch (org.apache.thrift.TException te) {
23073
        throw new java.io.IOException(te);
23074
      }
23075
    }
23076
 
23077
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23078
      try {
23079
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23080
      } catch (org.apache.thrift.TException te) {
23081
        throw new java.io.IOException(te);
23082
      }
23083
    }
23084
 
68 ashish 23085
  }
23086
 
3430 rajveer 23087
  public static class getAlerts_args implements org.apache.thrift.TBase<getAlerts_args, getAlerts_args._Fields>, java.io.Serializable, Cloneable   {
23088
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlerts_args");
68 ashish 23089
 
3430 rajveer 23090
    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);
23091
    private static final org.apache.thrift.protocol.TField VALID_FIELD_DESC = new org.apache.thrift.protocol.TField("valid", org.apache.thrift.protocol.TType.BOOL, (short)2);
68 ashish 23092
 
3430 rajveer 23093
    private long orderId; // required
23094
    private boolean valid; // required
68 ashish 23095
 
23096
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23097
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 23098
      ORDER_ID((short)1, "orderId"),
23099
      VALID((short)2, "valid");
68 ashish 23100
 
23101
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23102
 
23103
      static {
23104
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23105
          byName.put(field.getFieldName(), field);
23106
        }
23107
      }
23108
 
23109
      /**
23110
       * Find the _Fields constant that matches fieldId, or null if its not found.
23111
       */
23112
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23113
        switch(fieldId) {
23114
          case 1: // ORDER_ID
23115
            return ORDER_ID;
23116
          case 2: // VALID
23117
            return VALID;
23118
          default:
23119
            return null;
23120
        }
68 ashish 23121
      }
23122
 
23123
      /**
23124
       * Find the _Fields constant that matches fieldId, throwing an exception
23125
       * if it is not found.
23126
       */
23127
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23128
        _Fields fields = findByThriftId(fieldId);
23129
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23130
        return fields;
23131
      }
23132
 
23133
      /**
23134
       * Find the _Fields constant that matches name, or null if its not found.
23135
       */
23136
      public static _Fields findByName(String name) {
23137
        return byName.get(name);
23138
      }
23139
 
23140
      private final short _thriftId;
23141
      private final String _fieldName;
23142
 
23143
      _Fields(short thriftId, String fieldName) {
23144
        _thriftId = thriftId;
23145
        _fieldName = fieldName;
23146
      }
23147
 
23148
      public short getThriftFieldId() {
23149
        return _thriftId;
23150
      }
23151
 
23152
      public String getFieldName() {
23153
        return _fieldName;
23154
      }
23155
    }
23156
 
23157
    // isset id assignments
3061 chandransh 23158
    private static final int __ORDERID_ISSET_ID = 0;
23159
    private static final int __VALID_ISSET_ID = 1;
23160
    private BitSet __isset_bit_vector = new BitSet(2);
68 ashish 23161
 
3430 rajveer 23162
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 23163
    static {
3430 rajveer 23164
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23165
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23166
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23167
      tmpMap.put(_Fields.VALID, new org.apache.thrift.meta_data.FieldMetaData("valid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23168
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
23169
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23170
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlerts_args.class, metaDataMap);
68 ashish 23171
    }
23172
 
3061 chandransh 23173
    public getAlerts_args() {
68 ashish 23174
    }
23175
 
3061 chandransh 23176
    public getAlerts_args(
23177
      long orderId,
23178
      boolean valid)
68 ashish 23179
    {
23180
      this();
3061 chandransh 23181
      this.orderId = orderId;
23182
      setOrderIdIsSet(true);
23183
      this.valid = valid;
23184
      setValidIsSet(true);
68 ashish 23185
    }
23186
 
23187
    /**
23188
     * Performs a deep copy on <i>other</i>.
23189
     */
3061 chandransh 23190
    public getAlerts_args(getAlerts_args other) {
23191
      __isset_bit_vector.clear();
23192
      __isset_bit_vector.or(other.__isset_bit_vector);
23193
      this.orderId = other.orderId;
23194
      this.valid = other.valid;
68 ashish 23195
    }
23196
 
3061 chandransh 23197
    public getAlerts_args deepCopy() {
23198
      return new getAlerts_args(this);
68 ashish 23199
    }
23200
 
3430 rajveer 23201
    @Override
23202
    public void clear() {
23203
      setOrderIdIsSet(false);
23204
      this.orderId = 0;
23205
      setValidIsSet(false);
23206
      this.valid = false;
68 ashish 23207
    }
23208
 
3061 chandransh 23209
    public long getOrderId() {
23210
      return this.orderId;
68 ashish 23211
    }
23212
 
3430 rajveer 23213
    public void setOrderId(long orderId) {
3061 chandransh 23214
      this.orderId = orderId;
23215
      setOrderIdIsSet(true);
68 ashish 23216
    }
23217
 
3061 chandransh 23218
    public void unsetOrderId() {
23219
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
68 ashish 23220
    }
23221
 
3430 rajveer 23222
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 23223
    public boolean isSetOrderId() {
23224
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
68 ashish 23225
    }
23226
 
3061 chandransh 23227
    public void setOrderIdIsSet(boolean value) {
23228
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
68 ashish 23229
    }
23230
 
3061 chandransh 23231
    public boolean isValid() {
23232
      return this.valid;
23233
    }
23234
 
3430 rajveer 23235
    public void setValid(boolean valid) {
3061 chandransh 23236
      this.valid = valid;
23237
      setValidIsSet(true);
23238
    }
23239
 
23240
    public void unsetValid() {
23241
      __isset_bit_vector.clear(__VALID_ISSET_ID);
23242
    }
23243
 
3430 rajveer 23244
    /** Returns true if field valid is set (has been assigned a value) and false otherwise */
3061 chandransh 23245
    public boolean isSetValid() {
23246
      return __isset_bit_vector.get(__VALID_ISSET_ID);
23247
    }
23248
 
23249
    public void setValidIsSet(boolean value) {
23250
      __isset_bit_vector.set(__VALID_ISSET_ID, value);
23251
    }
23252
 
68 ashish 23253
    public void setFieldValue(_Fields field, Object value) {
23254
      switch (field) {
3061 chandransh 23255
      case ORDER_ID:
68 ashish 23256
        if (value == null) {
3061 chandransh 23257
          unsetOrderId();
68 ashish 23258
        } else {
3061 chandransh 23259
          setOrderId((Long)value);
68 ashish 23260
        }
23261
        break;
23262
 
3061 chandransh 23263
      case VALID:
23264
        if (value == null) {
23265
          unsetValid();
23266
        } else {
23267
          setValid((Boolean)value);
23268
        }
23269
        break;
23270
 
68 ashish 23271
      }
23272
    }
23273
 
23274
    public Object getFieldValue(_Fields field) {
23275
      switch (field) {
3061 chandransh 23276
      case ORDER_ID:
3430 rajveer 23277
        return Long.valueOf(getOrderId());
68 ashish 23278
 
3061 chandransh 23279
      case VALID:
3430 rajveer 23280
        return Boolean.valueOf(isValid());
3061 chandransh 23281
 
68 ashish 23282
      }
23283
      throw new IllegalStateException();
23284
    }
23285
 
3430 rajveer 23286
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23287
    public boolean isSet(_Fields field) {
23288
      if (field == null) {
23289
        throw new IllegalArgumentException();
23290
      }
68 ashish 23291
 
23292
      switch (field) {
3061 chandransh 23293
      case ORDER_ID:
23294
        return isSetOrderId();
23295
      case VALID:
23296
        return isSetValid();
68 ashish 23297
      }
23298
      throw new IllegalStateException();
23299
    }
23300
 
23301
    @Override
23302
    public boolean equals(Object that) {
23303
      if (that == null)
23304
        return false;
3061 chandransh 23305
      if (that instanceof getAlerts_args)
23306
        return this.equals((getAlerts_args)that);
68 ashish 23307
      return false;
23308
    }
23309
 
3061 chandransh 23310
    public boolean equals(getAlerts_args that) {
68 ashish 23311
      if (that == null)
23312
        return false;
23313
 
3061 chandransh 23314
      boolean this_present_orderId = true;
23315
      boolean that_present_orderId = true;
23316
      if (this_present_orderId || that_present_orderId) {
23317
        if (!(this_present_orderId && that_present_orderId))
68 ashish 23318
          return false;
3061 chandransh 23319
        if (this.orderId != that.orderId)
68 ashish 23320
          return false;
23321
      }
23322
 
3061 chandransh 23323
      boolean this_present_valid = true;
23324
      boolean that_present_valid = true;
23325
      if (this_present_valid || that_present_valid) {
23326
        if (!(this_present_valid && that_present_valid))
23327
          return false;
23328
        if (this.valid != that.valid)
23329
          return false;
23330
      }
23331
 
68 ashish 23332
      return true;
23333
    }
23334
 
23335
    @Override
23336
    public int hashCode() {
23337
      return 0;
23338
    }
23339
 
3061 chandransh 23340
    public int compareTo(getAlerts_args other) {
68 ashish 23341
      if (!getClass().equals(other.getClass())) {
23342
        return getClass().getName().compareTo(other.getClass().getName());
23343
      }
23344
 
23345
      int lastComparison = 0;
3061 chandransh 23346
      getAlerts_args typedOther = (getAlerts_args)other;
68 ashish 23347
 
3430 rajveer 23348
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
68 ashish 23349
      if (lastComparison != 0) {
23350
        return lastComparison;
23351
      }
3430 rajveer 23352
      if (isSetOrderId()) {
23353
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
23354
        if (lastComparison != 0) {
23355
          return lastComparison;
23356
        }
68 ashish 23357
      }
3430 rajveer 23358
      lastComparison = Boolean.valueOf(isSetValid()).compareTo(typedOther.isSetValid());
3061 chandransh 23359
      if (lastComparison != 0) {
23360
        return lastComparison;
23361
      }
3430 rajveer 23362
      if (isSetValid()) {
23363
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.valid, typedOther.valid);
23364
        if (lastComparison != 0) {
23365
          return lastComparison;
23366
        }
3061 chandransh 23367
      }
68 ashish 23368
      return 0;
23369
    }
23370
 
3430 rajveer 23371
    public _Fields fieldForId(int fieldId) {
23372
      return _Fields.findByThriftId(fieldId);
23373
    }
23374
 
23375
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23376
      org.apache.thrift.protocol.TField field;
68 ashish 23377
      iprot.readStructBegin();
23378
      while (true)
23379
      {
23380
        field = iprot.readFieldBegin();
3430 rajveer 23381
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 23382
          break;
23383
        }
3430 rajveer 23384
        switch (field.id) {
23385
          case 1: // ORDER_ID
23386
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23387
              this.orderId = iprot.readI64();
23388
              setOrderIdIsSet(true);
23389
            } else { 
23390
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23391
            }
23392
            break;
23393
          case 2: // VALID
23394
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
23395
              this.valid = iprot.readBool();
23396
              setValidIsSet(true);
23397
            } else { 
23398
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23399
            }
23400
            break;
23401
          default:
23402
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 23403
        }
3430 rajveer 23404
        iprot.readFieldEnd();
68 ashish 23405
      }
23406
      iprot.readStructEnd();
23407
      validate();
23408
    }
23409
 
3430 rajveer 23410
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 23411
      validate();
23412
 
23413
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 23414
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
23415
      oprot.writeI64(this.orderId);
23416
      oprot.writeFieldEnd();
23417
      oprot.writeFieldBegin(VALID_FIELD_DESC);
23418
      oprot.writeBool(this.valid);
23419
      oprot.writeFieldEnd();
68 ashish 23420
      oprot.writeFieldStop();
23421
      oprot.writeStructEnd();
23422
    }
23423
 
23424
    @Override
23425
    public String toString() {
3061 chandransh 23426
      StringBuilder sb = new StringBuilder("getAlerts_args(");
68 ashish 23427
      boolean first = true;
23428
 
3061 chandransh 23429
      sb.append("orderId:");
23430
      sb.append(this.orderId);
68 ashish 23431
      first = false;
3061 chandransh 23432
      if (!first) sb.append(", ");
23433
      sb.append("valid:");
23434
      sb.append(this.valid);
23435
      first = false;
68 ashish 23436
      sb.append(")");
23437
      return sb.toString();
23438
    }
23439
 
3430 rajveer 23440
    public void validate() throws org.apache.thrift.TException {
68 ashish 23441
      // check for required fields
23442
    }
23443
 
3430 rajveer 23444
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23445
      try {
23446
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23447
      } catch (org.apache.thrift.TException te) {
23448
        throw new java.io.IOException(te);
23449
      }
23450
    }
23451
 
23452
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23453
      try {
23454
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23455
        __isset_bit_vector = new BitSet(1);
23456
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23457
      } catch (org.apache.thrift.TException te) {
23458
        throw new java.io.IOException(te);
23459
      }
23460
    }
23461
 
68 ashish 23462
  }
23463
 
3430 rajveer 23464
  public static class getAlerts_result implements org.apache.thrift.TBase<getAlerts_result, getAlerts_result._Fields>, java.io.Serializable, Cloneable   {
23465
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlerts_result");
68 ashish 23466
 
3430 rajveer 23467
    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);
68 ashish 23468
 
3430 rajveer 23469
    private List<Alert> success; // required
68 ashish 23470
 
23471
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23472
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 23473
      SUCCESS((short)0, "success");
68 ashish 23474
 
23475
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23476
 
23477
      static {
23478
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23479
          byName.put(field.getFieldName(), field);
23480
        }
23481
      }
23482
 
23483
      /**
23484
       * Find the _Fields constant that matches fieldId, or null if its not found.
23485
       */
23486
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23487
        switch(fieldId) {
23488
          case 0: // SUCCESS
23489
            return SUCCESS;
23490
          default:
23491
            return null;
23492
        }
68 ashish 23493
      }
23494
 
23495
      /**
23496
       * Find the _Fields constant that matches fieldId, throwing an exception
23497
       * if it is not found.
23498
       */
23499
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23500
        _Fields fields = findByThriftId(fieldId);
23501
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23502
        return fields;
23503
      }
23504
 
23505
      /**
23506
       * Find the _Fields constant that matches name, or null if its not found.
23507
       */
23508
      public static _Fields findByName(String name) {
23509
        return byName.get(name);
23510
      }
23511
 
23512
      private final short _thriftId;
23513
      private final String _fieldName;
23514
 
23515
      _Fields(short thriftId, String fieldName) {
23516
        _thriftId = thriftId;
23517
        _fieldName = fieldName;
23518
      }
23519
 
23520
      public short getThriftFieldId() {
23521
        return _thriftId;
23522
      }
23523
 
23524
      public String getFieldName() {
23525
        return _fieldName;
23526
      }
23527
    }
23528
 
23529
    // isset id assignments
23530
 
3430 rajveer 23531
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 23532
    static {
3430 rajveer 23533
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23534
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23535
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23536
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Alert.class))));
23537
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23538
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlerts_result.class, metaDataMap);
68 ashish 23539
    }
23540
 
3061 chandransh 23541
    public getAlerts_result() {
68 ashish 23542
    }
23543
 
3061 chandransh 23544
    public getAlerts_result(
23545
      List<Alert> success)
68 ashish 23546
    {
23547
      this();
23548
      this.success = success;
23549
    }
23550
 
23551
    /**
23552
     * Performs a deep copy on <i>other</i>.
23553
     */
3061 chandransh 23554
    public getAlerts_result(getAlerts_result other) {
23555
      if (other.isSetSuccess()) {
23556
        List<Alert> __this__success = new ArrayList<Alert>();
23557
        for (Alert other_element : other.success) {
23558
          __this__success.add(new Alert(other_element));
23559
        }
23560
        this.success = __this__success;
68 ashish 23561
      }
23562
    }
23563
 
3061 chandransh 23564
    public getAlerts_result deepCopy() {
23565
      return new getAlerts_result(this);
68 ashish 23566
    }
23567
 
3430 rajveer 23568
    @Override
23569
    public void clear() {
23570
      this.success = null;
68 ashish 23571
    }
23572
 
3061 chandransh 23573
    public int getSuccessSize() {
23574
      return (this.success == null) ? 0 : this.success.size();
23575
    }
23576
 
23577
    public java.util.Iterator<Alert> getSuccessIterator() {
23578
      return (this.success == null) ? null : this.success.iterator();
23579
    }
23580
 
23581
    public void addToSuccess(Alert elem) {
23582
      if (this.success == null) {
23583
        this.success = new ArrayList<Alert>();
23584
      }
23585
      this.success.add(elem);
23586
    }
23587
 
23588
    public List<Alert> getSuccess() {
68 ashish 23589
      return this.success;
23590
    }
23591
 
3430 rajveer 23592
    public void setSuccess(List<Alert> success) {
68 ashish 23593
      this.success = success;
23594
    }
23595
 
23596
    public void unsetSuccess() {
3061 chandransh 23597
      this.success = null;
68 ashish 23598
    }
23599
 
3430 rajveer 23600
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 23601
    public boolean isSetSuccess() {
3061 chandransh 23602
      return this.success != null;
68 ashish 23603
    }
23604
 
23605
    public void setSuccessIsSet(boolean value) {
23606
      if (!value) {
3061 chandransh 23607
        this.success = null;
68 ashish 23608
      }
23609
    }
23610
 
23611
    public void setFieldValue(_Fields field, Object value) {
23612
      switch (field) {
23613
      case SUCCESS:
23614
        if (value == null) {
23615
          unsetSuccess();
23616
        } else {
3061 chandransh 23617
          setSuccess((List<Alert>)value);
68 ashish 23618
        }
23619
        break;
23620
 
23621
      }
23622
    }
23623
 
23624
    public Object getFieldValue(_Fields field) {
23625
      switch (field) {
23626
      case SUCCESS:
3061 chandransh 23627
        return getSuccess();
68 ashish 23628
 
23629
      }
23630
      throw new IllegalStateException();
23631
    }
23632
 
3430 rajveer 23633
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23634
    public boolean isSet(_Fields field) {
23635
      if (field == null) {
23636
        throw new IllegalArgumentException();
23637
      }
68 ashish 23638
 
23639
      switch (field) {
23640
      case SUCCESS:
23641
        return isSetSuccess();
23642
      }
23643
      throw new IllegalStateException();
23644
    }
23645
 
23646
    @Override
23647
    public boolean equals(Object that) {
23648
      if (that == null)
23649
        return false;
3061 chandransh 23650
      if (that instanceof getAlerts_result)
23651
        return this.equals((getAlerts_result)that);
68 ashish 23652
      return false;
23653
    }
23654
 
3061 chandransh 23655
    public boolean equals(getAlerts_result that) {
68 ashish 23656
      if (that == null)
23657
        return false;
23658
 
3061 chandransh 23659
      boolean this_present_success = true && this.isSetSuccess();
23660
      boolean that_present_success = true && that.isSetSuccess();
68 ashish 23661
      if (this_present_success || that_present_success) {
23662
        if (!(this_present_success && that_present_success))
23663
          return false;
3061 chandransh 23664
        if (!this.success.equals(that.success))
68 ashish 23665
          return false;
23666
      }
23667
 
23668
      return true;
23669
    }
23670
 
23671
    @Override
23672
    public int hashCode() {
23673
      return 0;
23674
    }
23675
 
3061 chandransh 23676
    public int compareTo(getAlerts_result other) {
68 ashish 23677
      if (!getClass().equals(other.getClass())) {
23678
        return getClass().getName().compareTo(other.getClass().getName());
23679
      }
23680
 
23681
      int lastComparison = 0;
3061 chandransh 23682
      getAlerts_result typedOther = (getAlerts_result)other;
68 ashish 23683
 
3430 rajveer 23684
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 23685
      if (lastComparison != 0) {
23686
        return lastComparison;
23687
      }
3430 rajveer 23688
      if (isSetSuccess()) {
23689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23690
        if (lastComparison != 0) {
23691
          return lastComparison;
23692
        }
68 ashish 23693
      }
23694
      return 0;
23695
    }
23696
 
3430 rajveer 23697
    public _Fields fieldForId(int fieldId) {
23698
      return _Fields.findByThriftId(fieldId);
23699
    }
23700
 
23701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23702
      org.apache.thrift.protocol.TField field;
68 ashish 23703
      iprot.readStructBegin();
23704
      while (true)
23705
      {
23706
        field = iprot.readFieldBegin();
3430 rajveer 23707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 23708
          break;
23709
        }
3430 rajveer 23710
        switch (field.id) {
23711
          case 0: // SUCCESS
23712
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23713
              {
4133 chandransh 23714
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
23715
                this.success = new ArrayList<Alert>(_list64.size);
23716
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
3061 chandransh 23717
                {
4133 chandransh 23718
                  Alert _elem66; // required
23719
                  _elem66 = new Alert();
23720
                  _elem66.read(iprot);
23721
                  this.success.add(_elem66);
3061 chandransh 23722
                }
3430 rajveer 23723
                iprot.readListEnd();
68 ashish 23724
              }
3430 rajveer 23725
            } else { 
23726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23727
            }
23728
            break;
23729
          default:
23730
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 23731
        }
3430 rajveer 23732
        iprot.readFieldEnd();
68 ashish 23733
      }
23734
      iprot.readStructEnd();
23735
      validate();
23736
    }
23737
 
3430 rajveer 23738
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 23739
      oprot.writeStructBegin(STRUCT_DESC);
23740
 
23741
      if (this.isSetSuccess()) {
23742
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 23743
        {
3430 rajveer 23744
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 23745
          for (Alert _iter67 : this.success)
3061 chandransh 23746
          {
4133 chandransh 23747
            _iter67.write(oprot);
3061 chandransh 23748
          }
23749
          oprot.writeListEnd();
23750
        }
68 ashish 23751
        oprot.writeFieldEnd();
23752
      }
23753
      oprot.writeFieldStop();
23754
      oprot.writeStructEnd();
23755
    }
23756
 
23757
    @Override
23758
    public String toString() {
3061 chandransh 23759
      StringBuilder sb = new StringBuilder("getAlerts_result(");
68 ashish 23760
      boolean first = true;
23761
 
23762
      sb.append("success:");
3061 chandransh 23763
      if (this.success == null) {
68 ashish 23764
        sb.append("null");
23765
      } else {
3061 chandransh 23766
        sb.append(this.success);
68 ashish 23767
      }
23768
      first = false;
23769
      sb.append(")");
23770
      return sb.toString();
23771
    }
23772
 
3430 rajveer 23773
    public void validate() throws org.apache.thrift.TException {
68 ashish 23774
      // check for required fields
23775
    }
23776
 
3430 rajveer 23777
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23778
      try {
23779
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23780
      } catch (org.apache.thrift.TException te) {
23781
        throw new java.io.IOException(te);
23782
      }
23783
    }
23784
 
23785
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23786
      try {
23787
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23788
      } catch (org.apache.thrift.TException te) {
23789
        throw new java.io.IOException(te);
23790
      }
23791
    }
23792
 
68 ashish 23793
  }
23794
 
3430 rajveer 23795
  public static class setAlert_args implements org.apache.thrift.TBase<setAlert_args, setAlert_args._Fields>, java.io.Serializable, Cloneable   {
23796
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setAlert_args");
68 ashish 23797
 
3430 rajveer 23798
    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);
23799
    private static final org.apache.thrift.protocol.TField UNSET_FIELD_DESC = new org.apache.thrift.protocol.TField("unset", org.apache.thrift.protocol.TType.BOOL, (short)2);
23800
    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)3);
23801
    private static final org.apache.thrift.protocol.TField COMMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("comment", org.apache.thrift.protocol.TType.STRING, (short)4);
68 ashish 23802
 
3430 rajveer 23803
    private long orderId; // required
23804
    private boolean unset; // required
23805
    private long type; // required
23806
    private String comment; // required
68 ashish 23807
 
23808
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23809
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 23810
      ORDER_ID((short)1, "orderId"),
23811
      UNSET((short)2, "unset"),
23812
      TYPE((short)3, "type"),
23813
      COMMENT((short)4, "comment");
68 ashish 23814
 
23815
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23816
 
23817
      static {
23818
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23819
          byName.put(field.getFieldName(), field);
23820
        }
23821
      }
23822
 
23823
      /**
23824
       * Find the _Fields constant that matches fieldId, or null if its not found.
23825
       */
23826
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23827
        switch(fieldId) {
23828
          case 1: // ORDER_ID
23829
            return ORDER_ID;
23830
          case 2: // UNSET
23831
            return UNSET;
23832
          case 3: // TYPE
23833
            return TYPE;
23834
          case 4: // COMMENT
23835
            return COMMENT;
23836
          default:
23837
            return null;
23838
        }
68 ashish 23839
      }
23840
 
23841
      /**
23842
       * Find the _Fields constant that matches fieldId, throwing an exception
23843
       * if it is not found.
23844
       */
23845
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23846
        _Fields fields = findByThriftId(fieldId);
23847
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23848
        return fields;
23849
      }
23850
 
23851
      /**
23852
       * Find the _Fields constant that matches name, or null if its not found.
23853
       */
23854
      public static _Fields findByName(String name) {
23855
        return byName.get(name);
23856
      }
23857
 
23858
      private final short _thriftId;
23859
      private final String _fieldName;
23860
 
23861
      _Fields(short thriftId, String fieldName) {
23862
        _thriftId = thriftId;
23863
        _fieldName = fieldName;
23864
      }
23865
 
23866
      public short getThriftFieldId() {
23867
        return _thriftId;
23868
      }
23869
 
23870
      public String getFieldName() {
23871
        return _fieldName;
23872
      }
23873
    }
23874
 
23875
    // isset id assignments
3061 chandransh 23876
    private static final int __ORDERID_ISSET_ID = 0;
23877
    private static final int __UNSET_ISSET_ID = 1;
23878
    private static final int __TYPE_ISSET_ID = 2;
23879
    private BitSet __isset_bit_vector = new BitSet(3);
68 ashish 23880
 
3430 rajveer 23881
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 23882
    static {
3430 rajveer 23883
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23884
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23885
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23886
      tmpMap.put(_Fields.UNSET, new org.apache.thrift.meta_data.FieldMetaData("unset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23887
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
23888
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23889
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23890
      tmpMap.put(_Fields.COMMENT, new org.apache.thrift.meta_data.FieldMetaData("comment", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23891
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23892
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23893
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setAlert_args.class, metaDataMap);
68 ashish 23894
    }
23895
 
3061 chandransh 23896
    public setAlert_args() {
68 ashish 23897
    }
23898
 
3061 chandransh 23899
    public setAlert_args(
23900
      long orderId,
23901
      boolean unset,
23902
      long type,
23903
      String comment)
68 ashish 23904
    {
23905
      this();
3061 chandransh 23906
      this.orderId = orderId;
23907
      setOrderIdIsSet(true);
23908
      this.unset = unset;
23909
      setUnsetIsSet(true);
23910
      this.type = type;
23911
      setTypeIsSet(true);
23912
      this.comment = comment;
68 ashish 23913
    }
23914
 
23915
    /**
23916
     * Performs a deep copy on <i>other</i>.
23917
     */
3061 chandransh 23918
    public setAlert_args(setAlert_args other) {
68 ashish 23919
      __isset_bit_vector.clear();
23920
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 23921
      this.orderId = other.orderId;
23922
      this.unset = other.unset;
23923
      this.type = other.type;
23924
      if (other.isSetComment()) {
23925
        this.comment = other.comment;
23926
      }
68 ashish 23927
    }
23928
 
3061 chandransh 23929
    public setAlert_args deepCopy() {
23930
      return new setAlert_args(this);
68 ashish 23931
    }
23932
 
3430 rajveer 23933
    @Override
23934
    public void clear() {
23935
      setOrderIdIsSet(false);
23936
      this.orderId = 0;
23937
      setUnsetIsSet(false);
23938
      this.unset = false;
23939
      setTypeIsSet(false);
23940
      this.type = 0;
23941
      this.comment = null;
68 ashish 23942
    }
23943
 
3061 chandransh 23944
    public long getOrderId() {
23945
      return this.orderId;
68 ashish 23946
    }
23947
 
3430 rajveer 23948
    public void setOrderId(long orderId) {
3061 chandransh 23949
      this.orderId = orderId;
23950
      setOrderIdIsSet(true);
68 ashish 23951
    }
23952
 
3061 chandransh 23953
    public void unsetOrderId() {
23954
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
68 ashish 23955
    }
23956
 
3430 rajveer 23957
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 23958
    public boolean isSetOrderId() {
23959
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
68 ashish 23960
    }
23961
 
3061 chandransh 23962
    public void setOrderIdIsSet(boolean value) {
23963
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
68 ashish 23964
    }
23965
 
3061 chandransh 23966
    public boolean isUnset() {
23967
      return this.unset;
23968
    }
23969
 
3430 rajveer 23970
    public void setUnset(boolean unset) {
3061 chandransh 23971
      this.unset = unset;
23972
      setUnsetIsSet(true);
23973
    }
23974
 
23975
    public void unsetUnset() {
23976
      __isset_bit_vector.clear(__UNSET_ISSET_ID);
23977
    }
23978
 
3430 rajveer 23979
    /** Returns true if field unset is set (has been assigned a value) and false otherwise */
3061 chandransh 23980
    public boolean isSetUnset() {
23981
      return __isset_bit_vector.get(__UNSET_ISSET_ID);
23982
    }
23983
 
23984
    public void setUnsetIsSet(boolean value) {
23985
      __isset_bit_vector.set(__UNSET_ISSET_ID, value);
23986
    }
23987
 
23988
    public long getType() {
23989
      return this.type;
23990
    }
23991
 
3430 rajveer 23992
    public void setType(long type) {
3061 chandransh 23993
      this.type = type;
23994
      setTypeIsSet(true);
23995
    }
23996
 
23997
    public void unsetType() {
23998
      __isset_bit_vector.clear(__TYPE_ISSET_ID);
23999
    }
24000
 
3430 rajveer 24001
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3061 chandransh 24002
    public boolean isSetType() {
24003
      return __isset_bit_vector.get(__TYPE_ISSET_ID);
24004
    }
24005
 
24006
    public void setTypeIsSet(boolean value) {
24007
      __isset_bit_vector.set(__TYPE_ISSET_ID, value);
24008
    }
24009
 
24010
    public String getComment() {
24011
      return this.comment;
24012
    }
24013
 
3430 rajveer 24014
    public void setComment(String comment) {
3061 chandransh 24015
      this.comment = comment;
24016
    }
24017
 
24018
    public void unsetComment() {
24019
      this.comment = null;
24020
    }
24021
 
3430 rajveer 24022
    /** Returns true if field comment is set (has been assigned a value) and false otherwise */
3061 chandransh 24023
    public boolean isSetComment() {
24024
      return this.comment != null;
24025
    }
24026
 
24027
    public void setCommentIsSet(boolean value) {
24028
      if (!value) {
24029
        this.comment = null;
24030
      }
24031
    }
24032
 
68 ashish 24033
    public void setFieldValue(_Fields field, Object value) {
24034
      switch (field) {
3061 chandransh 24035
      case ORDER_ID:
68 ashish 24036
        if (value == null) {
3061 chandransh 24037
          unsetOrderId();
68 ashish 24038
        } else {
3061 chandransh 24039
          setOrderId((Long)value);
68 ashish 24040
        }
24041
        break;
24042
 
3061 chandransh 24043
      case UNSET:
24044
        if (value == null) {
24045
          unsetUnset();
24046
        } else {
24047
          setUnset((Boolean)value);
24048
        }
24049
        break;
24050
 
24051
      case TYPE:
24052
        if (value == null) {
24053
          unsetType();
24054
        } else {
24055
          setType((Long)value);
24056
        }
24057
        break;
24058
 
24059
      case COMMENT:
24060
        if (value == null) {
24061
          unsetComment();
24062
        } else {
24063
          setComment((String)value);
24064
        }
24065
        break;
24066
 
68 ashish 24067
      }
24068
    }
24069
 
24070
    public Object getFieldValue(_Fields field) {
24071
      switch (field) {
3061 chandransh 24072
      case ORDER_ID:
3430 rajveer 24073
        return Long.valueOf(getOrderId());
68 ashish 24074
 
3061 chandransh 24075
      case UNSET:
3430 rajveer 24076
        return Boolean.valueOf(isUnset());
3061 chandransh 24077
 
24078
      case TYPE:
3430 rajveer 24079
        return Long.valueOf(getType());
3061 chandransh 24080
 
24081
      case COMMENT:
24082
        return getComment();
24083
 
68 ashish 24084
      }
24085
      throw new IllegalStateException();
24086
    }
24087
 
3430 rajveer 24088
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24089
    public boolean isSet(_Fields field) {
24090
      if (field == null) {
24091
        throw new IllegalArgumentException();
24092
      }
68 ashish 24093
 
24094
      switch (field) {
3061 chandransh 24095
      case ORDER_ID:
24096
        return isSetOrderId();
24097
      case UNSET:
24098
        return isSetUnset();
24099
      case TYPE:
24100
        return isSetType();
24101
      case COMMENT:
24102
        return isSetComment();
68 ashish 24103
      }
24104
      throw new IllegalStateException();
24105
    }
24106
 
24107
    @Override
24108
    public boolean equals(Object that) {
24109
      if (that == null)
24110
        return false;
3061 chandransh 24111
      if (that instanceof setAlert_args)
24112
        return this.equals((setAlert_args)that);
68 ashish 24113
      return false;
24114
    }
24115
 
3061 chandransh 24116
    public boolean equals(setAlert_args that) {
68 ashish 24117
      if (that == null)
24118
        return false;
24119
 
3061 chandransh 24120
      boolean this_present_orderId = true;
24121
      boolean that_present_orderId = true;
24122
      if (this_present_orderId || that_present_orderId) {
24123
        if (!(this_present_orderId && that_present_orderId))
68 ashish 24124
          return false;
3061 chandransh 24125
        if (this.orderId != that.orderId)
68 ashish 24126
          return false;
24127
      }
24128
 
3061 chandransh 24129
      boolean this_present_unset = true;
24130
      boolean that_present_unset = true;
24131
      if (this_present_unset || that_present_unset) {
24132
        if (!(this_present_unset && that_present_unset))
24133
          return false;
24134
        if (this.unset != that.unset)
24135
          return false;
24136
      }
24137
 
24138
      boolean this_present_type = true;
24139
      boolean that_present_type = true;
24140
      if (this_present_type || that_present_type) {
24141
        if (!(this_present_type && that_present_type))
24142
          return false;
24143
        if (this.type != that.type)
24144
          return false;
24145
      }
24146
 
24147
      boolean this_present_comment = true && this.isSetComment();
24148
      boolean that_present_comment = true && that.isSetComment();
24149
      if (this_present_comment || that_present_comment) {
24150
        if (!(this_present_comment && that_present_comment))
24151
          return false;
24152
        if (!this.comment.equals(that.comment))
24153
          return false;
24154
      }
24155
 
68 ashish 24156
      return true;
24157
    }
24158
 
24159
    @Override
24160
    public int hashCode() {
24161
      return 0;
24162
    }
24163
 
3061 chandransh 24164
    public int compareTo(setAlert_args other) {
68 ashish 24165
      if (!getClass().equals(other.getClass())) {
24166
        return getClass().getName().compareTo(other.getClass().getName());
24167
      }
24168
 
24169
      int lastComparison = 0;
3061 chandransh 24170
      setAlert_args typedOther = (setAlert_args)other;
68 ashish 24171
 
3430 rajveer 24172
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
68 ashish 24173
      if (lastComparison != 0) {
24174
        return lastComparison;
24175
      }
3430 rajveer 24176
      if (isSetOrderId()) {
24177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
24178
        if (lastComparison != 0) {
24179
          return lastComparison;
24180
        }
68 ashish 24181
      }
3430 rajveer 24182
      lastComparison = Boolean.valueOf(isSetUnset()).compareTo(typedOther.isSetUnset());
3061 chandransh 24183
      if (lastComparison != 0) {
24184
        return lastComparison;
24185
      }
3430 rajveer 24186
      if (isSetUnset()) {
24187
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unset, typedOther.unset);
24188
        if (lastComparison != 0) {
24189
          return lastComparison;
24190
        }
3061 chandransh 24191
      }
3430 rajveer 24192
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3061 chandransh 24193
      if (lastComparison != 0) {
24194
        return lastComparison;
24195
      }
3430 rajveer 24196
      if (isSetType()) {
24197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
24198
        if (lastComparison != 0) {
24199
          return lastComparison;
24200
        }
3061 chandransh 24201
      }
3430 rajveer 24202
      lastComparison = Boolean.valueOf(isSetComment()).compareTo(typedOther.isSetComment());
3061 chandransh 24203
      if (lastComparison != 0) {
24204
        return lastComparison;
24205
      }
3430 rajveer 24206
      if (isSetComment()) {
24207
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment);
24208
        if (lastComparison != 0) {
24209
          return lastComparison;
24210
        }
3061 chandransh 24211
      }
68 ashish 24212
      return 0;
24213
    }
24214
 
3430 rajveer 24215
    public _Fields fieldForId(int fieldId) {
24216
      return _Fields.findByThriftId(fieldId);
24217
    }
24218
 
24219
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24220
      org.apache.thrift.protocol.TField field;
68 ashish 24221
      iprot.readStructBegin();
24222
      while (true)
24223
      {
24224
        field = iprot.readFieldBegin();
3430 rajveer 24225
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 24226
          break;
24227
        }
3430 rajveer 24228
        switch (field.id) {
24229
          case 1: // ORDER_ID
24230
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24231
              this.orderId = iprot.readI64();
24232
              setOrderIdIsSet(true);
24233
            } else { 
24234
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24235
            }
24236
            break;
24237
          case 2: // UNSET
24238
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
24239
              this.unset = iprot.readBool();
24240
              setUnsetIsSet(true);
24241
            } else { 
24242
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24243
            }
24244
            break;
24245
          case 3: // TYPE
24246
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24247
              this.type = iprot.readI64();
24248
              setTypeIsSet(true);
24249
            } else { 
24250
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24251
            }
24252
            break;
24253
          case 4: // COMMENT
24254
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24255
              this.comment = iprot.readString();
24256
            } else { 
24257
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24258
            }
24259
            break;
24260
          default:
24261
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 24262
        }
3430 rajveer 24263
        iprot.readFieldEnd();
68 ashish 24264
      }
24265
      iprot.readStructEnd();
24266
      validate();
24267
    }
24268
 
3430 rajveer 24269
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 24270
      validate();
24271
 
24272
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 24273
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
24274
      oprot.writeI64(this.orderId);
68 ashish 24275
      oprot.writeFieldEnd();
3061 chandransh 24276
      oprot.writeFieldBegin(UNSET_FIELD_DESC);
24277
      oprot.writeBool(this.unset);
24278
      oprot.writeFieldEnd();
24279
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
24280
      oprot.writeI64(this.type);
24281
      oprot.writeFieldEnd();
24282
      if (this.comment != null) {
24283
        oprot.writeFieldBegin(COMMENT_FIELD_DESC);
24284
        oprot.writeString(this.comment);
24285
        oprot.writeFieldEnd();
24286
      }
68 ashish 24287
      oprot.writeFieldStop();
24288
      oprot.writeStructEnd();
24289
    }
24290
 
24291
    @Override
24292
    public String toString() {
3061 chandransh 24293
      StringBuilder sb = new StringBuilder("setAlert_args(");
68 ashish 24294
      boolean first = true;
24295
 
3061 chandransh 24296
      sb.append("orderId:");
24297
      sb.append(this.orderId);
68 ashish 24298
      first = false;
3061 chandransh 24299
      if (!first) sb.append(", ");
24300
      sb.append("unset:");
24301
      sb.append(this.unset);
24302
      first = false;
24303
      if (!first) sb.append(", ");
24304
      sb.append("type:");
24305
      sb.append(this.type);
24306
      first = false;
24307
      if (!first) sb.append(", ");
24308
      sb.append("comment:");
24309
      if (this.comment == null) {
24310
        sb.append("null");
24311
      } else {
24312
        sb.append(this.comment);
24313
      }
24314
      first = false;
68 ashish 24315
      sb.append(")");
24316
      return sb.toString();
24317
    }
24318
 
3430 rajveer 24319
    public void validate() throws org.apache.thrift.TException {
68 ashish 24320
      // check for required fields
24321
    }
24322
 
3430 rajveer 24323
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24324
      try {
24325
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24326
      } catch (org.apache.thrift.TException te) {
24327
        throw new java.io.IOException(te);
24328
      }
24329
    }
24330
 
24331
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24332
      try {
24333
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24334
        __isset_bit_vector = new BitSet(1);
24335
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24336
      } catch (org.apache.thrift.TException te) {
24337
        throw new java.io.IOException(te);
24338
      }
24339
    }
24340
 
68 ashish 24341
  }
24342
 
3430 rajveer 24343
  public static class setAlert_result implements org.apache.thrift.TBase<setAlert_result, setAlert_result._Fields>, java.io.Serializable, Cloneable   {
24344
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setAlert_result");
68 ashish 24345
 
24346
 
24347
 
24348
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24349
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 24350
;
68 ashish 24351
 
24352
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24353
 
24354
      static {
24355
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24356
          byName.put(field.getFieldName(), field);
24357
        }
24358
      }
24359
 
24360
      /**
24361
       * Find the _Fields constant that matches fieldId, or null if its not found.
24362
       */
24363
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24364
        switch(fieldId) {
24365
          default:
24366
            return null;
24367
        }
68 ashish 24368
      }
24369
 
24370
      /**
24371
       * Find the _Fields constant that matches fieldId, throwing an exception
24372
       * if it is not found.
24373
       */
24374
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24375
        _Fields fields = findByThriftId(fieldId);
24376
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24377
        return fields;
24378
      }
24379
 
24380
      /**
24381
       * Find the _Fields constant that matches name, or null if its not found.
24382
       */
24383
      public static _Fields findByName(String name) {
24384
        return byName.get(name);
24385
      }
24386
 
24387
      private final short _thriftId;
24388
      private final String _fieldName;
24389
 
24390
      _Fields(short thriftId, String fieldName) {
24391
        _thriftId = thriftId;
24392
        _fieldName = fieldName;
24393
      }
24394
 
24395
      public short getThriftFieldId() {
24396
        return _thriftId;
24397
      }
24398
 
24399
      public String getFieldName() {
24400
        return _fieldName;
24401
      }
24402
    }
3430 rajveer 24403
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 24404
    static {
3430 rajveer 24405
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24406
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24407
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setAlert_result.class, metaDataMap);
3061 chandransh 24408
    }
24409
 
24410
    public setAlert_result() {
24411
    }
24412
 
24413
    /**
24414
     * Performs a deep copy on <i>other</i>.
24415
     */
24416
    public setAlert_result(setAlert_result other) {
24417
    }
24418
 
24419
    public setAlert_result deepCopy() {
24420
      return new setAlert_result(this);
24421
    }
24422
 
3430 rajveer 24423
    @Override
24424
    public void clear() {
3061 chandransh 24425
    }
24426
 
24427
    public void setFieldValue(_Fields field, Object value) {
24428
      switch (field) {
24429
      }
24430
    }
24431
 
24432
    public Object getFieldValue(_Fields field) {
24433
      switch (field) {
24434
      }
24435
      throw new IllegalStateException();
24436
    }
24437
 
3430 rajveer 24438
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24439
    public boolean isSet(_Fields field) {
24440
      if (field == null) {
24441
        throw new IllegalArgumentException();
24442
      }
3061 chandransh 24443
 
24444
      switch (field) {
24445
      }
24446
      throw new IllegalStateException();
24447
    }
24448
 
24449
    @Override
24450
    public boolean equals(Object that) {
24451
      if (that == null)
24452
        return false;
24453
      if (that instanceof setAlert_result)
24454
        return this.equals((setAlert_result)that);
24455
      return false;
24456
    }
24457
 
24458
    public boolean equals(setAlert_result that) {
24459
      if (that == null)
24460
        return false;
24461
 
24462
      return true;
24463
    }
24464
 
24465
    @Override
24466
    public int hashCode() {
24467
      return 0;
24468
    }
24469
 
24470
    public int compareTo(setAlert_result other) {
24471
      if (!getClass().equals(other.getClass())) {
24472
        return getClass().getName().compareTo(other.getClass().getName());
24473
      }
24474
 
24475
      int lastComparison = 0;
24476
      setAlert_result typedOther = (setAlert_result)other;
24477
 
24478
      return 0;
24479
    }
24480
 
3430 rajveer 24481
    public _Fields fieldForId(int fieldId) {
24482
      return _Fields.findByThriftId(fieldId);
24483
    }
24484
 
24485
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24486
      org.apache.thrift.protocol.TField field;
3061 chandransh 24487
      iprot.readStructBegin();
24488
      while (true)
24489
      {
24490
        field = iprot.readFieldBegin();
3430 rajveer 24491
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 24492
          break;
24493
        }
3430 rajveer 24494
        switch (field.id) {
24495
          default:
24496
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 24497
        }
3430 rajveer 24498
        iprot.readFieldEnd();
3061 chandransh 24499
      }
24500
      iprot.readStructEnd();
24501
      validate();
24502
    }
24503
 
3430 rajveer 24504
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 24505
      oprot.writeStructBegin(STRUCT_DESC);
24506
 
24507
      oprot.writeFieldStop();
24508
      oprot.writeStructEnd();
24509
    }
24510
 
24511
    @Override
24512
    public String toString() {
24513
      StringBuilder sb = new StringBuilder("setAlert_result(");
24514
      boolean first = true;
24515
 
24516
      sb.append(")");
24517
      return sb.toString();
24518
    }
24519
 
3430 rajveer 24520
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 24521
      // check for required fields
24522
    }
24523
 
3430 rajveer 24524
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24525
      try {
24526
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24527
      } catch (org.apache.thrift.TException te) {
24528
        throw new java.io.IOException(te);
24529
      }
24530
    }
24531
 
24532
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24533
      try {
24534
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24535
      } catch (org.apache.thrift.TException te) {
24536
        throw new java.io.IOException(te);
24537
      }
24538
    }
24539
 
3061 chandransh 24540
  }
24541
 
3430 rajveer 24542
  public static class getValidOrderCount_args implements org.apache.thrift.TBase<getValidOrderCount_args, getValidOrderCount_args._Fields>, java.io.Serializable, Cloneable   {
24543
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrderCount_args");
3061 chandransh 24544
 
24545
 
24546
 
24547
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24548
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 24549
;
24550
 
24551
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24552
 
24553
      static {
24554
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24555
          byName.put(field.getFieldName(), field);
24556
        }
24557
      }
24558
 
24559
      /**
24560
       * Find the _Fields constant that matches fieldId, or null if its not found.
24561
       */
24562
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24563
        switch(fieldId) {
24564
          default:
24565
            return null;
24566
        }
3061 chandransh 24567
      }
24568
 
24569
      /**
24570
       * Find the _Fields constant that matches fieldId, throwing an exception
24571
       * if it is not found.
24572
       */
24573
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24574
        _Fields fields = findByThriftId(fieldId);
24575
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24576
        return fields;
24577
      }
24578
 
24579
      /**
24580
       * Find the _Fields constant that matches name, or null if its not found.
24581
       */
24582
      public static _Fields findByName(String name) {
24583
        return byName.get(name);
24584
      }
24585
 
24586
      private final short _thriftId;
24587
      private final String _fieldName;
24588
 
24589
      _Fields(short thriftId, String fieldName) {
24590
        _thriftId = thriftId;
24591
        _fieldName = fieldName;
24592
      }
24593
 
24594
      public short getThriftFieldId() {
24595
        return _thriftId;
24596
      }
24597
 
24598
      public String getFieldName() {
24599
        return _fieldName;
24600
      }
24601
    }
3430 rajveer 24602
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 24603
    static {
3430 rajveer 24604
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24605
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24606
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrderCount_args.class, metaDataMap);
3061 chandransh 24607
    }
24608
 
24609
    public getValidOrderCount_args() {
24610
    }
24611
 
24612
    /**
24613
     * Performs a deep copy on <i>other</i>.
24614
     */
24615
    public getValidOrderCount_args(getValidOrderCount_args other) {
24616
    }
24617
 
24618
    public getValidOrderCount_args deepCopy() {
24619
      return new getValidOrderCount_args(this);
24620
    }
24621
 
3430 rajveer 24622
    @Override
24623
    public void clear() {
3061 chandransh 24624
    }
24625
 
24626
    public void setFieldValue(_Fields field, Object value) {
24627
      switch (field) {
24628
      }
24629
    }
24630
 
24631
    public Object getFieldValue(_Fields field) {
24632
      switch (field) {
24633
      }
24634
      throw new IllegalStateException();
24635
    }
24636
 
3430 rajveer 24637
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24638
    public boolean isSet(_Fields field) {
24639
      if (field == null) {
24640
        throw new IllegalArgumentException();
24641
      }
3061 chandransh 24642
 
24643
      switch (field) {
24644
      }
24645
      throw new IllegalStateException();
24646
    }
24647
 
24648
    @Override
24649
    public boolean equals(Object that) {
24650
      if (that == null)
24651
        return false;
24652
      if (that instanceof getValidOrderCount_args)
24653
        return this.equals((getValidOrderCount_args)that);
24654
      return false;
24655
    }
24656
 
24657
    public boolean equals(getValidOrderCount_args that) {
24658
      if (that == null)
24659
        return false;
24660
 
24661
      return true;
24662
    }
24663
 
24664
    @Override
24665
    public int hashCode() {
24666
      return 0;
24667
    }
24668
 
24669
    public int compareTo(getValidOrderCount_args other) {
24670
      if (!getClass().equals(other.getClass())) {
24671
        return getClass().getName().compareTo(other.getClass().getName());
24672
      }
24673
 
24674
      int lastComparison = 0;
24675
      getValidOrderCount_args typedOther = (getValidOrderCount_args)other;
24676
 
24677
      return 0;
24678
    }
24679
 
3430 rajveer 24680
    public _Fields fieldForId(int fieldId) {
24681
      return _Fields.findByThriftId(fieldId);
24682
    }
24683
 
24684
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24685
      org.apache.thrift.protocol.TField field;
3061 chandransh 24686
      iprot.readStructBegin();
24687
      while (true)
24688
      {
24689
        field = iprot.readFieldBegin();
3430 rajveer 24690
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 24691
          break;
24692
        }
3430 rajveer 24693
        switch (field.id) {
24694
          default:
24695
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 24696
        }
3430 rajveer 24697
        iprot.readFieldEnd();
3061 chandransh 24698
      }
24699
      iprot.readStructEnd();
24700
      validate();
24701
    }
24702
 
3430 rajveer 24703
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 24704
      validate();
24705
 
24706
      oprot.writeStructBegin(STRUCT_DESC);
24707
      oprot.writeFieldStop();
24708
      oprot.writeStructEnd();
24709
    }
24710
 
24711
    @Override
24712
    public String toString() {
24713
      StringBuilder sb = new StringBuilder("getValidOrderCount_args(");
24714
      boolean first = true;
24715
 
24716
      sb.append(")");
24717
      return sb.toString();
24718
    }
24719
 
3430 rajveer 24720
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 24721
      // check for required fields
24722
    }
24723
 
3430 rajveer 24724
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24725
      try {
24726
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24727
      } catch (org.apache.thrift.TException te) {
24728
        throw new java.io.IOException(te);
24729
      }
24730
    }
24731
 
24732
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24733
      try {
24734
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24735
      } catch (org.apache.thrift.TException te) {
24736
        throw new java.io.IOException(te);
24737
      }
24738
    }
24739
 
3061 chandransh 24740
  }
24741
 
3430 rajveer 24742
  public static class getValidOrderCount_result implements org.apache.thrift.TBase<getValidOrderCount_result, getValidOrderCount_result._Fields>, java.io.Serializable, Cloneable   {
24743
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrderCount_result");
3061 chandransh 24744
 
3430 rajveer 24745
    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);
3061 chandransh 24746
 
3430 rajveer 24747
    private long success; // required
3061 chandransh 24748
 
24749
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24750
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 24751
      SUCCESS((short)0, "success");
24752
 
24753
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24754
 
24755
      static {
24756
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24757
          byName.put(field.getFieldName(), field);
24758
        }
24759
      }
24760
 
24761
      /**
24762
       * Find the _Fields constant that matches fieldId, or null if its not found.
24763
       */
24764
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24765
        switch(fieldId) {
24766
          case 0: // SUCCESS
24767
            return SUCCESS;
24768
          default:
24769
            return null;
24770
        }
3061 chandransh 24771
      }
24772
 
24773
      /**
24774
       * Find the _Fields constant that matches fieldId, throwing an exception
24775
       * if it is not found.
24776
       */
24777
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24778
        _Fields fields = findByThriftId(fieldId);
24779
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24780
        return fields;
24781
      }
24782
 
24783
      /**
24784
       * Find the _Fields constant that matches name, or null if its not found.
24785
       */
24786
      public static _Fields findByName(String name) {
24787
        return byName.get(name);
24788
      }
24789
 
24790
      private final short _thriftId;
24791
      private final String _fieldName;
24792
 
24793
      _Fields(short thriftId, String fieldName) {
24794
        _thriftId = thriftId;
24795
        _fieldName = fieldName;
24796
      }
24797
 
24798
      public short getThriftFieldId() {
24799
        return _thriftId;
24800
      }
24801
 
24802
      public String getFieldName() {
24803
        return _fieldName;
24804
      }
24805
    }
24806
 
68 ashish 24807
    // isset id assignments
3061 chandransh 24808
    private static final int __SUCCESS_ISSET_ID = 0;
24809
    private BitSet __isset_bit_vector = new BitSet(1);
68 ashish 24810
 
3430 rajveer 24811
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 24812
    static {
3430 rajveer 24813
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24814
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24815
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24816
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24817
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrderCount_result.class, metaDataMap);
68 ashish 24818
    }
24819
 
3061 chandransh 24820
    public getValidOrderCount_result() {
68 ashish 24821
    }
24822
 
3061 chandransh 24823
    public getValidOrderCount_result(
24824
      long success)
68 ashish 24825
    {
24826
      this();
24827
      this.success = success;
3061 chandransh 24828
      setSuccessIsSet(true);
68 ashish 24829
    }
24830
 
24831
    /**
24832
     * Performs a deep copy on <i>other</i>.
24833
     */
3061 chandransh 24834
    public getValidOrderCount_result(getValidOrderCount_result other) {
24835
      __isset_bit_vector.clear();
24836
      __isset_bit_vector.or(other.__isset_bit_vector);
24837
      this.success = other.success;
68 ashish 24838
    }
24839
 
3061 chandransh 24840
    public getValidOrderCount_result deepCopy() {
24841
      return new getValidOrderCount_result(this);
68 ashish 24842
    }
24843
 
3430 rajveer 24844
    @Override
24845
    public void clear() {
24846
      setSuccessIsSet(false);
24847
      this.success = 0;
68 ashish 24848
    }
24849
 
3061 chandransh 24850
    public long getSuccess() {
68 ashish 24851
      return this.success;
24852
    }
24853
 
3430 rajveer 24854
    public void setSuccess(long success) {
68 ashish 24855
      this.success = success;
3061 chandransh 24856
      setSuccessIsSet(true);
68 ashish 24857
    }
24858
 
24859
    public void unsetSuccess() {
3061 chandransh 24860
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
68 ashish 24861
    }
24862
 
3430 rajveer 24863
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 24864
    public boolean isSetSuccess() {
3061 chandransh 24865
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
68 ashish 24866
    }
24867
 
24868
    public void setSuccessIsSet(boolean value) {
3061 chandransh 24869
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
68 ashish 24870
    }
24871
 
24872
    public void setFieldValue(_Fields field, Object value) {
24873
      switch (field) {
24874
      case SUCCESS:
24875
        if (value == null) {
24876
          unsetSuccess();
24877
        } else {
3061 chandransh 24878
          setSuccess((Long)value);
68 ashish 24879
        }
24880
        break;
24881
 
24882
      }
24883
    }
24884
 
24885
    public Object getFieldValue(_Fields field) {
24886
      switch (field) {
24887
      case SUCCESS:
3430 rajveer 24888
        return Long.valueOf(getSuccess());
68 ashish 24889
 
24890
      }
24891
      throw new IllegalStateException();
24892
    }
24893
 
3430 rajveer 24894
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24895
    public boolean isSet(_Fields field) {
24896
      if (field == null) {
24897
        throw new IllegalArgumentException();
24898
      }
68 ashish 24899
 
24900
      switch (field) {
24901
      case SUCCESS:
24902
        return isSetSuccess();
24903
      }
24904
      throw new IllegalStateException();
24905
    }
24906
 
24907
    @Override
24908
    public boolean equals(Object that) {
24909
      if (that == null)
24910
        return false;
3061 chandransh 24911
      if (that instanceof getValidOrderCount_result)
24912
        return this.equals((getValidOrderCount_result)that);
68 ashish 24913
      return false;
24914
    }
24915
 
3061 chandransh 24916
    public boolean equals(getValidOrderCount_result that) {
68 ashish 24917
      if (that == null)
24918
        return false;
24919
 
3061 chandransh 24920
      boolean this_present_success = true;
24921
      boolean that_present_success = true;
68 ashish 24922
      if (this_present_success || that_present_success) {
24923
        if (!(this_present_success && that_present_success))
24924
          return false;
3061 chandransh 24925
        if (this.success != that.success)
68 ashish 24926
          return false;
24927
      }
24928
 
24929
      return true;
24930
    }
24931
 
24932
    @Override
24933
    public int hashCode() {
24934
      return 0;
24935
    }
24936
 
3061 chandransh 24937
    public int compareTo(getValidOrderCount_result other) {
68 ashish 24938
      if (!getClass().equals(other.getClass())) {
24939
        return getClass().getName().compareTo(other.getClass().getName());
24940
      }
24941
 
24942
      int lastComparison = 0;
3061 chandransh 24943
      getValidOrderCount_result typedOther = (getValidOrderCount_result)other;
68 ashish 24944
 
3430 rajveer 24945
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 24946
      if (lastComparison != 0) {
24947
        return lastComparison;
24948
      }
3430 rajveer 24949
      if (isSetSuccess()) {
24950
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24951
        if (lastComparison != 0) {
24952
          return lastComparison;
24953
        }
68 ashish 24954
      }
24955
      return 0;
24956
    }
24957
 
3430 rajveer 24958
    public _Fields fieldForId(int fieldId) {
24959
      return _Fields.findByThriftId(fieldId);
24960
    }
24961
 
24962
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24963
      org.apache.thrift.protocol.TField field;
68 ashish 24964
      iprot.readStructBegin();
24965
      while (true)
24966
      {
24967
        field = iprot.readFieldBegin();
3430 rajveer 24968
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 24969
          break;
24970
        }
3430 rajveer 24971
        switch (field.id) {
24972
          case 0: // SUCCESS
24973
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24974
              this.success = iprot.readI64();
24975
              setSuccessIsSet(true);
24976
            } else { 
24977
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24978
            }
24979
            break;
24980
          default:
24981
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 24982
        }
3430 rajveer 24983
        iprot.readFieldEnd();
68 ashish 24984
      }
24985
      iprot.readStructEnd();
24986
      validate();
24987
    }
24988
 
3430 rajveer 24989
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 24990
      oprot.writeStructBegin(STRUCT_DESC);
24991
 
24992
      if (this.isSetSuccess()) {
24993
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 24994
        oprot.writeI64(this.success);
68 ashish 24995
        oprot.writeFieldEnd();
24996
      }
24997
      oprot.writeFieldStop();
24998
      oprot.writeStructEnd();
24999
    }
25000
 
25001
    @Override
25002
    public String toString() {
3061 chandransh 25003
      StringBuilder sb = new StringBuilder("getValidOrderCount_result(");
68 ashish 25004
      boolean first = true;
25005
 
25006
      sb.append("success:");
3061 chandransh 25007
      sb.append(this.success);
68 ashish 25008
      first = false;
3061 chandransh 25009
      sb.append(")");
25010
      return sb.toString();
25011
    }
25012
 
3430 rajveer 25013
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 25014
      // check for required fields
25015
    }
25016
 
3430 rajveer 25017
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25018
      try {
25019
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25020
      } catch (org.apache.thrift.TException te) {
25021
        throw new java.io.IOException(te);
25022
      }
25023
    }
25024
 
25025
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25026
      try {
25027
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25028
      } catch (org.apache.thrift.TException te) {
25029
        throw new java.io.IOException(te);
25030
      }
25031
    }
25032
 
3061 chandransh 25033
  }
25034
 
3430 rajveer 25035
  public static class getNoOfCustomersWithSuccessfulTransaction_args implements org.apache.thrift.TBase<getNoOfCustomersWithSuccessfulTransaction_args, getNoOfCustomersWithSuccessfulTransaction_args._Fields>, java.io.Serializable, Cloneable   {
25036
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNoOfCustomersWithSuccessfulTransaction_args");
3061 chandransh 25037
 
25038
 
25039
 
25040
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25041
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 25042
;
25043
 
25044
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25045
 
25046
      static {
25047
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25048
          byName.put(field.getFieldName(), field);
25049
        }
68 ashish 25050
      }
3061 chandransh 25051
 
25052
      /**
25053
       * Find the _Fields constant that matches fieldId, or null if its not found.
25054
       */
25055
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25056
        switch(fieldId) {
25057
          default:
25058
            return null;
25059
        }
3061 chandransh 25060
      }
25061
 
25062
      /**
25063
       * Find the _Fields constant that matches fieldId, throwing an exception
25064
       * if it is not found.
25065
       */
25066
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25067
        _Fields fields = findByThriftId(fieldId);
25068
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25069
        return fields;
25070
      }
25071
 
25072
      /**
25073
       * Find the _Fields constant that matches name, or null if its not found.
25074
       */
25075
      public static _Fields findByName(String name) {
25076
        return byName.get(name);
25077
      }
25078
 
25079
      private final short _thriftId;
25080
      private final String _fieldName;
25081
 
25082
      _Fields(short thriftId, String fieldName) {
25083
        _thriftId = thriftId;
25084
        _fieldName = fieldName;
25085
      }
25086
 
25087
      public short getThriftFieldId() {
25088
        return _thriftId;
25089
      }
25090
 
25091
      public String getFieldName() {
25092
        return _fieldName;
25093
      }
25094
    }
3430 rajveer 25095
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 25096
    static {
3430 rajveer 25097
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25098
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25099
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_args.class, metaDataMap);
3061 chandransh 25100
    }
25101
 
25102
    public getNoOfCustomersWithSuccessfulTransaction_args() {
25103
    }
25104
 
25105
    /**
25106
     * Performs a deep copy on <i>other</i>.
25107
     */
25108
    public getNoOfCustomersWithSuccessfulTransaction_args(getNoOfCustomersWithSuccessfulTransaction_args other) {
25109
    }
25110
 
25111
    public getNoOfCustomersWithSuccessfulTransaction_args deepCopy() {
25112
      return new getNoOfCustomersWithSuccessfulTransaction_args(this);
25113
    }
25114
 
3430 rajveer 25115
    @Override
25116
    public void clear() {
3061 chandransh 25117
    }
25118
 
25119
    public void setFieldValue(_Fields field, Object value) {
25120
      switch (field) {
25121
      }
25122
    }
25123
 
25124
    public Object getFieldValue(_Fields field) {
25125
      switch (field) {
25126
      }
25127
      throw new IllegalStateException();
25128
    }
25129
 
3430 rajveer 25130
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25131
    public boolean isSet(_Fields field) {
25132
      if (field == null) {
25133
        throw new IllegalArgumentException();
25134
      }
3061 chandransh 25135
 
25136
      switch (field) {
25137
      }
25138
      throw new IllegalStateException();
25139
    }
25140
 
25141
    @Override
25142
    public boolean equals(Object that) {
25143
      if (that == null)
25144
        return false;
25145
      if (that instanceof getNoOfCustomersWithSuccessfulTransaction_args)
25146
        return this.equals((getNoOfCustomersWithSuccessfulTransaction_args)that);
25147
      return false;
25148
    }
25149
 
25150
    public boolean equals(getNoOfCustomersWithSuccessfulTransaction_args that) {
25151
      if (that == null)
25152
        return false;
25153
 
25154
      return true;
25155
    }
25156
 
25157
    @Override
25158
    public int hashCode() {
25159
      return 0;
25160
    }
25161
 
25162
    public int compareTo(getNoOfCustomersWithSuccessfulTransaction_args other) {
25163
      if (!getClass().equals(other.getClass())) {
25164
        return getClass().getName().compareTo(other.getClass().getName());
25165
      }
25166
 
25167
      int lastComparison = 0;
25168
      getNoOfCustomersWithSuccessfulTransaction_args typedOther = (getNoOfCustomersWithSuccessfulTransaction_args)other;
25169
 
25170
      return 0;
25171
    }
25172
 
3430 rajveer 25173
    public _Fields fieldForId(int fieldId) {
25174
      return _Fields.findByThriftId(fieldId);
25175
    }
25176
 
25177
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25178
      org.apache.thrift.protocol.TField field;
3061 chandransh 25179
      iprot.readStructBegin();
25180
      while (true)
25181
      {
25182
        field = iprot.readFieldBegin();
3430 rajveer 25183
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 25184
          break;
25185
        }
3430 rajveer 25186
        switch (field.id) {
25187
          default:
25188
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 25189
        }
3430 rajveer 25190
        iprot.readFieldEnd();
3061 chandransh 25191
      }
25192
      iprot.readStructEnd();
25193
      validate();
25194
    }
25195
 
3430 rajveer 25196
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 25197
      validate();
25198
 
25199
      oprot.writeStructBegin(STRUCT_DESC);
25200
      oprot.writeFieldStop();
25201
      oprot.writeStructEnd();
25202
    }
25203
 
25204
    @Override
25205
    public String toString() {
25206
      StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_args(");
25207
      boolean first = true;
25208
 
68 ashish 25209
      sb.append(")");
25210
      return sb.toString();
25211
    }
25212
 
3430 rajveer 25213
    public void validate() throws org.apache.thrift.TException {
68 ashish 25214
      // check for required fields
25215
    }
25216
 
3430 rajveer 25217
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25218
      try {
25219
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25220
      } catch (org.apache.thrift.TException te) {
25221
        throw new java.io.IOException(te);
25222
      }
25223
    }
25224
 
25225
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25226
      try {
25227
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25228
      } catch (org.apache.thrift.TException te) {
25229
        throw new java.io.IOException(te);
25230
      }
25231
    }
25232
 
68 ashish 25233
  }
25234
 
3430 rajveer 25235
  public static class getNoOfCustomersWithSuccessfulTransaction_result implements org.apache.thrift.TBase<getNoOfCustomersWithSuccessfulTransaction_result, getNoOfCustomersWithSuccessfulTransaction_result._Fields>, java.io.Serializable, Cloneable   {
25236
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNoOfCustomersWithSuccessfulTransaction_result");
68 ashish 25237
 
3430 rajveer 25238
    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);
68 ashish 25239
 
3430 rajveer 25240
    private long success; // required
68 ashish 25241
 
25242
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25243
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 25244
      SUCCESS((short)0, "success");
68 ashish 25245
 
25246
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25247
 
25248
      static {
25249
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25250
          byName.put(field.getFieldName(), field);
25251
        }
25252
      }
25253
 
25254
      /**
25255
       * Find the _Fields constant that matches fieldId, or null if its not found.
25256
       */
25257
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25258
        switch(fieldId) {
25259
          case 0: // SUCCESS
25260
            return SUCCESS;
25261
          default:
25262
            return null;
25263
        }
68 ashish 25264
      }
25265
 
25266
      /**
25267
       * Find the _Fields constant that matches fieldId, throwing an exception
25268
       * if it is not found.
25269
       */
25270
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25271
        _Fields fields = findByThriftId(fieldId);
25272
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25273
        return fields;
25274
      }
25275
 
25276
      /**
25277
       * Find the _Fields constant that matches name, or null if its not found.
25278
       */
25279
      public static _Fields findByName(String name) {
25280
        return byName.get(name);
25281
      }
25282
 
25283
      private final short _thriftId;
25284
      private final String _fieldName;
25285
 
25286
      _Fields(short thriftId, String fieldName) {
25287
        _thriftId = thriftId;
25288
        _fieldName = fieldName;
25289
      }
25290
 
25291
      public short getThriftFieldId() {
25292
        return _thriftId;
25293
      }
25294
 
25295
      public String getFieldName() {
25296
        return _fieldName;
25297
      }
25298
    }
25299
 
25300
    // isset id assignments
3061 chandransh 25301
    private static final int __SUCCESS_ISSET_ID = 0;
68 ashish 25302
    private BitSet __isset_bit_vector = new BitSet(1);
25303
 
3430 rajveer 25304
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 25305
    static {
3430 rajveer 25306
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25307
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25308
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25309
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25310
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_result.class, metaDataMap);
68 ashish 25311
    }
25312
 
3061 chandransh 25313
    public getNoOfCustomersWithSuccessfulTransaction_result() {
68 ashish 25314
    }
25315
 
3061 chandransh 25316
    public getNoOfCustomersWithSuccessfulTransaction_result(
25317
      long success)
68 ashish 25318
    {
25319
      this();
3061 chandransh 25320
      this.success = success;
25321
      setSuccessIsSet(true);
68 ashish 25322
    }
25323
 
25324
    /**
25325
     * Performs a deep copy on <i>other</i>.
25326
     */
3061 chandransh 25327
    public getNoOfCustomersWithSuccessfulTransaction_result(getNoOfCustomersWithSuccessfulTransaction_result other) {
68 ashish 25328
      __isset_bit_vector.clear();
25329
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 25330
      this.success = other.success;
68 ashish 25331
    }
25332
 
3061 chandransh 25333
    public getNoOfCustomersWithSuccessfulTransaction_result deepCopy() {
25334
      return new getNoOfCustomersWithSuccessfulTransaction_result(this);
68 ashish 25335
    }
25336
 
3430 rajveer 25337
    @Override
25338
    public void clear() {
25339
      setSuccessIsSet(false);
25340
      this.success = 0;
68 ashish 25341
    }
25342
 
3061 chandransh 25343
    public long getSuccess() {
25344
      return this.success;
68 ashish 25345
    }
25346
 
3430 rajveer 25347
    public void setSuccess(long success) {
3061 chandransh 25348
      this.success = success;
25349
      setSuccessIsSet(true);
68 ashish 25350
    }
25351
 
3061 chandransh 25352
    public void unsetSuccess() {
25353
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
68 ashish 25354
    }
25355
 
3430 rajveer 25356
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 25357
    public boolean isSetSuccess() {
25358
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
68 ashish 25359
    }
25360
 
3061 chandransh 25361
    public void setSuccessIsSet(boolean value) {
25362
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
68 ashish 25363
    }
25364
 
25365
    public void setFieldValue(_Fields field, Object value) {
25366
      switch (field) {
3061 chandransh 25367
      case SUCCESS:
68 ashish 25368
        if (value == null) {
3061 chandransh 25369
          unsetSuccess();
68 ashish 25370
        } else {
3061 chandransh 25371
          setSuccess((Long)value);
68 ashish 25372
        }
25373
        break;
25374
 
25375
      }
25376
    }
25377
 
25378
    public Object getFieldValue(_Fields field) {
25379
      switch (field) {
3061 chandransh 25380
      case SUCCESS:
3430 rajveer 25381
        return Long.valueOf(getSuccess());
68 ashish 25382
 
25383
      }
25384
      throw new IllegalStateException();
25385
    }
25386
 
3430 rajveer 25387
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25388
    public boolean isSet(_Fields field) {
25389
      if (field == null) {
25390
        throw new IllegalArgumentException();
25391
      }
68 ashish 25392
 
25393
      switch (field) {
3061 chandransh 25394
      case SUCCESS:
25395
        return isSetSuccess();
68 ashish 25396
      }
25397
      throw new IllegalStateException();
25398
    }
25399
 
25400
    @Override
25401
    public boolean equals(Object that) {
25402
      if (that == null)
25403
        return false;
3061 chandransh 25404
      if (that instanceof getNoOfCustomersWithSuccessfulTransaction_result)
25405
        return this.equals((getNoOfCustomersWithSuccessfulTransaction_result)that);
68 ashish 25406
      return false;
25407
    }
25408
 
3061 chandransh 25409
    public boolean equals(getNoOfCustomersWithSuccessfulTransaction_result that) {
68 ashish 25410
      if (that == null)
25411
        return false;
25412
 
3061 chandransh 25413
      boolean this_present_success = true;
25414
      boolean that_present_success = true;
25415
      if (this_present_success || that_present_success) {
25416
        if (!(this_present_success && that_present_success))
68 ashish 25417
          return false;
3061 chandransh 25418
        if (this.success != that.success)
68 ashish 25419
          return false;
25420
      }
25421
 
25422
      return true;
25423
    }
25424
 
25425
    @Override
25426
    public int hashCode() {
25427
      return 0;
25428
    }
25429
 
3061 chandransh 25430
    public int compareTo(getNoOfCustomersWithSuccessfulTransaction_result other) {
68 ashish 25431
      if (!getClass().equals(other.getClass())) {
25432
        return getClass().getName().compareTo(other.getClass().getName());
25433
      }
25434
 
25435
      int lastComparison = 0;
3061 chandransh 25436
      getNoOfCustomersWithSuccessfulTransaction_result typedOther = (getNoOfCustomersWithSuccessfulTransaction_result)other;
68 ashish 25437
 
3430 rajveer 25438
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 25439
      if (lastComparison != 0) {
25440
        return lastComparison;
25441
      }
3430 rajveer 25442
      if (isSetSuccess()) {
25443
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25444
        if (lastComparison != 0) {
25445
          return lastComparison;
25446
        }
68 ashish 25447
      }
25448
      return 0;
25449
    }
25450
 
3430 rajveer 25451
    public _Fields fieldForId(int fieldId) {
25452
      return _Fields.findByThriftId(fieldId);
25453
    }
25454
 
25455
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25456
      org.apache.thrift.protocol.TField field;
68 ashish 25457
      iprot.readStructBegin();
25458
      while (true)
25459
      {
25460
        field = iprot.readFieldBegin();
3430 rajveer 25461
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 25462
          break;
25463
        }
3430 rajveer 25464
        switch (field.id) {
25465
          case 0: // SUCCESS
25466
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25467
              this.success = iprot.readI64();
25468
              setSuccessIsSet(true);
25469
            } else { 
25470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25471
            }
25472
            break;
25473
          default:
25474
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 25475
        }
3430 rajveer 25476
        iprot.readFieldEnd();
68 ashish 25477
      }
25478
      iprot.readStructEnd();
25479
      validate();
25480
    }
25481
 
3430 rajveer 25482
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 25483
      oprot.writeStructBegin(STRUCT_DESC);
25484
 
25485
      if (this.isSetSuccess()) {
25486
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25487
        oprot.writeI64(this.success);
25488
        oprot.writeFieldEnd();
25489
      }
25490
      oprot.writeFieldStop();
25491
      oprot.writeStructEnd();
25492
    }
25493
 
25494
    @Override
25495
    public String toString() {
25496
      StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_result(");
25497
      boolean first = true;
25498
 
25499
      sb.append("success:");
25500
      sb.append(this.success);
25501
      first = false;
25502
      sb.append(")");
25503
      return sb.toString();
25504
    }
25505
 
3430 rajveer 25506
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 25507
      // check for required fields
25508
    }
25509
 
3430 rajveer 25510
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25511
      try {
25512
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25513
      } catch (org.apache.thrift.TException te) {
25514
        throw new java.io.IOException(te);
25515
      }
25516
    }
25517
 
25518
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25519
      try {
25520
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25521
      } catch (org.apache.thrift.TException te) {
25522
        throw new java.io.IOException(te);
25523
      }
25524
    }
25525
 
3061 chandransh 25526
  }
25527
 
3430 rajveer 25528
  public static class getValidOrdersAmountRange_args implements org.apache.thrift.TBase<getValidOrdersAmountRange_args, getValidOrdersAmountRange_args._Fields>, java.io.Serializable, Cloneable   {
25529
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrdersAmountRange_args");
3061 chandransh 25530
 
25531
 
25532
 
25533
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25534
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 25535
;
25536
 
25537
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25538
 
25539
      static {
25540
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25541
          byName.put(field.getFieldName(), field);
25542
        }
25543
      }
25544
 
25545
      /**
25546
       * Find the _Fields constant that matches fieldId, or null if its not found.
25547
       */
25548
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25549
        switch(fieldId) {
25550
          default:
25551
            return null;
25552
        }
3061 chandransh 25553
      }
25554
 
25555
      /**
25556
       * Find the _Fields constant that matches fieldId, throwing an exception
25557
       * if it is not found.
25558
       */
25559
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25560
        _Fields fields = findByThriftId(fieldId);
25561
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25562
        return fields;
25563
      }
25564
 
25565
      /**
25566
       * Find the _Fields constant that matches name, or null if its not found.
25567
       */
25568
      public static _Fields findByName(String name) {
25569
        return byName.get(name);
25570
      }
25571
 
25572
      private final short _thriftId;
25573
      private final String _fieldName;
25574
 
25575
      _Fields(short thriftId, String fieldName) {
25576
        _thriftId = thriftId;
25577
        _fieldName = fieldName;
25578
      }
25579
 
25580
      public short getThriftFieldId() {
25581
        return _thriftId;
25582
      }
25583
 
25584
      public String getFieldName() {
25585
        return _fieldName;
25586
      }
25587
    }
3430 rajveer 25588
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 25589
    static {
3430 rajveer 25590
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25591
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25592
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrdersAmountRange_args.class, metaDataMap);
3061 chandransh 25593
    }
25594
 
25595
    public getValidOrdersAmountRange_args() {
25596
    }
25597
 
25598
    /**
25599
     * Performs a deep copy on <i>other</i>.
25600
     */
25601
    public getValidOrdersAmountRange_args(getValidOrdersAmountRange_args other) {
25602
    }
25603
 
25604
    public getValidOrdersAmountRange_args deepCopy() {
25605
      return new getValidOrdersAmountRange_args(this);
25606
    }
25607
 
3430 rajveer 25608
    @Override
25609
    public void clear() {
3061 chandransh 25610
    }
25611
 
25612
    public void setFieldValue(_Fields field, Object value) {
25613
      switch (field) {
25614
      }
25615
    }
25616
 
25617
    public Object getFieldValue(_Fields field) {
25618
      switch (field) {
25619
      }
25620
      throw new IllegalStateException();
25621
    }
25622
 
3430 rajveer 25623
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25624
    public boolean isSet(_Fields field) {
25625
      if (field == null) {
25626
        throw new IllegalArgumentException();
25627
      }
3061 chandransh 25628
 
25629
      switch (field) {
25630
      }
25631
      throw new IllegalStateException();
25632
    }
25633
 
25634
    @Override
25635
    public boolean equals(Object that) {
25636
      if (that == null)
25637
        return false;
25638
      if (that instanceof getValidOrdersAmountRange_args)
25639
        return this.equals((getValidOrdersAmountRange_args)that);
25640
      return false;
25641
    }
25642
 
25643
    public boolean equals(getValidOrdersAmountRange_args that) {
25644
      if (that == null)
25645
        return false;
25646
 
25647
      return true;
25648
    }
25649
 
25650
    @Override
25651
    public int hashCode() {
25652
      return 0;
25653
    }
25654
 
25655
    public int compareTo(getValidOrdersAmountRange_args other) {
25656
      if (!getClass().equals(other.getClass())) {
25657
        return getClass().getName().compareTo(other.getClass().getName());
25658
      }
25659
 
25660
      int lastComparison = 0;
25661
      getValidOrdersAmountRange_args typedOther = (getValidOrdersAmountRange_args)other;
25662
 
25663
      return 0;
25664
    }
25665
 
3430 rajveer 25666
    public _Fields fieldForId(int fieldId) {
25667
      return _Fields.findByThriftId(fieldId);
25668
    }
25669
 
25670
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25671
      org.apache.thrift.protocol.TField field;
3061 chandransh 25672
      iprot.readStructBegin();
25673
      while (true)
25674
      {
25675
        field = iprot.readFieldBegin();
3430 rajveer 25676
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 25677
          break;
25678
        }
3430 rajveer 25679
        switch (field.id) {
25680
          default:
25681
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 25682
        }
3430 rajveer 25683
        iprot.readFieldEnd();
3061 chandransh 25684
      }
25685
      iprot.readStructEnd();
68 ashish 25686
      validate();
3061 chandransh 25687
    }
68 ashish 25688
 
3430 rajveer 25689
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 25690
      validate();
25691
 
68 ashish 25692
      oprot.writeStructBegin(STRUCT_DESC);
25693
      oprot.writeFieldStop();
25694
      oprot.writeStructEnd();
25695
    }
25696
 
25697
    @Override
25698
    public String toString() {
3061 chandransh 25699
      StringBuilder sb = new StringBuilder("getValidOrdersAmountRange_args(");
68 ashish 25700
      boolean first = true;
25701
 
25702
      sb.append(")");
25703
      return sb.toString();
25704
    }
25705
 
3430 rajveer 25706
    public void validate() throws org.apache.thrift.TException {
68 ashish 25707
      // check for required fields
25708
    }
25709
 
3430 rajveer 25710
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25711
      try {
25712
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25713
      } catch (org.apache.thrift.TException te) {
25714
        throw new java.io.IOException(te);
25715
      }
25716
    }
25717
 
25718
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25719
      try {
25720
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25721
      } catch (org.apache.thrift.TException te) {
25722
        throw new java.io.IOException(te);
25723
      }
25724
    }
25725
 
68 ashish 25726
  }
25727
 
3430 rajveer 25728
  public static class getValidOrdersAmountRange_result implements org.apache.thrift.TBase<getValidOrdersAmountRange_result, getValidOrdersAmountRange_result._Fields>, java.io.Serializable, Cloneable   {
25729
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrdersAmountRange_result");
68 ashish 25730
 
3430 rajveer 25731
    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);
68 ashish 25732
 
3430 rajveer 25733
    private List<Double> success; // required
68 ashish 25734
 
25735
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25736
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 25737
      SUCCESS((short)0, "success");
68 ashish 25738
 
25739
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25740
 
25741
      static {
25742
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25743
          byName.put(field.getFieldName(), field);
25744
        }
25745
      }
25746
 
25747
      /**
25748
       * Find the _Fields constant that matches fieldId, or null if its not found.
25749
       */
25750
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25751
        switch(fieldId) {
25752
          case 0: // SUCCESS
25753
            return SUCCESS;
25754
          default:
25755
            return null;
25756
        }
68 ashish 25757
      }
25758
 
25759
      /**
25760
       * Find the _Fields constant that matches fieldId, throwing an exception
25761
       * if it is not found.
25762
       */
25763
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25764
        _Fields fields = findByThriftId(fieldId);
25765
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25766
        return fields;
25767
      }
25768
 
25769
      /**
25770
       * Find the _Fields constant that matches name, or null if its not found.
25771
       */
25772
      public static _Fields findByName(String name) {
25773
        return byName.get(name);
25774
      }
25775
 
25776
      private final short _thriftId;
25777
      private final String _fieldName;
25778
 
25779
      _Fields(short thriftId, String fieldName) {
25780
        _thriftId = thriftId;
25781
        _fieldName = fieldName;
25782
      }
25783
 
25784
      public short getThriftFieldId() {
25785
        return _thriftId;
25786
      }
25787
 
25788
      public String getFieldName() {
25789
        return _fieldName;
25790
      }
25791
    }
25792
 
25793
    // isset id assignments
25794
 
3430 rajveer 25795
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 25796
    static {
3430 rajveer 25797
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25798
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25799
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25800
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
25801
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25802
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrdersAmountRange_result.class, metaDataMap);
68 ashish 25803
    }
25804
 
3061 chandransh 25805
    public getValidOrdersAmountRange_result() {
68 ashish 25806
    }
25807
 
3061 chandransh 25808
    public getValidOrdersAmountRange_result(
25809
      List<Double> success)
68 ashish 25810
    {
25811
      this();
25812
      this.success = success;
25813
    }
25814
 
25815
    /**
25816
     * Performs a deep copy on <i>other</i>.
25817
     */
3061 chandransh 25818
    public getValidOrdersAmountRange_result(getValidOrdersAmountRange_result other) {
483 rajveer 25819
      if (other.isSetSuccess()) {
3061 chandransh 25820
        List<Double> __this__success = new ArrayList<Double>();
25821
        for (Double other_element : other.success) {
25822
          __this__success.add(other_element);
483 rajveer 25823
        }
25824
        this.success = __this__success;
25825
      }
68 ashish 25826
    }
25827
 
3061 chandransh 25828
    public getValidOrdersAmountRange_result deepCopy() {
25829
      return new getValidOrdersAmountRange_result(this);
68 ashish 25830
    }
25831
 
3430 rajveer 25832
    @Override
25833
    public void clear() {
25834
      this.success = null;
68 ashish 25835
    }
25836
 
483 rajveer 25837
    public int getSuccessSize() {
25838
      return (this.success == null) ? 0 : this.success.size();
25839
    }
25840
 
3061 chandransh 25841
    public java.util.Iterator<Double> getSuccessIterator() {
483 rajveer 25842
      return (this.success == null) ? null : this.success.iterator();
25843
    }
25844
 
3061 chandransh 25845
    public void addToSuccess(double elem) {
483 rajveer 25846
      if (this.success == null) {
3061 chandransh 25847
        this.success = new ArrayList<Double>();
483 rajveer 25848
      }
25849
      this.success.add(elem);
25850
    }
25851
 
3061 chandransh 25852
    public List<Double> getSuccess() {
68 ashish 25853
      return this.success;
25854
    }
25855
 
3430 rajveer 25856
    public void setSuccess(List<Double> success) {
68 ashish 25857
      this.success = success;
25858
    }
25859
 
25860
    public void unsetSuccess() {
483 rajveer 25861
      this.success = null;
68 ashish 25862
    }
25863
 
3430 rajveer 25864
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 25865
    public boolean isSetSuccess() {
483 rajveer 25866
      return this.success != null;
68 ashish 25867
    }
25868
 
25869
    public void setSuccessIsSet(boolean value) {
483 rajveer 25870
      if (!value) {
25871
        this.success = null;
25872
      }
68 ashish 25873
    }
25874
 
25875
    public void setFieldValue(_Fields field, Object value) {
25876
      switch (field) {
25877
      case SUCCESS:
25878
        if (value == null) {
25879
          unsetSuccess();
25880
        } else {
3061 chandransh 25881
          setSuccess((List<Double>)value);
68 ashish 25882
        }
25883
        break;
25884
 
25885
      }
25886
    }
25887
 
25888
    public Object getFieldValue(_Fields field) {
25889
      switch (field) {
25890
      case SUCCESS:
483 rajveer 25891
        return getSuccess();
68 ashish 25892
 
25893
      }
25894
      throw new IllegalStateException();
25895
    }
25896
 
3430 rajveer 25897
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25898
    public boolean isSet(_Fields field) {
25899
      if (field == null) {
25900
        throw new IllegalArgumentException();
25901
      }
68 ashish 25902
 
25903
      switch (field) {
25904
      case SUCCESS:
25905
        return isSetSuccess();
25906
      }
25907
      throw new IllegalStateException();
25908
    }
25909
 
25910
    @Override
25911
    public boolean equals(Object that) {
25912
      if (that == null)
25913
        return false;
3061 chandransh 25914
      if (that instanceof getValidOrdersAmountRange_result)
25915
        return this.equals((getValidOrdersAmountRange_result)that);
68 ashish 25916
      return false;
25917
    }
25918
 
3061 chandransh 25919
    public boolean equals(getValidOrdersAmountRange_result that) {
68 ashish 25920
      if (that == null)
25921
        return false;
25922
 
483 rajveer 25923
      boolean this_present_success = true && this.isSetSuccess();
25924
      boolean that_present_success = true && that.isSetSuccess();
68 ashish 25925
      if (this_present_success || that_present_success) {
25926
        if (!(this_present_success && that_present_success))
25927
          return false;
483 rajveer 25928
        if (!this.success.equals(that.success))
68 ashish 25929
          return false;
25930
      }
25931
 
25932
      return true;
25933
    }
25934
 
25935
    @Override
25936
    public int hashCode() {
25937
      return 0;
25938
    }
25939
 
3061 chandransh 25940
    public int compareTo(getValidOrdersAmountRange_result other) {
68 ashish 25941
      if (!getClass().equals(other.getClass())) {
25942
        return getClass().getName().compareTo(other.getClass().getName());
25943
      }
25944
 
25945
      int lastComparison = 0;
3061 chandransh 25946
      getValidOrdersAmountRange_result typedOther = (getValidOrdersAmountRange_result)other;
68 ashish 25947
 
3430 rajveer 25948
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 25949
      if (lastComparison != 0) {
25950
        return lastComparison;
25951
      }
3430 rajveer 25952
      if (isSetSuccess()) {
25953
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25954
        if (lastComparison != 0) {
25955
          return lastComparison;
25956
        }
68 ashish 25957
      }
25958
      return 0;
25959
    }
25960
 
3430 rajveer 25961
    public _Fields fieldForId(int fieldId) {
25962
      return _Fields.findByThriftId(fieldId);
25963
    }
25964
 
25965
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25966
      org.apache.thrift.protocol.TField field;
68 ashish 25967
      iprot.readStructBegin();
25968
      while (true)
25969
      {
25970
        field = iprot.readFieldBegin();
3430 rajveer 25971
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 25972
          break;
25973
        }
3430 rajveer 25974
        switch (field.id) {
25975
          case 0: // SUCCESS
25976
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25977
              {
4133 chandransh 25978
                org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
25979
                this.success = new ArrayList<Double>(_list68.size);
25980
                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
483 rajveer 25981
                {
4133 chandransh 25982
                  double _elem70; // required
25983
                  _elem70 = iprot.readDouble();
25984
                  this.success.add(_elem70);
483 rajveer 25985
                }
3430 rajveer 25986
                iprot.readListEnd();
68 ashish 25987
              }
3430 rajveer 25988
            } else { 
25989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25990
            }
25991
            break;
25992
          default:
25993
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 25994
        }
3430 rajveer 25995
        iprot.readFieldEnd();
68 ashish 25996
      }
25997
      iprot.readStructEnd();
25998
      validate();
25999
    }
26000
 
3430 rajveer 26001
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 26002
      oprot.writeStructBegin(STRUCT_DESC);
26003
 
26004
      if (this.isSetSuccess()) {
26005
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
483 rajveer 26006
        {
3430 rajveer 26007
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
4133 chandransh 26008
          for (double _iter71 : this.success)
483 rajveer 26009
          {
4133 chandransh 26010
            oprot.writeDouble(_iter71);
483 rajveer 26011
          }
26012
          oprot.writeListEnd();
26013
        }
68 ashish 26014
        oprot.writeFieldEnd();
26015
      }
26016
      oprot.writeFieldStop();
26017
      oprot.writeStructEnd();
26018
    }
26019
 
26020
    @Override
26021
    public String toString() {
3061 chandransh 26022
      StringBuilder sb = new StringBuilder("getValidOrdersAmountRange_result(");
68 ashish 26023
      boolean first = true;
26024
 
26025
      sb.append("success:");
483 rajveer 26026
      if (this.success == null) {
26027
        sb.append("null");
26028
      } else {
26029
        sb.append(this.success);
26030
      }
68 ashish 26031
      first = false;
26032
      sb.append(")");
26033
      return sb.toString();
26034
    }
26035
 
3430 rajveer 26036
    public void validate() throws org.apache.thrift.TException {
68 ashish 26037
      // check for required fields
26038
    }
26039
 
3430 rajveer 26040
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26041
      try {
26042
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26043
      } catch (org.apache.thrift.TException te) {
26044
        throw new java.io.IOException(te);
26045
      }
26046
    }
26047
 
26048
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26049
      try {
26050
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26051
      } catch (org.apache.thrift.TException te) {
26052
        throw new java.io.IOException(te);
26053
      }
26054
    }
26055
 
68 ashish 26056
  }
26057
 
3430 rajveer 26058
  public static class getValidOrders_args implements org.apache.thrift.TBase<getValidOrders_args, getValidOrders_args._Fields>, java.io.Serializable, Cloneable   {
26059
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrders_args");
1529 ankur.sing 26060
 
3430 rajveer 26061
    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);
1529 ankur.sing 26062
 
3430 rajveer 26063
    private long limit; // required
1529 ankur.sing 26064
 
26065
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26066
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 26067
      LIMIT((short)1, "limit");
1529 ankur.sing 26068
 
26069
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26070
 
26071
      static {
26072
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26073
          byName.put(field.getFieldName(), field);
26074
        }
26075
      }
26076
 
26077
      /**
26078
       * Find the _Fields constant that matches fieldId, or null if its not found.
26079
       */
26080
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26081
        switch(fieldId) {
26082
          case 1: // LIMIT
26083
            return LIMIT;
26084
          default:
26085
            return null;
26086
        }
1529 ankur.sing 26087
      }
26088
 
26089
      /**
26090
       * Find the _Fields constant that matches fieldId, throwing an exception
26091
       * if it is not found.
26092
       */
26093
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26094
        _Fields fields = findByThriftId(fieldId);
26095
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26096
        return fields;
26097
      }
26098
 
26099
      /**
26100
       * Find the _Fields constant that matches name, or null if its not found.
26101
       */
26102
      public static _Fields findByName(String name) {
26103
        return byName.get(name);
26104
      }
26105
 
26106
      private final short _thriftId;
26107
      private final String _fieldName;
26108
 
26109
      _Fields(short thriftId, String fieldName) {
26110
        _thriftId = thriftId;
26111
        _fieldName = fieldName;
26112
      }
26113
 
26114
      public short getThriftFieldId() {
26115
        return _thriftId;
26116
      }
26117
 
26118
      public String getFieldName() {
26119
        return _fieldName;
26120
      }
26121
    }
26122
 
26123
    // isset id assignments
3061 chandransh 26124
    private static final int __LIMIT_ISSET_ID = 0;
26125
    private BitSet __isset_bit_vector = new BitSet(1);
1529 ankur.sing 26126
 
3430 rajveer 26127
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1529 ankur.sing 26128
    static {
3430 rajveer 26129
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26130
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26131
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26132
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26133
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrders_args.class, metaDataMap);
1529 ankur.sing 26134
    }
26135
 
3061 chandransh 26136
    public getValidOrders_args() {
1529 ankur.sing 26137
    }
26138
 
3061 chandransh 26139
    public getValidOrders_args(
26140
      long limit)
1529 ankur.sing 26141
    {
26142
      this();
3061 chandransh 26143
      this.limit = limit;
26144
      setLimitIsSet(true);
1529 ankur.sing 26145
    }
26146
 
26147
    /**
26148
     * Performs a deep copy on <i>other</i>.
26149
     */
3061 chandransh 26150
    public getValidOrders_args(getValidOrders_args other) {
1529 ankur.sing 26151
      __isset_bit_vector.clear();
26152
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 26153
      this.limit = other.limit;
1529 ankur.sing 26154
    }
26155
 
3061 chandransh 26156
    public getValidOrders_args deepCopy() {
26157
      return new getValidOrders_args(this);
1529 ankur.sing 26158
    }
26159
 
3430 rajveer 26160
    @Override
26161
    public void clear() {
26162
      setLimitIsSet(false);
26163
      this.limit = 0;
1529 ankur.sing 26164
    }
26165
 
3061 chandransh 26166
    public long getLimit() {
26167
      return this.limit;
1529 ankur.sing 26168
    }
26169
 
3430 rajveer 26170
    public void setLimit(long limit) {
3061 chandransh 26171
      this.limit = limit;
26172
      setLimitIsSet(true);
1529 ankur.sing 26173
    }
26174
 
3061 chandransh 26175
    public void unsetLimit() {
26176
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
1529 ankur.sing 26177
    }
26178
 
3430 rajveer 26179
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
3061 chandransh 26180
    public boolean isSetLimit() {
26181
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
1529 ankur.sing 26182
    }
26183
 
3061 chandransh 26184
    public void setLimitIsSet(boolean value) {
26185
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
1529 ankur.sing 26186
    }
26187
 
26188
    public void setFieldValue(_Fields field, Object value) {
26189
      switch (field) {
3061 chandransh 26190
      case LIMIT:
1529 ankur.sing 26191
        if (value == null) {
3061 chandransh 26192
          unsetLimit();
1529 ankur.sing 26193
        } else {
3061 chandransh 26194
          setLimit((Long)value);
1529 ankur.sing 26195
        }
26196
        break;
26197
 
26198
      }
26199
    }
26200
 
26201
    public Object getFieldValue(_Fields field) {
26202
      switch (field) {
3061 chandransh 26203
      case LIMIT:
3430 rajveer 26204
        return Long.valueOf(getLimit());
1529 ankur.sing 26205
 
26206
      }
26207
      throw new IllegalStateException();
26208
    }
26209
 
3430 rajveer 26210
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26211
    public boolean isSet(_Fields field) {
26212
      if (field == null) {
26213
        throw new IllegalArgumentException();
26214
      }
1529 ankur.sing 26215
 
26216
      switch (field) {
3061 chandransh 26217
      case LIMIT:
26218
        return isSetLimit();
1529 ankur.sing 26219
      }
26220
      throw new IllegalStateException();
26221
    }
26222
 
26223
    @Override
26224
    public boolean equals(Object that) {
26225
      if (that == null)
26226
        return false;
3061 chandransh 26227
      if (that instanceof getValidOrders_args)
26228
        return this.equals((getValidOrders_args)that);
1529 ankur.sing 26229
      return false;
26230
    }
26231
 
3061 chandransh 26232
    public boolean equals(getValidOrders_args that) {
1529 ankur.sing 26233
      if (that == null)
26234
        return false;
26235
 
3061 chandransh 26236
      boolean this_present_limit = true;
26237
      boolean that_present_limit = true;
26238
      if (this_present_limit || that_present_limit) {
26239
        if (!(this_present_limit && that_present_limit))
1529 ankur.sing 26240
          return false;
3061 chandransh 26241
        if (this.limit != that.limit)
1529 ankur.sing 26242
          return false;
26243
      }
26244
 
26245
      return true;
26246
    }
26247
 
26248
    @Override
26249
    public int hashCode() {
26250
      return 0;
26251
    }
26252
 
3061 chandransh 26253
    public int compareTo(getValidOrders_args other) {
1529 ankur.sing 26254
      if (!getClass().equals(other.getClass())) {
26255
        return getClass().getName().compareTo(other.getClass().getName());
26256
      }
26257
 
26258
      int lastComparison = 0;
3061 chandransh 26259
      getValidOrders_args typedOther = (getValidOrders_args)other;
1529 ankur.sing 26260
 
3430 rajveer 26261
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
1529 ankur.sing 26262
      if (lastComparison != 0) {
26263
        return lastComparison;
26264
      }
3430 rajveer 26265
      if (isSetLimit()) {
26266
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
26267
        if (lastComparison != 0) {
26268
          return lastComparison;
26269
        }
1529 ankur.sing 26270
      }
26271
      return 0;
26272
    }
26273
 
3430 rajveer 26274
    public _Fields fieldForId(int fieldId) {
26275
      return _Fields.findByThriftId(fieldId);
26276
    }
26277
 
26278
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26279
      org.apache.thrift.protocol.TField field;
1529 ankur.sing 26280
      iprot.readStructBegin();
26281
      while (true)
26282
      {
26283
        field = iprot.readFieldBegin();
3430 rajveer 26284
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1529 ankur.sing 26285
          break;
26286
        }
3430 rajveer 26287
        switch (field.id) {
26288
          case 1: // LIMIT
26289
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26290
              this.limit = iprot.readI64();
26291
              setLimitIsSet(true);
26292
            } else { 
26293
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26294
            }
26295
            break;
26296
          default:
26297
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1529 ankur.sing 26298
        }
3430 rajveer 26299
        iprot.readFieldEnd();
1529 ankur.sing 26300
      }
26301
      iprot.readStructEnd();
26302
      validate();
26303
    }
26304
 
3430 rajveer 26305
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1529 ankur.sing 26306
      validate();
26307
 
26308
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 26309
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
26310
      oprot.writeI64(this.limit);
1529 ankur.sing 26311
      oprot.writeFieldEnd();
26312
      oprot.writeFieldStop();
26313
      oprot.writeStructEnd();
26314
    }
26315
 
26316
    @Override
26317
    public String toString() {
3061 chandransh 26318
      StringBuilder sb = new StringBuilder("getValidOrders_args(");
1529 ankur.sing 26319
      boolean first = true;
26320
 
3061 chandransh 26321
      sb.append("limit:");
26322
      sb.append(this.limit);
1529 ankur.sing 26323
      first = false;
26324
      sb.append(")");
26325
      return sb.toString();
26326
    }
26327
 
3430 rajveer 26328
    public void validate() throws org.apache.thrift.TException {
1529 ankur.sing 26329
      // check for required fields
26330
    }
26331
 
3430 rajveer 26332
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26333
      try {
26334
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26335
      } catch (org.apache.thrift.TException te) {
26336
        throw new java.io.IOException(te);
26337
      }
26338
    }
26339
 
26340
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26341
      try {
26342
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26343
      } catch (org.apache.thrift.TException te) {
26344
        throw new java.io.IOException(te);
26345
      }
26346
    }
26347
 
1529 ankur.sing 26348
  }
26349
 
3430 rajveer 26350
  public static class getValidOrders_result implements org.apache.thrift.TBase<getValidOrders_result, getValidOrders_result._Fields>, java.io.Serializable, Cloneable   {
26351
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrders_result");
1529 ankur.sing 26352
 
3430 rajveer 26353
    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);
1529 ankur.sing 26354
 
3430 rajveer 26355
    private List<Order> success; // required
1529 ankur.sing 26356
 
26357
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26358
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 26359
      SUCCESS((short)0, "success");
1529 ankur.sing 26360
 
26361
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26362
 
26363
      static {
26364
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26365
          byName.put(field.getFieldName(), field);
26366
        }
26367
      }
26368
 
26369
      /**
26370
       * Find the _Fields constant that matches fieldId, or null if its not found.
26371
       */
26372
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26373
        switch(fieldId) {
26374
          case 0: // SUCCESS
26375
            return SUCCESS;
26376
          default:
26377
            return null;
26378
        }
1529 ankur.sing 26379
      }
26380
 
26381
      /**
26382
       * Find the _Fields constant that matches fieldId, throwing an exception
26383
       * if it is not found.
26384
       */
26385
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26386
        _Fields fields = findByThriftId(fieldId);
26387
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26388
        return fields;
26389
      }
26390
 
26391
      /**
26392
       * Find the _Fields constant that matches name, or null if its not found.
26393
       */
26394
      public static _Fields findByName(String name) {
26395
        return byName.get(name);
26396
      }
26397
 
26398
      private final short _thriftId;
26399
      private final String _fieldName;
26400
 
26401
      _Fields(short thriftId, String fieldName) {
26402
        _thriftId = thriftId;
26403
        _fieldName = fieldName;
26404
      }
26405
 
26406
      public short getThriftFieldId() {
26407
        return _thriftId;
26408
      }
26409
 
26410
      public String getFieldName() {
26411
        return _fieldName;
26412
      }
26413
    }
26414
 
26415
    // isset id assignments
26416
 
3430 rajveer 26417
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1529 ankur.sing 26418
    static {
3430 rajveer 26419
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26420
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26421
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
26422
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
26423
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26424
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrders_result.class, metaDataMap);
1529 ankur.sing 26425
    }
26426
 
3061 chandransh 26427
    public getValidOrders_result() {
1529 ankur.sing 26428
    }
26429
 
3061 chandransh 26430
    public getValidOrders_result(
26431
      List<Order> success)
1529 ankur.sing 26432
    {
26433
      this();
26434
      this.success = success;
26435
    }
26436
 
26437
    /**
26438
     * Performs a deep copy on <i>other</i>.
26439
     */
3061 chandransh 26440
    public getValidOrders_result(getValidOrders_result other) {
1529 ankur.sing 26441
      if (other.isSetSuccess()) {
3061 chandransh 26442
        List<Order> __this__success = new ArrayList<Order>();
26443
        for (Order other_element : other.success) {
26444
          __this__success.add(new Order(other_element));
26445
        }
26446
        this.success = __this__success;
1529 ankur.sing 26447
      }
26448
    }
26449
 
3061 chandransh 26450
    public getValidOrders_result deepCopy() {
26451
      return new getValidOrders_result(this);
1529 ankur.sing 26452
    }
26453
 
3430 rajveer 26454
    @Override
26455
    public void clear() {
26456
      this.success = null;
1529 ankur.sing 26457
    }
26458
 
3061 chandransh 26459
    public int getSuccessSize() {
26460
      return (this.success == null) ? 0 : this.success.size();
26461
    }
26462
 
26463
    public java.util.Iterator<Order> getSuccessIterator() {
26464
      return (this.success == null) ? null : this.success.iterator();
26465
    }
26466
 
26467
    public void addToSuccess(Order elem) {
26468
      if (this.success == null) {
26469
        this.success = new ArrayList<Order>();
26470
      }
26471
      this.success.add(elem);
26472
    }
26473
 
26474
    public List<Order> getSuccess() {
1529 ankur.sing 26475
      return this.success;
26476
    }
26477
 
3430 rajveer 26478
    public void setSuccess(List<Order> success) {
1529 ankur.sing 26479
      this.success = success;
26480
    }
26481
 
26482
    public void unsetSuccess() {
26483
      this.success = null;
26484
    }
26485
 
3430 rajveer 26486
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1529 ankur.sing 26487
    public boolean isSetSuccess() {
26488
      return this.success != null;
26489
    }
26490
 
26491
    public void setSuccessIsSet(boolean value) {
26492
      if (!value) {
26493
        this.success = null;
26494
      }
26495
    }
26496
 
26497
    public void setFieldValue(_Fields field, Object value) {
26498
      switch (field) {
26499
      case SUCCESS:
26500
        if (value == null) {
26501
          unsetSuccess();
26502
        } else {
3061 chandransh 26503
          setSuccess((List<Order>)value);
1529 ankur.sing 26504
        }
26505
        break;
26506
 
26507
      }
26508
    }
26509
 
26510
    public Object getFieldValue(_Fields field) {
26511
      switch (field) {
26512
      case SUCCESS:
26513
        return getSuccess();
26514
 
26515
      }
26516
      throw new IllegalStateException();
26517
    }
26518
 
3430 rajveer 26519
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26520
    public boolean isSet(_Fields field) {
26521
      if (field == null) {
26522
        throw new IllegalArgumentException();
26523
      }
1529 ankur.sing 26524
 
26525
      switch (field) {
26526
      case SUCCESS:
26527
        return isSetSuccess();
26528
      }
26529
      throw new IllegalStateException();
26530
    }
26531
 
26532
    @Override
26533
    public boolean equals(Object that) {
26534
      if (that == null)
26535
        return false;
3061 chandransh 26536
      if (that instanceof getValidOrders_result)
26537
        return this.equals((getValidOrders_result)that);
1529 ankur.sing 26538
      return false;
26539
    }
26540
 
3061 chandransh 26541
    public boolean equals(getValidOrders_result that) {
1529 ankur.sing 26542
      if (that == null)
26543
        return false;
26544
 
26545
      boolean this_present_success = true && this.isSetSuccess();
26546
      boolean that_present_success = true && that.isSetSuccess();
26547
      if (this_present_success || that_present_success) {
26548
        if (!(this_present_success && that_present_success))
26549
          return false;
26550
        if (!this.success.equals(that.success))
26551
          return false;
26552
      }
26553
 
26554
      return true;
26555
    }
26556
 
26557
    @Override
26558
    public int hashCode() {
26559
      return 0;
26560
    }
26561
 
3061 chandransh 26562
    public int compareTo(getValidOrders_result other) {
1529 ankur.sing 26563
      if (!getClass().equals(other.getClass())) {
26564
        return getClass().getName().compareTo(other.getClass().getName());
26565
      }
26566
 
26567
      int lastComparison = 0;
3061 chandransh 26568
      getValidOrders_result typedOther = (getValidOrders_result)other;
1529 ankur.sing 26569
 
3430 rajveer 26570
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1529 ankur.sing 26571
      if (lastComparison != 0) {
26572
        return lastComparison;
26573
      }
3430 rajveer 26574
      if (isSetSuccess()) {
26575
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26576
        if (lastComparison != 0) {
26577
          return lastComparison;
26578
        }
1529 ankur.sing 26579
      }
26580
      return 0;
26581
    }
26582
 
3430 rajveer 26583
    public _Fields fieldForId(int fieldId) {
26584
      return _Fields.findByThriftId(fieldId);
26585
    }
26586
 
26587
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26588
      org.apache.thrift.protocol.TField field;
1529 ankur.sing 26589
      iprot.readStructBegin();
26590
      while (true)
26591
      {
26592
        field = iprot.readFieldBegin();
3430 rajveer 26593
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1529 ankur.sing 26594
          break;
26595
        }
3430 rajveer 26596
        switch (field.id) {
26597
          case 0: // SUCCESS
26598
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26599
              {
4133 chandransh 26600
                org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
26601
                this.success = new ArrayList<Order>(_list72.size);
26602
                for (int _i73 = 0; _i73 < _list72.size; ++_i73)
3061 chandransh 26603
                {
4133 chandransh 26604
                  Order _elem74; // required
26605
                  _elem74 = new Order();
26606
                  _elem74.read(iprot);
26607
                  this.success.add(_elem74);
3061 chandransh 26608
                }
3430 rajveer 26609
                iprot.readListEnd();
1529 ankur.sing 26610
              }
3430 rajveer 26611
            } else { 
26612
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26613
            }
26614
            break;
26615
          default:
26616
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1529 ankur.sing 26617
        }
3430 rajveer 26618
        iprot.readFieldEnd();
1529 ankur.sing 26619
      }
26620
      iprot.readStructEnd();
26621
      validate();
26622
    }
26623
 
3430 rajveer 26624
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1529 ankur.sing 26625
      oprot.writeStructBegin(STRUCT_DESC);
26626
 
26627
      if (this.isSetSuccess()) {
26628
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 26629
        {
3430 rajveer 26630
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 26631
          for (Order _iter75 : this.success)
3061 chandransh 26632
          {
4133 chandransh 26633
            _iter75.write(oprot);
3061 chandransh 26634
          }
26635
          oprot.writeListEnd();
26636
        }
1529 ankur.sing 26637
        oprot.writeFieldEnd();
26638
      }
26639
      oprot.writeFieldStop();
26640
      oprot.writeStructEnd();
26641
    }
26642
 
26643
    @Override
26644
    public String toString() {
3061 chandransh 26645
      StringBuilder sb = new StringBuilder("getValidOrders_result(");
1529 ankur.sing 26646
      boolean first = true;
26647
 
26648
      sb.append("success:");
26649
      if (this.success == null) {
26650
        sb.append("null");
26651
      } else {
26652
        sb.append(this.success);
26653
      }
26654
      first = false;
26655
      sb.append(")");
26656
      return sb.toString();
26657
    }
26658
 
3430 rajveer 26659
    public void validate() throws org.apache.thrift.TException {
1529 ankur.sing 26660
      // check for required fields
26661
    }
26662
 
3430 rajveer 26663
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26664
      try {
26665
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26666
      } catch (org.apache.thrift.TException te) {
26667
        throw new java.io.IOException(te);
26668
      }
26669
    }
26670
 
26671
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26672
      try {
26673
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26674
      } catch (org.apache.thrift.TException te) {
26675
        throw new java.io.IOException(te);
26676
      }
26677
    }
26678
 
1529 ankur.sing 26679
  }
26680
 
3430 rajveer 26681
  public static class batchOrders_args implements org.apache.thrift.TBase<batchOrders_args, batchOrders_args._Fields>, java.io.Serializable, Cloneable   {
26682
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("batchOrders_args");
1221 chandransh 26683
 
3430 rajveer 26684
    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);
1221 chandransh 26685
 
3430 rajveer 26686
    private long warehouseId; // required
1221 chandransh 26687
 
26688
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26689
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1221 chandransh 26690
      WAREHOUSE_ID((short)1, "warehouseId");
26691
 
26692
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26693
 
26694
      static {
26695
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26696
          byName.put(field.getFieldName(), field);
26697
        }
26698
      }
26699
 
26700
      /**
26701
       * Find the _Fields constant that matches fieldId, or null if its not found.
26702
       */
26703
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26704
        switch(fieldId) {
26705
          case 1: // WAREHOUSE_ID
26706
            return WAREHOUSE_ID;
26707
          default:
26708
            return null;
26709
        }
1221 chandransh 26710
      }
26711
 
26712
      /**
26713
       * Find the _Fields constant that matches fieldId, throwing an exception
26714
       * if it is not found.
26715
       */
26716
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26717
        _Fields fields = findByThriftId(fieldId);
26718
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26719
        return fields;
26720
      }
26721
 
26722
      /**
26723
       * Find the _Fields constant that matches name, or null if its not found.
26724
       */
26725
      public static _Fields findByName(String name) {
26726
        return byName.get(name);
26727
      }
26728
 
26729
      private final short _thriftId;
26730
      private final String _fieldName;
26731
 
26732
      _Fields(short thriftId, String fieldName) {
26733
        _thriftId = thriftId;
26734
        _fieldName = fieldName;
26735
      }
26736
 
26737
      public short getThriftFieldId() {
26738
        return _thriftId;
26739
      }
26740
 
26741
      public String getFieldName() {
26742
        return _fieldName;
26743
      }
26744
    }
26745
 
26746
    // isset id assignments
26747
    private static final int __WAREHOUSEID_ISSET_ID = 0;
26748
    private BitSet __isset_bit_vector = new BitSet(1);
26749
 
3430 rajveer 26750
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1221 chandransh 26751
    static {
3430 rajveer 26752
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26753
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26754
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26755
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26756
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(batchOrders_args.class, metaDataMap);
1221 chandransh 26757
    }
26758
 
26759
    public batchOrders_args() {
26760
    }
26761
 
26762
    public batchOrders_args(
26763
      long warehouseId)
26764
    {
26765
      this();
26766
      this.warehouseId = warehouseId;
26767
      setWarehouseIdIsSet(true);
26768
    }
26769
 
26770
    /**
26771
     * Performs a deep copy on <i>other</i>.
26772
     */
26773
    public batchOrders_args(batchOrders_args other) {
26774
      __isset_bit_vector.clear();
26775
      __isset_bit_vector.or(other.__isset_bit_vector);
26776
      this.warehouseId = other.warehouseId;
26777
    }
26778
 
26779
    public batchOrders_args deepCopy() {
26780
      return new batchOrders_args(this);
26781
    }
26782
 
3430 rajveer 26783
    @Override
26784
    public void clear() {
26785
      setWarehouseIdIsSet(false);
26786
      this.warehouseId = 0;
1221 chandransh 26787
    }
26788
 
26789
    public long getWarehouseId() {
26790
      return this.warehouseId;
26791
    }
26792
 
3430 rajveer 26793
    public void setWarehouseId(long warehouseId) {
1221 chandransh 26794
      this.warehouseId = warehouseId;
26795
      setWarehouseIdIsSet(true);
26796
    }
26797
 
26798
    public void unsetWarehouseId() {
26799
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26800
    }
26801
 
3430 rajveer 26802
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
1221 chandransh 26803
    public boolean isSetWarehouseId() {
26804
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26805
    }
26806
 
26807
    public void setWarehouseIdIsSet(boolean value) {
26808
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26809
    }
26810
 
26811
    public void setFieldValue(_Fields field, Object value) {
26812
      switch (field) {
26813
      case WAREHOUSE_ID:
26814
        if (value == null) {
26815
          unsetWarehouseId();
26816
        } else {
26817
          setWarehouseId((Long)value);
26818
        }
26819
        break;
26820
 
26821
      }
26822
    }
26823
 
26824
    public Object getFieldValue(_Fields field) {
26825
      switch (field) {
26826
      case WAREHOUSE_ID:
3430 rajveer 26827
        return Long.valueOf(getWarehouseId());
1221 chandransh 26828
 
26829
      }
26830
      throw new IllegalStateException();
26831
    }
26832
 
3430 rajveer 26833
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26834
    public boolean isSet(_Fields field) {
26835
      if (field == null) {
26836
        throw new IllegalArgumentException();
26837
      }
1221 chandransh 26838
 
26839
      switch (field) {
26840
      case WAREHOUSE_ID:
26841
        return isSetWarehouseId();
26842
      }
26843
      throw new IllegalStateException();
26844
    }
26845
 
26846
    @Override
26847
    public boolean equals(Object that) {
26848
      if (that == null)
26849
        return false;
26850
      if (that instanceof batchOrders_args)
26851
        return this.equals((batchOrders_args)that);
26852
      return false;
26853
    }
26854
 
26855
    public boolean equals(batchOrders_args that) {
26856
      if (that == null)
26857
        return false;
26858
 
26859
      boolean this_present_warehouseId = true;
26860
      boolean that_present_warehouseId = true;
26861
      if (this_present_warehouseId || that_present_warehouseId) {
26862
        if (!(this_present_warehouseId && that_present_warehouseId))
26863
          return false;
26864
        if (this.warehouseId != that.warehouseId)
26865
          return false;
26866
      }
26867
 
26868
      return true;
26869
    }
26870
 
26871
    @Override
26872
    public int hashCode() {
26873
      return 0;
26874
    }
26875
 
26876
    public int compareTo(batchOrders_args other) {
26877
      if (!getClass().equals(other.getClass())) {
26878
        return getClass().getName().compareTo(other.getClass().getName());
26879
      }
26880
 
26881
      int lastComparison = 0;
26882
      batchOrders_args typedOther = (batchOrders_args)other;
26883
 
3430 rajveer 26884
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
1221 chandransh 26885
      if (lastComparison != 0) {
26886
        return lastComparison;
26887
      }
3430 rajveer 26888
      if (isSetWarehouseId()) {
26889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
26890
        if (lastComparison != 0) {
26891
          return lastComparison;
26892
        }
1221 chandransh 26893
      }
26894
      return 0;
26895
    }
26896
 
3430 rajveer 26897
    public _Fields fieldForId(int fieldId) {
26898
      return _Fields.findByThriftId(fieldId);
26899
    }
26900
 
26901
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26902
      org.apache.thrift.protocol.TField field;
1221 chandransh 26903
      iprot.readStructBegin();
26904
      while (true)
26905
      {
26906
        field = iprot.readFieldBegin();
3430 rajveer 26907
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1221 chandransh 26908
          break;
26909
        }
3430 rajveer 26910
        switch (field.id) {
26911
          case 1: // WAREHOUSE_ID
26912
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26913
              this.warehouseId = iprot.readI64();
26914
              setWarehouseIdIsSet(true);
26915
            } else { 
26916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26917
            }
26918
            break;
26919
          default:
26920
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1221 chandransh 26921
        }
3430 rajveer 26922
        iprot.readFieldEnd();
1221 chandransh 26923
      }
26924
      iprot.readStructEnd();
26925
      validate();
26926
    }
26927
 
3430 rajveer 26928
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1221 chandransh 26929
      validate();
26930
 
26931
      oprot.writeStructBegin(STRUCT_DESC);
26932
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26933
      oprot.writeI64(this.warehouseId);
26934
      oprot.writeFieldEnd();
26935
      oprot.writeFieldStop();
26936
      oprot.writeStructEnd();
26937
    }
26938
 
26939
    @Override
26940
    public String toString() {
26941
      StringBuilder sb = new StringBuilder("batchOrders_args(");
26942
      boolean first = true;
26943
 
26944
      sb.append("warehouseId:");
26945
      sb.append(this.warehouseId);
26946
      first = false;
26947
      sb.append(")");
26948
      return sb.toString();
26949
    }
26950
 
3430 rajveer 26951
    public void validate() throws org.apache.thrift.TException {
1221 chandransh 26952
      // check for required fields
26953
    }
26954
 
3430 rajveer 26955
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26956
      try {
26957
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26958
      } catch (org.apache.thrift.TException te) {
26959
        throw new java.io.IOException(te);
26960
      }
26961
    }
26962
 
26963
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26964
      try {
26965
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26966
      } catch (org.apache.thrift.TException te) {
26967
        throw new java.io.IOException(te);
26968
      }
26969
    }
26970
 
1221 chandransh 26971
  }
26972
 
3430 rajveer 26973
  public static class batchOrders_result implements org.apache.thrift.TBase<batchOrders_result, batchOrders_result._Fields>, java.io.Serializable, Cloneable   {
26974
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("batchOrders_result");
1221 chandransh 26975
 
3430 rajveer 26976
    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);
26977
    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);
1221 chandransh 26978
 
3430 rajveer 26979
    private List<Order> success; // required
26980
    private TransactionServiceException ex; // required
1221 chandransh 26981
 
26982
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26983
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1221 chandransh 26984
      SUCCESS((short)0, "success"),
26985
      EX((short)1, "ex");
26986
 
26987
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26988
 
26989
      static {
26990
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26991
          byName.put(field.getFieldName(), field);
26992
        }
26993
      }
26994
 
26995
      /**
26996
       * Find the _Fields constant that matches fieldId, or null if its not found.
26997
       */
26998
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26999
        switch(fieldId) {
27000
          case 0: // SUCCESS
27001
            return SUCCESS;
27002
          case 1: // EX
27003
            return EX;
27004
          default:
27005
            return null;
27006
        }
1221 chandransh 27007
      }
27008
 
27009
      /**
27010
       * Find the _Fields constant that matches fieldId, throwing an exception
27011
       * if it is not found.
27012
       */
27013
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27014
        _Fields fields = findByThriftId(fieldId);
27015
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27016
        return fields;
27017
      }
27018
 
27019
      /**
27020
       * Find the _Fields constant that matches name, or null if its not found.
27021
       */
27022
      public static _Fields findByName(String name) {
27023
        return byName.get(name);
27024
      }
27025
 
27026
      private final short _thriftId;
27027
      private final String _fieldName;
27028
 
27029
      _Fields(short thriftId, String fieldName) {
27030
        _thriftId = thriftId;
27031
        _fieldName = fieldName;
27032
      }
27033
 
27034
      public short getThriftFieldId() {
27035
        return _thriftId;
27036
      }
27037
 
27038
      public String getFieldName() {
27039
        return _fieldName;
27040
      }
27041
    }
27042
 
27043
    // isset id assignments
27044
 
3430 rajveer 27045
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1221 chandransh 27046
    static {
3430 rajveer 27047
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27048
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27049
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
27050
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
27051
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27052
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27053
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27054
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(batchOrders_result.class, metaDataMap);
1221 chandransh 27055
    }
27056
 
27057
    public batchOrders_result() {
27058
    }
27059
 
27060
    public batchOrders_result(
27061
      List<Order> success,
27062
      TransactionServiceException ex)
27063
    {
27064
      this();
27065
      this.success = success;
27066
      this.ex = ex;
27067
    }
27068
 
27069
    /**
27070
     * Performs a deep copy on <i>other</i>.
27071
     */
27072
    public batchOrders_result(batchOrders_result other) {
27073
      if (other.isSetSuccess()) {
27074
        List<Order> __this__success = new ArrayList<Order>();
27075
        for (Order other_element : other.success) {
27076
          __this__success.add(new Order(other_element));
27077
        }
27078
        this.success = __this__success;
27079
      }
27080
      if (other.isSetEx()) {
27081
        this.ex = new TransactionServiceException(other.ex);
27082
      }
27083
    }
27084
 
27085
    public batchOrders_result deepCopy() {
27086
      return new batchOrders_result(this);
27087
    }
27088
 
3430 rajveer 27089
    @Override
27090
    public void clear() {
27091
      this.success = null;
27092
      this.ex = null;
1221 chandransh 27093
    }
27094
 
27095
    public int getSuccessSize() {
27096
      return (this.success == null) ? 0 : this.success.size();
27097
    }
27098
 
27099
    public java.util.Iterator<Order> getSuccessIterator() {
27100
      return (this.success == null) ? null : this.success.iterator();
27101
    }
27102
 
27103
    public void addToSuccess(Order elem) {
27104
      if (this.success == null) {
27105
        this.success = new ArrayList<Order>();
27106
      }
27107
      this.success.add(elem);
27108
    }
27109
 
27110
    public List<Order> getSuccess() {
27111
      return this.success;
27112
    }
27113
 
3430 rajveer 27114
    public void setSuccess(List<Order> success) {
1221 chandransh 27115
      this.success = success;
27116
    }
27117
 
27118
    public void unsetSuccess() {
27119
      this.success = null;
27120
    }
27121
 
3430 rajveer 27122
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1221 chandransh 27123
    public boolean isSetSuccess() {
27124
      return this.success != null;
27125
    }
27126
 
27127
    public void setSuccessIsSet(boolean value) {
27128
      if (!value) {
27129
        this.success = null;
27130
      }
27131
    }
27132
 
27133
    public TransactionServiceException getEx() {
27134
      return this.ex;
27135
    }
27136
 
3430 rajveer 27137
    public void setEx(TransactionServiceException ex) {
1221 chandransh 27138
      this.ex = ex;
27139
    }
27140
 
27141
    public void unsetEx() {
27142
      this.ex = null;
27143
    }
27144
 
3430 rajveer 27145
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1221 chandransh 27146
    public boolean isSetEx() {
27147
      return this.ex != null;
27148
    }
27149
 
27150
    public void setExIsSet(boolean value) {
27151
      if (!value) {
27152
        this.ex = null;
27153
      }
27154
    }
27155
 
27156
    public void setFieldValue(_Fields field, Object value) {
27157
      switch (field) {
27158
      case SUCCESS:
27159
        if (value == null) {
27160
          unsetSuccess();
27161
        } else {
27162
          setSuccess((List<Order>)value);
27163
        }
27164
        break;
27165
 
27166
      case EX:
27167
        if (value == null) {
27168
          unsetEx();
27169
        } else {
27170
          setEx((TransactionServiceException)value);
27171
        }
27172
        break;
27173
 
27174
      }
27175
    }
27176
 
27177
    public Object getFieldValue(_Fields field) {
27178
      switch (field) {
27179
      case SUCCESS:
27180
        return getSuccess();
27181
 
27182
      case EX:
27183
        return getEx();
27184
 
27185
      }
27186
      throw new IllegalStateException();
27187
    }
27188
 
3430 rajveer 27189
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27190
    public boolean isSet(_Fields field) {
27191
      if (field == null) {
27192
        throw new IllegalArgumentException();
27193
      }
1221 chandransh 27194
 
27195
      switch (field) {
27196
      case SUCCESS:
27197
        return isSetSuccess();
27198
      case EX:
27199
        return isSetEx();
27200
      }
27201
      throw new IllegalStateException();
27202
    }
27203
 
27204
    @Override
27205
    public boolean equals(Object that) {
27206
      if (that == null)
27207
        return false;
27208
      if (that instanceof batchOrders_result)
27209
        return this.equals((batchOrders_result)that);
27210
      return false;
27211
    }
27212
 
27213
    public boolean equals(batchOrders_result that) {
27214
      if (that == null)
27215
        return false;
27216
 
27217
      boolean this_present_success = true && this.isSetSuccess();
27218
      boolean that_present_success = true && that.isSetSuccess();
27219
      if (this_present_success || that_present_success) {
27220
        if (!(this_present_success && that_present_success))
27221
          return false;
27222
        if (!this.success.equals(that.success))
27223
          return false;
27224
      }
27225
 
27226
      boolean this_present_ex = true && this.isSetEx();
27227
      boolean that_present_ex = true && that.isSetEx();
27228
      if (this_present_ex || that_present_ex) {
27229
        if (!(this_present_ex && that_present_ex))
27230
          return false;
27231
        if (!this.ex.equals(that.ex))
27232
          return false;
27233
      }
27234
 
27235
      return true;
27236
    }
27237
 
27238
    @Override
27239
    public int hashCode() {
27240
      return 0;
27241
    }
27242
 
27243
    public int compareTo(batchOrders_result other) {
27244
      if (!getClass().equals(other.getClass())) {
27245
        return getClass().getName().compareTo(other.getClass().getName());
27246
      }
27247
 
27248
      int lastComparison = 0;
27249
      batchOrders_result typedOther = (batchOrders_result)other;
27250
 
3430 rajveer 27251
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1221 chandransh 27252
      if (lastComparison != 0) {
27253
        return lastComparison;
27254
      }
3430 rajveer 27255
      if (isSetSuccess()) {
27256
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27257
        if (lastComparison != 0) {
27258
          return lastComparison;
27259
        }
1221 chandransh 27260
      }
3430 rajveer 27261
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1221 chandransh 27262
      if (lastComparison != 0) {
27263
        return lastComparison;
27264
      }
3430 rajveer 27265
      if (isSetEx()) {
27266
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
27267
        if (lastComparison != 0) {
27268
          return lastComparison;
27269
        }
1221 chandransh 27270
      }
27271
      return 0;
27272
    }
27273
 
3430 rajveer 27274
    public _Fields fieldForId(int fieldId) {
27275
      return _Fields.findByThriftId(fieldId);
27276
    }
27277
 
27278
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27279
      org.apache.thrift.protocol.TField field;
1221 chandransh 27280
      iprot.readStructBegin();
27281
      while (true)
27282
      {
27283
        field = iprot.readFieldBegin();
3430 rajveer 27284
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1221 chandransh 27285
          break;
27286
        }
3430 rajveer 27287
        switch (field.id) {
27288
          case 0: // SUCCESS
27289
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
27290
              {
4133 chandransh 27291
                org.apache.thrift.protocol.TList _list76 = iprot.readListBegin();
27292
                this.success = new ArrayList<Order>(_list76.size);
27293
                for (int _i77 = 0; _i77 < _list76.size; ++_i77)
1221 chandransh 27294
                {
4133 chandransh 27295
                  Order _elem78; // required
27296
                  _elem78 = new Order();
27297
                  _elem78.read(iprot);
27298
                  this.success.add(_elem78);
1221 chandransh 27299
                }
3430 rajveer 27300
                iprot.readListEnd();
1221 chandransh 27301
              }
3430 rajveer 27302
            } else { 
27303
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27304
            }
27305
            break;
27306
          case 1: // EX
27307
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27308
              this.ex = new TransactionServiceException();
27309
              this.ex.read(iprot);
27310
            } else { 
27311
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27312
            }
27313
            break;
27314
          default:
27315
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1221 chandransh 27316
        }
3430 rajveer 27317
        iprot.readFieldEnd();
1221 chandransh 27318
      }
27319
      iprot.readStructEnd();
27320
      validate();
27321
    }
27322
 
3430 rajveer 27323
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1221 chandransh 27324
      oprot.writeStructBegin(STRUCT_DESC);
27325
 
27326
      if (this.isSetSuccess()) {
27327
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27328
        {
3430 rajveer 27329
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 27330
          for (Order _iter79 : this.success)
1221 chandransh 27331
          {
4133 chandransh 27332
            _iter79.write(oprot);
1221 chandransh 27333
          }
27334
          oprot.writeListEnd();
27335
        }
27336
        oprot.writeFieldEnd();
27337
      } else if (this.isSetEx()) {
27338
        oprot.writeFieldBegin(EX_FIELD_DESC);
27339
        this.ex.write(oprot);
27340
        oprot.writeFieldEnd();
27341
      }
27342
      oprot.writeFieldStop();
27343
      oprot.writeStructEnd();
27344
    }
27345
 
27346
    @Override
27347
    public String toString() {
27348
      StringBuilder sb = new StringBuilder("batchOrders_result(");
27349
      boolean first = true;
27350
 
27351
      sb.append("success:");
27352
      if (this.success == null) {
27353
        sb.append("null");
27354
      } else {
27355
        sb.append(this.success);
27356
      }
27357
      first = false;
27358
      if (!first) sb.append(", ");
27359
      sb.append("ex:");
27360
      if (this.ex == null) {
27361
        sb.append("null");
27362
      } else {
27363
        sb.append(this.ex);
27364
      }
27365
      first = false;
27366
      sb.append(")");
27367
      return sb.toString();
27368
    }
27369
 
3430 rajveer 27370
    public void validate() throws org.apache.thrift.TException {
1221 chandransh 27371
      // check for required fields
27372
    }
27373
 
3430 rajveer 27374
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27375
      try {
27376
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27377
      } catch (org.apache.thrift.TException te) {
27378
        throw new java.io.IOException(te);
27379
      }
27380
    }
27381
 
27382
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27383
      try {
27384
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27385
      } catch (org.apache.thrift.TException te) {
27386
        throw new java.io.IOException(te);
27387
      }
27388
    }
27389
 
1221 chandransh 27390
  }
27391
 
3430 rajveer 27392
  public static class markOrderAsOutOfStock_args implements org.apache.thrift.TBase<markOrderAsOutOfStock_args, markOrderAsOutOfStock_args._Fields>, java.io.Serializable, Cloneable   {
27393
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsOutOfStock_args");
1209 chandransh 27394
 
3430 rajveer 27395
    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);
1209 chandransh 27396
 
3430 rajveer 27397
    private long orderId; // required
1209 chandransh 27398
 
27399
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 27400
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1209 chandransh 27401
      ORDER_ID((short)1, "orderId");
27402
 
27403
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27404
 
27405
      static {
27406
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27407
          byName.put(field.getFieldName(), field);
27408
        }
27409
      }
27410
 
27411
      /**
27412
       * Find the _Fields constant that matches fieldId, or null if its not found.
27413
       */
27414
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 27415
        switch(fieldId) {
27416
          case 1: // ORDER_ID
27417
            return ORDER_ID;
27418
          default:
27419
            return null;
27420
        }
1209 chandransh 27421
      }
27422
 
27423
      /**
27424
       * Find the _Fields constant that matches fieldId, throwing an exception
27425
       * if it is not found.
27426
       */
27427
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27428
        _Fields fields = findByThriftId(fieldId);
27429
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27430
        return fields;
27431
      }
27432
 
27433
      /**
27434
       * Find the _Fields constant that matches name, or null if its not found.
27435
       */
27436
      public static _Fields findByName(String name) {
27437
        return byName.get(name);
27438
      }
27439
 
27440
      private final short _thriftId;
27441
      private final String _fieldName;
27442
 
27443
      _Fields(short thriftId, String fieldName) {
27444
        _thriftId = thriftId;
27445
        _fieldName = fieldName;
27446
      }
27447
 
27448
      public short getThriftFieldId() {
27449
        return _thriftId;
27450
      }
27451
 
27452
      public String getFieldName() {
27453
        return _fieldName;
27454
      }
27455
    }
27456
 
27457
    // isset id assignments
27458
    private static final int __ORDERID_ISSET_ID = 0;
27459
    private BitSet __isset_bit_vector = new BitSet(1);
27460
 
3430 rajveer 27461
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1209 chandransh 27462
    static {
3430 rajveer 27463
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27464
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27465
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27466
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27467
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsOutOfStock_args.class, metaDataMap);
1209 chandransh 27468
    }
27469
 
27470
    public markOrderAsOutOfStock_args() {
27471
    }
27472
 
27473
    public markOrderAsOutOfStock_args(
27474
      long orderId)
27475
    {
27476
      this();
27477
      this.orderId = orderId;
27478
      setOrderIdIsSet(true);
27479
    }
27480
 
27481
    /**
27482
     * Performs a deep copy on <i>other</i>.
27483
     */
27484
    public markOrderAsOutOfStock_args(markOrderAsOutOfStock_args other) {
27485
      __isset_bit_vector.clear();
27486
      __isset_bit_vector.or(other.__isset_bit_vector);
27487
      this.orderId = other.orderId;
27488
    }
27489
 
27490
    public markOrderAsOutOfStock_args deepCopy() {
27491
      return new markOrderAsOutOfStock_args(this);
27492
    }
27493
 
3430 rajveer 27494
    @Override
27495
    public void clear() {
27496
      setOrderIdIsSet(false);
27497
      this.orderId = 0;
1209 chandransh 27498
    }
27499
 
27500
    public long getOrderId() {
27501
      return this.orderId;
27502
    }
27503
 
3430 rajveer 27504
    public void setOrderId(long orderId) {
1209 chandransh 27505
      this.orderId = orderId;
27506
      setOrderIdIsSet(true);
27507
    }
27508
 
27509
    public void unsetOrderId() {
27510
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
27511
    }
27512
 
3430 rajveer 27513
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
1209 chandransh 27514
    public boolean isSetOrderId() {
27515
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
27516
    }
27517
 
27518
    public void setOrderIdIsSet(boolean value) {
27519
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
27520
    }
27521
 
27522
    public void setFieldValue(_Fields field, Object value) {
27523
      switch (field) {
27524
      case ORDER_ID:
27525
        if (value == null) {
27526
          unsetOrderId();
27527
        } else {
27528
          setOrderId((Long)value);
27529
        }
27530
        break;
27531
 
27532
      }
27533
    }
27534
 
27535
    public Object getFieldValue(_Fields field) {
27536
      switch (field) {
27537
      case ORDER_ID:
3430 rajveer 27538
        return Long.valueOf(getOrderId());
1209 chandransh 27539
 
27540
      }
27541
      throw new IllegalStateException();
27542
    }
27543
 
3430 rajveer 27544
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27545
    public boolean isSet(_Fields field) {
27546
      if (field == null) {
27547
        throw new IllegalArgumentException();
27548
      }
1209 chandransh 27549
 
27550
      switch (field) {
27551
      case ORDER_ID:
27552
        return isSetOrderId();
27553
      }
27554
      throw new IllegalStateException();
27555
    }
27556
 
27557
    @Override
27558
    public boolean equals(Object that) {
27559
      if (that == null)
27560
        return false;
27561
      if (that instanceof markOrderAsOutOfStock_args)
27562
        return this.equals((markOrderAsOutOfStock_args)that);
27563
      return false;
27564
    }
27565
 
27566
    public boolean equals(markOrderAsOutOfStock_args that) {
27567
      if (that == null)
27568
        return false;
27569
 
27570
      boolean this_present_orderId = true;
27571
      boolean that_present_orderId = true;
27572
      if (this_present_orderId || that_present_orderId) {
27573
        if (!(this_present_orderId && that_present_orderId))
27574
          return false;
27575
        if (this.orderId != that.orderId)
27576
          return false;
27577
      }
27578
 
27579
      return true;
27580
    }
27581
 
27582
    @Override
27583
    public int hashCode() {
27584
      return 0;
27585
    }
27586
 
27587
    public int compareTo(markOrderAsOutOfStock_args other) {
27588
      if (!getClass().equals(other.getClass())) {
27589
        return getClass().getName().compareTo(other.getClass().getName());
27590
      }
27591
 
27592
      int lastComparison = 0;
27593
      markOrderAsOutOfStock_args typedOther = (markOrderAsOutOfStock_args)other;
27594
 
3430 rajveer 27595
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
1209 chandransh 27596
      if (lastComparison != 0) {
27597
        return lastComparison;
27598
      }
3430 rajveer 27599
      if (isSetOrderId()) {
27600
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
27601
        if (lastComparison != 0) {
27602
          return lastComparison;
27603
        }
1209 chandransh 27604
      }
27605
      return 0;
27606
    }
27607
 
3430 rajveer 27608
    public _Fields fieldForId(int fieldId) {
27609
      return _Fields.findByThriftId(fieldId);
27610
    }
27611
 
27612
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27613
      org.apache.thrift.protocol.TField field;
1209 chandransh 27614
      iprot.readStructBegin();
27615
      while (true)
27616
      {
27617
        field = iprot.readFieldBegin();
3430 rajveer 27618
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1209 chandransh 27619
          break;
27620
        }
3430 rajveer 27621
        switch (field.id) {
27622
          case 1: // ORDER_ID
27623
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27624
              this.orderId = iprot.readI64();
27625
              setOrderIdIsSet(true);
27626
            } else { 
27627
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27628
            }
27629
            break;
27630
          default:
27631
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1209 chandransh 27632
        }
3430 rajveer 27633
        iprot.readFieldEnd();
1209 chandransh 27634
      }
27635
      iprot.readStructEnd();
27636
      validate();
27637
    }
27638
 
3430 rajveer 27639
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1209 chandransh 27640
      validate();
27641
 
27642
      oprot.writeStructBegin(STRUCT_DESC);
27643
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
27644
      oprot.writeI64(this.orderId);
27645
      oprot.writeFieldEnd();
27646
      oprot.writeFieldStop();
27647
      oprot.writeStructEnd();
27648
    }
27649
 
27650
    @Override
27651
    public String toString() {
27652
      StringBuilder sb = new StringBuilder("markOrderAsOutOfStock_args(");
27653
      boolean first = true;
27654
 
27655
      sb.append("orderId:");
27656
      sb.append(this.orderId);
27657
      first = false;
27658
      sb.append(")");
27659
      return sb.toString();
27660
    }
27661
 
3430 rajveer 27662
    public void validate() throws org.apache.thrift.TException {
1209 chandransh 27663
      // check for required fields
27664
    }
27665
 
3430 rajveer 27666
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27667
      try {
27668
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27669
      } catch (org.apache.thrift.TException te) {
27670
        throw new java.io.IOException(te);
27671
      }
27672
    }
27673
 
27674
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27675
      try {
27676
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27677
      } catch (org.apache.thrift.TException te) {
27678
        throw new java.io.IOException(te);
27679
      }
27680
    }
27681
 
1209 chandransh 27682
  }
27683
 
3430 rajveer 27684
  public static class markOrderAsOutOfStock_result implements org.apache.thrift.TBase<markOrderAsOutOfStock_result, markOrderAsOutOfStock_result._Fields>, java.io.Serializable, Cloneable   {
27685
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsOutOfStock_result");
1209 chandransh 27686
 
3430 rajveer 27687
    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);
27688
    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);
1209 chandransh 27689
 
3430 rajveer 27690
    private boolean success; // required
27691
    private TransactionServiceException ex; // required
1209 chandransh 27692
 
27693
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 27694
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1209 chandransh 27695
      SUCCESS((short)0, "success"),
27696
      EX((short)1, "ex");
27697
 
27698
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27699
 
27700
      static {
27701
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27702
          byName.put(field.getFieldName(), field);
27703
        }
27704
      }
27705
 
27706
      /**
27707
       * Find the _Fields constant that matches fieldId, or null if its not found.
27708
       */
27709
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 27710
        switch(fieldId) {
27711
          case 0: // SUCCESS
27712
            return SUCCESS;
27713
          case 1: // EX
27714
            return EX;
27715
          default:
27716
            return null;
27717
        }
1209 chandransh 27718
      }
27719
 
27720
      /**
27721
       * Find the _Fields constant that matches fieldId, throwing an exception
27722
       * if it is not found.
27723
       */
27724
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27725
        _Fields fields = findByThriftId(fieldId);
27726
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27727
        return fields;
27728
      }
27729
 
27730
      /**
27731
       * Find the _Fields constant that matches name, or null if its not found.
27732
       */
27733
      public static _Fields findByName(String name) {
27734
        return byName.get(name);
27735
      }
27736
 
27737
      private final short _thriftId;
27738
      private final String _fieldName;
27739
 
27740
      _Fields(short thriftId, String fieldName) {
27741
        _thriftId = thriftId;
27742
        _fieldName = fieldName;
27743
      }
27744
 
27745
      public short getThriftFieldId() {
27746
        return _thriftId;
27747
      }
27748
 
27749
      public String getFieldName() {
27750
        return _fieldName;
27751
      }
27752
    }
27753
 
27754
    // isset id assignments
27755
    private static final int __SUCCESS_ISSET_ID = 0;
27756
    private BitSet __isset_bit_vector = new BitSet(1);
27757
 
3430 rajveer 27758
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1209 chandransh 27759
    static {
3430 rajveer 27760
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27761
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27762
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
27763
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27764
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27765
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27766
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsOutOfStock_result.class, metaDataMap);
1209 chandransh 27767
    }
27768
 
27769
    public markOrderAsOutOfStock_result() {
27770
    }
27771
 
27772
    public markOrderAsOutOfStock_result(
27773
      boolean success,
27774
      TransactionServiceException ex)
27775
    {
27776
      this();
27777
      this.success = success;
27778
      setSuccessIsSet(true);
27779
      this.ex = ex;
27780
    }
27781
 
27782
    /**
27783
     * Performs a deep copy on <i>other</i>.
27784
     */
27785
    public markOrderAsOutOfStock_result(markOrderAsOutOfStock_result other) {
27786
      __isset_bit_vector.clear();
27787
      __isset_bit_vector.or(other.__isset_bit_vector);
27788
      this.success = other.success;
27789
      if (other.isSetEx()) {
27790
        this.ex = new TransactionServiceException(other.ex);
27791
      }
27792
    }
27793
 
27794
    public markOrderAsOutOfStock_result deepCopy() {
27795
      return new markOrderAsOutOfStock_result(this);
27796
    }
27797
 
3430 rajveer 27798
    @Override
27799
    public void clear() {
27800
      setSuccessIsSet(false);
27801
      this.success = false;
27802
      this.ex = null;
1209 chandransh 27803
    }
27804
 
27805
    public boolean isSuccess() {
27806
      return this.success;
27807
    }
27808
 
3430 rajveer 27809
    public void setSuccess(boolean success) {
1209 chandransh 27810
      this.success = success;
27811
      setSuccessIsSet(true);
27812
    }
27813
 
27814
    public void unsetSuccess() {
27815
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
27816
    }
27817
 
3430 rajveer 27818
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1209 chandransh 27819
    public boolean isSetSuccess() {
27820
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
27821
    }
27822
 
27823
    public void setSuccessIsSet(boolean value) {
27824
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
27825
    }
27826
 
27827
    public TransactionServiceException getEx() {
27828
      return this.ex;
27829
    }
27830
 
3430 rajveer 27831
    public void setEx(TransactionServiceException ex) {
1209 chandransh 27832
      this.ex = ex;
27833
    }
27834
 
27835
    public void unsetEx() {
27836
      this.ex = null;
27837
    }
27838
 
3430 rajveer 27839
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1209 chandransh 27840
    public boolean isSetEx() {
27841
      return this.ex != null;
27842
    }
27843
 
27844
    public void setExIsSet(boolean value) {
27845
      if (!value) {
27846
        this.ex = null;
27847
      }
27848
    }
27849
 
27850
    public void setFieldValue(_Fields field, Object value) {
27851
      switch (field) {
27852
      case SUCCESS:
27853
        if (value == null) {
27854
          unsetSuccess();
27855
        } else {
27856
          setSuccess((Boolean)value);
27857
        }
27858
        break;
27859
 
27860
      case EX:
27861
        if (value == null) {
27862
          unsetEx();
27863
        } else {
27864
          setEx((TransactionServiceException)value);
27865
        }
27866
        break;
27867
 
27868
      }
27869
    }
27870
 
27871
    public Object getFieldValue(_Fields field) {
27872
      switch (field) {
27873
      case SUCCESS:
3430 rajveer 27874
        return Boolean.valueOf(isSuccess());
1209 chandransh 27875
 
27876
      case EX:
27877
        return getEx();
27878
 
27879
      }
27880
      throw new IllegalStateException();
27881
    }
27882
 
3430 rajveer 27883
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27884
    public boolean isSet(_Fields field) {
27885
      if (field == null) {
27886
        throw new IllegalArgumentException();
27887
      }
1209 chandransh 27888
 
27889
      switch (field) {
27890
      case SUCCESS:
27891
        return isSetSuccess();
27892
      case EX:
27893
        return isSetEx();
27894
      }
27895
      throw new IllegalStateException();
27896
    }
27897
 
27898
    @Override
27899
    public boolean equals(Object that) {
27900
      if (that == null)
27901
        return false;
27902
      if (that instanceof markOrderAsOutOfStock_result)
27903
        return this.equals((markOrderAsOutOfStock_result)that);
27904
      return false;
27905
    }
27906
 
27907
    public boolean equals(markOrderAsOutOfStock_result that) {
27908
      if (that == null)
27909
        return false;
27910
 
27911
      boolean this_present_success = true;
27912
      boolean that_present_success = true;
27913
      if (this_present_success || that_present_success) {
27914
        if (!(this_present_success && that_present_success))
27915
          return false;
27916
        if (this.success != that.success)
27917
          return false;
27918
      }
27919
 
27920
      boolean this_present_ex = true && this.isSetEx();
27921
      boolean that_present_ex = true && that.isSetEx();
27922
      if (this_present_ex || that_present_ex) {
27923
        if (!(this_present_ex && that_present_ex))
27924
          return false;
27925
        if (!this.ex.equals(that.ex))
27926
          return false;
27927
      }
27928
 
27929
      return true;
27930
    }
27931
 
27932
    @Override
27933
    public int hashCode() {
27934
      return 0;
27935
    }
27936
 
27937
    public int compareTo(markOrderAsOutOfStock_result other) {
27938
      if (!getClass().equals(other.getClass())) {
27939
        return getClass().getName().compareTo(other.getClass().getName());
27940
      }
27941
 
27942
      int lastComparison = 0;
27943
      markOrderAsOutOfStock_result typedOther = (markOrderAsOutOfStock_result)other;
27944
 
3430 rajveer 27945
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1209 chandransh 27946
      if (lastComparison != 0) {
27947
        return lastComparison;
27948
      }
3430 rajveer 27949
      if (isSetSuccess()) {
27950
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27951
        if (lastComparison != 0) {
27952
          return lastComparison;
27953
        }
1209 chandransh 27954
      }
3430 rajveer 27955
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1209 chandransh 27956
      if (lastComparison != 0) {
27957
        return lastComparison;
27958
      }
3430 rajveer 27959
      if (isSetEx()) {
27960
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
27961
        if (lastComparison != 0) {
27962
          return lastComparison;
27963
        }
1209 chandransh 27964
      }
27965
      return 0;
27966
    }
27967
 
3430 rajveer 27968
    public _Fields fieldForId(int fieldId) {
27969
      return _Fields.findByThriftId(fieldId);
27970
    }
27971
 
27972
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27973
      org.apache.thrift.protocol.TField field;
1209 chandransh 27974
      iprot.readStructBegin();
27975
      while (true)
27976
      {
27977
        field = iprot.readFieldBegin();
3430 rajveer 27978
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1209 chandransh 27979
          break;
27980
        }
3430 rajveer 27981
        switch (field.id) {
27982
          case 0: // SUCCESS
27983
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
27984
              this.success = iprot.readBool();
27985
              setSuccessIsSet(true);
27986
            } else { 
27987
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27988
            }
27989
            break;
27990
          case 1: // EX
27991
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27992
              this.ex = new TransactionServiceException();
27993
              this.ex.read(iprot);
27994
            } else { 
27995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27996
            }
27997
            break;
27998
          default:
27999
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1209 chandransh 28000
        }
3430 rajveer 28001
        iprot.readFieldEnd();
1209 chandransh 28002
      }
28003
      iprot.readStructEnd();
28004
      validate();
28005
    }
28006
 
3430 rajveer 28007
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1209 chandransh 28008
      oprot.writeStructBegin(STRUCT_DESC);
28009
 
28010
      if (this.isSetSuccess()) {
28011
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28012
        oprot.writeBool(this.success);
28013
        oprot.writeFieldEnd();
28014
      } else if (this.isSetEx()) {
28015
        oprot.writeFieldBegin(EX_FIELD_DESC);
28016
        this.ex.write(oprot);
28017
        oprot.writeFieldEnd();
28018
      }
28019
      oprot.writeFieldStop();
28020
      oprot.writeStructEnd();
28021
    }
28022
 
28023
    @Override
28024
    public String toString() {
28025
      StringBuilder sb = new StringBuilder("markOrderAsOutOfStock_result(");
28026
      boolean first = true;
28027
 
28028
      sb.append("success:");
28029
      sb.append(this.success);
28030
      first = false;
28031
      if (!first) sb.append(", ");
28032
      sb.append("ex:");
28033
      if (this.ex == null) {
28034
        sb.append("null");
28035
      } else {
28036
        sb.append(this.ex);
28037
      }
28038
      first = false;
28039
      sb.append(")");
28040
      return sb.toString();
28041
    }
28042
 
3430 rajveer 28043
    public void validate() throws org.apache.thrift.TException {
1209 chandransh 28044
      // check for required fields
28045
    }
28046
 
3430 rajveer 28047
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28048
      try {
28049
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28050
      } catch (org.apache.thrift.TException te) {
28051
        throw new java.io.IOException(te);
28052
      }
28053
    }
28054
 
28055
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28056
      try {
28057
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28058
      } catch (org.apache.thrift.TException te) {
28059
        throw new java.io.IOException(te);
28060
      }
28061
    }
28062
 
1209 chandransh 28063
  }
28064
 
3430 rajveer 28065
  public static class verifyOrder_args implements org.apache.thrift.TBase<verifyOrder_args, verifyOrder_args._Fields>, java.io.Serializable, Cloneable   {
28066
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("verifyOrder_args");
758 chandransh 28067
 
3430 rajveer 28068
    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);
758 chandransh 28069
 
3430 rajveer 28070
    private long orderId; // required
758 chandransh 28071
 
28072
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28073
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 28074
      ORDER_ID((short)1, "orderId");
758 chandransh 28075
 
28076
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28077
 
28078
      static {
28079
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28080
          byName.put(field.getFieldName(), field);
28081
        }
28082
      }
28083
 
28084
      /**
28085
       * Find the _Fields constant that matches fieldId, or null if its not found.
28086
       */
28087
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28088
        switch(fieldId) {
28089
          case 1: // ORDER_ID
28090
            return ORDER_ID;
28091
          default:
28092
            return null;
28093
        }
758 chandransh 28094
      }
28095
 
28096
      /**
28097
       * Find the _Fields constant that matches fieldId, throwing an exception
28098
       * if it is not found.
28099
       */
28100
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28101
        _Fields fields = findByThriftId(fieldId);
28102
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28103
        return fields;
28104
      }
28105
 
28106
      /**
28107
       * Find the _Fields constant that matches name, or null if its not found.
28108
       */
28109
      public static _Fields findByName(String name) {
28110
        return byName.get(name);
28111
      }
28112
 
28113
      private final short _thriftId;
28114
      private final String _fieldName;
28115
 
28116
      _Fields(short thriftId, String fieldName) {
28117
        _thriftId = thriftId;
28118
        _fieldName = fieldName;
28119
      }
28120
 
28121
      public short getThriftFieldId() {
28122
        return _thriftId;
28123
      }
28124
 
28125
      public String getFieldName() {
28126
        return _fieldName;
28127
      }
28128
    }
28129
 
28130
    // isset id assignments
3061 chandransh 28131
    private static final int __ORDERID_ISSET_ID = 0;
28132
    private BitSet __isset_bit_vector = new BitSet(1);
758 chandransh 28133
 
3430 rajveer 28134
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
758 chandransh 28135
    static {
3430 rajveer 28136
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28137
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28138
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28139
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28140
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(verifyOrder_args.class, metaDataMap);
758 chandransh 28141
    }
28142
 
3061 chandransh 28143
    public verifyOrder_args() {
758 chandransh 28144
    }
28145
 
3061 chandransh 28146
    public verifyOrder_args(
28147
      long orderId)
758 chandransh 28148
    {
28149
      this();
3061 chandransh 28150
      this.orderId = orderId;
28151
      setOrderIdIsSet(true);
758 chandransh 28152
    }
28153
 
28154
    /**
28155
     * Performs a deep copy on <i>other</i>.
28156
     */
3061 chandransh 28157
    public verifyOrder_args(verifyOrder_args other) {
758 chandransh 28158
      __isset_bit_vector.clear();
28159
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 28160
      this.orderId = other.orderId;
758 chandransh 28161
    }
28162
 
3061 chandransh 28163
    public verifyOrder_args deepCopy() {
28164
      return new verifyOrder_args(this);
758 chandransh 28165
    }
28166
 
3430 rajveer 28167
    @Override
28168
    public void clear() {
28169
      setOrderIdIsSet(false);
28170
      this.orderId = 0;
758 chandransh 28171
    }
28172
 
3061 chandransh 28173
    public long getOrderId() {
28174
      return this.orderId;
758 chandransh 28175
    }
28176
 
3430 rajveer 28177
    public void setOrderId(long orderId) {
3061 chandransh 28178
      this.orderId = orderId;
28179
      setOrderIdIsSet(true);
758 chandransh 28180
    }
28181
 
3061 chandransh 28182
    public void unsetOrderId() {
28183
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
758 chandransh 28184
    }
28185
 
3430 rajveer 28186
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 28187
    public boolean isSetOrderId() {
28188
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
758 chandransh 28189
    }
28190
 
3061 chandransh 28191
    public void setOrderIdIsSet(boolean value) {
28192
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
758 chandransh 28193
    }
28194
 
28195
    public void setFieldValue(_Fields field, Object value) {
28196
      switch (field) {
3061 chandransh 28197
      case ORDER_ID:
758 chandransh 28198
        if (value == null) {
3061 chandransh 28199
          unsetOrderId();
758 chandransh 28200
        } else {
3061 chandransh 28201
          setOrderId((Long)value);
758 chandransh 28202
        }
28203
        break;
28204
 
28205
      }
28206
    }
28207
 
28208
    public Object getFieldValue(_Fields field) {
28209
      switch (field) {
3061 chandransh 28210
      case ORDER_ID:
3430 rajveer 28211
        return Long.valueOf(getOrderId());
758 chandransh 28212
 
28213
      }
28214
      throw new IllegalStateException();
28215
    }
28216
 
3430 rajveer 28217
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28218
    public boolean isSet(_Fields field) {
28219
      if (field == null) {
28220
        throw new IllegalArgumentException();
28221
      }
758 chandransh 28222
 
28223
      switch (field) {
3061 chandransh 28224
      case ORDER_ID:
28225
        return isSetOrderId();
758 chandransh 28226
      }
28227
      throw new IllegalStateException();
28228
    }
28229
 
28230
    @Override
28231
    public boolean equals(Object that) {
28232
      if (that == null)
28233
        return false;
3061 chandransh 28234
      if (that instanceof verifyOrder_args)
28235
        return this.equals((verifyOrder_args)that);
758 chandransh 28236
      return false;
28237
    }
28238
 
3061 chandransh 28239
    public boolean equals(verifyOrder_args that) {
758 chandransh 28240
      if (that == null)
28241
        return false;
28242
 
3061 chandransh 28243
      boolean this_present_orderId = true;
28244
      boolean that_present_orderId = true;
28245
      if (this_present_orderId || that_present_orderId) {
28246
        if (!(this_present_orderId && that_present_orderId))
758 chandransh 28247
          return false;
3061 chandransh 28248
        if (this.orderId != that.orderId)
758 chandransh 28249
          return false;
28250
      }
28251
 
28252
      return true;
28253
    }
28254
 
28255
    @Override
28256
    public int hashCode() {
28257
      return 0;
28258
    }
28259
 
3061 chandransh 28260
    public int compareTo(verifyOrder_args other) {
758 chandransh 28261
      if (!getClass().equals(other.getClass())) {
28262
        return getClass().getName().compareTo(other.getClass().getName());
28263
      }
28264
 
28265
      int lastComparison = 0;
3061 chandransh 28266
      verifyOrder_args typedOther = (verifyOrder_args)other;
758 chandransh 28267
 
3430 rajveer 28268
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
758 chandransh 28269
      if (lastComparison != 0) {
28270
        return lastComparison;
28271
      }
3430 rajveer 28272
      if (isSetOrderId()) {
28273
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
28274
        if (lastComparison != 0) {
28275
          return lastComparison;
28276
        }
758 chandransh 28277
      }
28278
      return 0;
28279
    }
28280
 
3430 rajveer 28281
    public _Fields fieldForId(int fieldId) {
28282
      return _Fields.findByThriftId(fieldId);
28283
    }
28284
 
28285
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28286
      org.apache.thrift.protocol.TField field;
758 chandransh 28287
      iprot.readStructBegin();
28288
      while (true)
28289
      {
28290
        field = iprot.readFieldBegin();
3430 rajveer 28291
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
758 chandransh 28292
          break;
28293
        }
3430 rajveer 28294
        switch (field.id) {
28295
          case 1: // ORDER_ID
28296
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28297
              this.orderId = iprot.readI64();
28298
              setOrderIdIsSet(true);
28299
            } else { 
28300
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28301
            }
28302
            break;
28303
          default:
28304
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
758 chandransh 28305
        }
3430 rajveer 28306
        iprot.readFieldEnd();
758 chandransh 28307
      }
28308
      iprot.readStructEnd();
28309
      validate();
28310
    }
28311
 
3430 rajveer 28312
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
758 chandransh 28313
      validate();
28314
 
28315
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 28316
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
28317
      oprot.writeI64(this.orderId);
758 chandransh 28318
      oprot.writeFieldEnd();
28319
      oprot.writeFieldStop();
28320
      oprot.writeStructEnd();
28321
    }
28322
 
28323
    @Override
28324
    public String toString() {
3061 chandransh 28325
      StringBuilder sb = new StringBuilder("verifyOrder_args(");
758 chandransh 28326
      boolean first = true;
28327
 
3061 chandransh 28328
      sb.append("orderId:");
28329
      sb.append(this.orderId);
758 chandransh 28330
      first = false;
28331
      sb.append(")");
28332
      return sb.toString();
28333
    }
28334
 
3430 rajveer 28335
    public void validate() throws org.apache.thrift.TException {
758 chandransh 28336
      // check for required fields
28337
    }
28338
 
3430 rajveer 28339
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28340
      try {
28341
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28342
      } catch (org.apache.thrift.TException te) {
28343
        throw new java.io.IOException(te);
28344
      }
28345
    }
28346
 
28347
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28348
      try {
28349
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28350
      } catch (org.apache.thrift.TException te) {
28351
        throw new java.io.IOException(te);
28352
      }
28353
    }
28354
 
758 chandransh 28355
  }
28356
 
3430 rajveer 28357
  public static class verifyOrder_result implements org.apache.thrift.TBase<verifyOrder_result, verifyOrder_result._Fields>, java.io.Serializable, Cloneable   {
28358
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("verifyOrder_result");
758 chandransh 28359
 
3430 rajveer 28360
    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);
28361
    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);
758 chandransh 28362
 
3430 rajveer 28363
    private boolean success; // required
28364
    private TransactionServiceException ex; // required
758 chandransh 28365
 
28366
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28367
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
758 chandransh 28368
      SUCCESS((short)0, "success"),
28369
      EX((short)1, "ex");
28370
 
28371
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28372
 
28373
      static {
28374
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28375
          byName.put(field.getFieldName(), field);
28376
        }
28377
      }
28378
 
28379
      /**
28380
       * Find the _Fields constant that matches fieldId, or null if its not found.
28381
       */
28382
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28383
        switch(fieldId) {
28384
          case 0: // SUCCESS
28385
            return SUCCESS;
28386
          case 1: // EX
28387
            return EX;
28388
          default:
28389
            return null;
28390
        }
758 chandransh 28391
      }
28392
 
28393
      /**
28394
       * Find the _Fields constant that matches fieldId, throwing an exception
28395
       * if it is not found.
28396
       */
28397
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28398
        _Fields fields = findByThriftId(fieldId);
28399
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28400
        return fields;
28401
      }
28402
 
28403
      /**
28404
       * Find the _Fields constant that matches name, or null if its not found.
28405
       */
28406
      public static _Fields findByName(String name) {
28407
        return byName.get(name);
28408
      }
28409
 
28410
      private final short _thriftId;
28411
      private final String _fieldName;
28412
 
28413
      _Fields(short thriftId, String fieldName) {
28414
        _thriftId = thriftId;
28415
        _fieldName = fieldName;
28416
      }
28417
 
28418
      public short getThriftFieldId() {
28419
        return _thriftId;
28420
      }
28421
 
28422
      public String getFieldName() {
28423
        return _fieldName;
28424
      }
28425
    }
28426
 
28427
    // isset id assignments
28428
    private static final int __SUCCESS_ISSET_ID = 0;
28429
    private BitSet __isset_bit_vector = new BitSet(1);
28430
 
3430 rajveer 28431
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
758 chandransh 28432
    static {
3430 rajveer 28433
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28434
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28435
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
28436
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28437
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(verifyOrder_result.class, metaDataMap);
758 chandransh 28440
    }
28441
 
3061 chandransh 28442
    public verifyOrder_result() {
758 chandransh 28443
    }
28444
 
3061 chandransh 28445
    public verifyOrder_result(
758 chandransh 28446
      boolean success,
28447
      TransactionServiceException ex)
28448
    {
28449
      this();
28450
      this.success = success;
28451
      setSuccessIsSet(true);
28452
      this.ex = ex;
28453
    }
28454
 
28455
    /**
28456
     * Performs a deep copy on <i>other</i>.
28457
     */
3061 chandransh 28458
    public verifyOrder_result(verifyOrder_result other) {
758 chandransh 28459
      __isset_bit_vector.clear();
28460
      __isset_bit_vector.or(other.__isset_bit_vector);
28461
      this.success = other.success;
28462
      if (other.isSetEx()) {
28463
        this.ex = new TransactionServiceException(other.ex);
28464
      }
28465
    }
28466
 
3061 chandransh 28467
    public verifyOrder_result deepCopy() {
28468
      return new verifyOrder_result(this);
758 chandransh 28469
    }
28470
 
3430 rajveer 28471
    @Override
28472
    public void clear() {
28473
      setSuccessIsSet(false);
28474
      this.success = false;
28475
      this.ex = null;
758 chandransh 28476
    }
28477
 
28478
    public boolean isSuccess() {
28479
      return this.success;
28480
    }
28481
 
3430 rajveer 28482
    public void setSuccess(boolean success) {
758 chandransh 28483
      this.success = success;
28484
      setSuccessIsSet(true);
28485
    }
28486
 
28487
    public void unsetSuccess() {
28488
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
28489
    }
28490
 
3430 rajveer 28491
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
758 chandransh 28492
    public boolean isSetSuccess() {
28493
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
28494
    }
28495
 
28496
    public void setSuccessIsSet(boolean value) {
28497
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
28498
    }
28499
 
28500
    public TransactionServiceException getEx() {
28501
      return this.ex;
28502
    }
28503
 
3430 rajveer 28504
    public void setEx(TransactionServiceException ex) {
758 chandransh 28505
      this.ex = ex;
28506
    }
28507
 
28508
    public void unsetEx() {
28509
      this.ex = null;
28510
    }
28511
 
3430 rajveer 28512
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
758 chandransh 28513
    public boolean isSetEx() {
28514
      return this.ex != null;
28515
    }
28516
 
28517
    public void setExIsSet(boolean value) {
28518
      if (!value) {
28519
        this.ex = null;
28520
      }
28521
    }
28522
 
28523
    public void setFieldValue(_Fields field, Object value) {
28524
      switch (field) {
28525
      case SUCCESS:
28526
        if (value == null) {
28527
          unsetSuccess();
28528
        } else {
28529
          setSuccess((Boolean)value);
28530
        }
28531
        break;
28532
 
28533
      case EX:
28534
        if (value == null) {
28535
          unsetEx();
28536
        } else {
28537
          setEx((TransactionServiceException)value);
28538
        }
28539
        break;
28540
 
28541
      }
28542
    }
28543
 
28544
    public Object getFieldValue(_Fields field) {
28545
      switch (field) {
28546
      case SUCCESS:
3430 rajveer 28547
        return Boolean.valueOf(isSuccess());
758 chandransh 28548
 
28549
      case EX:
28550
        return getEx();
28551
 
28552
      }
28553
      throw new IllegalStateException();
28554
    }
28555
 
3430 rajveer 28556
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28557
    public boolean isSet(_Fields field) {
28558
      if (field == null) {
28559
        throw new IllegalArgumentException();
28560
      }
758 chandransh 28561
 
28562
      switch (field) {
28563
      case SUCCESS:
28564
        return isSetSuccess();
28565
      case EX:
28566
        return isSetEx();
28567
      }
28568
      throw new IllegalStateException();
28569
    }
28570
 
28571
    @Override
28572
    public boolean equals(Object that) {
28573
      if (that == null)
28574
        return false;
3061 chandransh 28575
      if (that instanceof verifyOrder_result)
28576
        return this.equals((verifyOrder_result)that);
758 chandransh 28577
      return false;
28578
    }
28579
 
3061 chandransh 28580
    public boolean equals(verifyOrder_result that) {
758 chandransh 28581
      if (that == null)
28582
        return false;
28583
 
28584
      boolean this_present_success = true;
28585
      boolean that_present_success = true;
28586
      if (this_present_success || that_present_success) {
28587
        if (!(this_present_success && that_present_success))
28588
          return false;
28589
        if (this.success != that.success)
28590
          return false;
28591
      }
28592
 
28593
      boolean this_present_ex = true && this.isSetEx();
28594
      boolean that_present_ex = true && that.isSetEx();
28595
      if (this_present_ex || that_present_ex) {
28596
        if (!(this_present_ex && that_present_ex))
28597
          return false;
28598
        if (!this.ex.equals(that.ex))
28599
          return false;
28600
      }
28601
 
28602
      return true;
28603
    }
28604
 
28605
    @Override
28606
    public int hashCode() {
28607
      return 0;
28608
    }
28609
 
3061 chandransh 28610
    public int compareTo(verifyOrder_result other) {
758 chandransh 28611
      if (!getClass().equals(other.getClass())) {
28612
        return getClass().getName().compareTo(other.getClass().getName());
28613
      }
28614
 
28615
      int lastComparison = 0;
3061 chandransh 28616
      verifyOrder_result typedOther = (verifyOrder_result)other;
758 chandransh 28617
 
3430 rajveer 28618
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
758 chandransh 28619
      if (lastComparison != 0) {
28620
        return lastComparison;
28621
      }
3430 rajveer 28622
      if (isSetSuccess()) {
28623
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28624
        if (lastComparison != 0) {
28625
          return lastComparison;
28626
        }
758 chandransh 28627
      }
3430 rajveer 28628
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
758 chandransh 28629
      if (lastComparison != 0) {
28630
        return lastComparison;
28631
      }
3430 rajveer 28632
      if (isSetEx()) {
28633
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
28634
        if (lastComparison != 0) {
28635
          return lastComparison;
28636
        }
758 chandransh 28637
      }
28638
      return 0;
28639
    }
28640
 
3430 rajveer 28641
    public _Fields fieldForId(int fieldId) {
28642
      return _Fields.findByThriftId(fieldId);
28643
    }
28644
 
28645
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28646
      org.apache.thrift.protocol.TField field;
758 chandransh 28647
      iprot.readStructBegin();
28648
      while (true)
28649
      {
28650
        field = iprot.readFieldBegin();
3430 rajveer 28651
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
758 chandransh 28652
          break;
28653
        }
3430 rajveer 28654
        switch (field.id) {
28655
          case 0: // SUCCESS
28656
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
28657
              this.success = iprot.readBool();
28658
              setSuccessIsSet(true);
28659
            } else { 
28660
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28661
            }
28662
            break;
28663
          case 1: // EX
28664
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28665
              this.ex = new TransactionServiceException();
28666
              this.ex.read(iprot);
28667
            } else { 
28668
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28669
            }
28670
            break;
28671
          default:
28672
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
758 chandransh 28673
        }
3430 rajveer 28674
        iprot.readFieldEnd();
758 chandransh 28675
      }
28676
      iprot.readStructEnd();
28677
      validate();
28678
    }
28679
 
3430 rajveer 28680
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
758 chandransh 28681
      oprot.writeStructBegin(STRUCT_DESC);
28682
 
28683
      if (this.isSetSuccess()) {
28684
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28685
        oprot.writeBool(this.success);
28686
        oprot.writeFieldEnd();
28687
      } else if (this.isSetEx()) {
28688
        oprot.writeFieldBegin(EX_FIELD_DESC);
28689
        this.ex.write(oprot);
28690
        oprot.writeFieldEnd();
28691
      }
28692
      oprot.writeFieldStop();
28693
      oprot.writeStructEnd();
28694
    }
28695
 
28696
    @Override
28697
    public String toString() {
3061 chandransh 28698
      StringBuilder sb = new StringBuilder("verifyOrder_result(");
758 chandransh 28699
      boolean first = true;
28700
 
28701
      sb.append("success:");
28702
      sb.append(this.success);
28703
      first = false;
28704
      if (!first) sb.append(", ");
28705
      sb.append("ex:");
28706
      if (this.ex == null) {
28707
        sb.append("null");
28708
      } else {
28709
        sb.append(this.ex);
28710
      }
28711
      first = false;
28712
      sb.append(")");
28713
      return sb.toString();
28714
    }
28715
 
3430 rajveer 28716
    public void validate() throws org.apache.thrift.TException {
758 chandransh 28717
      // check for required fields
28718
    }
28719
 
3430 rajveer 28720
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28721
      try {
28722
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28723
      } catch (org.apache.thrift.TException te) {
28724
        throw new java.io.IOException(te);
28725
      }
28726
    }
28727
 
28728
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28729
      try {
28730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28731
      } catch (org.apache.thrift.TException te) {
28732
        throw new java.io.IOException(te);
28733
      }
28734
    }
28735
 
758 chandransh 28736
  }
28737
 
3430 rajveer 28738
  public static class acceptOrder_args implements org.apache.thrift.TBase<acceptOrder_args, acceptOrder_args._Fields>, java.io.Serializable, Cloneable   {
28739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrder_args");
1114 chandransh 28740
 
3430 rajveer 28741
    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);
1114 chandransh 28742
 
3430 rajveer 28743
    private long orderId; // required
1114 chandransh 28744
 
28745
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28746
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 28747
      ORDER_ID((short)1, "orderId");
1114 chandransh 28748
 
28749
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28750
 
28751
      static {
28752
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28753
          byName.put(field.getFieldName(), field);
28754
        }
28755
      }
28756
 
28757
      /**
28758
       * Find the _Fields constant that matches fieldId, or null if its not found.
28759
       */
28760
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28761
        switch(fieldId) {
28762
          case 1: // ORDER_ID
28763
            return ORDER_ID;
28764
          default:
28765
            return null;
28766
        }
1114 chandransh 28767
      }
28768
 
28769
      /**
28770
       * Find the _Fields constant that matches fieldId, throwing an exception
28771
       * if it is not found.
28772
       */
28773
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28774
        _Fields fields = findByThriftId(fieldId);
28775
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28776
        return fields;
28777
      }
28778
 
28779
      /**
28780
       * Find the _Fields constant that matches name, or null if its not found.
28781
       */
28782
      public static _Fields findByName(String name) {
28783
        return byName.get(name);
28784
      }
28785
 
28786
      private final short _thriftId;
28787
      private final String _fieldName;
28788
 
28789
      _Fields(short thriftId, String fieldName) {
28790
        _thriftId = thriftId;
28791
        _fieldName = fieldName;
28792
      }
28793
 
28794
      public short getThriftFieldId() {
28795
        return _thriftId;
28796
      }
28797
 
28798
      public String getFieldName() {
28799
        return _fieldName;
28800
      }
28801
    }
28802
 
28803
    // isset id assignments
3061 chandransh 28804
    private static final int __ORDERID_ISSET_ID = 0;
1114 chandransh 28805
    private BitSet __isset_bit_vector = new BitSet(1);
28806
 
3430 rajveer 28807
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1114 chandransh 28808
    static {
3430 rajveer 28809
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28810
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28811
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28812
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28813
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrder_args.class, metaDataMap);
1114 chandransh 28814
    }
28815
 
3061 chandransh 28816
    public acceptOrder_args() {
1114 chandransh 28817
    }
28818
 
3061 chandransh 28819
    public acceptOrder_args(
28820
      long orderId)
1114 chandransh 28821
    {
28822
      this();
3061 chandransh 28823
      this.orderId = orderId;
28824
      setOrderIdIsSet(true);
1114 chandransh 28825
    }
28826
 
28827
    /**
28828
     * Performs a deep copy on <i>other</i>.
28829
     */
3061 chandransh 28830
    public acceptOrder_args(acceptOrder_args other) {
1114 chandransh 28831
      __isset_bit_vector.clear();
28832
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 28833
      this.orderId = other.orderId;
1114 chandransh 28834
    }
28835
 
3061 chandransh 28836
    public acceptOrder_args deepCopy() {
28837
      return new acceptOrder_args(this);
1114 chandransh 28838
    }
28839
 
3430 rajveer 28840
    @Override
28841
    public void clear() {
28842
      setOrderIdIsSet(false);
28843
      this.orderId = 0;
1114 chandransh 28844
    }
28845
 
3061 chandransh 28846
    public long getOrderId() {
28847
      return this.orderId;
1114 chandransh 28848
    }
28849
 
3430 rajveer 28850
    public void setOrderId(long orderId) {
3061 chandransh 28851
      this.orderId = orderId;
28852
      setOrderIdIsSet(true);
1114 chandransh 28853
    }
28854
 
3061 chandransh 28855
    public void unsetOrderId() {
28856
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
1114 chandransh 28857
    }
28858
 
3430 rajveer 28859
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 28860
    public boolean isSetOrderId() {
28861
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
1114 chandransh 28862
    }
28863
 
3061 chandransh 28864
    public void setOrderIdIsSet(boolean value) {
28865
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
1114 chandransh 28866
    }
28867
 
28868
    public void setFieldValue(_Fields field, Object value) {
28869
      switch (field) {
3061 chandransh 28870
      case ORDER_ID:
1114 chandransh 28871
        if (value == null) {
3061 chandransh 28872
          unsetOrderId();
1114 chandransh 28873
        } else {
3061 chandransh 28874
          setOrderId((Long)value);
1114 chandransh 28875
        }
28876
        break;
28877
 
28878
      }
28879
    }
28880
 
28881
    public Object getFieldValue(_Fields field) {
28882
      switch (field) {
3061 chandransh 28883
      case ORDER_ID:
3430 rajveer 28884
        return Long.valueOf(getOrderId());
1114 chandransh 28885
 
28886
      }
28887
      throw new IllegalStateException();
28888
    }
28889
 
3430 rajveer 28890
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28891
    public boolean isSet(_Fields field) {
28892
      if (field == null) {
28893
        throw new IllegalArgumentException();
28894
      }
1114 chandransh 28895
 
28896
      switch (field) {
3061 chandransh 28897
      case ORDER_ID:
28898
        return isSetOrderId();
1114 chandransh 28899
      }
28900
      throw new IllegalStateException();
28901
    }
28902
 
28903
    @Override
28904
    public boolean equals(Object that) {
28905
      if (that == null)
28906
        return false;
3061 chandransh 28907
      if (that instanceof acceptOrder_args)
28908
        return this.equals((acceptOrder_args)that);
1114 chandransh 28909
      return false;
28910
    }
28911
 
3061 chandransh 28912
    public boolean equals(acceptOrder_args that) {
1114 chandransh 28913
      if (that == null)
28914
        return false;
28915
 
3061 chandransh 28916
      boolean this_present_orderId = true;
28917
      boolean that_present_orderId = true;
28918
      if (this_present_orderId || that_present_orderId) {
28919
        if (!(this_present_orderId && that_present_orderId))
1114 chandransh 28920
          return false;
3061 chandransh 28921
        if (this.orderId != that.orderId)
1114 chandransh 28922
          return false;
28923
      }
28924
 
28925
      return true;
28926
    }
28927
 
28928
    @Override
28929
    public int hashCode() {
28930
      return 0;
28931
    }
28932
 
3061 chandransh 28933
    public int compareTo(acceptOrder_args other) {
28934
      if (!getClass().equals(other.getClass())) {
28935
        return getClass().getName().compareTo(other.getClass().getName());
28936
      }
28937
 
28938
      int lastComparison = 0;
28939
      acceptOrder_args typedOther = (acceptOrder_args)other;
28940
 
3430 rajveer 28941
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
3061 chandransh 28942
      if (lastComparison != 0) {
28943
        return lastComparison;
28944
      }
3430 rajveer 28945
      if (isSetOrderId()) {
28946
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
28947
        if (lastComparison != 0) {
28948
          return lastComparison;
28949
        }
3061 chandransh 28950
      }
28951
      return 0;
28952
    }
28953
 
3430 rajveer 28954
    public _Fields fieldForId(int fieldId) {
28955
      return _Fields.findByThriftId(fieldId);
28956
    }
28957
 
28958
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28959
      org.apache.thrift.protocol.TField field;
1114 chandransh 28960
      iprot.readStructBegin();
28961
      while (true)
28962
      {
28963
        field = iprot.readFieldBegin();
3430 rajveer 28964
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1114 chandransh 28965
          break;
28966
        }
3430 rajveer 28967
        switch (field.id) {
28968
          case 1: // ORDER_ID
28969
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28970
              this.orderId = iprot.readI64();
28971
              setOrderIdIsSet(true);
28972
            } else { 
28973
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28974
            }
28975
            break;
28976
          default:
28977
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1114 chandransh 28978
        }
3430 rajveer 28979
        iprot.readFieldEnd();
1114 chandransh 28980
      }
28981
      iprot.readStructEnd();
28982
      validate();
28983
    }
28984
 
3430 rajveer 28985
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1114 chandransh 28986
      validate();
28987
 
28988
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 28989
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
28990
      oprot.writeI64(this.orderId);
1114 chandransh 28991
      oprot.writeFieldEnd();
28992
      oprot.writeFieldStop();
28993
      oprot.writeStructEnd();
28994
    }
28995
 
28996
    @Override
28997
    public String toString() {
3061 chandransh 28998
      StringBuilder sb = new StringBuilder("acceptOrder_args(");
1114 chandransh 28999
      boolean first = true;
29000
 
3061 chandransh 29001
      sb.append("orderId:");
29002
      sb.append(this.orderId);
1114 chandransh 29003
      first = false;
29004
      sb.append(")");
29005
      return sb.toString();
29006
    }
29007
 
3430 rajveer 29008
    public void validate() throws org.apache.thrift.TException {
1114 chandransh 29009
      // check for required fields
29010
    }
29011
 
3430 rajveer 29012
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29013
      try {
29014
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29015
      } catch (org.apache.thrift.TException te) {
29016
        throw new java.io.IOException(te);
29017
      }
29018
    }
29019
 
29020
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29021
      try {
29022
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29023
      } catch (org.apache.thrift.TException te) {
29024
        throw new java.io.IOException(te);
29025
      }
29026
    }
29027
 
1114 chandransh 29028
  }
29029
 
3430 rajveer 29030
  public static class acceptOrder_result implements org.apache.thrift.TBase<acceptOrder_result, acceptOrder_result._Fields>, java.io.Serializable, Cloneable   {
29031
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrder_result");
1114 chandransh 29032
 
3430 rajveer 29033
    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);
29034
    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);
1114 chandransh 29035
 
3430 rajveer 29036
    private boolean success; // required
29037
    private TransactionServiceException ex; // required
1114 chandransh 29038
 
29039
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29040
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1114 chandransh 29041
      SUCCESS((short)0, "success"),
29042
      EX((short)1, "ex");
29043
 
29044
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29045
 
29046
      static {
29047
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29048
          byName.put(field.getFieldName(), field);
29049
        }
29050
      }
29051
 
29052
      /**
29053
       * Find the _Fields constant that matches fieldId, or null if its not found.
29054
       */
29055
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29056
        switch(fieldId) {
29057
          case 0: // SUCCESS
29058
            return SUCCESS;
29059
          case 1: // EX
29060
            return EX;
29061
          default:
29062
            return null;
29063
        }
1114 chandransh 29064
      }
29065
 
29066
      /**
29067
       * Find the _Fields constant that matches fieldId, throwing an exception
29068
       * if it is not found.
29069
       */
29070
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29071
        _Fields fields = findByThriftId(fieldId);
29072
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29073
        return fields;
29074
      }
29075
 
29076
      /**
29077
       * Find the _Fields constant that matches name, or null if its not found.
29078
       */
29079
      public static _Fields findByName(String name) {
29080
        return byName.get(name);
29081
      }
29082
 
29083
      private final short _thriftId;
29084
      private final String _fieldName;
29085
 
29086
      _Fields(short thriftId, String fieldName) {
29087
        _thriftId = thriftId;
29088
        _fieldName = fieldName;
29089
      }
29090
 
29091
      public short getThriftFieldId() {
29092
        return _thriftId;
29093
      }
29094
 
29095
      public String getFieldName() {
29096
        return _fieldName;
29097
      }
29098
    }
29099
 
29100
    // isset id assignments
3061 chandransh 29101
    private static final int __SUCCESS_ISSET_ID = 0;
29102
    private BitSet __isset_bit_vector = new BitSet(1);
1114 chandransh 29103
 
3430 rajveer 29104
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1114 chandransh 29105
    static {
3430 rajveer 29106
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29107
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29108
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
29109
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29110
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29111
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29112
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrder_result.class, metaDataMap);
1114 chandransh 29113
    }
29114
 
3061 chandransh 29115
    public acceptOrder_result() {
1114 chandransh 29116
    }
29117
 
3061 chandransh 29118
    public acceptOrder_result(
29119
      boolean success,
1114 chandransh 29120
      TransactionServiceException ex)
29121
    {
29122
      this();
29123
      this.success = success;
3061 chandransh 29124
      setSuccessIsSet(true);
1114 chandransh 29125
      this.ex = ex;
29126
    }
29127
 
29128
    /**
29129
     * Performs a deep copy on <i>other</i>.
29130
     */
3061 chandransh 29131
    public acceptOrder_result(acceptOrder_result other) {
29132
      __isset_bit_vector.clear();
29133
      __isset_bit_vector.or(other.__isset_bit_vector);
29134
      this.success = other.success;
1114 chandransh 29135
      if (other.isSetEx()) {
29136
        this.ex = new TransactionServiceException(other.ex);
29137
      }
29138
    }
29139
 
3061 chandransh 29140
    public acceptOrder_result deepCopy() {
29141
      return new acceptOrder_result(this);
1114 chandransh 29142
    }
29143
 
3430 rajveer 29144
    @Override
29145
    public void clear() {
29146
      setSuccessIsSet(false);
29147
      this.success = false;
29148
      this.ex = null;
1114 chandransh 29149
    }
29150
 
3061 chandransh 29151
    public boolean isSuccess() {
1114 chandransh 29152
      return this.success;
29153
    }
29154
 
3430 rajveer 29155
    public void setSuccess(boolean success) {
1114 chandransh 29156
      this.success = success;
3061 chandransh 29157
      setSuccessIsSet(true);
1114 chandransh 29158
    }
29159
 
29160
    public void unsetSuccess() {
3061 chandransh 29161
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
1114 chandransh 29162
    }
29163
 
3430 rajveer 29164
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1114 chandransh 29165
    public boolean isSetSuccess() {
3061 chandransh 29166
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
1114 chandransh 29167
    }
29168
 
29169
    public void setSuccessIsSet(boolean value) {
3061 chandransh 29170
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
1114 chandransh 29171
    }
29172
 
29173
    public TransactionServiceException getEx() {
29174
      return this.ex;
29175
    }
29176
 
3430 rajveer 29177
    public void setEx(TransactionServiceException ex) {
1114 chandransh 29178
      this.ex = ex;
29179
    }
29180
 
29181
    public void unsetEx() {
29182
      this.ex = null;
29183
    }
29184
 
3430 rajveer 29185
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1114 chandransh 29186
    public boolean isSetEx() {
29187
      return this.ex != null;
29188
    }
29189
 
29190
    public void setExIsSet(boolean value) {
29191
      if (!value) {
29192
        this.ex = null;
29193
      }
29194
    }
29195
 
29196
    public void setFieldValue(_Fields field, Object value) {
29197
      switch (field) {
29198
      case SUCCESS:
29199
        if (value == null) {
29200
          unsetSuccess();
29201
        } else {
3061 chandransh 29202
          setSuccess((Boolean)value);
1114 chandransh 29203
        }
29204
        break;
29205
 
29206
      case EX:
29207
        if (value == null) {
29208
          unsetEx();
29209
        } else {
29210
          setEx((TransactionServiceException)value);
29211
        }
29212
        break;
29213
 
29214
      }
29215
    }
29216
 
29217
    public Object getFieldValue(_Fields field) {
29218
      switch (field) {
29219
      case SUCCESS:
3430 rajveer 29220
        return Boolean.valueOf(isSuccess());
1114 chandransh 29221
 
29222
      case EX:
29223
        return getEx();
29224
 
29225
      }
29226
      throw new IllegalStateException();
29227
    }
29228
 
3430 rajveer 29229
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29230
    public boolean isSet(_Fields field) {
29231
      if (field == null) {
29232
        throw new IllegalArgumentException();
29233
      }
1114 chandransh 29234
 
29235
      switch (field) {
29236
      case SUCCESS:
29237
        return isSetSuccess();
29238
      case EX:
29239
        return isSetEx();
29240
      }
29241
      throw new IllegalStateException();
29242
    }
29243
 
29244
    @Override
29245
    public boolean equals(Object that) {
29246
      if (that == null)
29247
        return false;
3061 chandransh 29248
      if (that instanceof acceptOrder_result)
29249
        return this.equals((acceptOrder_result)that);
1114 chandransh 29250
      return false;
29251
    }
29252
 
3061 chandransh 29253
    public boolean equals(acceptOrder_result that) {
1114 chandransh 29254
      if (that == null)
29255
        return false;
29256
 
3061 chandransh 29257
      boolean this_present_success = true;
29258
      boolean that_present_success = true;
1114 chandransh 29259
      if (this_present_success || that_present_success) {
29260
        if (!(this_present_success && that_present_success))
29261
          return false;
3061 chandransh 29262
        if (this.success != that.success)
1114 chandransh 29263
          return false;
29264
      }
29265
 
29266
      boolean this_present_ex = true && this.isSetEx();
29267
      boolean that_present_ex = true && that.isSetEx();
29268
      if (this_present_ex || that_present_ex) {
29269
        if (!(this_present_ex && that_present_ex))
29270
          return false;
29271
        if (!this.ex.equals(that.ex))
29272
          return false;
29273
      }
29274
 
29275
      return true;
29276
    }
29277
 
29278
    @Override
29279
    public int hashCode() {
29280
      return 0;
29281
    }
29282
 
3061 chandransh 29283
    public int compareTo(acceptOrder_result other) {
1114 chandransh 29284
      if (!getClass().equals(other.getClass())) {
29285
        return getClass().getName().compareTo(other.getClass().getName());
29286
      }
29287
 
29288
      int lastComparison = 0;
3061 chandransh 29289
      acceptOrder_result typedOther = (acceptOrder_result)other;
1114 chandransh 29290
 
3430 rajveer 29291
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1114 chandransh 29292
      if (lastComparison != 0) {
29293
        return lastComparison;
29294
      }
3430 rajveer 29295
      if (isSetSuccess()) {
29296
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29297
        if (lastComparison != 0) {
29298
          return lastComparison;
29299
        }
1114 chandransh 29300
      }
3430 rajveer 29301
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1114 chandransh 29302
      if (lastComparison != 0) {
29303
        return lastComparison;
29304
      }
3430 rajveer 29305
      if (isSetEx()) {
29306
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
29307
        if (lastComparison != 0) {
29308
          return lastComparison;
29309
        }
1114 chandransh 29310
      }
29311
      return 0;
29312
    }
29313
 
3430 rajveer 29314
    public _Fields fieldForId(int fieldId) {
29315
      return _Fields.findByThriftId(fieldId);
29316
    }
29317
 
29318
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29319
      org.apache.thrift.protocol.TField field;
1114 chandransh 29320
      iprot.readStructBegin();
29321
      while (true)
29322
      {
29323
        field = iprot.readFieldBegin();
3430 rajveer 29324
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1114 chandransh 29325
          break;
29326
        }
3430 rajveer 29327
        switch (field.id) {
29328
          case 0: // SUCCESS
29329
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
29330
              this.success = iprot.readBool();
29331
              setSuccessIsSet(true);
29332
            } else { 
29333
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29334
            }
29335
            break;
29336
          case 1: // EX
29337
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29338
              this.ex = new TransactionServiceException();
29339
              this.ex.read(iprot);
29340
            } else { 
29341
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29342
            }
29343
            break;
29344
          default:
29345
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1114 chandransh 29346
        }
3430 rajveer 29347
        iprot.readFieldEnd();
1114 chandransh 29348
      }
29349
      iprot.readStructEnd();
29350
      validate();
29351
    }
29352
 
3430 rajveer 29353
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1114 chandransh 29354
      oprot.writeStructBegin(STRUCT_DESC);
29355
 
29356
      if (this.isSetSuccess()) {
29357
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 29358
        oprot.writeBool(this.success);
1114 chandransh 29359
        oprot.writeFieldEnd();
29360
      } else if (this.isSetEx()) {
29361
        oprot.writeFieldBegin(EX_FIELD_DESC);
29362
        this.ex.write(oprot);
29363
        oprot.writeFieldEnd();
29364
      }
29365
      oprot.writeFieldStop();
29366
      oprot.writeStructEnd();
29367
    }
29368
 
29369
    @Override
29370
    public String toString() {
3061 chandransh 29371
      StringBuilder sb = new StringBuilder("acceptOrder_result(");
1114 chandransh 29372
      boolean first = true;
29373
 
29374
      sb.append("success:");
3061 chandransh 29375
      sb.append(this.success);
1114 chandransh 29376
      first = false;
29377
      if (!first) sb.append(", ");
29378
      sb.append("ex:");
29379
      if (this.ex == null) {
29380
        sb.append("null");
29381
      } else {
29382
        sb.append(this.ex);
29383
      }
29384
      first = false;
29385
      sb.append(")");
29386
      return sb.toString();
29387
    }
29388
 
3430 rajveer 29389
    public void validate() throws org.apache.thrift.TException {
1114 chandransh 29390
      // check for required fields
29391
    }
29392
 
3430 rajveer 29393
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29394
      try {
29395
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29396
      } catch (org.apache.thrift.TException te) {
29397
        throw new java.io.IOException(te);
29398
      }
29399
    }
29400
 
29401
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29402
      try {
29403
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29404
      } catch (org.apache.thrift.TException te) {
29405
        throw new java.io.IOException(te);
29406
      }
29407
    }
29408
 
1114 chandransh 29409
  }
29410
 
3430 rajveer 29411
  public static class addBillingDetails_args implements org.apache.thrift.TBase<addBillingDetails_args, addBillingDetails_args._Fields>, java.io.Serializable, Cloneable   {
29412
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_args");
1133 chandransh 29413
 
3430 rajveer 29414
    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);
29415
    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);
4283 anupam.sin 29416
    private static final org.apache.thrift.protocol.TField IMEI_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("imeiNumber", org.apache.thrift.protocol.TType.I64, (short)3);
29417
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
29418
    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);
29419
    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);
29420
    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);
29421
    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)8);
1133 chandransh 29422
 
3430 rajveer 29423
    private long orderId; // required
29424
    private String invoice_number; // required
4283 anupam.sin 29425
    private long imeiNumber; // required
29426
    private String itemNumber; // required
3430 rajveer 29427
    private String billed_by; // required
4264 rajveer 29428
    private long jacketNumber; // required
4283 anupam.sin 29429
    private long billingType; // required
29430
    private long vendorId; // required
1133 chandransh 29431
 
29432
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29433
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 29434
      ORDER_ID((short)1, "orderId"),
29435
      INVOICE_NUMBER((short)2, "invoice_number"),
4283 anupam.sin 29436
      IMEI_NUMBER((short)3, "imeiNumber"),
29437
      ITEM_NUMBER((short)4, "itemNumber"),
29438
      BILLED_BY((short)5, "billed_by"),
29439
      JACKET_NUMBER((short)6, "jacketNumber"),
29440
      BILLING_TYPE((short)7, "billingType"),
29441
      VENDOR_ID((short)8, "vendorId");
1133 chandransh 29442
 
29443
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29444
 
29445
      static {
29446
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29447
          byName.put(field.getFieldName(), field);
29448
        }
29449
      }
29450
 
29451
      /**
29452
       * Find the _Fields constant that matches fieldId, or null if its not found.
29453
       */
29454
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29455
        switch(fieldId) {
29456
          case 1: // ORDER_ID
29457
            return ORDER_ID;
29458
          case 2: // INVOICE_NUMBER
29459
            return INVOICE_NUMBER;
4283 anupam.sin 29460
          case 3: // IMEI_NUMBER
29461
            return IMEI_NUMBER;
29462
          case 4: // ITEM_NUMBER
29463
            return ITEM_NUMBER;
29464
          case 5: // BILLED_BY
3430 rajveer 29465
            return BILLED_BY;
4283 anupam.sin 29466
          case 6: // JACKET_NUMBER
4264 rajveer 29467
            return JACKET_NUMBER;
4283 anupam.sin 29468
          case 7: // BILLING_TYPE
29469
            return BILLING_TYPE;
29470
          case 8: // VENDOR_ID
29471
            return VENDOR_ID;
3430 rajveer 29472
          default:
29473
            return null;
29474
        }
1133 chandransh 29475
      }
29476
 
29477
      /**
29478
       * Find the _Fields constant that matches fieldId, throwing an exception
29479
       * if it is not found.
29480
       */
29481
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29482
        _Fields fields = findByThriftId(fieldId);
29483
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29484
        return fields;
29485
      }
29486
 
29487
      /**
29488
       * Find the _Fields constant that matches name, or null if its not found.
29489
       */
29490
      public static _Fields findByName(String name) {
29491
        return byName.get(name);
29492
      }
29493
 
29494
      private final short _thriftId;
29495
      private final String _fieldName;
29496
 
29497
      _Fields(short thriftId, String fieldName) {
29498
        _thriftId = thriftId;
29499
        _fieldName = fieldName;
29500
      }
29501
 
29502
      public short getThriftFieldId() {
29503
        return _thriftId;
29504
      }
29505
 
29506
      public String getFieldName() {
29507
        return _fieldName;
29508
      }
29509
    }
29510
 
29511
    // isset id assignments
3061 chandransh 29512
    private static final int __ORDERID_ISSET_ID = 0;
4283 anupam.sin 29513
    private static final int __IMEINUMBER_ISSET_ID = 1;
29514
    private static final int __JACKETNUMBER_ISSET_ID = 2;
29515
    private static final int __BILLINGTYPE_ISSET_ID = 3;
29516
    private static final int __VENDORID_ISSET_ID = 4;
29517
    private BitSet __isset_bit_vector = new BitSet(5);
1133 chandransh 29518
 
3430 rajveer 29519
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1133 chandransh 29520
    static {
3430 rajveer 29521
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29522
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29523
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29524
      tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoice_number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29525
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4283 anupam.sin 29526
      tmpMap.put(_Fields.IMEI_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("imeiNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29527
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29528
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29529
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 29530
      tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billed_by", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29531
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4264 rajveer 29532
      tmpMap.put(_Fields.JACKET_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("jacketNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29533
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4283 anupam.sin 29534
      tmpMap.put(_Fields.BILLING_TYPE, new org.apache.thrift.meta_data.FieldMetaData("billingType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29535
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29536
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29537
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 29538
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29539
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_args.class, metaDataMap);
1133 chandransh 29540
    }
29541
 
3061 chandransh 29542
    public addBillingDetails_args() {
1133 chandransh 29543
    }
29544
 
3061 chandransh 29545
    public addBillingDetails_args(
29546
      long orderId,
29547
      String invoice_number,
4283 anupam.sin 29548
      long imeiNumber,
29549
      String itemNumber,
4264 rajveer 29550
      String billed_by,
4283 anupam.sin 29551
      long jacketNumber,
29552
      long billingType,
29553
      long vendorId)
1133 chandransh 29554
    {
29555
      this();
3061 chandransh 29556
      this.orderId = orderId;
29557
      setOrderIdIsSet(true);
29558
      this.invoice_number = invoice_number;
4283 anupam.sin 29559
      this.imeiNumber = imeiNumber;
29560
      setImeiNumberIsSet(true);
29561
      this.itemNumber = itemNumber;
3061 chandransh 29562
      this.billed_by = billed_by;
4264 rajveer 29563
      this.jacketNumber = jacketNumber;
29564
      setJacketNumberIsSet(true);
4283 anupam.sin 29565
      this.billingType = billingType;
29566
      setBillingTypeIsSet(true);
29567
      this.vendorId = vendorId;
29568
      setVendorIdIsSet(true);
1133 chandransh 29569
    }
29570
 
29571
    /**
29572
     * Performs a deep copy on <i>other</i>.
29573
     */
3061 chandransh 29574
    public addBillingDetails_args(addBillingDetails_args other) {
1133 chandransh 29575
      __isset_bit_vector.clear();
29576
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 29577
      this.orderId = other.orderId;
29578
      if (other.isSetInvoice_number()) {
29579
        this.invoice_number = other.invoice_number;
1133 chandransh 29580
      }
4283 anupam.sin 29581
      this.imeiNumber = other.imeiNumber;
29582
      if (other.isSetItemNumber()) {
29583
        this.itemNumber = other.itemNumber;
29584
      }
3061 chandransh 29585
      if (other.isSetBilled_by()) {
29586
        this.billed_by = other.billed_by;
29587
      }
4264 rajveer 29588
      this.jacketNumber = other.jacketNumber;
4283 anupam.sin 29589
      this.billingType = other.billingType;
29590
      this.vendorId = other.vendorId;
1133 chandransh 29591
    }
29592
 
3061 chandransh 29593
    public addBillingDetails_args deepCopy() {
29594
      return new addBillingDetails_args(this);
1133 chandransh 29595
    }
29596
 
3430 rajveer 29597
    @Override
29598
    public void clear() {
29599
      setOrderIdIsSet(false);
29600
      this.orderId = 0;
29601
      this.invoice_number = null;
4283 anupam.sin 29602
      setImeiNumberIsSet(false);
29603
      this.imeiNumber = 0;
29604
      this.itemNumber = null;
3430 rajveer 29605
      this.billed_by = null;
4264 rajveer 29606
      setJacketNumberIsSet(false);
29607
      this.jacketNumber = 0;
4283 anupam.sin 29608
      setBillingTypeIsSet(false);
29609
      this.billingType = 0;
29610
      setVendorIdIsSet(false);
29611
      this.vendorId = 0;
1133 chandransh 29612
    }
29613
 
3061 chandransh 29614
    public long getOrderId() {
29615
      return this.orderId;
1133 chandransh 29616
    }
29617
 
3430 rajveer 29618
    public void setOrderId(long orderId) {
3061 chandransh 29619
      this.orderId = orderId;
29620
      setOrderIdIsSet(true);
1133 chandransh 29621
    }
29622
 
3061 chandransh 29623
    public void unsetOrderId() {
29624
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
1133 chandransh 29625
    }
29626
 
3430 rajveer 29627
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 29628
    public boolean isSetOrderId() {
29629
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
1133 chandransh 29630
    }
29631
 
3061 chandransh 29632
    public void setOrderIdIsSet(boolean value) {
29633
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
1133 chandransh 29634
    }
29635
 
3061 chandransh 29636
    public String getInvoice_number() {
29637
      return this.invoice_number;
1133 chandransh 29638
    }
29639
 
3430 rajveer 29640
    public void setInvoice_number(String invoice_number) {
3061 chandransh 29641
      this.invoice_number = invoice_number;
29642
    }
29643
 
29644
    public void unsetInvoice_number() {
29645
      this.invoice_number = null;
29646
    }
29647
 
3430 rajveer 29648
    /** Returns true if field invoice_number is set (has been assigned a value) and false otherwise */
3061 chandransh 29649
    public boolean isSetInvoice_number() {
29650
      return this.invoice_number != null;
29651
    }
29652
 
29653
    public void setInvoice_numberIsSet(boolean value) {
29654
      if (!value) {
29655
        this.invoice_number = null;
1133 chandransh 29656
      }
29657
    }
29658
 
3061 chandransh 29659
    public long getImeiNumber() {
29660
      return this.imeiNumber;
1245 chandransh 29661
    }
29662
 
3430 rajveer 29663
    public void setImeiNumber(long imeiNumber) {
3061 chandransh 29664
      this.imeiNumber = imeiNumber;
29665
      setImeiNumberIsSet(true);
29666
    }
29667
 
29668
    public void unsetImeiNumber() {
29669
      __isset_bit_vector.clear(__IMEINUMBER_ISSET_ID);
29670
    }
29671
 
3430 rajveer 29672
    /** Returns true if field imeiNumber is set (has been assigned a value) and false otherwise */
3061 chandransh 29673
    public boolean isSetImeiNumber() {
29674
      return __isset_bit_vector.get(__IMEINUMBER_ISSET_ID);
29675
    }
29676
 
29677
    public void setImeiNumberIsSet(boolean value) {
29678
      __isset_bit_vector.set(__IMEINUMBER_ISSET_ID, value);
29679
    }
29680
 
29681
    public String getItemNumber() {
29682
      return this.itemNumber;
29683
    }
29684
 
3430 rajveer 29685
    public void setItemNumber(String itemNumber) {
3061 chandransh 29686
      this.itemNumber = itemNumber;
29687
    }
29688
 
29689
    public void unsetItemNumber() {
29690
      this.itemNumber = null;
29691
    }
29692
 
3430 rajveer 29693
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
3061 chandransh 29694
    public boolean isSetItemNumber() {
29695
      return this.itemNumber != null;
29696
    }
29697
 
29698
    public void setItemNumberIsSet(boolean value) {
29699
      if (!value) {
29700
        this.itemNumber = null;
1245 chandransh 29701
      }
29702
    }
29703
 
4283 anupam.sin 29704
    public String getBilled_by() {
29705
      return this.billed_by;
1245 chandransh 29706
    }
29707
 
4283 anupam.sin 29708
    public void setBilled_by(String billed_by) {
29709
      this.billed_by = billed_by;
1245 chandransh 29710
    }
29711
 
4283 anupam.sin 29712
    public void unsetBilled_by() {
29713
      this.billed_by = null;
1245 chandransh 29714
    }
29715
 
4283 anupam.sin 29716
    /** Returns true if field billed_by is set (has been assigned a value) and false otherwise */
29717
    public boolean isSetBilled_by() {
29718
      return this.billed_by != null;
1245 chandransh 29719
    }
29720
 
4283 anupam.sin 29721
    public void setBilled_byIsSet(boolean value) {
1245 chandransh 29722
      if (!value) {
4283 anupam.sin 29723
        this.billed_by = null;
1245 chandransh 29724
      }
29725
    }
29726
 
4283 anupam.sin 29727
    public long getJacketNumber() {
29728
      return this.jacketNumber;
29729
    }
29730
 
29731
    public void setJacketNumber(long jacketNumber) {
29732
      this.jacketNumber = jacketNumber;
29733
      setJacketNumberIsSet(true);
29734
    }
29735
 
29736
    public void unsetJacketNumber() {
29737
      __isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
29738
    }
29739
 
29740
    /** Returns true if field jacketNumber is set (has been assigned a value) and false otherwise */
29741
    public boolean isSetJacketNumber() {
29742
      return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
29743
    }
29744
 
29745
    public void setJacketNumberIsSet(boolean value) {
29746
      __isset_bit_vector.set(__JACKETNUMBER_ISSET_ID, value);
29747
    }
29748
 
3061 chandransh 29749
    public long getBillingType() {
29750
      return this.billingType;
29751
    }
29752
 
3430 rajveer 29753
    public void setBillingType(long billingType) {
3061 chandransh 29754
      this.billingType = billingType;
29755
      setBillingTypeIsSet(true);
29756
    }
29757
 
29758
    public void unsetBillingType() {
29759
      __isset_bit_vector.clear(__BILLINGTYPE_ISSET_ID);
29760
    }
29761
 
3430 rajveer 29762
    /** Returns true if field billingType is set (has been assigned a value) and false otherwise */
3061 chandransh 29763
    public boolean isSetBillingType() {
29764
      return __isset_bit_vector.get(__BILLINGTYPE_ISSET_ID);
29765
    }
29766
 
29767
    public void setBillingTypeIsSet(boolean value) {
29768
      __isset_bit_vector.set(__BILLINGTYPE_ISSET_ID, value);
29769
    }
29770
 
4283 anupam.sin 29771
    public long getVendorId() {
29772
      return this.vendorId;
29773
    }
29774
 
29775
    public void setVendorId(long vendorId) {
29776
      this.vendorId = vendorId;
29777
      setVendorIdIsSet(true);
29778
    }
29779
 
29780
    public void unsetVendorId() {
29781
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
29782
    }
29783
 
29784
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
29785
    public boolean isSetVendorId() {
29786
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
29787
    }
29788
 
29789
    public void setVendorIdIsSet(boolean value) {
29790
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
29791
    }
29792
 
1245 chandransh 29793
    public void setFieldValue(_Fields field, Object value) {
29794
      switch (field) {
3061 chandransh 29795
      case ORDER_ID:
1245 chandransh 29796
        if (value == null) {
3061 chandransh 29797
          unsetOrderId();
1245 chandransh 29798
        } else {
3061 chandransh 29799
          setOrderId((Long)value);
1245 chandransh 29800
        }
29801
        break;
29802
 
4283 anupam.sin 29803
      case INVOICE_NUMBER:
1245 chandransh 29804
        if (value == null) {
4283 anupam.sin 29805
          unsetInvoice_number();
1245 chandransh 29806
        } else {
4283 anupam.sin 29807
          setInvoice_number((String)value);
1245 chandransh 29808
        }
29809
        break;
29810
 
3061 chandransh 29811
      case IMEI_NUMBER:
29812
        if (value == null) {
29813
          unsetImeiNumber();
29814
        } else {
29815
          setImeiNumber((Long)value);
29816
        }
29817
        break;
29818
 
29819
      case ITEM_NUMBER:
29820
        if (value == null) {
29821
          unsetItemNumber();
29822
        } else {
29823
          setItemNumber((String)value);
29824
        }
29825
        break;
29826
 
29827
      case BILLED_BY:
29828
        if (value == null) {
4283 anupam.sin 29829
          unsetBilled_by();
3061 chandransh 29830
        } else {
4283 anupam.sin 29831
          setBilled_by((String)value);
3061 chandransh 29832
        }
29833
        break;
29834
 
4283 anupam.sin 29835
      case JACKET_NUMBER:
29836
        if (value == null) {
29837
          unsetJacketNumber();
29838
        } else {
29839
          setJacketNumber((Long)value);
29840
        }
29841
        break;
29842
 
3061 chandransh 29843
      case BILLING_TYPE:
29844
        if (value == null) {
29845
          unsetBillingType();
29846
        } else {
29847
          setBillingType((Long)value);
29848
        }
29849
        break;
29850
 
4283 anupam.sin 29851
      case VENDOR_ID:
29852
        if (value == null) {
29853
          unsetVendorId();
29854
        } else {
29855
          setVendorId((Long)value);
29856
        }
29857
        break;
29858
 
1245 chandransh 29859
      }
29860
    }
29861
 
29862
    public Object getFieldValue(_Fields field) {
29863
      switch (field) {
3061 chandransh 29864
      case ORDER_ID:
3430 rajveer 29865
        return Long.valueOf(getOrderId());
1245 chandransh 29866
 
4283 anupam.sin 29867
      case INVOICE_NUMBER:
29868
        return getInvoice_number();
1245 chandransh 29869
 
3061 chandransh 29870
      case IMEI_NUMBER:
3430 rajveer 29871
        return Long.valueOf(getImeiNumber());
3061 chandransh 29872
 
29873
      case ITEM_NUMBER:
29874
        return getItemNumber();
29875
 
29876
      case BILLED_BY:
4283 anupam.sin 29877
        return getBilled_by();
3061 chandransh 29878
 
4283 anupam.sin 29879
      case JACKET_NUMBER:
29880
        return Long.valueOf(getJacketNumber());
29881
 
3061 chandransh 29882
      case BILLING_TYPE:
3430 rajveer 29883
        return Long.valueOf(getBillingType());
3061 chandransh 29884
 
4283 anupam.sin 29885
      case VENDOR_ID:
29886
        return Long.valueOf(getVendorId());
29887
 
1245 chandransh 29888
      }
29889
      throw new IllegalStateException();
29890
    }
29891
 
3430 rajveer 29892
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29893
    public boolean isSet(_Fields field) {
29894
      if (field == null) {
29895
        throw new IllegalArgumentException();
29896
      }
1245 chandransh 29897
 
29898
      switch (field) {
3061 chandransh 29899
      case ORDER_ID:
29900
        return isSetOrderId();
4283 anupam.sin 29901
      case INVOICE_NUMBER:
29902
        return isSetInvoice_number();
3061 chandransh 29903
      case IMEI_NUMBER:
29904
        return isSetImeiNumber();
29905
      case ITEM_NUMBER:
29906
        return isSetItemNumber();
29907
      case BILLED_BY:
4283 anupam.sin 29908
        return isSetBilled_by();
29909
      case JACKET_NUMBER:
29910
        return isSetJacketNumber();
3061 chandransh 29911
      case BILLING_TYPE:
29912
        return isSetBillingType();
4283 anupam.sin 29913
      case VENDOR_ID:
29914
        return isSetVendorId();
1245 chandransh 29915
      }
29916
      throw new IllegalStateException();
29917
    }
29918
 
29919
    @Override
29920
    public boolean equals(Object that) {
29921
      if (that == null)
29922
        return false;
4283 anupam.sin 29923
      if (that instanceof addBillingDetails_args)
29924
        return this.equals((addBillingDetails_args)that);
1245 chandransh 29925
      return false;
29926
    }
29927
 
4283 anupam.sin 29928
    public boolean equals(addBillingDetails_args that) {
1245 chandransh 29929
      if (that == null)
29930
        return false;
29931
 
3061 chandransh 29932
      boolean this_present_orderId = true;
29933
      boolean that_present_orderId = true;
29934
      if (this_present_orderId || that_present_orderId) {
29935
        if (!(this_present_orderId && that_present_orderId))
1245 chandransh 29936
          return false;
3061 chandransh 29937
        if (this.orderId != that.orderId)
1245 chandransh 29938
          return false;
29939
      }
29940
 
4283 anupam.sin 29941
      boolean this_present_invoice_number = true && this.isSetInvoice_number();
29942
      boolean that_present_invoice_number = true && that.isSetInvoice_number();
29943
      if (this_present_invoice_number || that_present_invoice_number) {
29944
        if (!(this_present_invoice_number && that_present_invoice_number))
1245 chandransh 29945
          return false;
4283 anupam.sin 29946
        if (!this.invoice_number.equals(that.invoice_number))
1245 chandransh 29947
          return false;
29948
      }
29949
 
3061 chandransh 29950
      boolean this_present_imeiNumber = true;
29951
      boolean that_present_imeiNumber = true;
29952
      if (this_present_imeiNumber || that_present_imeiNumber) {
29953
        if (!(this_present_imeiNumber && that_present_imeiNumber))
29954
          return false;
29955
        if (this.imeiNumber != that.imeiNumber)
29956
          return false;
29957
      }
29958
 
29959
      boolean this_present_itemNumber = true && this.isSetItemNumber();
29960
      boolean that_present_itemNumber = true && that.isSetItemNumber();
29961
      if (this_present_itemNumber || that_present_itemNumber) {
29962
        if (!(this_present_itemNumber && that_present_itemNumber))
29963
          return false;
29964
        if (!this.itemNumber.equals(that.itemNumber))
29965
          return false;
29966
      }
29967
 
4283 anupam.sin 29968
      boolean this_present_billed_by = true && this.isSetBilled_by();
29969
      boolean that_present_billed_by = true && that.isSetBilled_by();
29970
      if (this_present_billed_by || that_present_billed_by) {
29971
        if (!(this_present_billed_by && that_present_billed_by))
3061 chandransh 29972
          return false;
4283 anupam.sin 29973
        if (!this.billed_by.equals(that.billed_by))
3061 chandransh 29974
          return false;
29975
      }
29976
 
4283 anupam.sin 29977
      boolean this_present_jacketNumber = true;
29978
      boolean that_present_jacketNumber = true;
29979
      if (this_present_jacketNumber || that_present_jacketNumber) {
29980
        if (!(this_present_jacketNumber && that_present_jacketNumber))
29981
          return false;
29982
        if (this.jacketNumber != that.jacketNumber)
29983
          return false;
29984
      }
29985
 
3061 chandransh 29986
      boolean this_present_billingType = true;
29987
      boolean that_present_billingType = true;
29988
      if (this_present_billingType || that_present_billingType) {
29989
        if (!(this_present_billingType && that_present_billingType))
29990
          return false;
29991
        if (this.billingType != that.billingType)
29992
          return false;
29993
      }
29994
 
4283 anupam.sin 29995
      boolean this_present_vendorId = true;
29996
      boolean that_present_vendorId = true;
29997
      if (this_present_vendorId || that_present_vendorId) {
29998
        if (!(this_present_vendorId && that_present_vendorId))
29999
          return false;
30000
        if (this.vendorId != that.vendorId)
30001
          return false;
30002
      }
30003
 
1245 chandransh 30004
      return true;
30005
    }
30006
 
30007
    @Override
30008
    public int hashCode() {
30009
      return 0;
30010
    }
30011
 
4283 anupam.sin 30012
    public int compareTo(addBillingDetails_args other) {
3061 chandransh 30013
      if (!getClass().equals(other.getClass())) {
30014
        return getClass().getName().compareTo(other.getClass().getName());
30015
      }
30016
 
30017
      int lastComparison = 0;
4283 anupam.sin 30018
      addBillingDetails_args typedOther = (addBillingDetails_args)other;
3061 chandransh 30019
 
3430 rajveer 30020
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
3061 chandransh 30021
      if (lastComparison != 0) {
30022
        return lastComparison;
30023
      }
3430 rajveer 30024
      if (isSetOrderId()) {
30025
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
30026
        if (lastComparison != 0) {
30027
          return lastComparison;
30028
        }
3061 chandransh 30029
      }
4283 anupam.sin 30030
      lastComparison = Boolean.valueOf(isSetInvoice_number()).compareTo(typedOther.isSetInvoice_number());
3061 chandransh 30031
      if (lastComparison != 0) {
30032
        return lastComparison;
30033
      }
4283 anupam.sin 30034
      if (isSetInvoice_number()) {
30035
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoice_number, typedOther.invoice_number);
3430 rajveer 30036
        if (lastComparison != 0) {
30037
          return lastComparison;
30038
        }
3061 chandransh 30039
      }
3430 rajveer 30040
      lastComparison = Boolean.valueOf(isSetImeiNumber()).compareTo(typedOther.isSetImeiNumber());
3061 chandransh 30041
      if (lastComparison != 0) {
30042
        return lastComparison;
30043
      }
3430 rajveer 30044
      if (isSetImeiNumber()) {
30045
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imeiNumber, typedOther.imeiNumber);
30046
        if (lastComparison != 0) {
30047
          return lastComparison;
30048
        }
3061 chandransh 30049
      }
3430 rajveer 30050
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
3061 chandransh 30051
      if (lastComparison != 0) {
30052
        return lastComparison;
30053
      }
3430 rajveer 30054
      if (isSetItemNumber()) {
30055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
30056
        if (lastComparison != 0) {
30057
          return lastComparison;
30058
        }
3061 chandransh 30059
      }
4283 anupam.sin 30060
      lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(typedOther.isSetBilled_by());
3061 chandransh 30061
      if (lastComparison != 0) {
30062
        return lastComparison;
30063
      }
4283 anupam.sin 30064
      if (isSetBilled_by()) {
30065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billed_by, typedOther.billed_by);
3430 rajveer 30066
        if (lastComparison != 0) {
30067
          return lastComparison;
30068
        }
3061 chandransh 30069
      }
4283 anupam.sin 30070
      lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(typedOther.isSetJacketNumber());
30071
      if (lastComparison != 0) {
30072
        return lastComparison;
30073
      }
30074
      if (isSetJacketNumber()) {
30075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jacketNumber, typedOther.jacketNumber);
30076
        if (lastComparison != 0) {
30077
          return lastComparison;
30078
        }
30079
      }
3430 rajveer 30080
      lastComparison = Boolean.valueOf(isSetBillingType()).compareTo(typedOther.isSetBillingType());
3061 chandransh 30081
      if (lastComparison != 0) {
30082
        return lastComparison;
30083
      }
3430 rajveer 30084
      if (isSetBillingType()) {
30085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingType, typedOther.billingType);
30086
        if (lastComparison != 0) {
30087
          return lastComparison;
30088
        }
3061 chandransh 30089
      }
4283 anupam.sin 30090
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
30091
      if (lastComparison != 0) {
30092
        return lastComparison;
30093
      }
30094
      if (isSetVendorId()) {
30095
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
30096
        if (lastComparison != 0) {
30097
          return lastComparison;
30098
        }
30099
      }
3061 chandransh 30100
      return 0;
30101
    }
30102
 
3430 rajveer 30103
    public _Fields fieldForId(int fieldId) {
30104
      return _Fields.findByThriftId(fieldId);
30105
    }
30106
 
30107
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30108
      org.apache.thrift.protocol.TField field;
1245 chandransh 30109
      iprot.readStructBegin();
30110
      while (true)
30111
      {
30112
        field = iprot.readFieldBegin();
3430 rajveer 30113
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1245 chandransh 30114
          break;
30115
        }
3430 rajveer 30116
        switch (field.id) {
30117
          case 1: // ORDER_ID
30118
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30119
              this.orderId = iprot.readI64();
30120
              setOrderIdIsSet(true);
30121
            } else { 
30122
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30123
            }
30124
            break;
4283 anupam.sin 30125
          case 2: // INVOICE_NUMBER
30126
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
30127
              this.invoice_number = iprot.readString();
3430 rajveer 30128
            } else { 
30129
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30130
            }
30131
            break;
30132
          case 3: // IMEI_NUMBER
30133
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30134
              this.imeiNumber = iprot.readI64();
30135
              setImeiNumberIsSet(true);
30136
            } else { 
30137
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30138
            }
30139
            break;
30140
          case 4: // ITEM_NUMBER
30141
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
30142
              this.itemNumber = iprot.readString();
30143
            } else { 
30144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30145
            }
30146
            break;
30147
          case 5: // BILLED_BY
30148
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4283 anupam.sin 30149
              this.billed_by = iprot.readString();
3430 rajveer 30150
            } else { 
30151
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30152
            }
30153
            break;
4283 anupam.sin 30154
          case 6: // JACKET_NUMBER
3430 rajveer 30155
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4283 anupam.sin 30156
              this.jacketNumber = iprot.readI64();
30157
              setJacketNumberIsSet(true);
30158
            } else { 
30159
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30160
            }
30161
            break;
30162
          case 7: // BILLING_TYPE
30163
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3430 rajveer 30164
              this.billingType = iprot.readI64();
30165
              setBillingTypeIsSet(true);
30166
            } else { 
30167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30168
            }
30169
            break;
4283 anupam.sin 30170
          case 8: // VENDOR_ID
30171
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30172
              this.vendorId = iprot.readI64();
30173
              setVendorIdIsSet(true);
30174
            } else { 
30175
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30176
            }
30177
            break;
3430 rajveer 30178
          default:
30179
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1245 chandransh 30180
        }
3430 rajveer 30181
        iprot.readFieldEnd();
1245 chandransh 30182
      }
30183
      iprot.readStructEnd();
30184
      validate();
30185
    }
30186
 
3430 rajveer 30187
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1245 chandransh 30188
      validate();
30189
 
30190
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 30191
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
30192
      oprot.writeI64(this.orderId);
1245 chandransh 30193
      oprot.writeFieldEnd();
4283 anupam.sin 30194
      if (this.invoice_number != null) {
30195
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
30196
        oprot.writeString(this.invoice_number);
30197
        oprot.writeFieldEnd();
30198
      }
3061 chandransh 30199
      oprot.writeFieldBegin(IMEI_NUMBER_FIELD_DESC);
30200
      oprot.writeI64(this.imeiNumber);
30201
      oprot.writeFieldEnd();
30202
      if (this.itemNumber != null) {
30203
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
30204
        oprot.writeString(this.itemNumber);
1245 chandransh 30205
        oprot.writeFieldEnd();
30206
      }
4283 anupam.sin 30207
      if (this.billed_by != null) {
3061 chandransh 30208
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
4283 anupam.sin 30209
        oprot.writeString(this.billed_by);
3061 chandransh 30210
        oprot.writeFieldEnd();
30211
      }
4283 anupam.sin 30212
      oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
30213
      oprot.writeI64(this.jacketNumber);
30214
      oprot.writeFieldEnd();
3061 chandransh 30215
      oprot.writeFieldBegin(BILLING_TYPE_FIELD_DESC);
30216
      oprot.writeI64(this.billingType);
30217
      oprot.writeFieldEnd();
4283 anupam.sin 30218
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
30219
      oprot.writeI64(this.vendorId);
30220
      oprot.writeFieldEnd();
1245 chandransh 30221
      oprot.writeFieldStop();
30222
      oprot.writeStructEnd();
30223
    }
30224
 
30225
    @Override
30226
    public String toString() {
4283 anupam.sin 30227
      StringBuilder sb = new StringBuilder("addBillingDetails_args(");
1245 chandransh 30228
      boolean first = true;
30229
 
3061 chandransh 30230
      sb.append("orderId:");
30231
      sb.append(this.orderId);
1245 chandransh 30232
      first = false;
30233
      if (!first) sb.append(", ");
4283 anupam.sin 30234
      sb.append("invoice_number:");
30235
      if (this.invoice_number == null) {
30236
        sb.append("null");
30237
      } else {
30238
        sb.append(this.invoice_number);
30239
      }
3061 chandransh 30240
      first = false;
30241
      if (!first) sb.append(", ");
30242
      sb.append("imeiNumber:");
30243
      sb.append(this.imeiNumber);
30244
      first = false;
30245
      if (!first) sb.append(", ");
30246
      sb.append("itemNumber:");
30247
      if (this.itemNumber == null) {
1245 chandransh 30248
        sb.append("null");
30249
      } else {
3061 chandransh 30250
        sb.append(this.itemNumber);
1245 chandransh 30251
      }
30252
      first = false;
3061 chandransh 30253
      if (!first) sb.append(", ");
4283 anupam.sin 30254
      sb.append("billed_by:");
30255
      if (this.billed_by == null) {
3061 chandransh 30256
        sb.append("null");
30257
      } else {
4283 anupam.sin 30258
        sb.append(this.billed_by);
3061 chandransh 30259
      }
30260
      first = false;
30261
      if (!first) sb.append(", ");
4283 anupam.sin 30262
      sb.append("jacketNumber:");
30263
      sb.append(this.jacketNumber);
30264
      first = false;
30265
      if (!first) sb.append(", ");
3061 chandransh 30266
      sb.append("billingType:");
30267
      sb.append(this.billingType);
30268
      first = false;
4283 anupam.sin 30269
      if (!first) sb.append(", ");
30270
      sb.append("vendorId:");
30271
      sb.append(this.vendorId);
30272
      first = false;
1245 chandransh 30273
      sb.append(")");
30274
      return sb.toString();
30275
    }
30276
 
3430 rajveer 30277
    public void validate() throws org.apache.thrift.TException {
1245 chandransh 30278
      // check for required fields
30279
    }
30280
 
3430 rajveer 30281
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30282
      try {
30283
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30284
      } catch (org.apache.thrift.TException te) {
30285
        throw new java.io.IOException(te);
30286
      }
30287
    }
30288
 
30289
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30290
      try {
4285 rajveer 30291
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30292
        __isset_bit_vector = new BitSet(1);
3430 rajveer 30293
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30294
      } catch (org.apache.thrift.TException te) {
30295
        throw new java.io.IOException(te);
30296
      }
30297
    }
30298
 
1245 chandransh 30299
  }
30300
 
4283 anupam.sin 30301
  public static class addBillingDetails_result implements org.apache.thrift.TBase<addBillingDetails_result, addBillingDetails_result._Fields>, java.io.Serializable, Cloneable   {
30302
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_result");
1245 chandransh 30303
 
3430 rajveer 30304
    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);
30305
    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);
1245 chandransh 30306
 
3430 rajveer 30307
    private boolean success; // required
30308
    private TransactionServiceException ex; // required
1245 chandransh 30309
 
30310
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30311
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 30312
      SUCCESS((short)0, "success"),
1245 chandransh 30313
      EX((short)1, "ex");
30314
 
30315
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30316
 
30317
      static {
30318
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30319
          byName.put(field.getFieldName(), field);
30320
        }
30321
      }
30322
 
30323
      /**
30324
       * Find the _Fields constant that matches fieldId, or null if its not found.
30325
       */
30326
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30327
        switch(fieldId) {
30328
          case 0: // SUCCESS
30329
            return SUCCESS;
30330
          case 1: // EX
30331
            return EX;
30332
          default:
30333
            return null;
30334
        }
1245 chandransh 30335
      }
30336
 
30337
      /**
30338
       * Find the _Fields constant that matches fieldId, throwing an exception
30339
       * if it is not found.
30340
       */
30341
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30342
        _Fields fields = findByThriftId(fieldId);
30343
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30344
        return fields;
30345
      }
30346
 
30347
      /**
30348
       * Find the _Fields constant that matches name, or null if its not found.
30349
       */
30350
      public static _Fields findByName(String name) {
30351
        return byName.get(name);
30352
      }
30353
 
30354
      private final short _thriftId;
30355
      private final String _fieldName;
30356
 
30357
      _Fields(short thriftId, String fieldName) {
30358
        _thriftId = thriftId;
30359
        _fieldName = fieldName;
30360
      }
30361
 
30362
      public short getThriftFieldId() {
30363
        return _thriftId;
30364
      }
30365
 
30366
      public String getFieldName() {
30367
        return _fieldName;
30368
      }
30369
    }
30370
 
30371
    // isset id assignments
3061 chandransh 30372
    private static final int __SUCCESS_ISSET_ID = 0;
30373
    private BitSet __isset_bit_vector = new BitSet(1);
1245 chandransh 30374
 
3430 rajveer 30375
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1245 chandransh 30376
    static {
3430 rajveer 30377
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30378
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30379
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
30380
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30381
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30382
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4283 anupam.sin 30383
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_result.class, metaDataMap);
1245 chandransh 30384
    }
30385
 
4283 anupam.sin 30386
    public addBillingDetails_result() {
1245 chandransh 30387
    }
30388
 
4283 anupam.sin 30389
    public addBillingDetails_result(
3061 chandransh 30390
      boolean success,
1245 chandransh 30391
      TransactionServiceException ex)
30392
    {
30393
      this();
3061 chandransh 30394
      this.success = success;
30395
      setSuccessIsSet(true);
1245 chandransh 30396
      this.ex = ex;
30397
    }
30398
 
30399
    /**
30400
     * Performs a deep copy on <i>other</i>.
30401
     */
4283 anupam.sin 30402
    public addBillingDetails_result(addBillingDetails_result other) {
3061 chandransh 30403
      __isset_bit_vector.clear();
30404
      __isset_bit_vector.or(other.__isset_bit_vector);
30405
      this.success = other.success;
1245 chandransh 30406
      if (other.isSetEx()) {
30407
        this.ex = new TransactionServiceException(other.ex);
30408
      }
30409
    }
30410
 
4283 anupam.sin 30411
    public addBillingDetails_result deepCopy() {
30412
      return new addBillingDetails_result(this);
1245 chandransh 30413
    }
30414
 
3430 rajveer 30415
    @Override
30416
    public void clear() {
30417
      setSuccessIsSet(false);
30418
      this.success = false;
30419
      this.ex = null;
1245 chandransh 30420
    }
30421
 
3061 chandransh 30422
    public boolean isSuccess() {
30423
      return this.success;
30424
    }
30425
 
3430 rajveer 30426
    public void setSuccess(boolean success) {
3061 chandransh 30427
      this.success = success;
30428
      setSuccessIsSet(true);
30429
    }
30430
 
30431
    public void unsetSuccess() {
30432
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
30433
    }
30434
 
3430 rajveer 30435
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 30436
    public boolean isSetSuccess() {
30437
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
30438
    }
30439
 
30440
    public void setSuccessIsSet(boolean value) {
30441
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
30442
    }
30443
 
1245 chandransh 30444
    public TransactionServiceException getEx() {
30445
      return this.ex;
30446
    }
30447
 
3430 rajveer 30448
    public void setEx(TransactionServiceException ex) {
1245 chandransh 30449
      this.ex = ex;
30450
    }
30451
 
30452
    public void unsetEx() {
30453
      this.ex = null;
30454
    }
30455
 
3430 rajveer 30456
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1245 chandransh 30457
    public boolean isSetEx() {
30458
      return this.ex != null;
30459
    }
30460
 
30461
    public void setExIsSet(boolean value) {
30462
      if (!value) {
30463
        this.ex = null;
30464
      }
30465
    }
30466
 
30467
    public void setFieldValue(_Fields field, Object value) {
30468
      switch (field) {
3061 chandransh 30469
      case SUCCESS:
30470
        if (value == null) {
30471
          unsetSuccess();
30472
        } else {
30473
          setSuccess((Boolean)value);
30474
        }
30475
        break;
30476
 
1245 chandransh 30477
      case EX:
30478
        if (value == null) {
30479
          unsetEx();
30480
        } else {
30481
          setEx((TransactionServiceException)value);
30482
        }
30483
        break;
30484
 
30485
      }
30486
    }
30487
 
30488
    public Object getFieldValue(_Fields field) {
30489
      switch (field) {
3061 chandransh 30490
      case SUCCESS:
3430 rajveer 30491
        return Boolean.valueOf(isSuccess());
3061 chandransh 30492
 
1245 chandransh 30493
      case EX:
30494
        return getEx();
30495
 
30496
      }
30497
      throw new IllegalStateException();
30498
    }
30499
 
3430 rajveer 30500
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30501
    public boolean isSet(_Fields field) {
30502
      if (field == null) {
30503
        throw new IllegalArgumentException();
30504
      }
1245 chandransh 30505
 
30506
      switch (field) {
3061 chandransh 30507
      case SUCCESS:
30508
        return isSetSuccess();
1245 chandransh 30509
      case EX:
30510
        return isSetEx();
30511
      }
30512
      throw new IllegalStateException();
30513
    }
30514
 
30515
    @Override
30516
    public boolean equals(Object that) {
30517
      if (that == null)
30518
        return false;
4283 anupam.sin 30519
      if (that instanceof addBillingDetails_result)
30520
        return this.equals((addBillingDetails_result)that);
1245 chandransh 30521
      return false;
30522
    }
30523
 
4283 anupam.sin 30524
    public boolean equals(addBillingDetails_result that) {
1245 chandransh 30525
      if (that == null)
30526
        return false;
30527
 
3061 chandransh 30528
      boolean this_present_success = true;
30529
      boolean that_present_success = true;
30530
      if (this_present_success || that_present_success) {
30531
        if (!(this_present_success && that_present_success))
30532
          return false;
30533
        if (this.success != that.success)
30534
          return false;
30535
      }
30536
 
1245 chandransh 30537
      boolean this_present_ex = true && this.isSetEx();
30538
      boolean that_present_ex = true && that.isSetEx();
30539
      if (this_present_ex || that_present_ex) {
30540
        if (!(this_present_ex && that_present_ex))
30541
          return false;
30542
        if (!this.ex.equals(that.ex))
30543
          return false;
30544
      }
30545
 
30546
      return true;
30547
    }
30548
 
30549
    @Override
30550
    public int hashCode() {
30551
      return 0;
30552
    }
30553
 
4283 anupam.sin 30554
    public int compareTo(addBillingDetails_result other) {
1245 chandransh 30555
      if (!getClass().equals(other.getClass())) {
30556
        return getClass().getName().compareTo(other.getClass().getName());
30557
      }
30558
 
30559
      int lastComparison = 0;
4283 anupam.sin 30560
      addBillingDetails_result typedOther = (addBillingDetails_result)other;
1245 chandransh 30561
 
3430 rajveer 30562
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3061 chandransh 30563
      if (lastComparison != 0) {
30564
        return lastComparison;
30565
      }
3430 rajveer 30566
      if (isSetSuccess()) {
30567
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30568
        if (lastComparison != 0) {
30569
          return lastComparison;
30570
        }
3061 chandransh 30571
      }
3430 rajveer 30572
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1245 chandransh 30573
      if (lastComparison != 0) {
30574
        return lastComparison;
30575
      }
3430 rajveer 30576
      if (isSetEx()) {
30577
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
30578
        if (lastComparison != 0) {
30579
          return lastComparison;
30580
        }
1245 chandransh 30581
      }
30582
      return 0;
30583
    }
30584
 
3430 rajveer 30585
    public _Fields fieldForId(int fieldId) {
30586
      return _Fields.findByThriftId(fieldId);
30587
    }
30588
 
30589
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30590
      org.apache.thrift.protocol.TField field;
1245 chandransh 30591
      iprot.readStructBegin();
30592
      while (true)
30593
      {
30594
        field = iprot.readFieldBegin();
3430 rajveer 30595
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1245 chandransh 30596
          break;
30597
        }
3430 rajveer 30598
        switch (field.id) {
30599
          case 0: // SUCCESS
30600
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
30601
              this.success = iprot.readBool();
30602
              setSuccessIsSet(true);
30603
            } else { 
30604
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30605
            }
30606
            break;
30607
          case 1: // EX
30608
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30609
              this.ex = new TransactionServiceException();
30610
              this.ex.read(iprot);
30611
            } else { 
30612
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30613
            }
30614
            break;
30615
          default:
30616
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1245 chandransh 30617
        }
3430 rajveer 30618
        iprot.readFieldEnd();
1245 chandransh 30619
      }
30620
      iprot.readStructEnd();
30621
      validate();
30622
    }
30623
 
3430 rajveer 30624
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1245 chandransh 30625
      oprot.writeStructBegin(STRUCT_DESC);
30626
 
3061 chandransh 30627
      if (this.isSetSuccess()) {
30628
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30629
        oprot.writeBool(this.success);
30630
        oprot.writeFieldEnd();
30631
      } else if (this.isSetEx()) {
1245 chandransh 30632
        oprot.writeFieldBegin(EX_FIELD_DESC);
30633
        this.ex.write(oprot);
30634
        oprot.writeFieldEnd();
30635
      }
30636
      oprot.writeFieldStop();
30637
      oprot.writeStructEnd();
30638
    }
30639
 
30640
    @Override
30641
    public String toString() {
4283 anupam.sin 30642
      StringBuilder sb = new StringBuilder("addBillingDetails_result(");
1245 chandransh 30643
      boolean first = true;
30644
 
3061 chandransh 30645
      sb.append("success:");
30646
      sb.append(this.success);
30647
      first = false;
30648
      if (!first) sb.append(", ");
1245 chandransh 30649
      sb.append("ex:");
30650
      if (this.ex == null) {
30651
        sb.append("null");
30652
      } else {
30653
        sb.append(this.ex);
30654
      }
30655
      first = false;
30656
      sb.append(")");
30657
      return sb.toString();
30658
    }
30659
 
3430 rajveer 30660
    public void validate() throws org.apache.thrift.TException {
1245 chandransh 30661
      // check for required fields
30662
    }
30663
 
3430 rajveer 30664
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30665
      try {
30666
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30667
      } catch (org.apache.thrift.TException te) {
30668
        throw new java.io.IOException(te);
30669
      }
30670
    }
30671
 
30672
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30673
      try {
30674
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30675
      } catch (org.apache.thrift.TException te) {
30676
        throw new java.io.IOException(te);
30677
      }
30678
    }
30679
 
1245 chandransh 30680
  }
30681
 
3430 rajveer 30682
  public static class markOrdersAsManifested_args implements org.apache.thrift.TBase<markOrdersAsManifested_args, markOrdersAsManifested_args._Fields>, java.io.Serializable, Cloneable   {
30683
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsManifested_args");
1406 ankur.sing 30684
 
3430 rajveer 30685
    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);
30686
    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);
30687
    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);
1406 ankur.sing 30688
 
3430 rajveer 30689
    private long warehouseId; // required
30690
    private long providerId; // required
30691
    private boolean cod; // required
1406 ankur.sing 30692
 
30693
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30694
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 30695
      WAREHOUSE_ID((short)1, "warehouseId"),
30696
      PROVIDER_ID((short)2, "providerId"),
30697
      COD((short)3, "cod");
1406 ankur.sing 30698
 
30699
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30700
 
30701
      static {
30702
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30703
          byName.put(field.getFieldName(), field);
30704
        }
30705
      }
30706
 
30707
      /**
30708
       * Find the _Fields constant that matches fieldId, or null if its not found.
30709
       */
30710
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30711
        switch(fieldId) {
30712
          case 1: // WAREHOUSE_ID
30713
            return WAREHOUSE_ID;
30714
          case 2: // PROVIDER_ID
30715
            return PROVIDER_ID;
30716
          case 3: // COD
30717
            return COD;
30718
          default:
30719
            return null;
30720
        }
1406 ankur.sing 30721
      }
30722
 
30723
      /**
30724
       * Find the _Fields constant that matches fieldId, throwing an exception
30725
       * if it is not found.
30726
       */
30727
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30728
        _Fields fields = findByThriftId(fieldId);
30729
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30730
        return fields;
30731
      }
30732
 
30733
      /**
30734
       * Find the _Fields constant that matches name, or null if its not found.
30735
       */
30736
      public static _Fields findByName(String name) {
30737
        return byName.get(name);
30738
      }
30739
 
30740
      private final short _thriftId;
30741
      private final String _fieldName;
30742
 
30743
      _Fields(short thriftId, String fieldName) {
30744
        _thriftId = thriftId;
30745
        _fieldName = fieldName;
30746
      }
30747
 
30748
      public short getThriftFieldId() {
30749
        return _thriftId;
30750
      }
30751
 
30752
      public String getFieldName() {
30753
        return _fieldName;
30754
      }
30755
    }
30756
 
30757
    // isset id assignments
3061 chandransh 30758
    private static final int __WAREHOUSEID_ISSET_ID = 0;
30759
    private static final int __PROVIDERID_ISSET_ID = 1;
30760
    private static final int __COD_ISSET_ID = 2;
30761
    private BitSet __isset_bit_vector = new BitSet(3);
1406 ankur.sing 30762
 
3430 rajveer 30763
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1406 ankur.sing 30764
    static {
3430 rajveer 30765
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30766
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30767
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30768
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30769
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30770
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30771
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
30772
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30773
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsManifested_args.class, metaDataMap);
1406 ankur.sing 30774
    }
30775
 
3061 chandransh 30776
    public markOrdersAsManifested_args() {
1406 ankur.sing 30777
    }
30778
 
3061 chandransh 30779
    public markOrdersAsManifested_args(
30780
      long warehouseId,
1406 ankur.sing 30781
      long providerId,
3061 chandransh 30782
      boolean cod)
1406 ankur.sing 30783
    {
30784
      this();
3061 chandransh 30785
      this.warehouseId = warehouseId;
30786
      setWarehouseIdIsSet(true);
1406 ankur.sing 30787
      this.providerId = providerId;
30788
      setProviderIdIsSet(true);
3061 chandransh 30789
      this.cod = cod;
30790
      setCodIsSet(true);
1406 ankur.sing 30791
    }
30792
 
30793
    /**
30794
     * Performs a deep copy on <i>other</i>.
30795
     */
3061 chandransh 30796
    public markOrdersAsManifested_args(markOrdersAsManifested_args other) {
1406 ankur.sing 30797
      __isset_bit_vector.clear();
30798
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 30799
      this.warehouseId = other.warehouseId;
1406 ankur.sing 30800
      this.providerId = other.providerId;
3061 chandransh 30801
      this.cod = other.cod;
1406 ankur.sing 30802
    }
30803
 
3061 chandransh 30804
    public markOrdersAsManifested_args deepCopy() {
30805
      return new markOrdersAsManifested_args(this);
1406 ankur.sing 30806
    }
30807
 
3430 rajveer 30808
    @Override
30809
    public void clear() {
30810
      setWarehouseIdIsSet(false);
30811
      this.warehouseId = 0;
30812
      setProviderIdIsSet(false);
30813
      this.providerId = 0;
30814
      setCodIsSet(false);
30815
      this.cod = false;
1406 ankur.sing 30816
    }
30817
 
3061 chandransh 30818
    public long getWarehouseId() {
30819
      return this.warehouseId;
30820
    }
30821
 
3430 rajveer 30822
    public void setWarehouseId(long warehouseId) {
3061 chandransh 30823
      this.warehouseId = warehouseId;
30824
      setWarehouseIdIsSet(true);
30825
    }
30826
 
30827
    public void unsetWarehouseId() {
30828
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
30829
    }
30830
 
3430 rajveer 30831
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
3061 chandransh 30832
    public boolean isSetWarehouseId() {
30833
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
30834
    }
30835
 
30836
    public void setWarehouseIdIsSet(boolean value) {
30837
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
30838
    }
30839
 
1406 ankur.sing 30840
    public long getProviderId() {
30841
      return this.providerId;
30842
    }
30843
 
3430 rajveer 30844
    public void setProviderId(long providerId) {
1406 ankur.sing 30845
      this.providerId = providerId;
30846
      setProviderIdIsSet(true);
30847
    }
30848
 
30849
    public void unsetProviderId() {
30850
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
30851
    }
30852
 
3430 rajveer 30853
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1406 ankur.sing 30854
    public boolean isSetProviderId() {
30855
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
30856
    }
30857
 
30858
    public void setProviderIdIsSet(boolean value) {
30859
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
30860
    }
30861
 
3061 chandransh 30862
    public boolean isCod() {
30863
      return this.cod;
1406 ankur.sing 30864
    }
30865
 
3430 rajveer 30866
    public void setCod(boolean cod) {
3061 chandransh 30867
      this.cod = cod;
30868
      setCodIsSet(true);
1406 ankur.sing 30869
    }
30870
 
3061 chandransh 30871
    public void unsetCod() {
30872
      __isset_bit_vector.clear(__COD_ISSET_ID);
1406 ankur.sing 30873
    }
30874
 
3430 rajveer 30875
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
3061 chandransh 30876
    public boolean isSetCod() {
30877
      return __isset_bit_vector.get(__COD_ISSET_ID);
1406 ankur.sing 30878
    }
30879
 
3061 chandransh 30880
    public void setCodIsSet(boolean value) {
30881
      __isset_bit_vector.set(__COD_ISSET_ID, value);
1406 ankur.sing 30882
    }
30883
 
30884
    public void setFieldValue(_Fields field, Object value) {
30885
      switch (field) {
3061 chandransh 30886
      case WAREHOUSE_ID:
30887
        if (value == null) {
30888
          unsetWarehouseId();
30889
        } else {
30890
          setWarehouseId((Long)value);
30891
        }
30892
        break;
30893
 
1406 ankur.sing 30894
      case PROVIDER_ID:
30895
        if (value == null) {
30896
          unsetProviderId();
30897
        } else {
30898
          setProviderId((Long)value);
30899
        }
30900
        break;
30901
 
3061 chandransh 30902
      case COD:
1406 ankur.sing 30903
        if (value == null) {
3061 chandransh 30904
          unsetCod();
1406 ankur.sing 30905
        } else {
3061 chandransh 30906
          setCod((Boolean)value);
1406 ankur.sing 30907
        }
30908
        break;
30909
 
30910
      }
30911
    }
30912
 
30913
    public Object getFieldValue(_Fields field) {
30914
      switch (field) {
3061 chandransh 30915
      case WAREHOUSE_ID:
3430 rajveer 30916
        return Long.valueOf(getWarehouseId());
3061 chandransh 30917
 
1406 ankur.sing 30918
      case PROVIDER_ID:
3430 rajveer 30919
        return Long.valueOf(getProviderId());
1406 ankur.sing 30920
 
3061 chandransh 30921
      case COD:
3430 rajveer 30922
        return Boolean.valueOf(isCod());
1406 ankur.sing 30923
 
30924
      }
30925
      throw new IllegalStateException();
30926
    }
30927
 
3430 rajveer 30928
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30929
    public boolean isSet(_Fields field) {
30930
      if (field == null) {
30931
        throw new IllegalArgumentException();
30932
      }
1406 ankur.sing 30933
 
30934
      switch (field) {
3061 chandransh 30935
      case WAREHOUSE_ID:
30936
        return isSetWarehouseId();
1406 ankur.sing 30937
      case PROVIDER_ID:
30938
        return isSetProviderId();
3061 chandransh 30939
      case COD:
30940
        return isSetCod();
1406 ankur.sing 30941
      }
30942
      throw new IllegalStateException();
30943
    }
30944
 
30945
    @Override
30946
    public boolean equals(Object that) {
30947
      if (that == null)
30948
        return false;
3061 chandransh 30949
      if (that instanceof markOrdersAsManifested_args)
30950
        return this.equals((markOrdersAsManifested_args)that);
1406 ankur.sing 30951
      return false;
30952
    }
30953
 
3061 chandransh 30954
    public boolean equals(markOrdersAsManifested_args that) {
1406 ankur.sing 30955
      if (that == null)
30956
        return false;
30957
 
3061 chandransh 30958
      boolean this_present_warehouseId = true;
30959
      boolean that_present_warehouseId = true;
30960
      if (this_present_warehouseId || that_present_warehouseId) {
30961
        if (!(this_present_warehouseId && that_present_warehouseId))
30962
          return false;
30963
        if (this.warehouseId != that.warehouseId)
30964
          return false;
30965
      }
30966
 
1406 ankur.sing 30967
      boolean this_present_providerId = true;
30968
      boolean that_present_providerId = true;
30969
      if (this_present_providerId || that_present_providerId) {
30970
        if (!(this_present_providerId && that_present_providerId))
30971
          return false;
30972
        if (this.providerId != that.providerId)
30973
          return false;
30974
      }
30975
 
3061 chandransh 30976
      boolean this_present_cod = true;
30977
      boolean that_present_cod = true;
30978
      if (this_present_cod || that_present_cod) {
30979
        if (!(this_present_cod && that_present_cod))
1406 ankur.sing 30980
          return false;
3061 chandransh 30981
        if (this.cod != that.cod)
1406 ankur.sing 30982
          return false;
30983
      }
30984
 
30985
      return true;
30986
    }
30987
 
30988
    @Override
30989
    public int hashCode() {
30990
      return 0;
30991
    }
30992
 
3061 chandransh 30993
    public int compareTo(markOrdersAsManifested_args other) {
1406 ankur.sing 30994
      if (!getClass().equals(other.getClass())) {
30995
        return getClass().getName().compareTo(other.getClass().getName());
30996
      }
30997
 
30998
      int lastComparison = 0;
3061 chandransh 30999
      markOrdersAsManifested_args typedOther = (markOrdersAsManifested_args)other;
1406 ankur.sing 31000
 
3430 rajveer 31001
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
3061 chandransh 31002
      if (lastComparison != 0) {
31003
        return lastComparison;
31004
      }
3430 rajveer 31005
      if (isSetWarehouseId()) {
31006
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
31007
        if (lastComparison != 0) {
31008
          return lastComparison;
31009
        }
3061 chandransh 31010
      }
3430 rajveer 31011
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1406 ankur.sing 31012
      if (lastComparison != 0) {
31013
        return lastComparison;
31014
      }
3430 rajveer 31015
      if (isSetProviderId()) {
31016
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
31017
        if (lastComparison != 0) {
31018
          return lastComparison;
31019
        }
1406 ankur.sing 31020
      }
3430 rajveer 31021
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
1406 ankur.sing 31022
      if (lastComparison != 0) {
31023
        return lastComparison;
31024
      }
3430 rajveer 31025
      if (isSetCod()) {
31026
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
31027
        if (lastComparison != 0) {
31028
          return lastComparison;
31029
        }
1406 ankur.sing 31030
      }
31031
      return 0;
31032
    }
31033
 
3430 rajveer 31034
    public _Fields fieldForId(int fieldId) {
31035
      return _Fields.findByThriftId(fieldId);
31036
    }
31037
 
31038
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31039
      org.apache.thrift.protocol.TField field;
1406 ankur.sing 31040
      iprot.readStructBegin();
31041
      while (true)
31042
      {
31043
        field = iprot.readFieldBegin();
3430 rajveer 31044
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1406 ankur.sing 31045
          break;
31046
        }
3430 rajveer 31047
        switch (field.id) {
31048
          case 1: // WAREHOUSE_ID
31049
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31050
              this.warehouseId = iprot.readI64();
31051
              setWarehouseIdIsSet(true);
31052
            } else { 
31053
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31054
            }
31055
            break;
31056
          case 2: // PROVIDER_ID
31057
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31058
              this.providerId = iprot.readI64();
31059
              setProviderIdIsSet(true);
31060
            } else { 
31061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31062
            }
31063
            break;
31064
          case 3: // COD
31065
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
31066
              this.cod = iprot.readBool();
31067
              setCodIsSet(true);
31068
            } else { 
31069
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31070
            }
31071
            break;
31072
          default:
31073
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1406 ankur.sing 31074
        }
3430 rajveer 31075
        iprot.readFieldEnd();
1406 ankur.sing 31076
      }
31077
      iprot.readStructEnd();
31078
      validate();
31079
    }
31080
 
3430 rajveer 31081
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1406 ankur.sing 31082
      validate();
31083
 
31084
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 31085
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
31086
      oprot.writeI64(this.warehouseId);
31087
      oprot.writeFieldEnd();
1406 ankur.sing 31088
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
31089
      oprot.writeI64(this.providerId);
31090
      oprot.writeFieldEnd();
3061 chandransh 31091
      oprot.writeFieldBegin(COD_FIELD_DESC);
31092
      oprot.writeBool(this.cod);
1406 ankur.sing 31093
      oprot.writeFieldEnd();
31094
      oprot.writeFieldStop();
31095
      oprot.writeStructEnd();
31096
    }
31097
 
31098
    @Override
31099
    public String toString() {
3061 chandransh 31100
      StringBuilder sb = new StringBuilder("markOrdersAsManifested_args(");
1406 ankur.sing 31101
      boolean first = true;
31102
 
3061 chandransh 31103
      sb.append("warehouseId:");
31104
      sb.append(this.warehouseId);
31105
      first = false;
31106
      if (!first) sb.append(", ");
1406 ankur.sing 31107
      sb.append("providerId:");
31108
      sb.append(this.providerId);
31109
      first = false;
31110
      if (!first) sb.append(", ");
3061 chandransh 31111
      sb.append("cod:");
31112
      sb.append(this.cod);
1406 ankur.sing 31113
      first = false;
31114
      sb.append(")");
31115
      return sb.toString();
31116
    }
31117
 
3430 rajveer 31118
    public void validate() throws org.apache.thrift.TException {
1406 ankur.sing 31119
      // check for required fields
31120
    }
31121
 
3430 rajveer 31122
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31123
      try {
31124
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31125
      } catch (org.apache.thrift.TException te) {
31126
        throw new java.io.IOException(te);
31127
      }
31128
    }
31129
 
31130
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31131
      try {
31132
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31133
      } catch (org.apache.thrift.TException te) {
31134
        throw new java.io.IOException(te);
31135
      }
31136
    }
31137
 
1406 ankur.sing 31138
  }
31139
 
3430 rajveer 31140
  public static class markOrdersAsManifested_result implements org.apache.thrift.TBase<markOrdersAsManifested_result, markOrdersAsManifested_result._Fields>, java.io.Serializable, Cloneable   {
31141
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsManifested_result");
1406 ankur.sing 31142
 
3430 rajveer 31143
    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);
31144
    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);
1406 ankur.sing 31145
 
3430 rajveer 31146
    private boolean success; // required
31147
    private TransactionServiceException ex; // required
1406 ankur.sing 31148
 
31149
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 31150
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 31151
      SUCCESS((short)0, "success"),
31152
      EX((short)1, "ex");
1406 ankur.sing 31153
 
31154
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31155
 
31156
      static {
31157
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31158
          byName.put(field.getFieldName(), field);
31159
        }
31160
      }
31161
 
31162
      /**
31163
       * Find the _Fields constant that matches fieldId, or null if its not found.
31164
       */
31165
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 31166
        switch(fieldId) {
31167
          case 0: // SUCCESS
31168
            return SUCCESS;
31169
          case 1: // EX
31170
            return EX;
31171
          default:
31172
            return null;
31173
        }
1406 ankur.sing 31174
      }
31175
 
31176
      /**
31177
       * Find the _Fields constant that matches fieldId, throwing an exception
31178
       * if it is not found.
31179
       */
31180
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31181
        _Fields fields = findByThriftId(fieldId);
31182
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31183
        return fields;
31184
      }
31185
 
31186
      /**
31187
       * Find the _Fields constant that matches name, or null if its not found.
31188
       */
31189
      public static _Fields findByName(String name) {
31190
        return byName.get(name);
31191
      }
31192
 
31193
      private final short _thriftId;
31194
      private final String _fieldName;
31195
 
31196
      _Fields(short thriftId, String fieldName) {
31197
        _thriftId = thriftId;
31198
        _fieldName = fieldName;
31199
      }
31200
 
31201
      public short getThriftFieldId() {
31202
        return _thriftId;
31203
      }
31204
 
31205
      public String getFieldName() {
31206
        return _fieldName;
31207
      }
31208
    }
31209
 
31210
    // isset id assignments
3061 chandransh 31211
    private static final int __SUCCESS_ISSET_ID = 0;
31212
    private BitSet __isset_bit_vector = new BitSet(1);
1406 ankur.sing 31213
 
3430 rajveer 31214
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1406 ankur.sing 31215
    static {
3430 rajveer 31216
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31217
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
31219
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31221
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31222
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsManifested_result.class, metaDataMap);
1406 ankur.sing 31223
    }
31224
 
3061 chandransh 31225
    public markOrdersAsManifested_result() {
1406 ankur.sing 31226
    }
31227
 
3061 chandransh 31228
    public markOrdersAsManifested_result(
31229
      boolean success,
31230
      TransactionServiceException ex)
1406 ankur.sing 31231
    {
31232
      this();
31233
      this.success = success;
3061 chandransh 31234
      setSuccessIsSet(true);
31235
      this.ex = ex;
1406 ankur.sing 31236
    }
31237
 
31238
    /**
31239
     * Performs a deep copy on <i>other</i>.
31240
     */
3061 chandransh 31241
    public markOrdersAsManifested_result(markOrdersAsManifested_result other) {
31242
      __isset_bit_vector.clear();
31243
      __isset_bit_vector.or(other.__isset_bit_vector);
31244
      this.success = other.success;
31245
      if (other.isSetEx()) {
31246
        this.ex = new TransactionServiceException(other.ex);
1406 ankur.sing 31247
      }
31248
    }
31249
 
3061 chandransh 31250
    public markOrdersAsManifested_result deepCopy() {
31251
      return new markOrdersAsManifested_result(this);
1406 ankur.sing 31252
    }
31253
 
3430 rajveer 31254
    @Override
31255
    public void clear() {
31256
      setSuccessIsSet(false);
31257
      this.success = false;
31258
      this.ex = null;
1406 ankur.sing 31259
    }
31260
 
3061 chandransh 31261
    public boolean isSuccess() {
31262
      return this.success;
1406 ankur.sing 31263
    }
31264
 
3430 rajveer 31265
    public void setSuccess(boolean success) {
3061 chandransh 31266
      this.success = success;
31267
      setSuccessIsSet(true);
1406 ankur.sing 31268
    }
31269
 
3061 chandransh 31270
    public void unsetSuccess() {
31271
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
1406 ankur.sing 31272
    }
31273
 
3430 rajveer 31274
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 31275
    public boolean isSetSuccess() {
31276
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
1406 ankur.sing 31277
    }
31278
 
3061 chandransh 31279
    public void setSuccessIsSet(boolean value) {
31280
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31281
    }
31282
 
31283
    public TransactionServiceException getEx() {
31284
      return this.ex;
31285
    }
31286
 
3430 rajveer 31287
    public void setEx(TransactionServiceException ex) {
3061 chandransh 31288
      this.ex = ex;
1406 ankur.sing 31289
    }
31290
 
3061 chandransh 31291
    public void unsetEx() {
31292
      this.ex = null;
1406 ankur.sing 31293
    }
31294
 
3430 rajveer 31295
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 31296
    public boolean isSetEx() {
31297
      return this.ex != null;
1406 ankur.sing 31298
    }
31299
 
3061 chandransh 31300
    public void setExIsSet(boolean value) {
1406 ankur.sing 31301
      if (!value) {
3061 chandransh 31302
        this.ex = null;
1406 ankur.sing 31303
      }
31304
    }
31305
 
31306
    public void setFieldValue(_Fields field, Object value) {
31307
      switch (field) {
31308
      case SUCCESS:
31309
        if (value == null) {
31310
          unsetSuccess();
31311
        } else {
3061 chandransh 31312
          setSuccess((Boolean)value);
1406 ankur.sing 31313
        }
31314
        break;
31315
 
3061 chandransh 31316
      case EX:
31317
        if (value == null) {
31318
          unsetEx();
31319
        } else {
31320
          setEx((TransactionServiceException)value);
31321
        }
31322
        break;
31323
 
1406 ankur.sing 31324
      }
31325
    }
31326
 
31327
    public Object getFieldValue(_Fields field) {
31328
      switch (field) {
31329
      case SUCCESS:
3430 rajveer 31330
        return Boolean.valueOf(isSuccess());
1406 ankur.sing 31331
 
3061 chandransh 31332
      case EX:
31333
        return getEx();
31334
 
1406 ankur.sing 31335
      }
31336
      throw new IllegalStateException();
31337
    }
31338
 
3430 rajveer 31339
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31340
    public boolean isSet(_Fields field) {
31341
      if (field == null) {
31342
        throw new IllegalArgumentException();
31343
      }
1406 ankur.sing 31344
 
31345
      switch (field) {
31346
      case SUCCESS:
31347
        return isSetSuccess();
3061 chandransh 31348
      case EX:
31349
        return isSetEx();
1406 ankur.sing 31350
      }
31351
      throw new IllegalStateException();
31352
    }
31353
 
31354
    @Override
31355
    public boolean equals(Object that) {
31356
      if (that == null)
31357
        return false;
3061 chandransh 31358
      if (that instanceof markOrdersAsManifested_result)
31359
        return this.equals((markOrdersAsManifested_result)that);
1406 ankur.sing 31360
      return false;
31361
    }
31362
 
3061 chandransh 31363
    public boolean equals(markOrdersAsManifested_result that) {
1406 ankur.sing 31364
      if (that == null)
31365
        return false;
31366
 
3061 chandransh 31367
      boolean this_present_success = true;
31368
      boolean that_present_success = true;
1406 ankur.sing 31369
      if (this_present_success || that_present_success) {
31370
        if (!(this_present_success && that_present_success))
31371
          return false;
3061 chandransh 31372
        if (this.success != that.success)
1406 ankur.sing 31373
          return false;
31374
      }
31375
 
3061 chandransh 31376
      boolean this_present_ex = true && this.isSetEx();
31377
      boolean that_present_ex = true && that.isSetEx();
31378
      if (this_present_ex || that_present_ex) {
31379
        if (!(this_present_ex && that_present_ex))
31380
          return false;
31381
        if (!this.ex.equals(that.ex))
31382
          return false;
31383
      }
31384
 
1406 ankur.sing 31385
      return true;
31386
    }
31387
 
31388
    @Override
31389
    public int hashCode() {
31390
      return 0;
31391
    }
31392
 
3061 chandransh 31393
    public int compareTo(markOrdersAsManifested_result other) {
1406 ankur.sing 31394
      if (!getClass().equals(other.getClass())) {
31395
        return getClass().getName().compareTo(other.getClass().getName());
31396
      }
31397
 
31398
      int lastComparison = 0;
3061 chandransh 31399
      markOrdersAsManifested_result typedOther = (markOrdersAsManifested_result)other;
1406 ankur.sing 31400
 
3430 rajveer 31401
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1406 ankur.sing 31402
      if (lastComparison != 0) {
31403
        return lastComparison;
31404
      }
3430 rajveer 31405
      if (isSetSuccess()) {
31406
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31407
        if (lastComparison != 0) {
31408
          return lastComparison;
31409
        }
1406 ankur.sing 31410
      }
3430 rajveer 31411
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
3061 chandransh 31412
      if (lastComparison != 0) {
31413
        return lastComparison;
31414
      }
3430 rajveer 31415
      if (isSetEx()) {
31416
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
31417
        if (lastComparison != 0) {
31418
          return lastComparison;
31419
        }
3061 chandransh 31420
      }
1406 ankur.sing 31421
      return 0;
31422
    }
31423
 
3430 rajveer 31424
    public _Fields fieldForId(int fieldId) {
31425
      return _Fields.findByThriftId(fieldId);
31426
    }
31427
 
31428
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31429
      org.apache.thrift.protocol.TField field;
1406 ankur.sing 31430
      iprot.readStructBegin();
31431
      while (true)
31432
      {
31433
        field = iprot.readFieldBegin();
3430 rajveer 31434
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1406 ankur.sing 31435
          break;
31436
        }
3430 rajveer 31437
        switch (field.id) {
31438
          case 0: // SUCCESS
31439
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
31440
              this.success = iprot.readBool();
31441
              setSuccessIsSet(true);
31442
            } else { 
31443
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31444
            }
31445
            break;
31446
          case 1: // EX
31447
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
31448
              this.ex = new TransactionServiceException();
31449
              this.ex.read(iprot);
31450
            } else { 
31451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31452
            }
31453
            break;
31454
          default:
31455
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1406 ankur.sing 31456
        }
3430 rajveer 31457
        iprot.readFieldEnd();
1406 ankur.sing 31458
      }
31459
      iprot.readStructEnd();
31460
      validate();
31461
    }
31462
 
3430 rajveer 31463
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1406 ankur.sing 31464
      oprot.writeStructBegin(STRUCT_DESC);
31465
 
31466
      if (this.isSetSuccess()) {
31467
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 31468
        oprot.writeBool(this.success);
1406 ankur.sing 31469
        oprot.writeFieldEnd();
3061 chandransh 31470
      } else if (this.isSetEx()) {
31471
        oprot.writeFieldBegin(EX_FIELD_DESC);
31472
        this.ex.write(oprot);
31473
        oprot.writeFieldEnd();
1406 ankur.sing 31474
      }
31475
      oprot.writeFieldStop();
31476
      oprot.writeStructEnd();
31477
    }
31478
 
31479
    @Override
31480
    public String toString() {
3061 chandransh 31481
      StringBuilder sb = new StringBuilder("markOrdersAsManifested_result(");
1406 ankur.sing 31482
      boolean first = true;
31483
 
31484
      sb.append("success:");
3061 chandransh 31485
      sb.append(this.success);
31486
      first = false;
31487
      if (!first) sb.append(", ");
31488
      sb.append("ex:");
31489
      if (this.ex == null) {
1406 ankur.sing 31490
        sb.append("null");
31491
      } else {
3061 chandransh 31492
        sb.append(this.ex);
1406 ankur.sing 31493
      }
31494
      first = false;
31495
      sb.append(")");
31496
      return sb.toString();
31497
    }
31498
 
3430 rajveer 31499
    public void validate() throws org.apache.thrift.TException {
1406 ankur.sing 31500
      // check for required fields
31501
    }
31502
 
3430 rajveer 31503
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31504
      try {
31505
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31506
      } catch (org.apache.thrift.TException te) {
31507
        throw new java.io.IOException(te);
31508
      }
31509
    }
31510
 
31511
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31512
      try {
31513
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31514
      } catch (org.apache.thrift.TException te) {
31515
        throw new java.io.IOException(te);
31516
      }
31517
    }
31518
 
1406 ankur.sing 31519
  }
31520
 
3430 rajveer 31521
  public static class markOrdersAsPickedUp_args implements org.apache.thrift.TBase<markOrdersAsPickedUp_args, markOrdersAsPickedUp_args._Fields>, java.io.Serializable, Cloneable   {
31522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsPickedUp_args");
305 ashish 31523
 
3430 rajveer 31524
    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);
31525
    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);
305 ashish 31526
 
3430 rajveer 31527
    private long providerId; // required
31528
    private Map<String,String> pickupDetails; // required
305 ashish 31529
 
31530
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 31531
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 31532
      PROVIDER_ID((short)1, "providerId"),
31533
      PICKUP_DETAILS((short)2, "pickupDetails");
305 ashish 31534
 
31535
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31536
 
31537
      static {
31538
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31539
          byName.put(field.getFieldName(), field);
31540
        }
31541
      }
31542
 
31543
      /**
31544
       * Find the _Fields constant that matches fieldId, or null if its not found.
31545
       */
31546
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 31547
        switch(fieldId) {
31548
          case 1: // PROVIDER_ID
31549
            return PROVIDER_ID;
31550
          case 2: // PICKUP_DETAILS
31551
            return PICKUP_DETAILS;
31552
          default:
31553
            return null;
31554
        }
305 ashish 31555
      }
31556
 
31557
      /**
31558
       * Find the _Fields constant that matches fieldId, throwing an exception
31559
       * if it is not found.
31560
       */
31561
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31562
        _Fields fields = findByThriftId(fieldId);
31563
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31564
        return fields;
31565
      }
31566
 
31567
      /**
31568
       * Find the _Fields constant that matches name, or null if its not found.
31569
       */
31570
      public static _Fields findByName(String name) {
31571
        return byName.get(name);
31572
      }
31573
 
31574
      private final short _thriftId;
31575
      private final String _fieldName;
31576
 
31577
      _Fields(short thriftId, String fieldName) {
31578
        _thriftId = thriftId;
31579
        _fieldName = fieldName;
31580
      }
31581
 
31582
      public short getThriftFieldId() {
31583
        return _thriftId;
31584
      }
31585
 
31586
      public String getFieldName() {
31587
        return _fieldName;
31588
      }
31589
    }
31590
 
31591
    // isset id assignments
3061 chandransh 31592
    private static final int __PROVIDERID_ISSET_ID = 0;
31593
    private BitSet __isset_bit_vector = new BitSet(1);
305 ashish 31594
 
3430 rajveer 31595
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
305 ashish 31596
    static {
3430 rajveer 31597
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31598
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31599
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31600
      tmpMap.put(_Fields.PICKUP_DETAILS, new org.apache.thrift.meta_data.FieldMetaData("pickupDetails", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31601
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
31602
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
31603
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
31604
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31605
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsPickedUp_args.class, metaDataMap);
305 ashish 31606
    }
31607
 
3061 chandransh 31608
    public markOrdersAsPickedUp_args() {
305 ashish 31609
    }
31610
 
3061 chandransh 31611
    public markOrdersAsPickedUp_args(
31612
      long providerId,
31613
      Map<String,String> pickupDetails)
305 ashish 31614
    {
31615
      this();
3061 chandransh 31616
      this.providerId = providerId;
31617
      setProviderIdIsSet(true);
31618
      this.pickupDetails = pickupDetails;
305 ashish 31619
    }
31620
 
31621
    /**
31622
     * Performs a deep copy on <i>other</i>.
31623
     */
3061 chandransh 31624
    public markOrdersAsPickedUp_args(markOrdersAsPickedUp_args other) {
305 ashish 31625
      __isset_bit_vector.clear();
31626
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 31627
      this.providerId = other.providerId;
31628
      if (other.isSetPickupDetails()) {
31629
        Map<String,String> __this__pickupDetails = new HashMap<String,String>();
31630
        for (Map.Entry<String, String> other_element : other.pickupDetails.entrySet()) {
31631
 
31632
          String other_element_key = other_element.getKey();
31633
          String other_element_value = other_element.getValue();
31634
 
31635
          String __this__pickupDetails_copy_key = other_element_key;
31636
 
31637
          String __this__pickupDetails_copy_value = other_element_value;
31638
 
31639
          __this__pickupDetails.put(__this__pickupDetails_copy_key, __this__pickupDetails_copy_value);
31640
        }
31641
        this.pickupDetails = __this__pickupDetails;
31642
      }
305 ashish 31643
    }
31644
 
3061 chandransh 31645
    public markOrdersAsPickedUp_args deepCopy() {
31646
      return new markOrdersAsPickedUp_args(this);
305 ashish 31647
    }
31648
 
3430 rajveer 31649
    @Override
31650
    public void clear() {
31651
      setProviderIdIsSet(false);
31652
      this.providerId = 0;
31653
      this.pickupDetails = null;
305 ashish 31654
    }
31655
 
3061 chandransh 31656
    public long getProviderId() {
31657
      return this.providerId;
305 ashish 31658
    }
31659
 
3430 rajveer 31660
    public void setProviderId(long providerId) {
3061 chandransh 31661
      this.providerId = providerId;
31662
      setProviderIdIsSet(true);
305 ashish 31663
    }
31664
 
3061 chandransh 31665
    public void unsetProviderId() {
31666
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
305 ashish 31667
    }
31668
 
3430 rajveer 31669
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 31670
    public boolean isSetProviderId() {
31671
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
305 ashish 31672
    }
31673
 
3061 chandransh 31674
    public void setProviderIdIsSet(boolean value) {
31675
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
305 ashish 31676
    }
31677
 
3061 chandransh 31678
    public int getPickupDetailsSize() {
31679
      return (this.pickupDetails == null) ? 0 : this.pickupDetails.size();
305 ashish 31680
    }
31681
 
3061 chandransh 31682
    public void putToPickupDetails(String key, String val) {
31683
      if (this.pickupDetails == null) {
31684
        this.pickupDetails = new HashMap<String,String>();
31685
      }
31686
      this.pickupDetails.put(key, val);
31687
    }
31688
 
31689
    public Map<String,String> getPickupDetails() {
31690
      return this.pickupDetails;
31691
    }
31692
 
3430 rajveer 31693
    public void setPickupDetails(Map<String,String> pickupDetails) {
3061 chandransh 31694
      this.pickupDetails = pickupDetails;
305 ashish 31695
    }
31696
 
3061 chandransh 31697
    public void unsetPickupDetails() {
31698
      this.pickupDetails = null;
305 ashish 31699
    }
31700
 
3430 rajveer 31701
    /** Returns true if field pickupDetails is set (has been assigned a value) and false otherwise */
3061 chandransh 31702
    public boolean isSetPickupDetails() {
31703
      return this.pickupDetails != null;
305 ashish 31704
    }
31705
 
3061 chandransh 31706
    public void setPickupDetailsIsSet(boolean value) {
31707
      if (!value) {
31708
        this.pickupDetails = null;
31709
      }
305 ashish 31710
    }
31711
 
31712
    public void setFieldValue(_Fields field, Object value) {
31713
      switch (field) {
3061 chandransh 31714
      case PROVIDER_ID:
305 ashish 31715
        if (value == null) {
3061 chandransh 31716
          unsetProviderId();
305 ashish 31717
        } else {
3061 chandransh 31718
          setProviderId((Long)value);
305 ashish 31719
        }
31720
        break;
31721
 
3061 chandransh 31722
      case PICKUP_DETAILS:
305 ashish 31723
        if (value == null) {
3061 chandransh 31724
          unsetPickupDetails();
305 ashish 31725
        } else {
3061 chandransh 31726
          setPickupDetails((Map<String,String>)value);
305 ashish 31727
        }
31728
        break;
31729
 
31730
      }
31731
    }
31732
 
31733
    public Object getFieldValue(_Fields field) {
31734
      switch (field) {
3061 chandransh 31735
      case PROVIDER_ID:
3430 rajveer 31736
        return Long.valueOf(getProviderId());
305 ashish 31737
 
3061 chandransh 31738
      case PICKUP_DETAILS:
31739
        return getPickupDetails();
305 ashish 31740
 
31741
      }
31742
      throw new IllegalStateException();
31743
    }
31744
 
3430 rajveer 31745
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31746
    public boolean isSet(_Fields field) {
31747
      if (field == null) {
31748
        throw new IllegalArgumentException();
31749
      }
305 ashish 31750
 
31751
      switch (field) {
3061 chandransh 31752
      case PROVIDER_ID:
31753
        return isSetProviderId();
31754
      case PICKUP_DETAILS:
31755
        return isSetPickupDetails();
305 ashish 31756
      }
31757
      throw new IllegalStateException();
31758
    }
31759
 
31760
    @Override
31761
    public boolean equals(Object that) {
31762
      if (that == null)
31763
        return false;
3061 chandransh 31764
      if (that instanceof markOrdersAsPickedUp_args)
31765
        return this.equals((markOrdersAsPickedUp_args)that);
305 ashish 31766
      return false;
31767
    }
31768
 
3061 chandransh 31769
    public boolean equals(markOrdersAsPickedUp_args that) {
305 ashish 31770
      if (that == null)
31771
        return false;
31772
 
3061 chandransh 31773
      boolean this_present_providerId = true;
31774
      boolean that_present_providerId = true;
31775
      if (this_present_providerId || that_present_providerId) {
31776
        if (!(this_present_providerId && that_present_providerId))
305 ashish 31777
          return false;
3061 chandransh 31778
        if (this.providerId != that.providerId)
305 ashish 31779
          return false;
31780
      }
31781
 
3061 chandransh 31782
      boolean this_present_pickupDetails = true && this.isSetPickupDetails();
31783
      boolean that_present_pickupDetails = true && that.isSetPickupDetails();
31784
      if (this_present_pickupDetails || that_present_pickupDetails) {
31785
        if (!(this_present_pickupDetails && that_present_pickupDetails))
305 ashish 31786
          return false;
3061 chandransh 31787
        if (!this.pickupDetails.equals(that.pickupDetails))
305 ashish 31788
          return false;
31789
      }
31790
 
31791
      return true;
31792
    }
31793
 
31794
    @Override
31795
    public int hashCode() {
31796
      return 0;
31797
    }
31798
 
3430 rajveer 31799
    public int compareTo(markOrdersAsPickedUp_args other) {
31800
      if (!getClass().equals(other.getClass())) {
31801
        return getClass().getName().compareTo(other.getClass().getName());
31802
      }
31803
 
31804
      int lastComparison = 0;
31805
      markOrdersAsPickedUp_args typedOther = (markOrdersAsPickedUp_args)other;
31806
 
31807
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
31808
      if (lastComparison != 0) {
31809
        return lastComparison;
31810
      }
31811
      if (isSetProviderId()) {
31812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
31813
        if (lastComparison != 0) {
31814
          return lastComparison;
31815
        }
31816
      }
31817
      lastComparison = Boolean.valueOf(isSetPickupDetails()).compareTo(typedOther.isSetPickupDetails());
31818
      if (lastComparison != 0) {
31819
        return lastComparison;
31820
      }
31821
      if (isSetPickupDetails()) {
31822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupDetails, typedOther.pickupDetails);
31823
        if (lastComparison != 0) {
31824
          return lastComparison;
31825
        }
31826
      }
31827
      return 0;
31828
    }
31829
 
31830
    public _Fields fieldForId(int fieldId) {
31831
      return _Fields.findByThriftId(fieldId);
31832
    }
31833
 
31834
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31835
      org.apache.thrift.protocol.TField field;
305 ashish 31836
      iprot.readStructBegin();
31837
      while (true)
31838
      {
31839
        field = iprot.readFieldBegin();
3430 rajveer 31840
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
305 ashish 31841
          break;
31842
        }
3430 rajveer 31843
        switch (field.id) {
31844
          case 1: // PROVIDER_ID
31845
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31846
              this.providerId = iprot.readI64();
31847
              setProviderIdIsSet(true);
31848
            } else { 
31849
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31850
            }
31851
            break;
31852
          case 2: // PICKUP_DETAILS
31853
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
31854
              {
4133 chandransh 31855
                org.apache.thrift.protocol.TMap _map80 = iprot.readMapBegin();
31856
                this.pickupDetails = new HashMap<String,String>(2*_map80.size);
31857
                for (int _i81 = 0; _i81 < _map80.size; ++_i81)
3061 chandransh 31858
                {
4133 chandransh 31859
                  String _key82; // required
31860
                  String _val83; // required
31861
                  _key82 = iprot.readString();
31862
                  _val83 = iprot.readString();
31863
                  this.pickupDetails.put(_key82, _val83);
3061 chandransh 31864
                }
3430 rajveer 31865
                iprot.readMapEnd();
305 ashish 31866
              }
3430 rajveer 31867
            } else { 
31868
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31869
            }
31870
            break;
31871
          default:
31872
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
305 ashish 31873
        }
3430 rajveer 31874
        iprot.readFieldEnd();
305 ashish 31875
      }
31876
      iprot.readStructEnd();
31877
      validate();
31878
    }
31879
 
3430 rajveer 31880
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
305 ashish 31881
      validate();
31882
 
31883
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 31884
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
31885
      oprot.writeI64(this.providerId);
305 ashish 31886
      oprot.writeFieldEnd();
3061 chandransh 31887
      if (this.pickupDetails != null) {
31888
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
31889
        {
3430 rajveer 31890
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.pickupDetails.size()));
4133 chandransh 31891
          for (Map.Entry<String, String> _iter84 : this.pickupDetails.entrySet())
3061 chandransh 31892
          {
4133 chandransh 31893
            oprot.writeString(_iter84.getKey());
31894
            oprot.writeString(_iter84.getValue());
3061 chandransh 31895
          }
31896
          oprot.writeMapEnd();
31897
        }
31898
        oprot.writeFieldEnd();
31899
      }
305 ashish 31900
      oprot.writeFieldStop();
31901
      oprot.writeStructEnd();
31902
    }
31903
 
31904
    @Override
31905
    public String toString() {
3061 chandransh 31906
      StringBuilder sb = new StringBuilder("markOrdersAsPickedUp_args(");
305 ashish 31907
      boolean first = true;
31908
 
3061 chandransh 31909
      sb.append("providerId:");
31910
      sb.append(this.providerId);
305 ashish 31911
      first = false;
31912
      if (!first) sb.append(", ");
3061 chandransh 31913
      sb.append("pickupDetails:");
31914
      if (this.pickupDetails == null) {
31915
        sb.append("null");
31916
      } else {
31917
        sb.append(this.pickupDetails);
31918
      }
305 ashish 31919
      first = false;
31920
      sb.append(")");
31921
      return sb.toString();
31922
    }
31923
 
3430 rajveer 31924
    public void validate() throws org.apache.thrift.TException {
305 ashish 31925
      // check for required fields
31926
    }
31927
 
3430 rajveer 31928
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31929
      try {
31930
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31931
      } catch (org.apache.thrift.TException te) {
31932
        throw new java.io.IOException(te);
31933
      }
31934
    }
31935
 
31936
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31937
      try {
31938
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31939
      } catch (org.apache.thrift.TException te) {
31940
        throw new java.io.IOException(te);
31941
      }
31942
    }
31943
 
305 ashish 31944
  }
31945
 
3430 rajveer 31946
  public static class markOrdersAsPickedUp_result implements org.apache.thrift.TBase<markOrdersAsPickedUp_result, markOrdersAsPickedUp_result._Fields>, java.io.Serializable, Cloneable   {
31947
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsPickedUp_result");
305 ashish 31948
 
3430 rajveer 31949
    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);
31950
    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);
305 ashish 31951
 
3430 rajveer 31952
    private List<Order> success; // required
31953
    private TransactionServiceException ex; // required
305 ashish 31954
 
31955
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 31956
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 31957
      SUCCESS((short)0, "success"),
31958
      EX((short)1, "ex");
305 ashish 31959
 
31960
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31961
 
31962
      static {
31963
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31964
          byName.put(field.getFieldName(), field);
31965
        }
31966
      }
31967
 
31968
      /**
31969
       * Find the _Fields constant that matches fieldId, or null if its not found.
31970
       */
31971
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 31972
        switch(fieldId) {
31973
          case 0: // SUCCESS
31974
            return SUCCESS;
31975
          case 1: // EX
31976
            return EX;
31977
          default:
31978
            return null;
31979
        }
305 ashish 31980
      }
31981
 
31982
      /**
31983
       * Find the _Fields constant that matches fieldId, throwing an exception
31984
       * if it is not found.
31985
       */
31986
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31987
        _Fields fields = findByThriftId(fieldId);
31988
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31989
        return fields;
31990
      }
31991
 
31992
      /**
31993
       * Find the _Fields constant that matches name, or null if its not found.
31994
       */
31995
      public static _Fields findByName(String name) {
31996
        return byName.get(name);
31997
      }
31998
 
31999
      private final short _thriftId;
32000
      private final String _fieldName;
32001
 
32002
      _Fields(short thriftId, String fieldName) {
32003
        _thriftId = thriftId;
32004
        _fieldName = fieldName;
32005
      }
32006
 
32007
      public short getThriftFieldId() {
32008
        return _thriftId;
32009
      }
32010
 
32011
      public String getFieldName() {
32012
        return _fieldName;
32013
      }
32014
    }
32015
 
32016
    // isset id assignments
32017
 
3430 rajveer 32018
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
305 ashish 32019
    static {
3430 rajveer 32020
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32021
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32022
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
32023
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
32024
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32025
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32026
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32027
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsPickedUp_result.class, metaDataMap);
305 ashish 32028
    }
32029
 
3061 chandransh 32030
    public markOrdersAsPickedUp_result() {
305 ashish 32031
    }
32032
 
3061 chandransh 32033
    public markOrdersAsPickedUp_result(
32034
      List<Order> success,
32035
      TransactionServiceException ex)
305 ashish 32036
    {
32037
      this();
32038
      this.success = success;
3061 chandransh 32039
      this.ex = ex;
305 ashish 32040
    }
32041
 
32042
    /**
32043
     * Performs a deep copy on <i>other</i>.
32044
     */
3061 chandransh 32045
    public markOrdersAsPickedUp_result(markOrdersAsPickedUp_result other) {
305 ashish 32046
      if (other.isSetSuccess()) {
3061 chandransh 32047
        List<Order> __this__success = new ArrayList<Order>();
32048
        for (Order other_element : other.success) {
32049
          __this__success.add(new Order(other_element));
305 ashish 32050
        }
32051
        this.success = __this__success;
32052
      }
3061 chandransh 32053
      if (other.isSetEx()) {
32054
        this.ex = new TransactionServiceException(other.ex);
32055
      }
305 ashish 32056
    }
32057
 
3061 chandransh 32058
    public markOrdersAsPickedUp_result deepCopy() {
32059
      return new markOrdersAsPickedUp_result(this);
305 ashish 32060
    }
32061
 
3430 rajveer 32062
    @Override
32063
    public void clear() {
32064
      this.success = null;
32065
      this.ex = null;
305 ashish 32066
    }
32067
 
32068
    public int getSuccessSize() {
32069
      return (this.success == null) ? 0 : this.success.size();
32070
    }
32071
 
3061 chandransh 32072
    public java.util.Iterator<Order> getSuccessIterator() {
305 ashish 32073
      return (this.success == null) ? null : this.success.iterator();
32074
    }
32075
 
3061 chandransh 32076
    public void addToSuccess(Order elem) {
305 ashish 32077
      if (this.success == null) {
3061 chandransh 32078
        this.success = new ArrayList<Order>();
305 ashish 32079
      }
32080
      this.success.add(elem);
32081
    }
32082
 
3061 chandransh 32083
    public List<Order> getSuccess() {
305 ashish 32084
      return this.success;
32085
    }
32086
 
3430 rajveer 32087
    public void setSuccess(List<Order> success) {
305 ashish 32088
      this.success = success;
32089
    }
32090
 
32091
    public void unsetSuccess() {
32092
      this.success = null;
32093
    }
32094
 
3430 rajveer 32095
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
305 ashish 32096
    public boolean isSetSuccess() {
32097
      return this.success != null;
32098
    }
32099
 
32100
    public void setSuccessIsSet(boolean value) {
32101
      if (!value) {
32102
        this.success = null;
32103
      }
32104
    }
32105
 
3061 chandransh 32106
    public TransactionServiceException getEx() {
32107
      return this.ex;
32108
    }
32109
 
3430 rajveer 32110
    public void setEx(TransactionServiceException ex) {
3061 chandransh 32111
      this.ex = ex;
32112
    }
32113
 
32114
    public void unsetEx() {
32115
      this.ex = null;
32116
    }
32117
 
3430 rajveer 32118
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 32119
    public boolean isSetEx() {
32120
      return this.ex != null;
32121
    }
32122
 
32123
    public void setExIsSet(boolean value) {
32124
      if (!value) {
32125
        this.ex = null;
32126
      }
32127
    }
32128
 
305 ashish 32129
    public void setFieldValue(_Fields field, Object value) {
32130
      switch (field) {
32131
      case SUCCESS:
32132
        if (value == null) {
32133
          unsetSuccess();
32134
        } else {
3061 chandransh 32135
          setSuccess((List<Order>)value);
305 ashish 32136
        }
32137
        break;
32138
 
3061 chandransh 32139
      case EX:
32140
        if (value == null) {
32141
          unsetEx();
32142
        } else {
32143
          setEx((TransactionServiceException)value);
32144
        }
32145
        break;
32146
 
305 ashish 32147
      }
32148
    }
32149
 
32150
    public Object getFieldValue(_Fields field) {
32151
      switch (field) {
32152
      case SUCCESS:
32153
        return getSuccess();
32154
 
3061 chandransh 32155
      case EX:
32156
        return getEx();
32157
 
305 ashish 32158
      }
32159
      throw new IllegalStateException();
32160
    }
32161
 
3430 rajveer 32162
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32163
    public boolean isSet(_Fields field) {
32164
      if (field == null) {
32165
        throw new IllegalArgumentException();
32166
      }
305 ashish 32167
 
32168
      switch (field) {
32169
      case SUCCESS:
32170
        return isSetSuccess();
3061 chandransh 32171
      case EX:
32172
        return isSetEx();
305 ashish 32173
      }
32174
      throw new IllegalStateException();
32175
    }
32176
 
32177
    @Override
32178
    public boolean equals(Object that) {
32179
      if (that == null)
32180
        return false;
3061 chandransh 32181
      if (that instanceof markOrdersAsPickedUp_result)
32182
        return this.equals((markOrdersAsPickedUp_result)that);
305 ashish 32183
      return false;
32184
    }
32185
 
3061 chandransh 32186
    public boolean equals(markOrdersAsPickedUp_result that) {
305 ashish 32187
      if (that == null)
32188
        return false;
32189
 
32190
      boolean this_present_success = true && this.isSetSuccess();
32191
      boolean that_present_success = true && that.isSetSuccess();
32192
      if (this_present_success || that_present_success) {
32193
        if (!(this_present_success && that_present_success))
32194
          return false;
32195
        if (!this.success.equals(that.success))
32196
          return false;
32197
      }
32198
 
3061 chandransh 32199
      boolean this_present_ex = true && this.isSetEx();
32200
      boolean that_present_ex = true && that.isSetEx();
32201
      if (this_present_ex || that_present_ex) {
32202
        if (!(this_present_ex && that_present_ex))
32203
          return false;
32204
        if (!this.ex.equals(that.ex))
32205
          return false;
32206
      }
32207
 
305 ashish 32208
      return true;
32209
    }
32210
 
32211
    @Override
32212
    public int hashCode() {
32213
      return 0;
32214
    }
32215
 
3061 chandransh 32216
    public int compareTo(markOrdersAsPickedUp_result other) {
305 ashish 32217
      if (!getClass().equals(other.getClass())) {
32218
        return getClass().getName().compareTo(other.getClass().getName());
32219
      }
32220
 
32221
      int lastComparison = 0;
3061 chandransh 32222
      markOrdersAsPickedUp_result typedOther = (markOrdersAsPickedUp_result)other;
305 ashish 32223
 
3430 rajveer 32224
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
305 ashish 32225
      if (lastComparison != 0) {
32226
        return lastComparison;
32227
      }
3430 rajveer 32228
      if (isSetSuccess()) {
32229
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32230
        if (lastComparison != 0) {
32231
          return lastComparison;
32232
        }
305 ashish 32233
      }
3430 rajveer 32234
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
3061 chandransh 32235
      if (lastComparison != 0) {
32236
        return lastComparison;
32237
      }
3430 rajveer 32238
      if (isSetEx()) {
32239
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
32240
        if (lastComparison != 0) {
32241
          return lastComparison;
32242
        }
3061 chandransh 32243
      }
305 ashish 32244
      return 0;
32245
    }
32246
 
3430 rajveer 32247
    public _Fields fieldForId(int fieldId) {
32248
      return _Fields.findByThriftId(fieldId);
32249
    }
32250
 
32251
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32252
      org.apache.thrift.protocol.TField field;
305 ashish 32253
      iprot.readStructBegin();
32254
      while (true)
32255
      {
32256
        field = iprot.readFieldBegin();
3430 rajveer 32257
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
305 ashish 32258
          break;
32259
        }
3430 rajveer 32260
        switch (field.id) {
32261
          case 0: // SUCCESS
32262
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
32263
              {
4133 chandransh 32264
                org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();
32265
                this.success = new ArrayList<Order>(_list85.size);
32266
                for (int _i86 = 0; _i86 < _list85.size; ++_i86)
305 ashish 32267
                {
4133 chandransh 32268
                  Order _elem87; // required
32269
                  _elem87 = new Order();
32270
                  _elem87.read(iprot);
32271
                  this.success.add(_elem87);
305 ashish 32272
                }
3430 rajveer 32273
                iprot.readListEnd();
305 ashish 32274
              }
3430 rajveer 32275
            } else { 
32276
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32277
            }
32278
            break;
32279
          case 1: // EX
32280
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32281
              this.ex = new TransactionServiceException();
32282
              this.ex.read(iprot);
32283
            } else { 
32284
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32285
            }
32286
            break;
32287
          default:
32288
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
305 ashish 32289
        }
3430 rajveer 32290
        iprot.readFieldEnd();
305 ashish 32291
      }
32292
      iprot.readStructEnd();
32293
      validate();
32294
    }
32295
 
3430 rajveer 32296
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
305 ashish 32297
      oprot.writeStructBegin(STRUCT_DESC);
32298
 
32299
      if (this.isSetSuccess()) {
32300
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32301
        {
3430 rajveer 32302
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 32303
          for (Order _iter88 : this.success)
305 ashish 32304
          {
4133 chandransh 32305
            _iter88.write(oprot);
305 ashish 32306
          }
32307
          oprot.writeListEnd();
32308
        }
32309
        oprot.writeFieldEnd();
3061 chandransh 32310
      } else if (this.isSetEx()) {
32311
        oprot.writeFieldBegin(EX_FIELD_DESC);
32312
        this.ex.write(oprot);
32313
        oprot.writeFieldEnd();
305 ashish 32314
      }
32315
      oprot.writeFieldStop();
32316
      oprot.writeStructEnd();
32317
    }
32318
 
32319
    @Override
32320
    public String toString() {
3061 chandransh 32321
      StringBuilder sb = new StringBuilder("markOrdersAsPickedUp_result(");
305 ashish 32322
      boolean first = true;
32323
 
32324
      sb.append("success:");
32325
      if (this.success == null) {
32326
        sb.append("null");
32327
      } else {
32328
        sb.append(this.success);
32329
      }
32330
      first = false;
3061 chandransh 32331
      if (!first) sb.append(", ");
32332
      sb.append("ex:");
32333
      if (this.ex == null) {
32334
        sb.append("null");
32335
      } else {
32336
        sb.append(this.ex);
32337
      }
32338
      first = false;
305 ashish 32339
      sb.append(")");
32340
      return sb.toString();
32341
    }
32342
 
3430 rajveer 32343
    public void validate() throws org.apache.thrift.TException {
305 ashish 32344
      // check for required fields
32345
    }
32346
 
3430 rajveer 32347
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32348
      try {
32349
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32350
      } catch (org.apache.thrift.TException te) {
32351
        throw new java.io.IOException(te);
32352
      }
32353
    }
32354
 
32355
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32356
      try {
32357
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32358
      } catch (org.apache.thrift.TException te) {
32359
        throw new java.io.IOException(te);
32360
      }
32361
    }
32362
 
305 ashish 32363
  }
32364
 
3430 rajveer 32365
  public static class markOrdersAsDelivered_args implements org.apache.thrift.TBase<markOrdersAsDelivered_args, markOrdersAsDelivered_args._Fields>, java.io.Serializable, Cloneable   {
32366
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsDelivered_args");
305 ashish 32367
 
3430 rajveer 32368
    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);
32369
    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);
305 ashish 32370
 
3430 rajveer 32371
    private long providerId; // required
32372
    private Map<String,String> deliveredOrders; // required
305 ashish 32373
 
32374
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32375
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 32376
      PROVIDER_ID((short)1, "providerId"),
32377
      DELIVERED_ORDERS((short)2, "deliveredOrders");
305 ashish 32378
 
32379
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32380
 
32381
      static {
32382
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32383
          byName.put(field.getFieldName(), field);
32384
        }
32385
      }
32386
 
32387
      /**
32388
       * Find the _Fields constant that matches fieldId, or null if its not found.
32389
       */
32390
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32391
        switch(fieldId) {
32392
          case 1: // PROVIDER_ID
32393
            return PROVIDER_ID;
32394
          case 2: // DELIVERED_ORDERS
32395
            return DELIVERED_ORDERS;
32396
          default:
32397
            return null;
32398
        }
305 ashish 32399
      }
32400
 
32401
      /**
32402
       * Find the _Fields constant that matches fieldId, throwing an exception
32403
       * if it is not found.
32404
       */
32405
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32406
        _Fields fields = findByThriftId(fieldId);
32407
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32408
        return fields;
32409
      }
32410
 
32411
      /**
32412
       * Find the _Fields constant that matches name, or null if its not found.
32413
       */
32414
      public static _Fields findByName(String name) {
32415
        return byName.get(name);
32416
      }
32417
 
32418
      private final short _thriftId;
32419
      private final String _fieldName;
32420
 
32421
      _Fields(short thriftId, String fieldName) {
32422
        _thriftId = thriftId;
32423
        _fieldName = fieldName;
32424
      }
32425
 
32426
      public short getThriftFieldId() {
32427
        return _thriftId;
32428
      }
32429
 
32430
      public String getFieldName() {
32431
        return _fieldName;
32432
      }
32433
    }
32434
 
32435
    // isset id assignments
3061 chandransh 32436
    private static final int __PROVIDERID_ISSET_ID = 0;
32437
    private BitSet __isset_bit_vector = new BitSet(1);
305 ashish 32438
 
3430 rajveer 32439
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
305 ashish 32440
    static {
3430 rajveer 32441
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32442
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32443
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32444
      tmpMap.put(_Fields.DELIVERED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("deliveredOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32445
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
32446
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
32447
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
32448
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32449
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_args.class, metaDataMap);
305 ashish 32450
    }
32451
 
3061 chandransh 32452
    public markOrdersAsDelivered_args() {
305 ashish 32453
    }
32454
 
3061 chandransh 32455
    public markOrdersAsDelivered_args(
32456
      long providerId,
32457
      Map<String,String> deliveredOrders)
305 ashish 32458
    {
32459
      this();
3061 chandransh 32460
      this.providerId = providerId;
32461
      setProviderIdIsSet(true);
32462
      this.deliveredOrders = deliveredOrders;
305 ashish 32463
    }
32464
 
32465
    /**
32466
     * Performs a deep copy on <i>other</i>.
32467
     */
3061 chandransh 32468
    public markOrdersAsDelivered_args(markOrdersAsDelivered_args other) {
305 ashish 32469
      __isset_bit_vector.clear();
32470
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 32471
      this.providerId = other.providerId;
32472
      if (other.isSetDeliveredOrders()) {
32473
        Map<String,String> __this__deliveredOrders = new HashMap<String,String>();
32474
        for (Map.Entry<String, String> other_element : other.deliveredOrders.entrySet()) {
305 ashish 32475
 
3061 chandransh 32476
          String other_element_key = other_element.getKey();
32477
          String other_element_value = other_element.getValue();
305 ashish 32478
 
3061 chandransh 32479
          String __this__deliveredOrders_copy_key = other_element_key;
305 ashish 32480
 
3061 chandransh 32481
          String __this__deliveredOrders_copy_value = other_element_value;
305 ashish 32482
 
3061 chandransh 32483
          __this__deliveredOrders.put(__this__deliveredOrders_copy_key, __this__deliveredOrders_copy_value);
32484
        }
32485
        this.deliveredOrders = __this__deliveredOrders;
32486
      }
305 ashish 32487
    }
32488
 
3061 chandransh 32489
    public markOrdersAsDelivered_args deepCopy() {
32490
      return new markOrdersAsDelivered_args(this);
305 ashish 32491
    }
32492
 
3430 rajveer 32493
    @Override
32494
    public void clear() {
32495
      setProviderIdIsSet(false);
32496
      this.providerId = 0;
32497
      this.deliveredOrders = null;
305 ashish 32498
    }
32499
 
3061 chandransh 32500
    public long getProviderId() {
32501
      return this.providerId;
305 ashish 32502
    }
32503
 
3430 rajveer 32504
    public void setProviderId(long providerId) {
3061 chandransh 32505
      this.providerId = providerId;
32506
      setProviderIdIsSet(true);
305 ashish 32507
    }
32508
 
3061 chandransh 32509
    public void unsetProviderId() {
32510
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
305 ashish 32511
    }
32512
 
3430 rajveer 32513
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 32514
    public boolean isSetProviderId() {
32515
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
305 ashish 32516
    }
32517
 
3061 chandransh 32518
    public void setProviderIdIsSet(boolean value) {
32519
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
305 ashish 32520
    }
32521
 
3061 chandransh 32522
    public int getDeliveredOrdersSize() {
32523
      return (this.deliveredOrders == null) ? 0 : this.deliveredOrders.size();
305 ashish 32524
    }
32525
 
3061 chandransh 32526
    public void putToDeliveredOrders(String key, String val) {
32527
      if (this.deliveredOrders == null) {
32528
        this.deliveredOrders = new HashMap<String,String>();
32529
      }
32530
      this.deliveredOrders.put(key, val);
305 ashish 32531
    }
32532
 
3061 chandransh 32533
    public Map<String,String> getDeliveredOrders() {
32534
      return this.deliveredOrders;
305 ashish 32535
    }
32536
 
3430 rajveer 32537
    public void setDeliveredOrders(Map<String,String> deliveredOrders) {
3061 chandransh 32538
      this.deliveredOrders = deliveredOrders;
305 ashish 32539
    }
32540
 
3061 chandransh 32541
    public void unsetDeliveredOrders() {
32542
      this.deliveredOrders = null;
305 ashish 32543
    }
32544
 
3430 rajveer 32545
    /** Returns true if field deliveredOrders is set (has been assigned a value) and false otherwise */
3061 chandransh 32546
    public boolean isSetDeliveredOrders() {
32547
      return this.deliveredOrders != null;
305 ashish 32548
    }
32549
 
3061 chandransh 32550
    public void setDeliveredOrdersIsSet(boolean value) {
305 ashish 32551
      if (!value) {
3061 chandransh 32552
        this.deliveredOrders = null;
305 ashish 32553
      }
32554
    }
32555
 
32556
    public void setFieldValue(_Fields field, Object value) {
32557
      switch (field) {
3061 chandransh 32558
      case PROVIDER_ID:
305 ashish 32559
        if (value == null) {
3061 chandransh 32560
          unsetProviderId();
305 ashish 32561
        } else {
3061 chandransh 32562
          setProviderId((Long)value);
305 ashish 32563
        }
32564
        break;
32565
 
3061 chandransh 32566
      case DELIVERED_ORDERS:
305 ashish 32567
        if (value == null) {
3061 chandransh 32568
          unsetDeliveredOrders();
305 ashish 32569
        } else {
3061 chandransh 32570
          setDeliveredOrders((Map<String,String>)value);
305 ashish 32571
        }
32572
        break;
32573
 
32574
      }
32575
    }
32576
 
32577
    public Object getFieldValue(_Fields field) {
32578
      switch (field) {
3061 chandransh 32579
      case PROVIDER_ID:
3430 rajveer 32580
        return Long.valueOf(getProviderId());
305 ashish 32581
 
3061 chandransh 32582
      case DELIVERED_ORDERS:
32583
        return getDeliveredOrders();
305 ashish 32584
 
32585
      }
32586
      throw new IllegalStateException();
32587
    }
32588
 
3430 rajveer 32589
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32590
    public boolean isSet(_Fields field) {
32591
      if (field == null) {
32592
        throw new IllegalArgumentException();
32593
      }
305 ashish 32594
 
32595
      switch (field) {
3061 chandransh 32596
      case PROVIDER_ID:
32597
        return isSetProviderId();
32598
      case DELIVERED_ORDERS:
32599
        return isSetDeliveredOrders();
305 ashish 32600
      }
32601
      throw new IllegalStateException();
32602
    }
32603
 
32604
    @Override
32605
    public boolean equals(Object that) {
32606
      if (that == null)
32607
        return false;
3061 chandransh 32608
      if (that instanceof markOrdersAsDelivered_args)
32609
        return this.equals((markOrdersAsDelivered_args)that);
305 ashish 32610
      return false;
32611
    }
32612
 
3061 chandransh 32613
    public boolean equals(markOrdersAsDelivered_args that) {
305 ashish 32614
      if (that == null)
32615
        return false;
32616
 
3061 chandransh 32617
      boolean this_present_providerId = true;
32618
      boolean that_present_providerId = true;
32619
      if (this_present_providerId || that_present_providerId) {
32620
        if (!(this_present_providerId && that_present_providerId))
305 ashish 32621
          return false;
3061 chandransh 32622
        if (this.providerId != that.providerId)
305 ashish 32623
          return false;
32624
      }
32625
 
3061 chandransh 32626
      boolean this_present_deliveredOrders = true && this.isSetDeliveredOrders();
32627
      boolean that_present_deliveredOrders = true && that.isSetDeliveredOrders();
32628
      if (this_present_deliveredOrders || that_present_deliveredOrders) {
32629
        if (!(this_present_deliveredOrders && that_present_deliveredOrders))
305 ashish 32630
          return false;
3061 chandransh 32631
        if (!this.deliveredOrders.equals(that.deliveredOrders))
305 ashish 32632
          return false;
32633
      }
32634
 
32635
      return true;
32636
    }
32637
 
32638
    @Override
32639
    public int hashCode() {
32640
      return 0;
32641
    }
32642
 
3430 rajveer 32643
    public int compareTo(markOrdersAsDelivered_args other) {
32644
      if (!getClass().equals(other.getClass())) {
32645
        return getClass().getName().compareTo(other.getClass().getName());
32646
      }
32647
 
32648
      int lastComparison = 0;
32649
      markOrdersAsDelivered_args typedOther = (markOrdersAsDelivered_args)other;
32650
 
32651
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
32652
      if (lastComparison != 0) {
32653
        return lastComparison;
32654
      }
32655
      if (isSetProviderId()) {
32656
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
32657
        if (lastComparison != 0) {
32658
          return lastComparison;
32659
        }
32660
      }
32661
      lastComparison = Boolean.valueOf(isSetDeliveredOrders()).compareTo(typedOther.isSetDeliveredOrders());
32662
      if (lastComparison != 0) {
32663
        return lastComparison;
32664
      }
32665
      if (isSetDeliveredOrders()) {
32666
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveredOrders, typedOther.deliveredOrders);
32667
        if (lastComparison != 0) {
32668
          return lastComparison;
32669
        }
32670
      }
32671
      return 0;
32672
    }
32673
 
32674
    public _Fields fieldForId(int fieldId) {
32675
      return _Fields.findByThriftId(fieldId);
32676
    }
32677
 
32678
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32679
      org.apache.thrift.protocol.TField field;
305 ashish 32680
      iprot.readStructBegin();
32681
      while (true)
32682
      {
32683
        field = iprot.readFieldBegin();
3430 rajveer 32684
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
305 ashish 32685
          break;
32686
        }
3430 rajveer 32687
        switch (field.id) {
32688
          case 1: // PROVIDER_ID
32689
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32690
              this.providerId = iprot.readI64();
32691
              setProviderIdIsSet(true);
32692
            } else { 
32693
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32694
            }
32695
            break;
32696
          case 2: // DELIVERED_ORDERS
32697
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
32698
              {
4133 chandransh 32699
                org.apache.thrift.protocol.TMap _map89 = iprot.readMapBegin();
32700
                this.deliveredOrders = new HashMap<String,String>(2*_map89.size);
32701
                for (int _i90 = 0; _i90 < _map89.size; ++_i90)
3061 chandransh 32702
                {
4133 chandransh 32703
                  String _key91; // required
32704
                  String _val92; // required
32705
                  _key91 = iprot.readString();
32706
                  _val92 = iprot.readString();
32707
                  this.deliveredOrders.put(_key91, _val92);
3061 chandransh 32708
                }
3430 rajveer 32709
                iprot.readMapEnd();
305 ashish 32710
              }
3430 rajveer 32711
            } else { 
32712
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32713
            }
32714
            break;
32715
          default:
32716
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
305 ashish 32717
        }
3430 rajveer 32718
        iprot.readFieldEnd();
305 ashish 32719
      }
32720
      iprot.readStructEnd();
32721
      validate();
32722
    }
32723
 
3430 rajveer 32724
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
305 ashish 32725
      validate();
32726
 
32727
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 32728
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
32729
      oprot.writeI64(this.providerId);
305 ashish 32730
      oprot.writeFieldEnd();
3061 chandransh 32731
      if (this.deliveredOrders != null) {
32732
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
32733
        {
3430 rajveer 32734
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.deliveredOrders.size()));
4133 chandransh 32735
          for (Map.Entry<String, String> _iter93 : this.deliveredOrders.entrySet())
3061 chandransh 32736
          {
4133 chandransh 32737
            oprot.writeString(_iter93.getKey());
32738
            oprot.writeString(_iter93.getValue());
3061 chandransh 32739
          }
32740
          oprot.writeMapEnd();
32741
        }
305 ashish 32742
        oprot.writeFieldEnd();
32743
      }
32744
      oprot.writeFieldStop();
32745
      oprot.writeStructEnd();
32746
    }
32747
 
32748
    @Override
32749
    public String toString() {
3061 chandransh 32750
      StringBuilder sb = new StringBuilder("markOrdersAsDelivered_args(");
305 ashish 32751
      boolean first = true;
32752
 
3061 chandransh 32753
      sb.append("providerId:");
32754
      sb.append(this.providerId);
305 ashish 32755
      first = false;
32756
      if (!first) sb.append(", ");
3061 chandransh 32757
      sb.append("deliveredOrders:");
32758
      if (this.deliveredOrders == null) {
305 ashish 32759
        sb.append("null");
32760
      } else {
3061 chandransh 32761
        sb.append(this.deliveredOrders);
305 ashish 32762
      }
32763
      first = false;
32764
      sb.append(")");
32765
      return sb.toString();
32766
    }
32767
 
3430 rajveer 32768
    public void validate() throws org.apache.thrift.TException {
305 ashish 32769
      // check for required fields
32770
    }
32771
 
3430 rajveer 32772
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32773
      try {
32774
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32775
      } catch (org.apache.thrift.TException te) {
32776
        throw new java.io.IOException(te);
32777
      }
32778
    }
32779
 
32780
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32781
      try {
32782
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32783
      } catch (org.apache.thrift.TException te) {
32784
        throw new java.io.IOException(te);
32785
      }
32786
    }
32787
 
305 ashish 32788
  }
32789
 
3430 rajveer 32790
  public static class markOrdersAsDelivered_result implements org.apache.thrift.TBase<markOrdersAsDelivered_result, markOrdersAsDelivered_result._Fields>, java.io.Serializable, Cloneable   {
32791
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsDelivered_result");
305 ashish 32792
 
3430 rajveer 32793
    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);
305 ashish 32794
 
3430 rajveer 32795
    private TransactionServiceException ex; // required
305 ashish 32796
 
32797
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32798
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 32799
      EX((short)1, "ex");
305 ashish 32800
 
32801
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32802
 
32803
      static {
32804
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32805
          byName.put(field.getFieldName(), field);
32806
        }
32807
      }
32808
 
32809
      /**
32810
       * Find the _Fields constant that matches fieldId, or null if its not found.
32811
       */
32812
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32813
        switch(fieldId) {
32814
          case 1: // EX
32815
            return EX;
32816
          default:
32817
            return null;
32818
        }
305 ashish 32819
      }
32820
 
32821
      /**
32822
       * Find the _Fields constant that matches fieldId, throwing an exception
32823
       * if it is not found.
32824
       */
32825
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32826
        _Fields fields = findByThriftId(fieldId);
32827
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32828
        return fields;
32829
      }
32830
 
32831
      /**
32832
       * Find the _Fields constant that matches name, or null if its not found.
32833
       */
32834
      public static _Fields findByName(String name) {
32835
        return byName.get(name);
32836
      }
32837
 
32838
      private final short _thriftId;
32839
      private final String _fieldName;
32840
 
32841
      _Fields(short thriftId, String fieldName) {
32842
        _thriftId = thriftId;
32843
        _fieldName = fieldName;
32844
      }
32845
 
32846
      public short getThriftFieldId() {
32847
        return _thriftId;
32848
      }
32849
 
32850
      public String getFieldName() {
32851
        return _fieldName;
32852
      }
32853
    }
3061 chandransh 32854
 
32855
    // isset id assignments
32856
 
3430 rajveer 32857
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
305 ashish 32858
    static {
3430 rajveer 32859
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32860
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32861
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32862
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32863
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_result.class, metaDataMap);
305 ashish 32864
    }
32865
 
3061 chandransh 32866
    public markOrdersAsDelivered_result() {
305 ashish 32867
    }
32868
 
3061 chandransh 32869
    public markOrdersAsDelivered_result(
32870
      TransactionServiceException ex)
32871
    {
32872
      this();
32873
      this.ex = ex;
32874
    }
32875
 
305 ashish 32876
    /**
32877
     * Performs a deep copy on <i>other</i>.
32878
     */
3061 chandransh 32879
    public markOrdersAsDelivered_result(markOrdersAsDelivered_result other) {
32880
      if (other.isSetEx()) {
32881
        this.ex = new TransactionServiceException(other.ex);
32882
      }
305 ashish 32883
    }
32884
 
3061 chandransh 32885
    public markOrdersAsDelivered_result deepCopy() {
32886
      return new markOrdersAsDelivered_result(this);
305 ashish 32887
    }
32888
 
3430 rajveer 32889
    @Override
32890
    public void clear() {
32891
      this.ex = null;
305 ashish 32892
    }
32893
 
3061 chandransh 32894
    public TransactionServiceException getEx() {
32895
      return this.ex;
305 ashish 32896
    }
32897
 
3430 rajveer 32898
    public void setEx(TransactionServiceException ex) {
3061 chandransh 32899
      this.ex = ex;
305 ashish 32900
    }
32901
 
3061 chandransh 32902
    public void unsetEx() {
32903
      this.ex = null;
305 ashish 32904
    }
32905
 
3430 rajveer 32906
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 32907
    public boolean isSetEx() {
32908
      return this.ex != null;
305 ashish 32909
    }
32910
 
3061 chandransh 32911
    public void setExIsSet(boolean value) {
32912
      if (!value) {
32913
        this.ex = null;
305 ashish 32914
      }
32915
    }
32916
 
3061 chandransh 32917
    public void setFieldValue(_Fields field, Object value) {
32918
      switch (field) {
32919
      case EX:
32920
        if (value == null) {
32921
          unsetEx();
305 ashish 32922
        } else {
3061 chandransh 32923
          setEx((TransactionServiceException)value);
305 ashish 32924
        }
3061 chandransh 32925
        break;
305 ashish 32926
 
1598 ankur.sing 32927
      }
32928
    }
32929
 
32930
    public Object getFieldValue(_Fields field) {
32931
      switch (field) {
3061 chandransh 32932
      case EX:
32933
        return getEx();
32934
 
1598 ankur.sing 32935
      }
32936
      throw new IllegalStateException();
32937
    }
32938
 
3430 rajveer 32939
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32940
    public boolean isSet(_Fields field) {
32941
      if (field == null) {
32942
        throw new IllegalArgumentException();
32943
      }
1598 ankur.sing 32944
 
32945
      switch (field) {
3061 chandransh 32946
      case EX:
32947
        return isSetEx();
1598 ankur.sing 32948
      }
32949
      throw new IllegalStateException();
32950
    }
32951
 
32952
    @Override
32953
    public boolean equals(Object that) {
32954
      if (that == null)
32955
        return false;
3061 chandransh 32956
      if (that instanceof markOrdersAsDelivered_result)
32957
        return this.equals((markOrdersAsDelivered_result)that);
1598 ankur.sing 32958
      return false;
32959
    }
32960
 
3061 chandransh 32961
    public boolean equals(markOrdersAsDelivered_result that) {
1598 ankur.sing 32962
      if (that == null)
32963
        return false;
32964
 
3061 chandransh 32965
      boolean this_present_ex = true && this.isSetEx();
32966
      boolean that_present_ex = true && that.isSetEx();
32967
      if (this_present_ex || that_present_ex) {
32968
        if (!(this_present_ex && that_present_ex))
32969
          return false;
32970
        if (!this.ex.equals(that.ex))
32971
          return false;
32972
      }
32973
 
1598 ankur.sing 32974
      return true;
32975
    }
32976
 
32977
    @Override
32978
    public int hashCode() {
32979
      return 0;
32980
    }
32981
 
3061 chandransh 32982
    public int compareTo(markOrdersAsDelivered_result other) {
1598 ankur.sing 32983
      if (!getClass().equals(other.getClass())) {
32984
        return getClass().getName().compareTo(other.getClass().getName());
32985
      }
32986
 
32987
      int lastComparison = 0;
3061 chandransh 32988
      markOrdersAsDelivered_result typedOther = (markOrdersAsDelivered_result)other;
1598 ankur.sing 32989
 
3430 rajveer 32990
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
3061 chandransh 32991
      if (lastComparison != 0) {
32992
        return lastComparison;
32993
      }
3430 rajveer 32994
      if (isSetEx()) {
32995
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
32996
        if (lastComparison != 0) {
32997
          return lastComparison;
32998
        }
3061 chandransh 32999
      }
1598 ankur.sing 33000
      return 0;
33001
    }
33002
 
3430 rajveer 33003
    public _Fields fieldForId(int fieldId) {
33004
      return _Fields.findByThriftId(fieldId);
33005
    }
33006
 
33007
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33008
      org.apache.thrift.protocol.TField field;
1598 ankur.sing 33009
      iprot.readStructBegin();
33010
      while (true)
33011
      {
33012
        field = iprot.readFieldBegin();
3430 rajveer 33013
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1598 ankur.sing 33014
          break;
33015
        }
3430 rajveer 33016
        switch (field.id) {
33017
          case 1: // EX
33018
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33019
              this.ex = new TransactionServiceException();
33020
              this.ex.read(iprot);
33021
            } else { 
33022
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33023
            }
33024
            break;
33025
          default:
33026
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1598 ankur.sing 33027
        }
3430 rajveer 33028
        iprot.readFieldEnd();
1598 ankur.sing 33029
      }
33030
      iprot.readStructEnd();
33031
      validate();
33032
    }
33033
 
3430 rajveer 33034
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 33035
      oprot.writeStructBegin(STRUCT_DESC);
1598 ankur.sing 33036
 
3061 chandransh 33037
      if (this.isSetEx()) {
33038
        oprot.writeFieldBegin(EX_FIELD_DESC);
33039
        this.ex.write(oprot);
33040
        oprot.writeFieldEnd();
33041
      }
1598 ankur.sing 33042
      oprot.writeFieldStop();
33043
      oprot.writeStructEnd();
33044
    }
33045
 
33046
    @Override
33047
    public String toString() {
3061 chandransh 33048
      StringBuilder sb = new StringBuilder("markOrdersAsDelivered_result(");
1598 ankur.sing 33049
      boolean first = true;
33050
 
3061 chandransh 33051
      sb.append("ex:");
33052
      if (this.ex == null) {
33053
        sb.append("null");
33054
      } else {
33055
        sb.append(this.ex);
33056
      }
33057
      first = false;
1598 ankur.sing 33058
      sb.append(")");
33059
      return sb.toString();
33060
    }
33061
 
3430 rajveer 33062
    public void validate() throws org.apache.thrift.TException {
1598 ankur.sing 33063
      // check for required fields
33064
    }
33065
 
3430 rajveer 33066
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33067
      try {
33068
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33069
      } catch (org.apache.thrift.TException te) {
33070
        throw new java.io.IOException(te);
33071
      }
33072
    }
33073
 
33074
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33075
      try {
33076
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33077
      } catch (org.apache.thrift.TException te) {
33078
        throw new java.io.IOException(te);
33079
      }
33080
    }
33081
 
1598 ankur.sing 33082
  }
33083
 
3430 rajveer 33084
  public static class markOrdersAsFailed_args implements org.apache.thrift.TBase<markOrdersAsFailed_args, markOrdersAsFailed_args._Fields>, java.io.Serializable, Cloneable   {
33085
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsFailed_args");
1598 ankur.sing 33086
 
3430 rajveer 33087
    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);
33088
    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);
1598 ankur.sing 33089
 
3430 rajveer 33090
    private long providerId; // required
33091
    private Map<String,String> returnedOrders; // required
1598 ankur.sing 33092
 
33093
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33094
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 33095
      PROVIDER_ID((short)1, "providerId"),
33096
      RETURNED_ORDERS((short)2, "returnedOrders");
1598 ankur.sing 33097
 
33098
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33099
 
33100
      static {
33101
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33102
          byName.put(field.getFieldName(), field);
33103
        }
33104
      }
33105
 
33106
      /**
33107
       * Find the _Fields constant that matches fieldId, or null if its not found.
33108
       */
33109
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33110
        switch(fieldId) {
33111
          case 1: // PROVIDER_ID
33112
            return PROVIDER_ID;
33113
          case 2: // RETURNED_ORDERS
33114
            return RETURNED_ORDERS;
33115
          default:
33116
            return null;
33117
        }
1598 ankur.sing 33118
      }
33119
 
33120
      /**
33121
       * Find the _Fields constant that matches fieldId, throwing an exception
33122
       * if it is not found.
33123
       */
33124
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33125
        _Fields fields = findByThriftId(fieldId);
33126
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33127
        return fields;
33128
      }
33129
 
33130
      /**
33131
       * Find the _Fields constant that matches name, or null if its not found.
33132
       */
33133
      public static _Fields findByName(String name) {
33134
        return byName.get(name);
33135
      }
33136
 
33137
      private final short _thriftId;
33138
      private final String _fieldName;
33139
 
33140
      _Fields(short thriftId, String fieldName) {
33141
        _thriftId = thriftId;
33142
        _fieldName = fieldName;
33143
      }
33144
 
33145
      public short getThriftFieldId() {
33146
        return _thriftId;
33147
      }
33148
 
33149
      public String getFieldName() {
33150
        return _fieldName;
33151
      }
33152
    }
33153
 
33154
    // isset id assignments
3061 chandransh 33155
    private static final int __PROVIDERID_ISSET_ID = 0;
1598 ankur.sing 33156
    private BitSet __isset_bit_vector = new BitSet(1);
33157
 
3430 rajveer 33158
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1598 ankur.sing 33159
    static {
3430 rajveer 33160
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33161
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33162
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33163
      tmpMap.put(_Fields.RETURNED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("returnedOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33164
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
33165
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
33166
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
33167
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33168
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsFailed_args.class, metaDataMap);
1598 ankur.sing 33169
    }
33170
 
3061 chandransh 33171
    public markOrdersAsFailed_args() {
1598 ankur.sing 33172
    }
33173
 
3061 chandransh 33174
    public markOrdersAsFailed_args(
33175
      long providerId,
33176
      Map<String,String> returnedOrders)
1598 ankur.sing 33177
    {
33178
      this();
3061 chandransh 33179
      this.providerId = providerId;
33180
      setProviderIdIsSet(true);
33181
      this.returnedOrders = returnedOrders;
1598 ankur.sing 33182
    }
33183
 
33184
    /**
33185
     * Performs a deep copy on <i>other</i>.
33186
     */
3061 chandransh 33187
    public markOrdersAsFailed_args(markOrdersAsFailed_args other) {
1598 ankur.sing 33188
      __isset_bit_vector.clear();
33189
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 33190
      this.providerId = other.providerId;
33191
      if (other.isSetReturnedOrders()) {
33192
        Map<String,String> __this__returnedOrders = new HashMap<String,String>();
33193
        for (Map.Entry<String, String> other_element : other.returnedOrders.entrySet()) {
1598 ankur.sing 33194
 
3061 chandransh 33195
          String other_element_key = other_element.getKey();
33196
          String other_element_value = other_element.getValue();
1598 ankur.sing 33197
 
3061 chandransh 33198
          String __this__returnedOrders_copy_key = other_element_key;
1598 ankur.sing 33199
 
3061 chandransh 33200
          String __this__returnedOrders_copy_value = other_element_value;
33201
 
33202
          __this__returnedOrders.put(__this__returnedOrders_copy_key, __this__returnedOrders_copy_value);
33203
        }
33204
        this.returnedOrders = __this__returnedOrders;
33205
      }
1598 ankur.sing 33206
    }
33207
 
3061 chandransh 33208
    public markOrdersAsFailed_args deepCopy() {
33209
      return new markOrdersAsFailed_args(this);
1598 ankur.sing 33210
    }
33211
 
3430 rajveer 33212
    @Override
33213
    public void clear() {
33214
      setProviderIdIsSet(false);
33215
      this.providerId = 0;
33216
      this.returnedOrders = null;
1598 ankur.sing 33217
    }
33218
 
3061 chandransh 33219
    public long getProviderId() {
33220
      return this.providerId;
1598 ankur.sing 33221
    }
33222
 
3430 rajveer 33223
    public void setProviderId(long providerId) {
3061 chandransh 33224
      this.providerId = providerId;
33225
      setProviderIdIsSet(true);
1598 ankur.sing 33226
    }
33227
 
3061 chandransh 33228
    public void unsetProviderId() {
33229
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1598 ankur.sing 33230
    }
33231
 
3430 rajveer 33232
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 33233
    public boolean isSetProviderId() {
33234
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1598 ankur.sing 33235
    }
33236
 
3061 chandransh 33237
    public void setProviderIdIsSet(boolean value) {
33238
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
1598 ankur.sing 33239
    }
33240
 
3061 chandransh 33241
    public int getReturnedOrdersSize() {
33242
      return (this.returnedOrders == null) ? 0 : this.returnedOrders.size();
1598 ankur.sing 33243
    }
33244
 
3061 chandransh 33245
    public void putToReturnedOrders(String key, String val) {
33246
      if (this.returnedOrders == null) {
33247
        this.returnedOrders = new HashMap<String,String>();
1598 ankur.sing 33248
      }
3061 chandransh 33249
      this.returnedOrders.put(key, val);
1598 ankur.sing 33250
    }
33251
 
3061 chandransh 33252
    public Map<String,String> getReturnedOrders() {
33253
      return this.returnedOrders;
1598 ankur.sing 33254
    }
33255
 
3430 rajveer 33256
    public void setReturnedOrders(Map<String,String> returnedOrders) {
3061 chandransh 33257
      this.returnedOrders = returnedOrders;
1598 ankur.sing 33258
    }
33259
 
3061 chandransh 33260
    public void unsetReturnedOrders() {
33261
      this.returnedOrders = null;
1598 ankur.sing 33262
    }
33263
 
3430 rajveer 33264
    /** Returns true if field returnedOrders is set (has been assigned a value) and false otherwise */
3061 chandransh 33265
    public boolean isSetReturnedOrders() {
33266
      return this.returnedOrders != null;
1598 ankur.sing 33267
    }
33268
 
3061 chandransh 33269
    public void setReturnedOrdersIsSet(boolean value) {
33270
      if (!value) {
33271
        this.returnedOrders = null;
1598 ankur.sing 33272
      }
33273
    }
33274
 
3061 chandransh 33275
    public void setFieldValue(_Fields field, Object value) {
33276
      switch (field) {
33277
      case PROVIDER_ID:
33278
        if (value == null) {
33279
          unsetProviderId();
1598 ankur.sing 33280
        } else {
3061 chandransh 33281
          setProviderId((Long)value);
1598 ankur.sing 33282
        }
3061 chandransh 33283
        break;
1598 ankur.sing 33284
 
3061 chandransh 33285
      case RETURNED_ORDERS:
33286
        if (value == null) {
33287
          unsetReturnedOrders();
33288
        } else {
33289
          setReturnedOrders((Map<String,String>)value);
1629 ankur.sing 33290
        }
3061 chandransh 33291
        break;
1629 ankur.sing 33292
 
33293
      }
33294
    }
33295
 
33296
    public Object getFieldValue(_Fields field) {
33297
      switch (field) {
3061 chandransh 33298
      case PROVIDER_ID:
3430 rajveer 33299
        return Long.valueOf(getProviderId());
3061 chandransh 33300
 
33301
      case RETURNED_ORDERS:
33302
        return getReturnedOrders();
33303
 
1629 ankur.sing 33304
      }
33305
      throw new IllegalStateException();
33306
    }
33307
 
3430 rajveer 33308
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33309
    public boolean isSet(_Fields field) {
33310
      if (field == null) {
33311
        throw new IllegalArgumentException();
33312
      }
1629 ankur.sing 33313
 
33314
      switch (field) {
3061 chandransh 33315
      case PROVIDER_ID:
33316
        return isSetProviderId();
33317
      case RETURNED_ORDERS:
33318
        return isSetReturnedOrders();
1629 ankur.sing 33319
      }
33320
      throw new IllegalStateException();
33321
    }
33322
 
33323
    @Override
33324
    public boolean equals(Object that) {
33325
      if (that == null)
33326
        return false;
3061 chandransh 33327
      if (that instanceof markOrdersAsFailed_args)
33328
        return this.equals((markOrdersAsFailed_args)that);
1629 ankur.sing 33329
      return false;
33330
    }
33331
 
3061 chandransh 33332
    public boolean equals(markOrdersAsFailed_args that) {
1629 ankur.sing 33333
      if (that == null)
33334
        return false;
33335
 
3061 chandransh 33336
      boolean this_present_providerId = true;
33337
      boolean that_present_providerId = true;
33338
      if (this_present_providerId || that_present_providerId) {
33339
        if (!(this_present_providerId && that_present_providerId))
33340
          return false;
33341
        if (this.providerId != that.providerId)
33342
          return false;
33343
      }
33344
 
33345
      boolean this_present_returnedOrders = true && this.isSetReturnedOrders();
33346
      boolean that_present_returnedOrders = true && that.isSetReturnedOrders();
33347
      if (this_present_returnedOrders || that_present_returnedOrders) {
33348
        if (!(this_present_returnedOrders && that_present_returnedOrders))
33349
          return false;
33350
        if (!this.returnedOrders.equals(that.returnedOrders))
33351
          return false;
33352
      }
33353
 
1629 ankur.sing 33354
      return true;
33355
    }
33356
 
33357
    @Override
33358
    public int hashCode() {
33359
      return 0;
33360
    }
33361
 
3430 rajveer 33362
    public int compareTo(markOrdersAsFailed_args other) {
33363
      if (!getClass().equals(other.getClass())) {
33364
        return getClass().getName().compareTo(other.getClass().getName());
33365
      }
33366
 
33367
      int lastComparison = 0;
33368
      markOrdersAsFailed_args typedOther = (markOrdersAsFailed_args)other;
33369
 
33370
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
33371
      if (lastComparison != 0) {
33372
        return lastComparison;
33373
      }
33374
      if (isSetProviderId()) {
33375
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
33376
        if (lastComparison != 0) {
33377
          return lastComparison;
33378
        }
33379
      }
33380
      lastComparison = Boolean.valueOf(isSetReturnedOrders()).compareTo(typedOther.isSetReturnedOrders());
33381
      if (lastComparison != 0) {
33382
        return lastComparison;
33383
      }
33384
      if (isSetReturnedOrders()) {
33385
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnedOrders, typedOther.returnedOrders);
33386
        if (lastComparison != 0) {
33387
          return lastComparison;
33388
        }
33389
      }
33390
      return 0;
33391
    }
33392
 
33393
    public _Fields fieldForId(int fieldId) {
33394
      return _Fields.findByThriftId(fieldId);
33395
    }
33396
 
33397
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33398
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 33399
      iprot.readStructBegin();
33400
      while (true)
33401
      {
33402
        field = iprot.readFieldBegin();
3430 rajveer 33403
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 33404
          break;
33405
        }
3430 rajveer 33406
        switch (field.id) {
33407
          case 1: // PROVIDER_ID
33408
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33409
              this.providerId = iprot.readI64();
33410
              setProviderIdIsSet(true);
33411
            } else { 
33412
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33413
            }
33414
            break;
33415
          case 2: // RETURNED_ORDERS
33416
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
33417
              {
4133 chandransh 33418
                org.apache.thrift.protocol.TMap _map94 = iprot.readMapBegin();
33419
                this.returnedOrders = new HashMap<String,String>(2*_map94.size);
33420
                for (int _i95 = 0; _i95 < _map94.size; ++_i95)
3061 chandransh 33421
                {
4133 chandransh 33422
                  String _key96; // required
33423
                  String _val97; // required
33424
                  _key96 = iprot.readString();
33425
                  _val97 = iprot.readString();
33426
                  this.returnedOrders.put(_key96, _val97);
3061 chandransh 33427
                }
3430 rajveer 33428
                iprot.readMapEnd();
3061 chandransh 33429
              }
3430 rajveer 33430
            } else { 
33431
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33432
            }
33433
            break;
33434
          default:
33435
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 33436
        }
3430 rajveer 33437
        iprot.readFieldEnd();
1629 ankur.sing 33438
      }
33439
      iprot.readStructEnd();
33440
      validate();
33441
    }
33442
 
3430 rajveer 33443
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 33444
      validate();
33445
 
33446
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 33447
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
33448
      oprot.writeI64(this.providerId);
33449
      oprot.writeFieldEnd();
33450
      if (this.returnedOrders != null) {
33451
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
33452
        {
3430 rajveer 33453
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.returnedOrders.size()));
4133 chandransh 33454
          for (Map.Entry<String, String> _iter98 : this.returnedOrders.entrySet())
3061 chandransh 33455
          {
4133 chandransh 33456
            oprot.writeString(_iter98.getKey());
33457
            oprot.writeString(_iter98.getValue());
3061 chandransh 33458
          }
33459
          oprot.writeMapEnd();
33460
        }
33461
        oprot.writeFieldEnd();
33462
      }
1629 ankur.sing 33463
      oprot.writeFieldStop();
33464
      oprot.writeStructEnd();
33465
    }
33466
 
33467
    @Override
33468
    public String toString() {
3061 chandransh 33469
      StringBuilder sb = new StringBuilder("markOrdersAsFailed_args(");
1629 ankur.sing 33470
      boolean first = true;
33471
 
3061 chandransh 33472
      sb.append("providerId:");
33473
      sb.append(this.providerId);
33474
      first = false;
33475
      if (!first) sb.append(", ");
33476
      sb.append("returnedOrders:");
33477
      if (this.returnedOrders == null) {
33478
        sb.append("null");
33479
      } else {
33480
        sb.append(this.returnedOrders);
33481
      }
33482
      first = false;
1629 ankur.sing 33483
      sb.append(")");
33484
      return sb.toString();
33485
    }
33486
 
3430 rajveer 33487
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 33488
      // check for required fields
33489
    }
33490
 
3430 rajveer 33491
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33492
      try {
33493
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33494
      } catch (org.apache.thrift.TException te) {
33495
        throw new java.io.IOException(te);
33496
      }
33497
    }
33498
 
33499
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33500
      try {
33501
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33502
      } catch (org.apache.thrift.TException te) {
33503
        throw new java.io.IOException(te);
33504
      }
33505
    }
33506
 
1629 ankur.sing 33507
  }
33508
 
3430 rajveer 33509
  public static class markOrdersAsFailed_result implements org.apache.thrift.TBase<markOrdersAsFailed_result, markOrdersAsFailed_result._Fields>, java.io.Serializable, Cloneable   {
33510
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsFailed_result");
1629 ankur.sing 33511
 
3430 rajveer 33512
    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);
1629 ankur.sing 33513
 
3430 rajveer 33514
    private TransactionServiceException ex; // required
1629 ankur.sing 33515
 
33516
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33517
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 33518
      EX((short)1, "ex");
1629 ankur.sing 33519
 
33520
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33521
 
33522
      static {
33523
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33524
          byName.put(field.getFieldName(), field);
33525
        }
33526
      }
33527
 
33528
      /**
33529
       * Find the _Fields constant that matches fieldId, or null if its not found.
33530
       */
33531
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33532
        switch(fieldId) {
33533
          case 1: // EX
33534
            return EX;
33535
          default:
33536
            return null;
33537
        }
1629 ankur.sing 33538
      }
33539
 
33540
      /**
33541
       * Find the _Fields constant that matches fieldId, throwing an exception
33542
       * if it is not found.
33543
       */
33544
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33545
        _Fields fields = findByThriftId(fieldId);
33546
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33547
        return fields;
33548
      }
33549
 
33550
      /**
33551
       * Find the _Fields constant that matches name, or null if its not found.
33552
       */
33553
      public static _Fields findByName(String name) {
33554
        return byName.get(name);
33555
      }
33556
 
33557
      private final short _thriftId;
33558
      private final String _fieldName;
33559
 
33560
      _Fields(short thriftId, String fieldName) {
33561
        _thriftId = thriftId;
33562
        _fieldName = fieldName;
33563
      }
33564
 
33565
      public short getThriftFieldId() {
33566
        return _thriftId;
33567
      }
33568
 
33569
      public String getFieldName() {
33570
        return _fieldName;
33571
      }
33572
    }
33573
 
33574
    // isset id assignments
33575
 
3430 rajveer 33576
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 33577
    static {
3430 rajveer 33578
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33579
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33580
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33581
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33582
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsFailed_result.class, metaDataMap);
1629 ankur.sing 33583
    }
33584
 
3061 chandransh 33585
    public markOrdersAsFailed_result() {
1629 ankur.sing 33586
    }
33587
 
3061 chandransh 33588
    public markOrdersAsFailed_result(
33589
      TransactionServiceException ex)
1629 ankur.sing 33590
    {
33591
      this();
3061 chandransh 33592
      this.ex = ex;
1629 ankur.sing 33593
    }
33594
 
33595
    /**
33596
     * Performs a deep copy on <i>other</i>.
33597
     */
3061 chandransh 33598
    public markOrdersAsFailed_result(markOrdersAsFailed_result other) {
33599
      if (other.isSetEx()) {
33600
        this.ex = new TransactionServiceException(other.ex);
33601
      }
1629 ankur.sing 33602
    }
33603
 
3061 chandransh 33604
    public markOrdersAsFailed_result deepCopy() {
33605
      return new markOrdersAsFailed_result(this);
1629 ankur.sing 33606
    }
33607
 
3430 rajveer 33608
    @Override
33609
    public void clear() {
33610
      this.ex = null;
1629 ankur.sing 33611
    }
33612
 
3061 chandransh 33613
    public TransactionServiceException getEx() {
33614
      return this.ex;
1629 ankur.sing 33615
    }
33616
 
3430 rajveer 33617
    public void setEx(TransactionServiceException ex) {
3061 chandransh 33618
      this.ex = ex;
1629 ankur.sing 33619
    }
33620
 
3061 chandransh 33621
    public void unsetEx() {
33622
      this.ex = null;
1629 ankur.sing 33623
    }
33624
 
3430 rajveer 33625
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 33626
    public boolean isSetEx() {
33627
      return this.ex != null;
1629 ankur.sing 33628
    }
33629
 
3061 chandransh 33630
    public void setExIsSet(boolean value) {
33631
      if (!value) {
33632
        this.ex = null;
33633
      }
1629 ankur.sing 33634
    }
33635
 
33636
    public void setFieldValue(_Fields field, Object value) {
33637
      switch (field) {
3061 chandransh 33638
      case EX:
1629 ankur.sing 33639
        if (value == null) {
3061 chandransh 33640
          unsetEx();
1629 ankur.sing 33641
        } else {
3061 chandransh 33642
          setEx((TransactionServiceException)value);
1629 ankur.sing 33643
        }
33644
        break;
33645
 
33646
      }
33647
    }
33648
 
33649
    public Object getFieldValue(_Fields field) {
33650
      switch (field) {
3061 chandransh 33651
      case EX:
33652
        return getEx();
1629 ankur.sing 33653
 
33654
      }
33655
      throw new IllegalStateException();
33656
    }
33657
 
3430 rajveer 33658
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33659
    public boolean isSet(_Fields field) {
33660
      if (field == null) {
33661
        throw new IllegalArgumentException();
33662
      }
1629 ankur.sing 33663
 
33664
      switch (field) {
3061 chandransh 33665
      case EX:
33666
        return isSetEx();
1629 ankur.sing 33667
      }
33668
      throw new IllegalStateException();
33669
    }
33670
 
33671
    @Override
33672
    public boolean equals(Object that) {
33673
      if (that == null)
33674
        return false;
3061 chandransh 33675
      if (that instanceof markOrdersAsFailed_result)
33676
        return this.equals((markOrdersAsFailed_result)that);
1629 ankur.sing 33677
      return false;
33678
    }
33679
 
3061 chandransh 33680
    public boolean equals(markOrdersAsFailed_result that) {
1629 ankur.sing 33681
      if (that == null)
33682
        return false;
33683
 
3061 chandransh 33684
      boolean this_present_ex = true && this.isSetEx();
33685
      boolean that_present_ex = true && that.isSetEx();
33686
      if (this_present_ex || that_present_ex) {
33687
        if (!(this_present_ex && that_present_ex))
1629 ankur.sing 33688
          return false;
3061 chandransh 33689
        if (!this.ex.equals(that.ex))
1629 ankur.sing 33690
          return false;
33691
      }
33692
 
33693
      return true;
33694
    }
33695
 
33696
    @Override
33697
    public int hashCode() {
33698
      return 0;
33699
    }
33700
 
3061 chandransh 33701
    public int compareTo(markOrdersAsFailed_result other) {
1629 ankur.sing 33702
      if (!getClass().equals(other.getClass())) {
33703
        return getClass().getName().compareTo(other.getClass().getName());
33704
      }
33705
 
33706
      int lastComparison = 0;
3061 chandransh 33707
      markOrdersAsFailed_result typedOther = (markOrdersAsFailed_result)other;
1629 ankur.sing 33708
 
3430 rajveer 33709
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1629 ankur.sing 33710
      if (lastComparison != 0) {
33711
        return lastComparison;
33712
      }
3430 rajveer 33713
      if (isSetEx()) {
33714
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
33715
        if (lastComparison != 0) {
33716
          return lastComparison;
33717
        }
1629 ankur.sing 33718
      }
33719
      return 0;
33720
    }
33721
 
3430 rajveer 33722
    public _Fields fieldForId(int fieldId) {
33723
      return _Fields.findByThriftId(fieldId);
33724
    }
33725
 
33726
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33727
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 33728
      iprot.readStructBegin();
33729
      while (true)
33730
      {
33731
        field = iprot.readFieldBegin();
3430 rajveer 33732
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 33733
          break;
33734
        }
3430 rajveer 33735
        switch (field.id) {
33736
          case 1: // EX
33737
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33738
              this.ex = new TransactionServiceException();
33739
              this.ex.read(iprot);
33740
            } else { 
33741
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33742
            }
33743
            break;
33744
          default:
33745
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 33746
        }
3430 rajveer 33747
        iprot.readFieldEnd();
1629 ankur.sing 33748
      }
33749
      iprot.readStructEnd();
33750
      validate();
33751
    }
33752
 
3430 rajveer 33753
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 33754
      oprot.writeStructBegin(STRUCT_DESC);
33755
 
3061 chandransh 33756
      if (this.isSetEx()) {
33757
        oprot.writeFieldBegin(EX_FIELD_DESC);
33758
        this.ex.write(oprot);
1629 ankur.sing 33759
        oprot.writeFieldEnd();
33760
      }
33761
      oprot.writeFieldStop();
33762
      oprot.writeStructEnd();
33763
    }
33764
 
33765
    @Override
33766
    public String toString() {
3061 chandransh 33767
      StringBuilder sb = new StringBuilder("markOrdersAsFailed_result(");
1629 ankur.sing 33768
      boolean first = true;
33769
 
3061 chandransh 33770
      sb.append("ex:");
33771
      if (this.ex == null) {
33772
        sb.append("null");
33773
      } else {
33774
        sb.append(this.ex);
33775
      }
1629 ankur.sing 33776
      first = false;
33777
      sb.append(")");
33778
      return sb.toString();
33779
    }
33780
 
3430 rajveer 33781
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 33782
      // check for required fields
33783
    }
33784
 
3430 rajveer 33785
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33786
      try {
33787
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33788
      } catch (org.apache.thrift.TException te) {
33789
        throw new java.io.IOException(te);
33790
      }
33791
    }
33792
 
33793
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33794
      try {
33795
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33796
      } catch (org.apache.thrift.TException te) {
33797
        throw new java.io.IOException(te);
33798
      }
33799
    }
33800
 
1629 ankur.sing 33801
  }
33802
 
3430 rajveer 33803
  public static class updateNonDeliveryReason_args implements org.apache.thrift.TBase<updateNonDeliveryReason_args, updateNonDeliveryReason_args._Fields>, java.io.Serializable, Cloneable   {
33804
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNonDeliveryReason_args");
1629 ankur.sing 33805
 
3430 rajveer 33806
    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);
33807
    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);
1629 ankur.sing 33808
 
3430 rajveer 33809
    private long providerId; // required
33810
    private Map<String,String> undeliveredOrders; // required
1629 ankur.sing 33811
 
33812
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33813
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 33814
      PROVIDER_ID((short)1, "providerId"),
33815
      UNDELIVERED_ORDERS((short)2, "undeliveredOrders");
1629 ankur.sing 33816
 
33817
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33818
 
33819
      static {
33820
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33821
          byName.put(field.getFieldName(), field);
33822
        }
33823
      }
33824
 
33825
      /**
33826
       * Find the _Fields constant that matches fieldId, or null if its not found.
33827
       */
33828
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33829
        switch(fieldId) {
33830
          case 1: // PROVIDER_ID
33831
            return PROVIDER_ID;
33832
          case 2: // UNDELIVERED_ORDERS
33833
            return UNDELIVERED_ORDERS;
33834
          default:
33835
            return null;
33836
        }
1629 ankur.sing 33837
      }
33838
 
33839
      /**
33840
       * Find the _Fields constant that matches fieldId, throwing an exception
33841
       * if it is not found.
33842
       */
33843
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33844
        _Fields fields = findByThriftId(fieldId);
33845
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33846
        return fields;
33847
      }
33848
 
33849
      /**
33850
       * Find the _Fields constant that matches name, or null if its not found.
33851
       */
33852
      public static _Fields findByName(String name) {
33853
        return byName.get(name);
33854
      }
33855
 
33856
      private final short _thriftId;
33857
      private final String _fieldName;
33858
 
33859
      _Fields(short thriftId, String fieldName) {
33860
        _thriftId = thriftId;
33861
        _fieldName = fieldName;
33862
      }
33863
 
33864
      public short getThriftFieldId() {
33865
        return _thriftId;
33866
      }
33867
 
33868
      public String getFieldName() {
33869
        return _fieldName;
33870
      }
33871
    }
3061 chandransh 33872
 
33873
    // isset id assignments
33874
    private static final int __PROVIDERID_ISSET_ID = 0;
33875
    private BitSet __isset_bit_vector = new BitSet(1);
33876
 
3430 rajveer 33877
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 33878
    static {
3430 rajveer 33879
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33880
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33881
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33882
      tmpMap.put(_Fields.UNDELIVERED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("undeliveredOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33883
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
33884
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
33885
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
33886
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33887
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_args.class, metaDataMap);
1629 ankur.sing 33888
    }
33889
 
3061 chandransh 33890
    public updateNonDeliveryReason_args() {
1629 ankur.sing 33891
    }
33892
 
3061 chandransh 33893
    public updateNonDeliveryReason_args(
33894
      long providerId,
33895
      Map<String,String> undeliveredOrders)
33896
    {
33897
      this();
33898
      this.providerId = providerId;
33899
      setProviderIdIsSet(true);
33900
      this.undeliveredOrders = undeliveredOrders;
33901
    }
33902
 
1629 ankur.sing 33903
    /**
33904
     * Performs a deep copy on <i>other</i>.
33905
     */
3061 chandransh 33906
    public updateNonDeliveryReason_args(updateNonDeliveryReason_args other) {
33907
      __isset_bit_vector.clear();
33908
      __isset_bit_vector.or(other.__isset_bit_vector);
33909
      this.providerId = other.providerId;
33910
      if (other.isSetUndeliveredOrders()) {
33911
        Map<String,String> __this__undeliveredOrders = new HashMap<String,String>();
33912
        for (Map.Entry<String, String> other_element : other.undeliveredOrders.entrySet()) {
33913
 
33914
          String other_element_key = other_element.getKey();
33915
          String other_element_value = other_element.getValue();
33916
 
33917
          String __this__undeliveredOrders_copy_key = other_element_key;
33918
 
33919
          String __this__undeliveredOrders_copy_value = other_element_value;
33920
 
33921
          __this__undeliveredOrders.put(__this__undeliveredOrders_copy_key, __this__undeliveredOrders_copy_value);
33922
        }
33923
        this.undeliveredOrders = __this__undeliveredOrders;
33924
      }
1629 ankur.sing 33925
    }
33926
 
3061 chandransh 33927
    public updateNonDeliveryReason_args deepCopy() {
33928
      return new updateNonDeliveryReason_args(this);
1629 ankur.sing 33929
    }
33930
 
3430 rajveer 33931
    @Override
33932
    public void clear() {
33933
      setProviderIdIsSet(false);
33934
      this.providerId = 0;
33935
      this.undeliveredOrders = null;
1629 ankur.sing 33936
    }
33937
 
3061 chandransh 33938
    public long getProviderId() {
33939
      return this.providerId;
33940
    }
33941
 
3430 rajveer 33942
    public void setProviderId(long providerId) {
3061 chandransh 33943
      this.providerId = providerId;
33944
      setProviderIdIsSet(true);
33945
    }
33946
 
33947
    public void unsetProviderId() {
33948
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
33949
    }
33950
 
3430 rajveer 33951
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 33952
    public boolean isSetProviderId() {
33953
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
33954
    }
33955
 
33956
    public void setProviderIdIsSet(boolean value) {
33957
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
33958
    }
33959
 
33960
    public int getUndeliveredOrdersSize() {
33961
      return (this.undeliveredOrders == null) ? 0 : this.undeliveredOrders.size();
33962
    }
33963
 
33964
    public void putToUndeliveredOrders(String key, String val) {
33965
      if (this.undeliveredOrders == null) {
33966
        this.undeliveredOrders = new HashMap<String,String>();
33967
      }
33968
      this.undeliveredOrders.put(key, val);
33969
    }
33970
 
33971
    public Map<String,String> getUndeliveredOrders() {
33972
      return this.undeliveredOrders;
33973
    }
33974
 
3430 rajveer 33975
    public void setUndeliveredOrders(Map<String,String> undeliveredOrders) {
3061 chandransh 33976
      this.undeliveredOrders = undeliveredOrders;
33977
    }
33978
 
33979
    public void unsetUndeliveredOrders() {
33980
      this.undeliveredOrders = null;
33981
    }
33982
 
3430 rajveer 33983
    /** Returns true if field undeliveredOrders is set (has been assigned a value) and false otherwise */
3061 chandransh 33984
    public boolean isSetUndeliveredOrders() {
33985
      return this.undeliveredOrders != null;
33986
    }
33987
 
33988
    public void setUndeliveredOrdersIsSet(boolean value) {
33989
      if (!value) {
33990
        this.undeliveredOrders = null;
33991
      }
33992
    }
33993
 
1629 ankur.sing 33994
    public void setFieldValue(_Fields field, Object value) {
33995
      switch (field) {
3061 chandransh 33996
      case PROVIDER_ID:
33997
        if (value == null) {
33998
          unsetProviderId();
33999
        } else {
34000
          setProviderId((Long)value);
34001
        }
34002
        break;
34003
 
34004
      case UNDELIVERED_ORDERS:
34005
        if (value == null) {
34006
          unsetUndeliveredOrders();
34007
        } else {
34008
          setUndeliveredOrders((Map<String,String>)value);
34009
        }
34010
        break;
34011
 
1629 ankur.sing 34012
      }
34013
    }
34014
 
34015
    public Object getFieldValue(_Fields field) {
34016
      switch (field) {
3061 chandransh 34017
      case PROVIDER_ID:
3430 rajveer 34018
        return Long.valueOf(getProviderId());
3061 chandransh 34019
 
34020
      case UNDELIVERED_ORDERS:
34021
        return getUndeliveredOrders();
34022
 
1629 ankur.sing 34023
      }
34024
      throw new IllegalStateException();
34025
    }
34026
 
3430 rajveer 34027
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34028
    public boolean isSet(_Fields field) {
34029
      if (field == null) {
34030
        throw new IllegalArgumentException();
34031
      }
1629 ankur.sing 34032
 
34033
      switch (field) {
3061 chandransh 34034
      case PROVIDER_ID:
34035
        return isSetProviderId();
34036
      case UNDELIVERED_ORDERS:
34037
        return isSetUndeliveredOrders();
1629 ankur.sing 34038
      }
34039
      throw new IllegalStateException();
34040
    }
34041
 
34042
    @Override
34043
    public boolean equals(Object that) {
34044
      if (that == null)
34045
        return false;
3061 chandransh 34046
      if (that instanceof updateNonDeliveryReason_args)
34047
        return this.equals((updateNonDeliveryReason_args)that);
1629 ankur.sing 34048
      return false;
34049
    }
34050
 
3061 chandransh 34051
    public boolean equals(updateNonDeliveryReason_args that) {
1629 ankur.sing 34052
      if (that == null)
34053
        return false;
34054
 
3061 chandransh 34055
      boolean this_present_providerId = true;
34056
      boolean that_present_providerId = true;
34057
      if (this_present_providerId || that_present_providerId) {
34058
        if (!(this_present_providerId && that_present_providerId))
34059
          return false;
34060
        if (this.providerId != that.providerId)
34061
          return false;
34062
      }
34063
 
34064
      boolean this_present_undeliveredOrders = true && this.isSetUndeliveredOrders();
34065
      boolean that_present_undeliveredOrders = true && that.isSetUndeliveredOrders();
34066
      if (this_present_undeliveredOrders || that_present_undeliveredOrders) {
34067
        if (!(this_present_undeliveredOrders && that_present_undeliveredOrders))
34068
          return false;
34069
        if (!this.undeliveredOrders.equals(that.undeliveredOrders))
34070
          return false;
34071
      }
34072
 
1629 ankur.sing 34073
      return true;
34074
    }
34075
 
34076
    @Override
34077
    public int hashCode() {
34078
      return 0;
34079
    }
34080
 
3430 rajveer 34081
    public int compareTo(updateNonDeliveryReason_args other) {
34082
      if (!getClass().equals(other.getClass())) {
34083
        return getClass().getName().compareTo(other.getClass().getName());
34084
      }
34085
 
34086
      int lastComparison = 0;
34087
      updateNonDeliveryReason_args typedOther = (updateNonDeliveryReason_args)other;
34088
 
34089
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
34090
      if (lastComparison != 0) {
34091
        return lastComparison;
34092
      }
34093
      if (isSetProviderId()) {
34094
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
34095
        if (lastComparison != 0) {
34096
          return lastComparison;
34097
        }
34098
      }
34099
      lastComparison = Boolean.valueOf(isSetUndeliveredOrders()).compareTo(typedOther.isSetUndeliveredOrders());
34100
      if (lastComparison != 0) {
34101
        return lastComparison;
34102
      }
34103
      if (isSetUndeliveredOrders()) {
34104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.undeliveredOrders, typedOther.undeliveredOrders);
34105
        if (lastComparison != 0) {
34106
          return lastComparison;
34107
        }
34108
      }
34109
      return 0;
34110
    }
34111
 
34112
    public _Fields fieldForId(int fieldId) {
34113
      return _Fields.findByThriftId(fieldId);
34114
    }
34115
 
34116
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34117
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 34118
      iprot.readStructBegin();
34119
      while (true)
34120
      {
34121
        field = iprot.readFieldBegin();
3430 rajveer 34122
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 34123
          break;
34124
        }
3430 rajveer 34125
        switch (field.id) {
34126
          case 1: // PROVIDER_ID
34127
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34128
              this.providerId = iprot.readI64();
34129
              setProviderIdIsSet(true);
34130
            } else { 
34131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34132
            }
34133
            break;
34134
          case 2: // UNDELIVERED_ORDERS
34135
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
34136
              {
4133 chandransh 34137
                org.apache.thrift.protocol.TMap _map99 = iprot.readMapBegin();
34138
                this.undeliveredOrders = new HashMap<String,String>(2*_map99.size);
34139
                for (int _i100 = 0; _i100 < _map99.size; ++_i100)
3061 chandransh 34140
                {
4133 chandransh 34141
                  String _key101; // required
34142
                  String _val102; // required
34143
                  _key101 = iprot.readString();
34144
                  _val102 = iprot.readString();
34145
                  this.undeliveredOrders.put(_key101, _val102);
3061 chandransh 34146
                }
3430 rajveer 34147
                iprot.readMapEnd();
3061 chandransh 34148
              }
3430 rajveer 34149
            } else { 
34150
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34151
            }
34152
            break;
34153
          default:
34154
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 34155
        }
3430 rajveer 34156
        iprot.readFieldEnd();
1629 ankur.sing 34157
      }
34158
      iprot.readStructEnd();
34159
      validate();
34160
    }
34161
 
3430 rajveer 34162
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 34163
      validate();
34164
 
34165
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 34166
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
34167
      oprot.writeI64(this.providerId);
34168
      oprot.writeFieldEnd();
34169
      if (this.undeliveredOrders != null) {
34170
        oprot.writeFieldBegin(UNDELIVERED_ORDERS_FIELD_DESC);
34171
        {
3430 rajveer 34172
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.undeliveredOrders.size()));
4133 chandransh 34173
          for (Map.Entry<String, String> _iter103 : this.undeliveredOrders.entrySet())
3061 chandransh 34174
          {
4133 chandransh 34175
            oprot.writeString(_iter103.getKey());
34176
            oprot.writeString(_iter103.getValue());
3061 chandransh 34177
          }
34178
          oprot.writeMapEnd();
34179
        }
34180
        oprot.writeFieldEnd();
34181
      }
1629 ankur.sing 34182
      oprot.writeFieldStop();
34183
      oprot.writeStructEnd();
34184
    }
34185
 
34186
    @Override
34187
    public String toString() {
3061 chandransh 34188
      StringBuilder sb = new StringBuilder("updateNonDeliveryReason_args(");
1629 ankur.sing 34189
      boolean first = true;
34190
 
3061 chandransh 34191
      sb.append("providerId:");
34192
      sb.append(this.providerId);
34193
      first = false;
34194
      if (!first) sb.append(", ");
34195
      sb.append("undeliveredOrders:");
34196
      if (this.undeliveredOrders == null) {
34197
        sb.append("null");
34198
      } else {
34199
        sb.append(this.undeliveredOrders);
34200
      }
34201
      first = false;
1629 ankur.sing 34202
      sb.append(")");
34203
      return sb.toString();
34204
    }
34205
 
3430 rajveer 34206
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 34207
      // check for required fields
34208
    }
34209
 
3430 rajveer 34210
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34211
      try {
34212
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34213
      } catch (org.apache.thrift.TException te) {
34214
        throw new java.io.IOException(te);
34215
      }
34216
    }
34217
 
34218
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34219
      try {
34220
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34221
      } catch (org.apache.thrift.TException te) {
34222
        throw new java.io.IOException(te);
34223
      }
34224
    }
34225
 
1629 ankur.sing 34226
  }
34227
 
3430 rajveer 34228
  public static class updateNonDeliveryReason_result implements org.apache.thrift.TBase<updateNonDeliveryReason_result, updateNonDeliveryReason_result._Fields>, java.io.Serializable, Cloneable   {
34229
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNonDeliveryReason_result");
1629 ankur.sing 34230
 
3430 rajveer 34231
    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);
1629 ankur.sing 34232
 
3430 rajveer 34233
    private TransactionServiceException ex; // required
1629 ankur.sing 34234
 
34235
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34236
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 34237
      EX((short)1, "ex");
1629 ankur.sing 34238
 
34239
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34240
 
34241
      static {
34242
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34243
          byName.put(field.getFieldName(), field);
34244
        }
34245
      }
34246
 
34247
      /**
34248
       * Find the _Fields constant that matches fieldId, or null if its not found.
34249
       */
34250
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34251
        switch(fieldId) {
34252
          case 1: // EX
34253
            return EX;
34254
          default:
34255
            return null;
34256
        }
1629 ankur.sing 34257
      }
34258
 
34259
      /**
34260
       * Find the _Fields constant that matches fieldId, throwing an exception
34261
       * if it is not found.
34262
       */
34263
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34264
        _Fields fields = findByThriftId(fieldId);
34265
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34266
        return fields;
34267
      }
34268
 
34269
      /**
34270
       * Find the _Fields constant that matches name, or null if its not found.
34271
       */
34272
      public static _Fields findByName(String name) {
34273
        return byName.get(name);
34274
      }
34275
 
34276
      private final short _thriftId;
34277
      private final String _fieldName;
34278
 
34279
      _Fields(short thriftId, String fieldName) {
34280
        _thriftId = thriftId;
34281
        _fieldName = fieldName;
34282
      }
34283
 
34284
      public short getThriftFieldId() {
34285
        return _thriftId;
34286
      }
34287
 
34288
      public String getFieldName() {
34289
        return _fieldName;
34290
      }
34291
    }
34292
 
34293
    // isset id assignments
34294
 
3430 rajveer 34295
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 34296
    static {
3430 rajveer 34297
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34298
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34299
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34300
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34301
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_result.class, metaDataMap);
1629 ankur.sing 34302
    }
34303
 
3061 chandransh 34304
    public updateNonDeliveryReason_result() {
1629 ankur.sing 34305
    }
34306
 
3061 chandransh 34307
    public updateNonDeliveryReason_result(
34308
      TransactionServiceException ex)
1629 ankur.sing 34309
    {
34310
      this();
3061 chandransh 34311
      this.ex = ex;
1629 ankur.sing 34312
    }
34313
 
34314
    /**
34315
     * Performs a deep copy on <i>other</i>.
34316
     */
3061 chandransh 34317
    public updateNonDeliveryReason_result(updateNonDeliveryReason_result other) {
34318
      if (other.isSetEx()) {
34319
        this.ex = new TransactionServiceException(other.ex);
1629 ankur.sing 34320
      }
34321
    }
34322
 
3061 chandransh 34323
    public updateNonDeliveryReason_result deepCopy() {
34324
      return new updateNonDeliveryReason_result(this);
1629 ankur.sing 34325
    }
34326
 
3430 rajveer 34327
    @Override
34328
    public void clear() {
34329
      this.ex = null;
1629 ankur.sing 34330
    }
34331
 
3061 chandransh 34332
    public TransactionServiceException getEx() {
34333
      return this.ex;
1629 ankur.sing 34334
    }
34335
 
3430 rajveer 34336
    public void setEx(TransactionServiceException ex) {
3061 chandransh 34337
      this.ex = ex;
1629 ankur.sing 34338
    }
34339
 
3061 chandransh 34340
    public void unsetEx() {
34341
      this.ex = null;
1629 ankur.sing 34342
    }
34343
 
3430 rajveer 34344
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 34345
    public boolean isSetEx() {
34346
      return this.ex != null;
1629 ankur.sing 34347
    }
34348
 
3061 chandransh 34349
    public void setExIsSet(boolean value) {
1731 ankur.sing 34350
      if (!value) {
3061 chandransh 34351
        this.ex = null;
1731 ankur.sing 34352
      }
1629 ankur.sing 34353
    }
34354
 
34355
    public void setFieldValue(_Fields field, Object value) {
34356
      switch (field) {
3061 chandransh 34357
      case EX:
1629 ankur.sing 34358
        if (value == null) {
3061 chandransh 34359
          unsetEx();
1629 ankur.sing 34360
        } else {
3061 chandransh 34361
          setEx((TransactionServiceException)value);
1629 ankur.sing 34362
        }
34363
        break;
34364
 
34365
      }
34366
    }
34367
 
34368
    public Object getFieldValue(_Fields field) {
34369
      switch (field) {
3061 chandransh 34370
      case EX:
34371
        return getEx();
1629 ankur.sing 34372
 
34373
      }
34374
      throw new IllegalStateException();
34375
    }
34376
 
3430 rajveer 34377
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34378
    public boolean isSet(_Fields field) {
34379
      if (field == null) {
34380
        throw new IllegalArgumentException();
34381
      }
1629 ankur.sing 34382
 
34383
      switch (field) {
3061 chandransh 34384
      case EX:
34385
        return isSetEx();
1629 ankur.sing 34386
      }
34387
      throw new IllegalStateException();
34388
    }
34389
 
34390
    @Override
34391
    public boolean equals(Object that) {
34392
      if (that == null)
34393
        return false;
3061 chandransh 34394
      if (that instanceof updateNonDeliveryReason_result)
34395
        return this.equals((updateNonDeliveryReason_result)that);
1629 ankur.sing 34396
      return false;
34397
    }
34398
 
3061 chandransh 34399
    public boolean equals(updateNonDeliveryReason_result that) {
1629 ankur.sing 34400
      if (that == null)
34401
        return false;
34402
 
3061 chandransh 34403
      boolean this_present_ex = true && this.isSetEx();
34404
      boolean that_present_ex = true && that.isSetEx();
34405
      if (this_present_ex || that_present_ex) {
34406
        if (!(this_present_ex && that_present_ex))
1629 ankur.sing 34407
          return false;
3061 chandransh 34408
        if (!this.ex.equals(that.ex))
1629 ankur.sing 34409
          return false;
34410
      }
34411
 
34412
      return true;
34413
    }
34414
 
34415
    @Override
34416
    public int hashCode() {
34417
      return 0;
34418
    }
34419
 
3061 chandransh 34420
    public int compareTo(updateNonDeliveryReason_result other) {
1629 ankur.sing 34421
      if (!getClass().equals(other.getClass())) {
34422
        return getClass().getName().compareTo(other.getClass().getName());
34423
      }
34424
 
34425
      int lastComparison = 0;
3061 chandransh 34426
      updateNonDeliveryReason_result typedOther = (updateNonDeliveryReason_result)other;
1629 ankur.sing 34427
 
3430 rajveer 34428
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1629 ankur.sing 34429
      if (lastComparison != 0) {
34430
        return lastComparison;
34431
      }
3430 rajveer 34432
      if (isSetEx()) {
34433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
34434
        if (lastComparison != 0) {
34435
          return lastComparison;
34436
        }
1629 ankur.sing 34437
      }
34438
      return 0;
34439
    }
34440
 
3430 rajveer 34441
    public _Fields fieldForId(int fieldId) {
34442
      return _Fields.findByThriftId(fieldId);
34443
    }
34444
 
34445
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34446
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 34447
      iprot.readStructBegin();
34448
      while (true)
34449
      {
34450
        field = iprot.readFieldBegin();
3430 rajveer 34451
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 34452
          break;
34453
        }
3430 rajveer 34454
        switch (field.id) {
34455
          case 1: // EX
34456
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
34457
              this.ex = new TransactionServiceException();
34458
              this.ex.read(iprot);
34459
            } else { 
34460
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34461
            }
34462
            break;
34463
          default:
34464
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 34465
        }
3430 rajveer 34466
        iprot.readFieldEnd();
1629 ankur.sing 34467
      }
34468
      iprot.readStructEnd();
34469
      validate();
34470
    }
34471
 
3430 rajveer 34472
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 34473
      oprot.writeStructBegin(STRUCT_DESC);
34474
 
3061 chandransh 34475
      if (this.isSetEx()) {
34476
        oprot.writeFieldBegin(EX_FIELD_DESC);
34477
        this.ex.write(oprot);
1629 ankur.sing 34478
        oprot.writeFieldEnd();
34479
      }
34480
      oprot.writeFieldStop();
34481
      oprot.writeStructEnd();
34482
    }
34483
 
34484
    @Override
34485
    public String toString() {
3061 chandransh 34486
      StringBuilder sb = new StringBuilder("updateNonDeliveryReason_result(");
1629 ankur.sing 34487
      boolean first = true;
34488
 
3061 chandransh 34489
      sb.append("ex:");
34490
      if (this.ex == null) {
1731 ankur.sing 34491
        sb.append("null");
34492
      } else {
3061 chandransh 34493
        sb.append(this.ex);
1731 ankur.sing 34494
      }
1629 ankur.sing 34495
      first = false;
34496
      sb.append(")");
34497
      return sb.toString();
34498
    }
34499
 
3430 rajveer 34500
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 34501
      // check for required fields
34502
    }
34503
 
3430 rajveer 34504
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34505
      try {
34506
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34507
      } catch (org.apache.thrift.TException te) {
34508
        throw new java.io.IOException(te);
34509
      }
34510
    }
34511
 
34512
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34513
      try {
34514
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34515
      } catch (org.apache.thrift.TException te) {
34516
        throw new java.io.IOException(te);
34517
      }
34518
    }
34519
 
1629 ankur.sing 34520
  }
34521
 
3430 rajveer 34522
  public static class getUndeliveredOrders_args implements org.apache.thrift.TBase<getUndeliveredOrders_args, getUndeliveredOrders_args._Fields>, java.io.Serializable, Cloneable   {
34523
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUndeliveredOrders_args");
1886 ankur.sing 34524
 
3430 rajveer 34525
    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);
34526
    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);
1886 ankur.sing 34527
 
3430 rajveer 34528
    private long providerId; // required
34529
    private long warehouseId; // required
1886 ankur.sing 34530
 
34531
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34532
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 34533
      PROVIDER_ID((short)1, "providerId"),
34534
      WAREHOUSE_ID((short)2, "warehouseId");
1886 ankur.sing 34535
 
34536
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34537
 
34538
      static {
34539
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34540
          byName.put(field.getFieldName(), field);
34541
        }
34542
      }
34543
 
34544
      /**
34545
       * Find the _Fields constant that matches fieldId, or null if its not found.
34546
       */
34547
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34548
        switch(fieldId) {
34549
          case 1: // PROVIDER_ID
34550
            return PROVIDER_ID;
34551
          case 2: // WAREHOUSE_ID
34552
            return WAREHOUSE_ID;
34553
          default:
34554
            return null;
34555
        }
1886 ankur.sing 34556
      }
34557
 
34558
      /**
34559
       * Find the _Fields constant that matches fieldId, throwing an exception
34560
       * if it is not found.
34561
       */
34562
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34563
        _Fields fields = findByThriftId(fieldId);
34564
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34565
        return fields;
34566
      }
34567
 
34568
      /**
34569
       * Find the _Fields constant that matches name, or null if its not found.
34570
       */
34571
      public static _Fields findByName(String name) {
34572
        return byName.get(name);
34573
      }
34574
 
34575
      private final short _thriftId;
34576
      private final String _fieldName;
34577
 
34578
      _Fields(short thriftId, String fieldName) {
34579
        _thriftId = thriftId;
34580
        _fieldName = fieldName;
34581
      }
34582
 
34583
      public short getThriftFieldId() {
34584
        return _thriftId;
34585
      }
34586
 
34587
      public String getFieldName() {
34588
        return _fieldName;
34589
      }
34590
    }
34591
 
34592
    // isset id assignments
3061 chandransh 34593
    private static final int __PROVIDERID_ISSET_ID = 0;
34594
    private static final int __WAREHOUSEID_ISSET_ID = 1;
34595
    private BitSet __isset_bit_vector = new BitSet(2);
1886 ankur.sing 34596
 
3430 rajveer 34597
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1886 ankur.sing 34598
    static {
3430 rajveer 34599
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34600
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34601
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34602
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34603
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34604
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34605
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUndeliveredOrders_args.class, metaDataMap);
1886 ankur.sing 34606
    }
34607
 
3061 chandransh 34608
    public getUndeliveredOrders_args() {
1886 ankur.sing 34609
    }
34610
 
3061 chandransh 34611
    public getUndeliveredOrders_args(
34612
      long providerId,
34613
      long warehouseId)
1886 ankur.sing 34614
    {
34615
      this();
3061 chandransh 34616
      this.providerId = providerId;
34617
      setProviderIdIsSet(true);
34618
      this.warehouseId = warehouseId;
34619
      setWarehouseIdIsSet(true);
1886 ankur.sing 34620
    }
34621
 
34622
    /**
34623
     * Performs a deep copy on <i>other</i>.
34624
     */
3061 chandransh 34625
    public getUndeliveredOrders_args(getUndeliveredOrders_args other) {
1886 ankur.sing 34626
      __isset_bit_vector.clear();
34627
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 34628
      this.providerId = other.providerId;
34629
      this.warehouseId = other.warehouseId;
1886 ankur.sing 34630
    }
34631
 
3061 chandransh 34632
    public getUndeliveredOrders_args deepCopy() {
34633
      return new getUndeliveredOrders_args(this);
1886 ankur.sing 34634
    }
34635
 
3430 rajveer 34636
    @Override
34637
    public void clear() {
34638
      setProviderIdIsSet(false);
34639
      this.providerId = 0;
34640
      setWarehouseIdIsSet(false);
34641
      this.warehouseId = 0;
1886 ankur.sing 34642
    }
34643
 
3061 chandransh 34644
    public long getProviderId() {
34645
      return this.providerId;
1886 ankur.sing 34646
    }
34647
 
3430 rajveer 34648
    public void setProviderId(long providerId) {
3061 chandransh 34649
      this.providerId = providerId;
34650
      setProviderIdIsSet(true);
1886 ankur.sing 34651
    }
34652
 
3061 chandransh 34653
    public void unsetProviderId() {
34654
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1886 ankur.sing 34655
    }
34656
 
3430 rajveer 34657
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 34658
    public boolean isSetProviderId() {
34659
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1886 ankur.sing 34660
    }
34661
 
3061 chandransh 34662
    public void setProviderIdIsSet(boolean value) {
34663
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
1886 ankur.sing 34664
    }
34665
 
3061 chandransh 34666
    public long getWarehouseId() {
34667
      return this.warehouseId;
34668
    }
34669
 
3430 rajveer 34670
    public void setWarehouseId(long warehouseId) {
3061 chandransh 34671
      this.warehouseId = warehouseId;
34672
      setWarehouseIdIsSet(true);
34673
    }
34674
 
34675
    public void unsetWarehouseId() {
34676
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
34677
    }
34678
 
3430 rajveer 34679
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
3061 chandransh 34680
    public boolean isSetWarehouseId() {
34681
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
34682
    }
34683
 
34684
    public void setWarehouseIdIsSet(boolean value) {
34685
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
34686
    }
34687
 
1886 ankur.sing 34688
    public void setFieldValue(_Fields field, Object value) {
34689
      switch (field) {
3061 chandransh 34690
      case PROVIDER_ID:
1886 ankur.sing 34691
        if (value == null) {
3061 chandransh 34692
          unsetProviderId();
1886 ankur.sing 34693
        } else {
3061 chandransh 34694
          setProviderId((Long)value);
1886 ankur.sing 34695
        }
34696
        break;
34697
 
3061 chandransh 34698
      case WAREHOUSE_ID:
34699
        if (value == null) {
34700
          unsetWarehouseId();
34701
        } else {
34702
          setWarehouseId((Long)value);
34703
        }
34704
        break;
34705
 
1886 ankur.sing 34706
      }
34707
    }
34708
 
34709
    public Object getFieldValue(_Fields field) {
34710
      switch (field) {
3061 chandransh 34711
      case PROVIDER_ID:
3430 rajveer 34712
        return Long.valueOf(getProviderId());
1886 ankur.sing 34713
 
3061 chandransh 34714
      case WAREHOUSE_ID:
3430 rajveer 34715
        return Long.valueOf(getWarehouseId());
3061 chandransh 34716
 
1886 ankur.sing 34717
      }
34718
      throw new IllegalStateException();
34719
    }
34720
 
3430 rajveer 34721
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34722
    public boolean isSet(_Fields field) {
34723
      if (field == null) {
34724
        throw new IllegalArgumentException();
34725
      }
1886 ankur.sing 34726
 
34727
      switch (field) {
3061 chandransh 34728
      case PROVIDER_ID:
34729
        return isSetProviderId();
34730
      case WAREHOUSE_ID:
34731
        return isSetWarehouseId();
1886 ankur.sing 34732
      }
34733
      throw new IllegalStateException();
34734
    }
34735
 
34736
    @Override
34737
    public boolean equals(Object that) {
34738
      if (that == null)
34739
        return false;
3061 chandransh 34740
      if (that instanceof getUndeliveredOrders_args)
34741
        return this.equals((getUndeliveredOrders_args)that);
1886 ankur.sing 34742
      return false;
34743
    }
34744
 
3061 chandransh 34745
    public boolean equals(getUndeliveredOrders_args that) {
1886 ankur.sing 34746
      if (that == null)
34747
        return false;
34748
 
3061 chandransh 34749
      boolean this_present_providerId = true;
34750
      boolean that_present_providerId = true;
34751
      if (this_present_providerId || that_present_providerId) {
34752
        if (!(this_present_providerId && that_present_providerId))
1886 ankur.sing 34753
          return false;
3061 chandransh 34754
        if (this.providerId != that.providerId)
1886 ankur.sing 34755
          return false;
34756
      }
34757
 
3061 chandransh 34758
      boolean this_present_warehouseId = true;
34759
      boolean that_present_warehouseId = true;
34760
      if (this_present_warehouseId || that_present_warehouseId) {
34761
        if (!(this_present_warehouseId && that_present_warehouseId))
34762
          return false;
34763
        if (this.warehouseId != that.warehouseId)
34764
          return false;
34765
      }
34766
 
1886 ankur.sing 34767
      return true;
34768
    }
34769
 
34770
    @Override
34771
    public int hashCode() {
34772
      return 0;
34773
    }
34774
 
3061 chandransh 34775
    public int compareTo(getUndeliveredOrders_args other) {
1886 ankur.sing 34776
      if (!getClass().equals(other.getClass())) {
34777
        return getClass().getName().compareTo(other.getClass().getName());
34778
      }
34779
 
34780
      int lastComparison = 0;
3061 chandransh 34781
      getUndeliveredOrders_args typedOther = (getUndeliveredOrders_args)other;
1886 ankur.sing 34782
 
3430 rajveer 34783
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1886 ankur.sing 34784
      if (lastComparison != 0) {
34785
        return lastComparison;
34786
      }
3430 rajveer 34787
      if (isSetProviderId()) {
34788
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
34789
        if (lastComparison != 0) {
34790
          return lastComparison;
34791
        }
1886 ankur.sing 34792
      }
3430 rajveer 34793
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
3061 chandransh 34794
      if (lastComparison != 0) {
34795
        return lastComparison;
34796
      }
3430 rajveer 34797
      if (isSetWarehouseId()) {
34798
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
34799
        if (lastComparison != 0) {
34800
          return lastComparison;
34801
        }
3061 chandransh 34802
      }
1886 ankur.sing 34803
      return 0;
34804
    }
34805
 
3430 rajveer 34806
    public _Fields fieldForId(int fieldId) {
34807
      return _Fields.findByThriftId(fieldId);
34808
    }
34809
 
34810
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34811
      org.apache.thrift.protocol.TField field;
1886 ankur.sing 34812
      iprot.readStructBegin();
34813
      while (true)
34814
      {
34815
        field = iprot.readFieldBegin();
3430 rajveer 34816
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1886 ankur.sing 34817
          break;
34818
        }
3430 rajveer 34819
        switch (field.id) {
34820
          case 1: // PROVIDER_ID
34821
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34822
              this.providerId = iprot.readI64();
34823
              setProviderIdIsSet(true);
34824
            } else { 
34825
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34826
            }
34827
            break;
34828
          case 2: // WAREHOUSE_ID
34829
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34830
              this.warehouseId = iprot.readI64();
34831
              setWarehouseIdIsSet(true);
34832
            } else { 
34833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34834
            }
34835
            break;
34836
          default:
34837
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1886 ankur.sing 34838
        }
3430 rajveer 34839
        iprot.readFieldEnd();
1886 ankur.sing 34840
      }
34841
      iprot.readStructEnd();
34842
      validate();
34843
    }
34844
 
3430 rajveer 34845
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1886 ankur.sing 34846
      validate();
34847
 
34848
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 34849
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
34850
      oprot.writeI64(this.providerId);
1886 ankur.sing 34851
      oprot.writeFieldEnd();
3061 chandransh 34852
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
34853
      oprot.writeI64(this.warehouseId);
34854
      oprot.writeFieldEnd();
1886 ankur.sing 34855
      oprot.writeFieldStop();
34856
      oprot.writeStructEnd();
34857
    }
34858
 
34859
    @Override
34860
    public String toString() {
3061 chandransh 34861
      StringBuilder sb = new StringBuilder("getUndeliveredOrders_args(");
1886 ankur.sing 34862
      boolean first = true;
34863
 
3061 chandransh 34864
      sb.append("providerId:");
34865
      sb.append(this.providerId);
1886 ankur.sing 34866
      first = false;
3061 chandransh 34867
      if (!first) sb.append(", ");
34868
      sb.append("warehouseId:");
34869
      sb.append(this.warehouseId);
34870
      first = false;
1886 ankur.sing 34871
      sb.append(")");
34872
      return sb.toString();
34873
    }
34874
 
3430 rajveer 34875
    public void validate() throws org.apache.thrift.TException {
1886 ankur.sing 34876
      // check for required fields
34877
    }
34878
 
3430 rajveer 34879
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34880
      try {
34881
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34882
      } catch (org.apache.thrift.TException te) {
34883
        throw new java.io.IOException(te);
34884
      }
34885
    }
34886
 
34887
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34888
      try {
34889
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34890
      } catch (org.apache.thrift.TException te) {
34891
        throw new java.io.IOException(te);
34892
      }
34893
    }
34894
 
1886 ankur.sing 34895
  }
34896
 
3430 rajveer 34897
  public static class getUndeliveredOrders_result implements org.apache.thrift.TBase<getUndeliveredOrders_result, getUndeliveredOrders_result._Fields>, java.io.Serializable, Cloneable   {
34898
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUndeliveredOrders_result");
1886 ankur.sing 34899
 
3430 rajveer 34900
    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);
1886 ankur.sing 34901
 
3430 rajveer 34902
    private List<Order> success; // required
1886 ankur.sing 34903
 
34904
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34905
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1886 ankur.sing 34906
      SUCCESS((short)0, "success");
34907
 
34908
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34909
 
34910
      static {
34911
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34912
          byName.put(field.getFieldName(), field);
34913
        }
34914
      }
34915
 
34916
      /**
34917
       * Find the _Fields constant that matches fieldId, or null if its not found.
34918
       */
34919
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34920
        switch(fieldId) {
34921
          case 0: // SUCCESS
34922
            return SUCCESS;
34923
          default:
34924
            return null;
34925
        }
1886 ankur.sing 34926
      }
34927
 
34928
      /**
34929
       * Find the _Fields constant that matches fieldId, throwing an exception
34930
       * if it is not found.
34931
       */
34932
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34933
        _Fields fields = findByThriftId(fieldId);
34934
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34935
        return fields;
34936
      }
34937
 
34938
      /**
34939
       * Find the _Fields constant that matches name, or null if its not found.
34940
       */
34941
      public static _Fields findByName(String name) {
34942
        return byName.get(name);
34943
      }
34944
 
34945
      private final short _thriftId;
34946
      private final String _fieldName;
34947
 
34948
      _Fields(short thriftId, String fieldName) {
34949
        _thriftId = thriftId;
34950
        _fieldName = fieldName;
34951
      }
34952
 
34953
      public short getThriftFieldId() {
34954
        return _thriftId;
34955
      }
34956
 
34957
      public String getFieldName() {
34958
        return _fieldName;
34959
      }
34960
    }
34961
 
34962
    // isset id assignments
34963
 
3430 rajveer 34964
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1886 ankur.sing 34965
    static {
3430 rajveer 34966
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34967
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34968
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34969
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
34970
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34971
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUndeliveredOrders_result.class, metaDataMap);
1886 ankur.sing 34972
    }
34973
 
3061 chandransh 34974
    public getUndeliveredOrders_result() {
1886 ankur.sing 34975
    }
34976
 
3061 chandransh 34977
    public getUndeliveredOrders_result(
1886 ankur.sing 34978
      List<Order> success)
34979
    {
34980
      this();
34981
      this.success = success;
34982
    }
34983
 
34984
    /**
34985
     * Performs a deep copy on <i>other</i>.
34986
     */
3061 chandransh 34987
    public getUndeliveredOrders_result(getUndeliveredOrders_result other) {
1886 ankur.sing 34988
      if (other.isSetSuccess()) {
34989
        List<Order> __this__success = new ArrayList<Order>();
34990
        for (Order other_element : other.success) {
34991
          __this__success.add(new Order(other_element));
34992
        }
34993
        this.success = __this__success;
34994
      }
34995
    }
34996
 
3061 chandransh 34997
    public getUndeliveredOrders_result deepCopy() {
34998
      return new getUndeliveredOrders_result(this);
1886 ankur.sing 34999
    }
35000
 
3430 rajveer 35001
    @Override
35002
    public void clear() {
35003
      this.success = null;
1886 ankur.sing 35004
    }
35005
 
35006
    public int getSuccessSize() {
35007
      return (this.success == null) ? 0 : this.success.size();
35008
    }
35009
 
35010
    public java.util.Iterator<Order> getSuccessIterator() {
35011
      return (this.success == null) ? null : this.success.iterator();
35012
    }
35013
 
35014
    public void addToSuccess(Order elem) {
35015
      if (this.success == null) {
35016
        this.success = new ArrayList<Order>();
35017
      }
35018
      this.success.add(elem);
35019
    }
35020
 
35021
    public List<Order> getSuccess() {
35022
      return this.success;
35023
    }
35024
 
3430 rajveer 35025
    public void setSuccess(List<Order> success) {
1886 ankur.sing 35026
      this.success = success;
35027
    }
35028
 
35029
    public void unsetSuccess() {
35030
      this.success = null;
35031
    }
35032
 
3430 rajveer 35033
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1886 ankur.sing 35034
    public boolean isSetSuccess() {
35035
      return this.success != null;
35036
    }
35037
 
35038
    public void setSuccessIsSet(boolean value) {
35039
      if (!value) {
35040
        this.success = null;
35041
      }
35042
    }
35043
 
35044
    public void setFieldValue(_Fields field, Object value) {
35045
      switch (field) {
35046
      case SUCCESS:
35047
        if (value == null) {
35048
          unsetSuccess();
35049
        } else {
35050
          setSuccess((List<Order>)value);
35051
        }
35052
        break;
35053
 
35054
      }
35055
    }
35056
 
35057
    public Object getFieldValue(_Fields field) {
35058
      switch (field) {
35059
      case SUCCESS:
35060
        return getSuccess();
35061
 
35062
      }
35063
      throw new IllegalStateException();
35064
    }
35065
 
3430 rajveer 35066
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35067
    public boolean isSet(_Fields field) {
35068
      if (field == null) {
35069
        throw new IllegalArgumentException();
35070
      }
1886 ankur.sing 35071
 
35072
      switch (field) {
35073
      case SUCCESS:
35074
        return isSetSuccess();
35075
      }
35076
      throw new IllegalStateException();
35077
    }
35078
 
35079
    @Override
35080
    public boolean equals(Object that) {
35081
      if (that == null)
35082
        return false;
3061 chandransh 35083
      if (that instanceof getUndeliveredOrders_result)
35084
        return this.equals((getUndeliveredOrders_result)that);
1886 ankur.sing 35085
      return false;
35086
    }
35087
 
3061 chandransh 35088
    public boolean equals(getUndeliveredOrders_result that) {
1886 ankur.sing 35089
      if (that == null)
35090
        return false;
35091
 
35092
      boolean this_present_success = true && this.isSetSuccess();
35093
      boolean that_present_success = true && that.isSetSuccess();
35094
      if (this_present_success || that_present_success) {
35095
        if (!(this_present_success && that_present_success))
35096
          return false;
35097
        if (!this.success.equals(that.success))
35098
          return false;
35099
      }
35100
 
35101
      return true;
35102
    }
35103
 
35104
    @Override
35105
    public int hashCode() {
35106
      return 0;
35107
    }
35108
 
3061 chandransh 35109
    public int compareTo(getUndeliveredOrders_result other) {
1886 ankur.sing 35110
      if (!getClass().equals(other.getClass())) {
35111
        return getClass().getName().compareTo(other.getClass().getName());
35112
      }
35113
 
35114
      int lastComparison = 0;
3061 chandransh 35115
      getUndeliveredOrders_result typedOther = (getUndeliveredOrders_result)other;
1886 ankur.sing 35116
 
3430 rajveer 35117
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1886 ankur.sing 35118
      if (lastComparison != 0) {
35119
        return lastComparison;
35120
      }
3430 rajveer 35121
      if (isSetSuccess()) {
35122
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35123
        if (lastComparison != 0) {
35124
          return lastComparison;
35125
        }
1886 ankur.sing 35126
      }
35127
      return 0;
35128
    }
35129
 
3430 rajveer 35130
    public _Fields fieldForId(int fieldId) {
35131
      return _Fields.findByThriftId(fieldId);
35132
    }
35133
 
35134
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35135
      org.apache.thrift.protocol.TField field;
1886 ankur.sing 35136
      iprot.readStructBegin();
35137
      while (true)
35138
      {
35139
        field = iprot.readFieldBegin();
3430 rajveer 35140
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1886 ankur.sing 35141
          break;
35142
        }
3430 rajveer 35143
        switch (field.id) {
35144
          case 0: // SUCCESS
35145
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35146
              {
4133 chandransh 35147
                org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();
35148
                this.success = new ArrayList<Order>(_list104.size);
35149
                for (int _i105 = 0; _i105 < _list104.size; ++_i105)
1886 ankur.sing 35150
                {
4133 chandransh 35151
                  Order _elem106; // required
35152
                  _elem106 = new Order();
35153
                  _elem106.read(iprot);
35154
                  this.success.add(_elem106);
1886 ankur.sing 35155
                }
3430 rajveer 35156
                iprot.readListEnd();
1886 ankur.sing 35157
              }
3430 rajveer 35158
            } else { 
35159
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35160
            }
35161
            break;
35162
          default:
35163
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1886 ankur.sing 35164
        }
3430 rajveer 35165
        iprot.readFieldEnd();
1886 ankur.sing 35166
      }
35167
      iprot.readStructEnd();
35168
      validate();
35169
    }
35170
 
3430 rajveer 35171
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1886 ankur.sing 35172
      oprot.writeStructBegin(STRUCT_DESC);
35173
 
35174
      if (this.isSetSuccess()) {
35175
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35176
        {
3430 rajveer 35177
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 35178
          for (Order _iter107 : this.success)
1886 ankur.sing 35179
          {
4133 chandransh 35180
            _iter107.write(oprot);
1886 ankur.sing 35181
          }
35182
          oprot.writeListEnd();
35183
        }
35184
        oprot.writeFieldEnd();
35185
      }
35186
      oprot.writeFieldStop();
35187
      oprot.writeStructEnd();
35188
    }
35189
 
35190
    @Override
35191
    public String toString() {
3061 chandransh 35192
      StringBuilder sb = new StringBuilder("getUndeliveredOrders_result(");
1886 ankur.sing 35193
      boolean first = true;
35194
 
35195
      sb.append("success:");
35196
      if (this.success == null) {
35197
        sb.append("null");
35198
      } else {
35199
        sb.append(this.success);
35200
      }
35201
      first = false;
35202
      sb.append(")");
35203
      return sb.toString();
35204
    }
35205
 
3430 rajveer 35206
    public void validate() throws org.apache.thrift.TException {
1886 ankur.sing 35207
      // check for required fields
35208
    }
35209
 
3430 rajveer 35210
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35211
      try {
35212
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35213
      } catch (org.apache.thrift.TException te) {
35214
        throw new java.io.IOException(te);
35215
      }
35216
    }
35217
 
35218
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35219
      try {
35220
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35221
      } catch (org.apache.thrift.TException te) {
35222
        throw new java.io.IOException(te);
35223
      }
35224
    }
35225
 
1886 ankur.sing 35226
  }
35227
 
3430 rajveer 35228
  public static class toggleDOAFlag_args implements org.apache.thrift.TBase<toggleDOAFlag_args, toggleDOAFlag_args._Fields>, java.io.Serializable, Cloneable   {
35229
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("toggleDOAFlag_args");
2538 chandransh 35230
 
3430 rajveer 35231
    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);
2538 chandransh 35232
 
3430 rajveer 35233
    private long orderId; // required
2538 chandransh 35234
 
35235
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35236
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 35237
      ORDER_ID((short)1, "orderId");
35238
 
35239
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35240
 
35241
      static {
35242
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35243
          byName.put(field.getFieldName(), field);
35244
        }
35245
      }
35246
 
35247
      /**
35248
       * Find the _Fields constant that matches fieldId, or null if its not found.
35249
       */
35250
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35251
        switch(fieldId) {
35252
          case 1: // ORDER_ID
35253
            return ORDER_ID;
35254
          default:
35255
            return null;
35256
        }
2538 chandransh 35257
      }
35258
 
35259
      /**
35260
       * Find the _Fields constant that matches fieldId, throwing an exception
35261
       * if it is not found.
35262
       */
35263
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35264
        _Fields fields = findByThriftId(fieldId);
35265
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35266
        return fields;
35267
      }
35268
 
35269
      /**
35270
       * Find the _Fields constant that matches name, or null if its not found.
35271
       */
35272
      public static _Fields findByName(String name) {
35273
        return byName.get(name);
35274
      }
35275
 
35276
      private final short _thriftId;
35277
      private final String _fieldName;
35278
 
35279
      _Fields(short thriftId, String fieldName) {
35280
        _thriftId = thriftId;
35281
        _fieldName = fieldName;
35282
      }
35283
 
35284
      public short getThriftFieldId() {
35285
        return _thriftId;
35286
      }
35287
 
35288
      public String getFieldName() {
35289
        return _fieldName;
35290
      }
35291
    }
35292
 
35293
    // isset id assignments
35294
    private static final int __ORDERID_ISSET_ID = 0;
35295
    private BitSet __isset_bit_vector = new BitSet(1);
35296
 
3430 rajveer 35297
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 35298
    static {
3430 rajveer 35299
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35300
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35301
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35302
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35303
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(toggleDOAFlag_args.class, metaDataMap);
2538 chandransh 35304
    }
35305
 
35306
    public toggleDOAFlag_args() {
35307
    }
35308
 
35309
    public toggleDOAFlag_args(
35310
      long orderId)
35311
    {
35312
      this();
35313
      this.orderId = orderId;
35314
      setOrderIdIsSet(true);
35315
    }
35316
 
35317
    /**
35318
     * Performs a deep copy on <i>other</i>.
35319
     */
35320
    public toggleDOAFlag_args(toggleDOAFlag_args other) {
35321
      __isset_bit_vector.clear();
35322
      __isset_bit_vector.or(other.__isset_bit_vector);
35323
      this.orderId = other.orderId;
35324
    }
35325
 
35326
    public toggleDOAFlag_args deepCopy() {
35327
      return new toggleDOAFlag_args(this);
35328
    }
35329
 
3430 rajveer 35330
    @Override
35331
    public void clear() {
35332
      setOrderIdIsSet(false);
35333
      this.orderId = 0;
2538 chandransh 35334
    }
35335
 
35336
    public long getOrderId() {
35337
      return this.orderId;
35338
    }
35339
 
3430 rajveer 35340
    public void setOrderId(long orderId) {
2538 chandransh 35341
      this.orderId = orderId;
35342
      setOrderIdIsSet(true);
35343
    }
35344
 
35345
    public void unsetOrderId() {
35346
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
35347
    }
35348
 
3430 rajveer 35349
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2538 chandransh 35350
    public boolean isSetOrderId() {
35351
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
35352
    }
35353
 
35354
    public void setOrderIdIsSet(boolean value) {
35355
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
35356
    }
35357
 
35358
    public void setFieldValue(_Fields field, Object value) {
35359
      switch (field) {
35360
      case ORDER_ID:
35361
        if (value == null) {
35362
          unsetOrderId();
35363
        } else {
35364
          setOrderId((Long)value);
35365
        }
35366
        break;
35367
 
35368
      }
35369
    }
35370
 
35371
    public Object getFieldValue(_Fields field) {
35372
      switch (field) {
35373
      case ORDER_ID:
3430 rajveer 35374
        return Long.valueOf(getOrderId());
2538 chandransh 35375
 
35376
      }
35377
      throw new IllegalStateException();
35378
    }
35379
 
3430 rajveer 35380
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35381
    public boolean isSet(_Fields field) {
35382
      if (field == null) {
35383
        throw new IllegalArgumentException();
35384
      }
2538 chandransh 35385
 
35386
      switch (field) {
35387
      case ORDER_ID:
35388
        return isSetOrderId();
35389
      }
35390
      throw new IllegalStateException();
35391
    }
35392
 
35393
    @Override
35394
    public boolean equals(Object that) {
35395
      if (that == null)
35396
        return false;
35397
      if (that instanceof toggleDOAFlag_args)
35398
        return this.equals((toggleDOAFlag_args)that);
35399
      return false;
35400
    }
35401
 
35402
    public boolean equals(toggleDOAFlag_args that) {
35403
      if (that == null)
35404
        return false;
35405
 
35406
      boolean this_present_orderId = true;
35407
      boolean that_present_orderId = true;
35408
      if (this_present_orderId || that_present_orderId) {
35409
        if (!(this_present_orderId && that_present_orderId))
35410
          return false;
35411
        if (this.orderId != that.orderId)
35412
          return false;
35413
      }
35414
 
35415
      return true;
35416
    }
35417
 
35418
    @Override
35419
    public int hashCode() {
35420
      return 0;
35421
    }
35422
 
35423
    public int compareTo(toggleDOAFlag_args other) {
35424
      if (!getClass().equals(other.getClass())) {
35425
        return getClass().getName().compareTo(other.getClass().getName());
35426
      }
35427
 
35428
      int lastComparison = 0;
35429
      toggleDOAFlag_args typedOther = (toggleDOAFlag_args)other;
35430
 
3430 rajveer 35431
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2538 chandransh 35432
      if (lastComparison != 0) {
35433
        return lastComparison;
35434
      }
3430 rajveer 35435
      if (isSetOrderId()) {
35436
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
35437
        if (lastComparison != 0) {
35438
          return lastComparison;
35439
        }
2538 chandransh 35440
      }
35441
      return 0;
35442
    }
35443
 
3430 rajveer 35444
    public _Fields fieldForId(int fieldId) {
35445
      return _Fields.findByThriftId(fieldId);
35446
    }
35447
 
35448
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35449
      org.apache.thrift.protocol.TField field;
2538 chandransh 35450
      iprot.readStructBegin();
35451
      while (true)
35452
      {
35453
        field = iprot.readFieldBegin();
3430 rajveer 35454
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 35455
          break;
35456
        }
3430 rajveer 35457
        switch (field.id) {
35458
          case 1: // ORDER_ID
35459
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35460
              this.orderId = iprot.readI64();
35461
              setOrderIdIsSet(true);
35462
            } else { 
35463
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35464
            }
35465
            break;
35466
          default:
35467
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 35468
        }
3430 rajveer 35469
        iprot.readFieldEnd();
2538 chandransh 35470
      }
35471
      iprot.readStructEnd();
35472
      validate();
35473
    }
35474
 
3430 rajveer 35475
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 35476
      validate();
35477
 
35478
      oprot.writeStructBegin(STRUCT_DESC);
35479
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
35480
      oprot.writeI64(this.orderId);
35481
      oprot.writeFieldEnd();
35482
      oprot.writeFieldStop();
35483
      oprot.writeStructEnd();
35484
    }
35485
 
35486
    @Override
35487
    public String toString() {
35488
      StringBuilder sb = new StringBuilder("toggleDOAFlag_args(");
35489
      boolean first = true;
35490
 
35491
      sb.append("orderId:");
35492
      sb.append(this.orderId);
35493
      first = false;
35494
      sb.append(")");
35495
      return sb.toString();
35496
    }
35497
 
3430 rajveer 35498
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 35499
      // check for required fields
35500
    }
35501
 
3430 rajveer 35502
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35503
      try {
35504
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35505
      } catch (org.apache.thrift.TException te) {
35506
        throw new java.io.IOException(te);
35507
      }
35508
    }
35509
 
35510
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35511
      try {
35512
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35513
      } catch (org.apache.thrift.TException te) {
35514
        throw new java.io.IOException(te);
35515
      }
35516
    }
35517
 
2538 chandransh 35518
  }
35519
 
3430 rajveer 35520
  public static class toggleDOAFlag_result implements org.apache.thrift.TBase<toggleDOAFlag_result, toggleDOAFlag_result._Fields>, java.io.Serializable, Cloneable   {
35521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("toggleDOAFlag_result");
2538 chandransh 35522
 
3430 rajveer 35523
    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);
35524
    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);
2538 chandransh 35525
 
3430 rajveer 35526
    private boolean success; // required
35527
    private TransactionServiceException ex; // required
2538 chandransh 35528
 
35529
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35530
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 35531
      SUCCESS((short)0, "success"),
35532
      EX((short)1, "ex");
35533
 
35534
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35535
 
35536
      static {
35537
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35538
          byName.put(field.getFieldName(), field);
35539
        }
35540
      }
35541
 
35542
      /**
35543
       * Find the _Fields constant that matches fieldId, or null if its not found.
35544
       */
35545
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35546
        switch(fieldId) {
35547
          case 0: // SUCCESS
35548
            return SUCCESS;
35549
          case 1: // EX
35550
            return EX;
35551
          default:
35552
            return null;
35553
        }
2538 chandransh 35554
      }
35555
 
35556
      /**
35557
       * Find the _Fields constant that matches fieldId, throwing an exception
35558
       * if it is not found.
35559
       */
35560
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35561
        _Fields fields = findByThriftId(fieldId);
35562
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35563
        return fields;
35564
      }
35565
 
35566
      /**
35567
       * Find the _Fields constant that matches name, or null if its not found.
35568
       */
35569
      public static _Fields findByName(String name) {
35570
        return byName.get(name);
35571
      }
35572
 
35573
      private final short _thriftId;
35574
      private final String _fieldName;
35575
 
35576
      _Fields(short thriftId, String fieldName) {
35577
        _thriftId = thriftId;
35578
        _fieldName = fieldName;
35579
      }
35580
 
35581
      public short getThriftFieldId() {
35582
        return _thriftId;
35583
      }
35584
 
35585
      public String getFieldName() {
35586
        return _fieldName;
35587
      }
35588
    }
35589
 
35590
    // isset id assignments
35591
    private static final int __SUCCESS_ISSET_ID = 0;
35592
    private BitSet __isset_bit_vector = new BitSet(1);
35593
 
3430 rajveer 35594
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 35595
    static {
3430 rajveer 35596
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35597
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35598
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
35599
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35600
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
35601
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35602
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(toggleDOAFlag_result.class, metaDataMap);
2538 chandransh 35603
    }
35604
 
35605
    public toggleDOAFlag_result() {
35606
    }
35607
 
35608
    public toggleDOAFlag_result(
35609
      boolean success,
35610
      TransactionServiceException ex)
35611
    {
35612
      this();
35613
      this.success = success;
35614
      setSuccessIsSet(true);
35615
      this.ex = ex;
35616
    }
35617
 
35618
    /**
35619
     * Performs a deep copy on <i>other</i>.
35620
     */
35621
    public toggleDOAFlag_result(toggleDOAFlag_result other) {
35622
      __isset_bit_vector.clear();
35623
      __isset_bit_vector.or(other.__isset_bit_vector);
35624
      this.success = other.success;
35625
      if (other.isSetEx()) {
35626
        this.ex = new TransactionServiceException(other.ex);
35627
      }
35628
    }
35629
 
35630
    public toggleDOAFlag_result deepCopy() {
35631
      return new toggleDOAFlag_result(this);
35632
    }
35633
 
3430 rajveer 35634
    @Override
35635
    public void clear() {
35636
      setSuccessIsSet(false);
35637
      this.success = false;
35638
      this.ex = null;
2538 chandransh 35639
    }
35640
 
35641
    public boolean isSuccess() {
35642
      return this.success;
35643
    }
35644
 
3430 rajveer 35645
    public void setSuccess(boolean success) {
2538 chandransh 35646
      this.success = success;
35647
      setSuccessIsSet(true);
35648
    }
35649
 
35650
    public void unsetSuccess() {
35651
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
35652
    }
35653
 
3430 rajveer 35654
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2538 chandransh 35655
    public boolean isSetSuccess() {
35656
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
35657
    }
35658
 
35659
    public void setSuccessIsSet(boolean value) {
35660
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
35661
    }
35662
 
35663
    public TransactionServiceException getEx() {
35664
      return this.ex;
35665
    }
35666
 
3430 rajveer 35667
    public void setEx(TransactionServiceException ex) {
2538 chandransh 35668
      this.ex = ex;
35669
    }
35670
 
35671
    public void unsetEx() {
35672
      this.ex = null;
35673
    }
35674
 
3430 rajveer 35675
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2538 chandransh 35676
    public boolean isSetEx() {
35677
      return this.ex != null;
35678
    }
35679
 
35680
    public void setExIsSet(boolean value) {
35681
      if (!value) {
35682
        this.ex = null;
35683
      }
35684
    }
35685
 
35686
    public void setFieldValue(_Fields field, Object value) {
35687
      switch (field) {
35688
      case SUCCESS:
35689
        if (value == null) {
35690
          unsetSuccess();
35691
        } else {
35692
          setSuccess((Boolean)value);
35693
        }
35694
        break;
35695
 
35696
      case EX:
35697
        if (value == null) {
35698
          unsetEx();
35699
        } else {
35700
          setEx((TransactionServiceException)value);
35701
        }
35702
        break;
35703
 
35704
      }
35705
    }
35706
 
35707
    public Object getFieldValue(_Fields field) {
35708
      switch (field) {
35709
      case SUCCESS:
3430 rajveer 35710
        return Boolean.valueOf(isSuccess());
2538 chandransh 35711
 
35712
      case EX:
35713
        return getEx();
35714
 
35715
      }
35716
      throw new IllegalStateException();
35717
    }
35718
 
3430 rajveer 35719
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35720
    public boolean isSet(_Fields field) {
35721
      if (field == null) {
35722
        throw new IllegalArgumentException();
35723
      }
2538 chandransh 35724
 
35725
      switch (field) {
35726
      case SUCCESS:
35727
        return isSetSuccess();
35728
      case EX:
35729
        return isSetEx();
35730
      }
35731
      throw new IllegalStateException();
35732
    }
35733
 
35734
    @Override
35735
    public boolean equals(Object that) {
35736
      if (that == null)
35737
        return false;
35738
      if (that instanceof toggleDOAFlag_result)
35739
        return this.equals((toggleDOAFlag_result)that);
35740
      return false;
35741
    }
35742
 
35743
    public boolean equals(toggleDOAFlag_result that) {
35744
      if (that == null)
35745
        return false;
35746
 
35747
      boolean this_present_success = true;
35748
      boolean that_present_success = true;
35749
      if (this_present_success || that_present_success) {
35750
        if (!(this_present_success && that_present_success))
35751
          return false;
35752
        if (this.success != that.success)
35753
          return false;
35754
      }
35755
 
35756
      boolean this_present_ex = true && this.isSetEx();
35757
      boolean that_present_ex = true && that.isSetEx();
35758
      if (this_present_ex || that_present_ex) {
35759
        if (!(this_present_ex && that_present_ex))
35760
          return false;
35761
        if (!this.ex.equals(that.ex))
35762
          return false;
35763
      }
35764
 
35765
      return true;
35766
    }
35767
 
35768
    @Override
35769
    public int hashCode() {
35770
      return 0;
35771
    }
35772
 
35773
    public int compareTo(toggleDOAFlag_result other) {
35774
      if (!getClass().equals(other.getClass())) {
35775
        return getClass().getName().compareTo(other.getClass().getName());
35776
      }
35777
 
35778
      int lastComparison = 0;
35779
      toggleDOAFlag_result typedOther = (toggleDOAFlag_result)other;
35780
 
3430 rajveer 35781
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2538 chandransh 35782
      if (lastComparison != 0) {
35783
        return lastComparison;
35784
      }
3430 rajveer 35785
      if (isSetSuccess()) {
35786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35787
        if (lastComparison != 0) {
35788
          return lastComparison;
35789
        }
2538 chandransh 35790
      }
3430 rajveer 35791
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2538 chandransh 35792
      if (lastComparison != 0) {
35793
        return lastComparison;
35794
      }
3430 rajveer 35795
      if (isSetEx()) {
35796
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
35797
        if (lastComparison != 0) {
35798
          return lastComparison;
35799
        }
2538 chandransh 35800
      }
35801
      return 0;
35802
    }
35803
 
3430 rajveer 35804
    public _Fields fieldForId(int fieldId) {
35805
      return _Fields.findByThriftId(fieldId);
35806
    }
35807
 
35808
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35809
      org.apache.thrift.protocol.TField field;
2538 chandransh 35810
      iprot.readStructBegin();
35811
      while (true)
35812
      {
35813
        field = iprot.readFieldBegin();
3430 rajveer 35814
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 35815
          break;
35816
        }
3430 rajveer 35817
        switch (field.id) {
35818
          case 0: // SUCCESS
35819
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
35820
              this.success = iprot.readBool();
35821
              setSuccessIsSet(true);
35822
            } else { 
35823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35824
            }
35825
            break;
35826
          case 1: // EX
35827
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35828
              this.ex = new TransactionServiceException();
35829
              this.ex.read(iprot);
35830
            } else { 
35831
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35832
            }
35833
            break;
35834
          default:
35835
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 35836
        }
3430 rajveer 35837
        iprot.readFieldEnd();
2538 chandransh 35838
      }
35839
      iprot.readStructEnd();
35840
      validate();
35841
    }
35842
 
3430 rajveer 35843
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 35844
      oprot.writeStructBegin(STRUCT_DESC);
35845
 
35846
      if (this.isSetSuccess()) {
35847
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35848
        oprot.writeBool(this.success);
35849
        oprot.writeFieldEnd();
35850
      } else if (this.isSetEx()) {
35851
        oprot.writeFieldBegin(EX_FIELD_DESC);
35852
        this.ex.write(oprot);
35853
        oprot.writeFieldEnd();
35854
      }
35855
      oprot.writeFieldStop();
35856
      oprot.writeStructEnd();
35857
    }
35858
 
35859
    @Override
35860
    public String toString() {
35861
      StringBuilder sb = new StringBuilder("toggleDOAFlag_result(");
35862
      boolean first = true;
35863
 
35864
      sb.append("success:");
35865
      sb.append(this.success);
35866
      first = false;
35867
      if (!first) sb.append(", ");
35868
      sb.append("ex:");
35869
      if (this.ex == null) {
35870
        sb.append("null");
35871
      } else {
35872
        sb.append(this.ex);
35873
      }
35874
      first = false;
35875
      sb.append(")");
35876
      return sb.toString();
35877
    }
35878
 
3430 rajveer 35879
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 35880
      // check for required fields
35881
    }
35882
 
3430 rajveer 35883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35884
      try {
35885
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35886
      } catch (org.apache.thrift.TException te) {
35887
        throw new java.io.IOException(te);
35888
      }
35889
    }
35890
 
35891
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35892
      try {
35893
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35894
      } catch (org.apache.thrift.TException te) {
35895
        throw new java.io.IOException(te);
35896
      }
35897
    }
35898
 
2538 chandransh 35899
  }
35900
 
3430 rajveer 35901
  public static class requestPickupNumber_args implements org.apache.thrift.TBase<requestPickupNumber_args, requestPickupNumber_args._Fields>, java.io.Serializable, Cloneable   {
35902
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestPickupNumber_args");
2538 chandransh 35903
 
3430 rajveer 35904
    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);
2538 chandransh 35905
 
3430 rajveer 35906
    private long orderId; // required
2538 chandransh 35907
 
35908
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35909
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 35910
      ORDER_ID((short)1, "orderId");
35911
 
35912
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35913
 
35914
      static {
35915
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35916
          byName.put(field.getFieldName(), field);
35917
        }
35918
      }
35919
 
35920
      /**
35921
       * Find the _Fields constant that matches fieldId, or null if its not found.
35922
       */
35923
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35924
        switch(fieldId) {
35925
          case 1: // ORDER_ID
35926
            return ORDER_ID;
35927
          default:
35928
            return null;
35929
        }
2538 chandransh 35930
      }
35931
 
35932
      /**
35933
       * Find the _Fields constant that matches fieldId, throwing an exception
35934
       * if it is not found.
35935
       */
35936
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35937
        _Fields fields = findByThriftId(fieldId);
35938
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35939
        return fields;
35940
      }
35941
 
35942
      /**
35943
       * Find the _Fields constant that matches name, or null if its not found.
35944
       */
35945
      public static _Fields findByName(String name) {
35946
        return byName.get(name);
35947
      }
35948
 
35949
      private final short _thriftId;
35950
      private final String _fieldName;
35951
 
35952
      _Fields(short thriftId, String fieldName) {
35953
        _thriftId = thriftId;
35954
        _fieldName = fieldName;
35955
      }
35956
 
35957
      public short getThriftFieldId() {
35958
        return _thriftId;
35959
      }
35960
 
35961
      public String getFieldName() {
35962
        return _fieldName;
35963
      }
35964
    }
35965
 
35966
    // isset id assignments
35967
    private static final int __ORDERID_ISSET_ID = 0;
35968
    private BitSet __isset_bit_vector = new BitSet(1);
35969
 
3430 rajveer 35970
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 35971
    static {
3430 rajveer 35972
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35973
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35974
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35975
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35976
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestPickupNumber_args.class, metaDataMap);
2538 chandransh 35977
    }
35978
 
35979
    public requestPickupNumber_args() {
35980
    }
35981
 
35982
    public requestPickupNumber_args(
35983
      long orderId)
35984
    {
35985
      this();
35986
      this.orderId = orderId;
35987
      setOrderIdIsSet(true);
35988
    }
35989
 
35990
    /**
35991
     * Performs a deep copy on <i>other</i>.
35992
     */
35993
    public requestPickupNumber_args(requestPickupNumber_args other) {
35994
      __isset_bit_vector.clear();
35995
      __isset_bit_vector.or(other.__isset_bit_vector);
35996
      this.orderId = other.orderId;
35997
    }
35998
 
35999
    public requestPickupNumber_args deepCopy() {
36000
      return new requestPickupNumber_args(this);
36001
    }
36002
 
3430 rajveer 36003
    @Override
36004
    public void clear() {
36005
      setOrderIdIsSet(false);
36006
      this.orderId = 0;
2538 chandransh 36007
    }
36008
 
36009
    public long getOrderId() {
36010
      return this.orderId;
36011
    }
36012
 
3430 rajveer 36013
    public void setOrderId(long orderId) {
2538 chandransh 36014
      this.orderId = orderId;
36015
      setOrderIdIsSet(true);
36016
    }
36017
 
36018
    public void unsetOrderId() {
36019
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
36020
    }
36021
 
3430 rajveer 36022
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2538 chandransh 36023
    public boolean isSetOrderId() {
36024
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
36025
    }
36026
 
36027
    public void setOrderIdIsSet(boolean value) {
36028
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
36029
    }
36030
 
36031
    public void setFieldValue(_Fields field, Object value) {
36032
      switch (field) {
36033
      case ORDER_ID:
36034
        if (value == null) {
36035
          unsetOrderId();
36036
        } else {
36037
          setOrderId((Long)value);
36038
        }
36039
        break;
36040
 
36041
      }
36042
    }
36043
 
36044
    public Object getFieldValue(_Fields field) {
36045
      switch (field) {
36046
      case ORDER_ID:
3430 rajveer 36047
        return Long.valueOf(getOrderId());
2538 chandransh 36048
 
36049
      }
36050
      throw new IllegalStateException();
36051
    }
36052
 
3430 rajveer 36053
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36054
    public boolean isSet(_Fields field) {
36055
      if (field == null) {
36056
        throw new IllegalArgumentException();
36057
      }
2538 chandransh 36058
 
36059
      switch (field) {
36060
      case ORDER_ID:
36061
        return isSetOrderId();
36062
      }
36063
      throw new IllegalStateException();
36064
    }
36065
 
36066
    @Override
36067
    public boolean equals(Object that) {
36068
      if (that == null)
36069
        return false;
36070
      if (that instanceof requestPickupNumber_args)
36071
        return this.equals((requestPickupNumber_args)that);
36072
      return false;
36073
    }
36074
 
36075
    public boolean equals(requestPickupNumber_args that) {
36076
      if (that == null)
36077
        return false;
36078
 
36079
      boolean this_present_orderId = true;
36080
      boolean that_present_orderId = true;
36081
      if (this_present_orderId || that_present_orderId) {
36082
        if (!(this_present_orderId && that_present_orderId))
36083
          return false;
36084
        if (this.orderId != that.orderId)
36085
          return false;
36086
      }
36087
 
36088
      return true;
36089
    }
36090
 
36091
    @Override
36092
    public int hashCode() {
36093
      return 0;
36094
    }
36095
 
36096
    public int compareTo(requestPickupNumber_args other) {
36097
      if (!getClass().equals(other.getClass())) {
36098
        return getClass().getName().compareTo(other.getClass().getName());
36099
      }
36100
 
36101
      int lastComparison = 0;
36102
      requestPickupNumber_args typedOther = (requestPickupNumber_args)other;
36103
 
3430 rajveer 36104
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2538 chandransh 36105
      if (lastComparison != 0) {
36106
        return lastComparison;
36107
      }
3430 rajveer 36108
      if (isSetOrderId()) {
36109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
36110
        if (lastComparison != 0) {
36111
          return lastComparison;
36112
        }
2538 chandransh 36113
      }
36114
      return 0;
36115
    }
36116
 
3430 rajveer 36117
    public _Fields fieldForId(int fieldId) {
36118
      return _Fields.findByThriftId(fieldId);
36119
    }
36120
 
36121
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36122
      org.apache.thrift.protocol.TField field;
2538 chandransh 36123
      iprot.readStructBegin();
36124
      while (true)
36125
      {
36126
        field = iprot.readFieldBegin();
3430 rajveer 36127
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 36128
          break;
36129
        }
3430 rajveer 36130
        switch (field.id) {
36131
          case 1: // ORDER_ID
36132
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36133
              this.orderId = iprot.readI64();
36134
              setOrderIdIsSet(true);
36135
            } else { 
36136
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36137
            }
36138
            break;
36139
          default:
36140
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 36141
        }
3430 rajveer 36142
        iprot.readFieldEnd();
2538 chandransh 36143
      }
36144
      iprot.readStructEnd();
36145
      validate();
36146
    }
36147
 
3430 rajveer 36148
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 36149
      validate();
36150
 
36151
      oprot.writeStructBegin(STRUCT_DESC);
36152
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
36153
      oprot.writeI64(this.orderId);
36154
      oprot.writeFieldEnd();
36155
      oprot.writeFieldStop();
36156
      oprot.writeStructEnd();
36157
    }
36158
 
36159
    @Override
36160
    public String toString() {
36161
      StringBuilder sb = new StringBuilder("requestPickupNumber_args(");
36162
      boolean first = true;
36163
 
36164
      sb.append("orderId:");
36165
      sb.append(this.orderId);
36166
      first = false;
36167
      sb.append(")");
36168
      return sb.toString();
36169
    }
36170
 
3430 rajveer 36171
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 36172
      // check for required fields
36173
    }
36174
 
3430 rajveer 36175
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36176
      try {
36177
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36178
      } catch (org.apache.thrift.TException te) {
36179
        throw new java.io.IOException(te);
36180
      }
36181
    }
36182
 
36183
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36184
      try {
36185
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36186
      } catch (org.apache.thrift.TException te) {
36187
        throw new java.io.IOException(te);
36188
      }
36189
    }
36190
 
2538 chandransh 36191
  }
36192
 
3430 rajveer 36193
  public static class requestPickupNumber_result implements org.apache.thrift.TBase<requestPickupNumber_result, requestPickupNumber_result._Fields>, java.io.Serializable, Cloneable   {
36194
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestPickupNumber_result");
2538 chandransh 36195
 
3430 rajveer 36196
    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);
36197
    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);
2538 chandransh 36198
 
3430 rajveer 36199
    private boolean success; // required
36200
    private TransactionServiceException ex; // required
2538 chandransh 36201
 
36202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36203
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 36204
      SUCCESS((short)0, "success"),
36205
      EX((short)1, "ex");
36206
 
36207
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36208
 
36209
      static {
36210
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36211
          byName.put(field.getFieldName(), field);
36212
        }
36213
      }
36214
 
36215
      /**
36216
       * Find the _Fields constant that matches fieldId, or null if its not found.
36217
       */
36218
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36219
        switch(fieldId) {
36220
          case 0: // SUCCESS
36221
            return SUCCESS;
36222
          case 1: // EX
36223
            return EX;
36224
          default:
36225
            return null;
36226
        }
2538 chandransh 36227
      }
36228
 
36229
      /**
36230
       * Find the _Fields constant that matches fieldId, throwing an exception
36231
       * if it is not found.
36232
       */
36233
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36234
        _Fields fields = findByThriftId(fieldId);
36235
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36236
        return fields;
36237
      }
36238
 
36239
      /**
36240
       * Find the _Fields constant that matches name, or null if its not found.
36241
       */
36242
      public static _Fields findByName(String name) {
36243
        return byName.get(name);
36244
      }
36245
 
36246
      private final short _thriftId;
36247
      private final String _fieldName;
36248
 
36249
      _Fields(short thriftId, String fieldName) {
36250
        _thriftId = thriftId;
36251
        _fieldName = fieldName;
36252
      }
36253
 
36254
      public short getThriftFieldId() {
36255
        return _thriftId;
36256
      }
36257
 
36258
      public String getFieldName() {
36259
        return _fieldName;
36260
      }
36261
    }
36262
 
36263
    // isset id assignments
36264
    private static final int __SUCCESS_ISSET_ID = 0;
36265
    private BitSet __isset_bit_vector = new BitSet(1);
36266
 
3430 rajveer 36267
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 36268
    static {
3430 rajveer 36269
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36270
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36271
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
36272
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36273
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
36274
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36275
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestPickupNumber_result.class, metaDataMap);
2538 chandransh 36276
    }
36277
 
36278
    public requestPickupNumber_result() {
36279
    }
36280
 
36281
    public requestPickupNumber_result(
36282
      boolean success,
36283
      TransactionServiceException ex)
36284
    {
36285
      this();
36286
      this.success = success;
36287
      setSuccessIsSet(true);
36288
      this.ex = ex;
36289
    }
36290
 
36291
    /**
36292
     * Performs a deep copy on <i>other</i>.
36293
     */
36294
    public requestPickupNumber_result(requestPickupNumber_result other) {
36295
      __isset_bit_vector.clear();
36296
      __isset_bit_vector.or(other.__isset_bit_vector);
36297
      this.success = other.success;
36298
      if (other.isSetEx()) {
36299
        this.ex = new TransactionServiceException(other.ex);
36300
      }
36301
    }
36302
 
36303
    public requestPickupNumber_result deepCopy() {
36304
      return new requestPickupNumber_result(this);
36305
    }
36306
 
3430 rajveer 36307
    @Override
36308
    public void clear() {
36309
      setSuccessIsSet(false);
36310
      this.success = false;
36311
      this.ex = null;
2538 chandransh 36312
    }
36313
 
36314
    public boolean isSuccess() {
36315
      return this.success;
36316
    }
36317
 
3430 rajveer 36318
    public void setSuccess(boolean success) {
2538 chandransh 36319
      this.success = success;
36320
      setSuccessIsSet(true);
36321
    }
36322
 
36323
    public void unsetSuccess() {
36324
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
36325
    }
36326
 
3430 rajveer 36327
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2538 chandransh 36328
    public boolean isSetSuccess() {
36329
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
36330
    }
36331
 
36332
    public void setSuccessIsSet(boolean value) {
36333
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
36334
    }
36335
 
36336
    public TransactionServiceException getEx() {
36337
      return this.ex;
36338
    }
36339
 
3430 rajveer 36340
    public void setEx(TransactionServiceException ex) {
2538 chandransh 36341
      this.ex = ex;
36342
    }
36343
 
36344
    public void unsetEx() {
36345
      this.ex = null;
36346
    }
36347
 
3430 rajveer 36348
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2538 chandransh 36349
    public boolean isSetEx() {
36350
      return this.ex != null;
36351
    }
36352
 
36353
    public void setExIsSet(boolean value) {
36354
      if (!value) {
36355
        this.ex = null;
36356
      }
36357
    }
36358
 
36359
    public void setFieldValue(_Fields field, Object value) {
36360
      switch (field) {
36361
      case SUCCESS:
36362
        if (value == null) {
36363
          unsetSuccess();
36364
        } else {
36365
          setSuccess((Boolean)value);
36366
        }
36367
        break;
36368
 
36369
      case EX:
36370
        if (value == null) {
36371
          unsetEx();
36372
        } else {
36373
          setEx((TransactionServiceException)value);
36374
        }
36375
        break;
36376
 
36377
      }
36378
    }
36379
 
36380
    public Object getFieldValue(_Fields field) {
36381
      switch (field) {
36382
      case SUCCESS:
3430 rajveer 36383
        return Boolean.valueOf(isSuccess());
2538 chandransh 36384
 
36385
      case EX:
36386
        return getEx();
36387
 
36388
      }
36389
      throw new IllegalStateException();
36390
    }
36391
 
3430 rajveer 36392
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36393
    public boolean isSet(_Fields field) {
36394
      if (field == null) {
36395
        throw new IllegalArgumentException();
36396
      }
2538 chandransh 36397
 
36398
      switch (field) {
36399
      case SUCCESS:
36400
        return isSetSuccess();
36401
      case EX:
36402
        return isSetEx();
36403
      }
36404
      throw new IllegalStateException();
36405
    }
36406
 
36407
    @Override
36408
    public boolean equals(Object that) {
36409
      if (that == null)
36410
        return false;
36411
      if (that instanceof requestPickupNumber_result)
36412
        return this.equals((requestPickupNumber_result)that);
36413
      return false;
36414
    }
36415
 
36416
    public boolean equals(requestPickupNumber_result that) {
36417
      if (that == null)
36418
        return false;
36419
 
36420
      boolean this_present_success = true;
36421
      boolean that_present_success = true;
36422
      if (this_present_success || that_present_success) {
36423
        if (!(this_present_success && that_present_success))
36424
          return false;
36425
        if (this.success != that.success)
36426
          return false;
36427
      }
36428
 
36429
      boolean this_present_ex = true && this.isSetEx();
36430
      boolean that_present_ex = true && that.isSetEx();
36431
      if (this_present_ex || that_present_ex) {
36432
        if (!(this_present_ex && that_present_ex))
36433
          return false;
36434
        if (!this.ex.equals(that.ex))
36435
          return false;
36436
      }
36437
 
36438
      return true;
36439
    }
36440
 
36441
    @Override
36442
    public int hashCode() {
36443
      return 0;
36444
    }
36445
 
36446
    public int compareTo(requestPickupNumber_result other) {
36447
      if (!getClass().equals(other.getClass())) {
36448
        return getClass().getName().compareTo(other.getClass().getName());
36449
      }
36450
 
36451
      int lastComparison = 0;
36452
      requestPickupNumber_result typedOther = (requestPickupNumber_result)other;
36453
 
3430 rajveer 36454
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2538 chandransh 36455
      if (lastComparison != 0) {
36456
        return lastComparison;
36457
      }
3430 rajveer 36458
      if (isSetSuccess()) {
36459
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36460
        if (lastComparison != 0) {
36461
          return lastComparison;
36462
        }
2538 chandransh 36463
      }
3430 rajveer 36464
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2538 chandransh 36465
      if (lastComparison != 0) {
36466
        return lastComparison;
36467
      }
3430 rajveer 36468
      if (isSetEx()) {
36469
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
36470
        if (lastComparison != 0) {
36471
          return lastComparison;
36472
        }
2538 chandransh 36473
      }
36474
      return 0;
36475
    }
36476
 
3430 rajveer 36477
    public _Fields fieldForId(int fieldId) {
36478
      return _Fields.findByThriftId(fieldId);
36479
    }
36480
 
36481
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36482
      org.apache.thrift.protocol.TField field;
2538 chandransh 36483
      iprot.readStructBegin();
36484
      while (true)
36485
      {
36486
        field = iprot.readFieldBegin();
3430 rajveer 36487
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 36488
          break;
36489
        }
3430 rajveer 36490
        switch (field.id) {
36491
          case 0: // SUCCESS
36492
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
36493
              this.success = iprot.readBool();
36494
              setSuccessIsSet(true);
36495
            } else { 
36496
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36497
            }
36498
            break;
36499
          case 1: // EX
36500
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
36501
              this.ex = new TransactionServiceException();
36502
              this.ex.read(iprot);
36503
            } else { 
36504
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36505
            }
36506
            break;
36507
          default:
36508
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 36509
        }
3430 rajveer 36510
        iprot.readFieldEnd();
2538 chandransh 36511
      }
36512
      iprot.readStructEnd();
36513
      validate();
36514
    }
36515
 
3430 rajveer 36516
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 36517
      oprot.writeStructBegin(STRUCT_DESC);
36518
 
36519
      if (this.isSetSuccess()) {
36520
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36521
        oprot.writeBool(this.success);
36522
        oprot.writeFieldEnd();
36523
      } else if (this.isSetEx()) {
36524
        oprot.writeFieldBegin(EX_FIELD_DESC);
36525
        this.ex.write(oprot);
36526
        oprot.writeFieldEnd();
36527
      }
36528
      oprot.writeFieldStop();
36529
      oprot.writeStructEnd();
36530
    }
36531
 
36532
    @Override
36533
    public String toString() {
36534
      StringBuilder sb = new StringBuilder("requestPickupNumber_result(");
36535
      boolean first = true;
36536
 
36537
      sb.append("success:");
36538
      sb.append(this.success);
36539
      first = false;
36540
      if (!first) sb.append(", ");
36541
      sb.append("ex:");
36542
      if (this.ex == null) {
36543
        sb.append("null");
36544
      } else {
36545
        sb.append(this.ex);
36546
      }
36547
      first = false;
36548
      sb.append(")");
36549
      return sb.toString();
36550
    }
36551
 
3430 rajveer 36552
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 36553
      // check for required fields
36554
    }
36555
 
3430 rajveer 36556
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36557
      try {
36558
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36559
      } catch (org.apache.thrift.TException te) {
36560
        throw new java.io.IOException(te);
36561
      }
36562
    }
36563
 
36564
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36565
      try {
36566
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36567
      } catch (org.apache.thrift.TException te) {
36568
        throw new java.io.IOException(te);
36569
      }
36570
    }
36571
 
2538 chandransh 36572
  }
36573
 
3430 rajveer 36574
  public static class authorizePickup_args implements org.apache.thrift.TBase<authorizePickup_args, authorizePickup_args._Fields>, java.io.Serializable, Cloneable   {
36575
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authorizePickup_args");
2538 chandransh 36576
 
3430 rajveer 36577
    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);
36578
    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);
2538 chandransh 36579
 
3430 rajveer 36580
    private long orderId; // required
36581
    private String pickupNumber; // required
2538 chandransh 36582
 
36583
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36584
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 36585
      ORDER_ID((short)1, "orderId"),
36586
      PICKUP_NUMBER((short)2, "pickupNumber");
36587
 
36588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36589
 
36590
      static {
36591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36592
          byName.put(field.getFieldName(), field);
36593
        }
36594
      }
36595
 
36596
      /**
36597
       * Find the _Fields constant that matches fieldId, or null if its not found.
36598
       */
36599
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36600
        switch(fieldId) {
36601
          case 1: // ORDER_ID
36602
            return ORDER_ID;
36603
          case 2: // PICKUP_NUMBER
36604
            return PICKUP_NUMBER;
36605
          default:
36606
            return null;
36607
        }
2538 chandransh 36608
      }
36609
 
36610
      /**
36611
       * Find the _Fields constant that matches fieldId, throwing an exception
36612
       * if it is not found.
36613
       */
36614
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36615
        _Fields fields = findByThriftId(fieldId);
36616
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36617
        return fields;
36618
      }
36619
 
36620
      /**
36621
       * Find the _Fields constant that matches name, or null if its not found.
36622
       */
36623
      public static _Fields findByName(String name) {
36624
        return byName.get(name);
36625
      }
36626
 
36627
      private final short _thriftId;
36628
      private final String _fieldName;
36629
 
36630
      _Fields(short thriftId, String fieldName) {
36631
        _thriftId = thriftId;
36632
        _fieldName = fieldName;
36633
      }
36634
 
36635
      public short getThriftFieldId() {
36636
        return _thriftId;
36637
      }
36638
 
36639
      public String getFieldName() {
36640
        return _fieldName;
36641
      }
36642
    }
36643
 
36644
    // isset id assignments
36645
    private static final int __ORDERID_ISSET_ID = 0;
36646
    private BitSet __isset_bit_vector = new BitSet(1);
36647
 
3430 rajveer 36648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 36649
    static {
3430 rajveer 36650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36651
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36652
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36653
      tmpMap.put(_Fields.PICKUP_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("pickupNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36654
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
36655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authorizePickup_args.class, metaDataMap);
2538 chandransh 36657
    }
36658
 
36659
    public authorizePickup_args() {
36660
    }
36661
 
36662
    public authorizePickup_args(
36663
      long orderId,
36664
      String pickupNumber)
36665
    {
36666
      this();
36667
      this.orderId = orderId;
36668
      setOrderIdIsSet(true);
36669
      this.pickupNumber = pickupNumber;
36670
    }
36671
 
36672
    /**
36673
     * Performs a deep copy on <i>other</i>.
36674
     */
36675
    public authorizePickup_args(authorizePickup_args other) {
36676
      __isset_bit_vector.clear();
36677
      __isset_bit_vector.or(other.__isset_bit_vector);
36678
      this.orderId = other.orderId;
36679
      if (other.isSetPickupNumber()) {
36680
        this.pickupNumber = other.pickupNumber;
36681
      }
36682
    }
36683
 
36684
    public authorizePickup_args deepCopy() {
36685
      return new authorizePickup_args(this);
36686
    }
36687
 
3430 rajveer 36688
    @Override
36689
    public void clear() {
36690
      setOrderIdIsSet(false);
36691
      this.orderId = 0;
36692
      this.pickupNumber = null;
2538 chandransh 36693
    }
36694
 
36695
    public long getOrderId() {
36696
      return this.orderId;
36697
    }
36698
 
3430 rajveer 36699
    public void setOrderId(long orderId) {
2538 chandransh 36700
      this.orderId = orderId;
36701
      setOrderIdIsSet(true);
36702
    }
36703
 
36704
    public void unsetOrderId() {
36705
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
36706
    }
36707
 
3430 rajveer 36708
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2538 chandransh 36709
    public boolean isSetOrderId() {
36710
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
36711
    }
36712
 
36713
    public void setOrderIdIsSet(boolean value) {
36714
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
36715
    }
36716
 
36717
    public String getPickupNumber() {
36718
      return this.pickupNumber;
36719
    }
36720
 
3430 rajveer 36721
    public void setPickupNumber(String pickupNumber) {
2538 chandransh 36722
      this.pickupNumber = pickupNumber;
36723
    }
36724
 
36725
    public void unsetPickupNumber() {
36726
      this.pickupNumber = null;
36727
    }
36728
 
3430 rajveer 36729
    /** Returns true if field pickupNumber is set (has been assigned a value) and false otherwise */
2538 chandransh 36730
    public boolean isSetPickupNumber() {
36731
      return this.pickupNumber != null;
36732
    }
36733
 
36734
    public void setPickupNumberIsSet(boolean value) {
36735
      if (!value) {
36736
        this.pickupNumber = null;
36737
      }
36738
    }
36739
 
36740
    public void setFieldValue(_Fields field, Object value) {
36741
      switch (field) {
36742
      case ORDER_ID:
36743
        if (value == null) {
36744
          unsetOrderId();
36745
        } else {
36746
          setOrderId((Long)value);
36747
        }
36748
        break;
36749
 
36750
      case PICKUP_NUMBER:
36751
        if (value == null) {
36752
          unsetPickupNumber();
36753
        } else {
36754
          setPickupNumber((String)value);
36755
        }
36756
        break;
36757
 
36758
      }
36759
    }
36760
 
36761
    public Object getFieldValue(_Fields field) {
36762
      switch (field) {
36763
      case ORDER_ID:
3430 rajveer 36764
        return Long.valueOf(getOrderId());
2538 chandransh 36765
 
36766
      case PICKUP_NUMBER:
36767
        return getPickupNumber();
36768
 
36769
      }
36770
      throw new IllegalStateException();
36771
    }
36772
 
3430 rajveer 36773
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36774
    public boolean isSet(_Fields field) {
36775
      if (field == null) {
36776
        throw new IllegalArgumentException();
36777
      }
2538 chandransh 36778
 
36779
      switch (field) {
36780
      case ORDER_ID:
36781
        return isSetOrderId();
36782
      case PICKUP_NUMBER:
36783
        return isSetPickupNumber();
36784
      }
36785
      throw new IllegalStateException();
36786
    }
36787
 
36788
    @Override
36789
    public boolean equals(Object that) {
36790
      if (that == null)
36791
        return false;
36792
      if (that instanceof authorizePickup_args)
36793
        return this.equals((authorizePickup_args)that);
36794
      return false;
36795
    }
36796
 
36797
    public boolean equals(authorizePickup_args that) {
36798
      if (that == null)
36799
        return false;
36800
 
36801
      boolean this_present_orderId = true;
36802
      boolean that_present_orderId = true;
36803
      if (this_present_orderId || that_present_orderId) {
36804
        if (!(this_present_orderId && that_present_orderId))
36805
          return false;
36806
        if (this.orderId != that.orderId)
36807
          return false;
36808
      }
36809
 
36810
      boolean this_present_pickupNumber = true && this.isSetPickupNumber();
36811
      boolean that_present_pickupNumber = true && that.isSetPickupNumber();
36812
      if (this_present_pickupNumber || that_present_pickupNumber) {
36813
        if (!(this_present_pickupNumber && that_present_pickupNumber))
36814
          return false;
36815
        if (!this.pickupNumber.equals(that.pickupNumber))
36816
          return false;
36817
      }
36818
 
36819
      return true;
36820
    }
36821
 
36822
    @Override
36823
    public int hashCode() {
36824
      return 0;
36825
    }
36826
 
36827
    public int compareTo(authorizePickup_args other) {
36828
      if (!getClass().equals(other.getClass())) {
36829
        return getClass().getName().compareTo(other.getClass().getName());
36830
      }
36831
 
36832
      int lastComparison = 0;
36833
      authorizePickup_args typedOther = (authorizePickup_args)other;
36834
 
3430 rajveer 36835
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2538 chandransh 36836
      if (lastComparison != 0) {
36837
        return lastComparison;
36838
      }
3430 rajveer 36839
      if (isSetOrderId()) {
36840
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
36841
        if (lastComparison != 0) {
36842
          return lastComparison;
36843
        }
2538 chandransh 36844
      }
3430 rajveer 36845
      lastComparison = Boolean.valueOf(isSetPickupNumber()).compareTo(typedOther.isSetPickupNumber());
2538 chandransh 36846
      if (lastComparison != 0) {
36847
        return lastComparison;
36848
      }
3430 rajveer 36849
      if (isSetPickupNumber()) {
36850
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupNumber, typedOther.pickupNumber);
36851
        if (lastComparison != 0) {
36852
          return lastComparison;
36853
        }
2538 chandransh 36854
      }
36855
      return 0;
36856
    }
36857
 
3430 rajveer 36858
    public _Fields fieldForId(int fieldId) {
36859
      return _Fields.findByThriftId(fieldId);
36860
    }
36861
 
36862
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36863
      org.apache.thrift.protocol.TField field;
2538 chandransh 36864
      iprot.readStructBegin();
36865
      while (true)
36866
      {
36867
        field = iprot.readFieldBegin();
3430 rajveer 36868
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 36869
          break;
36870
        }
3430 rajveer 36871
        switch (field.id) {
36872
          case 1: // ORDER_ID
36873
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36874
              this.orderId = iprot.readI64();
36875
              setOrderIdIsSet(true);
36876
            } else { 
36877
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36878
            }
36879
            break;
36880
          case 2: // PICKUP_NUMBER
36881
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
36882
              this.pickupNumber = iprot.readString();
36883
            } else { 
36884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36885
            }
36886
            break;
36887
          default:
36888
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 36889
        }
3430 rajveer 36890
        iprot.readFieldEnd();
2538 chandransh 36891
      }
36892
      iprot.readStructEnd();
36893
      validate();
36894
    }
36895
 
3430 rajveer 36896
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 36897
      validate();
36898
 
36899
      oprot.writeStructBegin(STRUCT_DESC);
36900
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
36901
      oprot.writeI64(this.orderId);
36902
      oprot.writeFieldEnd();
36903
      if (this.pickupNumber != null) {
36904
        oprot.writeFieldBegin(PICKUP_NUMBER_FIELD_DESC);
36905
        oprot.writeString(this.pickupNumber);
36906
        oprot.writeFieldEnd();
36907
      }
36908
      oprot.writeFieldStop();
36909
      oprot.writeStructEnd();
36910
    }
36911
 
36912
    @Override
36913
    public String toString() {
36914
      StringBuilder sb = new StringBuilder("authorizePickup_args(");
36915
      boolean first = true;
36916
 
36917
      sb.append("orderId:");
36918
      sb.append(this.orderId);
36919
      first = false;
36920
      if (!first) sb.append(", ");
36921
      sb.append("pickupNumber:");
36922
      if (this.pickupNumber == null) {
36923
        sb.append("null");
36924
      } else {
36925
        sb.append(this.pickupNumber);
36926
      }
36927
      first = false;
36928
      sb.append(")");
36929
      return sb.toString();
36930
    }
36931
 
3430 rajveer 36932
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 36933
      // check for required fields
36934
    }
36935
 
3430 rajveer 36936
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36937
      try {
36938
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36939
      } catch (org.apache.thrift.TException te) {
36940
        throw new java.io.IOException(te);
36941
      }
36942
    }
36943
 
36944
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36945
      try {
36946
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36947
      } catch (org.apache.thrift.TException te) {
36948
        throw new java.io.IOException(te);
36949
      }
36950
    }
36951
 
2538 chandransh 36952
  }
36953
 
3430 rajveer 36954
  public static class authorizePickup_result implements org.apache.thrift.TBase<authorizePickup_result, authorizePickup_result._Fields>, java.io.Serializable, Cloneable   {
36955
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authorizePickup_result");
2538 chandransh 36956
 
3430 rajveer 36957
    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);
36958
    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);
2538 chandransh 36959
 
3430 rajveer 36960
    private boolean success; // required
36961
    private TransactionServiceException ex; // required
2538 chandransh 36962
 
36963
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36964
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 36965
      SUCCESS((short)0, "success"),
36966
      EX((short)1, "ex");
36967
 
36968
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36969
 
36970
      static {
36971
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36972
          byName.put(field.getFieldName(), field);
36973
        }
36974
      }
36975
 
36976
      /**
36977
       * Find the _Fields constant that matches fieldId, or null if its not found.
36978
       */
36979
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36980
        switch(fieldId) {
36981
          case 0: // SUCCESS
36982
            return SUCCESS;
36983
          case 1: // EX
36984
            return EX;
36985
          default:
36986
            return null;
36987
        }
2538 chandransh 36988
      }
36989
 
36990
      /**
36991
       * Find the _Fields constant that matches fieldId, throwing an exception
36992
       * if it is not found.
36993
       */
36994
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36995
        _Fields fields = findByThriftId(fieldId);
36996
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36997
        return fields;
36998
      }
36999
 
37000
      /**
37001
       * Find the _Fields constant that matches name, or null if its not found.
37002
       */
37003
      public static _Fields findByName(String name) {
37004
        return byName.get(name);
37005
      }
37006
 
37007
      private final short _thriftId;
37008
      private final String _fieldName;
37009
 
37010
      _Fields(short thriftId, String fieldName) {
37011
        _thriftId = thriftId;
37012
        _fieldName = fieldName;
37013
      }
37014
 
37015
      public short getThriftFieldId() {
37016
        return _thriftId;
37017
      }
37018
 
37019
      public String getFieldName() {
37020
        return _fieldName;
37021
      }
37022
    }
37023
 
37024
    // isset id assignments
37025
    private static final int __SUCCESS_ISSET_ID = 0;
37026
    private BitSet __isset_bit_vector = new BitSet(1);
37027
 
3430 rajveer 37028
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 37029
    static {
3430 rajveer 37030
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37031
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37032
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
37033
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37034
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37035
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37036
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authorizePickup_result.class, metaDataMap);
2538 chandransh 37037
    }
37038
 
37039
    public authorizePickup_result() {
37040
    }
37041
 
37042
    public authorizePickup_result(
37043
      boolean success,
37044
      TransactionServiceException ex)
37045
    {
37046
      this();
37047
      this.success = success;
37048
      setSuccessIsSet(true);
37049
      this.ex = ex;
37050
    }
37051
 
37052
    /**
37053
     * Performs a deep copy on <i>other</i>.
37054
     */
37055
    public authorizePickup_result(authorizePickup_result other) {
37056
      __isset_bit_vector.clear();
37057
      __isset_bit_vector.or(other.__isset_bit_vector);
37058
      this.success = other.success;
37059
      if (other.isSetEx()) {
37060
        this.ex = new TransactionServiceException(other.ex);
37061
      }
37062
    }
37063
 
37064
    public authorizePickup_result deepCopy() {
37065
      return new authorizePickup_result(this);
37066
    }
37067
 
3430 rajveer 37068
    @Override
37069
    public void clear() {
37070
      setSuccessIsSet(false);
37071
      this.success = false;
37072
      this.ex = null;
2538 chandransh 37073
    }
37074
 
37075
    public boolean isSuccess() {
37076
      return this.success;
37077
    }
37078
 
3430 rajveer 37079
    public void setSuccess(boolean success) {
2538 chandransh 37080
      this.success = success;
37081
      setSuccessIsSet(true);
37082
    }
37083
 
37084
    public void unsetSuccess() {
37085
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
37086
    }
37087
 
3430 rajveer 37088
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2538 chandransh 37089
    public boolean isSetSuccess() {
37090
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
37091
    }
37092
 
37093
    public void setSuccessIsSet(boolean value) {
37094
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
37095
    }
37096
 
37097
    public TransactionServiceException getEx() {
37098
      return this.ex;
37099
    }
37100
 
3430 rajveer 37101
    public void setEx(TransactionServiceException ex) {
2538 chandransh 37102
      this.ex = ex;
37103
    }
37104
 
37105
    public void unsetEx() {
37106
      this.ex = null;
37107
    }
37108
 
3430 rajveer 37109
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2538 chandransh 37110
    public boolean isSetEx() {
37111
      return this.ex != null;
37112
    }
37113
 
37114
    public void setExIsSet(boolean value) {
37115
      if (!value) {
37116
        this.ex = null;
37117
      }
37118
    }
37119
 
37120
    public void setFieldValue(_Fields field, Object value) {
37121
      switch (field) {
37122
      case SUCCESS:
37123
        if (value == null) {
37124
          unsetSuccess();
37125
        } else {
37126
          setSuccess((Boolean)value);
37127
        }
37128
        break;
37129
 
37130
      case EX:
37131
        if (value == null) {
37132
          unsetEx();
37133
        } else {
37134
          setEx((TransactionServiceException)value);
37135
        }
37136
        break;
37137
 
37138
      }
37139
    }
37140
 
37141
    public Object getFieldValue(_Fields field) {
37142
      switch (field) {
37143
      case SUCCESS:
3430 rajveer 37144
        return Boolean.valueOf(isSuccess());
2538 chandransh 37145
 
37146
      case EX:
37147
        return getEx();
37148
 
37149
      }
37150
      throw new IllegalStateException();
37151
    }
37152
 
3430 rajveer 37153
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37154
    public boolean isSet(_Fields field) {
37155
      if (field == null) {
37156
        throw new IllegalArgumentException();
37157
      }
2538 chandransh 37158
 
37159
      switch (field) {
37160
      case SUCCESS:
37161
        return isSetSuccess();
37162
      case EX:
37163
        return isSetEx();
37164
      }
37165
      throw new IllegalStateException();
37166
    }
37167
 
37168
    @Override
37169
    public boolean equals(Object that) {
37170
      if (that == null)
37171
        return false;
37172
      if (that instanceof authorizePickup_result)
37173
        return this.equals((authorizePickup_result)that);
37174
      return false;
37175
    }
37176
 
37177
    public boolean equals(authorizePickup_result that) {
37178
      if (that == null)
37179
        return false;
37180
 
37181
      boolean this_present_success = true;
37182
      boolean that_present_success = true;
37183
      if (this_present_success || that_present_success) {
37184
        if (!(this_present_success && that_present_success))
37185
          return false;
37186
        if (this.success != that.success)
37187
          return false;
37188
      }
37189
 
37190
      boolean this_present_ex = true && this.isSetEx();
37191
      boolean that_present_ex = true && that.isSetEx();
37192
      if (this_present_ex || that_present_ex) {
37193
        if (!(this_present_ex && that_present_ex))
37194
          return false;
37195
        if (!this.ex.equals(that.ex))
37196
          return false;
37197
      }
37198
 
37199
      return true;
37200
    }
37201
 
37202
    @Override
37203
    public int hashCode() {
37204
      return 0;
37205
    }
37206
 
37207
    public int compareTo(authorizePickup_result other) {
37208
      if (!getClass().equals(other.getClass())) {
37209
        return getClass().getName().compareTo(other.getClass().getName());
37210
      }
37211
 
37212
      int lastComparison = 0;
37213
      authorizePickup_result typedOther = (authorizePickup_result)other;
37214
 
3430 rajveer 37215
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2538 chandransh 37216
      if (lastComparison != 0) {
37217
        return lastComparison;
37218
      }
3430 rajveer 37219
      if (isSetSuccess()) {
37220
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37221
        if (lastComparison != 0) {
37222
          return lastComparison;
37223
        }
2538 chandransh 37224
      }
3430 rajveer 37225
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2538 chandransh 37226
      if (lastComparison != 0) {
37227
        return lastComparison;
37228
      }
3430 rajveer 37229
      if (isSetEx()) {
37230
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
37231
        if (lastComparison != 0) {
37232
          return lastComparison;
37233
        }
2538 chandransh 37234
      }
37235
      return 0;
37236
    }
37237
 
3430 rajveer 37238
    public _Fields fieldForId(int fieldId) {
37239
      return _Fields.findByThriftId(fieldId);
37240
    }
37241
 
37242
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37243
      org.apache.thrift.protocol.TField field;
2538 chandransh 37244
      iprot.readStructBegin();
37245
      while (true)
37246
      {
37247
        field = iprot.readFieldBegin();
3430 rajveer 37248
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 37249
          break;
37250
        }
3430 rajveer 37251
        switch (field.id) {
37252
          case 0: // SUCCESS
37253
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
37254
              this.success = iprot.readBool();
37255
              setSuccessIsSet(true);
37256
            } else { 
37257
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37258
            }
37259
            break;
37260
          case 1: // EX
37261
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
37262
              this.ex = new TransactionServiceException();
37263
              this.ex.read(iprot);
37264
            } else { 
37265
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37266
            }
37267
            break;
37268
          default:
37269
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 37270
        }
3430 rajveer 37271
        iprot.readFieldEnd();
2538 chandransh 37272
      }
37273
      iprot.readStructEnd();
37274
      validate();
37275
    }
37276
 
3430 rajveer 37277
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 37278
      oprot.writeStructBegin(STRUCT_DESC);
37279
 
37280
      if (this.isSetSuccess()) {
37281
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37282
        oprot.writeBool(this.success);
37283
        oprot.writeFieldEnd();
37284
      } else if (this.isSetEx()) {
37285
        oprot.writeFieldBegin(EX_FIELD_DESC);
37286
        this.ex.write(oprot);
37287
        oprot.writeFieldEnd();
37288
      }
37289
      oprot.writeFieldStop();
37290
      oprot.writeStructEnd();
37291
    }
37292
 
37293
    @Override
37294
    public String toString() {
37295
      StringBuilder sb = new StringBuilder("authorizePickup_result(");
37296
      boolean first = true;
37297
 
37298
      sb.append("success:");
37299
      sb.append(this.success);
37300
      first = false;
37301
      if (!first) sb.append(", ");
37302
      sb.append("ex:");
37303
      if (this.ex == null) {
37304
        sb.append("null");
37305
      } else {
37306
        sb.append(this.ex);
37307
      }
37308
      first = false;
37309
      sb.append(")");
37310
      return sb.toString();
37311
    }
37312
 
3430 rajveer 37313
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 37314
      // check for required fields
37315
    }
37316
 
3430 rajveer 37317
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37318
      try {
37319
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37320
      } catch (org.apache.thrift.TException te) {
37321
        throw new java.io.IOException(te);
37322
      }
37323
    }
37324
 
37325
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37326
      try {
37327
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37328
      } catch (org.apache.thrift.TException te) {
37329
        throw new java.io.IOException(te);
37330
      }
37331
    }
37332
 
2538 chandransh 37333
  }
37334
 
3430 rajveer 37335
  public static class markDoasAsPickedUp_args implements org.apache.thrift.TBase<markDoasAsPickedUp_args, markDoasAsPickedUp_args._Fields>, java.io.Serializable, Cloneable   {
37336
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markDoasAsPickedUp_args");
2765 chandransh 37337
 
3430 rajveer 37338
    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);
37339
    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);
2765 chandransh 37340
 
3430 rajveer 37341
    private long providerId; // required
37342
    private Map<String,String> pickupDetails; // required
2765 chandransh 37343
 
37344
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37345
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2765 chandransh 37346
      PROVIDER_ID((short)1, "providerId"),
37347
      PICKUP_DETAILS((short)2, "pickupDetails");
37348
 
37349
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37350
 
37351
      static {
37352
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37353
          byName.put(field.getFieldName(), field);
37354
        }
37355
      }
37356
 
37357
      /**
37358
       * Find the _Fields constant that matches fieldId, or null if its not found.
37359
       */
37360
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37361
        switch(fieldId) {
37362
          case 1: // PROVIDER_ID
37363
            return PROVIDER_ID;
37364
          case 2: // PICKUP_DETAILS
37365
            return PICKUP_DETAILS;
37366
          default:
37367
            return null;
37368
        }
2765 chandransh 37369
      }
37370
 
37371
      /**
37372
       * Find the _Fields constant that matches fieldId, throwing an exception
37373
       * if it is not found.
37374
       */
37375
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37376
        _Fields fields = findByThriftId(fieldId);
37377
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37378
        return fields;
37379
      }
37380
 
37381
      /**
37382
       * Find the _Fields constant that matches name, or null if its not found.
37383
       */
37384
      public static _Fields findByName(String name) {
37385
        return byName.get(name);
37386
      }
37387
 
37388
      private final short _thriftId;
37389
      private final String _fieldName;
37390
 
37391
      _Fields(short thriftId, String fieldName) {
37392
        _thriftId = thriftId;
37393
        _fieldName = fieldName;
37394
      }
37395
 
37396
      public short getThriftFieldId() {
37397
        return _thriftId;
37398
      }
37399
 
37400
      public String getFieldName() {
37401
        return _fieldName;
37402
      }
37403
    }
37404
 
37405
    // isset id assignments
37406
    private static final int __PROVIDERID_ISSET_ID = 0;
37407
    private BitSet __isset_bit_vector = new BitSet(1);
37408
 
3430 rajveer 37409
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2765 chandransh 37410
    static {
3430 rajveer 37411
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37412
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37413
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
37414
      tmpMap.put(_Fields.PICKUP_DETAILS, new org.apache.thrift.meta_data.FieldMetaData("pickupDetails", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37415
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
37416
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
37417
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
37418
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37419
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markDoasAsPickedUp_args.class, metaDataMap);
2765 chandransh 37420
    }
37421
 
37422
    public markDoasAsPickedUp_args() {
37423
    }
37424
 
37425
    public markDoasAsPickedUp_args(
37426
      long providerId,
37427
      Map<String,String> pickupDetails)
37428
    {
37429
      this();
37430
      this.providerId = providerId;
37431
      setProviderIdIsSet(true);
37432
      this.pickupDetails = pickupDetails;
37433
    }
37434
 
37435
    /**
37436
     * Performs a deep copy on <i>other</i>.
37437
     */
37438
    public markDoasAsPickedUp_args(markDoasAsPickedUp_args other) {
37439
      __isset_bit_vector.clear();
37440
      __isset_bit_vector.or(other.__isset_bit_vector);
37441
      this.providerId = other.providerId;
37442
      if (other.isSetPickupDetails()) {
37443
        Map<String,String> __this__pickupDetails = new HashMap<String,String>();
37444
        for (Map.Entry<String, String> other_element : other.pickupDetails.entrySet()) {
37445
 
37446
          String other_element_key = other_element.getKey();
37447
          String other_element_value = other_element.getValue();
37448
 
37449
          String __this__pickupDetails_copy_key = other_element_key;
37450
 
37451
          String __this__pickupDetails_copy_value = other_element_value;
37452
 
37453
          __this__pickupDetails.put(__this__pickupDetails_copy_key, __this__pickupDetails_copy_value);
37454
        }
37455
        this.pickupDetails = __this__pickupDetails;
37456
      }
37457
    }
37458
 
37459
    public markDoasAsPickedUp_args deepCopy() {
37460
      return new markDoasAsPickedUp_args(this);
37461
    }
37462
 
3430 rajveer 37463
    @Override
37464
    public void clear() {
37465
      setProviderIdIsSet(false);
37466
      this.providerId = 0;
37467
      this.pickupDetails = null;
2765 chandransh 37468
    }
37469
 
37470
    public long getProviderId() {
37471
      return this.providerId;
37472
    }
37473
 
3430 rajveer 37474
    public void setProviderId(long providerId) {
2765 chandransh 37475
      this.providerId = providerId;
37476
      setProviderIdIsSet(true);
37477
    }
37478
 
37479
    public void unsetProviderId() {
37480
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
37481
    }
37482
 
3430 rajveer 37483
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
2765 chandransh 37484
    public boolean isSetProviderId() {
37485
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
37486
    }
37487
 
37488
    public void setProviderIdIsSet(boolean value) {
37489
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
37490
    }
37491
 
37492
    public int getPickupDetailsSize() {
37493
      return (this.pickupDetails == null) ? 0 : this.pickupDetails.size();
37494
    }
37495
 
37496
    public void putToPickupDetails(String key, String val) {
37497
      if (this.pickupDetails == null) {
37498
        this.pickupDetails = new HashMap<String,String>();
37499
      }
37500
      this.pickupDetails.put(key, val);
37501
    }
37502
 
37503
    public Map<String,String> getPickupDetails() {
37504
      return this.pickupDetails;
37505
    }
37506
 
3430 rajveer 37507
    public void setPickupDetails(Map<String,String> pickupDetails) {
2765 chandransh 37508
      this.pickupDetails = pickupDetails;
37509
    }
37510
 
37511
    public void unsetPickupDetails() {
37512
      this.pickupDetails = null;
37513
    }
37514
 
3430 rajveer 37515
    /** Returns true if field pickupDetails is set (has been assigned a value) and false otherwise */
2765 chandransh 37516
    public boolean isSetPickupDetails() {
37517
      return this.pickupDetails != null;
37518
    }
37519
 
37520
    public void setPickupDetailsIsSet(boolean value) {
37521
      if (!value) {
37522
        this.pickupDetails = null;
37523
      }
37524
    }
37525
 
37526
    public void setFieldValue(_Fields field, Object value) {
37527
      switch (field) {
37528
      case PROVIDER_ID:
37529
        if (value == null) {
37530
          unsetProviderId();
37531
        } else {
37532
          setProviderId((Long)value);
37533
        }
37534
        break;
37535
 
37536
      case PICKUP_DETAILS:
37537
        if (value == null) {
37538
          unsetPickupDetails();
37539
        } else {
37540
          setPickupDetails((Map<String,String>)value);
37541
        }
37542
        break;
37543
 
37544
      }
37545
    }
37546
 
37547
    public Object getFieldValue(_Fields field) {
37548
      switch (field) {
37549
      case PROVIDER_ID:
3430 rajveer 37550
        return Long.valueOf(getProviderId());
2765 chandransh 37551
 
37552
      case PICKUP_DETAILS:
37553
        return getPickupDetails();
37554
 
37555
      }
37556
      throw new IllegalStateException();
37557
    }
37558
 
3430 rajveer 37559
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37560
    public boolean isSet(_Fields field) {
37561
      if (field == null) {
37562
        throw new IllegalArgumentException();
37563
      }
2765 chandransh 37564
 
37565
      switch (field) {
37566
      case PROVIDER_ID:
37567
        return isSetProviderId();
37568
      case PICKUP_DETAILS:
37569
        return isSetPickupDetails();
37570
      }
37571
      throw new IllegalStateException();
37572
    }
37573
 
37574
    @Override
37575
    public boolean equals(Object that) {
37576
      if (that == null)
37577
        return false;
37578
      if (that instanceof markDoasAsPickedUp_args)
37579
        return this.equals((markDoasAsPickedUp_args)that);
37580
      return false;
37581
    }
37582
 
37583
    public boolean equals(markDoasAsPickedUp_args that) {
37584
      if (that == null)
37585
        return false;
37586
 
37587
      boolean this_present_providerId = true;
37588
      boolean that_present_providerId = true;
37589
      if (this_present_providerId || that_present_providerId) {
37590
        if (!(this_present_providerId && that_present_providerId))
37591
          return false;
37592
        if (this.providerId != that.providerId)
37593
          return false;
37594
      }
37595
 
37596
      boolean this_present_pickupDetails = true && this.isSetPickupDetails();
37597
      boolean that_present_pickupDetails = true && that.isSetPickupDetails();
37598
      if (this_present_pickupDetails || that_present_pickupDetails) {
37599
        if (!(this_present_pickupDetails && that_present_pickupDetails))
37600
          return false;
37601
        if (!this.pickupDetails.equals(that.pickupDetails))
37602
          return false;
37603
      }
37604
 
37605
      return true;
37606
    }
37607
 
37608
    @Override
37609
    public int hashCode() {
37610
      return 0;
37611
    }
37612
 
3430 rajveer 37613
    public int compareTo(markDoasAsPickedUp_args other) {
37614
      if (!getClass().equals(other.getClass())) {
37615
        return getClass().getName().compareTo(other.getClass().getName());
37616
      }
37617
 
37618
      int lastComparison = 0;
37619
      markDoasAsPickedUp_args typedOther = (markDoasAsPickedUp_args)other;
37620
 
37621
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
37622
      if (lastComparison != 0) {
37623
        return lastComparison;
37624
      }
37625
      if (isSetProviderId()) {
37626
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
37627
        if (lastComparison != 0) {
37628
          return lastComparison;
37629
        }
37630
      }
37631
      lastComparison = Boolean.valueOf(isSetPickupDetails()).compareTo(typedOther.isSetPickupDetails());
37632
      if (lastComparison != 0) {
37633
        return lastComparison;
37634
      }
37635
      if (isSetPickupDetails()) {
37636
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupDetails, typedOther.pickupDetails);
37637
        if (lastComparison != 0) {
37638
          return lastComparison;
37639
        }
37640
      }
37641
      return 0;
37642
    }
37643
 
37644
    public _Fields fieldForId(int fieldId) {
37645
      return _Fields.findByThriftId(fieldId);
37646
    }
37647
 
37648
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37649
      org.apache.thrift.protocol.TField field;
2765 chandransh 37650
      iprot.readStructBegin();
37651
      while (true)
37652
      {
37653
        field = iprot.readFieldBegin();
3430 rajveer 37654
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2765 chandransh 37655
          break;
37656
        }
3430 rajveer 37657
        switch (field.id) {
37658
          case 1: // PROVIDER_ID
37659
            if (field.type == org.apache.thrift.protocol.TType.I64) {
37660
              this.providerId = iprot.readI64();
37661
              setProviderIdIsSet(true);
37662
            } else { 
37663
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37664
            }
37665
            break;
37666
          case 2: // PICKUP_DETAILS
37667
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
37668
              {
4133 chandransh 37669
                org.apache.thrift.protocol.TMap _map108 = iprot.readMapBegin();
37670
                this.pickupDetails = new HashMap<String,String>(2*_map108.size);
37671
                for (int _i109 = 0; _i109 < _map108.size; ++_i109)
2765 chandransh 37672
                {
4133 chandransh 37673
                  String _key110; // required
37674
                  String _val111; // required
37675
                  _key110 = iprot.readString();
37676
                  _val111 = iprot.readString();
37677
                  this.pickupDetails.put(_key110, _val111);
2765 chandransh 37678
                }
3430 rajveer 37679
                iprot.readMapEnd();
2765 chandransh 37680
              }
3430 rajveer 37681
            } else { 
37682
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37683
            }
37684
            break;
37685
          default:
37686
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2765 chandransh 37687
        }
3430 rajveer 37688
        iprot.readFieldEnd();
2765 chandransh 37689
      }
37690
      iprot.readStructEnd();
37691
      validate();
37692
    }
37693
 
3430 rajveer 37694
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2765 chandransh 37695
      validate();
37696
 
37697
      oprot.writeStructBegin(STRUCT_DESC);
37698
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
37699
      oprot.writeI64(this.providerId);
37700
      oprot.writeFieldEnd();
37701
      if (this.pickupDetails != null) {
37702
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
37703
        {
3430 rajveer 37704
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.pickupDetails.size()));
4133 chandransh 37705
          for (Map.Entry<String, String> _iter112 : this.pickupDetails.entrySet())
2765 chandransh 37706
          {
4133 chandransh 37707
            oprot.writeString(_iter112.getKey());
37708
            oprot.writeString(_iter112.getValue());
2765 chandransh 37709
          }
37710
          oprot.writeMapEnd();
37711
        }
37712
        oprot.writeFieldEnd();
37713
      }
37714
      oprot.writeFieldStop();
37715
      oprot.writeStructEnd();
37716
    }
37717
 
37718
    @Override
37719
    public String toString() {
37720
      StringBuilder sb = new StringBuilder("markDoasAsPickedUp_args(");
37721
      boolean first = true;
37722
 
37723
      sb.append("providerId:");
37724
      sb.append(this.providerId);
37725
      first = false;
37726
      if (!first) sb.append(", ");
37727
      sb.append("pickupDetails:");
37728
      if (this.pickupDetails == null) {
37729
        sb.append("null");
37730
      } else {
37731
        sb.append(this.pickupDetails);
37732
      }
37733
      first = false;
37734
      sb.append(")");
37735
      return sb.toString();
37736
    }
37737
 
3430 rajveer 37738
    public void validate() throws org.apache.thrift.TException {
2765 chandransh 37739
      // check for required fields
37740
    }
37741
 
3430 rajveer 37742
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37743
      try {
37744
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37745
      } catch (org.apache.thrift.TException te) {
37746
        throw new java.io.IOException(te);
37747
      }
37748
    }
37749
 
37750
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37751
      try {
37752
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37753
      } catch (org.apache.thrift.TException te) {
37754
        throw new java.io.IOException(te);
37755
      }
37756
    }
37757
 
2765 chandransh 37758
  }
37759
 
3430 rajveer 37760
  public static class markDoasAsPickedUp_result implements org.apache.thrift.TBase<markDoasAsPickedUp_result, markDoasAsPickedUp_result._Fields>, java.io.Serializable, Cloneable   {
37761
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markDoasAsPickedUp_result");
2765 chandransh 37762
 
3430 rajveer 37763
    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);
2765 chandransh 37764
 
3430 rajveer 37765
    private List<Order> success; // required
2765 chandransh 37766
 
37767
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37768
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2765 chandransh 37769
      SUCCESS((short)0, "success");
37770
 
37771
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37772
 
37773
      static {
37774
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37775
          byName.put(field.getFieldName(), field);
37776
        }
37777
      }
37778
 
37779
      /**
37780
       * Find the _Fields constant that matches fieldId, or null if its not found.
37781
       */
37782
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37783
        switch(fieldId) {
37784
          case 0: // SUCCESS
37785
            return SUCCESS;
37786
          default:
37787
            return null;
37788
        }
2765 chandransh 37789
      }
37790
 
37791
      /**
37792
       * Find the _Fields constant that matches fieldId, throwing an exception
37793
       * if it is not found.
37794
       */
37795
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37796
        _Fields fields = findByThriftId(fieldId);
37797
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37798
        return fields;
37799
      }
37800
 
37801
      /**
37802
       * Find the _Fields constant that matches name, or null if its not found.
37803
       */
37804
      public static _Fields findByName(String name) {
37805
        return byName.get(name);
37806
      }
37807
 
37808
      private final short _thriftId;
37809
      private final String _fieldName;
37810
 
37811
      _Fields(short thriftId, String fieldName) {
37812
        _thriftId = thriftId;
37813
        _fieldName = fieldName;
37814
      }
37815
 
37816
      public short getThriftFieldId() {
37817
        return _thriftId;
37818
      }
37819
 
37820
      public String getFieldName() {
37821
        return _fieldName;
37822
      }
37823
    }
37824
 
37825
    // isset id assignments
37826
 
3430 rajveer 37827
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2765 chandransh 37828
    static {
3430 rajveer 37829
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37830
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37831
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
37832
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
37833
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37834
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markDoasAsPickedUp_result.class, metaDataMap);
2765 chandransh 37835
    }
37836
 
37837
    public markDoasAsPickedUp_result() {
37838
    }
37839
 
37840
    public markDoasAsPickedUp_result(
37841
      List<Order> success)
37842
    {
37843
      this();
37844
      this.success = success;
37845
    }
37846
 
37847
    /**
37848
     * Performs a deep copy on <i>other</i>.
37849
     */
37850
    public markDoasAsPickedUp_result(markDoasAsPickedUp_result other) {
37851
      if (other.isSetSuccess()) {
37852
        List<Order> __this__success = new ArrayList<Order>();
37853
        for (Order other_element : other.success) {
37854
          __this__success.add(new Order(other_element));
37855
        }
37856
        this.success = __this__success;
37857
      }
37858
    }
37859
 
37860
    public markDoasAsPickedUp_result deepCopy() {
37861
      return new markDoasAsPickedUp_result(this);
37862
    }
37863
 
3430 rajveer 37864
    @Override
37865
    public void clear() {
37866
      this.success = null;
2765 chandransh 37867
    }
37868
 
37869
    public int getSuccessSize() {
37870
      return (this.success == null) ? 0 : this.success.size();
37871
    }
37872
 
37873
    public java.util.Iterator<Order> getSuccessIterator() {
37874
      return (this.success == null) ? null : this.success.iterator();
37875
    }
37876
 
37877
    public void addToSuccess(Order elem) {
37878
      if (this.success == null) {
37879
        this.success = new ArrayList<Order>();
37880
      }
37881
      this.success.add(elem);
37882
    }
37883
 
37884
    public List<Order> getSuccess() {
37885
      return this.success;
37886
    }
37887
 
3430 rajveer 37888
    public void setSuccess(List<Order> success) {
2765 chandransh 37889
      this.success = success;
37890
    }
37891
 
37892
    public void unsetSuccess() {
37893
      this.success = null;
37894
    }
37895
 
3430 rajveer 37896
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2765 chandransh 37897
    public boolean isSetSuccess() {
37898
      return this.success != null;
37899
    }
37900
 
37901
    public void setSuccessIsSet(boolean value) {
37902
      if (!value) {
37903
        this.success = null;
37904
      }
37905
    }
37906
 
37907
    public void setFieldValue(_Fields field, Object value) {
37908
      switch (field) {
37909
      case SUCCESS:
37910
        if (value == null) {
37911
          unsetSuccess();
37912
        } else {
37913
          setSuccess((List<Order>)value);
37914
        }
37915
        break;
37916
 
37917
      }
37918
    }
37919
 
37920
    public Object getFieldValue(_Fields field) {
37921
      switch (field) {
37922
      case SUCCESS:
37923
        return getSuccess();
37924
 
37925
      }
37926
      throw new IllegalStateException();
37927
    }
37928
 
3430 rajveer 37929
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37930
    public boolean isSet(_Fields field) {
37931
      if (field == null) {
37932
        throw new IllegalArgumentException();
37933
      }
2765 chandransh 37934
 
37935
      switch (field) {
37936
      case SUCCESS:
37937
        return isSetSuccess();
37938
      }
37939
      throw new IllegalStateException();
37940
    }
37941
 
37942
    @Override
37943
    public boolean equals(Object that) {
37944
      if (that == null)
37945
        return false;
37946
      if (that instanceof markDoasAsPickedUp_result)
37947
        return this.equals((markDoasAsPickedUp_result)that);
37948
      return false;
37949
    }
37950
 
37951
    public boolean equals(markDoasAsPickedUp_result that) {
37952
      if (that == null)
37953
        return false;
37954
 
37955
      boolean this_present_success = true && this.isSetSuccess();
37956
      boolean that_present_success = true && that.isSetSuccess();
37957
      if (this_present_success || that_present_success) {
37958
        if (!(this_present_success && that_present_success))
37959
          return false;
37960
        if (!this.success.equals(that.success))
37961
          return false;
37962
      }
37963
 
37964
      return true;
37965
    }
37966
 
37967
    @Override
37968
    public int hashCode() {
37969
      return 0;
37970
    }
37971
 
37972
    public int compareTo(markDoasAsPickedUp_result other) {
37973
      if (!getClass().equals(other.getClass())) {
37974
        return getClass().getName().compareTo(other.getClass().getName());
37975
      }
37976
 
37977
      int lastComparison = 0;
37978
      markDoasAsPickedUp_result typedOther = (markDoasAsPickedUp_result)other;
37979
 
3430 rajveer 37980
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2765 chandransh 37981
      if (lastComparison != 0) {
37982
        return lastComparison;
37983
      }
3430 rajveer 37984
      if (isSetSuccess()) {
37985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37986
        if (lastComparison != 0) {
37987
          return lastComparison;
37988
        }
2765 chandransh 37989
      }
37990
      return 0;
37991
    }
37992
 
3430 rajveer 37993
    public _Fields fieldForId(int fieldId) {
37994
      return _Fields.findByThriftId(fieldId);
37995
    }
37996
 
37997
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37998
      org.apache.thrift.protocol.TField field;
2765 chandransh 37999
      iprot.readStructBegin();
38000
      while (true)
38001
      {
38002
        field = iprot.readFieldBegin();
3430 rajveer 38003
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2765 chandransh 38004
          break;
38005
        }
3430 rajveer 38006
        switch (field.id) {
38007
          case 0: // SUCCESS
38008
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38009
              {
4133 chandransh 38010
                org.apache.thrift.protocol.TList _list113 = iprot.readListBegin();
38011
                this.success = new ArrayList<Order>(_list113.size);
38012
                for (int _i114 = 0; _i114 < _list113.size; ++_i114)
2765 chandransh 38013
                {
4133 chandransh 38014
                  Order _elem115; // required
38015
                  _elem115 = new Order();
38016
                  _elem115.read(iprot);
38017
                  this.success.add(_elem115);
2765 chandransh 38018
                }
3430 rajveer 38019
                iprot.readListEnd();
2765 chandransh 38020
              }
3430 rajveer 38021
            } else { 
38022
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38023
            }
38024
            break;
38025
          default:
38026
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2765 chandransh 38027
        }
3430 rajveer 38028
        iprot.readFieldEnd();
2765 chandransh 38029
      }
38030
      iprot.readStructEnd();
38031
      validate();
38032
    }
38033
 
3430 rajveer 38034
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2765 chandransh 38035
      oprot.writeStructBegin(STRUCT_DESC);
38036
 
38037
      if (this.isSetSuccess()) {
38038
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38039
        {
3430 rajveer 38040
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 38041
          for (Order _iter116 : this.success)
2765 chandransh 38042
          {
4133 chandransh 38043
            _iter116.write(oprot);
2765 chandransh 38044
          }
38045
          oprot.writeListEnd();
38046
        }
38047
        oprot.writeFieldEnd();
38048
      }
38049
      oprot.writeFieldStop();
38050
      oprot.writeStructEnd();
38051
    }
38052
 
38053
    @Override
38054
    public String toString() {
38055
      StringBuilder sb = new StringBuilder("markDoasAsPickedUp_result(");
38056
      boolean first = true;
38057
 
38058
      sb.append("success:");
38059
      if (this.success == null) {
38060
        sb.append("null");
38061
      } else {
38062
        sb.append(this.success);
38063
      }
38064
      first = false;
38065
      sb.append(")");
38066
      return sb.toString();
38067
    }
38068
 
3430 rajveer 38069
    public void validate() throws org.apache.thrift.TException {
2765 chandransh 38070
      // check for required fields
38071
    }
38072
 
3430 rajveer 38073
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38074
      try {
38075
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38076
      } catch (org.apache.thrift.TException te) {
38077
        throw new java.io.IOException(te);
38078
      }
38079
    }
38080
 
38081
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38082
      try {
38083
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38084
      } catch (org.apache.thrift.TException te) {
38085
        throw new java.io.IOException(te);
38086
      }
38087
    }
38088
 
2765 chandransh 38089
  }
38090
 
3430 rajveer 38091
  public static class receiveReturn_args implements org.apache.thrift.TBase<receiveReturn_args, receiveReturn_args._Fields>, java.io.Serializable, Cloneable   {
38092
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("receiveReturn_args");
2590 chandransh 38093
 
3430 rajveer 38094
    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);
2590 chandransh 38095
 
3430 rajveer 38096
    private long orderId; // required
2590 chandransh 38097
 
38098
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38099
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2590 chandransh 38100
      ORDER_ID((short)1, "orderId");
38101
 
38102
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38103
 
38104
      static {
38105
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38106
          byName.put(field.getFieldName(), field);
38107
        }
38108
      }
38109
 
38110
      /**
38111
       * Find the _Fields constant that matches fieldId, or null if its not found.
38112
       */
38113
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38114
        switch(fieldId) {
38115
          case 1: // ORDER_ID
38116
            return ORDER_ID;
38117
          default:
38118
            return null;
38119
        }
2590 chandransh 38120
      }
38121
 
38122
      /**
38123
       * Find the _Fields constant that matches fieldId, throwing an exception
38124
       * if it is not found.
38125
       */
38126
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38127
        _Fields fields = findByThriftId(fieldId);
38128
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38129
        return fields;
38130
      }
38131
 
38132
      /**
38133
       * Find the _Fields constant that matches name, or null if its not found.
38134
       */
38135
      public static _Fields findByName(String name) {
38136
        return byName.get(name);
38137
      }
38138
 
38139
      private final short _thriftId;
38140
      private final String _fieldName;
38141
 
38142
      _Fields(short thriftId, String fieldName) {
38143
        _thriftId = thriftId;
38144
        _fieldName = fieldName;
38145
      }
38146
 
38147
      public short getThriftFieldId() {
38148
        return _thriftId;
38149
      }
38150
 
38151
      public String getFieldName() {
38152
        return _fieldName;
38153
      }
38154
    }
38155
 
38156
    // isset id assignments
38157
    private static final int __ORDERID_ISSET_ID = 0;
38158
    private BitSet __isset_bit_vector = new BitSet(1);
38159
 
3430 rajveer 38160
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2590 chandransh 38161
    static {
3430 rajveer 38162
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38163
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38164
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38165
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38166
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(receiveReturn_args.class, metaDataMap);
2590 chandransh 38167
    }
38168
 
2615 chandransh 38169
    public receiveReturn_args() {
2590 chandransh 38170
    }
38171
 
2615 chandransh 38172
    public receiveReturn_args(
2590 chandransh 38173
      long orderId)
38174
    {
38175
      this();
38176
      this.orderId = orderId;
38177
      setOrderIdIsSet(true);
38178
    }
38179
 
38180
    /**
38181
     * Performs a deep copy on <i>other</i>.
38182
     */
2615 chandransh 38183
    public receiveReturn_args(receiveReturn_args other) {
2590 chandransh 38184
      __isset_bit_vector.clear();
38185
      __isset_bit_vector.or(other.__isset_bit_vector);
38186
      this.orderId = other.orderId;
38187
    }
38188
 
2615 chandransh 38189
    public receiveReturn_args deepCopy() {
38190
      return new receiveReturn_args(this);
2590 chandransh 38191
    }
38192
 
3430 rajveer 38193
    @Override
38194
    public void clear() {
38195
      setOrderIdIsSet(false);
38196
      this.orderId = 0;
2590 chandransh 38197
    }
38198
 
38199
    public long getOrderId() {
38200
      return this.orderId;
38201
    }
38202
 
3430 rajveer 38203
    public void setOrderId(long orderId) {
2590 chandransh 38204
      this.orderId = orderId;
38205
      setOrderIdIsSet(true);
38206
    }
38207
 
38208
    public void unsetOrderId() {
38209
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
38210
    }
38211
 
3430 rajveer 38212
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2590 chandransh 38213
    public boolean isSetOrderId() {
38214
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
38215
    }
38216
 
38217
    public void setOrderIdIsSet(boolean value) {
38218
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
38219
    }
38220
 
38221
    public void setFieldValue(_Fields field, Object value) {
38222
      switch (field) {
38223
      case ORDER_ID:
38224
        if (value == null) {
38225
          unsetOrderId();
38226
        } else {
38227
          setOrderId((Long)value);
38228
        }
38229
        break;
38230
 
38231
      }
38232
    }
38233
 
38234
    public Object getFieldValue(_Fields field) {
38235
      switch (field) {
38236
      case ORDER_ID:
3430 rajveer 38237
        return Long.valueOf(getOrderId());
2590 chandransh 38238
 
38239
      }
38240
      throw new IllegalStateException();
38241
    }
38242
 
3430 rajveer 38243
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38244
    public boolean isSet(_Fields field) {
38245
      if (field == null) {
38246
        throw new IllegalArgumentException();
38247
      }
2590 chandransh 38248
 
38249
      switch (field) {
38250
      case ORDER_ID:
38251
        return isSetOrderId();
38252
      }
38253
      throw new IllegalStateException();
38254
    }
38255
 
38256
    @Override
38257
    public boolean equals(Object that) {
38258
      if (that == null)
38259
        return false;
2615 chandransh 38260
      if (that instanceof receiveReturn_args)
38261
        return this.equals((receiveReturn_args)that);
2590 chandransh 38262
      return false;
38263
    }
38264
 
2615 chandransh 38265
    public boolean equals(receiveReturn_args that) {
2590 chandransh 38266
      if (that == null)
38267
        return false;
38268
 
38269
      boolean this_present_orderId = true;
38270
      boolean that_present_orderId = true;
38271
      if (this_present_orderId || that_present_orderId) {
38272
        if (!(this_present_orderId && that_present_orderId))
38273
          return false;
38274
        if (this.orderId != that.orderId)
38275
          return false;
38276
      }
38277
 
38278
      return true;
38279
    }
38280
 
38281
    @Override
38282
    public int hashCode() {
38283
      return 0;
38284
    }
38285
 
2615 chandransh 38286
    public int compareTo(receiveReturn_args other) {
2590 chandransh 38287
      if (!getClass().equals(other.getClass())) {
38288
        return getClass().getName().compareTo(other.getClass().getName());
38289
      }
38290
 
38291
      int lastComparison = 0;
2615 chandransh 38292
      receiveReturn_args typedOther = (receiveReturn_args)other;
2590 chandransh 38293
 
3430 rajveer 38294
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2590 chandransh 38295
      if (lastComparison != 0) {
38296
        return lastComparison;
38297
      }
3430 rajveer 38298
      if (isSetOrderId()) {
38299
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
38300
        if (lastComparison != 0) {
38301
          return lastComparison;
38302
        }
2590 chandransh 38303
      }
38304
      return 0;
38305
    }
38306
 
3430 rajveer 38307
    public _Fields fieldForId(int fieldId) {
38308
      return _Fields.findByThriftId(fieldId);
38309
    }
38310
 
38311
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38312
      org.apache.thrift.protocol.TField field;
2590 chandransh 38313
      iprot.readStructBegin();
38314
      while (true)
38315
      {
38316
        field = iprot.readFieldBegin();
3430 rajveer 38317
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2590 chandransh 38318
          break;
38319
        }
3430 rajveer 38320
        switch (field.id) {
38321
          case 1: // ORDER_ID
38322
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38323
              this.orderId = iprot.readI64();
38324
              setOrderIdIsSet(true);
38325
            } else { 
38326
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38327
            }
38328
            break;
38329
          default:
38330
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2590 chandransh 38331
        }
3430 rajveer 38332
        iprot.readFieldEnd();
2590 chandransh 38333
      }
38334
      iprot.readStructEnd();
38335
      validate();
38336
    }
38337
 
3430 rajveer 38338
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2590 chandransh 38339
      validate();
38340
 
38341
      oprot.writeStructBegin(STRUCT_DESC);
38342
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
38343
      oprot.writeI64(this.orderId);
38344
      oprot.writeFieldEnd();
38345
      oprot.writeFieldStop();
38346
      oprot.writeStructEnd();
38347
    }
38348
 
38349
    @Override
38350
    public String toString() {
2615 chandransh 38351
      StringBuilder sb = new StringBuilder("receiveReturn_args(");
2590 chandransh 38352
      boolean first = true;
38353
 
38354
      sb.append("orderId:");
38355
      sb.append(this.orderId);
38356
      first = false;
38357
      sb.append(")");
38358
      return sb.toString();
38359
    }
38360
 
3430 rajveer 38361
    public void validate() throws org.apache.thrift.TException {
2590 chandransh 38362
      // check for required fields
38363
    }
38364
 
3430 rajveer 38365
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38366
      try {
38367
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38368
      } catch (org.apache.thrift.TException te) {
38369
        throw new java.io.IOException(te);
38370
      }
38371
    }
38372
 
38373
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38374
      try {
38375
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38376
      } catch (org.apache.thrift.TException te) {
38377
        throw new java.io.IOException(te);
38378
      }
38379
    }
38380
 
2590 chandransh 38381
  }
38382
 
3430 rajveer 38383
  public static class receiveReturn_result implements org.apache.thrift.TBase<receiveReturn_result, receiveReturn_result._Fields>, java.io.Serializable, Cloneable   {
38384
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("receiveReturn_result");
2590 chandransh 38385
 
3430 rajveer 38386
    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);
38387
    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);
2590 chandransh 38388
 
3430 rajveer 38389
    private boolean success; // required
38390
    private TransactionServiceException ex; // required
2590 chandransh 38391
 
38392
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38393
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2590 chandransh 38394
      SUCCESS((short)0, "success"),
38395
      EX((short)1, "ex");
38396
 
38397
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38398
 
38399
      static {
38400
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38401
          byName.put(field.getFieldName(), field);
38402
        }
38403
      }
38404
 
38405
      /**
38406
       * Find the _Fields constant that matches fieldId, or null if its not found.
38407
       */
38408
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38409
        switch(fieldId) {
38410
          case 0: // SUCCESS
38411
            return SUCCESS;
38412
          case 1: // EX
38413
            return EX;
38414
          default:
38415
            return null;
38416
        }
2590 chandransh 38417
      }
38418
 
38419
      /**
38420
       * Find the _Fields constant that matches fieldId, throwing an exception
38421
       * if it is not found.
38422
       */
38423
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38424
        _Fields fields = findByThriftId(fieldId);
38425
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38426
        return fields;
38427
      }
38428
 
38429
      /**
38430
       * Find the _Fields constant that matches name, or null if its not found.
38431
       */
38432
      public static _Fields findByName(String name) {
38433
        return byName.get(name);
38434
      }
38435
 
38436
      private final short _thriftId;
38437
      private final String _fieldName;
38438
 
38439
      _Fields(short thriftId, String fieldName) {
38440
        _thriftId = thriftId;
38441
        _fieldName = fieldName;
38442
      }
38443
 
38444
      public short getThriftFieldId() {
38445
        return _thriftId;
38446
      }
38447
 
38448
      public String getFieldName() {
38449
        return _fieldName;
38450
      }
38451
    }
38452
 
38453
    // isset id assignments
38454
    private static final int __SUCCESS_ISSET_ID = 0;
38455
    private BitSet __isset_bit_vector = new BitSet(1);
38456
 
3430 rajveer 38457
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2590 chandransh 38458
    static {
3430 rajveer 38459
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38460
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38461
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
38462
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38463
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
38464
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38465
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(receiveReturn_result.class, metaDataMap);
2590 chandransh 38466
    }
38467
 
2615 chandransh 38468
    public receiveReturn_result() {
2590 chandransh 38469
    }
38470
 
2615 chandransh 38471
    public receiveReturn_result(
2590 chandransh 38472
      boolean success,
38473
      TransactionServiceException ex)
38474
    {
38475
      this();
38476
      this.success = success;
38477
      setSuccessIsSet(true);
38478
      this.ex = ex;
38479
    }
38480
 
38481
    /**
38482
     * Performs a deep copy on <i>other</i>.
38483
     */
2615 chandransh 38484
    public receiveReturn_result(receiveReturn_result other) {
2590 chandransh 38485
      __isset_bit_vector.clear();
38486
      __isset_bit_vector.or(other.__isset_bit_vector);
38487
      this.success = other.success;
38488
      if (other.isSetEx()) {
38489
        this.ex = new TransactionServiceException(other.ex);
38490
      }
38491
    }
38492
 
2615 chandransh 38493
    public receiveReturn_result deepCopy() {
38494
      return new receiveReturn_result(this);
2590 chandransh 38495
    }
38496
 
3430 rajveer 38497
    @Override
38498
    public void clear() {
38499
      setSuccessIsSet(false);
38500
      this.success = false;
38501
      this.ex = null;
2590 chandransh 38502
    }
38503
 
38504
    public boolean isSuccess() {
38505
      return this.success;
38506
    }
38507
 
3430 rajveer 38508
    public void setSuccess(boolean success) {
2590 chandransh 38509
      this.success = success;
38510
      setSuccessIsSet(true);
38511
    }
38512
 
38513
    public void unsetSuccess() {
38514
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
38515
    }
38516
 
3430 rajveer 38517
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2590 chandransh 38518
    public boolean isSetSuccess() {
38519
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
38520
    }
38521
 
38522
    public void setSuccessIsSet(boolean value) {
38523
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
38524
    }
38525
 
38526
    public TransactionServiceException getEx() {
38527
      return this.ex;
38528
    }
38529
 
3430 rajveer 38530
    public void setEx(TransactionServiceException ex) {
2590 chandransh 38531
      this.ex = ex;
38532
    }
38533
 
38534
    public void unsetEx() {
38535
      this.ex = null;
38536
    }
38537
 
3430 rajveer 38538
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2590 chandransh 38539
    public boolean isSetEx() {
38540
      return this.ex != null;
38541
    }
38542
 
38543
    public void setExIsSet(boolean value) {
38544
      if (!value) {
38545
        this.ex = null;
38546
      }
38547
    }
38548
 
38549
    public void setFieldValue(_Fields field, Object value) {
38550
      switch (field) {
38551
      case SUCCESS:
38552
        if (value == null) {
38553
          unsetSuccess();
38554
        } else {
38555
          setSuccess((Boolean)value);
38556
        }
38557
        break;
38558
 
38559
      case EX:
38560
        if (value == null) {
38561
          unsetEx();
38562
        } else {
38563
          setEx((TransactionServiceException)value);
38564
        }
38565
        break;
38566
 
38567
      }
38568
    }
38569
 
38570
    public Object getFieldValue(_Fields field) {
38571
      switch (field) {
38572
      case SUCCESS:
3430 rajveer 38573
        return Boolean.valueOf(isSuccess());
2590 chandransh 38574
 
38575
      case EX:
38576
        return getEx();
38577
 
38578
      }
38579
      throw new IllegalStateException();
38580
    }
38581
 
3430 rajveer 38582
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38583
    public boolean isSet(_Fields field) {
38584
      if (field == null) {
38585
        throw new IllegalArgumentException();
38586
      }
2590 chandransh 38587
 
38588
      switch (field) {
38589
      case SUCCESS:
38590
        return isSetSuccess();
38591
      case EX:
38592
        return isSetEx();
38593
      }
38594
      throw new IllegalStateException();
38595
    }
38596
 
38597
    @Override
38598
    public boolean equals(Object that) {
38599
      if (that == null)
38600
        return false;
2615 chandransh 38601
      if (that instanceof receiveReturn_result)
38602
        return this.equals((receiveReturn_result)that);
2590 chandransh 38603
      return false;
38604
    }
38605
 
2615 chandransh 38606
    public boolean equals(receiveReturn_result that) {
2590 chandransh 38607
      if (that == null)
38608
        return false;
38609
 
38610
      boolean this_present_success = true;
38611
      boolean that_present_success = true;
38612
      if (this_present_success || that_present_success) {
38613
        if (!(this_present_success && that_present_success))
38614
          return false;
38615
        if (this.success != that.success)
38616
          return false;
38617
      }
38618
 
38619
      boolean this_present_ex = true && this.isSetEx();
38620
      boolean that_present_ex = true && that.isSetEx();
38621
      if (this_present_ex || that_present_ex) {
38622
        if (!(this_present_ex && that_present_ex))
38623
          return false;
38624
        if (!this.ex.equals(that.ex))
38625
          return false;
38626
      }
38627
 
38628
      return true;
38629
    }
38630
 
38631
    @Override
38632
    public int hashCode() {
38633
      return 0;
38634
    }
38635
 
2615 chandransh 38636
    public int compareTo(receiveReturn_result other) {
2590 chandransh 38637
      if (!getClass().equals(other.getClass())) {
38638
        return getClass().getName().compareTo(other.getClass().getName());
38639
      }
38640
 
38641
      int lastComparison = 0;
2615 chandransh 38642
      receiveReturn_result typedOther = (receiveReturn_result)other;
2590 chandransh 38643
 
3430 rajveer 38644
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2590 chandransh 38645
      if (lastComparison != 0) {
38646
        return lastComparison;
38647
      }
3430 rajveer 38648
      if (isSetSuccess()) {
38649
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
38650
        if (lastComparison != 0) {
38651
          return lastComparison;
38652
        }
2590 chandransh 38653
      }
3430 rajveer 38654
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2590 chandransh 38655
      if (lastComparison != 0) {
38656
        return lastComparison;
38657
      }
3430 rajveer 38658
      if (isSetEx()) {
38659
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
38660
        if (lastComparison != 0) {
38661
          return lastComparison;
38662
        }
2590 chandransh 38663
      }
38664
      return 0;
38665
    }
38666
 
3430 rajveer 38667
    public _Fields fieldForId(int fieldId) {
38668
      return _Fields.findByThriftId(fieldId);
38669
    }
38670
 
38671
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38672
      org.apache.thrift.protocol.TField field;
2590 chandransh 38673
      iprot.readStructBegin();
38674
      while (true)
38675
      {
38676
        field = iprot.readFieldBegin();
3430 rajveer 38677
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2590 chandransh 38678
          break;
38679
        }
3430 rajveer 38680
        switch (field.id) {
38681
          case 0: // SUCCESS
38682
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
38683
              this.success = iprot.readBool();
38684
              setSuccessIsSet(true);
38685
            } else { 
38686
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38687
            }
38688
            break;
38689
          case 1: // EX
38690
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
38691
              this.ex = new TransactionServiceException();
38692
              this.ex.read(iprot);
38693
            } else { 
38694
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38695
            }
38696
            break;
38697
          default:
38698
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2590 chandransh 38699
        }
3430 rajveer 38700
        iprot.readFieldEnd();
2590 chandransh 38701
      }
38702
      iprot.readStructEnd();
38703
      validate();
38704
    }
38705
 
3430 rajveer 38706
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2590 chandransh 38707
      oprot.writeStructBegin(STRUCT_DESC);
38708
 
38709
      if (this.isSetSuccess()) {
38710
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38711
        oprot.writeBool(this.success);
38712
        oprot.writeFieldEnd();
38713
      } else if (this.isSetEx()) {
38714
        oprot.writeFieldBegin(EX_FIELD_DESC);
38715
        this.ex.write(oprot);
38716
        oprot.writeFieldEnd();
38717
      }
38718
      oprot.writeFieldStop();
38719
      oprot.writeStructEnd();
38720
    }
38721
 
38722
    @Override
38723
    public String toString() {
2615 chandransh 38724
      StringBuilder sb = new StringBuilder("receiveReturn_result(");
2590 chandransh 38725
      boolean first = true;
38726
 
38727
      sb.append("success:");
38728
      sb.append(this.success);
38729
      first = false;
38730
      if (!first) sb.append(", ");
38731
      sb.append("ex:");
38732
      if (this.ex == null) {
38733
        sb.append("null");
38734
      } else {
38735
        sb.append(this.ex);
38736
      }
38737
      first = false;
38738
      sb.append(")");
38739
      return sb.toString();
38740
    }
38741
 
3430 rajveer 38742
    public void validate() throws org.apache.thrift.TException {
2590 chandransh 38743
      // check for required fields
38744
    }
38745
 
3430 rajveer 38746
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38747
      try {
38748
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38749
      } catch (org.apache.thrift.TException te) {
38750
        throw new java.io.IOException(te);
38751
      }
38752
    }
38753
 
38754
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38755
      try {
38756
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38757
      } catch (org.apache.thrift.TException te) {
38758
        throw new java.io.IOException(te);
38759
      }
38760
    }
38761
 
2590 chandransh 38762
  }
38763
 
3430 rajveer 38764
  public static class validateDoa_args implements org.apache.thrift.TBase<validateDoa_args, validateDoa_args._Fields>, java.io.Serializable, Cloneable   {
38765
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateDoa_args");
2590 chandransh 38766
 
3430 rajveer 38767
    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);
38768
    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);
2590 chandransh 38769
 
3430 rajveer 38770
    private long orderId; // required
38771
    private boolean isValid; // required
2590 chandransh 38772
 
38773
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38774
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2590 chandransh 38775
      ORDER_ID((short)1, "orderId"),
38776
      IS_VALID((short)2, "isValid");
38777
 
38778
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38779
 
38780
      static {
38781
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38782
          byName.put(field.getFieldName(), field);
38783
        }
38784
      }
38785
 
38786
      /**
38787
       * Find the _Fields constant that matches fieldId, or null if its not found.
38788
       */
38789
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38790
        switch(fieldId) {
38791
          case 1: // ORDER_ID
38792
            return ORDER_ID;
38793
          case 2: // IS_VALID
38794
            return IS_VALID;
38795
          default:
38796
            return null;
38797
        }
2590 chandransh 38798
      }
38799
 
38800
      /**
38801
       * Find the _Fields constant that matches fieldId, throwing an exception
38802
       * if it is not found.
38803
       */
38804
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38805
        _Fields fields = findByThriftId(fieldId);
38806
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38807
        return fields;
38808
      }
38809
 
38810
      /**
38811
       * Find the _Fields constant that matches name, or null if its not found.
38812
       */
38813
      public static _Fields findByName(String name) {
38814
        return byName.get(name);
38815
      }
38816
 
38817
      private final short _thriftId;
38818
      private final String _fieldName;
38819
 
38820
      _Fields(short thriftId, String fieldName) {
38821
        _thriftId = thriftId;
38822
        _fieldName = fieldName;
38823
      }
38824
 
38825
      public short getThriftFieldId() {
38826
        return _thriftId;
38827
      }
38828
 
38829
      public String getFieldName() {
38830
        return _fieldName;
38831
      }
38832
    }
38833
 
38834
    // isset id assignments
38835
    private static final int __ORDERID_ISSET_ID = 0;
38836
    private static final int __ISVALID_ISSET_ID = 1;
38837
    private BitSet __isset_bit_vector = new BitSet(2);
38838
 
3430 rajveer 38839
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2590 chandransh 38840
    static {
3430 rajveer 38841
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38842
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38843
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38844
      tmpMap.put(_Fields.IS_VALID, new org.apache.thrift.meta_data.FieldMetaData("isValid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38845
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
38846
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38847
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateDoa_args.class, metaDataMap);
2590 chandransh 38848
    }
38849
 
38850
    public validateDoa_args() {
38851
    }
38852
 
38853
    public validateDoa_args(
38854
      long orderId,
38855
      boolean isValid)
38856
    {
38857
      this();
38858
      this.orderId = orderId;
38859
      setOrderIdIsSet(true);
38860
      this.isValid = isValid;
38861
      setIsValidIsSet(true);
38862
    }
38863
 
38864
    /**
38865
     * Performs a deep copy on <i>other</i>.
38866
     */
38867
    public validateDoa_args(validateDoa_args other) {
38868
      __isset_bit_vector.clear();
38869
      __isset_bit_vector.or(other.__isset_bit_vector);
38870
      this.orderId = other.orderId;
38871
      this.isValid = other.isValid;
38872
    }
38873
 
38874
    public validateDoa_args deepCopy() {
38875
      return new validateDoa_args(this);
38876
    }
38877
 
3430 rajveer 38878
    @Override
38879
    public void clear() {
38880
      setOrderIdIsSet(false);
38881
      this.orderId = 0;
38882
      setIsValidIsSet(false);
38883
      this.isValid = false;
2590 chandransh 38884
    }
38885
 
38886
    public long getOrderId() {
38887
      return this.orderId;
38888
    }
38889
 
3430 rajveer 38890
    public void setOrderId(long orderId) {
2590 chandransh 38891
      this.orderId = orderId;
38892
      setOrderIdIsSet(true);
38893
    }
38894
 
38895
    public void unsetOrderId() {
38896
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
38897
    }
38898
 
3430 rajveer 38899
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2590 chandransh 38900
    public boolean isSetOrderId() {
38901
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
38902
    }
38903
 
38904
    public void setOrderIdIsSet(boolean value) {
38905
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
38906
    }
38907
 
38908
    public boolean isIsValid() {
38909
      return this.isValid;
38910
    }
38911
 
3430 rajveer 38912
    public void setIsValid(boolean isValid) {
2590 chandransh 38913
      this.isValid = isValid;
38914
      setIsValidIsSet(true);
38915
    }
38916
 
38917
    public void unsetIsValid() {
38918
      __isset_bit_vector.clear(__ISVALID_ISSET_ID);
38919
    }
38920
 
3430 rajveer 38921
    /** Returns true if field isValid is set (has been assigned a value) and false otherwise */
2590 chandransh 38922
    public boolean isSetIsValid() {
38923
      return __isset_bit_vector.get(__ISVALID_ISSET_ID);
38924
    }
38925
 
38926
    public void setIsValidIsSet(boolean value) {
38927
      __isset_bit_vector.set(__ISVALID_ISSET_ID, value);
38928
    }
38929
 
38930
    public void setFieldValue(_Fields field, Object value) {
38931
      switch (field) {
38932
      case ORDER_ID:
38933
        if (value == null) {
38934
          unsetOrderId();
38935
        } else {
38936
          setOrderId((Long)value);
38937
        }
38938
        break;
38939
 
38940
      case IS_VALID:
38941
        if (value == null) {
38942
          unsetIsValid();
38943
        } else {
38944
          setIsValid((Boolean)value);
38945
        }
38946
        break;
38947
 
38948
      }
38949
    }
38950
 
38951
    public Object getFieldValue(_Fields field) {
38952
      switch (field) {
38953
      case ORDER_ID:
3430 rajveer 38954
        return Long.valueOf(getOrderId());
2590 chandransh 38955
 
38956
      case IS_VALID:
3430 rajveer 38957
        return Boolean.valueOf(isIsValid());
2590 chandransh 38958
 
38959
      }
38960
      throw new IllegalStateException();
38961
    }
38962
 
3430 rajveer 38963
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38964
    public boolean isSet(_Fields field) {
38965
      if (field == null) {
38966
        throw new IllegalArgumentException();
38967
      }
2590 chandransh 38968
 
38969
      switch (field) {
38970
      case ORDER_ID:
38971
        return isSetOrderId();
38972
      case IS_VALID:
38973
        return isSetIsValid();
38974
      }
38975
      throw new IllegalStateException();
38976
    }
38977
 
38978
    @Override
38979
    public boolean equals(Object that) {
38980
      if (that == null)
38981
        return false;
38982
      if (that instanceof validateDoa_args)
38983
        return this.equals((validateDoa_args)that);
38984
      return false;
38985
    }
38986
 
38987
    public boolean equals(validateDoa_args that) {
38988
      if (that == null)
38989
        return false;
38990
 
38991
      boolean this_present_orderId = true;
38992
      boolean that_present_orderId = true;
38993
      if (this_present_orderId || that_present_orderId) {
38994
        if (!(this_present_orderId && that_present_orderId))
38995
          return false;
38996
        if (this.orderId != that.orderId)
38997
          return false;
38998
      }
38999
 
39000
      boolean this_present_isValid = true;
39001
      boolean that_present_isValid = true;
39002
      if (this_present_isValid || that_present_isValid) {
39003
        if (!(this_present_isValid && that_present_isValid))
39004
          return false;
39005
        if (this.isValid != that.isValid)
39006
          return false;
39007
      }
39008
 
39009
      return true;
39010
    }
39011
 
39012
    @Override
39013
    public int hashCode() {
39014
      return 0;
39015
    }
39016
 
39017
    public int compareTo(validateDoa_args other) {
39018
      if (!getClass().equals(other.getClass())) {
39019
        return getClass().getName().compareTo(other.getClass().getName());
39020
      }
39021
 
39022
      int lastComparison = 0;
39023
      validateDoa_args typedOther = (validateDoa_args)other;
39024
 
3430 rajveer 39025
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2590 chandransh 39026
      if (lastComparison != 0) {
39027
        return lastComparison;
39028
      }
3430 rajveer 39029
      if (isSetOrderId()) {
39030
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
39031
        if (lastComparison != 0) {
39032
          return lastComparison;
39033
        }
2590 chandransh 39034
      }
3430 rajveer 39035
      lastComparison = Boolean.valueOf(isSetIsValid()).compareTo(typedOther.isSetIsValid());
2590 chandransh 39036
      if (lastComparison != 0) {
39037
        return lastComparison;
39038
      }
3430 rajveer 39039
      if (isSetIsValid()) {
39040
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isValid, typedOther.isValid);
39041
        if (lastComparison != 0) {
39042
          return lastComparison;
39043
        }
2590 chandransh 39044
      }
39045
      return 0;
39046
    }
39047
 
3430 rajveer 39048
    public _Fields fieldForId(int fieldId) {
39049
      return _Fields.findByThriftId(fieldId);
39050
    }
39051
 
39052
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39053
      org.apache.thrift.protocol.TField field;
2590 chandransh 39054
      iprot.readStructBegin();
39055
      while (true)
39056
      {
39057
        field = iprot.readFieldBegin();
3430 rajveer 39058
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2590 chandransh 39059
          break;
39060
        }
3430 rajveer 39061
        switch (field.id) {
39062
          case 1: // ORDER_ID
39063
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39064
              this.orderId = iprot.readI64();
39065
              setOrderIdIsSet(true);
39066
            } else { 
39067
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39068
            }
39069
            break;
39070
          case 2: // IS_VALID
39071
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
39072
              this.isValid = iprot.readBool();
39073
              setIsValidIsSet(true);
39074
            } else { 
39075
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39076
            }
39077
            break;
39078
          default:
39079
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2590 chandransh 39080
        }
3430 rajveer 39081
        iprot.readFieldEnd();
2590 chandransh 39082
      }
39083
      iprot.readStructEnd();
39084
      validate();
39085
    }
39086
 
3430 rajveer 39087
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2590 chandransh 39088
      validate();
39089
 
39090
      oprot.writeStructBegin(STRUCT_DESC);
39091
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
39092
      oprot.writeI64(this.orderId);
39093
      oprot.writeFieldEnd();
39094
      oprot.writeFieldBegin(IS_VALID_FIELD_DESC);
39095
      oprot.writeBool(this.isValid);
39096
      oprot.writeFieldEnd();
39097
      oprot.writeFieldStop();
39098
      oprot.writeStructEnd();
39099
    }
39100
 
39101
    @Override
39102
    public String toString() {
39103
      StringBuilder sb = new StringBuilder("validateDoa_args(");
39104
      boolean first = true;
39105
 
39106
      sb.append("orderId:");
39107
      sb.append(this.orderId);
39108
      first = false;
39109
      if (!first) sb.append(", ");
39110
      sb.append("isValid:");
39111
      sb.append(this.isValid);
39112
      first = false;
39113
      sb.append(")");
39114
      return sb.toString();
39115
    }
39116
 
3430 rajveer 39117
    public void validate() throws org.apache.thrift.TException {
2590 chandransh 39118
      // check for required fields
39119
    }
39120
 
3430 rajveer 39121
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39122
      try {
39123
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39124
      } catch (org.apache.thrift.TException te) {
39125
        throw new java.io.IOException(te);
39126
      }
39127
    }
39128
 
39129
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39130
      try {
39131
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39132
      } catch (org.apache.thrift.TException te) {
39133
        throw new java.io.IOException(te);
39134
      }
39135
    }
39136
 
2590 chandransh 39137
  }
39138
 
3430 rajveer 39139
  public static class validateDoa_result implements org.apache.thrift.TBase<validateDoa_result, validateDoa_result._Fields>, java.io.Serializable, Cloneable   {
39140
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateDoa_result");
2590 chandransh 39141
 
3430 rajveer 39142
    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);
39143
    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);
2590 chandransh 39144
 
3430 rajveer 39145
    private boolean success; // required
39146
    private TransactionServiceException ex; // required
2590 chandransh 39147
 
39148
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39149
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2590 chandransh 39150
      SUCCESS((short)0, "success"),
39151
      EX((short)1, "ex");
39152
 
39153
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39154
 
39155
      static {
39156
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39157
          byName.put(field.getFieldName(), field);
39158
        }
39159
      }
39160
 
39161
      /**
39162
       * Find the _Fields constant that matches fieldId, or null if its not found.
39163
       */
39164
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39165
        switch(fieldId) {
39166
          case 0: // SUCCESS
39167
            return SUCCESS;
39168
          case 1: // EX
39169
            return EX;
39170
          default:
39171
            return null;
39172
        }
2590 chandransh 39173
      }
39174
 
39175
      /**
39176
       * Find the _Fields constant that matches fieldId, throwing an exception
39177
       * if it is not found.
39178
       */
39179
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39180
        _Fields fields = findByThriftId(fieldId);
39181
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39182
        return fields;
39183
      }
39184
 
39185
      /**
39186
       * Find the _Fields constant that matches name, or null if its not found.
39187
       */
39188
      public static _Fields findByName(String name) {
39189
        return byName.get(name);
39190
      }
39191
 
39192
      private final short _thriftId;
39193
      private final String _fieldName;
39194
 
39195
      _Fields(short thriftId, String fieldName) {
39196
        _thriftId = thriftId;
39197
        _fieldName = fieldName;
39198
      }
39199
 
39200
      public short getThriftFieldId() {
39201
        return _thriftId;
39202
      }
39203
 
39204
      public String getFieldName() {
39205
        return _fieldName;
39206
      }
39207
    }
39208
 
39209
    // isset id assignments
39210
    private static final int __SUCCESS_ISSET_ID = 0;
39211
    private BitSet __isset_bit_vector = new BitSet(1);
39212
 
3430 rajveer 39213
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2590 chandransh 39214
    static {
3430 rajveer 39215
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39216
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
39218
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39219
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39220
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39221
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateDoa_result.class, metaDataMap);
2590 chandransh 39222
    }
39223
 
39224
    public validateDoa_result() {
39225
    }
39226
 
39227
    public validateDoa_result(
39228
      boolean success,
39229
      TransactionServiceException ex)
39230
    {
39231
      this();
39232
      this.success = success;
39233
      setSuccessIsSet(true);
39234
      this.ex = ex;
39235
    }
39236
 
39237
    /**
39238
     * Performs a deep copy on <i>other</i>.
39239
     */
39240
    public validateDoa_result(validateDoa_result other) {
39241
      __isset_bit_vector.clear();
39242
      __isset_bit_vector.or(other.__isset_bit_vector);
39243
      this.success = other.success;
39244
      if (other.isSetEx()) {
39245
        this.ex = new TransactionServiceException(other.ex);
39246
      }
39247
    }
39248
 
39249
    public validateDoa_result deepCopy() {
39250
      return new validateDoa_result(this);
39251
    }
39252
 
3430 rajveer 39253
    @Override
39254
    public void clear() {
39255
      setSuccessIsSet(false);
39256
      this.success = false;
39257
      this.ex = null;
2590 chandransh 39258
    }
39259
 
39260
    public boolean isSuccess() {
39261
      return this.success;
39262
    }
39263
 
3430 rajveer 39264
    public void setSuccess(boolean success) {
2590 chandransh 39265
      this.success = success;
39266
      setSuccessIsSet(true);
39267
    }
39268
 
39269
    public void unsetSuccess() {
39270
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
39271
    }
39272
 
3430 rajveer 39273
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2590 chandransh 39274
    public boolean isSetSuccess() {
39275
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
39276
    }
39277
 
39278
    public void setSuccessIsSet(boolean value) {
39279
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
39280
    }
39281
 
39282
    public TransactionServiceException getEx() {
39283
      return this.ex;
39284
    }
39285
 
3430 rajveer 39286
    public void setEx(TransactionServiceException ex) {
2590 chandransh 39287
      this.ex = ex;
39288
    }
39289
 
39290
    public void unsetEx() {
39291
      this.ex = null;
39292
    }
39293
 
3430 rajveer 39294
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2590 chandransh 39295
    public boolean isSetEx() {
39296
      return this.ex != null;
39297
    }
39298
 
39299
    public void setExIsSet(boolean value) {
39300
      if (!value) {
39301
        this.ex = null;
39302
      }
39303
    }
39304
 
39305
    public void setFieldValue(_Fields field, Object value) {
39306
      switch (field) {
39307
      case SUCCESS:
39308
        if (value == null) {
39309
          unsetSuccess();
39310
        } else {
39311
          setSuccess((Boolean)value);
39312
        }
39313
        break;
39314
 
39315
      case EX:
39316
        if (value == null) {
39317
          unsetEx();
39318
        } else {
39319
          setEx((TransactionServiceException)value);
39320
        }
39321
        break;
39322
 
39323
      }
39324
    }
39325
 
39326
    public Object getFieldValue(_Fields field) {
39327
      switch (field) {
39328
      case SUCCESS:
3430 rajveer 39329
        return Boolean.valueOf(isSuccess());
2590 chandransh 39330
 
39331
      case EX:
39332
        return getEx();
39333
 
39334
      }
39335
      throw new IllegalStateException();
39336
    }
39337
 
3430 rajveer 39338
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39339
    public boolean isSet(_Fields field) {
39340
      if (field == null) {
39341
        throw new IllegalArgumentException();
39342
      }
2590 chandransh 39343
 
39344
      switch (field) {
39345
      case SUCCESS:
39346
        return isSetSuccess();
39347
      case EX:
39348
        return isSetEx();
39349
      }
39350
      throw new IllegalStateException();
39351
    }
39352
 
39353
    @Override
39354
    public boolean equals(Object that) {
39355
      if (that == null)
39356
        return false;
39357
      if (that instanceof validateDoa_result)
39358
        return this.equals((validateDoa_result)that);
39359
      return false;
39360
    }
39361
 
39362
    public boolean equals(validateDoa_result that) {
39363
      if (that == null)
39364
        return false;
39365
 
39366
      boolean this_present_success = true;
39367
      boolean that_present_success = true;
39368
      if (this_present_success || that_present_success) {
39369
        if (!(this_present_success && that_present_success))
39370
          return false;
39371
        if (this.success != that.success)
39372
          return false;
39373
      }
39374
 
39375
      boolean this_present_ex = true && this.isSetEx();
39376
      boolean that_present_ex = true && that.isSetEx();
39377
      if (this_present_ex || that_present_ex) {
39378
        if (!(this_present_ex && that_present_ex))
39379
          return false;
39380
        if (!this.ex.equals(that.ex))
39381
          return false;
39382
      }
39383
 
39384
      return true;
39385
    }
39386
 
39387
    @Override
39388
    public int hashCode() {
39389
      return 0;
39390
    }
39391
 
39392
    public int compareTo(validateDoa_result other) {
39393
      if (!getClass().equals(other.getClass())) {
39394
        return getClass().getName().compareTo(other.getClass().getName());
39395
      }
39396
 
39397
      int lastComparison = 0;
39398
      validateDoa_result typedOther = (validateDoa_result)other;
39399
 
3430 rajveer 39400
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2590 chandransh 39401
      if (lastComparison != 0) {
39402
        return lastComparison;
39403
      }
3430 rajveer 39404
      if (isSetSuccess()) {
39405
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
39406
        if (lastComparison != 0) {
39407
          return lastComparison;
39408
        }
2590 chandransh 39409
      }
3430 rajveer 39410
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2590 chandransh 39411
      if (lastComparison != 0) {
39412
        return lastComparison;
39413
      }
3430 rajveer 39414
      if (isSetEx()) {
39415
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
39416
        if (lastComparison != 0) {
39417
          return lastComparison;
39418
        }
2590 chandransh 39419
      }
39420
      return 0;
39421
    }
39422
 
3430 rajveer 39423
    public _Fields fieldForId(int fieldId) {
39424
      return _Fields.findByThriftId(fieldId);
39425
    }
39426
 
39427
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39428
      org.apache.thrift.protocol.TField field;
2590 chandransh 39429
      iprot.readStructBegin();
39430
      while (true)
39431
      {
39432
        field = iprot.readFieldBegin();
3430 rajveer 39433
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2590 chandransh 39434
          break;
39435
        }
3430 rajveer 39436
        switch (field.id) {
39437
          case 0: // SUCCESS
39438
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
39439
              this.success = iprot.readBool();
39440
              setSuccessIsSet(true);
39441
            } else { 
39442
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39443
            }
39444
            break;
39445
          case 1: // EX
39446
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
39447
              this.ex = new TransactionServiceException();
39448
              this.ex.read(iprot);
39449
            } else { 
39450
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39451
            }
39452
            break;
39453
          default:
39454
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2590 chandransh 39455
        }
3430 rajveer 39456
        iprot.readFieldEnd();
2590 chandransh 39457
      }
39458
      iprot.readStructEnd();
39459
      validate();
39460
    }
39461
 
3430 rajveer 39462
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2590 chandransh 39463
      oprot.writeStructBegin(STRUCT_DESC);
39464
 
39465
      if (this.isSetSuccess()) {
39466
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39467
        oprot.writeBool(this.success);
39468
        oprot.writeFieldEnd();
39469
      } else if (this.isSetEx()) {
39470
        oprot.writeFieldBegin(EX_FIELD_DESC);
39471
        this.ex.write(oprot);
39472
        oprot.writeFieldEnd();
39473
      }
39474
      oprot.writeFieldStop();
39475
      oprot.writeStructEnd();
39476
    }
39477
 
39478
    @Override
39479
    public String toString() {
39480
      StringBuilder sb = new StringBuilder("validateDoa_result(");
39481
      boolean first = true;
39482
 
39483
      sb.append("success:");
39484
      sb.append(this.success);
39485
      first = false;
39486
      if (!first) sb.append(", ");
39487
      sb.append("ex:");
39488
      if (this.ex == null) {
39489
        sb.append("null");
39490
      } else {
39491
        sb.append(this.ex);
39492
      }
39493
      first = false;
39494
      sb.append(")");
39495
      return sb.toString();
39496
    }
39497
 
3430 rajveer 39498
    public void validate() throws org.apache.thrift.TException {
2590 chandransh 39499
      // check for required fields
39500
    }
39501
 
3430 rajveer 39502
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39503
      try {
39504
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39505
      } catch (org.apache.thrift.TException te) {
39506
        throw new java.io.IOException(te);
39507
      }
39508
    }
39509
 
39510
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39511
      try {
39512
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39513
      } catch (org.apache.thrift.TException te) {
39514
        throw new java.io.IOException(te);
39515
      }
39516
    }
39517
 
2590 chandransh 39518
  }
39519
 
3430 rajveer 39520
  public static class reshipOrder_args implements org.apache.thrift.TBase<reshipOrder_args, reshipOrder_args._Fields>, java.io.Serializable, Cloneable   {
39521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipOrder_args");
2615 chandransh 39522
 
3430 rajveer 39523
    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);
2615 chandransh 39524
 
3430 rajveer 39525
    private long orderId; // required
2615 chandransh 39526
 
39527
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39528
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2615 chandransh 39529
      ORDER_ID((short)1, "orderId");
39530
 
39531
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39532
 
39533
      static {
39534
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39535
          byName.put(field.getFieldName(), field);
39536
        }
39537
      }
39538
 
39539
      /**
39540
       * Find the _Fields constant that matches fieldId, or null if its not found.
39541
       */
39542
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39543
        switch(fieldId) {
39544
          case 1: // ORDER_ID
39545
            return ORDER_ID;
39546
          default:
39547
            return null;
39548
        }
2615 chandransh 39549
      }
39550
 
39551
      /**
39552
       * Find the _Fields constant that matches fieldId, throwing an exception
39553
       * if it is not found.
39554
       */
39555
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39556
        _Fields fields = findByThriftId(fieldId);
39557
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39558
        return fields;
39559
      }
39560
 
39561
      /**
39562
       * Find the _Fields constant that matches name, or null if its not found.
39563
       */
39564
      public static _Fields findByName(String name) {
39565
        return byName.get(name);
39566
      }
39567
 
39568
      private final short _thriftId;
39569
      private final String _fieldName;
39570
 
39571
      _Fields(short thriftId, String fieldName) {
39572
        _thriftId = thriftId;
39573
        _fieldName = fieldName;
39574
      }
39575
 
39576
      public short getThriftFieldId() {
39577
        return _thriftId;
39578
      }
39579
 
39580
      public String getFieldName() {
39581
        return _fieldName;
39582
      }
39583
    }
39584
 
39585
    // isset id assignments
39586
    private static final int __ORDERID_ISSET_ID = 0;
39587
    private BitSet __isset_bit_vector = new BitSet(1);
39588
 
3430 rajveer 39589
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2615 chandransh 39590
    static {
3430 rajveer 39591
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39592
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39593
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39594
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39595
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipOrder_args.class, metaDataMap);
2615 chandransh 39596
    }
39597
 
39598
    public reshipOrder_args() {
39599
    }
39600
 
39601
    public reshipOrder_args(
39602
      long orderId)
39603
    {
39604
      this();
39605
      this.orderId = orderId;
39606
      setOrderIdIsSet(true);
39607
    }
39608
 
39609
    /**
39610
     * Performs a deep copy on <i>other</i>.
39611
     */
39612
    public reshipOrder_args(reshipOrder_args other) {
39613
      __isset_bit_vector.clear();
39614
      __isset_bit_vector.or(other.__isset_bit_vector);
39615
      this.orderId = other.orderId;
39616
    }
39617
 
39618
    public reshipOrder_args deepCopy() {
39619
      return new reshipOrder_args(this);
39620
    }
39621
 
3430 rajveer 39622
    @Override
39623
    public void clear() {
39624
      setOrderIdIsSet(false);
39625
      this.orderId = 0;
2615 chandransh 39626
    }
39627
 
39628
    public long getOrderId() {
39629
      return this.orderId;
39630
    }
39631
 
3430 rajveer 39632
    public void setOrderId(long orderId) {
2615 chandransh 39633
      this.orderId = orderId;
39634
      setOrderIdIsSet(true);
39635
    }
39636
 
39637
    public void unsetOrderId() {
39638
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
39639
    }
39640
 
3430 rajveer 39641
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2615 chandransh 39642
    public boolean isSetOrderId() {
39643
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
39644
    }
39645
 
39646
    public void setOrderIdIsSet(boolean value) {
39647
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
39648
    }
39649
 
39650
    public void setFieldValue(_Fields field, Object value) {
39651
      switch (field) {
39652
      case ORDER_ID:
39653
        if (value == null) {
39654
          unsetOrderId();
39655
        } else {
39656
          setOrderId((Long)value);
39657
        }
39658
        break;
39659
 
39660
      }
39661
    }
39662
 
39663
    public Object getFieldValue(_Fields field) {
39664
      switch (field) {
39665
      case ORDER_ID:
3430 rajveer 39666
        return Long.valueOf(getOrderId());
2615 chandransh 39667
 
39668
      }
39669
      throw new IllegalStateException();
39670
    }
39671
 
3430 rajveer 39672
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39673
    public boolean isSet(_Fields field) {
39674
      if (field == null) {
39675
        throw new IllegalArgumentException();
39676
      }
2615 chandransh 39677
 
39678
      switch (field) {
39679
      case ORDER_ID:
39680
        return isSetOrderId();
39681
      }
39682
      throw new IllegalStateException();
39683
    }
39684
 
39685
    @Override
39686
    public boolean equals(Object that) {
39687
      if (that == null)
39688
        return false;
39689
      if (that instanceof reshipOrder_args)
39690
        return this.equals((reshipOrder_args)that);
39691
      return false;
39692
    }
39693
 
39694
    public boolean equals(reshipOrder_args that) {
39695
      if (that == null)
39696
        return false;
39697
 
39698
      boolean this_present_orderId = true;
39699
      boolean that_present_orderId = true;
39700
      if (this_present_orderId || that_present_orderId) {
39701
        if (!(this_present_orderId && that_present_orderId))
39702
          return false;
39703
        if (this.orderId != that.orderId)
39704
          return false;
39705
      }
39706
 
39707
      return true;
39708
    }
39709
 
39710
    @Override
39711
    public int hashCode() {
39712
      return 0;
39713
    }
39714
 
39715
    public int compareTo(reshipOrder_args other) {
39716
      if (!getClass().equals(other.getClass())) {
39717
        return getClass().getName().compareTo(other.getClass().getName());
39718
      }
39719
 
39720
      int lastComparison = 0;
39721
      reshipOrder_args typedOther = (reshipOrder_args)other;
39722
 
3430 rajveer 39723
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2615 chandransh 39724
      if (lastComparison != 0) {
39725
        return lastComparison;
39726
      }
3430 rajveer 39727
      if (isSetOrderId()) {
39728
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
39729
        if (lastComparison != 0) {
39730
          return lastComparison;
39731
        }
2615 chandransh 39732
      }
39733
      return 0;
39734
    }
39735
 
3430 rajveer 39736
    public _Fields fieldForId(int fieldId) {
39737
      return _Fields.findByThriftId(fieldId);
39738
    }
39739
 
39740
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39741
      org.apache.thrift.protocol.TField field;
2615 chandransh 39742
      iprot.readStructBegin();
39743
      while (true)
39744
      {
39745
        field = iprot.readFieldBegin();
3430 rajveer 39746
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2615 chandransh 39747
          break;
39748
        }
3430 rajveer 39749
        switch (field.id) {
39750
          case 1: // ORDER_ID
39751
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39752
              this.orderId = iprot.readI64();
39753
              setOrderIdIsSet(true);
39754
            } else { 
39755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39756
            }
39757
            break;
39758
          default:
39759
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2615 chandransh 39760
        }
3430 rajveer 39761
        iprot.readFieldEnd();
2615 chandransh 39762
      }
39763
      iprot.readStructEnd();
39764
      validate();
39765
    }
39766
 
3430 rajveer 39767
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2615 chandransh 39768
      validate();
39769
 
39770
      oprot.writeStructBegin(STRUCT_DESC);
39771
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
39772
      oprot.writeI64(this.orderId);
39773
      oprot.writeFieldEnd();
39774
      oprot.writeFieldStop();
39775
      oprot.writeStructEnd();
39776
    }
39777
 
39778
    @Override
39779
    public String toString() {
39780
      StringBuilder sb = new StringBuilder("reshipOrder_args(");
39781
      boolean first = true;
39782
 
39783
      sb.append("orderId:");
39784
      sb.append(this.orderId);
39785
      first = false;
39786
      sb.append(")");
39787
      return sb.toString();
39788
    }
39789
 
3430 rajveer 39790
    public void validate() throws org.apache.thrift.TException {
2615 chandransh 39791
      // check for required fields
39792
    }
39793
 
3430 rajveer 39794
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39795
      try {
39796
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39797
      } catch (org.apache.thrift.TException te) {
39798
        throw new java.io.IOException(te);
39799
      }
39800
    }
39801
 
39802
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39803
      try {
39804
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39805
      } catch (org.apache.thrift.TException te) {
39806
        throw new java.io.IOException(te);
39807
      }
39808
    }
39809
 
2615 chandransh 39810
  }
39811
 
3430 rajveer 39812
  public static class reshipOrder_result implements org.apache.thrift.TBase<reshipOrder_result, reshipOrder_result._Fields>, java.io.Serializable, Cloneable   {
39813
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipOrder_result");
2615 chandransh 39814
 
3430 rajveer 39815
    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);
39816
    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);
2615 chandransh 39817
 
3430 rajveer 39818
    private long success; // required
39819
    private TransactionServiceException ex; // required
2615 chandransh 39820
 
39821
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39822
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2615 chandransh 39823
      SUCCESS((short)0, "success"),
39824
      EX((short)1, "ex");
39825
 
39826
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39827
 
39828
      static {
39829
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39830
          byName.put(field.getFieldName(), field);
39831
        }
39832
      }
39833
 
39834
      /**
39835
       * Find the _Fields constant that matches fieldId, or null if its not found.
39836
       */
39837
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39838
        switch(fieldId) {
39839
          case 0: // SUCCESS
39840
            return SUCCESS;
39841
          case 1: // EX
39842
            return EX;
39843
          default:
39844
            return null;
39845
        }
2615 chandransh 39846
      }
39847
 
39848
      /**
39849
       * Find the _Fields constant that matches fieldId, throwing an exception
39850
       * if it is not found.
39851
       */
39852
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39853
        _Fields fields = findByThriftId(fieldId);
39854
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39855
        return fields;
39856
      }
39857
 
39858
      /**
39859
       * Find the _Fields constant that matches name, or null if its not found.
39860
       */
39861
      public static _Fields findByName(String name) {
39862
        return byName.get(name);
39863
      }
39864
 
39865
      private final short _thriftId;
39866
      private final String _fieldName;
39867
 
39868
      _Fields(short thriftId, String fieldName) {
39869
        _thriftId = thriftId;
39870
        _fieldName = fieldName;
39871
      }
39872
 
39873
      public short getThriftFieldId() {
39874
        return _thriftId;
39875
      }
39876
 
39877
      public String getFieldName() {
39878
        return _fieldName;
39879
      }
39880
    }
39881
 
39882
    // isset id assignments
39883
    private static final int __SUCCESS_ISSET_ID = 0;
39884
    private BitSet __isset_bit_vector = new BitSet(1);
39885
 
3430 rajveer 39886
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2615 chandransh 39887
    static {
3430 rajveer 39888
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39889
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39890
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39891
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39892
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39893
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39894
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipOrder_result.class, metaDataMap);
2615 chandransh 39895
    }
39896
 
39897
    public reshipOrder_result() {
39898
    }
39899
 
39900
    public reshipOrder_result(
39901
      long success,
39902
      TransactionServiceException ex)
39903
    {
39904
      this();
39905
      this.success = success;
39906
      setSuccessIsSet(true);
39907
      this.ex = ex;
39908
    }
39909
 
39910
    /**
39911
     * Performs a deep copy on <i>other</i>.
39912
     */
39913
    public reshipOrder_result(reshipOrder_result other) {
39914
      __isset_bit_vector.clear();
39915
      __isset_bit_vector.or(other.__isset_bit_vector);
39916
      this.success = other.success;
39917
      if (other.isSetEx()) {
39918
        this.ex = new TransactionServiceException(other.ex);
39919
      }
39920
    }
39921
 
39922
    public reshipOrder_result deepCopy() {
39923
      return new reshipOrder_result(this);
39924
    }
39925
 
3430 rajveer 39926
    @Override
39927
    public void clear() {
39928
      setSuccessIsSet(false);
39929
      this.success = 0;
39930
      this.ex = null;
2615 chandransh 39931
    }
39932
 
39933
    public long getSuccess() {
39934
      return this.success;
39935
    }
39936
 
3430 rajveer 39937
    public void setSuccess(long success) {
2615 chandransh 39938
      this.success = success;
39939
      setSuccessIsSet(true);
39940
    }
39941
 
39942
    public void unsetSuccess() {
39943
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
39944
    }
39945
 
3430 rajveer 39946
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2615 chandransh 39947
    public boolean isSetSuccess() {
39948
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
39949
    }
39950
 
39951
    public void setSuccessIsSet(boolean value) {
39952
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
39953
    }
39954
 
39955
    public TransactionServiceException getEx() {
39956
      return this.ex;
39957
    }
39958
 
3430 rajveer 39959
    public void setEx(TransactionServiceException ex) {
2615 chandransh 39960
      this.ex = ex;
39961
    }
39962
 
39963
    public void unsetEx() {
39964
      this.ex = null;
39965
    }
39966
 
3430 rajveer 39967
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2615 chandransh 39968
    public boolean isSetEx() {
39969
      return this.ex != null;
39970
    }
39971
 
39972
    public void setExIsSet(boolean value) {
39973
      if (!value) {
39974
        this.ex = null;
39975
      }
39976
    }
39977
 
39978
    public void setFieldValue(_Fields field, Object value) {
39979
      switch (field) {
39980
      case SUCCESS:
39981
        if (value == null) {
39982
          unsetSuccess();
39983
        } else {
39984
          setSuccess((Long)value);
39985
        }
39986
        break;
39987
 
39988
      case EX:
39989
        if (value == null) {
39990
          unsetEx();
39991
        } else {
39992
          setEx((TransactionServiceException)value);
39993
        }
39994
        break;
39995
 
39996
      }
39997
    }
39998
 
39999
    public Object getFieldValue(_Fields field) {
40000
      switch (field) {
40001
      case SUCCESS:
3430 rajveer 40002
        return Long.valueOf(getSuccess());
2615 chandransh 40003
 
40004
      case EX:
40005
        return getEx();
40006
 
40007
      }
40008
      throw new IllegalStateException();
40009
    }
40010
 
3430 rajveer 40011
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40012
    public boolean isSet(_Fields field) {
40013
      if (field == null) {
40014
        throw new IllegalArgumentException();
40015
      }
2615 chandransh 40016
 
40017
      switch (field) {
40018
      case SUCCESS:
40019
        return isSetSuccess();
40020
      case EX:
40021
        return isSetEx();
40022
      }
40023
      throw new IllegalStateException();
40024
    }
40025
 
40026
    @Override
40027
    public boolean equals(Object that) {
40028
      if (that == null)
40029
        return false;
40030
      if (that instanceof reshipOrder_result)
40031
        return this.equals((reshipOrder_result)that);
40032
      return false;
40033
    }
40034
 
40035
    public boolean equals(reshipOrder_result that) {
40036
      if (that == null)
40037
        return false;
40038
 
40039
      boolean this_present_success = true;
40040
      boolean that_present_success = true;
40041
      if (this_present_success || that_present_success) {
40042
        if (!(this_present_success && that_present_success))
40043
          return false;
40044
        if (this.success != that.success)
40045
          return false;
40046
      }
40047
 
40048
      boolean this_present_ex = true && this.isSetEx();
40049
      boolean that_present_ex = true && that.isSetEx();
40050
      if (this_present_ex || that_present_ex) {
40051
        if (!(this_present_ex && that_present_ex))
40052
          return false;
40053
        if (!this.ex.equals(that.ex))
40054
          return false;
40055
      }
40056
 
40057
      return true;
40058
    }
40059
 
40060
    @Override
40061
    public int hashCode() {
40062
      return 0;
40063
    }
40064
 
40065
    public int compareTo(reshipOrder_result other) {
40066
      if (!getClass().equals(other.getClass())) {
40067
        return getClass().getName().compareTo(other.getClass().getName());
40068
      }
40069
 
40070
      int lastComparison = 0;
40071
      reshipOrder_result typedOther = (reshipOrder_result)other;
40072
 
3430 rajveer 40073
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2615 chandransh 40074
      if (lastComparison != 0) {
40075
        return lastComparison;
40076
      }
3430 rajveer 40077
      if (isSetSuccess()) {
40078
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
40079
        if (lastComparison != 0) {
40080
          return lastComparison;
40081
        }
2615 chandransh 40082
      }
3430 rajveer 40083
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2615 chandransh 40084
      if (lastComparison != 0) {
40085
        return lastComparison;
40086
      }
3430 rajveer 40087
      if (isSetEx()) {
40088
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
40089
        if (lastComparison != 0) {
40090
          return lastComparison;
40091
        }
2615 chandransh 40092
      }
40093
      return 0;
40094
    }
40095
 
3430 rajveer 40096
    public _Fields fieldForId(int fieldId) {
40097
      return _Fields.findByThriftId(fieldId);
40098
    }
40099
 
40100
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40101
      org.apache.thrift.protocol.TField field;
2615 chandransh 40102
      iprot.readStructBegin();
40103
      while (true)
40104
      {
40105
        field = iprot.readFieldBegin();
3430 rajveer 40106
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2615 chandransh 40107
          break;
40108
        }
3430 rajveer 40109
        switch (field.id) {
40110
          case 0: // SUCCESS
40111
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40112
              this.success = iprot.readI64();
40113
              setSuccessIsSet(true);
40114
            } else { 
40115
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40116
            }
40117
            break;
40118
          case 1: // EX
40119
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
40120
              this.ex = new TransactionServiceException();
40121
              this.ex.read(iprot);
40122
            } else { 
40123
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40124
            }
40125
            break;
40126
          default:
40127
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2615 chandransh 40128
        }
3430 rajveer 40129
        iprot.readFieldEnd();
2615 chandransh 40130
      }
40131
      iprot.readStructEnd();
40132
      validate();
40133
    }
40134
 
3430 rajveer 40135
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2615 chandransh 40136
      oprot.writeStructBegin(STRUCT_DESC);
40137
 
40138
      if (this.isSetSuccess()) {
40139
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40140
        oprot.writeI64(this.success);
40141
        oprot.writeFieldEnd();
40142
      } else if (this.isSetEx()) {
40143
        oprot.writeFieldBegin(EX_FIELD_DESC);
40144
        this.ex.write(oprot);
40145
        oprot.writeFieldEnd();
40146
      }
40147
      oprot.writeFieldStop();
40148
      oprot.writeStructEnd();
40149
    }
40150
 
40151
    @Override
40152
    public String toString() {
40153
      StringBuilder sb = new StringBuilder("reshipOrder_result(");
40154
      boolean first = true;
40155
 
40156
      sb.append("success:");
40157
      sb.append(this.success);
40158
      first = false;
40159
      if (!first) sb.append(", ");
40160
      sb.append("ex:");
40161
      if (this.ex == null) {
40162
        sb.append("null");
40163
      } else {
40164
        sb.append(this.ex);
40165
      }
40166
      first = false;
40167
      sb.append(")");
40168
      return sb.toString();
40169
    }
40170
 
3430 rajveer 40171
    public void validate() throws org.apache.thrift.TException {
2615 chandransh 40172
      // check for required fields
40173
    }
40174
 
3430 rajveer 40175
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40176
      try {
40177
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40178
      } catch (org.apache.thrift.TException te) {
40179
        throw new java.io.IOException(te);
40180
      }
40181
    }
40182
 
40183
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40184
      try {
40185
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40186
      } catch (org.apache.thrift.TException te) {
40187
        throw new java.io.IOException(te);
40188
      }
40189
    }
40190
 
2615 chandransh 40191
  }
40192
 
3430 rajveer 40193
  public static class refundOrder_args implements org.apache.thrift.TBase<refundOrder_args, refundOrder_args._Fields>, java.io.Serializable, Cloneable   {
40194
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundOrder_args");
2615 chandransh 40195
 
3430 rajveer 40196
    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);
40197
    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);
40198
    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);
2615 chandransh 40199
 
3430 rajveer 40200
    private long orderId; // required
40201
    private String refundedBy; // required
40202
    private String reason; // required
2615 chandransh 40203
 
40204
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40205
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3226 chandransh 40206
      ORDER_ID((short)1, "orderId"),
40207
      REFUNDED_BY((short)2, "refundedBy"),
40208
      REASON((short)3, "reason");
2615 chandransh 40209
 
40210
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40211
 
40212
      static {
40213
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40214
          byName.put(field.getFieldName(), field);
40215
        }
40216
      }
40217
 
40218
      /**
40219
       * Find the _Fields constant that matches fieldId, or null if its not found.
40220
       */
40221
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40222
        switch(fieldId) {
40223
          case 1: // ORDER_ID
40224
            return ORDER_ID;
40225
          case 2: // REFUNDED_BY
40226
            return REFUNDED_BY;
40227
          case 3: // REASON
40228
            return REASON;
40229
          default:
40230
            return null;
40231
        }
2615 chandransh 40232
      }
40233
 
40234
      /**
40235
       * Find the _Fields constant that matches fieldId, throwing an exception
40236
       * if it is not found.
40237
       */
40238
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40239
        _Fields fields = findByThriftId(fieldId);
40240
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40241
        return fields;
40242
      }
40243
 
40244
      /**
40245
       * Find the _Fields constant that matches name, or null if its not found.
40246
       */
40247
      public static _Fields findByName(String name) {
40248
        return byName.get(name);
40249
      }
40250
 
40251
      private final short _thriftId;
40252
      private final String _fieldName;
40253
 
40254
      _Fields(short thriftId, String fieldName) {
40255
        _thriftId = thriftId;
40256
        _fieldName = fieldName;
40257
      }
40258
 
40259
      public short getThriftFieldId() {
40260
        return _thriftId;
40261
      }
40262
 
40263
      public String getFieldName() {
40264
        return _fieldName;
40265
      }
40266
    }
40267
 
40268
    // isset id assignments
40269
    private static final int __ORDERID_ISSET_ID = 0;
40270
    private BitSet __isset_bit_vector = new BitSet(1);
40271
 
3430 rajveer 40272
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2615 chandransh 40273
    static {
3430 rajveer 40274
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40275
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40276
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40277
      tmpMap.put(_Fields.REFUNDED_BY, new org.apache.thrift.meta_data.FieldMetaData("refundedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40278
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40279
      tmpMap.put(_Fields.REASON, new org.apache.thrift.meta_data.FieldMetaData("reason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40280
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40281
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40282
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundOrder_args.class, metaDataMap);
2615 chandransh 40283
    }
40284
 
40285
    public refundOrder_args() {
40286
    }
40287
 
40288
    public refundOrder_args(
3226 chandransh 40289
      long orderId,
40290
      String refundedBy,
40291
      String reason)
2615 chandransh 40292
    {
40293
      this();
40294
      this.orderId = orderId;
40295
      setOrderIdIsSet(true);
3226 chandransh 40296
      this.refundedBy = refundedBy;
40297
      this.reason = reason;
2615 chandransh 40298
    }
40299
 
40300
    /**
40301
     * Performs a deep copy on <i>other</i>.
40302
     */
40303
    public refundOrder_args(refundOrder_args other) {
40304
      __isset_bit_vector.clear();
40305
      __isset_bit_vector.or(other.__isset_bit_vector);
40306
      this.orderId = other.orderId;
3226 chandransh 40307
      if (other.isSetRefundedBy()) {
40308
        this.refundedBy = other.refundedBy;
40309
      }
40310
      if (other.isSetReason()) {
40311
        this.reason = other.reason;
40312
      }
2615 chandransh 40313
    }
40314
 
40315
    public refundOrder_args deepCopy() {
40316
      return new refundOrder_args(this);
40317
    }
40318
 
3430 rajveer 40319
    @Override
40320
    public void clear() {
40321
      setOrderIdIsSet(false);
40322
      this.orderId = 0;
40323
      this.refundedBy = null;
40324
      this.reason = null;
2615 chandransh 40325
    }
40326
 
40327
    public long getOrderId() {
40328
      return this.orderId;
40329
    }
40330
 
3430 rajveer 40331
    public void setOrderId(long orderId) {
2615 chandransh 40332
      this.orderId = orderId;
40333
      setOrderIdIsSet(true);
40334
    }
40335
 
40336
    public void unsetOrderId() {
40337
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
40338
    }
40339
 
3430 rajveer 40340
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2615 chandransh 40341
    public boolean isSetOrderId() {
40342
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
40343
    }
40344
 
40345
    public void setOrderIdIsSet(boolean value) {
40346
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
40347
    }
40348
 
3226 chandransh 40349
    public String getRefundedBy() {
40350
      return this.refundedBy;
40351
    }
40352
 
3430 rajveer 40353
    public void setRefundedBy(String refundedBy) {
3226 chandransh 40354
      this.refundedBy = refundedBy;
40355
    }
40356
 
40357
    public void unsetRefundedBy() {
40358
      this.refundedBy = null;
40359
    }
40360
 
3430 rajveer 40361
    /** Returns true if field refundedBy is set (has been assigned a value) and false otherwise */
3226 chandransh 40362
    public boolean isSetRefundedBy() {
40363
      return this.refundedBy != null;
40364
    }
40365
 
40366
    public void setRefundedByIsSet(boolean value) {
40367
      if (!value) {
40368
        this.refundedBy = null;
40369
      }
40370
    }
40371
 
40372
    public String getReason() {
40373
      return this.reason;
40374
    }
40375
 
3430 rajveer 40376
    public void setReason(String reason) {
3226 chandransh 40377
      this.reason = reason;
40378
    }
40379
 
40380
    public void unsetReason() {
40381
      this.reason = null;
40382
    }
40383
 
3430 rajveer 40384
    /** Returns true if field reason is set (has been assigned a value) and false otherwise */
3226 chandransh 40385
    public boolean isSetReason() {
40386
      return this.reason != null;
40387
    }
40388
 
40389
    public void setReasonIsSet(boolean value) {
40390
      if (!value) {
40391
        this.reason = null;
40392
      }
40393
    }
40394
 
2615 chandransh 40395
    public void setFieldValue(_Fields field, Object value) {
40396
      switch (field) {
40397
      case ORDER_ID:
40398
        if (value == null) {
40399
          unsetOrderId();
40400
        } else {
40401
          setOrderId((Long)value);
40402
        }
40403
        break;
40404
 
3226 chandransh 40405
      case REFUNDED_BY:
40406
        if (value == null) {
40407
          unsetRefundedBy();
40408
        } else {
40409
          setRefundedBy((String)value);
40410
        }
40411
        break;
40412
 
40413
      case REASON:
40414
        if (value == null) {
40415
          unsetReason();
40416
        } else {
40417
          setReason((String)value);
40418
        }
40419
        break;
40420
 
2615 chandransh 40421
      }
40422
    }
40423
 
40424
    public Object getFieldValue(_Fields field) {
40425
      switch (field) {
40426
      case ORDER_ID:
3430 rajveer 40427
        return Long.valueOf(getOrderId());
2615 chandransh 40428
 
3226 chandransh 40429
      case REFUNDED_BY:
40430
        return getRefundedBy();
40431
 
40432
      case REASON:
40433
        return getReason();
40434
 
2615 chandransh 40435
      }
40436
      throw new IllegalStateException();
40437
    }
40438
 
3430 rajveer 40439
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40440
    public boolean isSet(_Fields field) {
40441
      if (field == null) {
40442
        throw new IllegalArgumentException();
40443
      }
2615 chandransh 40444
 
40445
      switch (field) {
40446
      case ORDER_ID:
40447
        return isSetOrderId();
3226 chandransh 40448
      case REFUNDED_BY:
40449
        return isSetRefundedBy();
40450
      case REASON:
40451
        return isSetReason();
2615 chandransh 40452
      }
40453
      throw new IllegalStateException();
40454
    }
40455
 
40456
    @Override
40457
    public boolean equals(Object that) {
40458
      if (that == null)
40459
        return false;
40460
      if (that instanceof refundOrder_args)
40461
        return this.equals((refundOrder_args)that);
40462
      return false;
40463
    }
40464
 
40465
    public boolean equals(refundOrder_args that) {
40466
      if (that == null)
40467
        return false;
40468
 
40469
      boolean this_present_orderId = true;
40470
      boolean that_present_orderId = true;
40471
      if (this_present_orderId || that_present_orderId) {
40472
        if (!(this_present_orderId && that_present_orderId))
40473
          return false;
40474
        if (this.orderId != that.orderId)
40475
          return false;
40476
      }
40477
 
3226 chandransh 40478
      boolean this_present_refundedBy = true && this.isSetRefundedBy();
40479
      boolean that_present_refundedBy = true && that.isSetRefundedBy();
40480
      if (this_present_refundedBy || that_present_refundedBy) {
40481
        if (!(this_present_refundedBy && that_present_refundedBy))
40482
          return false;
40483
        if (!this.refundedBy.equals(that.refundedBy))
40484
          return false;
40485
      }
40486
 
40487
      boolean this_present_reason = true && this.isSetReason();
40488
      boolean that_present_reason = true && that.isSetReason();
40489
      if (this_present_reason || that_present_reason) {
40490
        if (!(this_present_reason && that_present_reason))
40491
          return false;
40492
        if (!this.reason.equals(that.reason))
40493
          return false;
40494
      }
40495
 
2615 chandransh 40496
      return true;
40497
    }
40498
 
40499
    @Override
40500
    public int hashCode() {
40501
      return 0;
40502
    }
40503
 
40504
    public int compareTo(refundOrder_args other) {
40505
      if (!getClass().equals(other.getClass())) {
40506
        return getClass().getName().compareTo(other.getClass().getName());
40507
      }
40508
 
40509
      int lastComparison = 0;
40510
      refundOrder_args typedOther = (refundOrder_args)other;
40511
 
3430 rajveer 40512
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2615 chandransh 40513
      if (lastComparison != 0) {
40514
        return lastComparison;
40515
      }
3430 rajveer 40516
      if (isSetOrderId()) {
40517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
40518
        if (lastComparison != 0) {
40519
          return lastComparison;
40520
        }
2615 chandransh 40521
      }
3430 rajveer 40522
      lastComparison = Boolean.valueOf(isSetRefundedBy()).compareTo(typedOther.isSetRefundedBy());
3226 chandransh 40523
      if (lastComparison != 0) {
40524
        return lastComparison;
40525
      }
3430 rajveer 40526
      if (isSetRefundedBy()) {
40527
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundedBy, typedOther.refundedBy);
40528
        if (lastComparison != 0) {
40529
          return lastComparison;
40530
        }
3226 chandransh 40531
      }
3430 rajveer 40532
      lastComparison = Boolean.valueOf(isSetReason()).compareTo(typedOther.isSetReason());
3226 chandransh 40533
      if (lastComparison != 0) {
40534
        return lastComparison;
40535
      }
3430 rajveer 40536
      if (isSetReason()) {
40537
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reason, typedOther.reason);
40538
        if (lastComparison != 0) {
40539
          return lastComparison;
40540
        }
3226 chandransh 40541
      }
2615 chandransh 40542
      return 0;
40543
    }
40544
 
3430 rajveer 40545
    public _Fields fieldForId(int fieldId) {
40546
      return _Fields.findByThriftId(fieldId);
40547
    }
40548
 
40549
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40550
      org.apache.thrift.protocol.TField field;
2615 chandransh 40551
      iprot.readStructBegin();
40552
      while (true)
40553
      {
40554
        field = iprot.readFieldBegin();
3430 rajveer 40555
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2615 chandransh 40556
          break;
40557
        }
3430 rajveer 40558
        switch (field.id) {
40559
          case 1: // ORDER_ID
40560
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40561
              this.orderId = iprot.readI64();
40562
              setOrderIdIsSet(true);
40563
            } else { 
40564
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40565
            }
40566
            break;
40567
          case 2: // REFUNDED_BY
40568
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
40569
              this.refundedBy = iprot.readString();
40570
            } else { 
40571
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40572
            }
40573
            break;
40574
          case 3: // REASON
40575
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
40576
              this.reason = iprot.readString();
40577
            } else { 
40578
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40579
            }
40580
            break;
40581
          default:
40582
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2615 chandransh 40583
        }
3430 rajveer 40584
        iprot.readFieldEnd();
2615 chandransh 40585
      }
40586
      iprot.readStructEnd();
40587
      validate();
40588
    }
40589
 
3430 rajveer 40590
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2615 chandransh 40591
      validate();
40592
 
40593
      oprot.writeStructBegin(STRUCT_DESC);
40594
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
40595
      oprot.writeI64(this.orderId);
40596
      oprot.writeFieldEnd();
3226 chandransh 40597
      if (this.refundedBy != null) {
40598
        oprot.writeFieldBegin(REFUNDED_BY_FIELD_DESC);
40599
        oprot.writeString(this.refundedBy);
40600
        oprot.writeFieldEnd();
40601
      }
40602
      if (this.reason != null) {
40603
        oprot.writeFieldBegin(REASON_FIELD_DESC);
40604
        oprot.writeString(this.reason);
40605
        oprot.writeFieldEnd();
40606
      }
2615 chandransh 40607
      oprot.writeFieldStop();
40608
      oprot.writeStructEnd();
40609
    }
40610
 
40611
    @Override
40612
    public String toString() {
40613
      StringBuilder sb = new StringBuilder("refundOrder_args(");
40614
      boolean first = true;
40615
 
40616
      sb.append("orderId:");
40617
      sb.append(this.orderId);
40618
      first = false;
3226 chandransh 40619
      if (!first) sb.append(", ");
40620
      sb.append("refundedBy:");
40621
      if (this.refundedBy == null) {
40622
        sb.append("null");
40623
      } else {
40624
        sb.append(this.refundedBy);
40625
      }
40626
      first = false;
40627
      if (!first) sb.append(", ");
40628
      sb.append("reason:");
40629
      if (this.reason == null) {
40630
        sb.append("null");
40631
      } else {
40632
        sb.append(this.reason);
40633
      }
40634
      first = false;
2615 chandransh 40635
      sb.append(")");
40636
      return sb.toString();
40637
    }
40638
 
3430 rajveer 40639
    public void validate() throws org.apache.thrift.TException {
2615 chandransh 40640
      // check for required fields
40641
    }
40642
 
3430 rajveer 40643
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40644
      try {
40645
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40646
      } catch (org.apache.thrift.TException te) {
40647
        throw new java.io.IOException(te);
40648
      }
40649
    }
40650
 
40651
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40652
      try {
40653
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40654
      } catch (org.apache.thrift.TException te) {
40655
        throw new java.io.IOException(te);
40656
      }
40657
    }
40658
 
2615 chandransh 40659
  }
40660
 
3430 rajveer 40661
  public static class refundOrder_result implements org.apache.thrift.TBase<refundOrder_result, refundOrder_result._Fields>, java.io.Serializable, Cloneable   {
40662
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundOrder_result");
2615 chandransh 40663
 
3430 rajveer 40664
    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);
40665
    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);
2615 chandransh 40666
 
3430 rajveer 40667
    private boolean success; // required
40668
    private TransactionServiceException ex; // required
2615 chandransh 40669
 
40670
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40671
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2615 chandransh 40672
      SUCCESS((short)0, "success"),
40673
      EX((short)1, "ex");
40674
 
40675
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40676
 
40677
      static {
40678
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40679
          byName.put(field.getFieldName(), field);
40680
        }
40681
      }
40682
 
40683
      /**
40684
       * Find the _Fields constant that matches fieldId, or null if its not found.
40685
       */
40686
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40687
        switch(fieldId) {
40688
          case 0: // SUCCESS
40689
            return SUCCESS;
40690
          case 1: // EX
40691
            return EX;
40692
          default:
40693
            return null;
40694
        }
2615 chandransh 40695
      }
40696
 
40697
      /**
40698
       * Find the _Fields constant that matches fieldId, throwing an exception
40699
       * if it is not found.
40700
       */
40701
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40702
        _Fields fields = findByThriftId(fieldId);
40703
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40704
        return fields;
40705
      }
40706
 
40707
      /**
40708
       * Find the _Fields constant that matches name, or null if its not found.
40709
       */
40710
      public static _Fields findByName(String name) {
40711
        return byName.get(name);
40712
      }
40713
 
40714
      private final short _thriftId;
40715
      private final String _fieldName;
40716
 
40717
      _Fields(short thriftId, String fieldName) {
40718
        _thriftId = thriftId;
40719
        _fieldName = fieldName;
40720
      }
40721
 
40722
      public short getThriftFieldId() {
40723
        return _thriftId;
40724
      }
40725
 
40726
      public String getFieldName() {
40727
        return _fieldName;
40728
      }
40729
    }
40730
 
40731
    // isset id assignments
40732
    private static final int __SUCCESS_ISSET_ID = 0;
40733
    private BitSet __isset_bit_vector = new BitSet(1);
40734
 
3430 rajveer 40735
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2615 chandransh 40736
    static {
3430 rajveer 40737
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40738
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40739
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
40740
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40741
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
40742
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40743
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundOrder_result.class, metaDataMap);
2615 chandransh 40744
    }
40745
 
40746
    public refundOrder_result() {
40747
    }
40748
 
40749
    public refundOrder_result(
40750
      boolean success,
40751
      TransactionServiceException ex)
40752
    {
40753
      this();
40754
      this.success = success;
40755
      setSuccessIsSet(true);
40756
      this.ex = ex;
40757
    }
40758
 
40759
    /**
40760
     * Performs a deep copy on <i>other</i>.
40761
     */
40762
    public refundOrder_result(refundOrder_result other) {
40763
      __isset_bit_vector.clear();
40764
      __isset_bit_vector.or(other.__isset_bit_vector);
40765
      this.success = other.success;
40766
      if (other.isSetEx()) {
40767
        this.ex = new TransactionServiceException(other.ex);
40768
      }
40769
    }
40770
 
40771
    public refundOrder_result deepCopy() {
40772
      return new refundOrder_result(this);
40773
    }
40774
 
3430 rajveer 40775
    @Override
40776
    public void clear() {
40777
      setSuccessIsSet(false);
40778
      this.success = false;
40779
      this.ex = null;
2615 chandransh 40780
    }
40781
 
40782
    public boolean isSuccess() {
40783
      return this.success;
40784
    }
40785
 
3430 rajveer 40786
    public void setSuccess(boolean success) {
2615 chandransh 40787
      this.success = success;
40788
      setSuccessIsSet(true);
40789
    }
40790
 
40791
    public void unsetSuccess() {
40792
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
40793
    }
40794
 
3430 rajveer 40795
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2615 chandransh 40796
    public boolean isSetSuccess() {
40797
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
40798
    }
40799
 
40800
    public void setSuccessIsSet(boolean value) {
40801
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
40802
    }
40803
 
40804
    public TransactionServiceException getEx() {
40805
      return this.ex;
40806
    }
40807
 
3430 rajveer 40808
    public void setEx(TransactionServiceException ex) {
2615 chandransh 40809
      this.ex = ex;
40810
    }
40811
 
40812
    public void unsetEx() {
40813
      this.ex = null;
40814
    }
40815
 
3430 rajveer 40816
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2615 chandransh 40817
    public boolean isSetEx() {
40818
      return this.ex != null;
40819
    }
40820
 
40821
    public void setExIsSet(boolean value) {
40822
      if (!value) {
40823
        this.ex = null;
40824
      }
40825
    }
40826
 
40827
    public void setFieldValue(_Fields field, Object value) {
40828
      switch (field) {
40829
      case SUCCESS:
40830
        if (value == null) {
40831
          unsetSuccess();
40832
        } else {
40833
          setSuccess((Boolean)value);
40834
        }
40835
        break;
40836
 
40837
      case EX:
40838
        if (value == null) {
40839
          unsetEx();
40840
        } else {
40841
          setEx((TransactionServiceException)value);
40842
        }
40843
        break;
40844
 
40845
      }
40846
    }
40847
 
40848
    public Object getFieldValue(_Fields field) {
40849
      switch (field) {
40850
      case SUCCESS:
3430 rajveer 40851
        return Boolean.valueOf(isSuccess());
2615 chandransh 40852
 
40853
      case EX:
40854
        return getEx();
40855
 
40856
      }
40857
      throw new IllegalStateException();
40858
    }
40859
 
3430 rajveer 40860
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40861
    public boolean isSet(_Fields field) {
40862
      if (field == null) {
40863
        throw new IllegalArgumentException();
40864
      }
2615 chandransh 40865
 
40866
      switch (field) {
40867
      case SUCCESS:
40868
        return isSetSuccess();
40869
      case EX:
40870
        return isSetEx();
40871
      }
40872
      throw new IllegalStateException();
40873
    }
40874
 
40875
    @Override
40876
    public boolean equals(Object that) {
40877
      if (that == null)
40878
        return false;
40879
      if (that instanceof refundOrder_result)
40880
        return this.equals((refundOrder_result)that);
40881
      return false;
40882
    }
40883
 
40884
    public boolean equals(refundOrder_result that) {
40885
      if (that == null)
40886
        return false;
40887
 
40888
      boolean this_present_success = true;
40889
      boolean that_present_success = true;
40890
      if (this_present_success || that_present_success) {
40891
        if (!(this_present_success && that_present_success))
40892
          return false;
40893
        if (this.success != that.success)
40894
          return false;
40895
      }
40896
 
40897
      boolean this_present_ex = true && this.isSetEx();
40898
      boolean that_present_ex = true && that.isSetEx();
40899
      if (this_present_ex || that_present_ex) {
40900
        if (!(this_present_ex && that_present_ex))
40901
          return false;
40902
        if (!this.ex.equals(that.ex))
40903
          return false;
40904
      }
40905
 
40906
      return true;
40907
    }
40908
 
40909
    @Override
40910
    public int hashCode() {
40911
      return 0;
40912
    }
40913
 
40914
    public int compareTo(refundOrder_result other) {
40915
      if (!getClass().equals(other.getClass())) {
40916
        return getClass().getName().compareTo(other.getClass().getName());
40917
      }
40918
 
40919
      int lastComparison = 0;
40920
      refundOrder_result typedOther = (refundOrder_result)other;
40921
 
3430 rajveer 40922
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2615 chandransh 40923
      if (lastComparison != 0) {
40924
        return lastComparison;
40925
      }
3430 rajveer 40926
      if (isSetSuccess()) {
40927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
40928
        if (lastComparison != 0) {
40929
          return lastComparison;
40930
        }
2615 chandransh 40931
      }
3430 rajveer 40932
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2615 chandransh 40933
      if (lastComparison != 0) {
40934
        return lastComparison;
40935
      }
3430 rajveer 40936
      if (isSetEx()) {
40937
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
40938
        if (lastComparison != 0) {
40939
          return lastComparison;
40940
        }
2615 chandransh 40941
      }
40942
      return 0;
40943
    }
40944
 
3430 rajveer 40945
    public _Fields fieldForId(int fieldId) {
40946
      return _Fields.findByThriftId(fieldId);
40947
    }
40948
 
40949
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40950
      org.apache.thrift.protocol.TField field;
2615 chandransh 40951
      iprot.readStructBegin();
40952
      while (true)
40953
      {
40954
        field = iprot.readFieldBegin();
3430 rajveer 40955
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2615 chandransh 40956
          break;
40957
        }
3430 rajveer 40958
        switch (field.id) {
40959
          case 0: // SUCCESS
40960
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
40961
              this.success = iprot.readBool();
40962
              setSuccessIsSet(true);
40963
            } else { 
40964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40965
            }
40966
            break;
40967
          case 1: // EX
40968
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
40969
              this.ex = new TransactionServiceException();
40970
              this.ex.read(iprot);
40971
            } else { 
40972
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40973
            }
40974
            break;
40975
          default:
40976
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2615 chandransh 40977
        }
3430 rajveer 40978
        iprot.readFieldEnd();
2615 chandransh 40979
      }
40980
      iprot.readStructEnd();
40981
      validate();
40982
    }
40983
 
3430 rajveer 40984
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2615 chandransh 40985
      oprot.writeStructBegin(STRUCT_DESC);
40986
 
40987
      if (this.isSetSuccess()) {
40988
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40989
        oprot.writeBool(this.success);
40990
        oprot.writeFieldEnd();
40991
      } else if (this.isSetEx()) {
40992
        oprot.writeFieldBegin(EX_FIELD_DESC);
40993
        this.ex.write(oprot);
40994
        oprot.writeFieldEnd();
40995
      }
40996
      oprot.writeFieldStop();
40997
      oprot.writeStructEnd();
40998
    }
40999
 
41000
    @Override
41001
    public String toString() {
41002
      StringBuilder sb = new StringBuilder("refundOrder_result(");
41003
      boolean first = true;
41004
 
41005
      sb.append("success:");
41006
      sb.append(this.success);
41007
      first = false;
41008
      if (!first) sb.append(", ");
41009
      sb.append("ex:");
41010
      if (this.ex == null) {
41011
        sb.append("null");
41012
      } else {
41013
        sb.append(this.ex);
41014
      }
41015
      first = false;
41016
      sb.append(")");
41017
      return sb.toString();
41018
    }
41019
 
3430 rajveer 41020
    public void validate() throws org.apache.thrift.TException {
2615 chandransh 41021
      // check for required fields
41022
    }
41023
 
3430 rajveer 41024
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41025
      try {
41026
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41027
      } catch (org.apache.thrift.TException te) {
41028
        throw new java.io.IOException(te);
41029
      }
41030
    }
41031
 
41032
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41033
      try {
41034
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41035
      } catch (org.apache.thrift.TException te) {
41036
        throw new java.io.IOException(te);
41037
      }
41038
    }
41039
 
2615 chandransh 41040
  }
41041
 
3430 rajveer 41042
  public static class getReturnOrders_args implements org.apache.thrift.TBase<getReturnOrders_args, getReturnOrders_args._Fields>, java.io.Serializable, Cloneable   {
41043
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrders_args");
2690 chandransh 41044
 
3430 rajveer 41045
    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);
41046
    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);
41047
    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);
2690 chandransh 41048
 
3430 rajveer 41049
    private long warehouseId; // required
41050
    private long fromDate; // required
41051
    private long toDate; // required
2690 chandransh 41052
 
41053
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41054
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 41055
      WAREHOUSE_ID((short)1, "warehouseId"),
41056
      FROM_DATE((short)2, "fromDate"),
41057
      TO_DATE((short)3, "toDate");
41058
 
41059
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41060
 
41061
      static {
41062
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41063
          byName.put(field.getFieldName(), field);
41064
        }
41065
      }
41066
 
41067
      /**
41068
       * Find the _Fields constant that matches fieldId, or null if its not found.
41069
       */
41070
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41071
        switch(fieldId) {
41072
          case 1: // WAREHOUSE_ID
41073
            return WAREHOUSE_ID;
41074
          case 2: // FROM_DATE
41075
            return FROM_DATE;
41076
          case 3: // TO_DATE
41077
            return TO_DATE;
41078
          default:
41079
            return null;
41080
        }
2690 chandransh 41081
      }
41082
 
41083
      /**
41084
       * Find the _Fields constant that matches fieldId, throwing an exception
41085
       * if it is not found.
41086
       */
41087
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41088
        _Fields fields = findByThriftId(fieldId);
41089
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41090
        return fields;
41091
      }
41092
 
41093
      /**
41094
       * Find the _Fields constant that matches name, or null if its not found.
41095
       */
41096
      public static _Fields findByName(String name) {
41097
        return byName.get(name);
41098
      }
41099
 
41100
      private final short _thriftId;
41101
      private final String _fieldName;
41102
 
41103
      _Fields(short thriftId, String fieldName) {
41104
        _thriftId = thriftId;
41105
        _fieldName = fieldName;
41106
      }
41107
 
41108
      public short getThriftFieldId() {
41109
        return _thriftId;
41110
      }
41111
 
41112
      public String getFieldName() {
41113
        return _fieldName;
41114
      }
41115
    }
41116
 
41117
    // isset id assignments
41118
    private static final int __WAREHOUSEID_ISSET_ID = 0;
41119
    private static final int __FROMDATE_ISSET_ID = 1;
41120
    private static final int __TODATE_ISSET_ID = 2;
41121
    private BitSet __isset_bit_vector = new BitSet(3);
41122
 
3430 rajveer 41123
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 41124
    static {
3430 rajveer 41125
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41126
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41127
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41128
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41129
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41130
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41131
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41132
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41133
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrders_args.class, metaDataMap);
2690 chandransh 41134
    }
41135
 
41136
    public getReturnOrders_args() {
41137
    }
41138
 
41139
    public getReturnOrders_args(
41140
      long warehouseId,
41141
      long fromDate,
41142
      long toDate)
41143
    {
41144
      this();
41145
      this.warehouseId = warehouseId;
41146
      setWarehouseIdIsSet(true);
41147
      this.fromDate = fromDate;
41148
      setFromDateIsSet(true);
41149
      this.toDate = toDate;
41150
      setToDateIsSet(true);
41151
    }
41152
 
41153
    /**
41154
     * Performs a deep copy on <i>other</i>.
41155
     */
41156
    public getReturnOrders_args(getReturnOrders_args other) {
41157
      __isset_bit_vector.clear();
41158
      __isset_bit_vector.or(other.__isset_bit_vector);
41159
      this.warehouseId = other.warehouseId;
41160
      this.fromDate = other.fromDate;
41161
      this.toDate = other.toDate;
41162
    }
41163
 
41164
    public getReturnOrders_args deepCopy() {
41165
      return new getReturnOrders_args(this);
41166
    }
41167
 
3430 rajveer 41168
    @Override
41169
    public void clear() {
41170
      setWarehouseIdIsSet(false);
41171
      this.warehouseId = 0;
41172
      setFromDateIsSet(false);
41173
      this.fromDate = 0;
41174
      setToDateIsSet(false);
41175
      this.toDate = 0;
2690 chandransh 41176
    }
41177
 
41178
    public long getWarehouseId() {
41179
      return this.warehouseId;
41180
    }
41181
 
3430 rajveer 41182
    public void setWarehouseId(long warehouseId) {
2690 chandransh 41183
      this.warehouseId = warehouseId;
41184
      setWarehouseIdIsSet(true);
41185
    }
41186
 
41187
    public void unsetWarehouseId() {
41188
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
41189
    }
41190
 
3430 rajveer 41191
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
2690 chandransh 41192
    public boolean isSetWarehouseId() {
41193
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
41194
    }
41195
 
41196
    public void setWarehouseIdIsSet(boolean value) {
41197
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
41198
    }
41199
 
41200
    public long getFromDate() {
41201
      return this.fromDate;
41202
    }
41203
 
3430 rajveer 41204
    public void setFromDate(long fromDate) {
2690 chandransh 41205
      this.fromDate = fromDate;
41206
      setFromDateIsSet(true);
41207
    }
41208
 
41209
    public void unsetFromDate() {
41210
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
41211
    }
41212
 
3430 rajveer 41213
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
2690 chandransh 41214
    public boolean isSetFromDate() {
41215
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
41216
    }
41217
 
41218
    public void setFromDateIsSet(boolean value) {
41219
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
41220
    }
41221
 
41222
    public long getToDate() {
41223
      return this.toDate;
41224
    }
41225
 
3430 rajveer 41226
    public void setToDate(long toDate) {
2690 chandransh 41227
      this.toDate = toDate;
41228
      setToDateIsSet(true);
41229
    }
41230
 
41231
    public void unsetToDate() {
41232
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
41233
    }
41234
 
3430 rajveer 41235
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
2690 chandransh 41236
    public boolean isSetToDate() {
41237
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
41238
    }
41239
 
41240
    public void setToDateIsSet(boolean value) {
41241
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
41242
    }
41243
 
41244
    public void setFieldValue(_Fields field, Object value) {
41245
      switch (field) {
41246
      case WAREHOUSE_ID:
41247
        if (value == null) {
41248
          unsetWarehouseId();
41249
        } else {
41250
          setWarehouseId((Long)value);
41251
        }
41252
        break;
41253
 
41254
      case FROM_DATE:
41255
        if (value == null) {
41256
          unsetFromDate();
41257
        } else {
41258
          setFromDate((Long)value);
41259
        }
41260
        break;
41261
 
41262
      case TO_DATE:
41263
        if (value == null) {
41264
          unsetToDate();
41265
        } else {
41266
          setToDate((Long)value);
41267
        }
41268
        break;
41269
 
41270
      }
41271
    }
41272
 
41273
    public Object getFieldValue(_Fields field) {
41274
      switch (field) {
41275
      case WAREHOUSE_ID:
3430 rajveer 41276
        return Long.valueOf(getWarehouseId());
2690 chandransh 41277
 
41278
      case FROM_DATE:
3430 rajveer 41279
        return Long.valueOf(getFromDate());
2690 chandransh 41280
 
41281
      case TO_DATE:
3430 rajveer 41282
        return Long.valueOf(getToDate());
2690 chandransh 41283
 
41284
      }
41285
      throw new IllegalStateException();
41286
    }
41287
 
3430 rajveer 41288
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41289
    public boolean isSet(_Fields field) {
41290
      if (field == null) {
41291
        throw new IllegalArgumentException();
41292
      }
2690 chandransh 41293
 
41294
      switch (field) {
41295
      case WAREHOUSE_ID:
41296
        return isSetWarehouseId();
41297
      case FROM_DATE:
41298
        return isSetFromDate();
41299
      case TO_DATE:
41300
        return isSetToDate();
41301
      }
41302
      throw new IllegalStateException();
41303
    }
41304
 
41305
    @Override
41306
    public boolean equals(Object that) {
41307
      if (that == null)
41308
        return false;
41309
      if (that instanceof getReturnOrders_args)
41310
        return this.equals((getReturnOrders_args)that);
41311
      return false;
41312
    }
41313
 
41314
    public boolean equals(getReturnOrders_args that) {
41315
      if (that == null)
41316
        return false;
41317
 
41318
      boolean this_present_warehouseId = true;
41319
      boolean that_present_warehouseId = true;
41320
      if (this_present_warehouseId || that_present_warehouseId) {
41321
        if (!(this_present_warehouseId && that_present_warehouseId))
41322
          return false;
41323
        if (this.warehouseId != that.warehouseId)
41324
          return false;
41325
      }
41326
 
41327
      boolean this_present_fromDate = true;
41328
      boolean that_present_fromDate = true;
41329
      if (this_present_fromDate || that_present_fromDate) {
41330
        if (!(this_present_fromDate && that_present_fromDate))
41331
          return false;
41332
        if (this.fromDate != that.fromDate)
41333
          return false;
41334
      }
41335
 
41336
      boolean this_present_toDate = true;
41337
      boolean that_present_toDate = true;
41338
      if (this_present_toDate || that_present_toDate) {
41339
        if (!(this_present_toDate && that_present_toDate))
41340
          return false;
41341
        if (this.toDate != that.toDate)
41342
          return false;
41343
      }
41344
 
41345
      return true;
41346
    }
41347
 
41348
    @Override
41349
    public int hashCode() {
41350
      return 0;
41351
    }
41352
 
41353
    public int compareTo(getReturnOrders_args other) {
41354
      if (!getClass().equals(other.getClass())) {
41355
        return getClass().getName().compareTo(other.getClass().getName());
41356
      }
41357
 
41358
      int lastComparison = 0;
41359
      getReturnOrders_args typedOther = (getReturnOrders_args)other;
41360
 
3430 rajveer 41361
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
2690 chandransh 41362
      if (lastComparison != 0) {
41363
        return lastComparison;
41364
      }
3430 rajveer 41365
      if (isSetWarehouseId()) {
41366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
41367
        if (lastComparison != 0) {
41368
          return lastComparison;
41369
        }
2690 chandransh 41370
      }
3430 rajveer 41371
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
2690 chandransh 41372
      if (lastComparison != 0) {
41373
        return lastComparison;
41374
      }
3430 rajveer 41375
      if (isSetFromDate()) {
41376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
41377
        if (lastComparison != 0) {
41378
          return lastComparison;
41379
        }
2690 chandransh 41380
      }
3430 rajveer 41381
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
2690 chandransh 41382
      if (lastComparison != 0) {
41383
        return lastComparison;
41384
      }
3430 rajveer 41385
      if (isSetToDate()) {
41386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
41387
        if (lastComparison != 0) {
41388
          return lastComparison;
41389
        }
2690 chandransh 41390
      }
41391
      return 0;
41392
    }
41393
 
3430 rajveer 41394
    public _Fields fieldForId(int fieldId) {
41395
      return _Fields.findByThriftId(fieldId);
41396
    }
41397
 
41398
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41399
      org.apache.thrift.protocol.TField field;
2690 chandransh 41400
      iprot.readStructBegin();
41401
      while (true)
41402
      {
41403
        field = iprot.readFieldBegin();
3430 rajveer 41404
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 41405
          break;
41406
        }
3430 rajveer 41407
        switch (field.id) {
41408
          case 1: // WAREHOUSE_ID
41409
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41410
              this.warehouseId = iprot.readI64();
41411
              setWarehouseIdIsSet(true);
41412
            } else { 
41413
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41414
            }
41415
            break;
41416
          case 2: // FROM_DATE
41417
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41418
              this.fromDate = iprot.readI64();
41419
              setFromDateIsSet(true);
41420
            } else { 
41421
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41422
            }
41423
            break;
41424
          case 3: // TO_DATE
41425
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41426
              this.toDate = iprot.readI64();
41427
              setToDateIsSet(true);
41428
            } else { 
41429
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41430
            }
41431
            break;
41432
          default:
41433
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 41434
        }
3430 rajveer 41435
        iprot.readFieldEnd();
2690 chandransh 41436
      }
41437
      iprot.readStructEnd();
41438
      validate();
41439
    }
41440
 
3430 rajveer 41441
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 41442
      validate();
41443
 
41444
      oprot.writeStructBegin(STRUCT_DESC);
41445
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
41446
      oprot.writeI64(this.warehouseId);
41447
      oprot.writeFieldEnd();
41448
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
41449
      oprot.writeI64(this.fromDate);
41450
      oprot.writeFieldEnd();
41451
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
41452
      oprot.writeI64(this.toDate);
41453
      oprot.writeFieldEnd();
41454
      oprot.writeFieldStop();
41455
      oprot.writeStructEnd();
41456
    }
41457
 
41458
    @Override
41459
    public String toString() {
41460
      StringBuilder sb = new StringBuilder("getReturnOrders_args(");
41461
      boolean first = true;
41462
 
41463
      sb.append("warehouseId:");
41464
      sb.append(this.warehouseId);
41465
      first = false;
41466
      if (!first) sb.append(", ");
41467
      sb.append("fromDate:");
41468
      sb.append(this.fromDate);
41469
      first = false;
41470
      if (!first) sb.append(", ");
41471
      sb.append("toDate:");
41472
      sb.append(this.toDate);
41473
      first = false;
41474
      sb.append(")");
41475
      return sb.toString();
41476
    }
41477
 
3430 rajveer 41478
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 41479
      // check for required fields
41480
    }
41481
 
3430 rajveer 41482
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41483
      try {
41484
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41485
      } catch (org.apache.thrift.TException te) {
41486
        throw new java.io.IOException(te);
41487
      }
41488
    }
41489
 
41490
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41491
      try {
41492
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41493
      } catch (org.apache.thrift.TException te) {
41494
        throw new java.io.IOException(te);
41495
      }
41496
    }
41497
 
2690 chandransh 41498
  }
41499
 
3430 rajveer 41500
  public static class getReturnOrders_result implements org.apache.thrift.TBase<getReturnOrders_result, getReturnOrders_result._Fields>, java.io.Serializable, Cloneable   {
41501
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrders_result");
2690 chandransh 41502
 
3430 rajveer 41503
    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);
2690 chandransh 41504
 
3430 rajveer 41505
    private List<ReturnOrder> success; // required
2690 chandransh 41506
 
41507
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41508
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 41509
      SUCCESS((short)0, "success");
41510
 
41511
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41512
 
41513
      static {
41514
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41515
          byName.put(field.getFieldName(), field);
41516
        }
41517
      }
41518
 
41519
      /**
41520
       * Find the _Fields constant that matches fieldId, or null if its not found.
41521
       */
41522
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41523
        switch(fieldId) {
41524
          case 0: // SUCCESS
41525
            return SUCCESS;
41526
          default:
41527
            return null;
41528
        }
2690 chandransh 41529
      }
41530
 
41531
      /**
41532
       * Find the _Fields constant that matches fieldId, throwing an exception
41533
       * if it is not found.
41534
       */
41535
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41536
        _Fields fields = findByThriftId(fieldId);
41537
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41538
        return fields;
41539
      }
41540
 
41541
      /**
41542
       * Find the _Fields constant that matches name, or null if its not found.
41543
       */
41544
      public static _Fields findByName(String name) {
41545
        return byName.get(name);
41546
      }
41547
 
41548
      private final short _thriftId;
41549
      private final String _fieldName;
41550
 
41551
      _Fields(short thriftId, String fieldName) {
41552
        _thriftId = thriftId;
41553
        _fieldName = fieldName;
41554
      }
41555
 
41556
      public short getThriftFieldId() {
41557
        return _thriftId;
41558
      }
41559
 
41560
      public String getFieldName() {
41561
        return _fieldName;
41562
      }
41563
    }
41564
 
41565
    // isset id assignments
41566
 
3430 rajveer 41567
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 41568
    static {
3430 rajveer 41569
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41570
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41571
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
41572
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnOrder.class))));
41573
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41574
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrders_result.class, metaDataMap);
2690 chandransh 41575
    }
41576
 
41577
    public getReturnOrders_result() {
41578
    }
41579
 
41580
    public getReturnOrders_result(
41581
      List<ReturnOrder> success)
41582
    {
41583
      this();
41584
      this.success = success;
41585
    }
41586
 
41587
    /**
41588
     * Performs a deep copy on <i>other</i>.
41589
     */
41590
    public getReturnOrders_result(getReturnOrders_result other) {
41591
      if (other.isSetSuccess()) {
41592
        List<ReturnOrder> __this__success = new ArrayList<ReturnOrder>();
41593
        for (ReturnOrder other_element : other.success) {
41594
          __this__success.add(new ReturnOrder(other_element));
41595
        }
41596
        this.success = __this__success;
41597
      }
41598
    }
41599
 
41600
    public getReturnOrders_result deepCopy() {
41601
      return new getReturnOrders_result(this);
41602
    }
41603
 
3430 rajveer 41604
    @Override
41605
    public void clear() {
41606
      this.success = null;
2690 chandransh 41607
    }
41608
 
41609
    public int getSuccessSize() {
41610
      return (this.success == null) ? 0 : this.success.size();
41611
    }
41612
 
41613
    public java.util.Iterator<ReturnOrder> getSuccessIterator() {
41614
      return (this.success == null) ? null : this.success.iterator();
41615
    }
41616
 
41617
    public void addToSuccess(ReturnOrder elem) {
41618
      if (this.success == null) {
41619
        this.success = new ArrayList<ReturnOrder>();
41620
      }
41621
      this.success.add(elem);
41622
    }
41623
 
41624
    public List<ReturnOrder> getSuccess() {
41625
      return this.success;
41626
    }
41627
 
3430 rajveer 41628
    public void setSuccess(List<ReturnOrder> success) {
2690 chandransh 41629
      this.success = success;
41630
    }
41631
 
41632
    public void unsetSuccess() {
41633
      this.success = null;
41634
    }
41635
 
3430 rajveer 41636
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2690 chandransh 41637
    public boolean isSetSuccess() {
41638
      return this.success != null;
41639
    }
41640
 
41641
    public void setSuccessIsSet(boolean value) {
41642
      if (!value) {
41643
        this.success = null;
41644
      }
41645
    }
41646
 
41647
    public void setFieldValue(_Fields field, Object value) {
41648
      switch (field) {
41649
      case SUCCESS:
41650
        if (value == null) {
41651
          unsetSuccess();
41652
        } else {
41653
          setSuccess((List<ReturnOrder>)value);
41654
        }
41655
        break;
41656
 
41657
      }
41658
    }
41659
 
41660
    public Object getFieldValue(_Fields field) {
41661
      switch (field) {
41662
      case SUCCESS:
41663
        return getSuccess();
41664
 
41665
      }
41666
      throw new IllegalStateException();
41667
    }
41668
 
3430 rajveer 41669
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41670
    public boolean isSet(_Fields field) {
41671
      if (field == null) {
41672
        throw new IllegalArgumentException();
41673
      }
2690 chandransh 41674
 
41675
      switch (field) {
41676
      case SUCCESS:
41677
        return isSetSuccess();
41678
      }
41679
      throw new IllegalStateException();
41680
    }
41681
 
41682
    @Override
41683
    public boolean equals(Object that) {
41684
      if (that == null)
41685
        return false;
41686
      if (that instanceof getReturnOrders_result)
41687
        return this.equals((getReturnOrders_result)that);
41688
      return false;
41689
    }
41690
 
41691
    public boolean equals(getReturnOrders_result that) {
41692
      if (that == null)
41693
        return false;
41694
 
41695
      boolean this_present_success = true && this.isSetSuccess();
41696
      boolean that_present_success = true && that.isSetSuccess();
41697
      if (this_present_success || that_present_success) {
41698
        if (!(this_present_success && that_present_success))
41699
          return false;
41700
        if (!this.success.equals(that.success))
41701
          return false;
41702
      }
41703
 
41704
      return true;
41705
    }
41706
 
41707
    @Override
41708
    public int hashCode() {
41709
      return 0;
41710
    }
41711
 
41712
    public int compareTo(getReturnOrders_result other) {
41713
      if (!getClass().equals(other.getClass())) {
41714
        return getClass().getName().compareTo(other.getClass().getName());
41715
      }
41716
 
41717
      int lastComparison = 0;
41718
      getReturnOrders_result typedOther = (getReturnOrders_result)other;
41719
 
3430 rajveer 41720
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2690 chandransh 41721
      if (lastComparison != 0) {
41722
        return lastComparison;
41723
      }
3430 rajveer 41724
      if (isSetSuccess()) {
41725
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
41726
        if (lastComparison != 0) {
41727
          return lastComparison;
41728
        }
2690 chandransh 41729
      }
41730
      return 0;
41731
    }
41732
 
3430 rajveer 41733
    public _Fields fieldForId(int fieldId) {
41734
      return _Fields.findByThriftId(fieldId);
41735
    }
41736
 
41737
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41738
      org.apache.thrift.protocol.TField field;
2690 chandransh 41739
      iprot.readStructBegin();
41740
      while (true)
41741
      {
41742
        field = iprot.readFieldBegin();
3430 rajveer 41743
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 41744
          break;
41745
        }
3430 rajveer 41746
        switch (field.id) {
41747
          case 0: // SUCCESS
41748
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
41749
              {
4133 chandransh 41750
                org.apache.thrift.protocol.TList _list117 = iprot.readListBegin();
41751
                this.success = new ArrayList<ReturnOrder>(_list117.size);
41752
                for (int _i118 = 0; _i118 < _list117.size; ++_i118)
2690 chandransh 41753
                {
4133 chandransh 41754
                  ReturnOrder _elem119; // required
41755
                  _elem119 = new ReturnOrder();
41756
                  _elem119.read(iprot);
41757
                  this.success.add(_elem119);
2690 chandransh 41758
                }
3430 rajveer 41759
                iprot.readListEnd();
2690 chandransh 41760
              }
3430 rajveer 41761
            } else { 
41762
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41763
            }
41764
            break;
41765
          default:
41766
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 41767
        }
3430 rajveer 41768
        iprot.readFieldEnd();
2690 chandransh 41769
      }
41770
      iprot.readStructEnd();
41771
      validate();
41772
    }
41773
 
3430 rajveer 41774
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 41775
      oprot.writeStructBegin(STRUCT_DESC);
41776
 
41777
      if (this.isSetSuccess()) {
41778
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41779
        {
3430 rajveer 41780
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 41781
          for (ReturnOrder _iter120 : this.success)
2690 chandransh 41782
          {
4133 chandransh 41783
            _iter120.write(oprot);
2690 chandransh 41784
          }
41785
          oprot.writeListEnd();
41786
        }
41787
        oprot.writeFieldEnd();
41788
      }
41789
      oprot.writeFieldStop();
41790
      oprot.writeStructEnd();
41791
    }
41792
 
41793
    @Override
41794
    public String toString() {
41795
      StringBuilder sb = new StringBuilder("getReturnOrders_result(");
41796
      boolean first = true;
41797
 
41798
      sb.append("success:");
41799
      if (this.success == null) {
41800
        sb.append("null");
41801
      } else {
41802
        sb.append(this.success);
41803
      }
41804
      first = false;
41805
      sb.append(")");
41806
      return sb.toString();
41807
    }
41808
 
3430 rajveer 41809
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 41810
      // check for required fields
41811
    }
41812
 
3430 rajveer 41813
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41814
      try {
41815
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41816
      } catch (org.apache.thrift.TException te) {
41817
        throw new java.io.IOException(te);
41818
      }
41819
    }
41820
 
41821
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41822
      try {
41823
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41824
      } catch (org.apache.thrift.TException te) {
41825
        throw new java.io.IOException(te);
41826
      }
41827
    }
41828
 
2690 chandransh 41829
  }
41830
 
3430 rajveer 41831
  public static class getReturnOrder_args implements org.apache.thrift.TBase<getReturnOrder_args, getReturnOrder_args._Fields>, java.io.Serializable, Cloneable   {
41832
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrder_args");
2700 chandransh 41833
 
3430 rajveer 41834
    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);
2700 chandransh 41835
 
3430 rajveer 41836
    private long id; // required
2700 chandransh 41837
 
41838
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41839
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2700 chandransh 41840
      ID((short)1, "id");
41841
 
41842
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41843
 
41844
      static {
41845
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41846
          byName.put(field.getFieldName(), field);
41847
        }
41848
      }
41849
 
41850
      /**
41851
       * Find the _Fields constant that matches fieldId, or null if its not found.
41852
       */
41853
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41854
        switch(fieldId) {
41855
          case 1: // ID
41856
            return ID;
41857
          default:
41858
            return null;
41859
        }
2700 chandransh 41860
      }
41861
 
41862
      /**
41863
       * Find the _Fields constant that matches fieldId, throwing an exception
41864
       * if it is not found.
41865
       */
41866
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41867
        _Fields fields = findByThriftId(fieldId);
41868
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41869
        return fields;
41870
      }
41871
 
41872
      /**
41873
       * Find the _Fields constant that matches name, or null if its not found.
41874
       */
41875
      public static _Fields findByName(String name) {
41876
        return byName.get(name);
41877
      }
41878
 
41879
      private final short _thriftId;
41880
      private final String _fieldName;
41881
 
41882
      _Fields(short thriftId, String fieldName) {
41883
        _thriftId = thriftId;
41884
        _fieldName = fieldName;
41885
      }
41886
 
41887
      public short getThriftFieldId() {
41888
        return _thriftId;
41889
      }
41890
 
41891
      public String getFieldName() {
41892
        return _fieldName;
41893
      }
41894
    }
41895
 
41896
    // isset id assignments
41897
    private static final int __ID_ISSET_ID = 0;
41898
    private BitSet __isset_bit_vector = new BitSet(1);
41899
 
3430 rajveer 41900
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2700 chandransh 41901
    static {
3430 rajveer 41902
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41903
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41904
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41905
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41906
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrder_args.class, metaDataMap);
2700 chandransh 41907
    }
41908
 
41909
    public getReturnOrder_args() {
41910
    }
41911
 
41912
    public getReturnOrder_args(
41913
      long id)
41914
    {
41915
      this();
41916
      this.id = id;
41917
      setIdIsSet(true);
41918
    }
41919
 
41920
    /**
41921
     * Performs a deep copy on <i>other</i>.
41922
     */
41923
    public getReturnOrder_args(getReturnOrder_args other) {
41924
      __isset_bit_vector.clear();
41925
      __isset_bit_vector.or(other.__isset_bit_vector);
41926
      this.id = other.id;
41927
    }
41928
 
41929
    public getReturnOrder_args deepCopy() {
41930
      return new getReturnOrder_args(this);
41931
    }
41932
 
3430 rajveer 41933
    @Override
41934
    public void clear() {
41935
      setIdIsSet(false);
41936
      this.id = 0;
2700 chandransh 41937
    }
41938
 
41939
    public long getId() {
41940
      return this.id;
41941
    }
41942
 
3430 rajveer 41943
    public void setId(long id) {
2700 chandransh 41944
      this.id = id;
41945
      setIdIsSet(true);
41946
    }
41947
 
41948
    public void unsetId() {
41949
      __isset_bit_vector.clear(__ID_ISSET_ID);
41950
    }
41951
 
3430 rajveer 41952
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
2700 chandransh 41953
    public boolean isSetId() {
41954
      return __isset_bit_vector.get(__ID_ISSET_ID);
41955
    }
41956
 
41957
    public void setIdIsSet(boolean value) {
41958
      __isset_bit_vector.set(__ID_ISSET_ID, value);
41959
    }
41960
 
41961
    public void setFieldValue(_Fields field, Object value) {
41962
      switch (field) {
41963
      case ID:
41964
        if (value == null) {
41965
          unsetId();
41966
        } else {
41967
          setId((Long)value);
41968
        }
41969
        break;
41970
 
41971
      }
41972
    }
41973
 
41974
    public Object getFieldValue(_Fields field) {
41975
      switch (field) {
41976
      case ID:
3430 rajveer 41977
        return Long.valueOf(getId());
2700 chandransh 41978
 
41979
      }
41980
      throw new IllegalStateException();
41981
    }
41982
 
3430 rajveer 41983
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41984
    public boolean isSet(_Fields field) {
41985
      if (field == null) {
41986
        throw new IllegalArgumentException();
41987
      }
2700 chandransh 41988
 
41989
      switch (field) {
41990
      case ID:
41991
        return isSetId();
41992
      }
41993
      throw new IllegalStateException();
41994
    }
41995
 
41996
    @Override
41997
    public boolean equals(Object that) {
41998
      if (that == null)
41999
        return false;
42000
      if (that instanceof getReturnOrder_args)
42001
        return this.equals((getReturnOrder_args)that);
42002
      return false;
42003
    }
42004
 
42005
    public boolean equals(getReturnOrder_args that) {
42006
      if (that == null)
42007
        return false;
42008
 
42009
      boolean this_present_id = true;
42010
      boolean that_present_id = true;
42011
      if (this_present_id || that_present_id) {
42012
        if (!(this_present_id && that_present_id))
42013
          return false;
42014
        if (this.id != that.id)
42015
          return false;
42016
      }
42017
 
42018
      return true;
42019
    }
42020
 
42021
    @Override
42022
    public int hashCode() {
42023
      return 0;
42024
    }
42025
 
42026
    public int compareTo(getReturnOrder_args other) {
42027
      if (!getClass().equals(other.getClass())) {
42028
        return getClass().getName().compareTo(other.getClass().getName());
42029
      }
42030
 
42031
      int lastComparison = 0;
42032
      getReturnOrder_args typedOther = (getReturnOrder_args)other;
42033
 
3430 rajveer 42034
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
2700 chandransh 42035
      if (lastComparison != 0) {
42036
        return lastComparison;
42037
      }
3430 rajveer 42038
      if (isSetId()) {
42039
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
42040
        if (lastComparison != 0) {
42041
          return lastComparison;
42042
        }
2700 chandransh 42043
      }
42044
      return 0;
42045
    }
42046
 
3430 rajveer 42047
    public _Fields fieldForId(int fieldId) {
42048
      return _Fields.findByThriftId(fieldId);
42049
    }
42050
 
42051
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42052
      org.apache.thrift.protocol.TField field;
2700 chandransh 42053
      iprot.readStructBegin();
42054
      while (true)
42055
      {
42056
        field = iprot.readFieldBegin();
3430 rajveer 42057
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2700 chandransh 42058
          break;
42059
        }
3430 rajveer 42060
        switch (field.id) {
42061
          case 1: // ID
42062
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42063
              this.id = iprot.readI64();
42064
              setIdIsSet(true);
42065
            } else { 
42066
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42067
            }
42068
            break;
42069
          default:
42070
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2700 chandransh 42071
        }
3430 rajveer 42072
        iprot.readFieldEnd();
2700 chandransh 42073
      }
42074
      iprot.readStructEnd();
42075
      validate();
42076
    }
42077
 
3430 rajveer 42078
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2700 chandransh 42079
      validate();
42080
 
42081
      oprot.writeStructBegin(STRUCT_DESC);
42082
      oprot.writeFieldBegin(ID_FIELD_DESC);
42083
      oprot.writeI64(this.id);
42084
      oprot.writeFieldEnd();
42085
      oprot.writeFieldStop();
42086
      oprot.writeStructEnd();
42087
    }
42088
 
42089
    @Override
42090
    public String toString() {
42091
      StringBuilder sb = new StringBuilder("getReturnOrder_args(");
42092
      boolean first = true;
42093
 
42094
      sb.append("id:");
42095
      sb.append(this.id);
42096
      first = false;
42097
      sb.append(")");
42098
      return sb.toString();
42099
    }
42100
 
3430 rajveer 42101
    public void validate() throws org.apache.thrift.TException {
2700 chandransh 42102
      // check for required fields
42103
    }
42104
 
3430 rajveer 42105
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42106
      try {
42107
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42108
      } catch (org.apache.thrift.TException te) {
42109
        throw new java.io.IOException(te);
42110
      }
42111
    }
42112
 
42113
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42114
      try {
42115
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42116
      } catch (org.apache.thrift.TException te) {
42117
        throw new java.io.IOException(te);
42118
      }
42119
    }
42120
 
2700 chandransh 42121
  }
42122
 
3430 rajveer 42123
  public static class getReturnOrder_result implements org.apache.thrift.TBase<getReturnOrder_result, getReturnOrder_result._Fields>, java.io.Serializable, Cloneable   {
42124
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrder_result");
2700 chandransh 42125
 
3430 rajveer 42126
    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);
42127
    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);
2700 chandransh 42128
 
3430 rajveer 42129
    private ReturnOrder success; // required
42130
    private TransactionServiceException ex; // required
2700 chandransh 42131
 
42132
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 42133
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2700 chandransh 42134
      SUCCESS((short)0, "success"),
42135
      EX((short)1, "ex");
42136
 
42137
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42138
 
42139
      static {
42140
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42141
          byName.put(field.getFieldName(), field);
42142
        }
42143
      }
42144
 
42145
      /**
42146
       * Find the _Fields constant that matches fieldId, or null if its not found.
42147
       */
42148
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 42149
        switch(fieldId) {
42150
          case 0: // SUCCESS
42151
            return SUCCESS;
42152
          case 1: // EX
42153
            return EX;
42154
          default:
42155
            return null;
42156
        }
2700 chandransh 42157
      }
42158
 
42159
      /**
42160
       * Find the _Fields constant that matches fieldId, throwing an exception
42161
       * if it is not found.
42162
       */
42163
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42164
        _Fields fields = findByThriftId(fieldId);
42165
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42166
        return fields;
42167
      }
42168
 
42169
      /**
42170
       * Find the _Fields constant that matches name, or null if its not found.
42171
       */
42172
      public static _Fields findByName(String name) {
42173
        return byName.get(name);
42174
      }
42175
 
42176
      private final short _thriftId;
42177
      private final String _fieldName;
42178
 
42179
      _Fields(short thriftId, String fieldName) {
42180
        _thriftId = thriftId;
42181
        _fieldName = fieldName;
42182
      }
42183
 
42184
      public short getThriftFieldId() {
42185
        return _thriftId;
42186
      }
42187
 
42188
      public String getFieldName() {
42189
        return _fieldName;
42190
      }
42191
    }
42192
 
42193
    // isset id assignments
42194
 
3430 rajveer 42195
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2700 chandransh 42196
    static {
3430 rajveer 42197
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42198
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42199
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnOrder.class)));
42200
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42201
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
42202
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42203
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrder_result.class, metaDataMap);
2700 chandransh 42204
    }
42205
 
42206
    public getReturnOrder_result() {
42207
    }
42208
 
42209
    public getReturnOrder_result(
42210
      ReturnOrder success,
42211
      TransactionServiceException ex)
42212
    {
42213
      this();
42214
      this.success = success;
42215
      this.ex = ex;
42216
    }
42217
 
42218
    /**
42219
     * Performs a deep copy on <i>other</i>.
42220
     */
42221
    public getReturnOrder_result(getReturnOrder_result other) {
42222
      if (other.isSetSuccess()) {
42223
        this.success = new ReturnOrder(other.success);
42224
      }
42225
      if (other.isSetEx()) {
42226
        this.ex = new TransactionServiceException(other.ex);
42227
      }
42228
    }
42229
 
42230
    public getReturnOrder_result deepCopy() {
42231
      return new getReturnOrder_result(this);
42232
    }
42233
 
3430 rajveer 42234
    @Override
42235
    public void clear() {
42236
      this.success = null;
42237
      this.ex = null;
2700 chandransh 42238
    }
42239
 
42240
    public ReturnOrder getSuccess() {
42241
      return this.success;
42242
    }
42243
 
3430 rajveer 42244
    public void setSuccess(ReturnOrder success) {
2700 chandransh 42245
      this.success = success;
42246
    }
42247
 
42248
    public void unsetSuccess() {
42249
      this.success = null;
42250
    }
42251
 
3430 rajveer 42252
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2700 chandransh 42253
    public boolean isSetSuccess() {
42254
      return this.success != null;
42255
    }
42256
 
42257
    public void setSuccessIsSet(boolean value) {
42258
      if (!value) {
42259
        this.success = null;
42260
      }
42261
    }
42262
 
42263
    public TransactionServiceException getEx() {
42264
      return this.ex;
42265
    }
42266
 
3430 rajveer 42267
    public void setEx(TransactionServiceException ex) {
2700 chandransh 42268
      this.ex = ex;
42269
    }
42270
 
42271
    public void unsetEx() {
42272
      this.ex = null;
42273
    }
42274
 
3430 rajveer 42275
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2700 chandransh 42276
    public boolean isSetEx() {
42277
      return this.ex != null;
42278
    }
42279
 
42280
    public void setExIsSet(boolean value) {
42281
      if (!value) {
42282
        this.ex = null;
42283
      }
42284
    }
42285
 
42286
    public void setFieldValue(_Fields field, Object value) {
42287
      switch (field) {
42288
      case SUCCESS:
42289
        if (value == null) {
42290
          unsetSuccess();
42291
        } else {
42292
          setSuccess((ReturnOrder)value);
42293
        }
42294
        break;
42295
 
42296
      case EX:
42297
        if (value == null) {
42298
          unsetEx();
42299
        } else {
42300
          setEx((TransactionServiceException)value);
42301
        }
42302
        break;
42303
 
42304
      }
42305
    }
42306
 
42307
    public Object getFieldValue(_Fields field) {
42308
      switch (field) {
42309
      case SUCCESS:
42310
        return getSuccess();
42311
 
42312
      case EX:
42313
        return getEx();
42314
 
42315
      }
42316
      throw new IllegalStateException();
42317
    }
42318
 
3430 rajveer 42319
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42320
    public boolean isSet(_Fields field) {
42321
      if (field == null) {
42322
        throw new IllegalArgumentException();
42323
      }
2700 chandransh 42324
 
42325
      switch (field) {
42326
      case SUCCESS:
42327
        return isSetSuccess();
42328
      case EX:
42329
        return isSetEx();
42330
      }
42331
      throw new IllegalStateException();
42332
    }
42333
 
42334
    @Override
42335
    public boolean equals(Object that) {
42336
      if (that == null)
42337
        return false;
42338
      if (that instanceof getReturnOrder_result)
42339
        return this.equals((getReturnOrder_result)that);
42340
      return false;
42341
    }
42342
 
42343
    public boolean equals(getReturnOrder_result that) {
42344
      if (that == null)
42345
        return false;
42346
 
42347
      boolean this_present_success = true && this.isSetSuccess();
42348
      boolean that_present_success = true && that.isSetSuccess();
42349
      if (this_present_success || that_present_success) {
42350
        if (!(this_present_success && that_present_success))
42351
          return false;
42352
        if (!this.success.equals(that.success))
42353
          return false;
42354
      }
42355
 
42356
      boolean this_present_ex = true && this.isSetEx();
42357
      boolean that_present_ex = true && that.isSetEx();
42358
      if (this_present_ex || that_present_ex) {
42359
        if (!(this_present_ex && that_present_ex))
42360
          return false;
42361
        if (!this.ex.equals(that.ex))
42362
          return false;
42363
      }
42364
 
42365
      return true;
42366
    }
42367
 
42368
    @Override
42369
    public int hashCode() {
42370
      return 0;
42371
    }
42372
 
42373
    public int compareTo(getReturnOrder_result other) {
42374
      if (!getClass().equals(other.getClass())) {
42375
        return getClass().getName().compareTo(other.getClass().getName());
42376
      }
42377
 
42378
      int lastComparison = 0;
42379
      getReturnOrder_result typedOther = (getReturnOrder_result)other;
42380
 
3430 rajveer 42381
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2700 chandransh 42382
      if (lastComparison != 0) {
42383
        return lastComparison;
42384
      }
3430 rajveer 42385
      if (isSetSuccess()) {
42386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
42387
        if (lastComparison != 0) {
42388
          return lastComparison;
42389
        }
2700 chandransh 42390
      }
3430 rajveer 42391
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2700 chandransh 42392
      if (lastComparison != 0) {
42393
        return lastComparison;
42394
      }
3430 rajveer 42395
      if (isSetEx()) {
42396
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
42397
        if (lastComparison != 0) {
42398
          return lastComparison;
42399
        }
2700 chandransh 42400
      }
42401
      return 0;
42402
    }
42403
 
3430 rajveer 42404
    public _Fields fieldForId(int fieldId) {
42405
      return _Fields.findByThriftId(fieldId);
42406
    }
42407
 
42408
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42409
      org.apache.thrift.protocol.TField field;
2700 chandransh 42410
      iprot.readStructBegin();
42411
      while (true)
42412
      {
42413
        field = iprot.readFieldBegin();
3430 rajveer 42414
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2700 chandransh 42415
          break;
42416
        }
3430 rajveer 42417
        switch (field.id) {
42418
          case 0: // SUCCESS
42419
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
42420
              this.success = new ReturnOrder();
42421
              this.success.read(iprot);
42422
            } else { 
42423
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42424
            }
42425
            break;
42426
          case 1: // EX
42427
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
42428
              this.ex = new TransactionServiceException();
42429
              this.ex.read(iprot);
42430
            } else { 
42431
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42432
            }
42433
            break;
42434
          default:
42435
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2700 chandransh 42436
        }
3430 rajveer 42437
        iprot.readFieldEnd();
2700 chandransh 42438
      }
42439
      iprot.readStructEnd();
42440
      validate();
42441
    }
42442
 
3430 rajveer 42443
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2700 chandransh 42444
      oprot.writeStructBegin(STRUCT_DESC);
42445
 
42446
      if (this.isSetSuccess()) {
42447
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42448
        this.success.write(oprot);
42449
        oprot.writeFieldEnd();
42450
      } else if (this.isSetEx()) {
42451
        oprot.writeFieldBegin(EX_FIELD_DESC);
42452
        this.ex.write(oprot);
42453
        oprot.writeFieldEnd();
42454
      }
42455
      oprot.writeFieldStop();
42456
      oprot.writeStructEnd();
42457
    }
42458
 
42459
    @Override
42460
    public String toString() {
42461
      StringBuilder sb = new StringBuilder("getReturnOrder_result(");
42462
      boolean first = true;
42463
 
42464
      sb.append("success:");
42465
      if (this.success == null) {
42466
        sb.append("null");
42467
      } else {
42468
        sb.append(this.success);
42469
      }
42470
      first = false;
42471
      if (!first) sb.append(", ");
42472
      sb.append("ex:");
42473
      if (this.ex == null) {
42474
        sb.append("null");
42475
      } else {
42476
        sb.append(this.ex);
42477
      }
42478
      first = false;
42479
      sb.append(")");
42480
      return sb.toString();
42481
    }
42482
 
3430 rajveer 42483
    public void validate() throws org.apache.thrift.TException {
2700 chandransh 42484
      // check for required fields
42485
    }
42486
 
3430 rajveer 42487
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42488
      try {
42489
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42490
      } catch (org.apache.thrift.TException te) {
42491
        throw new java.io.IOException(te);
42492
      }
42493
    }
42494
 
42495
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42496
      try {
42497
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42498
      } catch (org.apache.thrift.TException te) {
42499
        throw new java.io.IOException(te);
42500
      }
42501
    }
42502
 
2700 chandransh 42503
  }
42504
 
3430 rajveer 42505
  public static class processReturn_args implements org.apache.thrift.TBase<processReturn_args, processReturn_args._Fields>, java.io.Serializable, Cloneable   {
42506
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processReturn_args");
2690 chandransh 42507
 
3430 rajveer 42508
    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);
2690 chandransh 42509
 
3430 rajveer 42510
    private long returnOrderId; // required
2690 chandransh 42511
 
42512
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 42513
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 42514
      RETURN_ORDER_ID((short)1, "returnOrderId");
42515
 
42516
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42517
 
42518
      static {
42519
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42520
          byName.put(field.getFieldName(), field);
42521
        }
42522
      }
42523
 
42524
      /**
42525
       * Find the _Fields constant that matches fieldId, or null if its not found.
42526
       */
42527
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 42528
        switch(fieldId) {
42529
          case 1: // RETURN_ORDER_ID
42530
            return RETURN_ORDER_ID;
42531
          default:
42532
            return null;
42533
        }
2690 chandransh 42534
      }
42535
 
42536
      /**
42537
       * Find the _Fields constant that matches fieldId, throwing an exception
42538
       * if it is not found.
42539
       */
42540
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42541
        _Fields fields = findByThriftId(fieldId);
42542
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42543
        return fields;
42544
      }
42545
 
42546
      /**
42547
       * Find the _Fields constant that matches name, or null if its not found.
42548
       */
42549
      public static _Fields findByName(String name) {
42550
        return byName.get(name);
42551
      }
42552
 
42553
      private final short _thriftId;
42554
      private final String _fieldName;
42555
 
42556
      _Fields(short thriftId, String fieldName) {
42557
        _thriftId = thriftId;
42558
        _fieldName = fieldName;
42559
      }
42560
 
42561
      public short getThriftFieldId() {
42562
        return _thriftId;
42563
      }
42564
 
42565
      public String getFieldName() {
42566
        return _fieldName;
42567
      }
42568
    }
42569
 
42570
    // isset id assignments
42571
    private static final int __RETURNORDERID_ISSET_ID = 0;
42572
    private BitSet __isset_bit_vector = new BitSet(1);
42573
 
3430 rajveer 42574
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 42575
    static {
3430 rajveer 42576
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42577
      tmpMap.put(_Fields.RETURN_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("returnOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42578
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42579
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42580
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processReturn_args.class, metaDataMap);
2690 chandransh 42581
    }
42582
 
42583
    public processReturn_args() {
42584
    }
42585
 
42586
    public processReturn_args(
42587
      long returnOrderId)
42588
    {
42589
      this();
42590
      this.returnOrderId = returnOrderId;
42591
      setReturnOrderIdIsSet(true);
42592
    }
42593
 
42594
    /**
42595
     * Performs a deep copy on <i>other</i>.
42596
     */
42597
    public processReturn_args(processReturn_args other) {
42598
      __isset_bit_vector.clear();
42599
      __isset_bit_vector.or(other.__isset_bit_vector);
42600
      this.returnOrderId = other.returnOrderId;
42601
    }
42602
 
42603
    public processReturn_args deepCopy() {
42604
      return new processReturn_args(this);
42605
    }
42606
 
3430 rajveer 42607
    @Override
42608
    public void clear() {
42609
      setReturnOrderIdIsSet(false);
42610
      this.returnOrderId = 0;
2690 chandransh 42611
    }
42612
 
42613
    public long getReturnOrderId() {
42614
      return this.returnOrderId;
42615
    }
42616
 
3430 rajveer 42617
    public void setReturnOrderId(long returnOrderId) {
2690 chandransh 42618
      this.returnOrderId = returnOrderId;
42619
      setReturnOrderIdIsSet(true);
42620
    }
42621
 
42622
    public void unsetReturnOrderId() {
42623
      __isset_bit_vector.clear(__RETURNORDERID_ISSET_ID);
42624
    }
42625
 
3430 rajveer 42626
    /** Returns true if field returnOrderId is set (has been assigned a value) and false otherwise */
2690 chandransh 42627
    public boolean isSetReturnOrderId() {
42628
      return __isset_bit_vector.get(__RETURNORDERID_ISSET_ID);
42629
    }
42630
 
42631
    public void setReturnOrderIdIsSet(boolean value) {
42632
      __isset_bit_vector.set(__RETURNORDERID_ISSET_ID, value);
42633
    }
42634
 
42635
    public void setFieldValue(_Fields field, Object value) {
42636
      switch (field) {
42637
      case RETURN_ORDER_ID:
42638
        if (value == null) {
42639
          unsetReturnOrderId();
42640
        } else {
42641
          setReturnOrderId((Long)value);
42642
        }
42643
        break;
42644
 
42645
      }
42646
    }
42647
 
42648
    public Object getFieldValue(_Fields field) {
42649
      switch (field) {
42650
      case RETURN_ORDER_ID:
3430 rajveer 42651
        return Long.valueOf(getReturnOrderId());
2690 chandransh 42652
 
42653
      }
42654
      throw new IllegalStateException();
42655
    }
42656
 
3430 rajveer 42657
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42658
    public boolean isSet(_Fields field) {
42659
      if (field == null) {
42660
        throw new IllegalArgumentException();
42661
      }
2690 chandransh 42662
 
42663
      switch (field) {
42664
      case RETURN_ORDER_ID:
42665
        return isSetReturnOrderId();
42666
      }
42667
      throw new IllegalStateException();
42668
    }
42669
 
42670
    @Override
42671
    public boolean equals(Object that) {
42672
      if (that == null)
42673
        return false;
42674
      if (that instanceof processReturn_args)
42675
        return this.equals((processReturn_args)that);
42676
      return false;
42677
    }
42678
 
42679
    public boolean equals(processReturn_args that) {
42680
      if (that == null)
42681
        return false;
42682
 
42683
      boolean this_present_returnOrderId = true;
42684
      boolean that_present_returnOrderId = true;
42685
      if (this_present_returnOrderId || that_present_returnOrderId) {
42686
        if (!(this_present_returnOrderId && that_present_returnOrderId))
42687
          return false;
42688
        if (this.returnOrderId != that.returnOrderId)
42689
          return false;
42690
      }
42691
 
42692
      return true;
42693
    }
42694
 
42695
    @Override
42696
    public int hashCode() {
42697
      return 0;
42698
    }
42699
 
42700
    public int compareTo(processReturn_args other) {
42701
      if (!getClass().equals(other.getClass())) {
42702
        return getClass().getName().compareTo(other.getClass().getName());
42703
      }
42704
 
42705
      int lastComparison = 0;
42706
      processReturn_args typedOther = (processReturn_args)other;
42707
 
3430 rajveer 42708
      lastComparison = Boolean.valueOf(isSetReturnOrderId()).compareTo(typedOther.isSetReturnOrderId());
2690 chandransh 42709
      if (lastComparison != 0) {
42710
        return lastComparison;
42711
      }
3430 rajveer 42712
      if (isSetReturnOrderId()) {
42713
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnOrderId, typedOther.returnOrderId);
42714
        if (lastComparison != 0) {
42715
          return lastComparison;
42716
        }
2690 chandransh 42717
      }
42718
      return 0;
42719
    }
42720
 
3430 rajveer 42721
    public _Fields fieldForId(int fieldId) {
42722
      return _Fields.findByThriftId(fieldId);
42723
    }
42724
 
42725
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42726
      org.apache.thrift.protocol.TField field;
2690 chandransh 42727
      iprot.readStructBegin();
42728
      while (true)
42729
      {
42730
        field = iprot.readFieldBegin();
3430 rajveer 42731
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 42732
          break;
42733
        }
3430 rajveer 42734
        switch (field.id) {
42735
          case 1: // RETURN_ORDER_ID
42736
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42737
              this.returnOrderId = iprot.readI64();
42738
              setReturnOrderIdIsSet(true);
42739
            } else { 
42740
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42741
            }
42742
            break;
42743
          default:
42744
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 42745
        }
3430 rajveer 42746
        iprot.readFieldEnd();
2690 chandransh 42747
      }
42748
      iprot.readStructEnd();
42749
      validate();
42750
    }
42751
 
3430 rajveer 42752
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 42753
      validate();
42754
 
42755
      oprot.writeStructBegin(STRUCT_DESC);
42756
      oprot.writeFieldBegin(RETURN_ORDER_ID_FIELD_DESC);
42757
      oprot.writeI64(this.returnOrderId);
42758
      oprot.writeFieldEnd();
42759
      oprot.writeFieldStop();
42760
      oprot.writeStructEnd();
42761
    }
42762
 
42763
    @Override
42764
    public String toString() {
42765
      StringBuilder sb = new StringBuilder("processReturn_args(");
42766
      boolean first = true;
42767
 
42768
      sb.append("returnOrderId:");
42769
      sb.append(this.returnOrderId);
42770
      first = false;
42771
      sb.append(")");
42772
      return sb.toString();
42773
    }
42774
 
3430 rajveer 42775
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 42776
      // check for required fields
42777
    }
42778
 
3430 rajveer 42779
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42780
      try {
42781
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42782
      } catch (org.apache.thrift.TException te) {
42783
        throw new java.io.IOException(te);
42784
      }
42785
    }
42786
 
42787
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42788
      try {
42789
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42790
      } catch (org.apache.thrift.TException te) {
42791
        throw new java.io.IOException(te);
42792
      }
42793
    }
42794
 
2690 chandransh 42795
  }
42796
 
3430 rajveer 42797
  public static class processReturn_result implements org.apache.thrift.TBase<processReturn_result, processReturn_result._Fields>, java.io.Serializable, Cloneable   {
42798
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processReturn_result");
2690 chandransh 42799
 
3430 rajveer 42800
    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);
2690 chandransh 42801
 
3430 rajveer 42802
    private TransactionServiceException ex; // required
2690 chandransh 42803
 
42804
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 42805
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 42806
      EX((short)1, "ex");
42807
 
42808
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42809
 
42810
      static {
42811
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42812
          byName.put(field.getFieldName(), field);
42813
        }
42814
      }
42815
 
42816
      /**
42817
       * Find the _Fields constant that matches fieldId, or null if its not found.
42818
       */
42819
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 42820
        switch(fieldId) {
42821
          case 1: // EX
42822
            return EX;
42823
          default:
42824
            return null;
42825
        }
2690 chandransh 42826
      }
42827
 
42828
      /**
42829
       * Find the _Fields constant that matches fieldId, throwing an exception
42830
       * if it is not found.
42831
       */
42832
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42833
        _Fields fields = findByThriftId(fieldId);
42834
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42835
        return fields;
42836
      }
42837
 
42838
      /**
42839
       * Find the _Fields constant that matches name, or null if its not found.
42840
       */
42841
      public static _Fields findByName(String name) {
42842
        return byName.get(name);
42843
      }
42844
 
42845
      private final short _thriftId;
42846
      private final String _fieldName;
42847
 
42848
      _Fields(short thriftId, String fieldName) {
42849
        _thriftId = thriftId;
42850
        _fieldName = fieldName;
42851
      }
42852
 
42853
      public short getThriftFieldId() {
42854
        return _thriftId;
42855
      }
42856
 
42857
      public String getFieldName() {
42858
        return _fieldName;
42859
      }
42860
    }
42861
 
42862
    // isset id assignments
42863
 
3430 rajveer 42864
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 42865
    static {
3430 rajveer 42866
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42867
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42868
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
42869
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42870
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processReturn_result.class, metaDataMap);
2690 chandransh 42871
    }
42872
 
42873
    public processReturn_result() {
42874
    }
42875
 
42876
    public processReturn_result(
42877
      TransactionServiceException ex)
42878
    {
42879
      this();
42880
      this.ex = ex;
42881
    }
42882
 
42883
    /**
42884
     * Performs a deep copy on <i>other</i>.
42885
     */
42886
    public processReturn_result(processReturn_result other) {
42887
      if (other.isSetEx()) {
42888
        this.ex = new TransactionServiceException(other.ex);
42889
      }
42890
    }
42891
 
42892
    public processReturn_result deepCopy() {
42893
      return new processReturn_result(this);
42894
    }
42895
 
3430 rajveer 42896
    @Override
42897
    public void clear() {
42898
      this.ex = null;
2690 chandransh 42899
    }
42900
 
42901
    public TransactionServiceException getEx() {
42902
      return this.ex;
42903
    }
42904
 
3430 rajveer 42905
    public void setEx(TransactionServiceException ex) {
2690 chandransh 42906
      this.ex = ex;
42907
    }
42908
 
42909
    public void unsetEx() {
42910
      this.ex = null;
42911
    }
42912
 
3430 rajveer 42913
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2690 chandransh 42914
    public boolean isSetEx() {
42915
      return this.ex != null;
42916
    }
42917
 
42918
    public void setExIsSet(boolean value) {
42919
      if (!value) {
42920
        this.ex = null;
42921
      }
42922
    }
42923
 
42924
    public void setFieldValue(_Fields field, Object value) {
42925
      switch (field) {
42926
      case EX:
42927
        if (value == null) {
42928
          unsetEx();
42929
        } else {
42930
          setEx((TransactionServiceException)value);
42931
        }
42932
        break;
42933
 
42934
      }
42935
    }
42936
 
42937
    public Object getFieldValue(_Fields field) {
42938
      switch (field) {
42939
      case EX:
42940
        return getEx();
42941
 
42942
      }
42943
      throw new IllegalStateException();
42944
    }
42945
 
3430 rajveer 42946
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42947
    public boolean isSet(_Fields field) {
42948
      if (field == null) {
42949
        throw new IllegalArgumentException();
42950
      }
2690 chandransh 42951
 
42952
      switch (field) {
42953
      case EX:
42954
        return isSetEx();
42955
      }
42956
      throw new IllegalStateException();
42957
    }
42958
 
42959
    @Override
42960
    public boolean equals(Object that) {
42961
      if (that == null)
42962
        return false;
42963
      if (that instanceof processReturn_result)
42964
        return this.equals((processReturn_result)that);
42965
      return false;
42966
    }
42967
 
42968
    public boolean equals(processReturn_result that) {
42969
      if (that == null)
42970
        return false;
42971
 
42972
      boolean this_present_ex = true && this.isSetEx();
42973
      boolean that_present_ex = true && that.isSetEx();
42974
      if (this_present_ex || that_present_ex) {
42975
        if (!(this_present_ex && that_present_ex))
42976
          return false;
42977
        if (!this.ex.equals(that.ex))
42978
          return false;
42979
      }
42980
 
42981
      return true;
42982
    }
42983
 
42984
    @Override
42985
    public int hashCode() {
42986
      return 0;
42987
    }
42988
 
42989
    public int compareTo(processReturn_result other) {
42990
      if (!getClass().equals(other.getClass())) {
42991
        return getClass().getName().compareTo(other.getClass().getName());
42992
      }
42993
 
42994
      int lastComparison = 0;
42995
      processReturn_result typedOther = (processReturn_result)other;
42996
 
3430 rajveer 42997
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2690 chandransh 42998
      if (lastComparison != 0) {
42999
        return lastComparison;
43000
      }
3430 rajveer 43001
      if (isSetEx()) {
43002
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
43003
        if (lastComparison != 0) {
43004
          return lastComparison;
43005
        }
2690 chandransh 43006
      }
43007
      return 0;
43008
    }
43009
 
3430 rajveer 43010
    public _Fields fieldForId(int fieldId) {
43011
      return _Fields.findByThriftId(fieldId);
43012
    }
43013
 
43014
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43015
      org.apache.thrift.protocol.TField field;
2690 chandransh 43016
      iprot.readStructBegin();
43017
      while (true)
43018
      {
43019
        field = iprot.readFieldBegin();
3430 rajveer 43020
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 43021
          break;
43022
        }
3430 rajveer 43023
        switch (field.id) {
43024
          case 1: // EX
43025
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
43026
              this.ex = new TransactionServiceException();
43027
              this.ex.read(iprot);
43028
            } else { 
43029
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43030
            }
43031
            break;
43032
          default:
43033
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 43034
        }
3430 rajveer 43035
        iprot.readFieldEnd();
2690 chandransh 43036
      }
43037
      iprot.readStructEnd();
43038
      validate();
43039
    }
43040
 
3430 rajveer 43041
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 43042
      oprot.writeStructBegin(STRUCT_DESC);
43043
 
43044
      if (this.isSetEx()) {
43045
        oprot.writeFieldBegin(EX_FIELD_DESC);
43046
        this.ex.write(oprot);
43047
        oprot.writeFieldEnd();
43048
      }
43049
      oprot.writeFieldStop();
43050
      oprot.writeStructEnd();
43051
    }
43052
 
43053
    @Override
43054
    public String toString() {
43055
      StringBuilder sb = new StringBuilder("processReturn_result(");
43056
      boolean first = true;
43057
 
43058
      sb.append("ex:");
43059
      if (this.ex == null) {
43060
        sb.append("null");
43061
      } else {
43062
        sb.append(this.ex);
43063
      }
43064
      first = false;
43065
      sb.append(")");
43066
      return sb.toString();
43067
    }
43068
 
3430 rajveer 43069
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 43070
      // check for required fields
43071
    }
43072
 
3430 rajveer 43073
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43074
      try {
43075
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43076
      } catch (org.apache.thrift.TException te) {
43077
        throw new java.io.IOException(te);
43078
      }
43079
    }
43080
 
43081
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43082
      try {
43083
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43084
      } catch (org.apache.thrift.TException te) {
43085
        throw new java.io.IOException(te);
43086
      }
43087
    }
43088
 
2690 chandransh 43089
  }
43090
 
3430 rajveer 43091
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
43092
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
2819 chandransh 43093
 
3430 rajveer 43094
    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);
2819 chandransh 43095
 
3430 rajveer 43096
    private long warehouseId; // required
2819 chandransh 43097
 
43098
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43099
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2819 chandransh 43100
      WAREHOUSE_ID((short)1, "warehouseId");
43101
 
43102
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43103
 
43104
      static {
43105
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43106
          byName.put(field.getFieldName(), field);
43107
        }
43108
      }
43109
 
43110
      /**
43111
       * Find the _Fields constant that matches fieldId, or null if its not found.
43112
       */
43113
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43114
        switch(fieldId) {
43115
          case 1: // WAREHOUSE_ID
43116
            return WAREHOUSE_ID;
43117
          default:
43118
            return null;
43119
        }
2819 chandransh 43120
      }
43121
 
43122
      /**
43123
       * Find the _Fields constant that matches fieldId, throwing an exception
43124
       * if it is not found.
43125
       */
43126
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43127
        _Fields fields = findByThriftId(fieldId);
43128
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43129
        return fields;
43130
      }
43131
 
43132
      /**
43133
       * Find the _Fields constant that matches name, or null if its not found.
43134
       */
43135
      public static _Fields findByName(String name) {
43136
        return byName.get(name);
43137
      }
43138
 
43139
      private final short _thriftId;
43140
      private final String _fieldName;
43141
 
43142
      _Fields(short thriftId, String fieldName) {
43143
        _thriftId = thriftId;
43144
        _fieldName = fieldName;
43145
      }
43146
 
43147
      public short getThriftFieldId() {
43148
        return _thriftId;
43149
      }
43150
 
43151
      public String getFieldName() {
43152
        return _fieldName;
43153
      }
43154
    }
43155
 
43156
    // isset id assignments
43157
    private static final int __WAREHOUSEID_ISSET_ID = 0;
43158
    private BitSet __isset_bit_vector = new BitSet(1);
43159
 
3430 rajveer 43160
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2819 chandransh 43161
    static {
3430 rajveer 43162
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43163
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43164
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43165
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43166
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_args.class, metaDataMap);
2819 chandransh 43167
    }
43168
 
43169
    public createPurchaseOrder_args() {
43170
    }
43171
 
43172
    public createPurchaseOrder_args(
43173
      long warehouseId)
43174
    {
43175
      this();
43176
      this.warehouseId = warehouseId;
43177
      setWarehouseIdIsSet(true);
43178
    }
43179
 
43180
    /**
43181
     * Performs a deep copy on <i>other</i>.
43182
     */
43183
    public createPurchaseOrder_args(createPurchaseOrder_args other) {
43184
      __isset_bit_vector.clear();
43185
      __isset_bit_vector.or(other.__isset_bit_vector);
43186
      this.warehouseId = other.warehouseId;
43187
    }
43188
 
43189
    public createPurchaseOrder_args deepCopy() {
43190
      return new createPurchaseOrder_args(this);
43191
    }
43192
 
3430 rajveer 43193
    @Override
43194
    public void clear() {
43195
      setWarehouseIdIsSet(false);
43196
      this.warehouseId = 0;
2819 chandransh 43197
    }
43198
 
43199
    public long getWarehouseId() {
43200
      return this.warehouseId;
43201
    }
43202
 
3430 rajveer 43203
    public void setWarehouseId(long warehouseId) {
2819 chandransh 43204
      this.warehouseId = warehouseId;
43205
      setWarehouseIdIsSet(true);
43206
    }
43207
 
43208
    public void unsetWarehouseId() {
43209
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
43210
    }
43211
 
3430 rajveer 43212
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
2819 chandransh 43213
    public boolean isSetWarehouseId() {
43214
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
43215
    }
43216
 
43217
    public void setWarehouseIdIsSet(boolean value) {
43218
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
43219
    }
43220
 
43221
    public void setFieldValue(_Fields field, Object value) {
43222
      switch (field) {
43223
      case WAREHOUSE_ID:
43224
        if (value == null) {
43225
          unsetWarehouseId();
43226
        } else {
43227
          setWarehouseId((Long)value);
43228
        }
43229
        break;
43230
 
43231
      }
43232
    }
43233
 
43234
    public Object getFieldValue(_Fields field) {
43235
      switch (field) {
43236
      case WAREHOUSE_ID:
3430 rajveer 43237
        return Long.valueOf(getWarehouseId());
2819 chandransh 43238
 
43239
      }
43240
      throw new IllegalStateException();
43241
    }
43242
 
3430 rajveer 43243
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43244
    public boolean isSet(_Fields field) {
43245
      if (field == null) {
43246
        throw new IllegalArgumentException();
43247
      }
2819 chandransh 43248
 
43249
      switch (field) {
43250
      case WAREHOUSE_ID:
43251
        return isSetWarehouseId();
43252
      }
43253
      throw new IllegalStateException();
43254
    }
43255
 
43256
    @Override
43257
    public boolean equals(Object that) {
43258
      if (that == null)
43259
        return false;
43260
      if (that instanceof createPurchaseOrder_args)
43261
        return this.equals((createPurchaseOrder_args)that);
43262
      return false;
43263
    }
43264
 
43265
    public boolean equals(createPurchaseOrder_args that) {
43266
      if (that == null)
43267
        return false;
43268
 
43269
      boolean this_present_warehouseId = true;
43270
      boolean that_present_warehouseId = true;
43271
      if (this_present_warehouseId || that_present_warehouseId) {
43272
        if (!(this_present_warehouseId && that_present_warehouseId))
43273
          return false;
43274
        if (this.warehouseId != that.warehouseId)
43275
          return false;
43276
      }
43277
 
43278
      return true;
43279
    }
43280
 
43281
    @Override
43282
    public int hashCode() {
43283
      return 0;
43284
    }
43285
 
43286
    public int compareTo(createPurchaseOrder_args other) {
43287
      if (!getClass().equals(other.getClass())) {
43288
        return getClass().getName().compareTo(other.getClass().getName());
43289
      }
43290
 
43291
      int lastComparison = 0;
43292
      createPurchaseOrder_args typedOther = (createPurchaseOrder_args)other;
43293
 
3430 rajveer 43294
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
2819 chandransh 43295
      if (lastComparison != 0) {
43296
        return lastComparison;
43297
      }
3430 rajveer 43298
      if (isSetWarehouseId()) {
43299
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
43300
        if (lastComparison != 0) {
43301
          return lastComparison;
43302
        }
2819 chandransh 43303
      }
43304
      return 0;
43305
    }
43306
 
3430 rajveer 43307
    public _Fields fieldForId(int fieldId) {
43308
      return _Fields.findByThriftId(fieldId);
43309
    }
43310
 
43311
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43312
      org.apache.thrift.protocol.TField field;
2819 chandransh 43313
      iprot.readStructBegin();
43314
      while (true)
43315
      {
43316
        field = iprot.readFieldBegin();
3430 rajveer 43317
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2819 chandransh 43318
          break;
43319
        }
3430 rajveer 43320
        switch (field.id) {
43321
          case 1: // WAREHOUSE_ID
43322
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43323
              this.warehouseId = iprot.readI64();
43324
              setWarehouseIdIsSet(true);
43325
            } else { 
43326
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43327
            }
43328
            break;
43329
          default:
43330
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2819 chandransh 43331
        }
3430 rajveer 43332
        iprot.readFieldEnd();
2819 chandransh 43333
      }
43334
      iprot.readStructEnd();
43335
      validate();
43336
    }
43337
 
3430 rajveer 43338
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2819 chandransh 43339
      validate();
43340
 
43341
      oprot.writeStructBegin(STRUCT_DESC);
43342
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
43343
      oprot.writeI64(this.warehouseId);
43344
      oprot.writeFieldEnd();
43345
      oprot.writeFieldStop();
43346
      oprot.writeStructEnd();
43347
    }
43348
 
43349
    @Override
43350
    public String toString() {
43351
      StringBuilder sb = new StringBuilder("createPurchaseOrder_args(");
43352
      boolean first = true;
43353
 
43354
      sb.append("warehouseId:");
43355
      sb.append(this.warehouseId);
43356
      first = false;
43357
      sb.append(")");
43358
      return sb.toString();
43359
    }
43360
 
3430 rajveer 43361
    public void validate() throws org.apache.thrift.TException {
2819 chandransh 43362
      // check for required fields
43363
    }
43364
 
3430 rajveer 43365
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43366
      try {
43367
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43368
      } catch (org.apache.thrift.TException te) {
43369
        throw new java.io.IOException(te);
43370
      }
43371
    }
43372
 
43373
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43374
      try {
43375
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43376
      } catch (org.apache.thrift.TException te) {
43377
        throw new java.io.IOException(te);
43378
      }
43379
    }
43380
 
2819 chandransh 43381
  }
43382
 
3430 rajveer 43383
  public static class createPurchaseOrder_result implements org.apache.thrift.TBase<createPurchaseOrder_result, createPurchaseOrder_result._Fields>, java.io.Serializable, Cloneable   {
43384
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_result");
2819 chandransh 43385
 
3430 rajveer 43386
    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);
43387
    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);
2819 chandransh 43388
 
3430 rajveer 43389
    private long success; // required
43390
    private TransactionServiceException ex; // required
2819 chandransh 43391
 
43392
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43393
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2819 chandransh 43394
      SUCCESS((short)0, "success"),
43395
      EX((short)1, "ex");
43396
 
43397
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43398
 
43399
      static {
43400
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43401
          byName.put(field.getFieldName(), field);
43402
        }
43403
      }
43404
 
43405
      /**
43406
       * Find the _Fields constant that matches fieldId, or null if its not found.
43407
       */
43408
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43409
        switch(fieldId) {
43410
          case 0: // SUCCESS
43411
            return SUCCESS;
43412
          case 1: // EX
43413
            return EX;
43414
          default:
43415
            return null;
43416
        }
2819 chandransh 43417
      }
43418
 
43419
      /**
43420
       * Find the _Fields constant that matches fieldId, throwing an exception
43421
       * if it is not found.
43422
       */
43423
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43424
        _Fields fields = findByThriftId(fieldId);
43425
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43426
        return fields;
43427
      }
43428
 
43429
      /**
43430
       * Find the _Fields constant that matches name, or null if its not found.
43431
       */
43432
      public static _Fields findByName(String name) {
43433
        return byName.get(name);
43434
      }
43435
 
43436
      private final short _thriftId;
43437
      private final String _fieldName;
43438
 
43439
      _Fields(short thriftId, String fieldName) {
43440
        _thriftId = thriftId;
43441
        _fieldName = fieldName;
43442
      }
43443
 
43444
      public short getThriftFieldId() {
43445
        return _thriftId;
43446
      }
43447
 
43448
      public String getFieldName() {
43449
        return _fieldName;
43450
      }
43451
    }
43452
 
43453
    // isset id assignments
43454
    private static final int __SUCCESS_ISSET_ID = 0;
43455
    private BitSet __isset_bit_vector = new BitSet(1);
43456
 
3430 rajveer 43457
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2819 chandransh 43458
    static {
3430 rajveer 43459
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43460
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43461
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43462
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43463
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
43464
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43465
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_result.class, metaDataMap);
2819 chandransh 43466
    }
43467
 
43468
    public createPurchaseOrder_result() {
43469
    }
43470
 
43471
    public createPurchaseOrder_result(
43472
      long success,
43473
      TransactionServiceException ex)
43474
    {
43475
      this();
43476
      this.success = success;
43477
      setSuccessIsSet(true);
43478
      this.ex = ex;
43479
    }
43480
 
43481
    /**
43482
     * Performs a deep copy on <i>other</i>.
43483
     */
43484
    public createPurchaseOrder_result(createPurchaseOrder_result other) {
43485
      __isset_bit_vector.clear();
43486
      __isset_bit_vector.or(other.__isset_bit_vector);
43487
      this.success = other.success;
43488
      if (other.isSetEx()) {
43489
        this.ex = new TransactionServiceException(other.ex);
43490
      }
43491
    }
43492
 
43493
    public createPurchaseOrder_result deepCopy() {
43494
      return new createPurchaseOrder_result(this);
43495
    }
43496
 
3430 rajveer 43497
    @Override
43498
    public void clear() {
43499
      setSuccessIsSet(false);
43500
      this.success = 0;
43501
      this.ex = null;
2819 chandransh 43502
    }
43503
 
43504
    public long getSuccess() {
43505
      return this.success;
43506
    }
43507
 
3430 rajveer 43508
    public void setSuccess(long success) {
2819 chandransh 43509
      this.success = success;
43510
      setSuccessIsSet(true);
43511
    }
43512
 
43513
    public void unsetSuccess() {
43514
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
43515
    }
43516
 
3430 rajveer 43517
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2819 chandransh 43518
    public boolean isSetSuccess() {
43519
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
43520
    }
43521
 
43522
    public void setSuccessIsSet(boolean value) {
43523
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
43524
    }
43525
 
43526
    public TransactionServiceException getEx() {
43527
      return this.ex;
43528
    }
43529
 
3430 rajveer 43530
    public void setEx(TransactionServiceException ex) {
2819 chandransh 43531
      this.ex = ex;
43532
    }
43533
 
43534
    public void unsetEx() {
43535
      this.ex = null;
43536
    }
43537
 
3430 rajveer 43538
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2819 chandransh 43539
    public boolean isSetEx() {
43540
      return this.ex != null;
43541
    }
43542
 
43543
    public void setExIsSet(boolean value) {
43544
      if (!value) {
43545
        this.ex = null;
43546
      }
43547
    }
43548
 
43549
    public void setFieldValue(_Fields field, Object value) {
43550
      switch (field) {
43551
      case SUCCESS:
43552
        if (value == null) {
43553
          unsetSuccess();
43554
        } else {
43555
          setSuccess((Long)value);
43556
        }
43557
        break;
43558
 
43559
      case EX:
43560
        if (value == null) {
43561
          unsetEx();
43562
        } else {
43563
          setEx((TransactionServiceException)value);
43564
        }
43565
        break;
43566
 
43567
      }
43568
    }
43569
 
43570
    public Object getFieldValue(_Fields field) {
43571
      switch (field) {
43572
      case SUCCESS:
3430 rajveer 43573
        return Long.valueOf(getSuccess());
2819 chandransh 43574
 
43575
      case EX:
43576
        return getEx();
43577
 
43578
      }
43579
      throw new IllegalStateException();
43580
    }
43581
 
3430 rajveer 43582
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43583
    public boolean isSet(_Fields field) {
43584
      if (field == null) {
43585
        throw new IllegalArgumentException();
43586
      }
2819 chandransh 43587
 
43588
      switch (field) {
43589
      case SUCCESS:
43590
        return isSetSuccess();
43591
      case EX:
43592
        return isSetEx();
43593
      }
43594
      throw new IllegalStateException();
43595
    }
43596
 
43597
    @Override
43598
    public boolean equals(Object that) {
43599
      if (that == null)
43600
        return false;
43601
      if (that instanceof createPurchaseOrder_result)
43602
        return this.equals((createPurchaseOrder_result)that);
43603
      return false;
43604
    }
43605
 
43606
    public boolean equals(createPurchaseOrder_result that) {
43607
      if (that == null)
43608
        return false;
43609
 
43610
      boolean this_present_success = true;
43611
      boolean that_present_success = true;
43612
      if (this_present_success || that_present_success) {
43613
        if (!(this_present_success && that_present_success))
43614
          return false;
43615
        if (this.success != that.success)
43616
          return false;
43617
      }
43618
 
43619
      boolean this_present_ex = true && this.isSetEx();
43620
      boolean that_present_ex = true && that.isSetEx();
43621
      if (this_present_ex || that_present_ex) {
43622
        if (!(this_present_ex && that_present_ex))
43623
          return false;
43624
        if (!this.ex.equals(that.ex))
43625
          return false;
43626
      }
43627
 
43628
      return true;
43629
    }
43630
 
43631
    @Override
43632
    public int hashCode() {
43633
      return 0;
43634
    }
43635
 
43636
    public int compareTo(createPurchaseOrder_result other) {
43637
      if (!getClass().equals(other.getClass())) {
43638
        return getClass().getName().compareTo(other.getClass().getName());
43639
      }
43640
 
43641
      int lastComparison = 0;
43642
      createPurchaseOrder_result typedOther = (createPurchaseOrder_result)other;
43643
 
3430 rajveer 43644
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2819 chandransh 43645
      if (lastComparison != 0) {
43646
        return lastComparison;
43647
      }
3430 rajveer 43648
      if (isSetSuccess()) {
43649
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
43650
        if (lastComparison != 0) {
43651
          return lastComparison;
43652
        }
2819 chandransh 43653
      }
3430 rajveer 43654
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2819 chandransh 43655
      if (lastComparison != 0) {
43656
        return lastComparison;
43657
      }
3430 rajveer 43658
      if (isSetEx()) {
43659
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
43660
        if (lastComparison != 0) {
43661
          return lastComparison;
43662
        }
2819 chandransh 43663
      }
43664
      return 0;
43665
    }
43666
 
3430 rajveer 43667
    public _Fields fieldForId(int fieldId) {
43668
      return _Fields.findByThriftId(fieldId);
43669
    }
43670
 
43671
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43672
      org.apache.thrift.protocol.TField field;
2819 chandransh 43673
      iprot.readStructBegin();
43674
      while (true)
43675
      {
43676
        field = iprot.readFieldBegin();
3430 rajveer 43677
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2819 chandransh 43678
          break;
43679
        }
3430 rajveer 43680
        switch (field.id) {
43681
          case 0: // SUCCESS
43682
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43683
              this.success = iprot.readI64();
43684
              setSuccessIsSet(true);
43685
            } else { 
43686
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43687
            }
43688
            break;
43689
          case 1: // EX
43690
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
43691
              this.ex = new TransactionServiceException();
43692
              this.ex.read(iprot);
43693
            } else { 
43694
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43695
            }
43696
            break;
43697
          default:
43698
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2819 chandransh 43699
        }
3430 rajveer 43700
        iprot.readFieldEnd();
2819 chandransh 43701
      }
43702
      iprot.readStructEnd();
43703
      validate();
43704
    }
43705
 
3430 rajveer 43706
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2819 chandransh 43707
      oprot.writeStructBegin(STRUCT_DESC);
43708
 
43709
      if (this.isSetSuccess()) {
43710
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43711
        oprot.writeI64(this.success);
43712
        oprot.writeFieldEnd();
43713
      } else if (this.isSetEx()) {
43714
        oprot.writeFieldBegin(EX_FIELD_DESC);
43715
        this.ex.write(oprot);
43716
        oprot.writeFieldEnd();
43717
      }
43718
      oprot.writeFieldStop();
43719
      oprot.writeStructEnd();
43720
    }
43721
 
43722
    @Override
43723
    public String toString() {
43724
      StringBuilder sb = new StringBuilder("createPurchaseOrder_result(");
43725
      boolean first = true;
43726
 
43727
      sb.append("success:");
43728
      sb.append(this.success);
43729
      first = false;
43730
      if (!first) sb.append(", ");
43731
      sb.append("ex:");
43732
      if (this.ex == null) {
43733
        sb.append("null");
43734
      } else {
43735
        sb.append(this.ex);
43736
      }
43737
      first = false;
43738
      sb.append(")");
43739
      return sb.toString();
43740
    }
43741
 
3430 rajveer 43742
    public void validate() throws org.apache.thrift.TException {
2819 chandransh 43743
      // check for required fields
43744
    }
43745
 
3430 rajveer 43746
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43747
      try {
43748
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43749
      } catch (org.apache.thrift.TException te) {
43750
        throw new java.io.IOException(te);
43751
      }
43752
    }
43753
 
43754
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43755
      try {
43756
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43757
      } catch (org.apache.thrift.TException te) {
43758
        throw new java.io.IOException(te);
43759
      }
43760
    }
43761
 
2819 chandransh 43762
  }
43763
 
3451 chandransh 43764
  public static class updateWeight_args implements org.apache.thrift.TBase<updateWeight_args, updateWeight_args._Fields>, java.io.Serializable, Cloneable   {
43765
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateWeight_args");
43766
 
43767
    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);
43768
    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);
43769
 
43770
    private long orderId; // required
43771
    private double weight; // required
43772
 
43773
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43774
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43775
      ORDER_ID((short)1, "orderId"),
43776
      WEIGHT((short)2, "weight");
43777
 
43778
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43779
 
43780
      static {
43781
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43782
          byName.put(field.getFieldName(), field);
43783
        }
43784
      }
43785
 
43786
      /**
43787
       * Find the _Fields constant that matches fieldId, or null if its not found.
43788
       */
43789
      public static _Fields findByThriftId(int fieldId) {
43790
        switch(fieldId) {
43791
          case 1: // ORDER_ID
43792
            return ORDER_ID;
43793
          case 2: // WEIGHT
43794
            return WEIGHT;
43795
          default:
43796
            return null;
43797
        }
43798
      }
43799
 
43800
      /**
43801
       * Find the _Fields constant that matches fieldId, throwing an exception
43802
       * if it is not found.
43803
       */
43804
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43805
        _Fields fields = findByThriftId(fieldId);
43806
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43807
        return fields;
43808
      }
43809
 
43810
      /**
43811
       * Find the _Fields constant that matches name, or null if its not found.
43812
       */
43813
      public static _Fields findByName(String name) {
43814
        return byName.get(name);
43815
      }
43816
 
43817
      private final short _thriftId;
43818
      private final String _fieldName;
43819
 
43820
      _Fields(short thriftId, String fieldName) {
43821
        _thriftId = thriftId;
43822
        _fieldName = fieldName;
43823
      }
43824
 
43825
      public short getThriftFieldId() {
43826
        return _thriftId;
43827
      }
43828
 
43829
      public String getFieldName() {
43830
        return _fieldName;
43831
      }
43832
    }
43833
 
43834
    // isset id assignments
43835
    private static final int __ORDERID_ISSET_ID = 0;
43836
    private static final int __WEIGHT_ISSET_ID = 1;
43837
    private BitSet __isset_bit_vector = new BitSet(2);
43838
 
43839
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43840
    static {
43841
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43842
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43843
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43844
      tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43845
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
43846
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43847
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateWeight_args.class, metaDataMap);
43848
    }
43849
 
43850
    public updateWeight_args() {
43851
    }
43852
 
43853
    public updateWeight_args(
43854
      long orderId,
43855
      double weight)
43856
    {
43857
      this();
43858
      this.orderId = orderId;
43859
      setOrderIdIsSet(true);
43860
      this.weight = weight;
43861
      setWeightIsSet(true);
43862
    }
43863
 
43864
    /**
43865
     * Performs a deep copy on <i>other</i>.
43866
     */
43867
    public updateWeight_args(updateWeight_args other) {
43868
      __isset_bit_vector.clear();
43869
      __isset_bit_vector.or(other.__isset_bit_vector);
43870
      this.orderId = other.orderId;
43871
      this.weight = other.weight;
43872
    }
43873
 
43874
    public updateWeight_args deepCopy() {
43875
      return new updateWeight_args(this);
43876
    }
43877
 
43878
    @Override
43879
    public void clear() {
43880
      setOrderIdIsSet(false);
43881
      this.orderId = 0;
43882
      setWeightIsSet(false);
43883
      this.weight = 0.0;
43884
    }
43885
 
43886
    public long getOrderId() {
43887
      return this.orderId;
43888
    }
43889
 
43890
    public void setOrderId(long orderId) {
43891
      this.orderId = orderId;
43892
      setOrderIdIsSet(true);
43893
    }
43894
 
43895
    public void unsetOrderId() {
43896
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
43897
    }
43898
 
43899
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
43900
    public boolean isSetOrderId() {
43901
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
43902
    }
43903
 
43904
    public void setOrderIdIsSet(boolean value) {
43905
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
43906
    }
43907
 
43908
    public double getWeight() {
43909
      return this.weight;
43910
    }
43911
 
43912
    public void setWeight(double weight) {
43913
      this.weight = weight;
43914
      setWeightIsSet(true);
43915
    }
43916
 
43917
    public void unsetWeight() {
43918
      __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
43919
    }
43920
 
43921
    /** Returns true if field weight is set (has been assigned a value) and false otherwise */
43922
    public boolean isSetWeight() {
43923
      return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
43924
    }
43925
 
43926
    public void setWeightIsSet(boolean value) {
43927
      __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
43928
    }
43929
 
43930
    public void setFieldValue(_Fields field, Object value) {
43931
      switch (field) {
43932
      case ORDER_ID:
43933
        if (value == null) {
43934
          unsetOrderId();
43935
        } else {
43936
          setOrderId((Long)value);
43937
        }
43938
        break;
43939
 
43940
      case WEIGHT:
43941
        if (value == null) {
43942
          unsetWeight();
43943
        } else {
43944
          setWeight((Double)value);
43945
        }
43946
        break;
43947
 
43948
      }
43949
    }
43950
 
43951
    public Object getFieldValue(_Fields field) {
43952
      switch (field) {
43953
      case ORDER_ID:
43954
        return Long.valueOf(getOrderId());
43955
 
43956
      case WEIGHT:
43957
        return Double.valueOf(getWeight());
43958
 
43959
      }
43960
      throw new IllegalStateException();
43961
    }
43962
 
43963
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43964
    public boolean isSet(_Fields field) {
43965
      if (field == null) {
43966
        throw new IllegalArgumentException();
43967
      }
43968
 
43969
      switch (field) {
43970
      case ORDER_ID:
43971
        return isSetOrderId();
43972
      case WEIGHT:
43973
        return isSetWeight();
43974
      }
43975
      throw new IllegalStateException();
43976
    }
43977
 
43978
    @Override
43979
    public boolean equals(Object that) {
43980
      if (that == null)
43981
        return false;
43982
      if (that instanceof updateWeight_args)
43983
        return this.equals((updateWeight_args)that);
43984
      return false;
43985
    }
43986
 
43987
    public boolean equals(updateWeight_args that) {
43988
      if (that == null)
43989
        return false;
43990
 
43991
      boolean this_present_orderId = true;
43992
      boolean that_present_orderId = true;
43993
      if (this_present_orderId || that_present_orderId) {
43994
        if (!(this_present_orderId && that_present_orderId))
43995
          return false;
43996
        if (this.orderId != that.orderId)
43997
          return false;
43998
      }
43999
 
44000
      boolean this_present_weight = true;
44001
      boolean that_present_weight = true;
44002
      if (this_present_weight || that_present_weight) {
44003
        if (!(this_present_weight && that_present_weight))
44004
          return false;
44005
        if (this.weight != that.weight)
44006
          return false;
44007
      }
44008
 
44009
      return true;
44010
    }
44011
 
44012
    @Override
44013
    public int hashCode() {
44014
      return 0;
44015
    }
44016
 
44017
    public int compareTo(updateWeight_args other) {
44018
      if (!getClass().equals(other.getClass())) {
44019
        return getClass().getName().compareTo(other.getClass().getName());
44020
      }
44021
 
44022
      int lastComparison = 0;
44023
      updateWeight_args typedOther = (updateWeight_args)other;
44024
 
44025
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
44026
      if (lastComparison != 0) {
44027
        return lastComparison;
44028
      }
44029
      if (isSetOrderId()) {
44030
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
44031
        if (lastComparison != 0) {
44032
          return lastComparison;
44033
        }
44034
      }
44035
      lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
44036
      if (lastComparison != 0) {
44037
        return lastComparison;
44038
      }
44039
      if (isSetWeight()) {
44040
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
44041
        if (lastComparison != 0) {
44042
          return lastComparison;
44043
        }
44044
      }
44045
      return 0;
44046
    }
44047
 
44048
    public _Fields fieldForId(int fieldId) {
44049
      return _Fields.findByThriftId(fieldId);
44050
    }
44051
 
44052
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44053
      org.apache.thrift.protocol.TField field;
44054
      iprot.readStructBegin();
44055
      while (true)
44056
      {
44057
        field = iprot.readFieldBegin();
44058
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44059
          break;
44060
        }
44061
        switch (field.id) {
44062
          case 1: // ORDER_ID
44063
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44064
              this.orderId = iprot.readI64();
44065
              setOrderIdIsSet(true);
44066
            } else { 
44067
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44068
            }
44069
            break;
44070
          case 2: // WEIGHT
44071
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
44072
              this.weight = iprot.readDouble();
44073
              setWeightIsSet(true);
44074
            } else { 
44075
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44076
            }
44077
            break;
44078
          default:
44079
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44080
        }
44081
        iprot.readFieldEnd();
44082
      }
44083
      iprot.readStructEnd();
44084
      validate();
44085
    }
44086
 
44087
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44088
      validate();
44089
 
44090
      oprot.writeStructBegin(STRUCT_DESC);
44091
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
44092
      oprot.writeI64(this.orderId);
44093
      oprot.writeFieldEnd();
44094
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
44095
      oprot.writeDouble(this.weight);
44096
      oprot.writeFieldEnd();
44097
      oprot.writeFieldStop();
44098
      oprot.writeStructEnd();
44099
    }
44100
 
44101
    @Override
44102
    public String toString() {
44103
      StringBuilder sb = new StringBuilder("updateWeight_args(");
44104
      boolean first = true;
44105
 
44106
      sb.append("orderId:");
44107
      sb.append(this.orderId);
44108
      first = false;
44109
      if (!first) sb.append(", ");
44110
      sb.append("weight:");
44111
      sb.append(this.weight);
44112
      first = false;
44113
      sb.append(")");
44114
      return sb.toString();
44115
    }
44116
 
44117
    public void validate() throws org.apache.thrift.TException {
44118
      // check for required fields
44119
    }
44120
 
44121
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44122
      try {
44123
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44124
      } catch (org.apache.thrift.TException te) {
44125
        throw new java.io.IOException(te);
44126
      }
44127
    }
44128
 
44129
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44130
      try {
44131
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44132
      } catch (org.apache.thrift.TException te) {
44133
        throw new java.io.IOException(te);
44134
      }
44135
    }
44136
 
44137
  }
44138
 
44139
  public static class updateWeight_result implements org.apache.thrift.TBase<updateWeight_result, updateWeight_result._Fields>, java.io.Serializable, Cloneable   {
44140
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateWeight_result");
44141
 
44142
    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);
44143
    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);
44144
 
44145
    private Order success; // required
44146
    private TransactionServiceException ex; // required
44147
 
44148
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44149
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44150
      SUCCESS((short)0, "success"),
44151
      EX((short)1, "ex");
44152
 
44153
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44154
 
44155
      static {
44156
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44157
          byName.put(field.getFieldName(), field);
44158
        }
44159
      }
44160
 
44161
      /**
44162
       * Find the _Fields constant that matches fieldId, or null if its not found.
44163
       */
44164
      public static _Fields findByThriftId(int fieldId) {
44165
        switch(fieldId) {
44166
          case 0: // SUCCESS
44167
            return SUCCESS;
44168
          case 1: // EX
44169
            return EX;
44170
          default:
44171
            return null;
44172
        }
44173
      }
44174
 
44175
      /**
44176
       * Find the _Fields constant that matches fieldId, throwing an exception
44177
       * if it is not found.
44178
       */
44179
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44180
        _Fields fields = findByThriftId(fieldId);
44181
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44182
        return fields;
44183
      }
44184
 
44185
      /**
44186
       * Find the _Fields constant that matches name, or null if its not found.
44187
       */
44188
      public static _Fields findByName(String name) {
44189
        return byName.get(name);
44190
      }
44191
 
44192
      private final short _thriftId;
44193
      private final String _fieldName;
44194
 
44195
      _Fields(short thriftId, String fieldName) {
44196
        _thriftId = thriftId;
44197
        _fieldName = fieldName;
44198
      }
44199
 
44200
      public short getThriftFieldId() {
44201
        return _thriftId;
44202
      }
44203
 
44204
      public String getFieldName() {
44205
        return _fieldName;
44206
      }
44207
    }
44208
 
44209
    // isset id assignments
44210
 
44211
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44212
    static {
44213
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44214
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44215
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
44216
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
44218
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44219
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateWeight_result.class, metaDataMap);
44220
    }
44221
 
44222
    public updateWeight_result() {
44223
    }
44224
 
44225
    public updateWeight_result(
44226
      Order success,
44227
      TransactionServiceException ex)
44228
    {
44229
      this();
44230
      this.success = success;
44231
      this.ex = ex;
44232
    }
44233
 
44234
    /**
44235
     * Performs a deep copy on <i>other</i>.
44236
     */
44237
    public updateWeight_result(updateWeight_result other) {
44238
      if (other.isSetSuccess()) {
44239
        this.success = new Order(other.success);
44240
      }
44241
      if (other.isSetEx()) {
44242
        this.ex = new TransactionServiceException(other.ex);
44243
      }
44244
    }
44245
 
44246
    public updateWeight_result deepCopy() {
44247
      return new updateWeight_result(this);
44248
    }
44249
 
44250
    @Override
44251
    public void clear() {
44252
      this.success = null;
44253
      this.ex = null;
44254
    }
44255
 
44256
    public Order getSuccess() {
44257
      return this.success;
44258
    }
44259
 
44260
    public void setSuccess(Order success) {
44261
      this.success = success;
44262
    }
44263
 
44264
    public void unsetSuccess() {
44265
      this.success = null;
44266
    }
44267
 
44268
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
44269
    public boolean isSetSuccess() {
44270
      return this.success != null;
44271
    }
44272
 
44273
    public void setSuccessIsSet(boolean value) {
44274
      if (!value) {
44275
        this.success = null;
44276
      }
44277
    }
44278
 
44279
    public TransactionServiceException getEx() {
44280
      return this.ex;
44281
    }
44282
 
44283
    public void setEx(TransactionServiceException ex) {
44284
      this.ex = ex;
44285
    }
44286
 
44287
    public void unsetEx() {
44288
      this.ex = null;
44289
    }
44290
 
44291
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
44292
    public boolean isSetEx() {
44293
      return this.ex != null;
44294
    }
44295
 
44296
    public void setExIsSet(boolean value) {
44297
      if (!value) {
44298
        this.ex = null;
44299
      }
44300
    }
44301
 
44302
    public void setFieldValue(_Fields field, Object value) {
44303
      switch (field) {
44304
      case SUCCESS:
44305
        if (value == null) {
44306
          unsetSuccess();
44307
        } else {
44308
          setSuccess((Order)value);
44309
        }
44310
        break;
44311
 
44312
      case EX:
44313
        if (value == null) {
44314
          unsetEx();
44315
        } else {
44316
          setEx((TransactionServiceException)value);
44317
        }
44318
        break;
44319
 
44320
      }
44321
    }
44322
 
44323
    public Object getFieldValue(_Fields field) {
44324
      switch (field) {
44325
      case SUCCESS:
44326
        return getSuccess();
44327
 
44328
      case EX:
44329
        return getEx();
44330
 
44331
      }
44332
      throw new IllegalStateException();
44333
    }
44334
 
44335
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44336
    public boolean isSet(_Fields field) {
44337
      if (field == null) {
44338
        throw new IllegalArgumentException();
44339
      }
44340
 
44341
      switch (field) {
44342
      case SUCCESS:
44343
        return isSetSuccess();
44344
      case EX:
44345
        return isSetEx();
44346
      }
44347
      throw new IllegalStateException();
44348
    }
44349
 
44350
    @Override
44351
    public boolean equals(Object that) {
44352
      if (that == null)
44353
        return false;
44354
      if (that instanceof updateWeight_result)
44355
        return this.equals((updateWeight_result)that);
44356
      return false;
44357
    }
44358
 
44359
    public boolean equals(updateWeight_result that) {
44360
      if (that == null)
44361
        return false;
44362
 
44363
      boolean this_present_success = true && this.isSetSuccess();
44364
      boolean that_present_success = true && that.isSetSuccess();
44365
      if (this_present_success || that_present_success) {
44366
        if (!(this_present_success && that_present_success))
44367
          return false;
44368
        if (!this.success.equals(that.success))
44369
          return false;
44370
      }
44371
 
44372
      boolean this_present_ex = true && this.isSetEx();
44373
      boolean that_present_ex = true && that.isSetEx();
44374
      if (this_present_ex || that_present_ex) {
44375
        if (!(this_present_ex && that_present_ex))
44376
          return false;
44377
        if (!this.ex.equals(that.ex))
44378
          return false;
44379
      }
44380
 
44381
      return true;
44382
    }
44383
 
44384
    @Override
44385
    public int hashCode() {
44386
      return 0;
44387
    }
44388
 
44389
    public int compareTo(updateWeight_result other) {
44390
      if (!getClass().equals(other.getClass())) {
44391
        return getClass().getName().compareTo(other.getClass().getName());
44392
      }
44393
 
44394
      int lastComparison = 0;
44395
      updateWeight_result typedOther = (updateWeight_result)other;
44396
 
44397
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
44398
      if (lastComparison != 0) {
44399
        return lastComparison;
44400
      }
44401
      if (isSetSuccess()) {
44402
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
44403
        if (lastComparison != 0) {
44404
          return lastComparison;
44405
        }
44406
      }
44407
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
44408
      if (lastComparison != 0) {
44409
        return lastComparison;
44410
      }
44411
      if (isSetEx()) {
44412
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
44413
        if (lastComparison != 0) {
44414
          return lastComparison;
44415
        }
44416
      }
44417
      return 0;
44418
    }
44419
 
44420
    public _Fields fieldForId(int fieldId) {
44421
      return _Fields.findByThriftId(fieldId);
44422
    }
44423
 
44424
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44425
      org.apache.thrift.protocol.TField field;
44426
      iprot.readStructBegin();
44427
      while (true)
44428
      {
44429
        field = iprot.readFieldBegin();
44430
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44431
          break;
44432
        }
44433
        switch (field.id) {
44434
          case 0: // SUCCESS
44435
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
44436
              this.success = new Order();
44437
              this.success.read(iprot);
44438
            } else { 
44439
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44440
            }
44441
            break;
44442
          case 1: // EX
44443
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
44444
              this.ex = new TransactionServiceException();
44445
              this.ex.read(iprot);
44446
            } else { 
44447
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44448
            }
44449
            break;
44450
          default:
44451
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44452
        }
44453
        iprot.readFieldEnd();
44454
      }
44455
      iprot.readStructEnd();
44456
      validate();
44457
    }
44458
 
44459
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44460
      oprot.writeStructBegin(STRUCT_DESC);
44461
 
44462
      if (this.isSetSuccess()) {
44463
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
44464
        this.success.write(oprot);
44465
        oprot.writeFieldEnd();
44466
      } else if (this.isSetEx()) {
44467
        oprot.writeFieldBegin(EX_FIELD_DESC);
44468
        this.ex.write(oprot);
44469
        oprot.writeFieldEnd();
44470
      }
44471
      oprot.writeFieldStop();
44472
      oprot.writeStructEnd();
44473
    }
44474
 
44475
    @Override
44476
    public String toString() {
44477
      StringBuilder sb = new StringBuilder("updateWeight_result(");
44478
      boolean first = true;
44479
 
44480
      sb.append("success:");
44481
      if (this.success == null) {
44482
        sb.append("null");
44483
      } else {
44484
        sb.append(this.success);
44485
      }
44486
      first = false;
44487
      if (!first) sb.append(", ");
44488
      sb.append("ex:");
44489
      if (this.ex == null) {
44490
        sb.append("null");
44491
      } else {
44492
        sb.append(this.ex);
44493
      }
44494
      first = false;
44495
      sb.append(")");
44496
      return sb.toString();
44497
    }
44498
 
44499
    public void validate() throws org.apache.thrift.TException {
44500
      // check for required fields
44501
    }
44502
 
44503
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44504
      try {
44505
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44506
      } catch (org.apache.thrift.TException te) {
44507
        throw new java.io.IOException(te);
44508
      }
44509
    }
44510
 
44511
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44512
      try {
44513
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44514
      } catch (org.apache.thrift.TException te) {
44515
        throw new java.io.IOException(te);
44516
      }
44517
    }
44518
 
44519
  }
44520
 
3469 chandransh 44521
  public static class changeItem_args implements org.apache.thrift.TBase<changeItem_args, changeItem_args._Fields>, java.io.Serializable, Cloneable   {
44522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItem_args");
44523
 
44524
    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);
44525
    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);
44526
 
44527
    private long orderId; // required
44528
    private long itemId; // required
44529
 
44530
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44531
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44532
      ORDER_ID((short)1, "orderId"),
44533
      ITEM_ID((short)2, "itemId");
44534
 
44535
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44536
 
44537
      static {
44538
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44539
          byName.put(field.getFieldName(), field);
44540
        }
44541
      }
44542
 
44543
      /**
44544
       * Find the _Fields constant that matches fieldId, or null if its not found.
44545
       */
44546
      public static _Fields findByThriftId(int fieldId) {
44547
        switch(fieldId) {
44548
          case 1: // ORDER_ID
44549
            return ORDER_ID;
44550
          case 2: // ITEM_ID
44551
            return ITEM_ID;
44552
          default:
44553
            return null;
44554
        }
44555
      }
44556
 
44557
      /**
44558
       * Find the _Fields constant that matches fieldId, throwing an exception
44559
       * if it is not found.
44560
       */
44561
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44562
        _Fields fields = findByThriftId(fieldId);
44563
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44564
        return fields;
44565
      }
44566
 
44567
      /**
44568
       * Find the _Fields constant that matches name, or null if its not found.
44569
       */
44570
      public static _Fields findByName(String name) {
44571
        return byName.get(name);
44572
      }
44573
 
44574
      private final short _thriftId;
44575
      private final String _fieldName;
44576
 
44577
      _Fields(short thriftId, String fieldName) {
44578
        _thriftId = thriftId;
44579
        _fieldName = fieldName;
44580
      }
44581
 
44582
      public short getThriftFieldId() {
44583
        return _thriftId;
44584
      }
44585
 
44586
      public String getFieldName() {
44587
        return _fieldName;
44588
      }
44589
    }
44590
 
44591
    // isset id assignments
44592
    private static final int __ORDERID_ISSET_ID = 0;
44593
    private static final int __ITEMID_ISSET_ID = 1;
44594
    private BitSet __isset_bit_vector = new BitSet(2);
44595
 
44596
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44597
    static {
44598
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44599
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44600
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
44601
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44602
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
44603
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44604
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItem_args.class, metaDataMap);
44605
    }
44606
 
44607
    public changeItem_args() {
44608
    }
44609
 
44610
    public changeItem_args(
44611
      long orderId,
44612
      long itemId)
44613
    {
44614
      this();
44615
      this.orderId = orderId;
44616
      setOrderIdIsSet(true);
44617
      this.itemId = itemId;
44618
      setItemIdIsSet(true);
44619
    }
44620
 
44621
    /**
44622
     * Performs a deep copy on <i>other</i>.
44623
     */
44624
    public changeItem_args(changeItem_args other) {
44625
      __isset_bit_vector.clear();
44626
      __isset_bit_vector.or(other.__isset_bit_vector);
44627
      this.orderId = other.orderId;
44628
      this.itemId = other.itemId;
44629
    }
44630
 
44631
    public changeItem_args deepCopy() {
44632
      return new changeItem_args(this);
44633
    }
44634
 
44635
    @Override
44636
    public void clear() {
44637
      setOrderIdIsSet(false);
44638
      this.orderId = 0;
44639
      setItemIdIsSet(false);
44640
      this.itemId = 0;
44641
    }
44642
 
44643
    public long getOrderId() {
44644
      return this.orderId;
44645
    }
44646
 
44647
    public void setOrderId(long orderId) {
44648
      this.orderId = orderId;
44649
      setOrderIdIsSet(true);
44650
    }
44651
 
44652
    public void unsetOrderId() {
44653
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
44654
    }
44655
 
44656
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
44657
    public boolean isSetOrderId() {
44658
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
44659
    }
44660
 
44661
    public void setOrderIdIsSet(boolean value) {
44662
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
44663
    }
44664
 
44665
    public long getItemId() {
44666
      return this.itemId;
44667
    }
44668
 
44669
    public void setItemId(long itemId) {
44670
      this.itemId = itemId;
44671
      setItemIdIsSet(true);
44672
    }
44673
 
44674
    public void unsetItemId() {
44675
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
44676
    }
44677
 
44678
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
44679
    public boolean isSetItemId() {
44680
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
44681
    }
44682
 
44683
    public void setItemIdIsSet(boolean value) {
44684
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
44685
    }
44686
 
44687
    public void setFieldValue(_Fields field, Object value) {
44688
      switch (field) {
44689
      case ORDER_ID:
44690
        if (value == null) {
44691
          unsetOrderId();
44692
        } else {
44693
          setOrderId((Long)value);
44694
        }
44695
        break;
44696
 
44697
      case ITEM_ID:
44698
        if (value == null) {
44699
          unsetItemId();
44700
        } else {
44701
          setItemId((Long)value);
44702
        }
44703
        break;
44704
 
44705
      }
44706
    }
44707
 
44708
    public Object getFieldValue(_Fields field) {
44709
      switch (field) {
44710
      case ORDER_ID:
44711
        return Long.valueOf(getOrderId());
44712
 
44713
      case ITEM_ID:
44714
        return Long.valueOf(getItemId());
44715
 
44716
      }
44717
      throw new IllegalStateException();
44718
    }
44719
 
44720
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44721
    public boolean isSet(_Fields field) {
44722
      if (field == null) {
44723
        throw new IllegalArgumentException();
44724
      }
44725
 
44726
      switch (field) {
44727
      case ORDER_ID:
44728
        return isSetOrderId();
44729
      case ITEM_ID:
44730
        return isSetItemId();
44731
      }
44732
      throw new IllegalStateException();
44733
    }
44734
 
44735
    @Override
44736
    public boolean equals(Object that) {
44737
      if (that == null)
44738
        return false;
44739
      if (that instanceof changeItem_args)
44740
        return this.equals((changeItem_args)that);
44741
      return false;
44742
    }
44743
 
44744
    public boolean equals(changeItem_args that) {
44745
      if (that == null)
44746
        return false;
44747
 
44748
      boolean this_present_orderId = true;
44749
      boolean that_present_orderId = true;
44750
      if (this_present_orderId || that_present_orderId) {
44751
        if (!(this_present_orderId && that_present_orderId))
44752
          return false;
44753
        if (this.orderId != that.orderId)
44754
          return false;
44755
      }
44756
 
44757
      boolean this_present_itemId = true;
44758
      boolean that_present_itemId = true;
44759
      if (this_present_itemId || that_present_itemId) {
44760
        if (!(this_present_itemId && that_present_itemId))
44761
          return false;
44762
        if (this.itemId != that.itemId)
44763
          return false;
44764
      }
44765
 
44766
      return true;
44767
    }
44768
 
44769
    @Override
44770
    public int hashCode() {
44771
      return 0;
44772
    }
44773
 
44774
    public int compareTo(changeItem_args other) {
44775
      if (!getClass().equals(other.getClass())) {
44776
        return getClass().getName().compareTo(other.getClass().getName());
44777
      }
44778
 
44779
      int lastComparison = 0;
44780
      changeItem_args typedOther = (changeItem_args)other;
44781
 
44782
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
44783
      if (lastComparison != 0) {
44784
        return lastComparison;
44785
      }
44786
      if (isSetOrderId()) {
44787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
44788
        if (lastComparison != 0) {
44789
          return lastComparison;
44790
        }
44791
      }
44792
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
44793
      if (lastComparison != 0) {
44794
        return lastComparison;
44795
      }
44796
      if (isSetItemId()) {
44797
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
44798
        if (lastComparison != 0) {
44799
          return lastComparison;
44800
        }
44801
      }
44802
      return 0;
44803
    }
44804
 
44805
    public _Fields fieldForId(int fieldId) {
44806
      return _Fields.findByThriftId(fieldId);
44807
    }
44808
 
44809
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44810
      org.apache.thrift.protocol.TField field;
44811
      iprot.readStructBegin();
44812
      while (true)
44813
      {
44814
        field = iprot.readFieldBegin();
44815
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44816
          break;
44817
        }
44818
        switch (field.id) {
44819
          case 1: // ORDER_ID
44820
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44821
              this.orderId = iprot.readI64();
44822
              setOrderIdIsSet(true);
44823
            } else { 
44824
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44825
            }
44826
            break;
44827
          case 2: // ITEM_ID
44828
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44829
              this.itemId = iprot.readI64();
44830
              setItemIdIsSet(true);
44831
            } else { 
44832
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44833
            }
44834
            break;
44835
          default:
44836
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44837
        }
44838
        iprot.readFieldEnd();
44839
      }
44840
      iprot.readStructEnd();
44841
      validate();
44842
    }
44843
 
44844
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44845
      validate();
44846
 
44847
      oprot.writeStructBegin(STRUCT_DESC);
44848
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
44849
      oprot.writeI64(this.orderId);
44850
      oprot.writeFieldEnd();
44851
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
44852
      oprot.writeI64(this.itemId);
44853
      oprot.writeFieldEnd();
44854
      oprot.writeFieldStop();
44855
      oprot.writeStructEnd();
44856
    }
44857
 
44858
    @Override
44859
    public String toString() {
44860
      StringBuilder sb = new StringBuilder("changeItem_args(");
44861
      boolean first = true;
44862
 
44863
      sb.append("orderId:");
44864
      sb.append(this.orderId);
44865
      first = false;
44866
      if (!first) sb.append(", ");
44867
      sb.append("itemId:");
44868
      sb.append(this.itemId);
44869
      first = false;
44870
      sb.append(")");
44871
      return sb.toString();
44872
    }
44873
 
44874
    public void validate() throws org.apache.thrift.TException {
44875
      // check for required fields
44876
    }
44877
 
44878
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44879
      try {
44880
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44881
      } catch (org.apache.thrift.TException te) {
44882
        throw new java.io.IOException(te);
44883
      }
44884
    }
44885
 
44886
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44887
      try {
44888
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44889
      } catch (org.apache.thrift.TException te) {
44890
        throw new java.io.IOException(te);
44891
      }
44892
    }
44893
 
44894
  }
44895
 
44896
  public static class changeItem_result implements org.apache.thrift.TBase<changeItem_result, changeItem_result._Fields>, java.io.Serializable, Cloneable   {
44897
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItem_result");
44898
 
44899
    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);
44900
    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);
44901
 
44902
    private Order success; // required
44903
    private TransactionServiceException ex; // required
44904
 
44905
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44906
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44907
      SUCCESS((short)0, "success"),
44908
      EX((short)1, "ex");
44909
 
44910
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44911
 
44912
      static {
44913
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44914
          byName.put(field.getFieldName(), field);
44915
        }
44916
      }
44917
 
44918
      /**
44919
       * Find the _Fields constant that matches fieldId, or null if its not found.
44920
       */
44921
      public static _Fields findByThriftId(int fieldId) {
44922
        switch(fieldId) {
44923
          case 0: // SUCCESS
44924
            return SUCCESS;
44925
          case 1: // EX
44926
            return EX;
44927
          default:
44928
            return null;
44929
        }
44930
      }
44931
 
44932
      /**
44933
       * Find the _Fields constant that matches fieldId, throwing an exception
44934
       * if it is not found.
44935
       */
44936
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44937
        _Fields fields = findByThriftId(fieldId);
44938
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44939
        return fields;
44940
      }
44941
 
44942
      /**
44943
       * Find the _Fields constant that matches name, or null if its not found.
44944
       */
44945
      public static _Fields findByName(String name) {
44946
        return byName.get(name);
44947
      }
44948
 
44949
      private final short _thriftId;
44950
      private final String _fieldName;
44951
 
44952
      _Fields(short thriftId, String fieldName) {
44953
        _thriftId = thriftId;
44954
        _fieldName = fieldName;
44955
      }
44956
 
44957
      public short getThriftFieldId() {
44958
        return _thriftId;
44959
      }
44960
 
44961
      public String getFieldName() {
44962
        return _fieldName;
44963
      }
44964
    }
44965
 
44966
    // isset id assignments
44967
 
44968
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44969
    static {
44970
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44971
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44972
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
44973
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44974
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
44975
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44976
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItem_result.class, metaDataMap);
44977
    }
44978
 
44979
    public changeItem_result() {
44980
    }
44981
 
44982
    public changeItem_result(
44983
      Order success,
44984
      TransactionServiceException ex)
44985
    {
44986
      this();
44987
      this.success = success;
44988
      this.ex = ex;
44989
    }
44990
 
44991
    /**
44992
     * Performs a deep copy on <i>other</i>.
44993
     */
44994
    public changeItem_result(changeItem_result other) {
44995
      if (other.isSetSuccess()) {
44996
        this.success = new Order(other.success);
44997
      }
44998
      if (other.isSetEx()) {
44999
        this.ex = new TransactionServiceException(other.ex);
45000
      }
45001
    }
45002
 
45003
    public changeItem_result deepCopy() {
45004
      return new changeItem_result(this);
45005
    }
45006
 
45007
    @Override
45008
    public void clear() {
45009
      this.success = null;
45010
      this.ex = null;
45011
    }
45012
 
45013
    public Order getSuccess() {
45014
      return this.success;
45015
    }
45016
 
45017
    public void setSuccess(Order success) {
45018
      this.success = success;
45019
    }
45020
 
45021
    public void unsetSuccess() {
45022
      this.success = null;
45023
    }
45024
 
45025
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
45026
    public boolean isSetSuccess() {
45027
      return this.success != null;
45028
    }
45029
 
45030
    public void setSuccessIsSet(boolean value) {
45031
      if (!value) {
45032
        this.success = null;
45033
      }
45034
    }
45035
 
45036
    public TransactionServiceException getEx() {
45037
      return this.ex;
45038
    }
45039
 
45040
    public void setEx(TransactionServiceException ex) {
45041
      this.ex = ex;
45042
    }
45043
 
45044
    public void unsetEx() {
45045
      this.ex = null;
45046
    }
45047
 
45048
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
45049
    public boolean isSetEx() {
45050
      return this.ex != null;
45051
    }
45052
 
45053
    public void setExIsSet(boolean value) {
45054
      if (!value) {
45055
        this.ex = null;
45056
      }
45057
    }
45058
 
45059
    public void setFieldValue(_Fields field, Object value) {
45060
      switch (field) {
45061
      case SUCCESS:
45062
        if (value == null) {
45063
          unsetSuccess();
45064
        } else {
45065
          setSuccess((Order)value);
45066
        }
45067
        break;
45068
 
45069
      case EX:
45070
        if (value == null) {
45071
          unsetEx();
45072
        } else {
45073
          setEx((TransactionServiceException)value);
45074
        }
45075
        break;
45076
 
45077
      }
45078
    }
45079
 
45080
    public Object getFieldValue(_Fields field) {
45081
      switch (field) {
45082
      case SUCCESS:
45083
        return getSuccess();
45084
 
45085
      case EX:
45086
        return getEx();
45087
 
45088
      }
45089
      throw new IllegalStateException();
45090
    }
45091
 
45092
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45093
    public boolean isSet(_Fields field) {
45094
      if (field == null) {
45095
        throw new IllegalArgumentException();
45096
      }
45097
 
45098
      switch (field) {
45099
      case SUCCESS:
45100
        return isSetSuccess();
45101
      case EX:
45102
        return isSetEx();
45103
      }
45104
      throw new IllegalStateException();
45105
    }
45106
 
45107
    @Override
45108
    public boolean equals(Object that) {
45109
      if (that == null)
45110
        return false;
45111
      if (that instanceof changeItem_result)
45112
        return this.equals((changeItem_result)that);
45113
      return false;
45114
    }
45115
 
45116
    public boolean equals(changeItem_result that) {
45117
      if (that == null)
45118
        return false;
45119
 
45120
      boolean this_present_success = true && this.isSetSuccess();
45121
      boolean that_present_success = true && that.isSetSuccess();
45122
      if (this_present_success || that_present_success) {
45123
        if (!(this_present_success && that_present_success))
45124
          return false;
45125
        if (!this.success.equals(that.success))
45126
          return false;
45127
      }
45128
 
45129
      boolean this_present_ex = true && this.isSetEx();
45130
      boolean that_present_ex = true && that.isSetEx();
45131
      if (this_present_ex || that_present_ex) {
45132
        if (!(this_present_ex && that_present_ex))
45133
          return false;
45134
        if (!this.ex.equals(that.ex))
45135
          return false;
45136
      }
45137
 
45138
      return true;
45139
    }
45140
 
45141
    @Override
45142
    public int hashCode() {
45143
      return 0;
45144
    }
45145
 
45146
    public int compareTo(changeItem_result other) {
45147
      if (!getClass().equals(other.getClass())) {
45148
        return getClass().getName().compareTo(other.getClass().getName());
45149
      }
45150
 
45151
      int lastComparison = 0;
45152
      changeItem_result typedOther = (changeItem_result)other;
45153
 
45154
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
45155
      if (lastComparison != 0) {
45156
        return lastComparison;
45157
      }
45158
      if (isSetSuccess()) {
45159
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
45160
        if (lastComparison != 0) {
45161
          return lastComparison;
45162
        }
45163
      }
45164
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
45165
      if (lastComparison != 0) {
45166
        return lastComparison;
45167
      }
45168
      if (isSetEx()) {
45169
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
45170
        if (lastComparison != 0) {
45171
          return lastComparison;
45172
        }
45173
      }
45174
      return 0;
45175
    }
45176
 
45177
    public _Fields fieldForId(int fieldId) {
45178
      return _Fields.findByThriftId(fieldId);
45179
    }
45180
 
45181
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45182
      org.apache.thrift.protocol.TField field;
45183
      iprot.readStructBegin();
45184
      while (true)
45185
      {
45186
        field = iprot.readFieldBegin();
45187
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45188
          break;
45189
        }
45190
        switch (field.id) {
45191
          case 0: // SUCCESS
45192
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
45193
              this.success = new Order();
45194
              this.success.read(iprot);
45195
            } else { 
45196
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45197
            }
45198
            break;
45199
          case 1: // EX
45200
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
45201
              this.ex = new TransactionServiceException();
45202
              this.ex.read(iprot);
45203
            } else { 
45204
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45205
            }
45206
            break;
45207
          default:
45208
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45209
        }
45210
        iprot.readFieldEnd();
45211
      }
45212
      iprot.readStructEnd();
45213
      validate();
45214
    }
45215
 
45216
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45217
      oprot.writeStructBegin(STRUCT_DESC);
45218
 
45219
      if (this.isSetSuccess()) {
45220
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
45221
        this.success.write(oprot);
45222
        oprot.writeFieldEnd();
45223
      } else if (this.isSetEx()) {
45224
        oprot.writeFieldBegin(EX_FIELD_DESC);
45225
        this.ex.write(oprot);
45226
        oprot.writeFieldEnd();
45227
      }
45228
      oprot.writeFieldStop();
45229
      oprot.writeStructEnd();
45230
    }
45231
 
45232
    @Override
45233
    public String toString() {
45234
      StringBuilder sb = new StringBuilder("changeItem_result(");
45235
      boolean first = true;
45236
 
45237
      sb.append("success:");
45238
      if (this.success == null) {
45239
        sb.append("null");
45240
      } else {
45241
        sb.append(this.success);
45242
      }
45243
      first = false;
45244
      if (!first) sb.append(", ");
45245
      sb.append("ex:");
45246
      if (this.ex == null) {
45247
        sb.append("null");
45248
      } else {
45249
        sb.append(this.ex);
45250
      }
45251
      first = false;
45252
      sb.append(")");
45253
      return sb.toString();
45254
    }
45255
 
45256
    public void validate() throws org.apache.thrift.TException {
45257
      // check for required fields
45258
    }
45259
 
45260
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45261
      try {
45262
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45263
      } catch (org.apache.thrift.TException te) {
45264
        throw new java.io.IOException(te);
45265
      }
45266
    }
45267
 
45268
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45269
      try {
45270
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45271
      } catch (org.apache.thrift.TException te) {
45272
        throw new java.io.IOException(te);
45273
      }
45274
    }
45275
 
45276
  }
45277
 
45278
  public static class shiftToWarehouse_args implements org.apache.thrift.TBase<shiftToWarehouse_args, shiftToWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
45279
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shiftToWarehouse_args");
45280
 
45281
    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);
45282
    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);
45283
 
45284
    private long orderId; // required
45285
    private long warehouseId; // required
45286
 
45287
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45288
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45289
      ORDER_ID((short)1, "orderId"),
45290
      WAREHOUSE_ID((short)2, "warehouseId");
45291
 
45292
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45293
 
45294
      static {
45295
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45296
          byName.put(field.getFieldName(), field);
45297
        }
45298
      }
45299
 
45300
      /**
45301
       * Find the _Fields constant that matches fieldId, or null if its not found.
45302
       */
45303
      public static _Fields findByThriftId(int fieldId) {
45304
        switch(fieldId) {
45305
          case 1: // ORDER_ID
45306
            return ORDER_ID;
45307
          case 2: // WAREHOUSE_ID
45308
            return WAREHOUSE_ID;
45309
          default:
45310
            return null;
45311
        }
45312
      }
45313
 
45314
      /**
45315
       * Find the _Fields constant that matches fieldId, throwing an exception
45316
       * if it is not found.
45317
       */
45318
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45319
        _Fields fields = findByThriftId(fieldId);
45320
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45321
        return fields;
45322
      }
45323
 
45324
      /**
45325
       * Find the _Fields constant that matches name, or null if its not found.
45326
       */
45327
      public static _Fields findByName(String name) {
45328
        return byName.get(name);
45329
      }
45330
 
45331
      private final short _thriftId;
45332
      private final String _fieldName;
45333
 
45334
      _Fields(short thriftId, String fieldName) {
45335
        _thriftId = thriftId;
45336
        _fieldName = fieldName;
45337
      }
45338
 
45339
      public short getThriftFieldId() {
45340
        return _thriftId;
45341
      }
45342
 
45343
      public String getFieldName() {
45344
        return _fieldName;
45345
      }
45346
    }
45347
 
45348
    // isset id assignments
45349
    private static final int __ORDERID_ISSET_ID = 0;
45350
    private static final int __WAREHOUSEID_ISSET_ID = 1;
45351
    private BitSet __isset_bit_vector = new BitSet(2);
45352
 
45353
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45354
    static {
45355
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45356
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45357
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45358
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45359
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45360
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45361
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shiftToWarehouse_args.class, metaDataMap);
45362
    }
45363
 
45364
    public shiftToWarehouse_args() {
45365
    }
45366
 
45367
    public shiftToWarehouse_args(
45368
      long orderId,
45369
      long warehouseId)
45370
    {
45371
      this();
45372
      this.orderId = orderId;
45373
      setOrderIdIsSet(true);
45374
      this.warehouseId = warehouseId;
45375
      setWarehouseIdIsSet(true);
45376
    }
45377
 
45378
    /**
45379
     * Performs a deep copy on <i>other</i>.
45380
     */
45381
    public shiftToWarehouse_args(shiftToWarehouse_args other) {
45382
      __isset_bit_vector.clear();
45383
      __isset_bit_vector.or(other.__isset_bit_vector);
45384
      this.orderId = other.orderId;
45385
      this.warehouseId = other.warehouseId;
45386
    }
45387
 
45388
    public shiftToWarehouse_args deepCopy() {
45389
      return new shiftToWarehouse_args(this);
45390
    }
45391
 
45392
    @Override
45393
    public void clear() {
45394
      setOrderIdIsSet(false);
45395
      this.orderId = 0;
45396
      setWarehouseIdIsSet(false);
45397
      this.warehouseId = 0;
45398
    }
45399
 
45400
    public long getOrderId() {
45401
      return this.orderId;
45402
    }
45403
 
45404
    public void setOrderId(long orderId) {
45405
      this.orderId = orderId;
45406
      setOrderIdIsSet(true);
45407
    }
45408
 
45409
    public void unsetOrderId() {
45410
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
45411
    }
45412
 
45413
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
45414
    public boolean isSetOrderId() {
45415
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
45416
    }
45417
 
45418
    public void setOrderIdIsSet(boolean value) {
45419
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
45420
    }
45421
 
45422
    public long getWarehouseId() {
45423
      return this.warehouseId;
45424
    }
45425
 
45426
    public void setWarehouseId(long warehouseId) {
45427
      this.warehouseId = warehouseId;
45428
      setWarehouseIdIsSet(true);
45429
    }
45430
 
45431
    public void unsetWarehouseId() {
45432
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
45433
    }
45434
 
45435
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
45436
    public boolean isSetWarehouseId() {
45437
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
45438
    }
45439
 
45440
    public void setWarehouseIdIsSet(boolean value) {
45441
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
45442
    }
45443
 
45444
    public void setFieldValue(_Fields field, Object value) {
45445
      switch (field) {
45446
      case ORDER_ID:
45447
        if (value == null) {
45448
          unsetOrderId();
45449
        } else {
45450
          setOrderId((Long)value);
45451
        }
45452
        break;
45453
 
45454
      case WAREHOUSE_ID:
45455
        if (value == null) {
45456
          unsetWarehouseId();
45457
        } else {
45458
          setWarehouseId((Long)value);
45459
        }
45460
        break;
45461
 
45462
      }
45463
    }
45464
 
45465
    public Object getFieldValue(_Fields field) {
45466
      switch (field) {
45467
      case ORDER_ID:
45468
        return Long.valueOf(getOrderId());
45469
 
45470
      case WAREHOUSE_ID:
45471
        return Long.valueOf(getWarehouseId());
45472
 
45473
      }
45474
      throw new IllegalStateException();
45475
    }
45476
 
45477
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45478
    public boolean isSet(_Fields field) {
45479
      if (field == null) {
45480
        throw new IllegalArgumentException();
45481
      }
45482
 
45483
      switch (field) {
45484
      case ORDER_ID:
45485
        return isSetOrderId();
45486
      case WAREHOUSE_ID:
45487
        return isSetWarehouseId();
45488
      }
45489
      throw new IllegalStateException();
45490
    }
45491
 
45492
    @Override
45493
    public boolean equals(Object that) {
45494
      if (that == null)
45495
        return false;
45496
      if (that instanceof shiftToWarehouse_args)
45497
        return this.equals((shiftToWarehouse_args)that);
45498
      return false;
45499
    }
45500
 
45501
    public boolean equals(shiftToWarehouse_args that) {
45502
      if (that == null)
45503
        return false;
45504
 
45505
      boolean this_present_orderId = true;
45506
      boolean that_present_orderId = true;
45507
      if (this_present_orderId || that_present_orderId) {
45508
        if (!(this_present_orderId && that_present_orderId))
45509
          return false;
45510
        if (this.orderId != that.orderId)
45511
          return false;
45512
      }
45513
 
45514
      boolean this_present_warehouseId = true;
45515
      boolean that_present_warehouseId = true;
45516
      if (this_present_warehouseId || that_present_warehouseId) {
45517
        if (!(this_present_warehouseId && that_present_warehouseId))
45518
          return false;
45519
        if (this.warehouseId != that.warehouseId)
45520
          return false;
45521
      }
45522
 
45523
      return true;
45524
    }
45525
 
45526
    @Override
45527
    public int hashCode() {
45528
      return 0;
45529
    }
45530
 
45531
    public int compareTo(shiftToWarehouse_args other) {
45532
      if (!getClass().equals(other.getClass())) {
45533
        return getClass().getName().compareTo(other.getClass().getName());
45534
      }
45535
 
45536
      int lastComparison = 0;
45537
      shiftToWarehouse_args typedOther = (shiftToWarehouse_args)other;
45538
 
45539
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
45540
      if (lastComparison != 0) {
45541
        return lastComparison;
45542
      }
45543
      if (isSetOrderId()) {
45544
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
45545
        if (lastComparison != 0) {
45546
          return lastComparison;
45547
        }
45548
      }
45549
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
45550
      if (lastComparison != 0) {
45551
        return lastComparison;
45552
      }
45553
      if (isSetWarehouseId()) {
45554
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
45555
        if (lastComparison != 0) {
45556
          return lastComparison;
45557
        }
45558
      }
45559
      return 0;
45560
    }
45561
 
45562
    public _Fields fieldForId(int fieldId) {
45563
      return _Fields.findByThriftId(fieldId);
45564
    }
45565
 
45566
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45567
      org.apache.thrift.protocol.TField field;
45568
      iprot.readStructBegin();
45569
      while (true)
45570
      {
45571
        field = iprot.readFieldBegin();
45572
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45573
          break;
45574
        }
45575
        switch (field.id) {
45576
          case 1: // ORDER_ID
45577
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45578
              this.orderId = iprot.readI64();
45579
              setOrderIdIsSet(true);
45580
            } else { 
45581
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45582
            }
45583
            break;
45584
          case 2: // WAREHOUSE_ID
45585
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45586
              this.warehouseId = iprot.readI64();
45587
              setWarehouseIdIsSet(true);
45588
            } else { 
45589
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45590
            }
45591
            break;
45592
          default:
45593
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45594
        }
45595
        iprot.readFieldEnd();
45596
      }
45597
      iprot.readStructEnd();
45598
      validate();
45599
    }
45600
 
45601
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45602
      validate();
45603
 
45604
      oprot.writeStructBegin(STRUCT_DESC);
45605
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
45606
      oprot.writeI64(this.orderId);
45607
      oprot.writeFieldEnd();
45608
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
45609
      oprot.writeI64(this.warehouseId);
45610
      oprot.writeFieldEnd();
45611
      oprot.writeFieldStop();
45612
      oprot.writeStructEnd();
45613
    }
45614
 
45615
    @Override
45616
    public String toString() {
45617
      StringBuilder sb = new StringBuilder("shiftToWarehouse_args(");
45618
      boolean first = true;
45619
 
45620
      sb.append("orderId:");
45621
      sb.append(this.orderId);
45622
      first = false;
45623
      if (!first) sb.append(", ");
45624
      sb.append("warehouseId:");
45625
      sb.append(this.warehouseId);
45626
      first = false;
45627
      sb.append(")");
45628
      return sb.toString();
45629
    }
45630
 
45631
    public void validate() throws org.apache.thrift.TException {
45632
      // check for required fields
45633
    }
45634
 
45635
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45636
      try {
45637
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45638
      } catch (org.apache.thrift.TException te) {
45639
        throw new java.io.IOException(te);
45640
      }
45641
    }
45642
 
45643
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45644
      try {
45645
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45646
      } catch (org.apache.thrift.TException te) {
45647
        throw new java.io.IOException(te);
45648
      }
45649
    }
45650
 
45651
  }
45652
 
45653
  public static class shiftToWarehouse_result implements org.apache.thrift.TBase<shiftToWarehouse_result, shiftToWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
45654
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shiftToWarehouse_result");
45655
 
45656
    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);
45657
    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);
45658
 
45659
    private Order success; // required
45660
    private TransactionServiceException ex; // required
45661
 
45662
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45663
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45664
      SUCCESS((short)0, "success"),
45665
      EX((short)1, "ex");
45666
 
45667
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45668
 
45669
      static {
45670
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45671
          byName.put(field.getFieldName(), field);
45672
        }
45673
      }
45674
 
45675
      /**
45676
       * Find the _Fields constant that matches fieldId, or null if its not found.
45677
       */
45678
      public static _Fields findByThriftId(int fieldId) {
45679
        switch(fieldId) {
45680
          case 0: // SUCCESS
45681
            return SUCCESS;
45682
          case 1: // EX
45683
            return EX;
45684
          default:
45685
            return null;
45686
        }
45687
      }
45688
 
45689
      /**
45690
       * Find the _Fields constant that matches fieldId, throwing an exception
45691
       * if it is not found.
45692
       */
45693
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45694
        _Fields fields = findByThriftId(fieldId);
45695
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45696
        return fields;
45697
      }
45698
 
45699
      /**
45700
       * Find the _Fields constant that matches name, or null if its not found.
45701
       */
45702
      public static _Fields findByName(String name) {
45703
        return byName.get(name);
45704
      }
45705
 
45706
      private final short _thriftId;
45707
      private final String _fieldName;
45708
 
45709
      _Fields(short thriftId, String fieldName) {
45710
        _thriftId = thriftId;
45711
        _fieldName = fieldName;
45712
      }
45713
 
45714
      public short getThriftFieldId() {
45715
        return _thriftId;
45716
      }
45717
 
45718
      public String getFieldName() {
45719
        return _fieldName;
45720
      }
45721
    }
45722
 
45723
    // isset id assignments
45724
 
45725
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45726
    static {
45727
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45728
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45729
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
45730
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45731
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
45732
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45733
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shiftToWarehouse_result.class, metaDataMap);
45734
    }
45735
 
45736
    public shiftToWarehouse_result() {
45737
    }
45738
 
45739
    public shiftToWarehouse_result(
45740
      Order success,
45741
      TransactionServiceException ex)
45742
    {
45743
      this();
45744
      this.success = success;
45745
      this.ex = ex;
45746
    }
45747
 
45748
    /**
45749
     * Performs a deep copy on <i>other</i>.
45750
     */
45751
    public shiftToWarehouse_result(shiftToWarehouse_result other) {
45752
      if (other.isSetSuccess()) {
45753
        this.success = new Order(other.success);
45754
      }
45755
      if (other.isSetEx()) {
45756
        this.ex = new TransactionServiceException(other.ex);
45757
      }
45758
    }
45759
 
45760
    public shiftToWarehouse_result deepCopy() {
45761
      return new shiftToWarehouse_result(this);
45762
    }
45763
 
45764
    @Override
45765
    public void clear() {
45766
      this.success = null;
45767
      this.ex = null;
45768
    }
45769
 
45770
    public Order getSuccess() {
45771
      return this.success;
45772
    }
45773
 
45774
    public void setSuccess(Order success) {
45775
      this.success = success;
45776
    }
45777
 
45778
    public void unsetSuccess() {
45779
      this.success = null;
45780
    }
45781
 
45782
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
45783
    public boolean isSetSuccess() {
45784
      return this.success != null;
45785
    }
45786
 
45787
    public void setSuccessIsSet(boolean value) {
45788
      if (!value) {
45789
        this.success = null;
45790
      }
45791
    }
45792
 
45793
    public TransactionServiceException getEx() {
45794
      return this.ex;
45795
    }
45796
 
45797
    public void setEx(TransactionServiceException ex) {
45798
      this.ex = ex;
45799
    }
45800
 
45801
    public void unsetEx() {
45802
      this.ex = null;
45803
    }
45804
 
45805
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
45806
    public boolean isSetEx() {
45807
      return this.ex != null;
45808
    }
45809
 
45810
    public void setExIsSet(boolean value) {
45811
      if (!value) {
45812
        this.ex = null;
45813
      }
45814
    }
45815
 
45816
    public void setFieldValue(_Fields field, Object value) {
45817
      switch (field) {
45818
      case SUCCESS:
45819
        if (value == null) {
45820
          unsetSuccess();
45821
        } else {
45822
          setSuccess((Order)value);
45823
        }
45824
        break;
45825
 
45826
      case EX:
45827
        if (value == null) {
45828
          unsetEx();
45829
        } else {
45830
          setEx((TransactionServiceException)value);
45831
        }
45832
        break;
45833
 
45834
      }
45835
    }
45836
 
45837
    public Object getFieldValue(_Fields field) {
45838
      switch (field) {
45839
      case SUCCESS:
45840
        return getSuccess();
45841
 
45842
      case EX:
45843
        return getEx();
45844
 
45845
      }
45846
      throw new IllegalStateException();
45847
    }
45848
 
45849
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45850
    public boolean isSet(_Fields field) {
45851
      if (field == null) {
45852
        throw new IllegalArgumentException();
45853
      }
45854
 
45855
      switch (field) {
45856
      case SUCCESS:
45857
        return isSetSuccess();
45858
      case EX:
45859
        return isSetEx();
45860
      }
45861
      throw new IllegalStateException();
45862
    }
45863
 
45864
    @Override
45865
    public boolean equals(Object that) {
45866
      if (that == null)
45867
        return false;
45868
      if (that instanceof shiftToWarehouse_result)
45869
        return this.equals((shiftToWarehouse_result)that);
45870
      return false;
45871
    }
45872
 
45873
    public boolean equals(shiftToWarehouse_result that) {
45874
      if (that == null)
45875
        return false;
45876
 
45877
      boolean this_present_success = true && this.isSetSuccess();
45878
      boolean that_present_success = true && that.isSetSuccess();
45879
      if (this_present_success || that_present_success) {
45880
        if (!(this_present_success && that_present_success))
45881
          return false;
45882
        if (!this.success.equals(that.success))
45883
          return false;
45884
      }
45885
 
45886
      boolean this_present_ex = true && this.isSetEx();
45887
      boolean that_present_ex = true && that.isSetEx();
45888
      if (this_present_ex || that_present_ex) {
45889
        if (!(this_present_ex && that_present_ex))
45890
          return false;
45891
        if (!this.ex.equals(that.ex))
45892
          return false;
45893
      }
45894
 
45895
      return true;
45896
    }
45897
 
45898
    @Override
45899
    public int hashCode() {
45900
      return 0;
45901
    }
45902
 
45903
    public int compareTo(shiftToWarehouse_result other) {
45904
      if (!getClass().equals(other.getClass())) {
45905
        return getClass().getName().compareTo(other.getClass().getName());
45906
      }
45907
 
45908
      int lastComparison = 0;
45909
      shiftToWarehouse_result typedOther = (shiftToWarehouse_result)other;
45910
 
45911
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
45912
      if (lastComparison != 0) {
45913
        return lastComparison;
45914
      }
45915
      if (isSetSuccess()) {
45916
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
45917
        if (lastComparison != 0) {
45918
          return lastComparison;
45919
        }
45920
      }
45921
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
45922
      if (lastComparison != 0) {
45923
        return lastComparison;
45924
      }
45925
      if (isSetEx()) {
45926
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
45927
        if (lastComparison != 0) {
45928
          return lastComparison;
45929
        }
45930
      }
45931
      return 0;
45932
    }
45933
 
45934
    public _Fields fieldForId(int fieldId) {
45935
      return _Fields.findByThriftId(fieldId);
45936
    }
45937
 
45938
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45939
      org.apache.thrift.protocol.TField field;
45940
      iprot.readStructBegin();
45941
      while (true)
45942
      {
45943
        field = iprot.readFieldBegin();
45944
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45945
          break;
45946
        }
45947
        switch (field.id) {
45948
          case 0: // SUCCESS
45949
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
45950
              this.success = new Order();
45951
              this.success.read(iprot);
45952
            } else { 
45953
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45954
            }
45955
            break;
45956
          case 1: // EX
45957
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
45958
              this.ex = new TransactionServiceException();
45959
              this.ex.read(iprot);
45960
            } else { 
45961
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45962
            }
45963
            break;
45964
          default:
45965
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45966
        }
45967
        iprot.readFieldEnd();
45968
      }
45969
      iprot.readStructEnd();
45970
      validate();
45971
    }
45972
 
45973
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45974
      oprot.writeStructBegin(STRUCT_DESC);
45975
 
45976
      if (this.isSetSuccess()) {
45977
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
45978
        this.success.write(oprot);
45979
        oprot.writeFieldEnd();
45980
      } else if (this.isSetEx()) {
45981
        oprot.writeFieldBegin(EX_FIELD_DESC);
45982
        this.ex.write(oprot);
45983
        oprot.writeFieldEnd();
45984
      }
45985
      oprot.writeFieldStop();
45986
      oprot.writeStructEnd();
45987
    }
45988
 
45989
    @Override
45990
    public String toString() {
45991
      StringBuilder sb = new StringBuilder("shiftToWarehouse_result(");
45992
      boolean first = true;
45993
 
45994
      sb.append("success:");
45995
      if (this.success == null) {
45996
        sb.append("null");
45997
      } else {
45998
        sb.append(this.success);
45999
      }
46000
      first = false;
46001
      if (!first) sb.append(", ");
46002
      sb.append("ex:");
46003
      if (this.ex == null) {
46004
        sb.append("null");
46005
      } else {
46006
        sb.append(this.ex);
46007
      }
46008
      first = false;
46009
      sb.append(")");
46010
      return sb.toString();
46011
    }
46012
 
46013
    public void validate() throws org.apache.thrift.TException {
46014
      // check for required fields
46015
    }
46016
 
46017
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46018
      try {
46019
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46020
      } catch (org.apache.thrift.TException te) {
46021
        throw new java.io.IOException(te);
46022
      }
46023
    }
46024
 
46025
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46026
      try {
46027
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46028
      } catch (org.apache.thrift.TException te) {
46029
        throw new java.io.IOException(te);
46030
      }
46031
    }
46032
 
46033
  }
46034
 
3553 chandransh 46035
  public static class addDelayReason_args implements org.apache.thrift.TBase<addDelayReason_args, addDelayReason_args._Fields>, java.io.Serializable, Cloneable   {
46036
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addDelayReason_args");
46037
 
46038
    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);
46039
    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);
3986 chandransh 46040
    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);
3553 chandransh 46041
 
46042
    private long orderId; // required
46043
    private DelayReason delayReason; // required
3986 chandransh 46044
    private long furtherDelay; // required
3553 chandransh 46045
 
46046
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46047
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46048
      ORDER_ID((short)1, "orderId"),
46049
      /**
46050
       * 
46051
       * @see DelayReason
46052
       */
3986 chandransh 46053
      DELAY_REASON((short)2, "delayReason"),
46054
      FURTHER_DELAY((short)3, "furtherDelay");
3553 chandransh 46055
 
46056
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46057
 
46058
      static {
46059
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46060
          byName.put(field.getFieldName(), field);
46061
        }
46062
      }
46063
 
46064
      /**
46065
       * Find the _Fields constant that matches fieldId, or null if its not found.
46066
       */
46067
      public static _Fields findByThriftId(int fieldId) {
46068
        switch(fieldId) {
46069
          case 1: // ORDER_ID
46070
            return ORDER_ID;
46071
          case 2: // DELAY_REASON
46072
            return DELAY_REASON;
3986 chandransh 46073
          case 3: // FURTHER_DELAY
46074
            return FURTHER_DELAY;
3553 chandransh 46075
          default:
46076
            return null;
46077
        }
46078
      }
46079
 
46080
      /**
46081
       * Find the _Fields constant that matches fieldId, throwing an exception
46082
       * if it is not found.
46083
       */
46084
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46085
        _Fields fields = findByThriftId(fieldId);
46086
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46087
        return fields;
46088
      }
46089
 
46090
      /**
46091
       * Find the _Fields constant that matches name, or null if its not found.
46092
       */
46093
      public static _Fields findByName(String name) {
46094
        return byName.get(name);
46095
      }
46096
 
46097
      private final short _thriftId;
46098
      private final String _fieldName;
46099
 
46100
      _Fields(short thriftId, String fieldName) {
46101
        _thriftId = thriftId;
46102
        _fieldName = fieldName;
46103
      }
46104
 
46105
      public short getThriftFieldId() {
46106
        return _thriftId;
46107
      }
46108
 
46109
      public String getFieldName() {
46110
        return _fieldName;
46111
      }
46112
    }
46113
 
46114
    // isset id assignments
46115
    private static final int __ORDERID_ISSET_ID = 0;
3986 chandransh 46116
    private static final int __FURTHERDELAY_ISSET_ID = 1;
46117
    private BitSet __isset_bit_vector = new BitSet(2);
3553 chandransh 46118
 
46119
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46120
    static {
46121
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46122
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46123
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46124
      tmpMap.put(_Fields.DELAY_REASON, new org.apache.thrift.meta_data.FieldMetaData("delayReason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46125
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DelayReason.class)));
3986 chandransh 46126
      tmpMap.put(_Fields.FURTHER_DELAY, new org.apache.thrift.meta_data.FieldMetaData("furtherDelay", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46127
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3553 chandransh 46128
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46129
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addDelayReason_args.class, metaDataMap);
46130
    }
46131
 
46132
    public addDelayReason_args() {
46133
    }
46134
 
46135
    public addDelayReason_args(
46136
      long orderId,
3986 chandransh 46137
      DelayReason delayReason,
46138
      long furtherDelay)
3553 chandransh 46139
    {
46140
      this();
46141
      this.orderId = orderId;
46142
      setOrderIdIsSet(true);
46143
      this.delayReason = delayReason;
3986 chandransh 46144
      this.furtherDelay = furtherDelay;
46145
      setFurtherDelayIsSet(true);
3553 chandransh 46146
    }
46147
 
46148
    /**
46149
     * Performs a deep copy on <i>other</i>.
46150
     */
46151
    public addDelayReason_args(addDelayReason_args other) {
46152
      __isset_bit_vector.clear();
46153
      __isset_bit_vector.or(other.__isset_bit_vector);
46154
      this.orderId = other.orderId;
46155
      if (other.isSetDelayReason()) {
46156
        this.delayReason = other.delayReason;
46157
      }
3986 chandransh 46158
      this.furtherDelay = other.furtherDelay;
3553 chandransh 46159
    }
46160
 
46161
    public addDelayReason_args deepCopy() {
46162
      return new addDelayReason_args(this);
46163
    }
46164
 
46165
    @Override
46166
    public void clear() {
46167
      setOrderIdIsSet(false);
46168
      this.orderId = 0;
46169
      this.delayReason = null;
3986 chandransh 46170
      setFurtherDelayIsSet(false);
46171
      this.furtherDelay = 0;
3553 chandransh 46172
    }
46173
 
46174
    public long getOrderId() {
46175
      return this.orderId;
46176
    }
46177
 
46178
    public void setOrderId(long orderId) {
46179
      this.orderId = orderId;
46180
      setOrderIdIsSet(true);
46181
    }
46182
 
46183
    public void unsetOrderId() {
46184
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
46185
    }
46186
 
46187
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
46188
    public boolean isSetOrderId() {
46189
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
46190
    }
46191
 
46192
    public void setOrderIdIsSet(boolean value) {
46193
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
46194
    }
46195
 
46196
    /**
46197
     * 
46198
     * @see DelayReason
46199
     */
46200
    public DelayReason getDelayReason() {
46201
      return this.delayReason;
46202
    }
46203
 
46204
    /**
46205
     * 
46206
     * @see DelayReason
46207
     */
46208
    public void setDelayReason(DelayReason delayReason) {
46209
      this.delayReason = delayReason;
46210
    }
46211
 
46212
    public void unsetDelayReason() {
46213
      this.delayReason = null;
46214
    }
46215
 
46216
    /** Returns true if field delayReason is set (has been assigned a value) and false otherwise */
46217
    public boolean isSetDelayReason() {
46218
      return this.delayReason != null;
46219
    }
46220
 
46221
    public void setDelayReasonIsSet(boolean value) {
46222
      if (!value) {
46223
        this.delayReason = null;
46224
      }
46225
    }
46226
 
3986 chandransh 46227
    public long getFurtherDelay() {
46228
      return this.furtherDelay;
46229
    }
46230
 
46231
    public void setFurtherDelay(long furtherDelay) {
46232
      this.furtherDelay = furtherDelay;
46233
      setFurtherDelayIsSet(true);
46234
    }
46235
 
46236
    public void unsetFurtherDelay() {
46237
      __isset_bit_vector.clear(__FURTHERDELAY_ISSET_ID);
46238
    }
46239
 
46240
    /** Returns true if field furtherDelay is set (has been assigned a value) and false otherwise */
46241
    public boolean isSetFurtherDelay() {
46242
      return __isset_bit_vector.get(__FURTHERDELAY_ISSET_ID);
46243
    }
46244
 
46245
    public void setFurtherDelayIsSet(boolean value) {
46246
      __isset_bit_vector.set(__FURTHERDELAY_ISSET_ID, value);
46247
    }
46248
 
3553 chandransh 46249
    public void setFieldValue(_Fields field, Object value) {
46250
      switch (field) {
46251
      case ORDER_ID:
46252
        if (value == null) {
46253
          unsetOrderId();
46254
        } else {
46255
          setOrderId((Long)value);
46256
        }
46257
        break;
46258
 
46259
      case DELAY_REASON:
46260
        if (value == null) {
46261
          unsetDelayReason();
46262
        } else {
46263
          setDelayReason((DelayReason)value);
46264
        }
46265
        break;
46266
 
3986 chandransh 46267
      case FURTHER_DELAY:
46268
        if (value == null) {
46269
          unsetFurtherDelay();
46270
        } else {
46271
          setFurtherDelay((Long)value);
46272
        }
46273
        break;
46274
 
3553 chandransh 46275
      }
46276
    }
46277
 
46278
    public Object getFieldValue(_Fields field) {
46279
      switch (field) {
46280
      case ORDER_ID:
46281
        return Long.valueOf(getOrderId());
46282
 
46283
      case DELAY_REASON:
46284
        return getDelayReason();
46285
 
3986 chandransh 46286
      case FURTHER_DELAY:
46287
        return Long.valueOf(getFurtherDelay());
46288
 
3553 chandransh 46289
      }
46290
      throw new IllegalStateException();
46291
    }
46292
 
46293
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46294
    public boolean isSet(_Fields field) {
46295
      if (field == null) {
46296
        throw new IllegalArgumentException();
46297
      }
46298
 
46299
      switch (field) {
46300
      case ORDER_ID:
46301
        return isSetOrderId();
46302
      case DELAY_REASON:
46303
        return isSetDelayReason();
3986 chandransh 46304
      case FURTHER_DELAY:
46305
        return isSetFurtherDelay();
3553 chandransh 46306
      }
46307
      throw new IllegalStateException();
46308
    }
46309
 
46310
    @Override
46311
    public boolean equals(Object that) {
46312
      if (that == null)
46313
        return false;
46314
      if (that instanceof addDelayReason_args)
46315
        return this.equals((addDelayReason_args)that);
46316
      return false;
46317
    }
46318
 
46319
    public boolean equals(addDelayReason_args that) {
46320
      if (that == null)
46321
        return false;
46322
 
46323
      boolean this_present_orderId = true;
46324
      boolean that_present_orderId = true;
46325
      if (this_present_orderId || that_present_orderId) {
46326
        if (!(this_present_orderId && that_present_orderId))
46327
          return false;
46328
        if (this.orderId != that.orderId)
46329
          return false;
46330
      }
46331
 
46332
      boolean this_present_delayReason = true && this.isSetDelayReason();
46333
      boolean that_present_delayReason = true && that.isSetDelayReason();
46334
      if (this_present_delayReason || that_present_delayReason) {
46335
        if (!(this_present_delayReason && that_present_delayReason))
46336
          return false;
46337
        if (!this.delayReason.equals(that.delayReason))
46338
          return false;
46339
      }
46340
 
3986 chandransh 46341
      boolean this_present_furtherDelay = true;
46342
      boolean that_present_furtherDelay = true;
46343
      if (this_present_furtherDelay || that_present_furtherDelay) {
46344
        if (!(this_present_furtherDelay && that_present_furtherDelay))
46345
          return false;
46346
        if (this.furtherDelay != that.furtherDelay)
46347
          return false;
46348
      }
46349
 
3553 chandransh 46350
      return true;
46351
    }
46352
 
46353
    @Override
46354
    public int hashCode() {
46355
      return 0;
46356
    }
46357
 
46358
    public int compareTo(addDelayReason_args other) {
46359
      if (!getClass().equals(other.getClass())) {
46360
        return getClass().getName().compareTo(other.getClass().getName());
46361
      }
46362
 
46363
      int lastComparison = 0;
46364
      addDelayReason_args typedOther = (addDelayReason_args)other;
46365
 
46366
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
46367
      if (lastComparison != 0) {
46368
        return lastComparison;
46369
      }
46370
      if (isSetOrderId()) {
46371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
46372
        if (lastComparison != 0) {
46373
          return lastComparison;
46374
        }
46375
      }
46376
      lastComparison = Boolean.valueOf(isSetDelayReason()).compareTo(typedOther.isSetDelayReason());
46377
      if (lastComparison != 0) {
46378
        return lastComparison;
46379
      }
46380
      if (isSetDelayReason()) {
46381
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delayReason, typedOther.delayReason);
46382
        if (lastComparison != 0) {
46383
          return lastComparison;
46384
        }
46385
      }
3986 chandransh 46386
      lastComparison = Boolean.valueOf(isSetFurtherDelay()).compareTo(typedOther.isSetFurtherDelay());
46387
      if (lastComparison != 0) {
46388
        return lastComparison;
46389
      }
46390
      if (isSetFurtherDelay()) {
46391
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.furtherDelay, typedOther.furtherDelay);
46392
        if (lastComparison != 0) {
46393
          return lastComparison;
46394
        }
46395
      }
3553 chandransh 46396
      return 0;
46397
    }
46398
 
46399
    public _Fields fieldForId(int fieldId) {
46400
      return _Fields.findByThriftId(fieldId);
46401
    }
46402
 
46403
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46404
      org.apache.thrift.protocol.TField field;
46405
      iprot.readStructBegin();
46406
      while (true)
46407
      {
46408
        field = iprot.readFieldBegin();
46409
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46410
          break;
46411
        }
46412
        switch (field.id) {
46413
          case 1: // ORDER_ID
46414
            if (field.type == org.apache.thrift.protocol.TType.I64) {
46415
              this.orderId = iprot.readI64();
46416
              setOrderIdIsSet(true);
46417
            } else { 
46418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46419
            }
46420
            break;
46421
          case 2: // DELAY_REASON
46422
            if (field.type == org.apache.thrift.protocol.TType.I32) {
46423
              this.delayReason = DelayReason.findByValue(iprot.readI32());
46424
            } else { 
46425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46426
            }
46427
            break;
3986 chandransh 46428
          case 3: // FURTHER_DELAY
46429
            if (field.type == org.apache.thrift.protocol.TType.I64) {
46430
              this.furtherDelay = iprot.readI64();
46431
              setFurtherDelayIsSet(true);
46432
            } else { 
46433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46434
            }
46435
            break;
3553 chandransh 46436
          default:
46437
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46438
        }
46439
        iprot.readFieldEnd();
46440
      }
46441
      iprot.readStructEnd();
46442
      validate();
46443
    }
46444
 
46445
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46446
      validate();
46447
 
46448
      oprot.writeStructBegin(STRUCT_DESC);
46449
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
46450
      oprot.writeI64(this.orderId);
46451
      oprot.writeFieldEnd();
46452
      if (this.delayReason != null) {
46453
        oprot.writeFieldBegin(DELAY_REASON_FIELD_DESC);
46454
        oprot.writeI32(this.delayReason.getValue());
46455
        oprot.writeFieldEnd();
46456
      }
3986 chandransh 46457
      oprot.writeFieldBegin(FURTHER_DELAY_FIELD_DESC);
46458
      oprot.writeI64(this.furtherDelay);
46459
      oprot.writeFieldEnd();
3553 chandransh 46460
      oprot.writeFieldStop();
46461
      oprot.writeStructEnd();
46462
    }
46463
 
46464
    @Override
46465
    public String toString() {
46466
      StringBuilder sb = new StringBuilder("addDelayReason_args(");
46467
      boolean first = true;
46468
 
46469
      sb.append("orderId:");
46470
      sb.append(this.orderId);
46471
      first = false;
46472
      if (!first) sb.append(", ");
46473
      sb.append("delayReason:");
46474
      if (this.delayReason == null) {
46475
        sb.append("null");
46476
      } else {
46477
        sb.append(this.delayReason);
46478
      }
46479
      first = false;
3986 chandransh 46480
      if (!first) sb.append(", ");
46481
      sb.append("furtherDelay:");
46482
      sb.append(this.furtherDelay);
46483
      first = false;
3553 chandransh 46484
      sb.append(")");
46485
      return sb.toString();
46486
    }
46487
 
46488
    public void validate() throws org.apache.thrift.TException {
46489
      // check for required fields
46490
    }
46491
 
46492
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46493
      try {
46494
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46495
      } catch (org.apache.thrift.TException te) {
46496
        throw new java.io.IOException(te);
46497
      }
46498
    }
46499
 
46500
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46501
      try {
46502
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46503
      } catch (org.apache.thrift.TException te) {
46504
        throw new java.io.IOException(te);
46505
      }
46506
    }
46507
 
46508
  }
46509
 
46510
  public static class addDelayReason_result implements org.apache.thrift.TBase<addDelayReason_result, addDelayReason_result._Fields>, java.io.Serializable, Cloneable   {
46511
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addDelayReason_result");
46512
 
46513
    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);
46514
    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);
46515
 
46516
    private boolean success; // required
46517
    private TransactionServiceException ex; // required
46518
 
46519
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46520
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46521
      SUCCESS((short)0, "success"),
46522
      EX((short)1, "ex");
46523
 
46524
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46525
 
46526
      static {
46527
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46528
          byName.put(field.getFieldName(), field);
46529
        }
46530
      }
46531
 
46532
      /**
46533
       * Find the _Fields constant that matches fieldId, or null if its not found.
46534
       */
46535
      public static _Fields findByThriftId(int fieldId) {
46536
        switch(fieldId) {
46537
          case 0: // SUCCESS
46538
            return SUCCESS;
46539
          case 1: // EX
46540
            return EX;
46541
          default:
46542
            return null;
46543
        }
46544
      }
46545
 
46546
      /**
46547
       * Find the _Fields constant that matches fieldId, throwing an exception
46548
       * if it is not found.
46549
       */
46550
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46551
        _Fields fields = findByThriftId(fieldId);
46552
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46553
        return fields;
46554
      }
46555
 
46556
      /**
46557
       * Find the _Fields constant that matches name, or null if its not found.
46558
       */
46559
      public static _Fields findByName(String name) {
46560
        return byName.get(name);
46561
      }
46562
 
46563
      private final short _thriftId;
46564
      private final String _fieldName;
46565
 
46566
      _Fields(short thriftId, String fieldName) {
46567
        _thriftId = thriftId;
46568
        _fieldName = fieldName;
46569
      }
46570
 
46571
      public short getThriftFieldId() {
46572
        return _thriftId;
46573
      }
46574
 
46575
      public String getFieldName() {
46576
        return _fieldName;
46577
      }
46578
    }
46579
 
46580
    // isset id assignments
46581
    private static final int __SUCCESS_ISSET_ID = 0;
46582
    private BitSet __isset_bit_vector = new BitSet(1);
46583
 
46584
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46585
    static {
46586
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46587
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46588
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
46589
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46590
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
46591
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46592
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addDelayReason_result.class, metaDataMap);
46593
    }
46594
 
46595
    public addDelayReason_result() {
46596
    }
46597
 
46598
    public addDelayReason_result(
46599
      boolean success,
46600
      TransactionServiceException ex)
46601
    {
46602
      this();
46603
      this.success = success;
46604
      setSuccessIsSet(true);
46605
      this.ex = ex;
46606
    }
46607
 
46608
    /**
46609
     * Performs a deep copy on <i>other</i>.
46610
     */
46611
    public addDelayReason_result(addDelayReason_result other) {
46612
      __isset_bit_vector.clear();
46613
      __isset_bit_vector.or(other.__isset_bit_vector);
46614
      this.success = other.success;
46615
      if (other.isSetEx()) {
46616
        this.ex = new TransactionServiceException(other.ex);
46617
      }
46618
    }
46619
 
46620
    public addDelayReason_result deepCopy() {
46621
      return new addDelayReason_result(this);
46622
    }
46623
 
46624
    @Override
46625
    public void clear() {
46626
      setSuccessIsSet(false);
46627
      this.success = false;
46628
      this.ex = null;
46629
    }
46630
 
46631
    public boolean isSuccess() {
46632
      return this.success;
46633
    }
46634
 
46635
    public void setSuccess(boolean success) {
46636
      this.success = success;
46637
      setSuccessIsSet(true);
46638
    }
46639
 
46640
    public void unsetSuccess() {
46641
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
46642
    }
46643
 
46644
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
46645
    public boolean isSetSuccess() {
46646
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
46647
    }
46648
 
46649
    public void setSuccessIsSet(boolean value) {
46650
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
46651
    }
46652
 
46653
    public TransactionServiceException getEx() {
46654
      return this.ex;
46655
    }
46656
 
46657
    public void setEx(TransactionServiceException ex) {
46658
      this.ex = ex;
46659
    }
46660
 
46661
    public void unsetEx() {
46662
      this.ex = null;
46663
    }
46664
 
46665
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
46666
    public boolean isSetEx() {
46667
      return this.ex != null;
46668
    }
46669
 
46670
    public void setExIsSet(boolean value) {
46671
      if (!value) {
46672
        this.ex = null;
46673
      }
46674
    }
46675
 
46676
    public void setFieldValue(_Fields field, Object value) {
46677
      switch (field) {
46678
      case SUCCESS:
46679
        if (value == null) {
46680
          unsetSuccess();
46681
        } else {
46682
          setSuccess((Boolean)value);
46683
        }
46684
        break;
46685
 
46686
      case EX:
46687
        if (value == null) {
46688
          unsetEx();
46689
        } else {
46690
          setEx((TransactionServiceException)value);
46691
        }
46692
        break;
46693
 
46694
      }
46695
    }
46696
 
46697
    public Object getFieldValue(_Fields field) {
46698
      switch (field) {
46699
      case SUCCESS:
46700
        return Boolean.valueOf(isSuccess());
46701
 
46702
      case EX:
46703
        return getEx();
46704
 
46705
      }
46706
      throw new IllegalStateException();
46707
    }
46708
 
46709
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46710
    public boolean isSet(_Fields field) {
46711
      if (field == null) {
46712
        throw new IllegalArgumentException();
46713
      }
46714
 
46715
      switch (field) {
46716
      case SUCCESS:
46717
        return isSetSuccess();
46718
      case EX:
46719
        return isSetEx();
46720
      }
46721
      throw new IllegalStateException();
46722
    }
46723
 
46724
    @Override
46725
    public boolean equals(Object that) {
46726
      if (that == null)
46727
        return false;
46728
      if (that instanceof addDelayReason_result)
46729
        return this.equals((addDelayReason_result)that);
46730
      return false;
46731
    }
46732
 
46733
    public boolean equals(addDelayReason_result that) {
46734
      if (that == null)
46735
        return false;
46736
 
46737
      boolean this_present_success = true;
46738
      boolean that_present_success = true;
46739
      if (this_present_success || that_present_success) {
46740
        if (!(this_present_success && that_present_success))
46741
          return false;
46742
        if (this.success != that.success)
46743
          return false;
46744
      }
46745
 
46746
      boolean this_present_ex = true && this.isSetEx();
46747
      boolean that_present_ex = true && that.isSetEx();
46748
      if (this_present_ex || that_present_ex) {
46749
        if (!(this_present_ex && that_present_ex))
46750
          return false;
46751
        if (!this.ex.equals(that.ex))
46752
          return false;
46753
      }
46754
 
46755
      return true;
46756
    }
46757
 
46758
    @Override
46759
    public int hashCode() {
46760
      return 0;
46761
    }
46762
 
46763
    public int compareTo(addDelayReason_result other) {
46764
      if (!getClass().equals(other.getClass())) {
46765
        return getClass().getName().compareTo(other.getClass().getName());
46766
      }
46767
 
46768
      int lastComparison = 0;
46769
      addDelayReason_result typedOther = (addDelayReason_result)other;
46770
 
46771
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
46772
      if (lastComparison != 0) {
46773
        return lastComparison;
46774
      }
46775
      if (isSetSuccess()) {
46776
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
46777
        if (lastComparison != 0) {
46778
          return lastComparison;
46779
        }
46780
      }
46781
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
46782
      if (lastComparison != 0) {
46783
        return lastComparison;
46784
      }
46785
      if (isSetEx()) {
46786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
46787
        if (lastComparison != 0) {
46788
          return lastComparison;
46789
        }
46790
      }
46791
      return 0;
46792
    }
46793
 
46794
    public _Fields fieldForId(int fieldId) {
46795
      return _Fields.findByThriftId(fieldId);
46796
    }
46797
 
46798
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46799
      org.apache.thrift.protocol.TField field;
46800
      iprot.readStructBegin();
46801
      while (true)
46802
      {
46803
        field = iprot.readFieldBegin();
46804
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46805
          break;
46806
        }
46807
        switch (field.id) {
46808
          case 0: // SUCCESS
46809
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
46810
              this.success = iprot.readBool();
46811
              setSuccessIsSet(true);
46812
            } else { 
46813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46814
            }
46815
            break;
46816
          case 1: // EX
46817
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
46818
              this.ex = new TransactionServiceException();
46819
              this.ex.read(iprot);
46820
            } else { 
46821
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46822
            }
46823
            break;
46824
          default:
46825
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46826
        }
46827
        iprot.readFieldEnd();
46828
      }
46829
      iprot.readStructEnd();
46830
      validate();
46831
    }
46832
 
46833
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46834
      oprot.writeStructBegin(STRUCT_DESC);
46835
 
46836
      if (this.isSetSuccess()) {
46837
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46838
        oprot.writeBool(this.success);
46839
        oprot.writeFieldEnd();
46840
      } else if (this.isSetEx()) {
46841
        oprot.writeFieldBegin(EX_FIELD_DESC);
46842
        this.ex.write(oprot);
46843
        oprot.writeFieldEnd();
46844
      }
46845
      oprot.writeFieldStop();
46846
      oprot.writeStructEnd();
46847
    }
46848
 
46849
    @Override
46850
    public String toString() {
46851
      StringBuilder sb = new StringBuilder("addDelayReason_result(");
46852
      boolean first = true;
46853
 
46854
      sb.append("success:");
46855
      sb.append(this.success);
46856
      first = false;
46857
      if (!first) sb.append(", ");
46858
      sb.append("ex:");
46859
      if (this.ex == null) {
46860
        sb.append("null");
46861
      } else {
46862
        sb.append(this.ex);
46863
      }
46864
      first = false;
46865
      sb.append(")");
46866
      return sb.toString();
46867
    }
46868
 
46869
    public void validate() throws org.apache.thrift.TException {
46870
      // check for required fields
46871
    }
46872
 
46873
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46874
      try {
46875
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46876
      } catch (org.apache.thrift.TException te) {
46877
        throw new java.io.IOException(te);
46878
      }
46879
    }
46880
 
46881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46882
      try {
46883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46884
      } catch (org.apache.thrift.TException te) {
46885
        throw new java.io.IOException(te);
46886
      }
46887
    }
46888
 
46889
  }
46890
 
3956 chandransh 46891
  public static class reconcileCodCollection_args implements org.apache.thrift.TBase<reconcileCodCollection_args, reconcileCodCollection_args._Fields>, java.io.Serializable, Cloneable   {
46892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reconcileCodCollection_args");
46893
 
46894
    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);
46895
    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);
46896
    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);
46897
    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);
46898
 
46899
    private Map<String,Double> collectedAmountMap; // required
46900
    private String xferBy; // required
46901
    private String xferTxnId; // required
46902
    private long xferDate; // required
46903
 
46904
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46905
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46906
      COLLECTED_AMOUNT_MAP((short)1, "collectedAmountMap"),
46907
      XFER_BY((short)2, "xferBy"),
46908
      XFER_TXN_ID((short)3, "xferTxnId"),
46909
      XFER_DATE((short)4, "xferDate");
46910
 
46911
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46912
 
46913
      static {
46914
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46915
          byName.put(field.getFieldName(), field);
46916
        }
46917
      }
46918
 
46919
      /**
46920
       * Find the _Fields constant that matches fieldId, or null if its not found.
46921
       */
46922
      public static _Fields findByThriftId(int fieldId) {
46923
        switch(fieldId) {
46924
          case 1: // COLLECTED_AMOUNT_MAP
46925
            return COLLECTED_AMOUNT_MAP;
46926
          case 2: // XFER_BY
46927
            return XFER_BY;
46928
          case 3: // XFER_TXN_ID
46929
            return XFER_TXN_ID;
46930
          case 4: // XFER_DATE
46931
            return XFER_DATE;
46932
          default:
46933
            return null;
46934
        }
46935
      }
46936
 
46937
      /**
46938
       * Find the _Fields constant that matches fieldId, throwing an exception
46939
       * if it is not found.
46940
       */
46941
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46942
        _Fields fields = findByThriftId(fieldId);
46943
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46944
        return fields;
46945
      }
46946
 
46947
      /**
46948
       * Find the _Fields constant that matches name, or null if its not found.
46949
       */
46950
      public static _Fields findByName(String name) {
46951
        return byName.get(name);
46952
      }
46953
 
46954
      private final short _thriftId;
46955
      private final String _fieldName;
46956
 
46957
      _Fields(short thriftId, String fieldName) {
46958
        _thriftId = thriftId;
46959
        _fieldName = fieldName;
46960
      }
46961
 
46962
      public short getThriftFieldId() {
46963
        return _thriftId;
46964
      }
46965
 
46966
      public String getFieldName() {
46967
        return _fieldName;
46968
      }
46969
    }
46970
 
46971
    // isset id assignments
46972
    private static final int __XFERDATE_ISSET_ID = 0;
46973
    private BitSet __isset_bit_vector = new BitSet(1);
46974
 
46975
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46976
    static {
46977
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46978
      tmpMap.put(_Fields.COLLECTED_AMOUNT_MAP, new org.apache.thrift.meta_data.FieldMetaData("collectedAmountMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46979
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
46980
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
46981
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
46982
      tmpMap.put(_Fields.XFER_BY, new org.apache.thrift.meta_data.FieldMetaData("xferBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46983
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
46984
      tmpMap.put(_Fields.XFER_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("xferTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46985
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
46986
      tmpMap.put(_Fields.XFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("xferDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46987
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46988
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46989
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reconcileCodCollection_args.class, metaDataMap);
46990
    }
46991
 
46992
    public reconcileCodCollection_args() {
46993
    }
46994
 
46995
    public reconcileCodCollection_args(
46996
      Map<String,Double> collectedAmountMap,
46997
      String xferBy,
46998
      String xferTxnId,
46999
      long xferDate)
47000
    {
47001
      this();
47002
      this.collectedAmountMap = collectedAmountMap;
47003
      this.xferBy = xferBy;
47004
      this.xferTxnId = xferTxnId;
47005
      this.xferDate = xferDate;
47006
      setXferDateIsSet(true);
47007
    }
47008
 
47009
    /**
47010
     * Performs a deep copy on <i>other</i>.
47011
     */
47012
    public reconcileCodCollection_args(reconcileCodCollection_args other) {
47013
      __isset_bit_vector.clear();
47014
      __isset_bit_vector.or(other.__isset_bit_vector);
47015
      if (other.isSetCollectedAmountMap()) {
47016
        Map<String,Double> __this__collectedAmountMap = new HashMap<String,Double>();
47017
        for (Map.Entry<String, Double> other_element : other.collectedAmountMap.entrySet()) {
47018
 
47019
          String other_element_key = other_element.getKey();
47020
          Double other_element_value = other_element.getValue();
47021
 
47022
          String __this__collectedAmountMap_copy_key = other_element_key;
47023
 
47024
          Double __this__collectedAmountMap_copy_value = other_element_value;
47025
 
47026
          __this__collectedAmountMap.put(__this__collectedAmountMap_copy_key, __this__collectedAmountMap_copy_value);
47027
        }
47028
        this.collectedAmountMap = __this__collectedAmountMap;
47029
      }
47030
      if (other.isSetXferBy()) {
47031
        this.xferBy = other.xferBy;
47032
      }
47033
      if (other.isSetXferTxnId()) {
47034
        this.xferTxnId = other.xferTxnId;
47035
      }
47036
      this.xferDate = other.xferDate;
47037
    }
47038
 
47039
    public reconcileCodCollection_args deepCopy() {
47040
      return new reconcileCodCollection_args(this);
47041
    }
47042
 
47043
    @Override
47044
    public void clear() {
47045
      this.collectedAmountMap = null;
47046
      this.xferBy = null;
47047
      this.xferTxnId = null;
47048
      setXferDateIsSet(false);
47049
      this.xferDate = 0;
47050
    }
47051
 
47052
    public int getCollectedAmountMapSize() {
47053
      return (this.collectedAmountMap == null) ? 0 : this.collectedAmountMap.size();
47054
    }
47055
 
47056
    public void putToCollectedAmountMap(String key, double val) {
47057
      if (this.collectedAmountMap == null) {
47058
        this.collectedAmountMap = new HashMap<String,Double>();
47059
      }
47060
      this.collectedAmountMap.put(key, val);
47061
    }
47062
 
47063
    public Map<String,Double> getCollectedAmountMap() {
47064
      return this.collectedAmountMap;
47065
    }
47066
 
47067
    public void setCollectedAmountMap(Map<String,Double> collectedAmountMap) {
47068
      this.collectedAmountMap = collectedAmountMap;
47069
    }
47070
 
47071
    public void unsetCollectedAmountMap() {
47072
      this.collectedAmountMap = null;
47073
    }
47074
 
47075
    /** Returns true if field collectedAmountMap is set (has been assigned a value) and false otherwise */
47076
    public boolean isSetCollectedAmountMap() {
47077
      return this.collectedAmountMap != null;
47078
    }
47079
 
47080
    public void setCollectedAmountMapIsSet(boolean value) {
47081
      if (!value) {
47082
        this.collectedAmountMap = null;
47083
      }
47084
    }
47085
 
47086
    public String getXferBy() {
47087
      return this.xferBy;
47088
    }
47089
 
47090
    public void setXferBy(String xferBy) {
47091
      this.xferBy = xferBy;
47092
    }
47093
 
47094
    public void unsetXferBy() {
47095
      this.xferBy = null;
47096
    }
47097
 
47098
    /** Returns true if field xferBy is set (has been assigned a value) and false otherwise */
47099
    public boolean isSetXferBy() {
47100
      return this.xferBy != null;
47101
    }
47102
 
47103
    public void setXferByIsSet(boolean value) {
47104
      if (!value) {
47105
        this.xferBy = null;
47106
      }
47107
    }
47108
 
47109
    public String getXferTxnId() {
47110
      return this.xferTxnId;
47111
    }
47112
 
47113
    public void setXferTxnId(String xferTxnId) {
47114
      this.xferTxnId = xferTxnId;
47115
    }
47116
 
47117
    public void unsetXferTxnId() {
47118
      this.xferTxnId = null;
47119
    }
47120
 
47121
    /** Returns true if field xferTxnId is set (has been assigned a value) and false otherwise */
47122
    public boolean isSetXferTxnId() {
47123
      return this.xferTxnId != null;
47124
    }
47125
 
47126
    public void setXferTxnIdIsSet(boolean value) {
47127
      if (!value) {
47128
        this.xferTxnId = null;
47129
      }
47130
    }
47131
 
47132
    public long getXferDate() {
47133
      return this.xferDate;
47134
    }
47135
 
47136
    public void setXferDate(long xferDate) {
47137
      this.xferDate = xferDate;
47138
      setXferDateIsSet(true);
47139
    }
47140
 
47141
    public void unsetXferDate() {
47142
      __isset_bit_vector.clear(__XFERDATE_ISSET_ID);
47143
    }
47144
 
47145
    /** Returns true if field xferDate is set (has been assigned a value) and false otherwise */
47146
    public boolean isSetXferDate() {
47147
      return __isset_bit_vector.get(__XFERDATE_ISSET_ID);
47148
    }
47149
 
47150
    public void setXferDateIsSet(boolean value) {
47151
      __isset_bit_vector.set(__XFERDATE_ISSET_ID, value);
47152
    }
47153
 
47154
    public void setFieldValue(_Fields field, Object value) {
47155
      switch (field) {
47156
      case COLLECTED_AMOUNT_MAP:
47157
        if (value == null) {
47158
          unsetCollectedAmountMap();
47159
        } else {
47160
          setCollectedAmountMap((Map<String,Double>)value);
47161
        }
47162
        break;
47163
 
47164
      case XFER_BY:
47165
        if (value == null) {
47166
          unsetXferBy();
47167
        } else {
47168
          setXferBy((String)value);
47169
        }
47170
        break;
47171
 
47172
      case XFER_TXN_ID:
47173
        if (value == null) {
47174
          unsetXferTxnId();
47175
        } else {
47176
          setXferTxnId((String)value);
47177
        }
47178
        break;
47179
 
47180
      case XFER_DATE:
47181
        if (value == null) {
47182
          unsetXferDate();
47183
        } else {
47184
          setXferDate((Long)value);
47185
        }
47186
        break;
47187
 
47188
      }
47189
    }
47190
 
47191
    public Object getFieldValue(_Fields field) {
47192
      switch (field) {
47193
      case COLLECTED_AMOUNT_MAP:
47194
        return getCollectedAmountMap();
47195
 
47196
      case XFER_BY:
47197
        return getXferBy();
47198
 
47199
      case XFER_TXN_ID:
47200
        return getXferTxnId();
47201
 
47202
      case XFER_DATE:
47203
        return Long.valueOf(getXferDate());
47204
 
47205
      }
47206
      throw new IllegalStateException();
47207
    }
47208
 
47209
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47210
    public boolean isSet(_Fields field) {
47211
      if (field == null) {
47212
        throw new IllegalArgumentException();
47213
      }
47214
 
47215
      switch (field) {
47216
      case COLLECTED_AMOUNT_MAP:
47217
        return isSetCollectedAmountMap();
47218
      case XFER_BY:
47219
        return isSetXferBy();
47220
      case XFER_TXN_ID:
47221
        return isSetXferTxnId();
47222
      case XFER_DATE:
47223
        return isSetXferDate();
47224
      }
47225
      throw new IllegalStateException();
47226
    }
47227
 
47228
    @Override
47229
    public boolean equals(Object that) {
47230
      if (that == null)
47231
        return false;
47232
      if (that instanceof reconcileCodCollection_args)
47233
        return this.equals((reconcileCodCollection_args)that);
47234
      return false;
47235
    }
47236
 
47237
    public boolean equals(reconcileCodCollection_args that) {
47238
      if (that == null)
47239
        return false;
47240
 
47241
      boolean this_present_collectedAmountMap = true && this.isSetCollectedAmountMap();
47242
      boolean that_present_collectedAmountMap = true && that.isSetCollectedAmountMap();
47243
      if (this_present_collectedAmountMap || that_present_collectedAmountMap) {
47244
        if (!(this_present_collectedAmountMap && that_present_collectedAmountMap))
47245
          return false;
47246
        if (!this.collectedAmountMap.equals(that.collectedAmountMap))
47247
          return false;
47248
      }
47249
 
47250
      boolean this_present_xferBy = true && this.isSetXferBy();
47251
      boolean that_present_xferBy = true && that.isSetXferBy();
47252
      if (this_present_xferBy || that_present_xferBy) {
47253
        if (!(this_present_xferBy && that_present_xferBy))
47254
          return false;
47255
        if (!this.xferBy.equals(that.xferBy))
47256
          return false;
47257
      }
47258
 
47259
      boolean this_present_xferTxnId = true && this.isSetXferTxnId();
47260
      boolean that_present_xferTxnId = true && that.isSetXferTxnId();
47261
      if (this_present_xferTxnId || that_present_xferTxnId) {
47262
        if (!(this_present_xferTxnId && that_present_xferTxnId))
47263
          return false;
47264
        if (!this.xferTxnId.equals(that.xferTxnId))
47265
          return false;
47266
      }
47267
 
47268
      boolean this_present_xferDate = true;
47269
      boolean that_present_xferDate = true;
47270
      if (this_present_xferDate || that_present_xferDate) {
47271
        if (!(this_present_xferDate && that_present_xferDate))
47272
          return false;
47273
        if (this.xferDate != that.xferDate)
47274
          return false;
47275
      }
47276
 
47277
      return true;
47278
    }
47279
 
47280
    @Override
47281
    public int hashCode() {
47282
      return 0;
47283
    }
47284
 
47285
    public int compareTo(reconcileCodCollection_args other) {
47286
      if (!getClass().equals(other.getClass())) {
47287
        return getClass().getName().compareTo(other.getClass().getName());
47288
      }
47289
 
47290
      int lastComparison = 0;
47291
      reconcileCodCollection_args typedOther = (reconcileCodCollection_args)other;
47292
 
47293
      lastComparison = Boolean.valueOf(isSetCollectedAmountMap()).compareTo(typedOther.isSetCollectedAmountMap());
47294
      if (lastComparison != 0) {
47295
        return lastComparison;
47296
      }
47297
      if (isSetCollectedAmountMap()) {
47298
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.collectedAmountMap, typedOther.collectedAmountMap);
47299
        if (lastComparison != 0) {
47300
          return lastComparison;
47301
        }
47302
      }
47303
      lastComparison = Boolean.valueOf(isSetXferBy()).compareTo(typedOther.isSetXferBy());
47304
      if (lastComparison != 0) {
47305
        return lastComparison;
47306
      }
47307
      if (isSetXferBy()) {
47308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferBy, typedOther.xferBy);
47309
        if (lastComparison != 0) {
47310
          return lastComparison;
47311
        }
47312
      }
47313
      lastComparison = Boolean.valueOf(isSetXferTxnId()).compareTo(typedOther.isSetXferTxnId());
47314
      if (lastComparison != 0) {
47315
        return lastComparison;
47316
      }
47317
      if (isSetXferTxnId()) {
47318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferTxnId, typedOther.xferTxnId);
47319
        if (lastComparison != 0) {
47320
          return lastComparison;
47321
        }
47322
      }
47323
      lastComparison = Boolean.valueOf(isSetXferDate()).compareTo(typedOther.isSetXferDate());
47324
      if (lastComparison != 0) {
47325
        return lastComparison;
47326
      }
47327
      if (isSetXferDate()) {
47328
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferDate, typedOther.xferDate);
47329
        if (lastComparison != 0) {
47330
          return lastComparison;
47331
        }
47332
      }
47333
      return 0;
47334
    }
47335
 
47336
    public _Fields fieldForId(int fieldId) {
47337
      return _Fields.findByThriftId(fieldId);
47338
    }
47339
 
47340
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47341
      org.apache.thrift.protocol.TField field;
47342
      iprot.readStructBegin();
47343
      while (true)
47344
      {
47345
        field = iprot.readFieldBegin();
47346
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47347
          break;
47348
        }
47349
        switch (field.id) {
47350
          case 1: // COLLECTED_AMOUNT_MAP
47351
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
47352
              {
4133 chandransh 47353
                org.apache.thrift.protocol.TMap _map121 = iprot.readMapBegin();
47354
                this.collectedAmountMap = new HashMap<String,Double>(2*_map121.size);
47355
                for (int _i122 = 0; _i122 < _map121.size; ++_i122)
3956 chandransh 47356
                {
4133 chandransh 47357
                  String _key123; // required
47358
                  double _val124; // required
47359
                  _key123 = iprot.readString();
47360
                  _val124 = iprot.readDouble();
47361
                  this.collectedAmountMap.put(_key123, _val124);
3956 chandransh 47362
                }
47363
                iprot.readMapEnd();
47364
              }
47365
            } else { 
47366
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47367
            }
47368
            break;
47369
          case 2: // XFER_BY
47370
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
47371
              this.xferBy = iprot.readString();
47372
            } else { 
47373
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47374
            }
47375
            break;
47376
          case 3: // XFER_TXN_ID
47377
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
47378
              this.xferTxnId = iprot.readString();
47379
            } else { 
47380
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47381
            }
47382
            break;
47383
          case 4: // XFER_DATE
47384
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47385
              this.xferDate = iprot.readI64();
47386
              setXferDateIsSet(true);
47387
            } else { 
47388
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47389
            }
47390
            break;
47391
          default:
47392
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47393
        }
47394
        iprot.readFieldEnd();
47395
      }
47396
      iprot.readStructEnd();
47397
      validate();
47398
    }
47399
 
47400
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47401
      validate();
47402
 
47403
      oprot.writeStructBegin(STRUCT_DESC);
47404
      if (this.collectedAmountMap != null) {
47405
        oprot.writeFieldBegin(COLLECTED_AMOUNT_MAP_FIELD_DESC);
47406
        {
47407
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.DOUBLE, this.collectedAmountMap.size()));
4133 chandransh 47408
          for (Map.Entry<String, Double> _iter125 : this.collectedAmountMap.entrySet())
3956 chandransh 47409
          {
4133 chandransh 47410
            oprot.writeString(_iter125.getKey());
47411
            oprot.writeDouble(_iter125.getValue());
3956 chandransh 47412
          }
47413
          oprot.writeMapEnd();
47414
        }
47415
        oprot.writeFieldEnd();
47416
      }
47417
      if (this.xferBy != null) {
47418
        oprot.writeFieldBegin(XFER_BY_FIELD_DESC);
47419
        oprot.writeString(this.xferBy);
47420
        oprot.writeFieldEnd();
47421
      }
47422
      if (this.xferTxnId != null) {
47423
        oprot.writeFieldBegin(XFER_TXN_ID_FIELD_DESC);
47424
        oprot.writeString(this.xferTxnId);
47425
        oprot.writeFieldEnd();
47426
      }
47427
      oprot.writeFieldBegin(XFER_DATE_FIELD_DESC);
47428
      oprot.writeI64(this.xferDate);
47429
      oprot.writeFieldEnd();
47430
      oprot.writeFieldStop();
47431
      oprot.writeStructEnd();
47432
    }
47433
 
47434
    @Override
47435
    public String toString() {
47436
      StringBuilder sb = new StringBuilder("reconcileCodCollection_args(");
47437
      boolean first = true;
47438
 
47439
      sb.append("collectedAmountMap:");
47440
      if (this.collectedAmountMap == null) {
47441
        sb.append("null");
47442
      } else {
47443
        sb.append(this.collectedAmountMap);
47444
      }
47445
      first = false;
47446
      if (!first) sb.append(", ");
47447
      sb.append("xferBy:");
47448
      if (this.xferBy == null) {
47449
        sb.append("null");
47450
      } else {
47451
        sb.append(this.xferBy);
47452
      }
47453
      first = false;
47454
      if (!first) sb.append(", ");
47455
      sb.append("xferTxnId:");
47456
      if (this.xferTxnId == null) {
47457
        sb.append("null");
47458
      } else {
47459
        sb.append(this.xferTxnId);
47460
      }
47461
      first = false;
47462
      if (!first) sb.append(", ");
47463
      sb.append("xferDate:");
47464
      sb.append(this.xferDate);
47465
      first = false;
47466
      sb.append(")");
47467
      return sb.toString();
47468
    }
47469
 
47470
    public void validate() throws org.apache.thrift.TException {
47471
      // check for required fields
47472
    }
47473
 
47474
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47475
      try {
47476
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47477
      } catch (org.apache.thrift.TException te) {
47478
        throw new java.io.IOException(te);
47479
      }
47480
    }
47481
 
47482
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47483
      try {
47484
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47485
      } catch (org.apache.thrift.TException te) {
47486
        throw new java.io.IOException(te);
47487
      }
47488
    }
47489
 
47490
  }
47491
 
47492
  public static class reconcileCodCollection_result implements org.apache.thrift.TBase<reconcileCodCollection_result, reconcileCodCollection_result._Fields>, java.io.Serializable, Cloneable   {
47493
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reconcileCodCollection_result");
47494
 
47495
    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);
47496
    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);
47497
 
47498
    private Map<String,String> success; // required
47499
    private TransactionServiceException ex; // required
47500
 
47501
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47502
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47503
      SUCCESS((short)0, "success"),
47504
      EX((short)1, "ex");
47505
 
47506
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47507
 
47508
      static {
47509
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47510
          byName.put(field.getFieldName(), field);
47511
        }
47512
      }
47513
 
47514
      /**
47515
       * Find the _Fields constant that matches fieldId, or null if its not found.
47516
       */
47517
      public static _Fields findByThriftId(int fieldId) {
47518
        switch(fieldId) {
47519
          case 0: // SUCCESS
47520
            return SUCCESS;
47521
          case 1: // EX
47522
            return EX;
47523
          default:
47524
            return null;
47525
        }
47526
      }
47527
 
47528
      /**
47529
       * Find the _Fields constant that matches fieldId, throwing an exception
47530
       * if it is not found.
47531
       */
47532
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47533
        _Fields fields = findByThriftId(fieldId);
47534
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47535
        return fields;
47536
      }
47537
 
47538
      /**
47539
       * Find the _Fields constant that matches name, or null if its not found.
47540
       */
47541
      public static _Fields findByName(String name) {
47542
        return byName.get(name);
47543
      }
47544
 
47545
      private final short _thriftId;
47546
      private final String _fieldName;
47547
 
47548
      _Fields(short thriftId, String fieldName) {
47549
        _thriftId = thriftId;
47550
        _fieldName = fieldName;
47551
      }
47552
 
47553
      public short getThriftFieldId() {
47554
        return _thriftId;
47555
      }
47556
 
47557
      public String getFieldName() {
47558
        return _fieldName;
47559
      }
47560
    }
47561
 
47562
    // isset id assignments
47563
 
47564
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47565
    static {
47566
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47567
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47568
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
47569
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
47570
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
47571
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47572
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
47573
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47574
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reconcileCodCollection_result.class, metaDataMap);
47575
    }
47576
 
47577
    public reconcileCodCollection_result() {
47578
    }
47579
 
47580
    public reconcileCodCollection_result(
47581
      Map<String,String> success,
47582
      TransactionServiceException ex)
47583
    {
47584
      this();
47585
      this.success = success;
47586
      this.ex = ex;
47587
    }
47588
 
47589
    /**
47590
     * Performs a deep copy on <i>other</i>.
47591
     */
47592
    public reconcileCodCollection_result(reconcileCodCollection_result other) {
47593
      if (other.isSetSuccess()) {
47594
        Map<String,String> __this__success = new HashMap<String,String>();
47595
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
47596
 
47597
          String other_element_key = other_element.getKey();
47598
          String other_element_value = other_element.getValue();
47599
 
47600
          String __this__success_copy_key = other_element_key;
47601
 
47602
          String __this__success_copy_value = other_element_value;
47603
 
47604
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
47605
        }
47606
        this.success = __this__success;
47607
      }
47608
      if (other.isSetEx()) {
47609
        this.ex = new TransactionServiceException(other.ex);
47610
      }
47611
    }
47612
 
47613
    public reconcileCodCollection_result deepCopy() {
47614
      return new reconcileCodCollection_result(this);
47615
    }
47616
 
47617
    @Override
47618
    public void clear() {
47619
      this.success = null;
47620
      this.ex = null;
47621
    }
47622
 
47623
    public int getSuccessSize() {
47624
      return (this.success == null) ? 0 : this.success.size();
47625
    }
47626
 
47627
    public void putToSuccess(String key, String val) {
47628
      if (this.success == null) {
47629
        this.success = new HashMap<String,String>();
47630
      }
47631
      this.success.put(key, val);
47632
    }
47633
 
47634
    public Map<String,String> getSuccess() {
47635
      return this.success;
47636
    }
47637
 
47638
    public void setSuccess(Map<String,String> success) {
47639
      this.success = success;
47640
    }
47641
 
47642
    public void unsetSuccess() {
47643
      this.success = null;
47644
    }
47645
 
47646
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
47647
    public boolean isSetSuccess() {
47648
      return this.success != null;
47649
    }
47650
 
47651
    public void setSuccessIsSet(boolean value) {
47652
      if (!value) {
47653
        this.success = null;
47654
      }
47655
    }
47656
 
47657
    public TransactionServiceException getEx() {
47658
      return this.ex;
47659
    }
47660
 
47661
    public void setEx(TransactionServiceException ex) {
47662
      this.ex = ex;
47663
    }
47664
 
47665
    public void unsetEx() {
47666
      this.ex = null;
47667
    }
47668
 
47669
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
47670
    public boolean isSetEx() {
47671
      return this.ex != null;
47672
    }
47673
 
47674
    public void setExIsSet(boolean value) {
47675
      if (!value) {
47676
        this.ex = null;
47677
      }
47678
    }
47679
 
47680
    public void setFieldValue(_Fields field, Object value) {
47681
      switch (field) {
47682
      case SUCCESS:
47683
        if (value == null) {
47684
          unsetSuccess();
47685
        } else {
47686
          setSuccess((Map<String,String>)value);
47687
        }
47688
        break;
47689
 
47690
      case EX:
47691
        if (value == null) {
47692
          unsetEx();
47693
        } else {
47694
          setEx((TransactionServiceException)value);
47695
        }
47696
        break;
47697
 
47698
      }
47699
    }
47700
 
47701
    public Object getFieldValue(_Fields field) {
47702
      switch (field) {
47703
      case SUCCESS:
47704
        return getSuccess();
47705
 
47706
      case EX:
47707
        return getEx();
47708
 
47709
      }
47710
      throw new IllegalStateException();
47711
    }
47712
 
47713
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47714
    public boolean isSet(_Fields field) {
47715
      if (field == null) {
47716
        throw new IllegalArgumentException();
47717
      }
47718
 
47719
      switch (field) {
47720
      case SUCCESS:
47721
        return isSetSuccess();
47722
      case EX:
47723
        return isSetEx();
47724
      }
47725
      throw new IllegalStateException();
47726
    }
47727
 
47728
    @Override
47729
    public boolean equals(Object that) {
47730
      if (that == null)
47731
        return false;
47732
      if (that instanceof reconcileCodCollection_result)
47733
        return this.equals((reconcileCodCollection_result)that);
47734
      return false;
47735
    }
47736
 
47737
    public boolean equals(reconcileCodCollection_result that) {
47738
      if (that == null)
47739
        return false;
47740
 
47741
      boolean this_present_success = true && this.isSetSuccess();
47742
      boolean that_present_success = true && that.isSetSuccess();
47743
      if (this_present_success || that_present_success) {
47744
        if (!(this_present_success && that_present_success))
47745
          return false;
47746
        if (!this.success.equals(that.success))
47747
          return false;
47748
      }
47749
 
47750
      boolean this_present_ex = true && this.isSetEx();
47751
      boolean that_present_ex = true && that.isSetEx();
47752
      if (this_present_ex || that_present_ex) {
47753
        if (!(this_present_ex && that_present_ex))
47754
          return false;
47755
        if (!this.ex.equals(that.ex))
47756
          return false;
47757
      }
47758
 
47759
      return true;
47760
    }
47761
 
47762
    @Override
47763
    public int hashCode() {
47764
      return 0;
47765
    }
47766
 
47767
    public int compareTo(reconcileCodCollection_result other) {
47768
      if (!getClass().equals(other.getClass())) {
47769
        return getClass().getName().compareTo(other.getClass().getName());
47770
      }
47771
 
47772
      int lastComparison = 0;
47773
      reconcileCodCollection_result typedOther = (reconcileCodCollection_result)other;
47774
 
47775
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
47776
      if (lastComparison != 0) {
47777
        return lastComparison;
47778
      }
47779
      if (isSetSuccess()) {
47780
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
47781
        if (lastComparison != 0) {
47782
          return lastComparison;
47783
        }
47784
      }
47785
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
47786
      if (lastComparison != 0) {
47787
        return lastComparison;
47788
      }
47789
      if (isSetEx()) {
47790
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
47791
        if (lastComparison != 0) {
47792
          return lastComparison;
47793
        }
47794
      }
47795
      return 0;
47796
    }
47797
 
47798
    public _Fields fieldForId(int fieldId) {
47799
      return _Fields.findByThriftId(fieldId);
47800
    }
47801
 
47802
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47803
      org.apache.thrift.protocol.TField field;
47804
      iprot.readStructBegin();
47805
      while (true)
47806
      {
47807
        field = iprot.readFieldBegin();
47808
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47809
          break;
47810
        }
47811
        switch (field.id) {
47812
          case 0: // SUCCESS
47813
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
47814
              {
4133 chandransh 47815
                org.apache.thrift.protocol.TMap _map126 = iprot.readMapBegin();
47816
                this.success = new HashMap<String,String>(2*_map126.size);
47817
                for (int _i127 = 0; _i127 < _map126.size; ++_i127)
3956 chandransh 47818
                {
4133 chandransh 47819
                  String _key128; // required
47820
                  String _val129; // required
47821
                  _key128 = iprot.readString();
47822
                  _val129 = iprot.readString();
47823
                  this.success.put(_key128, _val129);
3956 chandransh 47824
                }
47825
                iprot.readMapEnd();
47826
              }
47827
            } else { 
47828
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47829
            }
47830
            break;
47831
          case 1: // EX
47832
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
47833
              this.ex = new TransactionServiceException();
47834
              this.ex.read(iprot);
47835
            } else { 
47836
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47837
            }
47838
            break;
47839
          default:
47840
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47841
        }
47842
        iprot.readFieldEnd();
47843
      }
47844
      iprot.readStructEnd();
47845
      validate();
47846
    }
47847
 
47848
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47849
      oprot.writeStructBegin(STRUCT_DESC);
47850
 
47851
      if (this.isSetSuccess()) {
47852
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
47853
        {
47854
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
4133 chandransh 47855
          for (Map.Entry<String, String> _iter130 : this.success.entrySet())
3956 chandransh 47856
          {
4133 chandransh 47857
            oprot.writeString(_iter130.getKey());
47858
            oprot.writeString(_iter130.getValue());
3956 chandransh 47859
          }
47860
          oprot.writeMapEnd();
47861
        }
47862
        oprot.writeFieldEnd();
47863
      } else if (this.isSetEx()) {
47864
        oprot.writeFieldBegin(EX_FIELD_DESC);
47865
        this.ex.write(oprot);
47866
        oprot.writeFieldEnd();
47867
      }
47868
      oprot.writeFieldStop();
47869
      oprot.writeStructEnd();
47870
    }
47871
 
47872
    @Override
47873
    public String toString() {
47874
      StringBuilder sb = new StringBuilder("reconcileCodCollection_result(");
47875
      boolean first = true;
47876
 
47877
      sb.append("success:");
47878
      if (this.success == null) {
47879
        sb.append("null");
47880
      } else {
47881
        sb.append(this.success);
47882
      }
47883
      first = false;
47884
      if (!first) sb.append(", ");
47885
      sb.append("ex:");
47886
      if (this.ex == null) {
47887
        sb.append("null");
47888
      } else {
47889
        sb.append(this.ex);
47890
      }
47891
      first = false;
47892
      sb.append(")");
47893
      return sb.toString();
47894
    }
47895
 
47896
    public void validate() throws org.apache.thrift.TException {
47897
      // check for required fields
47898
    }
47899
 
47900
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47901
      try {
47902
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47903
      } catch (org.apache.thrift.TException te) {
47904
        throw new java.io.IOException(te);
47905
      }
47906
    }
47907
 
47908
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47909
      try {
47910
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47911
      } catch (org.apache.thrift.TException te) {
47912
        throw new java.io.IOException(te);
47913
      }
47914
    }
47915
 
47916
  }
47917
 
4008 mandeep.dh 47918
  public static class getTransactionsRequiringExtraProcessing_args implements org.apache.thrift.TBase<getTransactionsRequiringExtraProcessing_args, getTransactionsRequiringExtraProcessing_args._Fields>, java.io.Serializable, Cloneable   {
47919
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsRequiringExtraProcessing_args");
47920
 
47921
    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);
47922
 
47923
    private ExtraTransactionProcessingType category; // required
47924
 
47925
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47926
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47927
      /**
47928
       * 
47929
       * @see ExtraTransactionProcessingType
47930
       */
47931
      CATEGORY((short)1, "category");
47932
 
47933
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47934
 
47935
      static {
47936
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47937
          byName.put(field.getFieldName(), field);
47938
        }
47939
      }
47940
 
47941
      /**
47942
       * Find the _Fields constant that matches fieldId, or null if its not found.
47943
       */
47944
      public static _Fields findByThriftId(int fieldId) {
47945
        switch(fieldId) {
47946
          case 1: // CATEGORY
47947
            return CATEGORY;
47948
          default:
47949
            return null;
47950
        }
47951
      }
47952
 
47953
      /**
47954
       * Find the _Fields constant that matches fieldId, throwing an exception
47955
       * if it is not found.
47956
       */
47957
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47958
        _Fields fields = findByThriftId(fieldId);
47959
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47960
        return fields;
47961
      }
47962
 
47963
      /**
47964
       * Find the _Fields constant that matches name, or null if its not found.
47965
       */
47966
      public static _Fields findByName(String name) {
47967
        return byName.get(name);
47968
      }
47969
 
47970
      private final short _thriftId;
47971
      private final String _fieldName;
47972
 
47973
      _Fields(short thriftId, String fieldName) {
47974
        _thriftId = thriftId;
47975
        _fieldName = fieldName;
47976
      }
47977
 
47978
      public short getThriftFieldId() {
47979
        return _thriftId;
47980
      }
47981
 
47982
      public String getFieldName() {
47983
        return _fieldName;
47984
      }
47985
    }
47986
 
47987
    // isset id assignments
47988
 
47989
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47990
    static {
47991
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47992
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47993
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraTransactionProcessingType.class)));
47994
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47995
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsRequiringExtraProcessing_args.class, metaDataMap);
47996
    }
47997
 
47998
    public getTransactionsRequiringExtraProcessing_args() {
47999
    }
48000
 
48001
    public getTransactionsRequiringExtraProcessing_args(
48002
      ExtraTransactionProcessingType category)
48003
    {
48004
      this();
48005
      this.category = category;
48006
    }
48007
 
48008
    /**
48009
     * Performs a deep copy on <i>other</i>.
48010
     */
48011
    public getTransactionsRequiringExtraProcessing_args(getTransactionsRequiringExtraProcessing_args other) {
48012
      if (other.isSetCategory()) {
48013
        this.category = other.category;
48014
      }
48015
    }
48016
 
48017
    public getTransactionsRequiringExtraProcessing_args deepCopy() {
48018
      return new getTransactionsRequiringExtraProcessing_args(this);
48019
    }
48020
 
48021
    @Override
48022
    public void clear() {
48023
      this.category = null;
48024
    }
48025
 
48026
    /**
48027
     * 
48028
     * @see ExtraTransactionProcessingType
48029
     */
48030
    public ExtraTransactionProcessingType getCategory() {
48031
      return this.category;
48032
    }
48033
 
48034
    /**
48035
     * 
48036
     * @see ExtraTransactionProcessingType
48037
     */
48038
    public void setCategory(ExtraTransactionProcessingType category) {
48039
      this.category = category;
48040
    }
48041
 
48042
    public void unsetCategory() {
48043
      this.category = null;
48044
    }
48045
 
48046
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
48047
    public boolean isSetCategory() {
48048
      return this.category != null;
48049
    }
48050
 
48051
    public void setCategoryIsSet(boolean value) {
48052
      if (!value) {
48053
        this.category = null;
48054
      }
48055
    }
48056
 
48057
    public void setFieldValue(_Fields field, Object value) {
48058
      switch (field) {
48059
      case CATEGORY:
48060
        if (value == null) {
48061
          unsetCategory();
48062
        } else {
48063
          setCategory((ExtraTransactionProcessingType)value);
48064
        }
48065
        break;
48066
 
48067
      }
48068
    }
48069
 
48070
    public Object getFieldValue(_Fields field) {
48071
      switch (field) {
48072
      case CATEGORY:
48073
        return getCategory();
48074
 
48075
      }
48076
      throw new IllegalStateException();
48077
    }
48078
 
48079
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48080
    public boolean isSet(_Fields field) {
48081
      if (field == null) {
48082
        throw new IllegalArgumentException();
48083
      }
48084
 
48085
      switch (field) {
48086
      case CATEGORY:
48087
        return isSetCategory();
48088
      }
48089
      throw new IllegalStateException();
48090
    }
48091
 
48092
    @Override
48093
    public boolean equals(Object that) {
48094
      if (that == null)
48095
        return false;
48096
      if (that instanceof getTransactionsRequiringExtraProcessing_args)
48097
        return this.equals((getTransactionsRequiringExtraProcessing_args)that);
48098
      return false;
48099
    }
48100
 
48101
    public boolean equals(getTransactionsRequiringExtraProcessing_args that) {
48102
      if (that == null)
48103
        return false;
48104
 
48105
      boolean this_present_category = true && this.isSetCategory();
48106
      boolean that_present_category = true && that.isSetCategory();
48107
      if (this_present_category || that_present_category) {
48108
        if (!(this_present_category && that_present_category))
48109
          return false;
48110
        if (!this.category.equals(that.category))
48111
          return false;
48112
      }
48113
 
48114
      return true;
48115
    }
48116
 
48117
    @Override
48118
    public int hashCode() {
48119
      return 0;
48120
    }
48121
 
48122
    public int compareTo(getTransactionsRequiringExtraProcessing_args other) {
48123
      if (!getClass().equals(other.getClass())) {
48124
        return getClass().getName().compareTo(other.getClass().getName());
48125
      }
48126
 
48127
      int lastComparison = 0;
48128
      getTransactionsRequiringExtraProcessing_args typedOther = (getTransactionsRequiringExtraProcessing_args)other;
48129
 
48130
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
48131
      if (lastComparison != 0) {
48132
        return lastComparison;
48133
      }
48134
      if (isSetCategory()) {
48135
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
48136
        if (lastComparison != 0) {
48137
          return lastComparison;
48138
        }
48139
      }
48140
      return 0;
48141
    }
48142
 
48143
    public _Fields fieldForId(int fieldId) {
48144
      return _Fields.findByThriftId(fieldId);
48145
    }
48146
 
48147
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48148
      org.apache.thrift.protocol.TField field;
48149
      iprot.readStructBegin();
48150
      while (true)
48151
      {
48152
        field = iprot.readFieldBegin();
48153
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48154
          break;
48155
        }
48156
        switch (field.id) {
48157
          case 1: // CATEGORY
48158
            if (field.type == org.apache.thrift.protocol.TType.I32) {
48159
              this.category = ExtraTransactionProcessingType.findByValue(iprot.readI32());
48160
            } else { 
48161
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48162
            }
48163
            break;
48164
          default:
48165
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48166
        }
48167
        iprot.readFieldEnd();
48168
      }
48169
      iprot.readStructEnd();
48170
      validate();
48171
    }
48172
 
48173
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48174
      validate();
48175
 
48176
      oprot.writeStructBegin(STRUCT_DESC);
48177
      if (this.category != null) {
48178
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
48179
        oprot.writeI32(this.category.getValue());
48180
        oprot.writeFieldEnd();
48181
      }
48182
      oprot.writeFieldStop();
48183
      oprot.writeStructEnd();
48184
    }
48185
 
48186
    @Override
48187
    public String toString() {
48188
      StringBuilder sb = new StringBuilder("getTransactionsRequiringExtraProcessing_args(");
48189
      boolean first = true;
48190
 
48191
      sb.append("category:");
48192
      if (this.category == null) {
48193
        sb.append("null");
48194
      } else {
48195
        sb.append(this.category);
48196
      }
48197
      first = false;
48198
      sb.append(")");
48199
      return sb.toString();
48200
    }
48201
 
48202
    public void validate() throws org.apache.thrift.TException {
48203
      // check for required fields
48204
    }
48205
 
48206
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48207
      try {
48208
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48209
      } catch (org.apache.thrift.TException te) {
48210
        throw new java.io.IOException(te);
48211
      }
48212
    }
48213
 
48214
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48215
      try {
48216
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48217
      } catch (org.apache.thrift.TException te) {
48218
        throw new java.io.IOException(te);
48219
      }
48220
    }
48221
 
48222
  }
48223
 
48224
  public static class getTransactionsRequiringExtraProcessing_result implements org.apache.thrift.TBase<getTransactionsRequiringExtraProcessing_result, getTransactionsRequiringExtraProcessing_result._Fields>, java.io.Serializable, Cloneable   {
48225
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsRequiringExtraProcessing_result");
48226
 
48227
    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);
48228
 
48229
    private List<Long> success; // required
48230
 
48231
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48232
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48233
      SUCCESS((short)0, "success");
48234
 
48235
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48236
 
48237
      static {
48238
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48239
          byName.put(field.getFieldName(), field);
48240
        }
48241
      }
48242
 
48243
      /**
48244
       * Find the _Fields constant that matches fieldId, or null if its not found.
48245
       */
48246
      public static _Fields findByThriftId(int fieldId) {
48247
        switch(fieldId) {
48248
          case 0: // SUCCESS
48249
            return SUCCESS;
48250
          default:
48251
            return null;
48252
        }
48253
      }
48254
 
48255
      /**
48256
       * Find the _Fields constant that matches fieldId, throwing an exception
48257
       * if it is not found.
48258
       */
48259
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48260
        _Fields fields = findByThriftId(fieldId);
48261
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48262
        return fields;
48263
      }
48264
 
48265
      /**
48266
       * Find the _Fields constant that matches name, or null if its not found.
48267
       */
48268
      public static _Fields findByName(String name) {
48269
        return byName.get(name);
48270
      }
48271
 
48272
      private final short _thriftId;
48273
      private final String _fieldName;
48274
 
48275
      _Fields(short thriftId, String fieldName) {
48276
        _thriftId = thriftId;
48277
        _fieldName = fieldName;
48278
      }
48279
 
48280
      public short getThriftFieldId() {
48281
        return _thriftId;
48282
      }
48283
 
48284
      public String getFieldName() {
48285
        return _fieldName;
48286
      }
48287
    }
48288
 
48289
    // isset id assignments
48290
 
48291
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48292
    static {
48293
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48294
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48295
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
48296
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
48297
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48298
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsRequiringExtraProcessing_result.class, metaDataMap);
48299
    }
48300
 
48301
    public getTransactionsRequiringExtraProcessing_result() {
48302
    }
48303
 
48304
    public getTransactionsRequiringExtraProcessing_result(
48305
      List<Long> success)
48306
    {
48307
      this();
48308
      this.success = success;
48309
    }
48310
 
48311
    /**
48312
     * Performs a deep copy on <i>other</i>.
48313
     */
48314
    public getTransactionsRequiringExtraProcessing_result(getTransactionsRequiringExtraProcessing_result other) {
48315
      if (other.isSetSuccess()) {
48316
        List<Long> __this__success = new ArrayList<Long>();
48317
        for (Long other_element : other.success) {
48318
          __this__success.add(other_element);
48319
        }
48320
        this.success = __this__success;
48321
      }
48322
    }
48323
 
48324
    public getTransactionsRequiringExtraProcessing_result deepCopy() {
48325
      return new getTransactionsRequiringExtraProcessing_result(this);
48326
    }
48327
 
48328
    @Override
48329
    public void clear() {
48330
      this.success = null;
48331
    }
48332
 
48333
    public int getSuccessSize() {
48334
      return (this.success == null) ? 0 : this.success.size();
48335
    }
48336
 
48337
    public java.util.Iterator<Long> getSuccessIterator() {
48338
      return (this.success == null) ? null : this.success.iterator();
48339
    }
48340
 
48341
    public void addToSuccess(long elem) {
48342
      if (this.success == null) {
48343
        this.success = new ArrayList<Long>();
48344
      }
48345
      this.success.add(elem);
48346
    }
48347
 
48348
    public List<Long> getSuccess() {
48349
      return this.success;
48350
    }
48351
 
48352
    public void setSuccess(List<Long> success) {
48353
      this.success = success;
48354
    }
48355
 
48356
    public void unsetSuccess() {
48357
      this.success = null;
48358
    }
48359
 
48360
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48361
    public boolean isSetSuccess() {
48362
      return this.success != null;
48363
    }
48364
 
48365
    public void setSuccessIsSet(boolean value) {
48366
      if (!value) {
48367
        this.success = null;
48368
      }
48369
    }
48370
 
48371
    public void setFieldValue(_Fields field, Object value) {
48372
      switch (field) {
48373
      case SUCCESS:
48374
        if (value == null) {
48375
          unsetSuccess();
48376
        } else {
48377
          setSuccess((List<Long>)value);
48378
        }
48379
        break;
48380
 
48381
      }
48382
    }
48383
 
48384
    public Object getFieldValue(_Fields field) {
48385
      switch (field) {
48386
      case SUCCESS:
48387
        return getSuccess();
48388
 
48389
      }
48390
      throw new IllegalStateException();
48391
    }
48392
 
48393
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48394
    public boolean isSet(_Fields field) {
48395
      if (field == null) {
48396
        throw new IllegalArgumentException();
48397
      }
48398
 
48399
      switch (field) {
48400
      case SUCCESS:
48401
        return isSetSuccess();
48402
      }
48403
      throw new IllegalStateException();
48404
    }
48405
 
48406
    @Override
48407
    public boolean equals(Object that) {
48408
      if (that == null)
48409
        return false;
48410
      if (that instanceof getTransactionsRequiringExtraProcessing_result)
48411
        return this.equals((getTransactionsRequiringExtraProcessing_result)that);
48412
      return false;
48413
    }
48414
 
48415
    public boolean equals(getTransactionsRequiringExtraProcessing_result that) {
48416
      if (that == null)
48417
        return false;
48418
 
48419
      boolean this_present_success = true && this.isSetSuccess();
48420
      boolean that_present_success = true && that.isSetSuccess();
48421
      if (this_present_success || that_present_success) {
48422
        if (!(this_present_success && that_present_success))
48423
          return false;
48424
        if (!this.success.equals(that.success))
48425
          return false;
48426
      }
48427
 
48428
      return true;
48429
    }
48430
 
48431
    @Override
48432
    public int hashCode() {
48433
      return 0;
48434
    }
48435
 
48436
    public int compareTo(getTransactionsRequiringExtraProcessing_result other) {
48437
      if (!getClass().equals(other.getClass())) {
48438
        return getClass().getName().compareTo(other.getClass().getName());
48439
      }
48440
 
48441
      int lastComparison = 0;
48442
      getTransactionsRequiringExtraProcessing_result typedOther = (getTransactionsRequiringExtraProcessing_result)other;
48443
 
48444
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48445
      if (lastComparison != 0) {
48446
        return lastComparison;
48447
      }
48448
      if (isSetSuccess()) {
48449
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
48450
        if (lastComparison != 0) {
48451
          return lastComparison;
48452
        }
48453
      }
48454
      return 0;
48455
    }
48456
 
48457
    public _Fields fieldForId(int fieldId) {
48458
      return _Fields.findByThriftId(fieldId);
48459
    }
48460
 
48461
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48462
      org.apache.thrift.protocol.TField field;
48463
      iprot.readStructBegin();
48464
      while (true)
48465
      {
48466
        field = iprot.readFieldBegin();
48467
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48468
          break;
48469
        }
48470
        switch (field.id) {
48471
          case 0: // SUCCESS
48472
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
48473
              {
4133 chandransh 48474
                org.apache.thrift.protocol.TList _list131 = iprot.readListBegin();
48475
                this.success = new ArrayList<Long>(_list131.size);
48476
                for (int _i132 = 0; _i132 < _list131.size; ++_i132)
4008 mandeep.dh 48477
                {
4133 chandransh 48478
                  long _elem133; // required
48479
                  _elem133 = iprot.readI64();
48480
                  this.success.add(_elem133);
4008 mandeep.dh 48481
                }
48482
                iprot.readListEnd();
48483
              }
48484
            } else { 
48485
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48486
            }
48487
            break;
48488
          default:
48489
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48490
        }
48491
        iprot.readFieldEnd();
48492
      }
48493
      iprot.readStructEnd();
48494
      validate();
48495
    }
48496
 
48497
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48498
      oprot.writeStructBegin(STRUCT_DESC);
48499
 
48500
      if (this.isSetSuccess()) {
48501
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48502
        {
48503
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
4133 chandransh 48504
          for (long _iter134 : this.success)
4008 mandeep.dh 48505
          {
4133 chandransh 48506
            oprot.writeI64(_iter134);
4008 mandeep.dh 48507
          }
48508
          oprot.writeListEnd();
48509
        }
48510
        oprot.writeFieldEnd();
48511
      }
48512
      oprot.writeFieldStop();
48513
      oprot.writeStructEnd();
48514
    }
48515
 
48516
    @Override
48517
    public String toString() {
48518
      StringBuilder sb = new StringBuilder("getTransactionsRequiringExtraProcessing_result(");
48519
      boolean first = true;
48520
 
48521
      sb.append("success:");
48522
      if (this.success == null) {
48523
        sb.append("null");
48524
      } else {
48525
        sb.append(this.success);
48526
      }
48527
      first = false;
48528
      sb.append(")");
48529
      return sb.toString();
48530
    }
48531
 
48532
    public void validate() throws org.apache.thrift.TException {
48533
      // check for required fields
48534
    }
48535
 
48536
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48537
      try {
48538
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48539
      } catch (org.apache.thrift.TException te) {
48540
        throw new java.io.IOException(te);
48541
      }
48542
    }
48543
 
48544
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48545
      try {
48546
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48547
      } catch (org.apache.thrift.TException te) {
48548
        throw new java.io.IOException(te);
48549
      }
48550
    }
48551
 
48552
  }
48553
 
48554
  public static class markTransactionAsProcessed_args implements org.apache.thrift.TBase<markTransactionAsProcessed_args, markTransactionAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
48555
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransactionAsProcessed_args");
48556
 
48557
    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);
48558
    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);
48559
 
48560
    private long transactionId; // required
48561
    private ExtraTransactionProcessingType category; // required
48562
 
48563
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48564
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48565
      TRANSACTION_ID((short)1, "transactionId"),
48566
      /**
48567
       * 
48568
       * @see ExtraTransactionProcessingType
48569
       */
48570
      CATEGORY((short)2, "category");
48571
 
48572
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48573
 
48574
      static {
48575
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48576
          byName.put(field.getFieldName(), field);
48577
        }
48578
      }
48579
 
48580
      /**
48581
       * Find the _Fields constant that matches fieldId, or null if its not found.
48582
       */
48583
      public static _Fields findByThriftId(int fieldId) {
48584
        switch(fieldId) {
48585
          case 1: // TRANSACTION_ID
48586
            return TRANSACTION_ID;
48587
          case 2: // CATEGORY
48588
            return CATEGORY;
48589
          default:
48590
            return null;
48591
        }
48592
      }
48593
 
48594
      /**
48595
       * Find the _Fields constant that matches fieldId, throwing an exception
48596
       * if it is not found.
48597
       */
48598
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48599
        _Fields fields = findByThriftId(fieldId);
48600
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48601
        return fields;
48602
      }
48603
 
48604
      /**
48605
       * Find the _Fields constant that matches name, or null if its not found.
48606
       */
48607
      public static _Fields findByName(String name) {
48608
        return byName.get(name);
48609
      }
48610
 
48611
      private final short _thriftId;
48612
      private final String _fieldName;
48613
 
48614
      _Fields(short thriftId, String fieldName) {
48615
        _thriftId = thriftId;
48616
        _fieldName = fieldName;
48617
      }
48618
 
48619
      public short getThriftFieldId() {
48620
        return _thriftId;
48621
      }
48622
 
48623
      public String getFieldName() {
48624
        return _fieldName;
48625
      }
48626
    }
48627
 
48628
    // isset id assignments
48629
    private static final int __TRANSACTIONID_ISSET_ID = 0;
48630
    private BitSet __isset_bit_vector = new BitSet(1);
48631
 
48632
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48633
    static {
48634
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48635
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
48637
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48638
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraTransactionProcessingType.class)));
48639
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48640
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransactionAsProcessed_args.class, metaDataMap);
48641
    }
48642
 
48643
    public markTransactionAsProcessed_args() {
48644
    }
48645
 
48646
    public markTransactionAsProcessed_args(
48647
      long transactionId,
48648
      ExtraTransactionProcessingType category)
48649
    {
48650
      this();
48651
      this.transactionId = transactionId;
48652
      setTransactionIdIsSet(true);
48653
      this.category = category;
48654
    }
48655
 
48656
    /**
48657
     * Performs a deep copy on <i>other</i>.
48658
     */
48659
    public markTransactionAsProcessed_args(markTransactionAsProcessed_args other) {
48660
      __isset_bit_vector.clear();
48661
      __isset_bit_vector.or(other.__isset_bit_vector);
48662
      this.transactionId = other.transactionId;
48663
      if (other.isSetCategory()) {
48664
        this.category = other.category;
48665
      }
48666
    }
48667
 
48668
    public markTransactionAsProcessed_args deepCopy() {
48669
      return new markTransactionAsProcessed_args(this);
48670
    }
48671
 
48672
    @Override
48673
    public void clear() {
48674
      setTransactionIdIsSet(false);
48675
      this.transactionId = 0;
48676
      this.category = null;
48677
    }
48678
 
48679
    public long getTransactionId() {
48680
      return this.transactionId;
48681
    }
48682
 
48683
    public void setTransactionId(long transactionId) {
48684
      this.transactionId = transactionId;
48685
      setTransactionIdIsSet(true);
48686
    }
48687
 
48688
    public void unsetTransactionId() {
48689
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
48690
    }
48691
 
48692
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
48693
    public boolean isSetTransactionId() {
48694
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
48695
    }
48696
 
48697
    public void setTransactionIdIsSet(boolean value) {
48698
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
48699
    }
48700
 
48701
    /**
48702
     * 
48703
     * @see ExtraTransactionProcessingType
48704
     */
48705
    public ExtraTransactionProcessingType getCategory() {
48706
      return this.category;
48707
    }
48708
 
48709
    /**
48710
     * 
48711
     * @see ExtraTransactionProcessingType
48712
     */
48713
    public void setCategory(ExtraTransactionProcessingType category) {
48714
      this.category = category;
48715
    }
48716
 
48717
    public void unsetCategory() {
48718
      this.category = null;
48719
    }
48720
 
48721
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
48722
    public boolean isSetCategory() {
48723
      return this.category != null;
48724
    }
48725
 
48726
    public void setCategoryIsSet(boolean value) {
48727
      if (!value) {
48728
        this.category = null;
48729
      }
48730
    }
48731
 
48732
    public void setFieldValue(_Fields field, Object value) {
48733
      switch (field) {
48734
      case TRANSACTION_ID:
48735
        if (value == null) {
48736
          unsetTransactionId();
48737
        } else {
48738
          setTransactionId((Long)value);
48739
        }
48740
        break;
48741
 
48742
      case CATEGORY:
48743
        if (value == null) {
48744
          unsetCategory();
48745
        } else {
48746
          setCategory((ExtraTransactionProcessingType)value);
48747
        }
48748
        break;
48749
 
48750
      }
48751
    }
48752
 
48753
    public Object getFieldValue(_Fields field) {
48754
      switch (field) {
48755
      case TRANSACTION_ID:
48756
        return Long.valueOf(getTransactionId());
48757
 
48758
      case CATEGORY:
48759
        return getCategory();
48760
 
48761
      }
48762
      throw new IllegalStateException();
48763
    }
48764
 
48765
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48766
    public boolean isSet(_Fields field) {
48767
      if (field == null) {
48768
        throw new IllegalArgumentException();
48769
      }
48770
 
48771
      switch (field) {
48772
      case TRANSACTION_ID:
48773
        return isSetTransactionId();
48774
      case CATEGORY:
48775
        return isSetCategory();
48776
      }
48777
      throw new IllegalStateException();
48778
    }
48779
 
48780
    @Override
48781
    public boolean equals(Object that) {
48782
      if (that == null)
48783
        return false;
48784
      if (that instanceof markTransactionAsProcessed_args)
48785
        return this.equals((markTransactionAsProcessed_args)that);
48786
      return false;
48787
    }
48788
 
48789
    public boolean equals(markTransactionAsProcessed_args that) {
48790
      if (that == null)
48791
        return false;
48792
 
48793
      boolean this_present_transactionId = true;
48794
      boolean that_present_transactionId = true;
48795
      if (this_present_transactionId || that_present_transactionId) {
48796
        if (!(this_present_transactionId && that_present_transactionId))
48797
          return false;
48798
        if (this.transactionId != that.transactionId)
48799
          return false;
48800
      }
48801
 
48802
      boolean this_present_category = true && this.isSetCategory();
48803
      boolean that_present_category = true && that.isSetCategory();
48804
      if (this_present_category || that_present_category) {
48805
        if (!(this_present_category && that_present_category))
48806
          return false;
48807
        if (!this.category.equals(that.category))
48808
          return false;
48809
      }
48810
 
48811
      return true;
48812
    }
48813
 
48814
    @Override
48815
    public int hashCode() {
48816
      return 0;
48817
    }
48818
 
48819
    public int compareTo(markTransactionAsProcessed_args other) {
48820
      if (!getClass().equals(other.getClass())) {
48821
        return getClass().getName().compareTo(other.getClass().getName());
48822
      }
48823
 
48824
      int lastComparison = 0;
48825
      markTransactionAsProcessed_args typedOther = (markTransactionAsProcessed_args)other;
48826
 
48827
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
48828
      if (lastComparison != 0) {
48829
        return lastComparison;
48830
      }
48831
      if (isSetTransactionId()) {
48832
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
48833
        if (lastComparison != 0) {
48834
          return lastComparison;
48835
        }
48836
      }
48837
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
48838
      if (lastComparison != 0) {
48839
        return lastComparison;
48840
      }
48841
      if (isSetCategory()) {
48842
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
48843
        if (lastComparison != 0) {
48844
          return lastComparison;
48845
        }
48846
      }
48847
      return 0;
48848
    }
48849
 
48850
    public _Fields fieldForId(int fieldId) {
48851
      return _Fields.findByThriftId(fieldId);
48852
    }
48853
 
48854
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48855
      org.apache.thrift.protocol.TField field;
48856
      iprot.readStructBegin();
48857
      while (true)
48858
      {
48859
        field = iprot.readFieldBegin();
48860
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48861
          break;
48862
        }
48863
        switch (field.id) {
48864
          case 1: // TRANSACTION_ID
48865
            if (field.type == org.apache.thrift.protocol.TType.I64) {
48866
              this.transactionId = iprot.readI64();
48867
              setTransactionIdIsSet(true);
48868
            } else { 
48869
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48870
            }
48871
            break;
48872
          case 2: // CATEGORY
48873
            if (field.type == org.apache.thrift.protocol.TType.I32) {
48874
              this.category = ExtraTransactionProcessingType.findByValue(iprot.readI32());
48875
            } else { 
48876
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48877
            }
48878
            break;
48879
          default:
48880
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48881
        }
48882
        iprot.readFieldEnd();
48883
      }
48884
      iprot.readStructEnd();
48885
      validate();
48886
    }
48887
 
48888
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48889
      validate();
48890
 
48891
      oprot.writeStructBegin(STRUCT_DESC);
48892
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
48893
      oprot.writeI64(this.transactionId);
48894
      oprot.writeFieldEnd();
48895
      if (this.category != null) {
48896
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
48897
        oprot.writeI32(this.category.getValue());
48898
        oprot.writeFieldEnd();
48899
      }
48900
      oprot.writeFieldStop();
48901
      oprot.writeStructEnd();
48902
    }
48903
 
48904
    @Override
48905
    public String toString() {
48906
      StringBuilder sb = new StringBuilder("markTransactionAsProcessed_args(");
48907
      boolean first = true;
48908
 
48909
      sb.append("transactionId:");
48910
      sb.append(this.transactionId);
48911
      first = false;
48912
      if (!first) sb.append(", ");
48913
      sb.append("category:");
48914
      if (this.category == null) {
48915
        sb.append("null");
48916
      } else {
48917
        sb.append(this.category);
48918
      }
48919
      first = false;
48920
      sb.append(")");
48921
      return sb.toString();
48922
    }
48923
 
48924
    public void validate() throws org.apache.thrift.TException {
48925
      // check for required fields
48926
    }
48927
 
48928
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48929
      try {
48930
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48931
      } catch (org.apache.thrift.TException te) {
48932
        throw new java.io.IOException(te);
48933
      }
48934
    }
48935
 
48936
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48937
      try {
48938
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48939
      } catch (org.apache.thrift.TException te) {
48940
        throw new java.io.IOException(te);
48941
      }
48942
    }
48943
 
48944
  }
48945
 
48946
  public static class markTransactionAsProcessed_result implements org.apache.thrift.TBase<markTransactionAsProcessed_result, markTransactionAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
48947
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransactionAsProcessed_result");
48948
 
48949
 
48950
 
48951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48952
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48953
;
48954
 
48955
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48956
 
48957
      static {
48958
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48959
          byName.put(field.getFieldName(), field);
48960
        }
48961
      }
48962
 
48963
      /**
48964
       * Find the _Fields constant that matches fieldId, or null if its not found.
48965
       */
48966
      public static _Fields findByThriftId(int fieldId) {
48967
        switch(fieldId) {
48968
          default:
48969
            return null;
48970
        }
48971
      }
48972
 
48973
      /**
48974
       * Find the _Fields constant that matches fieldId, throwing an exception
48975
       * if it is not found.
48976
       */
48977
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48978
        _Fields fields = findByThriftId(fieldId);
48979
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48980
        return fields;
48981
      }
48982
 
48983
      /**
48984
       * Find the _Fields constant that matches name, or null if its not found.
48985
       */
48986
      public static _Fields findByName(String name) {
48987
        return byName.get(name);
48988
      }
48989
 
48990
      private final short _thriftId;
48991
      private final String _fieldName;
48992
 
48993
      _Fields(short thriftId, String fieldName) {
48994
        _thriftId = thriftId;
48995
        _fieldName = fieldName;
48996
      }
48997
 
48998
      public short getThriftFieldId() {
48999
        return _thriftId;
49000
      }
49001
 
49002
      public String getFieldName() {
49003
        return _fieldName;
49004
      }
49005
    }
49006
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49007
    static {
49008
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49009
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49010
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransactionAsProcessed_result.class, metaDataMap);
49011
    }
49012
 
49013
    public markTransactionAsProcessed_result() {
49014
    }
49015
 
49016
    /**
49017
     * Performs a deep copy on <i>other</i>.
49018
     */
49019
    public markTransactionAsProcessed_result(markTransactionAsProcessed_result other) {
49020
    }
49021
 
49022
    public markTransactionAsProcessed_result deepCopy() {
49023
      return new markTransactionAsProcessed_result(this);
49024
    }
49025
 
49026
    @Override
49027
    public void clear() {
49028
    }
49029
 
49030
    public void setFieldValue(_Fields field, Object value) {
49031
      switch (field) {
49032
      }
49033
    }
49034
 
49035
    public Object getFieldValue(_Fields field) {
49036
      switch (field) {
49037
      }
49038
      throw new IllegalStateException();
49039
    }
49040
 
49041
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49042
    public boolean isSet(_Fields field) {
49043
      if (field == null) {
49044
        throw new IllegalArgumentException();
49045
      }
49046
 
49047
      switch (field) {
49048
      }
49049
      throw new IllegalStateException();
49050
    }
49051
 
49052
    @Override
49053
    public boolean equals(Object that) {
49054
      if (that == null)
49055
        return false;
49056
      if (that instanceof markTransactionAsProcessed_result)
49057
        return this.equals((markTransactionAsProcessed_result)that);
49058
      return false;
49059
    }
49060
 
49061
    public boolean equals(markTransactionAsProcessed_result that) {
49062
      if (that == null)
49063
        return false;
49064
 
49065
      return true;
49066
    }
49067
 
49068
    @Override
49069
    public int hashCode() {
49070
      return 0;
49071
    }
49072
 
49073
    public int compareTo(markTransactionAsProcessed_result other) {
49074
      if (!getClass().equals(other.getClass())) {
49075
        return getClass().getName().compareTo(other.getClass().getName());
49076
      }
49077
 
49078
      int lastComparison = 0;
49079
      markTransactionAsProcessed_result typedOther = (markTransactionAsProcessed_result)other;
49080
 
49081
      return 0;
49082
    }
49083
 
49084
    public _Fields fieldForId(int fieldId) {
49085
      return _Fields.findByThriftId(fieldId);
49086
    }
49087
 
49088
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49089
      org.apache.thrift.protocol.TField field;
49090
      iprot.readStructBegin();
49091
      while (true)
49092
      {
49093
        field = iprot.readFieldBegin();
49094
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49095
          break;
49096
        }
49097
        switch (field.id) {
49098
          default:
49099
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49100
        }
49101
        iprot.readFieldEnd();
49102
      }
49103
      iprot.readStructEnd();
49104
      validate();
49105
    }
49106
 
49107
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49108
      oprot.writeStructBegin(STRUCT_DESC);
49109
 
49110
      oprot.writeFieldStop();
49111
      oprot.writeStructEnd();
49112
    }
49113
 
49114
    @Override
49115
    public String toString() {
49116
      StringBuilder sb = new StringBuilder("markTransactionAsProcessed_result(");
49117
      boolean first = true;
49118
 
49119
      sb.append(")");
49120
      return sb.toString();
49121
    }
49122
 
49123
    public void validate() throws org.apache.thrift.TException {
49124
      // check for required fields
49125
    }
49126
 
49127
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49128
      try {
49129
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49130
      } catch (org.apache.thrift.TException te) {
49131
        throw new java.io.IOException(te);
49132
      }
49133
    }
49134
 
49135
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49136
      try {
49137
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49138
      } catch (org.apache.thrift.TException te) {
49139
        throw new java.io.IOException(te);
49140
      }
49141
    }
49142
 
49143
  }
49144
 
4018 chandransh 49145
  public static class getItemWiseRiskyOrdersCount_args implements org.apache.thrift.TBase<getItemWiseRiskyOrdersCount_args, getItemWiseRiskyOrdersCount_args._Fields>, java.io.Serializable, Cloneable   {
49146
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemWiseRiskyOrdersCount_args");
49147
 
49148
 
49149
 
49150
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49151
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49152
;
49153
 
49154
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49155
 
49156
      static {
49157
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49158
          byName.put(field.getFieldName(), field);
49159
        }
49160
      }
49161
 
49162
      /**
49163
       * Find the _Fields constant that matches fieldId, or null if its not found.
49164
       */
49165
      public static _Fields findByThriftId(int fieldId) {
49166
        switch(fieldId) {
49167
          default:
49168
            return null;
49169
        }
49170
      }
49171
 
49172
      /**
49173
       * Find the _Fields constant that matches fieldId, throwing an exception
49174
       * if it is not found.
49175
       */
49176
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49177
        _Fields fields = findByThriftId(fieldId);
49178
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49179
        return fields;
49180
      }
49181
 
49182
      /**
49183
       * Find the _Fields constant that matches name, or null if its not found.
49184
       */
49185
      public static _Fields findByName(String name) {
49186
        return byName.get(name);
49187
      }
49188
 
49189
      private final short _thriftId;
49190
      private final String _fieldName;
49191
 
49192
      _Fields(short thriftId, String fieldName) {
49193
        _thriftId = thriftId;
49194
        _fieldName = fieldName;
49195
      }
49196
 
49197
      public short getThriftFieldId() {
49198
        return _thriftId;
49199
      }
49200
 
49201
      public String getFieldName() {
49202
        return _fieldName;
49203
      }
49204
    }
49205
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49206
    static {
49207
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49208
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49209
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemWiseRiskyOrdersCount_args.class, metaDataMap);
49210
    }
49211
 
49212
    public getItemWiseRiskyOrdersCount_args() {
49213
    }
49214
 
49215
    /**
49216
     * Performs a deep copy on <i>other</i>.
49217
     */
49218
    public getItemWiseRiskyOrdersCount_args(getItemWiseRiskyOrdersCount_args other) {
49219
    }
49220
 
49221
    public getItemWiseRiskyOrdersCount_args deepCopy() {
49222
      return new getItemWiseRiskyOrdersCount_args(this);
49223
    }
49224
 
49225
    @Override
49226
    public void clear() {
49227
    }
49228
 
49229
    public void setFieldValue(_Fields field, Object value) {
49230
      switch (field) {
49231
      }
49232
    }
49233
 
49234
    public Object getFieldValue(_Fields field) {
49235
      switch (field) {
49236
      }
49237
      throw new IllegalStateException();
49238
    }
49239
 
49240
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49241
    public boolean isSet(_Fields field) {
49242
      if (field == null) {
49243
        throw new IllegalArgumentException();
49244
      }
49245
 
49246
      switch (field) {
49247
      }
49248
      throw new IllegalStateException();
49249
    }
49250
 
49251
    @Override
49252
    public boolean equals(Object that) {
49253
      if (that == null)
49254
        return false;
49255
      if (that instanceof getItemWiseRiskyOrdersCount_args)
49256
        return this.equals((getItemWiseRiskyOrdersCount_args)that);
49257
      return false;
49258
    }
49259
 
49260
    public boolean equals(getItemWiseRiskyOrdersCount_args that) {
49261
      if (that == null)
49262
        return false;
49263
 
49264
      return true;
49265
    }
49266
 
49267
    @Override
49268
    public int hashCode() {
49269
      return 0;
49270
    }
49271
 
49272
    public int compareTo(getItemWiseRiskyOrdersCount_args other) {
49273
      if (!getClass().equals(other.getClass())) {
49274
        return getClass().getName().compareTo(other.getClass().getName());
49275
      }
49276
 
49277
      int lastComparison = 0;
49278
      getItemWiseRiskyOrdersCount_args typedOther = (getItemWiseRiskyOrdersCount_args)other;
49279
 
49280
      return 0;
49281
    }
49282
 
49283
    public _Fields fieldForId(int fieldId) {
49284
      return _Fields.findByThriftId(fieldId);
49285
    }
49286
 
49287
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49288
      org.apache.thrift.protocol.TField field;
49289
      iprot.readStructBegin();
49290
      while (true)
49291
      {
49292
        field = iprot.readFieldBegin();
49293
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49294
          break;
49295
        }
49296
        switch (field.id) {
49297
          default:
49298
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49299
        }
49300
        iprot.readFieldEnd();
49301
      }
49302
      iprot.readStructEnd();
49303
      validate();
49304
    }
49305
 
49306
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49307
      validate();
49308
 
49309
      oprot.writeStructBegin(STRUCT_DESC);
49310
      oprot.writeFieldStop();
49311
      oprot.writeStructEnd();
49312
    }
49313
 
49314
    @Override
49315
    public String toString() {
49316
      StringBuilder sb = new StringBuilder("getItemWiseRiskyOrdersCount_args(");
49317
      boolean first = true;
49318
 
49319
      sb.append(")");
49320
      return sb.toString();
49321
    }
49322
 
49323
    public void validate() throws org.apache.thrift.TException {
49324
      // check for required fields
49325
    }
49326
 
49327
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49328
      try {
49329
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49330
      } catch (org.apache.thrift.TException te) {
49331
        throw new java.io.IOException(te);
49332
      }
49333
    }
49334
 
49335
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49336
      try {
49337
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49338
      } catch (org.apache.thrift.TException te) {
49339
        throw new java.io.IOException(te);
49340
      }
49341
    }
49342
 
49343
  }
49344
 
49345
  public static class getItemWiseRiskyOrdersCount_result implements org.apache.thrift.TBase<getItemWiseRiskyOrdersCount_result, getItemWiseRiskyOrdersCount_result._Fields>, java.io.Serializable, Cloneable   {
49346
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemWiseRiskyOrdersCount_result");
49347
 
49348
    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);
49349
 
49350
    private Map<Long,Long> success; // required
49351
 
49352
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49353
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49354
      SUCCESS((short)0, "success");
49355
 
49356
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49357
 
49358
      static {
49359
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49360
          byName.put(field.getFieldName(), field);
49361
        }
49362
      }
49363
 
49364
      /**
49365
       * Find the _Fields constant that matches fieldId, or null if its not found.
49366
       */
49367
      public static _Fields findByThriftId(int fieldId) {
49368
        switch(fieldId) {
49369
          case 0: // SUCCESS
49370
            return SUCCESS;
49371
          default:
49372
            return null;
49373
        }
49374
      }
49375
 
49376
      /**
49377
       * Find the _Fields constant that matches fieldId, throwing an exception
49378
       * if it is not found.
49379
       */
49380
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49381
        _Fields fields = findByThriftId(fieldId);
49382
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49383
        return fields;
49384
      }
49385
 
49386
      /**
49387
       * Find the _Fields constant that matches name, or null if its not found.
49388
       */
49389
      public static _Fields findByName(String name) {
49390
        return byName.get(name);
49391
      }
49392
 
49393
      private final short _thriftId;
49394
      private final String _fieldName;
49395
 
49396
      _Fields(short thriftId, String fieldName) {
49397
        _thriftId = thriftId;
49398
        _fieldName = fieldName;
49399
      }
49400
 
49401
      public short getThriftFieldId() {
49402
        return _thriftId;
49403
      }
49404
 
49405
      public String getFieldName() {
49406
        return _fieldName;
49407
      }
49408
    }
49409
 
49410
    // isset id assignments
49411
 
49412
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49413
    static {
49414
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49415
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49416
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
49417
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
49418
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
49419
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49420
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemWiseRiskyOrdersCount_result.class, metaDataMap);
49421
    }
49422
 
49423
    public getItemWiseRiskyOrdersCount_result() {
49424
    }
49425
 
49426
    public getItemWiseRiskyOrdersCount_result(
49427
      Map<Long,Long> success)
49428
    {
49429
      this();
49430
      this.success = success;
49431
    }
49432
 
49433
    /**
49434
     * Performs a deep copy on <i>other</i>.
49435
     */
49436
    public getItemWiseRiskyOrdersCount_result(getItemWiseRiskyOrdersCount_result other) {
49437
      if (other.isSetSuccess()) {
49438
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
49439
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
49440
 
49441
          Long other_element_key = other_element.getKey();
49442
          Long other_element_value = other_element.getValue();
49443
 
49444
          Long __this__success_copy_key = other_element_key;
49445
 
49446
          Long __this__success_copy_value = other_element_value;
49447
 
49448
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
49449
        }
49450
        this.success = __this__success;
49451
      }
49452
    }
49453
 
49454
    public getItemWiseRiskyOrdersCount_result deepCopy() {
49455
      return new getItemWiseRiskyOrdersCount_result(this);
49456
    }
49457
 
49458
    @Override
49459
    public void clear() {
49460
      this.success = null;
49461
    }
49462
 
49463
    public int getSuccessSize() {
49464
      return (this.success == null) ? 0 : this.success.size();
49465
    }
49466
 
49467
    public void putToSuccess(long key, long val) {
49468
      if (this.success == null) {
49469
        this.success = new HashMap<Long,Long>();
49470
      }
49471
      this.success.put(key, val);
49472
    }
49473
 
49474
    public Map<Long,Long> getSuccess() {
49475
      return this.success;
49476
    }
49477
 
49478
    public void setSuccess(Map<Long,Long> success) {
49479
      this.success = success;
49480
    }
49481
 
49482
    public void unsetSuccess() {
49483
      this.success = null;
49484
    }
49485
 
49486
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
49487
    public boolean isSetSuccess() {
49488
      return this.success != null;
49489
    }
49490
 
49491
    public void setSuccessIsSet(boolean value) {
49492
      if (!value) {
49493
        this.success = null;
49494
      }
49495
    }
49496
 
49497
    public void setFieldValue(_Fields field, Object value) {
49498
      switch (field) {
49499
      case SUCCESS:
49500
        if (value == null) {
49501
          unsetSuccess();
49502
        } else {
49503
          setSuccess((Map<Long,Long>)value);
49504
        }
49505
        break;
49506
 
49507
      }
49508
    }
49509
 
49510
    public Object getFieldValue(_Fields field) {
49511
      switch (field) {
49512
      case SUCCESS:
49513
        return getSuccess();
49514
 
49515
      }
49516
      throw new IllegalStateException();
49517
    }
49518
 
49519
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49520
    public boolean isSet(_Fields field) {
49521
      if (field == null) {
49522
        throw new IllegalArgumentException();
49523
      }
49524
 
49525
      switch (field) {
49526
      case SUCCESS:
49527
        return isSetSuccess();
49528
      }
49529
      throw new IllegalStateException();
49530
    }
49531
 
49532
    @Override
49533
    public boolean equals(Object that) {
49534
      if (that == null)
49535
        return false;
49536
      if (that instanceof getItemWiseRiskyOrdersCount_result)
49537
        return this.equals((getItemWiseRiskyOrdersCount_result)that);
49538
      return false;
49539
    }
49540
 
49541
    public boolean equals(getItemWiseRiskyOrdersCount_result that) {
49542
      if (that == null)
49543
        return false;
49544
 
49545
      boolean this_present_success = true && this.isSetSuccess();
49546
      boolean that_present_success = true && that.isSetSuccess();
49547
      if (this_present_success || that_present_success) {
49548
        if (!(this_present_success && that_present_success))
49549
          return false;
49550
        if (!this.success.equals(that.success))
49551
          return false;
49552
      }
49553
 
49554
      return true;
49555
    }
49556
 
49557
    @Override
49558
    public int hashCode() {
49559
      return 0;
49560
    }
49561
 
49562
    public int compareTo(getItemWiseRiskyOrdersCount_result other) {
49563
      if (!getClass().equals(other.getClass())) {
49564
        return getClass().getName().compareTo(other.getClass().getName());
49565
      }
49566
 
49567
      int lastComparison = 0;
49568
      getItemWiseRiskyOrdersCount_result typedOther = (getItemWiseRiskyOrdersCount_result)other;
49569
 
49570
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
49571
      if (lastComparison != 0) {
49572
        return lastComparison;
49573
      }
49574
      if (isSetSuccess()) {
49575
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
49576
        if (lastComparison != 0) {
49577
          return lastComparison;
49578
        }
49579
      }
49580
      return 0;
49581
    }
49582
 
49583
    public _Fields fieldForId(int fieldId) {
49584
      return _Fields.findByThriftId(fieldId);
49585
    }
49586
 
49587
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49588
      org.apache.thrift.protocol.TField field;
49589
      iprot.readStructBegin();
49590
      while (true)
49591
      {
49592
        field = iprot.readFieldBegin();
49593
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49594
          break;
49595
        }
49596
        switch (field.id) {
49597
          case 0: // SUCCESS
49598
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
49599
              {
4133 chandransh 49600
                org.apache.thrift.protocol.TMap _map135 = iprot.readMapBegin();
49601
                this.success = new HashMap<Long,Long>(2*_map135.size);
49602
                for (int _i136 = 0; _i136 < _map135.size; ++_i136)
4018 chandransh 49603
                {
4133 chandransh 49604
                  long _key137; // required
49605
                  long _val138; // required
49606
                  _key137 = iprot.readI64();
49607
                  _val138 = iprot.readI64();
49608
                  this.success.put(_key137, _val138);
4018 chandransh 49609
                }
49610
                iprot.readMapEnd();
49611
              }
49612
            } else { 
49613
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49614
            }
49615
            break;
49616
          default:
49617
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49618
        }
49619
        iprot.readFieldEnd();
49620
      }
49621
      iprot.readStructEnd();
49622
      validate();
49623
    }
49624
 
49625
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49626
      oprot.writeStructBegin(STRUCT_DESC);
49627
 
49628
      if (this.isSetSuccess()) {
49629
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49630
        {
49631
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
4133 chandransh 49632
          for (Map.Entry<Long, Long> _iter139 : this.success.entrySet())
4018 chandransh 49633
          {
4133 chandransh 49634
            oprot.writeI64(_iter139.getKey());
49635
            oprot.writeI64(_iter139.getValue());
4018 chandransh 49636
          }
49637
          oprot.writeMapEnd();
49638
        }
49639
        oprot.writeFieldEnd();
49640
      }
49641
      oprot.writeFieldStop();
49642
      oprot.writeStructEnd();
49643
    }
49644
 
49645
    @Override
49646
    public String toString() {
49647
      StringBuilder sb = new StringBuilder("getItemWiseRiskyOrdersCount_result(");
49648
      boolean first = true;
49649
 
49650
      sb.append("success:");
49651
      if (this.success == null) {
49652
        sb.append("null");
49653
      } else {
49654
        sb.append(this.success);
49655
      }
49656
      first = false;
49657
      sb.append(")");
49658
      return sb.toString();
49659
    }
49660
 
49661
    public void validate() throws org.apache.thrift.TException {
49662
      // check for required fields
49663
    }
49664
 
49665
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49666
      try {
49667
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49668
      } catch (org.apache.thrift.TException te) {
49669
        throw new java.io.IOException(te);
49670
      }
49671
    }
49672
 
49673
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49674
      try {
49675
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49676
      } catch (org.apache.thrift.TException te) {
49677
        throw new java.io.IOException(te);
49678
      }
49679
    }
49680
 
49681
  }
49682
 
4246 rajveer 49683
  public static class markOrderCancellationRequestReceived_args implements org.apache.thrift.TBase<markOrderCancellationRequestReceived_args, markOrderCancellationRequestReceived_args._Fields>, java.io.Serializable, Cloneable   {
49684
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestReceived_args");
49685
 
49686
    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);
49687
 
49688
    private long orderId; // required
49689
 
49690
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49691
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49692
      ORDER_ID((short)1, "orderId");
49693
 
49694
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49695
 
49696
      static {
49697
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49698
          byName.put(field.getFieldName(), field);
49699
        }
49700
      }
49701
 
49702
      /**
49703
       * Find the _Fields constant that matches fieldId, or null if its not found.
49704
       */
49705
      public static _Fields findByThriftId(int fieldId) {
49706
        switch(fieldId) {
49707
          case 1: // ORDER_ID
49708
            return ORDER_ID;
49709
          default:
49710
            return null;
49711
        }
49712
      }
49713
 
49714
      /**
49715
       * Find the _Fields constant that matches fieldId, throwing an exception
49716
       * if it is not found.
49717
       */
49718
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49719
        _Fields fields = findByThriftId(fieldId);
49720
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49721
        return fields;
49722
      }
49723
 
49724
      /**
49725
       * Find the _Fields constant that matches name, or null if its not found.
49726
       */
49727
      public static _Fields findByName(String name) {
49728
        return byName.get(name);
49729
      }
49730
 
49731
      private final short _thriftId;
49732
      private final String _fieldName;
49733
 
49734
      _Fields(short thriftId, String fieldName) {
49735
        _thriftId = thriftId;
49736
        _fieldName = fieldName;
49737
      }
49738
 
49739
      public short getThriftFieldId() {
49740
        return _thriftId;
49741
      }
49742
 
49743
      public String getFieldName() {
49744
        return _fieldName;
49745
      }
49746
    }
49747
 
49748
    // isset id assignments
49749
    private static final int __ORDERID_ISSET_ID = 0;
49750
    private BitSet __isset_bit_vector = new BitSet(1);
49751
 
49752
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49753
    static {
49754
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49755
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49756
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49757
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49758
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestReceived_args.class, metaDataMap);
49759
    }
49760
 
49761
    public markOrderCancellationRequestReceived_args() {
49762
    }
49763
 
49764
    public markOrderCancellationRequestReceived_args(
49765
      long orderId)
49766
    {
49767
      this();
49768
      this.orderId = orderId;
49769
      setOrderIdIsSet(true);
49770
    }
49771
 
49772
    /**
49773
     * Performs a deep copy on <i>other</i>.
49774
     */
49775
    public markOrderCancellationRequestReceived_args(markOrderCancellationRequestReceived_args other) {
49776
      __isset_bit_vector.clear();
49777
      __isset_bit_vector.or(other.__isset_bit_vector);
49778
      this.orderId = other.orderId;
49779
    }
49780
 
49781
    public markOrderCancellationRequestReceived_args deepCopy() {
49782
      return new markOrderCancellationRequestReceived_args(this);
49783
    }
49784
 
49785
    @Override
49786
    public void clear() {
49787
      setOrderIdIsSet(false);
49788
      this.orderId = 0;
49789
    }
49790
 
49791
    public long getOrderId() {
49792
      return this.orderId;
49793
    }
49794
 
49795
    public void setOrderId(long orderId) {
49796
      this.orderId = orderId;
49797
      setOrderIdIsSet(true);
49798
    }
49799
 
49800
    public void unsetOrderId() {
49801
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
49802
    }
49803
 
49804
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
49805
    public boolean isSetOrderId() {
49806
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
49807
    }
49808
 
49809
    public void setOrderIdIsSet(boolean value) {
49810
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
49811
    }
49812
 
49813
    public void setFieldValue(_Fields field, Object value) {
49814
      switch (field) {
49815
      case ORDER_ID:
49816
        if (value == null) {
49817
          unsetOrderId();
49818
        } else {
49819
          setOrderId((Long)value);
49820
        }
49821
        break;
49822
 
49823
      }
49824
    }
49825
 
49826
    public Object getFieldValue(_Fields field) {
49827
      switch (field) {
49828
      case ORDER_ID:
49829
        return Long.valueOf(getOrderId());
49830
 
49831
      }
49832
      throw new IllegalStateException();
49833
    }
49834
 
49835
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49836
    public boolean isSet(_Fields field) {
49837
      if (field == null) {
49838
        throw new IllegalArgumentException();
49839
      }
49840
 
49841
      switch (field) {
49842
      case ORDER_ID:
49843
        return isSetOrderId();
49844
      }
49845
      throw new IllegalStateException();
49846
    }
49847
 
49848
    @Override
49849
    public boolean equals(Object that) {
49850
      if (that == null)
49851
        return false;
49852
      if (that instanceof markOrderCancellationRequestReceived_args)
49853
        return this.equals((markOrderCancellationRequestReceived_args)that);
49854
      return false;
49855
    }
49856
 
49857
    public boolean equals(markOrderCancellationRequestReceived_args that) {
49858
      if (that == null)
49859
        return false;
49860
 
49861
      boolean this_present_orderId = true;
49862
      boolean that_present_orderId = true;
49863
      if (this_present_orderId || that_present_orderId) {
49864
        if (!(this_present_orderId && that_present_orderId))
49865
          return false;
49866
        if (this.orderId != that.orderId)
49867
          return false;
49868
      }
49869
 
49870
      return true;
49871
    }
49872
 
49873
    @Override
49874
    public int hashCode() {
49875
      return 0;
49876
    }
49877
 
49878
    public int compareTo(markOrderCancellationRequestReceived_args other) {
49879
      if (!getClass().equals(other.getClass())) {
49880
        return getClass().getName().compareTo(other.getClass().getName());
49881
      }
49882
 
49883
      int lastComparison = 0;
49884
      markOrderCancellationRequestReceived_args typedOther = (markOrderCancellationRequestReceived_args)other;
49885
 
49886
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
49887
      if (lastComparison != 0) {
49888
        return lastComparison;
49889
      }
49890
      if (isSetOrderId()) {
49891
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
49892
        if (lastComparison != 0) {
49893
          return lastComparison;
49894
        }
49895
      }
49896
      return 0;
49897
    }
49898
 
49899
    public _Fields fieldForId(int fieldId) {
49900
      return _Fields.findByThriftId(fieldId);
49901
    }
49902
 
49903
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49904
      org.apache.thrift.protocol.TField field;
49905
      iprot.readStructBegin();
49906
      while (true)
49907
      {
49908
        field = iprot.readFieldBegin();
49909
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49910
          break;
49911
        }
49912
        switch (field.id) {
49913
          case 1: // ORDER_ID
49914
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49915
              this.orderId = iprot.readI64();
49916
              setOrderIdIsSet(true);
49917
            } else { 
49918
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49919
            }
49920
            break;
49921
          default:
49922
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49923
        }
49924
        iprot.readFieldEnd();
49925
      }
49926
      iprot.readStructEnd();
49927
      validate();
49928
    }
49929
 
49930
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49931
      validate();
49932
 
49933
      oprot.writeStructBegin(STRUCT_DESC);
49934
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
49935
      oprot.writeI64(this.orderId);
49936
      oprot.writeFieldEnd();
49937
      oprot.writeFieldStop();
49938
      oprot.writeStructEnd();
49939
    }
49940
 
49941
    @Override
49942
    public String toString() {
49943
      StringBuilder sb = new StringBuilder("markOrderCancellationRequestReceived_args(");
49944
      boolean first = true;
49945
 
49946
      sb.append("orderId:");
49947
      sb.append(this.orderId);
49948
      first = false;
49949
      sb.append(")");
49950
      return sb.toString();
49951
    }
49952
 
49953
    public void validate() throws org.apache.thrift.TException {
49954
      // check for required fields
49955
    }
49956
 
49957
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49958
      try {
49959
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49960
      } catch (org.apache.thrift.TException te) {
49961
        throw new java.io.IOException(te);
49962
      }
49963
    }
49964
 
49965
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49966
      try {
49967
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49968
      } catch (org.apache.thrift.TException te) {
49969
        throw new java.io.IOException(te);
49970
      }
49971
    }
49972
 
49973
  }
49974
 
49975
  public static class markOrderCancellationRequestReceived_result implements org.apache.thrift.TBase<markOrderCancellationRequestReceived_result, markOrderCancellationRequestReceived_result._Fields>, java.io.Serializable, Cloneable   {
49976
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestReceived_result");
49977
 
49978
    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);
49979
 
49980
    private TransactionServiceException ex; // required
49981
 
49982
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49983
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49984
      EX((short)1, "ex");
49985
 
49986
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49987
 
49988
      static {
49989
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49990
          byName.put(field.getFieldName(), field);
49991
        }
49992
      }
49993
 
49994
      /**
49995
       * Find the _Fields constant that matches fieldId, or null if its not found.
49996
       */
49997
      public static _Fields findByThriftId(int fieldId) {
49998
        switch(fieldId) {
49999
          case 1: // EX
50000
            return EX;
50001
          default:
50002
            return null;
50003
        }
50004
      }
50005
 
50006
      /**
50007
       * Find the _Fields constant that matches fieldId, throwing an exception
50008
       * if it is not found.
50009
       */
50010
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50011
        _Fields fields = findByThriftId(fieldId);
50012
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50013
        return fields;
50014
      }
50015
 
50016
      /**
50017
       * Find the _Fields constant that matches name, or null if its not found.
50018
       */
50019
      public static _Fields findByName(String name) {
50020
        return byName.get(name);
50021
      }
50022
 
50023
      private final short _thriftId;
50024
      private final String _fieldName;
50025
 
50026
      _Fields(short thriftId, String fieldName) {
50027
        _thriftId = thriftId;
50028
        _fieldName = fieldName;
50029
      }
50030
 
50031
      public short getThriftFieldId() {
50032
        return _thriftId;
50033
      }
50034
 
50035
      public String getFieldName() {
50036
        return _fieldName;
50037
      }
50038
    }
50039
 
50040
    // isset id assignments
50041
 
50042
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50043
    static {
50044
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50045
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50046
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
50047
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50048
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestReceived_result.class, metaDataMap);
50049
    }
50050
 
50051
    public markOrderCancellationRequestReceived_result() {
50052
    }
50053
 
50054
    public markOrderCancellationRequestReceived_result(
50055
      TransactionServiceException ex)
50056
    {
50057
      this();
50058
      this.ex = ex;
50059
    }
50060
 
50061
    /**
50062
     * Performs a deep copy on <i>other</i>.
50063
     */
50064
    public markOrderCancellationRequestReceived_result(markOrderCancellationRequestReceived_result other) {
50065
      if (other.isSetEx()) {
50066
        this.ex = new TransactionServiceException(other.ex);
50067
      }
50068
    }
50069
 
50070
    public markOrderCancellationRequestReceived_result deepCopy() {
50071
      return new markOrderCancellationRequestReceived_result(this);
50072
    }
50073
 
50074
    @Override
50075
    public void clear() {
50076
      this.ex = null;
50077
    }
50078
 
50079
    public TransactionServiceException getEx() {
50080
      return this.ex;
50081
    }
50082
 
50083
    public void setEx(TransactionServiceException ex) {
50084
      this.ex = ex;
50085
    }
50086
 
50087
    public void unsetEx() {
50088
      this.ex = null;
50089
    }
50090
 
50091
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
50092
    public boolean isSetEx() {
50093
      return this.ex != null;
50094
    }
50095
 
50096
    public void setExIsSet(boolean value) {
50097
      if (!value) {
50098
        this.ex = null;
50099
      }
50100
    }
50101
 
50102
    public void setFieldValue(_Fields field, Object value) {
50103
      switch (field) {
50104
      case EX:
50105
        if (value == null) {
50106
          unsetEx();
50107
        } else {
50108
          setEx((TransactionServiceException)value);
50109
        }
50110
        break;
50111
 
50112
      }
50113
    }
50114
 
50115
    public Object getFieldValue(_Fields field) {
50116
      switch (field) {
50117
      case EX:
50118
        return getEx();
50119
 
50120
      }
50121
      throw new IllegalStateException();
50122
    }
50123
 
50124
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50125
    public boolean isSet(_Fields field) {
50126
      if (field == null) {
50127
        throw new IllegalArgumentException();
50128
      }
50129
 
50130
      switch (field) {
50131
      case EX:
50132
        return isSetEx();
50133
      }
50134
      throw new IllegalStateException();
50135
    }
50136
 
50137
    @Override
50138
    public boolean equals(Object that) {
50139
      if (that == null)
50140
        return false;
50141
      if (that instanceof markOrderCancellationRequestReceived_result)
50142
        return this.equals((markOrderCancellationRequestReceived_result)that);
50143
      return false;
50144
    }
50145
 
50146
    public boolean equals(markOrderCancellationRequestReceived_result that) {
50147
      if (that == null)
50148
        return false;
50149
 
50150
      boolean this_present_ex = true && this.isSetEx();
50151
      boolean that_present_ex = true && that.isSetEx();
50152
      if (this_present_ex || that_present_ex) {
50153
        if (!(this_present_ex && that_present_ex))
50154
          return false;
50155
        if (!this.ex.equals(that.ex))
50156
          return false;
50157
      }
50158
 
50159
      return true;
50160
    }
50161
 
50162
    @Override
50163
    public int hashCode() {
50164
      return 0;
50165
    }
50166
 
50167
    public int compareTo(markOrderCancellationRequestReceived_result other) {
50168
      if (!getClass().equals(other.getClass())) {
50169
        return getClass().getName().compareTo(other.getClass().getName());
50170
      }
50171
 
50172
      int lastComparison = 0;
50173
      markOrderCancellationRequestReceived_result typedOther = (markOrderCancellationRequestReceived_result)other;
50174
 
50175
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
50176
      if (lastComparison != 0) {
50177
        return lastComparison;
50178
      }
50179
      if (isSetEx()) {
50180
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
50181
        if (lastComparison != 0) {
50182
          return lastComparison;
50183
        }
50184
      }
50185
      return 0;
50186
    }
50187
 
50188
    public _Fields fieldForId(int fieldId) {
50189
      return _Fields.findByThriftId(fieldId);
50190
    }
50191
 
50192
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50193
      org.apache.thrift.protocol.TField field;
50194
      iprot.readStructBegin();
50195
      while (true)
50196
      {
50197
        field = iprot.readFieldBegin();
50198
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50199
          break;
50200
        }
50201
        switch (field.id) {
50202
          case 1: // EX
50203
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
50204
              this.ex = new TransactionServiceException();
50205
              this.ex.read(iprot);
50206
            } else { 
50207
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50208
            }
50209
            break;
50210
          default:
50211
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50212
        }
50213
        iprot.readFieldEnd();
50214
      }
50215
      iprot.readStructEnd();
50216
      validate();
50217
    }
50218
 
50219
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50220
      oprot.writeStructBegin(STRUCT_DESC);
50221
 
50222
      if (this.isSetEx()) {
50223
        oprot.writeFieldBegin(EX_FIELD_DESC);
50224
        this.ex.write(oprot);
50225
        oprot.writeFieldEnd();
50226
      }
50227
      oprot.writeFieldStop();
50228
      oprot.writeStructEnd();
50229
    }
50230
 
50231
    @Override
50232
    public String toString() {
50233
      StringBuilder sb = new StringBuilder("markOrderCancellationRequestReceived_result(");
50234
      boolean first = true;
50235
 
50236
      sb.append("ex:");
50237
      if (this.ex == null) {
50238
        sb.append("null");
50239
      } else {
50240
        sb.append(this.ex);
50241
      }
50242
      first = false;
50243
      sb.append(")");
50244
      return sb.toString();
50245
    }
50246
 
50247
    public void validate() throws org.apache.thrift.TException {
50248
      // check for required fields
50249
    }
50250
 
50251
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50252
      try {
50253
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50254
      } catch (org.apache.thrift.TException te) {
50255
        throw new java.io.IOException(te);
50256
      }
50257
    }
50258
 
50259
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50260
      try {
50261
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50262
      } catch (org.apache.thrift.TException te) {
50263
        throw new java.io.IOException(te);
50264
      }
50265
    }
50266
 
50267
  }
50268
 
50269
  public static class markOrderCancellationRequestConfirmed_args implements org.apache.thrift.TBase<markOrderCancellationRequestConfirmed_args, markOrderCancellationRequestConfirmed_args._Fields>, java.io.Serializable, Cloneable   {
50270
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestConfirmed_args");
50271
 
50272
    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);
50273
 
50274
    private long orderId; // required
50275
 
50276
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50277
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50278
      ORDER_ID((short)1, "orderId");
50279
 
50280
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50281
 
50282
      static {
50283
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50284
          byName.put(field.getFieldName(), field);
50285
        }
50286
      }
50287
 
50288
      /**
50289
       * Find the _Fields constant that matches fieldId, or null if its not found.
50290
       */
50291
      public static _Fields findByThriftId(int fieldId) {
50292
        switch(fieldId) {
50293
          case 1: // ORDER_ID
50294
            return ORDER_ID;
50295
          default:
50296
            return null;
50297
        }
50298
      }
50299
 
50300
      /**
50301
       * Find the _Fields constant that matches fieldId, throwing an exception
50302
       * if it is not found.
50303
       */
50304
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50305
        _Fields fields = findByThriftId(fieldId);
50306
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50307
        return fields;
50308
      }
50309
 
50310
      /**
50311
       * Find the _Fields constant that matches name, or null if its not found.
50312
       */
50313
      public static _Fields findByName(String name) {
50314
        return byName.get(name);
50315
      }
50316
 
50317
      private final short _thriftId;
50318
      private final String _fieldName;
50319
 
50320
      _Fields(short thriftId, String fieldName) {
50321
        _thriftId = thriftId;
50322
        _fieldName = fieldName;
50323
      }
50324
 
50325
      public short getThriftFieldId() {
50326
        return _thriftId;
50327
      }
50328
 
50329
      public String getFieldName() {
50330
        return _fieldName;
50331
      }
50332
    }
50333
 
50334
    // isset id assignments
50335
    private static final int __ORDERID_ISSET_ID = 0;
50336
    private BitSet __isset_bit_vector = new BitSet(1);
50337
 
50338
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50339
    static {
50340
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50341
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50342
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50343
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50344
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestConfirmed_args.class, metaDataMap);
50345
    }
50346
 
50347
    public markOrderCancellationRequestConfirmed_args() {
50348
    }
50349
 
50350
    public markOrderCancellationRequestConfirmed_args(
50351
      long orderId)
50352
    {
50353
      this();
50354
      this.orderId = orderId;
50355
      setOrderIdIsSet(true);
50356
    }
50357
 
50358
    /**
50359
     * Performs a deep copy on <i>other</i>.
50360
     */
50361
    public markOrderCancellationRequestConfirmed_args(markOrderCancellationRequestConfirmed_args other) {
50362
      __isset_bit_vector.clear();
50363
      __isset_bit_vector.or(other.__isset_bit_vector);
50364
      this.orderId = other.orderId;
50365
    }
50366
 
50367
    public markOrderCancellationRequestConfirmed_args deepCopy() {
50368
      return new markOrderCancellationRequestConfirmed_args(this);
50369
    }
50370
 
50371
    @Override
50372
    public void clear() {
50373
      setOrderIdIsSet(false);
50374
      this.orderId = 0;
50375
    }
50376
 
50377
    public long getOrderId() {
50378
      return this.orderId;
50379
    }
50380
 
50381
    public void setOrderId(long orderId) {
50382
      this.orderId = orderId;
50383
      setOrderIdIsSet(true);
50384
    }
50385
 
50386
    public void unsetOrderId() {
50387
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
50388
    }
50389
 
50390
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
50391
    public boolean isSetOrderId() {
50392
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
50393
    }
50394
 
50395
    public void setOrderIdIsSet(boolean value) {
50396
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
50397
    }
50398
 
50399
    public void setFieldValue(_Fields field, Object value) {
50400
      switch (field) {
50401
      case ORDER_ID:
50402
        if (value == null) {
50403
          unsetOrderId();
50404
        } else {
50405
          setOrderId((Long)value);
50406
        }
50407
        break;
50408
 
50409
      }
50410
    }
50411
 
50412
    public Object getFieldValue(_Fields field) {
50413
      switch (field) {
50414
      case ORDER_ID:
50415
        return Long.valueOf(getOrderId());
50416
 
50417
      }
50418
      throw new IllegalStateException();
50419
    }
50420
 
50421
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50422
    public boolean isSet(_Fields field) {
50423
      if (field == null) {
50424
        throw new IllegalArgumentException();
50425
      }
50426
 
50427
      switch (field) {
50428
      case ORDER_ID:
50429
        return isSetOrderId();
50430
      }
50431
      throw new IllegalStateException();
50432
    }
50433
 
50434
    @Override
50435
    public boolean equals(Object that) {
50436
      if (that == null)
50437
        return false;
50438
      if (that instanceof markOrderCancellationRequestConfirmed_args)
50439
        return this.equals((markOrderCancellationRequestConfirmed_args)that);
50440
      return false;
50441
    }
50442
 
50443
    public boolean equals(markOrderCancellationRequestConfirmed_args that) {
50444
      if (that == null)
50445
        return false;
50446
 
50447
      boolean this_present_orderId = true;
50448
      boolean that_present_orderId = true;
50449
      if (this_present_orderId || that_present_orderId) {
50450
        if (!(this_present_orderId && that_present_orderId))
50451
          return false;
50452
        if (this.orderId != that.orderId)
50453
          return false;
50454
      }
50455
 
50456
      return true;
50457
    }
50458
 
50459
    @Override
50460
    public int hashCode() {
50461
      return 0;
50462
    }
50463
 
50464
    public int compareTo(markOrderCancellationRequestConfirmed_args other) {
50465
      if (!getClass().equals(other.getClass())) {
50466
        return getClass().getName().compareTo(other.getClass().getName());
50467
      }
50468
 
50469
      int lastComparison = 0;
50470
      markOrderCancellationRequestConfirmed_args typedOther = (markOrderCancellationRequestConfirmed_args)other;
50471
 
50472
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
50473
      if (lastComparison != 0) {
50474
        return lastComparison;
50475
      }
50476
      if (isSetOrderId()) {
50477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
50478
        if (lastComparison != 0) {
50479
          return lastComparison;
50480
        }
50481
      }
50482
      return 0;
50483
    }
50484
 
50485
    public _Fields fieldForId(int fieldId) {
50486
      return _Fields.findByThriftId(fieldId);
50487
    }
50488
 
50489
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50490
      org.apache.thrift.protocol.TField field;
50491
      iprot.readStructBegin();
50492
      while (true)
50493
      {
50494
        field = iprot.readFieldBegin();
50495
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50496
          break;
50497
        }
50498
        switch (field.id) {
50499
          case 1: // ORDER_ID
50500
            if (field.type == org.apache.thrift.protocol.TType.I64) {
50501
              this.orderId = iprot.readI64();
50502
              setOrderIdIsSet(true);
50503
            } else { 
50504
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50505
            }
50506
            break;
50507
          default:
50508
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50509
        }
50510
        iprot.readFieldEnd();
50511
      }
50512
      iprot.readStructEnd();
50513
      validate();
50514
    }
50515
 
50516
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50517
      validate();
50518
 
50519
      oprot.writeStructBegin(STRUCT_DESC);
50520
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
50521
      oprot.writeI64(this.orderId);
50522
      oprot.writeFieldEnd();
50523
      oprot.writeFieldStop();
50524
      oprot.writeStructEnd();
50525
    }
50526
 
50527
    @Override
50528
    public String toString() {
50529
      StringBuilder sb = new StringBuilder("markOrderCancellationRequestConfirmed_args(");
50530
      boolean first = true;
50531
 
50532
      sb.append("orderId:");
50533
      sb.append(this.orderId);
50534
      first = false;
50535
      sb.append(")");
50536
      return sb.toString();
50537
    }
50538
 
50539
    public void validate() throws org.apache.thrift.TException {
50540
      // check for required fields
50541
    }
50542
 
50543
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50544
      try {
50545
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50546
      } catch (org.apache.thrift.TException te) {
50547
        throw new java.io.IOException(te);
50548
      }
50549
    }
50550
 
50551
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50552
      try {
50553
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50554
      } catch (org.apache.thrift.TException te) {
50555
        throw new java.io.IOException(te);
50556
      }
50557
    }
50558
 
50559
  }
50560
 
50561
  public static class markOrderCancellationRequestConfirmed_result implements org.apache.thrift.TBase<markOrderCancellationRequestConfirmed_result, markOrderCancellationRequestConfirmed_result._Fields>, java.io.Serializable, Cloneable   {
50562
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestConfirmed_result");
50563
 
50564
    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);
50565
 
50566
    private TransactionServiceException ex; // required
50567
 
50568
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50569
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50570
      EX((short)1, "ex");
50571
 
50572
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50573
 
50574
      static {
50575
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50576
          byName.put(field.getFieldName(), field);
50577
        }
50578
      }
50579
 
50580
      /**
50581
       * Find the _Fields constant that matches fieldId, or null if its not found.
50582
       */
50583
      public static _Fields findByThriftId(int fieldId) {
50584
        switch(fieldId) {
50585
          case 1: // EX
50586
            return EX;
50587
          default:
50588
            return null;
50589
        }
50590
      }
50591
 
50592
      /**
50593
       * Find the _Fields constant that matches fieldId, throwing an exception
50594
       * if it is not found.
50595
       */
50596
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50597
        _Fields fields = findByThriftId(fieldId);
50598
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50599
        return fields;
50600
      }
50601
 
50602
      /**
50603
       * Find the _Fields constant that matches name, or null if its not found.
50604
       */
50605
      public static _Fields findByName(String name) {
50606
        return byName.get(name);
50607
      }
50608
 
50609
      private final short _thriftId;
50610
      private final String _fieldName;
50611
 
50612
      _Fields(short thriftId, String fieldName) {
50613
        _thriftId = thriftId;
50614
        _fieldName = fieldName;
50615
      }
50616
 
50617
      public short getThriftFieldId() {
50618
        return _thriftId;
50619
      }
50620
 
50621
      public String getFieldName() {
50622
        return _fieldName;
50623
      }
50624
    }
50625
 
50626
    // isset id assignments
50627
 
50628
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50629
    static {
50630
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50631
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50632
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
50633
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50634
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestConfirmed_result.class, metaDataMap);
50635
    }
50636
 
50637
    public markOrderCancellationRequestConfirmed_result() {
50638
    }
50639
 
50640
    public markOrderCancellationRequestConfirmed_result(
50641
      TransactionServiceException ex)
50642
    {
50643
      this();
50644
      this.ex = ex;
50645
    }
50646
 
50647
    /**
50648
     * Performs a deep copy on <i>other</i>.
50649
     */
50650
    public markOrderCancellationRequestConfirmed_result(markOrderCancellationRequestConfirmed_result other) {
50651
      if (other.isSetEx()) {
50652
        this.ex = new TransactionServiceException(other.ex);
50653
      }
50654
    }
50655
 
50656
    public markOrderCancellationRequestConfirmed_result deepCopy() {
50657
      return new markOrderCancellationRequestConfirmed_result(this);
50658
    }
50659
 
50660
    @Override
50661
    public void clear() {
50662
      this.ex = null;
50663
    }
50664
 
50665
    public TransactionServiceException getEx() {
50666
      return this.ex;
50667
    }
50668
 
50669
    public void setEx(TransactionServiceException ex) {
50670
      this.ex = ex;
50671
    }
50672
 
50673
    public void unsetEx() {
50674
      this.ex = null;
50675
    }
50676
 
50677
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
50678
    public boolean isSetEx() {
50679
      return this.ex != null;
50680
    }
50681
 
50682
    public void setExIsSet(boolean value) {
50683
      if (!value) {
50684
        this.ex = null;
50685
      }
50686
    }
50687
 
50688
    public void setFieldValue(_Fields field, Object value) {
50689
      switch (field) {
50690
      case EX:
50691
        if (value == null) {
50692
          unsetEx();
50693
        } else {
50694
          setEx((TransactionServiceException)value);
50695
        }
50696
        break;
50697
 
50698
      }
50699
    }
50700
 
50701
    public Object getFieldValue(_Fields field) {
50702
      switch (field) {
50703
      case EX:
50704
        return getEx();
50705
 
50706
      }
50707
      throw new IllegalStateException();
50708
    }
50709
 
50710
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50711
    public boolean isSet(_Fields field) {
50712
      if (field == null) {
50713
        throw new IllegalArgumentException();
50714
      }
50715
 
50716
      switch (field) {
50717
      case EX:
50718
        return isSetEx();
50719
      }
50720
      throw new IllegalStateException();
50721
    }
50722
 
50723
    @Override
50724
    public boolean equals(Object that) {
50725
      if (that == null)
50726
        return false;
50727
      if (that instanceof markOrderCancellationRequestConfirmed_result)
50728
        return this.equals((markOrderCancellationRequestConfirmed_result)that);
50729
      return false;
50730
    }
50731
 
50732
    public boolean equals(markOrderCancellationRequestConfirmed_result that) {
50733
      if (that == null)
50734
        return false;
50735
 
50736
      boolean this_present_ex = true && this.isSetEx();
50737
      boolean that_present_ex = true && that.isSetEx();
50738
      if (this_present_ex || that_present_ex) {
50739
        if (!(this_present_ex && that_present_ex))
50740
          return false;
50741
        if (!this.ex.equals(that.ex))
50742
          return false;
50743
      }
50744
 
50745
      return true;
50746
    }
50747
 
50748
    @Override
50749
    public int hashCode() {
50750
      return 0;
50751
    }
50752
 
50753
    public int compareTo(markOrderCancellationRequestConfirmed_result other) {
50754
      if (!getClass().equals(other.getClass())) {
50755
        return getClass().getName().compareTo(other.getClass().getName());
50756
      }
50757
 
50758
      int lastComparison = 0;
50759
      markOrderCancellationRequestConfirmed_result typedOther = (markOrderCancellationRequestConfirmed_result)other;
50760
 
50761
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
50762
      if (lastComparison != 0) {
50763
        return lastComparison;
50764
      }
50765
      if (isSetEx()) {
50766
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
50767
        if (lastComparison != 0) {
50768
          return lastComparison;
50769
        }
50770
      }
50771
      return 0;
50772
    }
50773
 
50774
    public _Fields fieldForId(int fieldId) {
50775
      return _Fields.findByThriftId(fieldId);
50776
    }
50777
 
50778
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50779
      org.apache.thrift.protocol.TField field;
50780
      iprot.readStructBegin();
50781
      while (true)
50782
      {
50783
        field = iprot.readFieldBegin();
50784
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50785
          break;
50786
        }
50787
        switch (field.id) {
50788
          case 1: // EX
50789
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
50790
              this.ex = new TransactionServiceException();
50791
              this.ex.read(iprot);
50792
            } else { 
50793
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50794
            }
50795
            break;
50796
          default:
50797
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50798
        }
50799
        iprot.readFieldEnd();
50800
      }
50801
      iprot.readStructEnd();
50802
      validate();
50803
    }
50804
 
50805
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50806
      oprot.writeStructBegin(STRUCT_DESC);
50807
 
50808
      if (this.isSetEx()) {
50809
        oprot.writeFieldBegin(EX_FIELD_DESC);
50810
        this.ex.write(oprot);
50811
        oprot.writeFieldEnd();
50812
      }
50813
      oprot.writeFieldStop();
50814
      oprot.writeStructEnd();
50815
    }
50816
 
50817
    @Override
50818
    public String toString() {
50819
      StringBuilder sb = new StringBuilder("markOrderCancellationRequestConfirmed_result(");
50820
      boolean first = true;
50821
 
50822
      sb.append("ex:");
50823
      if (this.ex == null) {
50824
        sb.append("null");
50825
      } else {
50826
        sb.append(this.ex);
50827
      }
50828
      first = false;
50829
      sb.append(")");
50830
      return sb.toString();
50831
    }
50832
 
50833
    public void validate() throws org.apache.thrift.TException {
50834
      // check for required fields
50835
    }
50836
 
50837
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50838
      try {
50839
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50840
      } catch (org.apache.thrift.TException te) {
50841
        throw new java.io.IOException(te);
50842
      }
50843
    }
50844
 
50845
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50846
      try {
50847
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50848
      } catch (org.apache.thrift.TException te) {
50849
        throw new java.io.IOException(te);
50850
      }
50851
    }
50852
 
50853
  }
50854
 
50855
  public static class markOrderCancellationRequestDenied_args implements org.apache.thrift.TBase<markOrderCancellationRequestDenied_args, markOrderCancellationRequestDenied_args._Fields>, java.io.Serializable, Cloneable   {
50856
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestDenied_args");
50857
 
50858
    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);
50859
 
50860
    private long orderId; // required
50861
 
50862
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50863
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50864
      ORDER_ID((short)1, "orderId");
50865
 
50866
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50867
 
50868
      static {
50869
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50870
          byName.put(field.getFieldName(), field);
50871
        }
50872
      }
50873
 
50874
      /**
50875
       * Find the _Fields constant that matches fieldId, or null if its not found.
50876
       */
50877
      public static _Fields findByThriftId(int fieldId) {
50878
        switch(fieldId) {
50879
          case 1: // ORDER_ID
50880
            return ORDER_ID;
50881
          default:
50882
            return null;
50883
        }
50884
      }
50885
 
50886
      /**
50887
       * Find the _Fields constant that matches fieldId, throwing an exception
50888
       * if it is not found.
50889
       */
50890
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50891
        _Fields fields = findByThriftId(fieldId);
50892
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50893
        return fields;
50894
      }
50895
 
50896
      /**
50897
       * Find the _Fields constant that matches name, or null if its not found.
50898
       */
50899
      public static _Fields findByName(String name) {
50900
        return byName.get(name);
50901
      }
50902
 
50903
      private final short _thriftId;
50904
      private final String _fieldName;
50905
 
50906
      _Fields(short thriftId, String fieldName) {
50907
        _thriftId = thriftId;
50908
        _fieldName = fieldName;
50909
      }
50910
 
50911
      public short getThriftFieldId() {
50912
        return _thriftId;
50913
      }
50914
 
50915
      public String getFieldName() {
50916
        return _fieldName;
50917
      }
50918
    }
50919
 
50920
    // isset id assignments
50921
    private static final int __ORDERID_ISSET_ID = 0;
50922
    private BitSet __isset_bit_vector = new BitSet(1);
50923
 
50924
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50925
    static {
50926
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50927
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50928
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50929
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50930
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestDenied_args.class, metaDataMap);
50931
    }
50932
 
50933
    public markOrderCancellationRequestDenied_args() {
50934
    }
50935
 
50936
    public markOrderCancellationRequestDenied_args(
50937
      long orderId)
50938
    {
50939
      this();
50940
      this.orderId = orderId;
50941
      setOrderIdIsSet(true);
50942
    }
50943
 
50944
    /**
50945
     * Performs a deep copy on <i>other</i>.
50946
     */
50947
    public markOrderCancellationRequestDenied_args(markOrderCancellationRequestDenied_args other) {
50948
      __isset_bit_vector.clear();
50949
      __isset_bit_vector.or(other.__isset_bit_vector);
50950
      this.orderId = other.orderId;
50951
    }
50952
 
50953
    public markOrderCancellationRequestDenied_args deepCopy() {
50954
      return new markOrderCancellationRequestDenied_args(this);
50955
    }
50956
 
50957
    @Override
50958
    public void clear() {
50959
      setOrderIdIsSet(false);
50960
      this.orderId = 0;
50961
    }
50962
 
50963
    public long getOrderId() {
50964
      return this.orderId;
50965
    }
50966
 
50967
    public void setOrderId(long orderId) {
50968
      this.orderId = orderId;
50969
      setOrderIdIsSet(true);
50970
    }
50971
 
50972
    public void unsetOrderId() {
50973
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
50974
    }
50975
 
50976
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
50977
    public boolean isSetOrderId() {
50978
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
50979
    }
50980
 
50981
    public void setOrderIdIsSet(boolean value) {
50982
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
50983
    }
50984
 
50985
    public void setFieldValue(_Fields field, Object value) {
50986
      switch (field) {
50987
      case ORDER_ID:
50988
        if (value == null) {
50989
          unsetOrderId();
50990
        } else {
50991
          setOrderId((Long)value);
50992
        }
50993
        break;
50994
 
50995
      }
50996
    }
50997
 
50998
    public Object getFieldValue(_Fields field) {
50999
      switch (field) {
51000
      case ORDER_ID:
51001
        return Long.valueOf(getOrderId());
51002
 
51003
      }
51004
      throw new IllegalStateException();
51005
    }
51006
 
51007
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51008
    public boolean isSet(_Fields field) {
51009
      if (field == null) {
51010
        throw new IllegalArgumentException();
51011
      }
51012
 
51013
      switch (field) {
51014
      case ORDER_ID:
51015
        return isSetOrderId();
51016
      }
51017
      throw new IllegalStateException();
51018
    }
51019
 
51020
    @Override
51021
    public boolean equals(Object that) {
51022
      if (that == null)
51023
        return false;
51024
      if (that instanceof markOrderCancellationRequestDenied_args)
51025
        return this.equals((markOrderCancellationRequestDenied_args)that);
51026
      return false;
51027
    }
51028
 
51029
    public boolean equals(markOrderCancellationRequestDenied_args that) {
51030
      if (that == null)
51031
        return false;
51032
 
51033
      boolean this_present_orderId = true;
51034
      boolean that_present_orderId = true;
51035
      if (this_present_orderId || that_present_orderId) {
51036
        if (!(this_present_orderId && that_present_orderId))
51037
          return false;
51038
        if (this.orderId != that.orderId)
51039
          return false;
51040
      }
51041
 
51042
      return true;
51043
    }
51044
 
51045
    @Override
51046
    public int hashCode() {
51047
      return 0;
51048
    }
51049
 
51050
    public int compareTo(markOrderCancellationRequestDenied_args other) {
51051
      if (!getClass().equals(other.getClass())) {
51052
        return getClass().getName().compareTo(other.getClass().getName());
51053
      }
51054
 
51055
      int lastComparison = 0;
51056
      markOrderCancellationRequestDenied_args typedOther = (markOrderCancellationRequestDenied_args)other;
51057
 
51058
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
51059
      if (lastComparison != 0) {
51060
        return lastComparison;
51061
      }
51062
      if (isSetOrderId()) {
51063
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
51064
        if (lastComparison != 0) {
51065
          return lastComparison;
51066
        }
51067
      }
51068
      return 0;
51069
    }
51070
 
51071
    public _Fields fieldForId(int fieldId) {
51072
      return _Fields.findByThriftId(fieldId);
51073
    }
51074
 
51075
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51076
      org.apache.thrift.protocol.TField field;
51077
      iprot.readStructBegin();
51078
      while (true)
51079
      {
51080
        field = iprot.readFieldBegin();
51081
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51082
          break;
51083
        }
51084
        switch (field.id) {
51085
          case 1: // ORDER_ID
51086
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51087
              this.orderId = iprot.readI64();
51088
              setOrderIdIsSet(true);
51089
            } else { 
51090
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51091
            }
51092
            break;
51093
          default:
51094
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51095
        }
51096
        iprot.readFieldEnd();
51097
      }
51098
      iprot.readStructEnd();
51099
      validate();
51100
    }
51101
 
51102
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51103
      validate();
51104
 
51105
      oprot.writeStructBegin(STRUCT_DESC);
51106
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
51107
      oprot.writeI64(this.orderId);
51108
      oprot.writeFieldEnd();
51109
      oprot.writeFieldStop();
51110
      oprot.writeStructEnd();
51111
    }
51112
 
51113
    @Override
51114
    public String toString() {
51115
      StringBuilder sb = new StringBuilder("markOrderCancellationRequestDenied_args(");
51116
      boolean first = true;
51117
 
51118
      sb.append("orderId:");
51119
      sb.append(this.orderId);
51120
      first = false;
51121
      sb.append(")");
51122
      return sb.toString();
51123
    }
51124
 
51125
    public void validate() throws org.apache.thrift.TException {
51126
      // check for required fields
51127
    }
51128
 
51129
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51130
      try {
51131
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51132
      } catch (org.apache.thrift.TException te) {
51133
        throw new java.io.IOException(te);
51134
      }
51135
    }
51136
 
51137
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51138
      try {
51139
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51140
      } catch (org.apache.thrift.TException te) {
51141
        throw new java.io.IOException(te);
51142
      }
51143
    }
51144
 
51145
  }
51146
 
51147
  public static class markOrderCancellationRequestDenied_result implements org.apache.thrift.TBase<markOrderCancellationRequestDenied_result, markOrderCancellationRequestDenied_result._Fields>, java.io.Serializable, Cloneable   {
51148
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestDenied_result");
51149
 
51150
    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);
51151
 
51152
    private TransactionServiceException ex; // required
51153
 
51154
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51155
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51156
      EX((short)1, "ex");
51157
 
51158
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51159
 
51160
      static {
51161
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51162
          byName.put(field.getFieldName(), field);
51163
        }
51164
      }
51165
 
51166
      /**
51167
       * Find the _Fields constant that matches fieldId, or null if its not found.
51168
       */
51169
      public static _Fields findByThriftId(int fieldId) {
51170
        switch(fieldId) {
51171
          case 1: // EX
51172
            return EX;
51173
          default:
51174
            return null;
51175
        }
51176
      }
51177
 
51178
      /**
51179
       * Find the _Fields constant that matches fieldId, throwing an exception
51180
       * if it is not found.
51181
       */
51182
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51183
        _Fields fields = findByThriftId(fieldId);
51184
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51185
        return fields;
51186
      }
51187
 
51188
      /**
51189
       * Find the _Fields constant that matches name, or null if its not found.
51190
       */
51191
      public static _Fields findByName(String name) {
51192
        return byName.get(name);
51193
      }
51194
 
51195
      private final short _thriftId;
51196
      private final String _fieldName;
51197
 
51198
      _Fields(short thriftId, String fieldName) {
51199
        _thriftId = thriftId;
51200
        _fieldName = fieldName;
51201
      }
51202
 
51203
      public short getThriftFieldId() {
51204
        return _thriftId;
51205
      }
51206
 
51207
      public String getFieldName() {
51208
        return _fieldName;
51209
      }
51210
    }
51211
 
51212
    // isset id assignments
51213
 
51214
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51215
    static {
51216
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51217
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
51219
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51220
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestDenied_result.class, metaDataMap);
51221
    }
51222
 
51223
    public markOrderCancellationRequestDenied_result() {
51224
    }
51225
 
51226
    public markOrderCancellationRequestDenied_result(
51227
      TransactionServiceException ex)
51228
    {
51229
      this();
51230
      this.ex = ex;
51231
    }
51232
 
51233
    /**
51234
     * Performs a deep copy on <i>other</i>.
51235
     */
51236
    public markOrderCancellationRequestDenied_result(markOrderCancellationRequestDenied_result other) {
51237
      if (other.isSetEx()) {
51238
        this.ex = new TransactionServiceException(other.ex);
51239
      }
51240
    }
51241
 
51242
    public markOrderCancellationRequestDenied_result deepCopy() {
51243
      return new markOrderCancellationRequestDenied_result(this);
51244
    }
51245
 
51246
    @Override
51247
    public void clear() {
51248
      this.ex = null;
51249
    }
51250
 
51251
    public TransactionServiceException getEx() {
51252
      return this.ex;
51253
    }
51254
 
51255
    public void setEx(TransactionServiceException ex) {
51256
      this.ex = ex;
51257
    }
51258
 
51259
    public void unsetEx() {
51260
      this.ex = null;
51261
    }
51262
 
51263
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
51264
    public boolean isSetEx() {
51265
      return this.ex != null;
51266
    }
51267
 
51268
    public void setExIsSet(boolean value) {
51269
      if (!value) {
51270
        this.ex = null;
51271
      }
51272
    }
51273
 
51274
    public void setFieldValue(_Fields field, Object value) {
51275
      switch (field) {
51276
      case EX:
51277
        if (value == null) {
51278
          unsetEx();
51279
        } else {
51280
          setEx((TransactionServiceException)value);
51281
        }
51282
        break;
51283
 
51284
      }
51285
    }
51286
 
51287
    public Object getFieldValue(_Fields field) {
51288
      switch (field) {
51289
      case EX:
51290
        return getEx();
51291
 
51292
      }
51293
      throw new IllegalStateException();
51294
    }
51295
 
51296
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51297
    public boolean isSet(_Fields field) {
51298
      if (field == null) {
51299
        throw new IllegalArgumentException();
51300
      }
51301
 
51302
      switch (field) {
51303
      case EX:
51304
        return isSetEx();
51305
      }
51306
      throw new IllegalStateException();
51307
    }
51308
 
51309
    @Override
51310
    public boolean equals(Object that) {
51311
      if (that == null)
51312
        return false;
51313
      if (that instanceof markOrderCancellationRequestDenied_result)
51314
        return this.equals((markOrderCancellationRequestDenied_result)that);
51315
      return false;
51316
    }
51317
 
51318
    public boolean equals(markOrderCancellationRequestDenied_result that) {
51319
      if (that == null)
51320
        return false;
51321
 
51322
      boolean this_present_ex = true && this.isSetEx();
51323
      boolean that_present_ex = true && that.isSetEx();
51324
      if (this_present_ex || that_present_ex) {
51325
        if (!(this_present_ex && that_present_ex))
51326
          return false;
51327
        if (!this.ex.equals(that.ex))
51328
          return false;
51329
      }
51330
 
51331
      return true;
51332
    }
51333
 
51334
    @Override
51335
    public int hashCode() {
51336
      return 0;
51337
    }
51338
 
51339
    public int compareTo(markOrderCancellationRequestDenied_result other) {
51340
      if (!getClass().equals(other.getClass())) {
51341
        return getClass().getName().compareTo(other.getClass().getName());
51342
      }
51343
 
51344
      int lastComparison = 0;
51345
      markOrderCancellationRequestDenied_result typedOther = (markOrderCancellationRequestDenied_result)other;
51346
 
51347
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
51348
      if (lastComparison != 0) {
51349
        return lastComparison;
51350
      }
51351
      if (isSetEx()) {
51352
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
51353
        if (lastComparison != 0) {
51354
          return lastComparison;
51355
        }
51356
      }
51357
      return 0;
51358
    }
51359
 
51360
    public _Fields fieldForId(int fieldId) {
51361
      return _Fields.findByThriftId(fieldId);
51362
    }
51363
 
51364
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51365
      org.apache.thrift.protocol.TField field;
51366
      iprot.readStructBegin();
51367
      while (true)
51368
      {
51369
        field = iprot.readFieldBegin();
51370
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51371
          break;
51372
        }
51373
        switch (field.id) {
51374
          case 1: // EX
51375
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
51376
              this.ex = new TransactionServiceException();
51377
              this.ex.read(iprot);
51378
            } else { 
51379
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51380
            }
51381
            break;
51382
          default:
51383
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51384
        }
51385
        iprot.readFieldEnd();
51386
      }
51387
      iprot.readStructEnd();
51388
      validate();
51389
    }
51390
 
51391
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51392
      oprot.writeStructBegin(STRUCT_DESC);
51393
 
51394
      if (this.isSetEx()) {
51395
        oprot.writeFieldBegin(EX_FIELD_DESC);
51396
        this.ex.write(oprot);
51397
        oprot.writeFieldEnd();
51398
      }
51399
      oprot.writeFieldStop();
51400
      oprot.writeStructEnd();
51401
    }
51402
 
51403
    @Override
51404
    public String toString() {
51405
      StringBuilder sb = new StringBuilder("markOrderCancellationRequestDenied_result(");
51406
      boolean first = true;
51407
 
51408
      sb.append("ex:");
51409
      if (this.ex == null) {
51410
        sb.append("null");
51411
      } else {
51412
        sb.append(this.ex);
51413
      }
51414
      first = false;
51415
      sb.append(")");
51416
      return sb.toString();
51417
    }
51418
 
51419
    public void validate() throws org.apache.thrift.TException {
51420
      // check for required fields
51421
    }
51422
 
51423
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51424
      try {
51425
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51426
      } catch (org.apache.thrift.TException te) {
51427
        throw new java.io.IOException(te);
51428
      }
51429
    }
51430
 
51431
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51432
      try {
51433
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51434
      } catch (org.apache.thrift.TException te) {
51435
        throw new java.io.IOException(te);
51436
      }
51437
    }
51438
 
51439
  }
51440
 
4258 rajveer 51441
  public static class markTransactionAsPaymentFlagRemoved_args implements org.apache.thrift.TBase<markTransactionAsPaymentFlagRemoved_args, markTransactionAsPaymentFlagRemoved_args._Fields>, java.io.Serializable, Cloneable   {
51442
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransactionAsPaymentFlagRemoved_args");
4246 rajveer 51443
 
4258 rajveer 51444
    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);
4246 rajveer 51445
 
4258 rajveer 51446
    private long transactionId; // required
4246 rajveer 51447
 
51448
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51449
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4258 rajveer 51450
      TRANSACTION_ID((short)1, "transactionId");
4246 rajveer 51451
 
51452
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51453
 
51454
      static {
51455
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51456
          byName.put(field.getFieldName(), field);
51457
        }
51458
      }
51459
 
51460
      /**
51461
       * Find the _Fields constant that matches fieldId, or null if its not found.
51462
       */
51463
      public static _Fields findByThriftId(int fieldId) {
51464
        switch(fieldId) {
4258 rajveer 51465
          case 1: // TRANSACTION_ID
51466
            return TRANSACTION_ID;
4246 rajveer 51467
          default:
51468
            return null;
51469
        }
51470
      }
51471
 
51472
      /**
51473
       * Find the _Fields constant that matches fieldId, throwing an exception
51474
       * if it is not found.
51475
       */
51476
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51477
        _Fields fields = findByThriftId(fieldId);
51478
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51479
        return fields;
51480
      }
51481
 
51482
      /**
51483
       * Find the _Fields constant that matches name, or null if its not found.
51484
       */
51485
      public static _Fields findByName(String name) {
51486
        return byName.get(name);
51487
      }
51488
 
51489
      private final short _thriftId;
51490
      private final String _fieldName;
51491
 
51492
      _Fields(short thriftId, String fieldName) {
51493
        _thriftId = thriftId;
51494
        _fieldName = fieldName;
51495
      }
51496
 
51497
      public short getThriftFieldId() {
51498
        return _thriftId;
51499
      }
51500
 
51501
      public String getFieldName() {
51502
        return _fieldName;
51503
      }
51504
    }
51505
 
51506
    // isset id assignments
4258 rajveer 51507
    private static final int __TRANSACTIONID_ISSET_ID = 0;
4246 rajveer 51508
    private BitSet __isset_bit_vector = new BitSet(1);
51509
 
51510
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51511
    static {
51512
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4258 rajveer 51513
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4246 rajveer 51514
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51515
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4258 rajveer 51516
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransactionAsPaymentFlagRemoved_args.class, metaDataMap);
4246 rajveer 51517
    }
51518
 
4258 rajveer 51519
    public markTransactionAsPaymentFlagRemoved_args() {
4246 rajveer 51520
    }
51521
 
4258 rajveer 51522
    public markTransactionAsPaymentFlagRemoved_args(
51523
      long transactionId)
4246 rajveer 51524
    {
51525
      this();
4258 rajveer 51526
      this.transactionId = transactionId;
51527
      setTransactionIdIsSet(true);
4246 rajveer 51528
    }
51529
 
51530
    /**
51531
     * Performs a deep copy on <i>other</i>.
51532
     */
4258 rajveer 51533
    public markTransactionAsPaymentFlagRemoved_args(markTransactionAsPaymentFlagRemoved_args other) {
4246 rajveer 51534
      __isset_bit_vector.clear();
51535
      __isset_bit_vector.or(other.__isset_bit_vector);
4258 rajveer 51536
      this.transactionId = other.transactionId;
4246 rajveer 51537
    }
51538
 
4258 rajveer 51539
    public markTransactionAsPaymentFlagRemoved_args deepCopy() {
51540
      return new markTransactionAsPaymentFlagRemoved_args(this);
4246 rajveer 51541
    }
51542
 
51543
    @Override
51544
    public void clear() {
4258 rajveer 51545
      setTransactionIdIsSet(false);
51546
      this.transactionId = 0;
4246 rajveer 51547
    }
51548
 
4258 rajveer 51549
    public long getTransactionId() {
51550
      return this.transactionId;
4246 rajveer 51551
    }
51552
 
4258 rajveer 51553
    public void setTransactionId(long transactionId) {
51554
      this.transactionId = transactionId;
51555
      setTransactionIdIsSet(true);
4246 rajveer 51556
    }
51557
 
4258 rajveer 51558
    public void unsetTransactionId() {
51559
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
4246 rajveer 51560
    }
51561
 
4258 rajveer 51562
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
51563
    public boolean isSetTransactionId() {
51564
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
4246 rajveer 51565
    }
51566
 
4258 rajveer 51567
    public void setTransactionIdIsSet(boolean value) {
51568
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
4246 rajveer 51569
    }
51570
 
51571
    public void setFieldValue(_Fields field, Object value) {
51572
      switch (field) {
4258 rajveer 51573
      case TRANSACTION_ID:
4246 rajveer 51574
        if (value == null) {
4258 rajveer 51575
          unsetTransactionId();
4246 rajveer 51576
        } else {
4258 rajveer 51577
          setTransactionId((Long)value);
4246 rajveer 51578
        }
51579
        break;
51580
 
51581
      }
51582
    }
51583
 
51584
    public Object getFieldValue(_Fields field) {
51585
      switch (field) {
4258 rajveer 51586
      case TRANSACTION_ID:
51587
        return Long.valueOf(getTransactionId());
4246 rajveer 51588
 
51589
      }
51590
      throw new IllegalStateException();
51591
    }
51592
 
51593
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51594
    public boolean isSet(_Fields field) {
51595
      if (field == null) {
51596
        throw new IllegalArgumentException();
51597
      }
51598
 
51599
      switch (field) {
4258 rajveer 51600
      case TRANSACTION_ID:
51601
        return isSetTransactionId();
4246 rajveer 51602
      }
51603
      throw new IllegalStateException();
51604
    }
51605
 
51606
    @Override
51607
    public boolean equals(Object that) {
51608
      if (that == null)
51609
        return false;
4258 rajveer 51610
      if (that instanceof markTransactionAsPaymentFlagRemoved_args)
51611
        return this.equals((markTransactionAsPaymentFlagRemoved_args)that);
4246 rajveer 51612
      return false;
51613
    }
51614
 
4258 rajveer 51615
    public boolean equals(markTransactionAsPaymentFlagRemoved_args that) {
4246 rajveer 51616
      if (that == null)
51617
        return false;
51618
 
4258 rajveer 51619
      boolean this_present_transactionId = true;
51620
      boolean that_present_transactionId = true;
51621
      if (this_present_transactionId || that_present_transactionId) {
51622
        if (!(this_present_transactionId && that_present_transactionId))
4246 rajveer 51623
          return false;
4258 rajveer 51624
        if (this.transactionId != that.transactionId)
4246 rajveer 51625
          return false;
51626
      }
51627
 
51628
      return true;
51629
    }
51630
 
51631
    @Override
51632
    public int hashCode() {
51633
      return 0;
51634
    }
51635
 
4258 rajveer 51636
    public int compareTo(markTransactionAsPaymentFlagRemoved_args other) {
4246 rajveer 51637
      if (!getClass().equals(other.getClass())) {
51638
        return getClass().getName().compareTo(other.getClass().getName());
51639
      }
51640
 
51641
      int lastComparison = 0;
4258 rajveer 51642
      markTransactionAsPaymentFlagRemoved_args typedOther = (markTransactionAsPaymentFlagRemoved_args)other;
4246 rajveer 51643
 
4258 rajveer 51644
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
4246 rajveer 51645
      if (lastComparison != 0) {
51646
        return lastComparison;
51647
      }
4258 rajveer 51648
      if (isSetTransactionId()) {
51649
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
4246 rajveer 51650
        if (lastComparison != 0) {
51651
          return lastComparison;
51652
        }
51653
      }
51654
      return 0;
51655
    }
51656
 
51657
    public _Fields fieldForId(int fieldId) {
51658
      return _Fields.findByThriftId(fieldId);
51659
    }
51660
 
51661
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51662
      org.apache.thrift.protocol.TField field;
51663
      iprot.readStructBegin();
51664
      while (true)
51665
      {
51666
        field = iprot.readFieldBegin();
51667
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51668
          break;
51669
        }
51670
        switch (field.id) {
4258 rajveer 51671
          case 1: // TRANSACTION_ID
4246 rajveer 51672
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4258 rajveer 51673
              this.transactionId = iprot.readI64();
51674
              setTransactionIdIsSet(true);
4246 rajveer 51675
            } else { 
51676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51677
            }
51678
            break;
51679
          default:
51680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51681
        }
51682
        iprot.readFieldEnd();
51683
      }
51684
      iprot.readStructEnd();
51685
      validate();
51686
    }
51687
 
51688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51689
      validate();
51690
 
51691
      oprot.writeStructBegin(STRUCT_DESC);
4258 rajveer 51692
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
51693
      oprot.writeI64(this.transactionId);
4246 rajveer 51694
      oprot.writeFieldEnd();
51695
      oprot.writeFieldStop();
51696
      oprot.writeStructEnd();
51697
    }
51698
 
51699
    @Override
51700
    public String toString() {
4258 rajveer 51701
      StringBuilder sb = new StringBuilder("markTransactionAsPaymentFlagRemoved_args(");
4246 rajveer 51702
      boolean first = true;
51703
 
4258 rajveer 51704
      sb.append("transactionId:");
51705
      sb.append(this.transactionId);
4246 rajveer 51706
      first = false;
51707
      sb.append(")");
51708
      return sb.toString();
51709
    }
51710
 
51711
    public void validate() throws org.apache.thrift.TException {
51712
      // check for required fields
51713
    }
51714
 
51715
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51716
      try {
51717
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51718
      } catch (org.apache.thrift.TException te) {
51719
        throw new java.io.IOException(te);
51720
      }
51721
    }
51722
 
51723
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51724
      try {
51725
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51726
      } catch (org.apache.thrift.TException te) {
51727
        throw new java.io.IOException(te);
51728
      }
51729
    }
51730
 
51731
  }
51732
 
4258 rajveer 51733
  public static class markTransactionAsPaymentFlagRemoved_result implements org.apache.thrift.TBase<markTransactionAsPaymentFlagRemoved_result, markTransactionAsPaymentFlagRemoved_result._Fields>, java.io.Serializable, Cloneable   {
51734
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransactionAsPaymentFlagRemoved_result");
4246 rajveer 51735
 
51736
    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);
51737
 
51738
    private TransactionServiceException ex; // required
51739
 
51740
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51741
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51742
      EX((short)1, "ex");
51743
 
51744
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51745
 
51746
      static {
51747
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51748
          byName.put(field.getFieldName(), field);
51749
        }
51750
      }
51751
 
51752
      /**
51753
       * Find the _Fields constant that matches fieldId, or null if its not found.
51754
       */
51755
      public static _Fields findByThriftId(int fieldId) {
51756
        switch(fieldId) {
51757
          case 1: // EX
51758
            return EX;
51759
          default:
51760
            return null;
51761
        }
51762
      }
51763
 
51764
      /**
51765
       * Find the _Fields constant that matches fieldId, throwing an exception
51766
       * if it is not found.
51767
       */
51768
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51769
        _Fields fields = findByThriftId(fieldId);
51770
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51771
        return fields;
51772
      }
51773
 
51774
      /**
51775
       * Find the _Fields constant that matches name, or null if its not found.
51776
       */
51777
      public static _Fields findByName(String name) {
51778
        return byName.get(name);
51779
      }
51780
 
51781
      private final short _thriftId;
51782
      private final String _fieldName;
51783
 
51784
      _Fields(short thriftId, String fieldName) {
51785
        _thriftId = thriftId;
51786
        _fieldName = fieldName;
51787
      }
51788
 
51789
      public short getThriftFieldId() {
51790
        return _thriftId;
51791
      }
51792
 
51793
      public String getFieldName() {
51794
        return _fieldName;
51795
      }
51796
    }
51797
 
51798
    // isset id assignments
51799
 
51800
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51801
    static {
51802
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51803
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51804
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
51805
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4258 rajveer 51806
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransactionAsPaymentFlagRemoved_result.class, metaDataMap);
4246 rajveer 51807
    }
51808
 
4258 rajveer 51809
    public markTransactionAsPaymentFlagRemoved_result() {
4246 rajveer 51810
    }
51811
 
4258 rajveer 51812
    public markTransactionAsPaymentFlagRemoved_result(
4246 rajveer 51813
      TransactionServiceException ex)
51814
    {
51815
      this();
51816
      this.ex = ex;
51817
    }
51818
 
51819
    /**
51820
     * Performs a deep copy on <i>other</i>.
51821
     */
4258 rajveer 51822
    public markTransactionAsPaymentFlagRemoved_result(markTransactionAsPaymentFlagRemoved_result other) {
4246 rajveer 51823
      if (other.isSetEx()) {
51824
        this.ex = new TransactionServiceException(other.ex);
51825
      }
51826
    }
51827
 
4258 rajveer 51828
    public markTransactionAsPaymentFlagRemoved_result deepCopy() {
51829
      return new markTransactionAsPaymentFlagRemoved_result(this);
4246 rajveer 51830
    }
51831
 
51832
    @Override
51833
    public void clear() {
51834
      this.ex = null;
51835
    }
51836
 
51837
    public TransactionServiceException getEx() {
51838
      return this.ex;
51839
    }
51840
 
51841
    public void setEx(TransactionServiceException ex) {
51842
      this.ex = ex;
51843
    }
51844
 
51845
    public void unsetEx() {
51846
      this.ex = null;
51847
    }
51848
 
51849
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
51850
    public boolean isSetEx() {
51851
      return this.ex != null;
51852
    }
51853
 
51854
    public void setExIsSet(boolean value) {
51855
      if (!value) {
51856
        this.ex = null;
51857
      }
51858
    }
51859
 
51860
    public void setFieldValue(_Fields field, Object value) {
51861
      switch (field) {
51862
      case EX:
51863
        if (value == null) {
51864
          unsetEx();
51865
        } else {
51866
          setEx((TransactionServiceException)value);
51867
        }
51868
        break;
51869
 
51870
      }
51871
    }
51872
 
51873
    public Object getFieldValue(_Fields field) {
51874
      switch (field) {
51875
      case EX:
51876
        return getEx();
51877
 
51878
      }
51879
      throw new IllegalStateException();
51880
    }
51881
 
51882
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51883
    public boolean isSet(_Fields field) {
51884
      if (field == null) {
51885
        throw new IllegalArgumentException();
51886
      }
51887
 
51888
      switch (field) {
51889
      case EX:
51890
        return isSetEx();
51891
      }
51892
      throw new IllegalStateException();
51893
    }
51894
 
51895
    @Override
51896
    public boolean equals(Object that) {
51897
      if (that == null)
51898
        return false;
4258 rajveer 51899
      if (that instanceof markTransactionAsPaymentFlagRemoved_result)
51900
        return this.equals((markTransactionAsPaymentFlagRemoved_result)that);
4246 rajveer 51901
      return false;
51902
    }
51903
 
4258 rajveer 51904
    public boolean equals(markTransactionAsPaymentFlagRemoved_result that) {
4246 rajveer 51905
      if (that == null)
51906
        return false;
51907
 
51908
      boolean this_present_ex = true && this.isSetEx();
51909
      boolean that_present_ex = true && that.isSetEx();
51910
      if (this_present_ex || that_present_ex) {
51911
        if (!(this_present_ex && that_present_ex))
51912
          return false;
51913
        if (!this.ex.equals(that.ex))
51914
          return false;
51915
      }
51916
 
51917
      return true;
51918
    }
51919
 
51920
    @Override
51921
    public int hashCode() {
51922
      return 0;
51923
    }
51924
 
4258 rajveer 51925
    public int compareTo(markTransactionAsPaymentFlagRemoved_result other) {
4246 rajveer 51926
      if (!getClass().equals(other.getClass())) {
51927
        return getClass().getName().compareTo(other.getClass().getName());
51928
      }
51929
 
51930
      int lastComparison = 0;
4258 rajveer 51931
      markTransactionAsPaymentFlagRemoved_result typedOther = (markTransactionAsPaymentFlagRemoved_result)other;
4246 rajveer 51932
 
51933
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
51934
      if (lastComparison != 0) {
51935
        return lastComparison;
51936
      }
51937
      if (isSetEx()) {
51938
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
51939
        if (lastComparison != 0) {
51940
          return lastComparison;
51941
        }
51942
      }
51943
      return 0;
51944
    }
51945
 
51946
    public _Fields fieldForId(int fieldId) {
51947
      return _Fields.findByThriftId(fieldId);
51948
    }
51949
 
51950
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51951
      org.apache.thrift.protocol.TField field;
51952
      iprot.readStructBegin();
51953
      while (true)
51954
      {
51955
        field = iprot.readFieldBegin();
51956
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51957
          break;
51958
        }
51959
        switch (field.id) {
51960
          case 1: // EX
51961
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
51962
              this.ex = new TransactionServiceException();
51963
              this.ex.read(iprot);
51964
            } else { 
51965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51966
            }
51967
            break;
51968
          default:
51969
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51970
        }
51971
        iprot.readFieldEnd();
51972
      }
51973
      iprot.readStructEnd();
51974
      validate();
51975
    }
51976
 
51977
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51978
      oprot.writeStructBegin(STRUCT_DESC);
51979
 
51980
      if (this.isSetEx()) {
51981
        oprot.writeFieldBegin(EX_FIELD_DESC);
51982
        this.ex.write(oprot);
51983
        oprot.writeFieldEnd();
51984
      }
51985
      oprot.writeFieldStop();
51986
      oprot.writeStructEnd();
51987
    }
51988
 
51989
    @Override
51990
    public String toString() {
4258 rajveer 51991
      StringBuilder sb = new StringBuilder("markTransactionAsPaymentFlagRemoved_result(");
4246 rajveer 51992
      boolean first = true;
51993
 
51994
      sb.append("ex:");
51995
      if (this.ex == null) {
51996
        sb.append("null");
51997
      } else {
51998
        sb.append(this.ex);
51999
      }
52000
      first = false;
52001
      sb.append(")");
52002
      return sb.toString();
52003
    }
52004
 
52005
    public void validate() throws org.apache.thrift.TException {
52006
      // check for required fields
52007
    }
52008
 
52009
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52010
      try {
52011
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52012
      } catch (org.apache.thrift.TException te) {
52013
        throw new java.io.IOException(te);
52014
      }
52015
    }
52016
 
52017
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52018
      try {
52019
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52020
      } catch (org.apache.thrift.TException te) {
52021
        throw new java.io.IOException(te);
52022
      }
52023
    }
52024
 
52025
  }
52026
 
4259 anupam.sin 52027
  public static class refundTransaction_args implements org.apache.thrift.TBase<refundTransaction_args, refundTransaction_args._Fields>, java.io.Serializable, Cloneable   {
52028
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundTransaction_args");
52029
 
52030
    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);
52031
    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);
52032
    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);
52033
 
52034
    private long transactionId; // required
52035
    private String refundedBy; // required
52036
    private String reason; // required
52037
 
52038
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52039
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52040
      TRANSACTION_ID((short)1, "transactionId"),
52041
      REFUNDED_BY((short)2, "refundedBy"),
52042
      REASON((short)3, "reason");
52043
 
52044
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52045
 
52046
      static {
52047
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52048
          byName.put(field.getFieldName(), field);
52049
        }
52050
      }
52051
 
52052
      /**
52053
       * Find the _Fields constant that matches fieldId, or null if its not found.
52054
       */
52055
      public static _Fields findByThriftId(int fieldId) {
52056
        switch(fieldId) {
52057
          case 1: // TRANSACTION_ID
52058
            return TRANSACTION_ID;
52059
          case 2: // REFUNDED_BY
52060
            return REFUNDED_BY;
52061
          case 3: // REASON
52062
            return REASON;
52063
          default:
52064
            return null;
52065
        }
52066
      }
52067
 
52068
      /**
52069
       * Find the _Fields constant that matches fieldId, throwing an exception
52070
       * if it is not found.
52071
       */
52072
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52073
        _Fields fields = findByThriftId(fieldId);
52074
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52075
        return fields;
52076
      }
52077
 
52078
      /**
52079
       * Find the _Fields constant that matches name, or null if its not found.
52080
       */
52081
      public static _Fields findByName(String name) {
52082
        return byName.get(name);
52083
      }
52084
 
52085
      private final short _thriftId;
52086
      private final String _fieldName;
52087
 
52088
      _Fields(short thriftId, String fieldName) {
52089
        _thriftId = thriftId;
52090
        _fieldName = fieldName;
52091
      }
52092
 
52093
      public short getThriftFieldId() {
52094
        return _thriftId;
52095
      }
52096
 
52097
      public String getFieldName() {
52098
        return _fieldName;
52099
      }
52100
    }
52101
 
52102
    // isset id assignments
52103
    private static final int __TRANSACTIONID_ISSET_ID = 0;
52104
    private BitSet __isset_bit_vector = new BitSet(1);
52105
 
52106
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52107
    static {
52108
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52109
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52110
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
52111
      tmpMap.put(_Fields.REFUNDED_BY, new org.apache.thrift.meta_data.FieldMetaData("refundedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52112
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
52113
      tmpMap.put(_Fields.REASON, new org.apache.thrift.meta_data.FieldMetaData("reason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52114
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
52115
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52116
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundTransaction_args.class, metaDataMap);
52117
    }
52118
 
52119
    public refundTransaction_args() {
52120
    }
52121
 
52122
    public refundTransaction_args(
52123
      long transactionId,
52124
      String refundedBy,
52125
      String reason)
52126
    {
52127
      this();
52128
      this.transactionId = transactionId;
52129
      setTransactionIdIsSet(true);
52130
      this.refundedBy = refundedBy;
52131
      this.reason = reason;
52132
    }
52133
 
52134
    /**
52135
     * Performs a deep copy on <i>other</i>.
52136
     */
52137
    public refundTransaction_args(refundTransaction_args other) {
52138
      __isset_bit_vector.clear();
52139
      __isset_bit_vector.or(other.__isset_bit_vector);
52140
      this.transactionId = other.transactionId;
52141
      if (other.isSetRefundedBy()) {
52142
        this.refundedBy = other.refundedBy;
52143
      }
52144
      if (other.isSetReason()) {
52145
        this.reason = other.reason;
52146
      }
52147
    }
52148
 
52149
    public refundTransaction_args deepCopy() {
52150
      return new refundTransaction_args(this);
52151
    }
52152
 
52153
    @Override
52154
    public void clear() {
52155
      setTransactionIdIsSet(false);
52156
      this.transactionId = 0;
52157
      this.refundedBy = null;
52158
      this.reason = null;
52159
    }
52160
 
52161
    public long getTransactionId() {
52162
      return this.transactionId;
52163
    }
52164
 
52165
    public void setTransactionId(long transactionId) {
52166
      this.transactionId = transactionId;
52167
      setTransactionIdIsSet(true);
52168
    }
52169
 
52170
    public void unsetTransactionId() {
52171
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
52172
    }
52173
 
52174
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
52175
    public boolean isSetTransactionId() {
52176
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
52177
    }
52178
 
52179
    public void setTransactionIdIsSet(boolean value) {
52180
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
52181
    }
52182
 
52183
    public String getRefundedBy() {
52184
      return this.refundedBy;
52185
    }
52186
 
52187
    public void setRefundedBy(String refundedBy) {
52188
      this.refundedBy = refundedBy;
52189
    }
52190
 
52191
    public void unsetRefundedBy() {
52192
      this.refundedBy = null;
52193
    }
52194
 
52195
    /** Returns true if field refundedBy is set (has been assigned a value) and false otherwise */
52196
    public boolean isSetRefundedBy() {
52197
      return this.refundedBy != null;
52198
    }
52199
 
52200
    public void setRefundedByIsSet(boolean value) {
52201
      if (!value) {
52202
        this.refundedBy = null;
52203
      }
52204
    }
52205
 
52206
    public String getReason() {
52207
      return this.reason;
52208
    }
52209
 
52210
    public void setReason(String reason) {
52211
      this.reason = reason;
52212
    }
52213
 
52214
    public void unsetReason() {
52215
      this.reason = null;
52216
    }
52217
 
52218
    /** Returns true if field reason is set (has been assigned a value) and false otherwise */
52219
    public boolean isSetReason() {
52220
      return this.reason != null;
52221
    }
52222
 
52223
    public void setReasonIsSet(boolean value) {
52224
      if (!value) {
52225
        this.reason = null;
52226
      }
52227
    }
52228
 
52229
    public void setFieldValue(_Fields field, Object value) {
52230
      switch (field) {
52231
      case TRANSACTION_ID:
52232
        if (value == null) {
52233
          unsetTransactionId();
52234
        } else {
52235
          setTransactionId((Long)value);
52236
        }
52237
        break;
52238
 
52239
      case REFUNDED_BY:
52240
        if (value == null) {
52241
          unsetRefundedBy();
52242
        } else {
52243
          setRefundedBy((String)value);
52244
        }
52245
        break;
52246
 
52247
      case REASON:
52248
        if (value == null) {
52249
          unsetReason();
52250
        } else {
52251
          setReason((String)value);
52252
        }
52253
        break;
52254
 
52255
      }
52256
    }
52257
 
52258
    public Object getFieldValue(_Fields field) {
52259
      switch (field) {
52260
      case TRANSACTION_ID:
52261
        return Long.valueOf(getTransactionId());
52262
 
52263
      case REFUNDED_BY:
52264
        return getRefundedBy();
52265
 
52266
      case REASON:
52267
        return getReason();
52268
 
52269
      }
52270
      throw new IllegalStateException();
52271
    }
52272
 
52273
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52274
    public boolean isSet(_Fields field) {
52275
      if (field == null) {
52276
        throw new IllegalArgumentException();
52277
      }
52278
 
52279
      switch (field) {
52280
      case TRANSACTION_ID:
52281
        return isSetTransactionId();
52282
      case REFUNDED_BY:
52283
        return isSetRefundedBy();
52284
      case REASON:
52285
        return isSetReason();
52286
      }
52287
      throw new IllegalStateException();
52288
    }
52289
 
52290
    @Override
52291
    public boolean equals(Object that) {
52292
      if (that == null)
52293
        return false;
52294
      if (that instanceof refundTransaction_args)
52295
        return this.equals((refundTransaction_args)that);
52296
      return false;
52297
    }
52298
 
52299
    public boolean equals(refundTransaction_args that) {
52300
      if (that == null)
52301
        return false;
52302
 
52303
      boolean this_present_transactionId = true;
52304
      boolean that_present_transactionId = true;
52305
      if (this_present_transactionId || that_present_transactionId) {
52306
        if (!(this_present_transactionId && that_present_transactionId))
52307
          return false;
52308
        if (this.transactionId != that.transactionId)
52309
          return false;
52310
      }
52311
 
52312
      boolean this_present_refundedBy = true && this.isSetRefundedBy();
52313
      boolean that_present_refundedBy = true && that.isSetRefundedBy();
52314
      if (this_present_refundedBy || that_present_refundedBy) {
52315
        if (!(this_present_refundedBy && that_present_refundedBy))
52316
          return false;
52317
        if (!this.refundedBy.equals(that.refundedBy))
52318
          return false;
52319
      }
52320
 
52321
      boolean this_present_reason = true && this.isSetReason();
52322
      boolean that_present_reason = true && that.isSetReason();
52323
      if (this_present_reason || that_present_reason) {
52324
        if (!(this_present_reason && that_present_reason))
52325
          return false;
52326
        if (!this.reason.equals(that.reason))
52327
          return false;
52328
      }
52329
 
52330
      return true;
52331
    }
52332
 
52333
    @Override
52334
    public int hashCode() {
52335
      return 0;
52336
    }
52337
 
52338
    public int compareTo(refundTransaction_args other) {
52339
      if (!getClass().equals(other.getClass())) {
52340
        return getClass().getName().compareTo(other.getClass().getName());
52341
      }
52342
 
52343
      int lastComparison = 0;
52344
      refundTransaction_args typedOther = (refundTransaction_args)other;
52345
 
52346
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
52347
      if (lastComparison != 0) {
52348
        return lastComparison;
52349
      }
52350
      if (isSetTransactionId()) {
52351
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
52352
        if (lastComparison != 0) {
52353
          return lastComparison;
52354
        }
52355
      }
52356
      lastComparison = Boolean.valueOf(isSetRefundedBy()).compareTo(typedOther.isSetRefundedBy());
52357
      if (lastComparison != 0) {
52358
        return lastComparison;
52359
      }
52360
      if (isSetRefundedBy()) {
52361
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundedBy, typedOther.refundedBy);
52362
        if (lastComparison != 0) {
52363
          return lastComparison;
52364
        }
52365
      }
52366
      lastComparison = Boolean.valueOf(isSetReason()).compareTo(typedOther.isSetReason());
52367
      if (lastComparison != 0) {
52368
        return lastComparison;
52369
      }
52370
      if (isSetReason()) {
52371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reason, typedOther.reason);
52372
        if (lastComparison != 0) {
52373
          return lastComparison;
52374
        }
52375
      }
52376
      return 0;
52377
    }
52378
 
52379
    public _Fields fieldForId(int fieldId) {
52380
      return _Fields.findByThriftId(fieldId);
52381
    }
52382
 
52383
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52384
      org.apache.thrift.protocol.TField field;
52385
      iprot.readStructBegin();
52386
      while (true)
52387
      {
52388
        field = iprot.readFieldBegin();
52389
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
52390
          break;
52391
        }
52392
        switch (field.id) {
52393
          case 1: // TRANSACTION_ID
52394
            if (field.type == org.apache.thrift.protocol.TType.I64) {
52395
              this.transactionId = iprot.readI64();
52396
              setTransactionIdIsSet(true);
52397
            } else { 
52398
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52399
            }
52400
            break;
52401
          case 2: // REFUNDED_BY
52402
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
52403
              this.refundedBy = iprot.readString();
52404
            } else { 
52405
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52406
            }
52407
            break;
52408
          case 3: // REASON
52409
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
52410
              this.reason = iprot.readString();
52411
            } else { 
52412
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52413
            }
52414
            break;
52415
          default:
52416
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52417
        }
52418
        iprot.readFieldEnd();
52419
      }
52420
      iprot.readStructEnd();
52421
      validate();
52422
    }
52423
 
52424
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52425
      validate();
52426
 
52427
      oprot.writeStructBegin(STRUCT_DESC);
52428
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
52429
      oprot.writeI64(this.transactionId);
52430
      oprot.writeFieldEnd();
52431
      if (this.refundedBy != null) {
52432
        oprot.writeFieldBegin(REFUNDED_BY_FIELD_DESC);
52433
        oprot.writeString(this.refundedBy);
52434
        oprot.writeFieldEnd();
52435
      }
52436
      if (this.reason != null) {
52437
        oprot.writeFieldBegin(REASON_FIELD_DESC);
52438
        oprot.writeString(this.reason);
52439
        oprot.writeFieldEnd();
52440
      }
52441
      oprot.writeFieldStop();
52442
      oprot.writeStructEnd();
52443
    }
52444
 
52445
    @Override
52446
    public String toString() {
52447
      StringBuilder sb = new StringBuilder("refundTransaction_args(");
52448
      boolean first = true;
52449
 
52450
      sb.append("transactionId:");
52451
      sb.append(this.transactionId);
52452
      first = false;
52453
      if (!first) sb.append(", ");
52454
      sb.append("refundedBy:");
52455
      if (this.refundedBy == null) {
52456
        sb.append("null");
52457
      } else {
52458
        sb.append(this.refundedBy);
52459
      }
52460
      first = false;
52461
      if (!first) sb.append(", ");
52462
      sb.append("reason:");
52463
      if (this.reason == null) {
52464
        sb.append("null");
52465
      } else {
52466
        sb.append(this.reason);
52467
      }
52468
      first = false;
52469
      sb.append(")");
52470
      return sb.toString();
52471
    }
52472
 
52473
    public void validate() throws org.apache.thrift.TException {
52474
      // check for required fields
52475
    }
52476
 
52477
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52478
      try {
52479
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52480
      } catch (org.apache.thrift.TException te) {
52481
        throw new java.io.IOException(te);
52482
      }
52483
    }
52484
 
52485
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52486
      try {
52487
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52488
      } catch (org.apache.thrift.TException te) {
52489
        throw new java.io.IOException(te);
52490
      }
52491
    }
52492
 
52493
  }
52494
 
52495
  public static class refundTransaction_result implements org.apache.thrift.TBase<refundTransaction_result, refundTransaction_result._Fields>, java.io.Serializable, Cloneable   {
52496
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundTransaction_result");
52497
 
52498
    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);
52499
 
52500
    private TransactionServiceException ex; // required
52501
 
52502
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52503
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52504
      EX((short)1, "ex");
52505
 
52506
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52507
 
52508
      static {
52509
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52510
          byName.put(field.getFieldName(), field);
52511
        }
52512
      }
52513
 
52514
      /**
52515
       * Find the _Fields constant that matches fieldId, or null if its not found.
52516
       */
52517
      public static _Fields findByThriftId(int fieldId) {
52518
        switch(fieldId) {
52519
          case 1: // EX
52520
            return EX;
52521
          default:
52522
            return null;
52523
        }
52524
      }
52525
 
52526
      /**
52527
       * Find the _Fields constant that matches fieldId, throwing an exception
52528
       * if it is not found.
52529
       */
52530
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52531
        _Fields fields = findByThriftId(fieldId);
52532
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52533
        return fields;
52534
      }
52535
 
52536
      /**
52537
       * Find the _Fields constant that matches name, or null if its not found.
52538
       */
52539
      public static _Fields findByName(String name) {
52540
        return byName.get(name);
52541
      }
52542
 
52543
      private final short _thriftId;
52544
      private final String _fieldName;
52545
 
52546
      _Fields(short thriftId, String fieldName) {
52547
        _thriftId = thriftId;
52548
        _fieldName = fieldName;
52549
      }
52550
 
52551
      public short getThriftFieldId() {
52552
        return _thriftId;
52553
      }
52554
 
52555
      public String getFieldName() {
52556
        return _fieldName;
52557
      }
52558
    }
52559
 
52560
    // isset id assignments
52561
 
52562
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52563
    static {
52564
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52565
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52566
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
52567
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52568
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundTransaction_result.class, metaDataMap);
52569
    }
52570
 
52571
    public refundTransaction_result() {
52572
    }
52573
 
52574
    public refundTransaction_result(
52575
      TransactionServiceException ex)
52576
    {
52577
      this();
52578
      this.ex = ex;
52579
    }
52580
 
52581
    /**
52582
     * Performs a deep copy on <i>other</i>.
52583
     */
52584
    public refundTransaction_result(refundTransaction_result other) {
52585
      if (other.isSetEx()) {
52586
        this.ex = new TransactionServiceException(other.ex);
52587
      }
52588
    }
52589
 
52590
    public refundTransaction_result deepCopy() {
52591
      return new refundTransaction_result(this);
52592
    }
52593
 
52594
    @Override
52595
    public void clear() {
52596
      this.ex = null;
52597
    }
52598
 
52599
    public TransactionServiceException getEx() {
52600
      return this.ex;
52601
    }
52602
 
52603
    public void setEx(TransactionServiceException ex) {
52604
      this.ex = ex;
52605
    }
52606
 
52607
    public void unsetEx() {
52608
      this.ex = null;
52609
    }
52610
 
52611
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
52612
    public boolean isSetEx() {
52613
      return this.ex != null;
52614
    }
52615
 
52616
    public void setExIsSet(boolean value) {
52617
      if (!value) {
52618
        this.ex = null;
52619
      }
52620
    }
52621
 
52622
    public void setFieldValue(_Fields field, Object value) {
52623
      switch (field) {
52624
      case EX:
52625
        if (value == null) {
52626
          unsetEx();
52627
        } else {
52628
          setEx((TransactionServiceException)value);
52629
        }
52630
        break;
52631
 
52632
      }
52633
    }
52634
 
52635
    public Object getFieldValue(_Fields field) {
52636
      switch (field) {
52637
      case EX:
52638
        return getEx();
52639
 
52640
      }
52641
      throw new IllegalStateException();
52642
    }
52643
 
52644
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52645
    public boolean isSet(_Fields field) {
52646
      if (field == null) {
52647
        throw new IllegalArgumentException();
52648
      }
52649
 
52650
      switch (field) {
52651
      case EX:
52652
        return isSetEx();
52653
      }
52654
      throw new IllegalStateException();
52655
    }
52656
 
52657
    @Override
52658
    public boolean equals(Object that) {
52659
      if (that == null)
52660
        return false;
52661
      if (that instanceof refundTransaction_result)
52662
        return this.equals((refundTransaction_result)that);
52663
      return false;
52664
    }
52665
 
52666
    public boolean equals(refundTransaction_result that) {
52667
      if (that == null)
52668
        return false;
52669
 
52670
      boolean this_present_ex = true && this.isSetEx();
52671
      boolean that_present_ex = true && that.isSetEx();
52672
      if (this_present_ex || that_present_ex) {
52673
        if (!(this_present_ex && that_present_ex))
52674
          return false;
52675
        if (!this.ex.equals(that.ex))
52676
          return false;
52677
      }
52678
 
52679
      return true;
52680
    }
52681
 
52682
    @Override
52683
    public int hashCode() {
52684
      return 0;
52685
    }
52686
 
52687
    public int compareTo(refundTransaction_result other) {
52688
      if (!getClass().equals(other.getClass())) {
52689
        return getClass().getName().compareTo(other.getClass().getName());
52690
      }
52691
 
52692
      int lastComparison = 0;
52693
      refundTransaction_result typedOther = (refundTransaction_result)other;
52694
 
52695
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
52696
      if (lastComparison != 0) {
52697
        return lastComparison;
52698
      }
52699
      if (isSetEx()) {
52700
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
52701
        if (lastComparison != 0) {
52702
          return lastComparison;
52703
        }
52704
      }
52705
      return 0;
52706
    }
52707
 
52708
    public _Fields fieldForId(int fieldId) {
52709
      return _Fields.findByThriftId(fieldId);
52710
    }
52711
 
52712
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52713
      org.apache.thrift.protocol.TField field;
52714
      iprot.readStructBegin();
52715
      while (true)
52716
      {
52717
        field = iprot.readFieldBegin();
52718
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
52719
          break;
52720
        }
52721
        switch (field.id) {
52722
          case 1: // EX
52723
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
52724
              this.ex = new TransactionServiceException();
52725
              this.ex.read(iprot);
52726
            } else { 
52727
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52728
            }
52729
            break;
52730
          default:
52731
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52732
        }
52733
        iprot.readFieldEnd();
52734
      }
52735
      iprot.readStructEnd();
52736
      validate();
52737
    }
52738
 
52739
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52740
      oprot.writeStructBegin(STRUCT_DESC);
52741
 
52742
      if (this.isSetEx()) {
52743
        oprot.writeFieldBegin(EX_FIELD_DESC);
52744
        this.ex.write(oprot);
52745
        oprot.writeFieldEnd();
52746
      }
52747
      oprot.writeFieldStop();
52748
      oprot.writeStructEnd();
52749
    }
52750
 
52751
    @Override
52752
    public String toString() {
52753
      StringBuilder sb = new StringBuilder("refundTransaction_result(");
52754
      boolean first = true;
52755
 
52756
      sb.append("ex:");
52757
      if (this.ex == null) {
52758
        sb.append("null");
52759
      } else {
52760
        sb.append(this.ex);
52761
      }
52762
      first = false;
52763
      sb.append(")");
52764
      return sb.toString();
52765
    }
52766
 
52767
    public void validate() throws org.apache.thrift.TException {
52768
      // check for required fields
52769
    }
52770
 
52771
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52772
      try {
52773
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52774
      } catch (org.apache.thrift.TException te) {
52775
        throw new java.io.IOException(te);
52776
      }
52777
    }
52778
 
52779
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52780
      try {
52781
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52782
      } catch (org.apache.thrift.TException te) {
52783
        throw new java.io.IOException(te);
52784
      }
52785
    }
52786
 
52787
  }
52788
 
4285 rajveer 52789
  public static class acceptOrdersForItemId_args implements org.apache.thrift.TBase<acceptOrdersForItemId_args, acceptOrdersForItemId_args._Fields>, java.io.Serializable, Cloneable   {
52790
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrdersForItemId_args");
52791
 
52792
    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);
52793
    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);
52794
 
52795
    private long itemId; // required
52796
    private long inventory; // required
52797
 
52798
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52799
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52800
      ITEM_ID((short)1, "itemId"),
52801
      INVENTORY((short)2, "inventory");
52802
 
52803
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52804
 
52805
      static {
52806
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52807
          byName.put(field.getFieldName(), field);
52808
        }
52809
      }
52810
 
52811
      /**
52812
       * Find the _Fields constant that matches fieldId, or null if its not found.
52813
       */
52814
      public static _Fields findByThriftId(int fieldId) {
52815
        switch(fieldId) {
52816
          case 1: // ITEM_ID
52817
            return ITEM_ID;
52818
          case 2: // INVENTORY
52819
            return INVENTORY;
52820
          default:
52821
            return null;
52822
        }
52823
      }
52824
 
52825
      /**
52826
       * Find the _Fields constant that matches fieldId, throwing an exception
52827
       * if it is not found.
52828
       */
52829
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52830
        _Fields fields = findByThriftId(fieldId);
52831
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52832
        return fields;
52833
      }
52834
 
52835
      /**
52836
       * Find the _Fields constant that matches name, or null if its not found.
52837
       */
52838
      public static _Fields findByName(String name) {
52839
        return byName.get(name);
52840
      }
52841
 
52842
      private final short _thriftId;
52843
      private final String _fieldName;
52844
 
52845
      _Fields(short thriftId, String fieldName) {
52846
        _thriftId = thriftId;
52847
        _fieldName = fieldName;
52848
      }
52849
 
52850
      public short getThriftFieldId() {
52851
        return _thriftId;
52852
      }
52853
 
52854
      public String getFieldName() {
52855
        return _fieldName;
52856
      }
52857
    }
52858
 
52859
    // isset id assignments
52860
    private static final int __ITEMID_ISSET_ID = 0;
52861
    private static final int __INVENTORY_ISSET_ID = 1;
52862
    private BitSet __isset_bit_vector = new BitSet(2);
52863
 
52864
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52865
    static {
52866
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52867
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52868
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
52869
      tmpMap.put(_Fields.INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("inventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52870
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
52871
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52872
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrdersForItemId_args.class, metaDataMap);
52873
    }
52874
 
52875
    public acceptOrdersForItemId_args() {
52876
    }
52877
 
52878
    public acceptOrdersForItemId_args(
52879
      long itemId,
52880
      long inventory)
52881
    {
52882
      this();
52883
      this.itemId = itemId;
52884
      setItemIdIsSet(true);
52885
      this.inventory = inventory;
52886
      setInventoryIsSet(true);
52887
    }
52888
 
52889
    /**
52890
     * Performs a deep copy on <i>other</i>.
52891
     */
52892
    public acceptOrdersForItemId_args(acceptOrdersForItemId_args other) {
52893
      __isset_bit_vector.clear();
52894
      __isset_bit_vector.or(other.__isset_bit_vector);
52895
      this.itemId = other.itemId;
52896
      this.inventory = other.inventory;
52897
    }
52898
 
52899
    public acceptOrdersForItemId_args deepCopy() {
52900
      return new acceptOrdersForItemId_args(this);
52901
    }
52902
 
52903
    @Override
52904
    public void clear() {
52905
      setItemIdIsSet(false);
52906
      this.itemId = 0;
52907
      setInventoryIsSet(false);
52908
      this.inventory = 0;
52909
    }
52910
 
52911
    public long getItemId() {
52912
      return this.itemId;
52913
    }
52914
 
52915
    public void setItemId(long itemId) {
52916
      this.itemId = itemId;
52917
      setItemIdIsSet(true);
52918
    }
52919
 
52920
    public void unsetItemId() {
52921
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
52922
    }
52923
 
52924
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
52925
    public boolean isSetItemId() {
52926
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
52927
    }
52928
 
52929
    public void setItemIdIsSet(boolean value) {
52930
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
52931
    }
52932
 
52933
    public long getInventory() {
52934
      return this.inventory;
52935
    }
52936
 
52937
    public void setInventory(long inventory) {
52938
      this.inventory = inventory;
52939
      setInventoryIsSet(true);
52940
    }
52941
 
52942
    public void unsetInventory() {
52943
      __isset_bit_vector.clear(__INVENTORY_ISSET_ID);
52944
    }
52945
 
52946
    /** Returns true if field inventory is set (has been assigned a value) and false otherwise */
52947
    public boolean isSetInventory() {
52948
      return __isset_bit_vector.get(__INVENTORY_ISSET_ID);
52949
    }
52950
 
52951
    public void setInventoryIsSet(boolean value) {
52952
      __isset_bit_vector.set(__INVENTORY_ISSET_ID, value);
52953
    }
52954
 
52955
    public void setFieldValue(_Fields field, Object value) {
52956
      switch (field) {
52957
      case ITEM_ID:
52958
        if (value == null) {
52959
          unsetItemId();
52960
        } else {
52961
          setItemId((Long)value);
52962
        }
52963
        break;
52964
 
52965
      case INVENTORY:
52966
        if (value == null) {
52967
          unsetInventory();
52968
        } else {
52969
          setInventory((Long)value);
52970
        }
52971
        break;
52972
 
52973
      }
52974
    }
52975
 
52976
    public Object getFieldValue(_Fields field) {
52977
      switch (field) {
52978
      case ITEM_ID:
52979
        return Long.valueOf(getItemId());
52980
 
52981
      case INVENTORY:
52982
        return Long.valueOf(getInventory());
52983
 
52984
      }
52985
      throw new IllegalStateException();
52986
    }
52987
 
52988
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52989
    public boolean isSet(_Fields field) {
52990
      if (field == null) {
52991
        throw new IllegalArgumentException();
52992
      }
52993
 
52994
      switch (field) {
52995
      case ITEM_ID:
52996
        return isSetItemId();
52997
      case INVENTORY:
52998
        return isSetInventory();
52999
      }
53000
      throw new IllegalStateException();
53001
    }
53002
 
53003
    @Override
53004
    public boolean equals(Object that) {
53005
      if (that == null)
53006
        return false;
53007
      if (that instanceof acceptOrdersForItemId_args)
53008
        return this.equals((acceptOrdersForItemId_args)that);
53009
      return false;
53010
    }
53011
 
53012
    public boolean equals(acceptOrdersForItemId_args that) {
53013
      if (that == null)
53014
        return false;
53015
 
53016
      boolean this_present_itemId = true;
53017
      boolean that_present_itemId = true;
53018
      if (this_present_itemId || that_present_itemId) {
53019
        if (!(this_present_itemId && that_present_itemId))
53020
          return false;
53021
        if (this.itemId != that.itemId)
53022
          return false;
53023
      }
53024
 
53025
      boolean this_present_inventory = true;
53026
      boolean that_present_inventory = true;
53027
      if (this_present_inventory || that_present_inventory) {
53028
        if (!(this_present_inventory && that_present_inventory))
53029
          return false;
53030
        if (this.inventory != that.inventory)
53031
          return false;
53032
      }
53033
 
53034
      return true;
53035
    }
53036
 
53037
    @Override
53038
    public int hashCode() {
53039
      return 0;
53040
    }
53041
 
53042
    public int compareTo(acceptOrdersForItemId_args other) {
53043
      if (!getClass().equals(other.getClass())) {
53044
        return getClass().getName().compareTo(other.getClass().getName());
53045
      }
53046
 
53047
      int lastComparison = 0;
53048
      acceptOrdersForItemId_args typedOther = (acceptOrdersForItemId_args)other;
53049
 
53050
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
53051
      if (lastComparison != 0) {
53052
        return lastComparison;
53053
      }
53054
      if (isSetItemId()) {
53055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
53056
        if (lastComparison != 0) {
53057
          return lastComparison;
53058
        }
53059
      }
53060
      lastComparison = Boolean.valueOf(isSetInventory()).compareTo(typedOther.isSetInventory());
53061
      if (lastComparison != 0) {
53062
        return lastComparison;
53063
      }
53064
      if (isSetInventory()) {
53065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventory, typedOther.inventory);
53066
        if (lastComparison != 0) {
53067
          return lastComparison;
53068
        }
53069
      }
53070
      return 0;
53071
    }
53072
 
53073
    public _Fields fieldForId(int fieldId) {
53074
      return _Fields.findByThriftId(fieldId);
53075
    }
53076
 
53077
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53078
      org.apache.thrift.protocol.TField field;
53079
      iprot.readStructBegin();
53080
      while (true)
53081
      {
53082
        field = iprot.readFieldBegin();
53083
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
53084
          break;
53085
        }
53086
        switch (field.id) {
53087
          case 1: // ITEM_ID
53088
            if (field.type == org.apache.thrift.protocol.TType.I64) {
53089
              this.itemId = iprot.readI64();
53090
              setItemIdIsSet(true);
53091
            } else { 
53092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53093
            }
53094
            break;
53095
          case 2: // INVENTORY
53096
            if (field.type == org.apache.thrift.protocol.TType.I64) {
53097
              this.inventory = iprot.readI64();
53098
              setInventoryIsSet(true);
53099
            } else { 
53100
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53101
            }
53102
            break;
53103
          default:
53104
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53105
        }
53106
        iprot.readFieldEnd();
53107
      }
53108
      iprot.readStructEnd();
53109
      validate();
53110
    }
53111
 
53112
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53113
      validate();
53114
 
53115
      oprot.writeStructBegin(STRUCT_DESC);
53116
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
53117
      oprot.writeI64(this.itemId);
53118
      oprot.writeFieldEnd();
53119
      oprot.writeFieldBegin(INVENTORY_FIELD_DESC);
53120
      oprot.writeI64(this.inventory);
53121
      oprot.writeFieldEnd();
53122
      oprot.writeFieldStop();
53123
      oprot.writeStructEnd();
53124
    }
53125
 
53126
    @Override
53127
    public String toString() {
53128
      StringBuilder sb = new StringBuilder("acceptOrdersForItemId_args(");
53129
      boolean first = true;
53130
 
53131
      sb.append("itemId:");
53132
      sb.append(this.itemId);
53133
      first = false;
53134
      if (!first) sb.append(", ");
53135
      sb.append("inventory:");
53136
      sb.append(this.inventory);
53137
      first = false;
53138
      sb.append(")");
53139
      return sb.toString();
53140
    }
53141
 
53142
    public void validate() throws org.apache.thrift.TException {
53143
      // check for required fields
53144
    }
53145
 
53146
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53147
      try {
53148
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53149
      } catch (org.apache.thrift.TException te) {
53150
        throw new java.io.IOException(te);
53151
      }
53152
    }
53153
 
53154
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53155
      try {
53156
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53157
      } catch (org.apache.thrift.TException te) {
53158
        throw new java.io.IOException(te);
53159
      }
53160
    }
53161
 
53162
  }
53163
 
53164
  public static class acceptOrdersForItemId_result implements org.apache.thrift.TBase<acceptOrdersForItemId_result, acceptOrdersForItemId_result._Fields>, java.io.Serializable, Cloneable   {
53165
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrdersForItemId_result");
53166
 
53167
    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);
53168
    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);
53169
 
53170
    private boolean success; // required
53171
    private TransactionServiceException ex; // required
53172
 
53173
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53174
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53175
      SUCCESS((short)0, "success"),
53176
      EX((short)1, "ex");
53177
 
53178
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53179
 
53180
      static {
53181
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53182
          byName.put(field.getFieldName(), field);
53183
        }
53184
      }
53185
 
53186
      /**
53187
       * Find the _Fields constant that matches fieldId, or null if its not found.
53188
       */
53189
      public static _Fields findByThriftId(int fieldId) {
53190
        switch(fieldId) {
53191
          case 0: // SUCCESS
53192
            return SUCCESS;
53193
          case 1: // EX
53194
            return EX;
53195
          default:
53196
            return null;
53197
        }
53198
      }
53199
 
53200
      /**
53201
       * Find the _Fields constant that matches fieldId, throwing an exception
53202
       * if it is not found.
53203
       */
53204
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53205
        _Fields fields = findByThriftId(fieldId);
53206
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53207
        return fields;
53208
      }
53209
 
53210
      /**
53211
       * Find the _Fields constant that matches name, or null if its not found.
53212
       */
53213
      public static _Fields findByName(String name) {
53214
        return byName.get(name);
53215
      }
53216
 
53217
      private final short _thriftId;
53218
      private final String _fieldName;
53219
 
53220
      _Fields(short thriftId, String fieldName) {
53221
        _thriftId = thriftId;
53222
        _fieldName = fieldName;
53223
      }
53224
 
53225
      public short getThriftFieldId() {
53226
        return _thriftId;
53227
      }
53228
 
53229
      public String getFieldName() {
53230
        return _fieldName;
53231
      }
53232
    }
53233
 
53234
    // isset id assignments
53235
    private static final int __SUCCESS_ISSET_ID = 0;
53236
    private BitSet __isset_bit_vector = new BitSet(1);
53237
 
53238
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53239
    static {
53240
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53241
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53242
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
53243
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53244
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
53245
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53246
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrdersForItemId_result.class, metaDataMap);
53247
    }
53248
 
53249
    public acceptOrdersForItemId_result() {
53250
    }
53251
 
53252
    public acceptOrdersForItemId_result(
53253
      boolean success,
53254
      TransactionServiceException ex)
53255
    {
53256
      this();
53257
      this.success = success;
53258
      setSuccessIsSet(true);
53259
      this.ex = ex;
53260
    }
53261
 
53262
    /**
53263
     * Performs a deep copy on <i>other</i>.
53264
     */
53265
    public acceptOrdersForItemId_result(acceptOrdersForItemId_result other) {
53266
      __isset_bit_vector.clear();
53267
      __isset_bit_vector.or(other.__isset_bit_vector);
53268
      this.success = other.success;
53269
      if (other.isSetEx()) {
53270
        this.ex = new TransactionServiceException(other.ex);
53271
      }
53272
    }
53273
 
53274
    public acceptOrdersForItemId_result deepCopy() {
53275
      return new acceptOrdersForItemId_result(this);
53276
    }
53277
 
53278
    @Override
53279
    public void clear() {
53280
      setSuccessIsSet(false);
53281
      this.success = false;
53282
      this.ex = null;
53283
    }
53284
 
53285
    public boolean isSuccess() {
53286
      return this.success;
53287
    }
53288
 
53289
    public void setSuccess(boolean success) {
53290
      this.success = success;
53291
      setSuccessIsSet(true);
53292
    }
53293
 
53294
    public void unsetSuccess() {
53295
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
53296
    }
53297
 
53298
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
53299
    public boolean isSetSuccess() {
53300
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
53301
    }
53302
 
53303
    public void setSuccessIsSet(boolean value) {
53304
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
53305
    }
53306
 
53307
    public TransactionServiceException getEx() {
53308
      return this.ex;
53309
    }
53310
 
53311
    public void setEx(TransactionServiceException ex) {
53312
      this.ex = ex;
53313
    }
53314
 
53315
    public void unsetEx() {
53316
      this.ex = null;
53317
    }
53318
 
53319
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
53320
    public boolean isSetEx() {
53321
      return this.ex != null;
53322
    }
53323
 
53324
    public void setExIsSet(boolean value) {
53325
      if (!value) {
53326
        this.ex = null;
53327
      }
53328
    }
53329
 
53330
    public void setFieldValue(_Fields field, Object value) {
53331
      switch (field) {
53332
      case SUCCESS:
53333
        if (value == null) {
53334
          unsetSuccess();
53335
        } else {
53336
          setSuccess((Boolean)value);
53337
        }
53338
        break;
53339
 
53340
      case EX:
53341
        if (value == null) {
53342
          unsetEx();
53343
        } else {
53344
          setEx((TransactionServiceException)value);
53345
        }
53346
        break;
53347
 
53348
      }
53349
    }
53350
 
53351
    public Object getFieldValue(_Fields field) {
53352
      switch (field) {
53353
      case SUCCESS:
53354
        return Boolean.valueOf(isSuccess());
53355
 
53356
      case EX:
53357
        return getEx();
53358
 
53359
      }
53360
      throw new IllegalStateException();
53361
    }
53362
 
53363
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53364
    public boolean isSet(_Fields field) {
53365
      if (field == null) {
53366
        throw new IllegalArgumentException();
53367
      }
53368
 
53369
      switch (field) {
53370
      case SUCCESS:
53371
        return isSetSuccess();
53372
      case EX:
53373
        return isSetEx();
53374
      }
53375
      throw new IllegalStateException();
53376
    }
53377
 
53378
    @Override
53379
    public boolean equals(Object that) {
53380
      if (that == null)
53381
        return false;
53382
      if (that instanceof acceptOrdersForItemId_result)
53383
        return this.equals((acceptOrdersForItemId_result)that);
53384
      return false;
53385
    }
53386
 
53387
    public boolean equals(acceptOrdersForItemId_result that) {
53388
      if (that == null)
53389
        return false;
53390
 
53391
      boolean this_present_success = true;
53392
      boolean that_present_success = true;
53393
      if (this_present_success || that_present_success) {
53394
        if (!(this_present_success && that_present_success))
53395
          return false;
53396
        if (this.success != that.success)
53397
          return false;
53398
      }
53399
 
53400
      boolean this_present_ex = true && this.isSetEx();
53401
      boolean that_present_ex = true && that.isSetEx();
53402
      if (this_present_ex || that_present_ex) {
53403
        if (!(this_present_ex && that_present_ex))
53404
          return false;
53405
        if (!this.ex.equals(that.ex))
53406
          return false;
53407
      }
53408
 
53409
      return true;
53410
    }
53411
 
53412
    @Override
53413
    public int hashCode() {
53414
      return 0;
53415
    }
53416
 
53417
    public int compareTo(acceptOrdersForItemId_result other) {
53418
      if (!getClass().equals(other.getClass())) {
53419
        return getClass().getName().compareTo(other.getClass().getName());
53420
      }
53421
 
53422
      int lastComparison = 0;
53423
      acceptOrdersForItemId_result typedOther = (acceptOrdersForItemId_result)other;
53424
 
53425
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
53426
      if (lastComparison != 0) {
53427
        return lastComparison;
53428
      }
53429
      if (isSetSuccess()) {
53430
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
53431
        if (lastComparison != 0) {
53432
          return lastComparison;
53433
        }
53434
      }
53435
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
53436
      if (lastComparison != 0) {
53437
        return lastComparison;
53438
      }
53439
      if (isSetEx()) {
53440
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
53441
        if (lastComparison != 0) {
53442
          return lastComparison;
53443
        }
53444
      }
53445
      return 0;
53446
    }
53447
 
53448
    public _Fields fieldForId(int fieldId) {
53449
      return _Fields.findByThriftId(fieldId);
53450
    }
53451
 
53452
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53453
      org.apache.thrift.protocol.TField field;
53454
      iprot.readStructBegin();
53455
      while (true)
53456
      {
53457
        field = iprot.readFieldBegin();
53458
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
53459
          break;
53460
        }
53461
        switch (field.id) {
53462
          case 0: // SUCCESS
53463
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
53464
              this.success = iprot.readBool();
53465
              setSuccessIsSet(true);
53466
            } else { 
53467
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53468
            }
53469
            break;
53470
          case 1: // EX
53471
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
53472
              this.ex = new TransactionServiceException();
53473
              this.ex.read(iprot);
53474
            } else { 
53475
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53476
            }
53477
            break;
53478
          default:
53479
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53480
        }
53481
        iprot.readFieldEnd();
53482
      }
53483
      iprot.readStructEnd();
53484
      validate();
53485
    }
53486
 
53487
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53488
      oprot.writeStructBegin(STRUCT_DESC);
53489
 
53490
      if (this.isSetSuccess()) {
53491
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53492
        oprot.writeBool(this.success);
53493
        oprot.writeFieldEnd();
53494
      } else if (this.isSetEx()) {
53495
        oprot.writeFieldBegin(EX_FIELD_DESC);
53496
        this.ex.write(oprot);
53497
        oprot.writeFieldEnd();
53498
      }
53499
      oprot.writeFieldStop();
53500
      oprot.writeStructEnd();
53501
    }
53502
 
53503
    @Override
53504
    public String toString() {
53505
      StringBuilder sb = new StringBuilder("acceptOrdersForItemId_result(");
53506
      boolean first = true;
53507
 
53508
      sb.append("success:");
53509
      sb.append(this.success);
53510
      first = false;
53511
      if (!first) sb.append(", ");
53512
      sb.append("ex:");
53513
      if (this.ex == null) {
53514
        sb.append("null");
53515
      } else {
53516
        sb.append(this.ex);
53517
      }
53518
      first = false;
53519
      sb.append(")");
53520
      return sb.toString();
53521
    }
53522
 
53523
    public void validate() throws org.apache.thrift.TException {
53524
      // check for required fields
53525
    }
53526
 
53527
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53528
      try {
53529
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53530
      } catch (org.apache.thrift.TException te) {
53531
        throw new java.io.IOException(te);
53532
      }
53533
    }
53534
 
53535
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53536
      try {
53537
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53538
      } catch (org.apache.thrift.TException te) {
53539
        throw new java.io.IOException(te);
53540
      }
53541
    }
53542
 
53543
  }
53544
 
68 ashish 53545
}