Subversion Repositories SmartDukaan

Rev

Rev 4065 | Rev 4192 | 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
 
3430 rajveer 202
    public boolean billOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
3061 chandransh 203
 
204
    /**
205
     * Add billing details such as the bill number and the biller to the Order.
206
     * Should be used when the bill is issued by a 3rd party and we've to feed
207
     * the information into our system.
208
     * 
209
     * @param orderId
210
     * @param invoice_number
211
     * @param billed_by
212
     */
3430 rajveer 213
    public boolean addBillingDetails(long orderId, String invoice_number, String billed_by) throws TransactionServiceException, org.apache.thrift.TException;
3061 chandransh 214
 
215
    /**
216
     * Adds jacket number, item number and IMEI no. to the order. Doesn't update
217
     * the IMEI no. if a -1 is supplied.
218
     * Also, it generates an invoice number for the order, marks the order as
219
     * BILLED and sets the billing timestamp.
220
     * It should be used when we are billing the orders ourselves.
221
     * 
222
     * Returns false if it doesn't find the order with the given ID.
223
     * 
224
     * @param orderId
225
     * @param jacketNumber
226
     * @param imeiNumber
227
     * @param itemNumber
228
     * @param billedBy
229
     * @param billingType
230
     */
3430 rajveer 231
    public boolean addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws TransactionServiceException, org.apache.thrift.TException;
3061 chandransh 232
 
233
    /**
234
     * Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
235
     * given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
236
     * 
758 chandransh 237
     * @param warehouseId
238
     * @param providerId
3061 chandransh 239
     * @param cod
758 chandransh 240
     */
3430 rajveer 241
    public boolean markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException;
758 chandransh 242
 
1114 chandransh 243
    /**
244
     * Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
245
     * Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
246
     * Raises an exception if we encounter report for an AWB number that we did not ship.
247
     * 
248
     * @param providerId
249
     * @param pickupDetails
250
     */
3430 rajveer 251
    public List<Order> markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws TransactionServiceException, org.apache.thrift.TException;
1114 chandransh 252
 
1133 chandransh 253
    /**
254
     * Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
255
     * the name of the receiver.
256
     * Raises an exception if we encounter report for an AWB number that we did not ship.
257
     * 
258
     * @param providerId
259
     * @param deliveredOrders
260
     */
3430 rajveer 261
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TransactionServiceException, org.apache.thrift.TException;
1133 chandransh 262
 
263
    /**
264
     * Mark all orders with AWBs in the given map as failed. Also sets the delivery timestamp.
265
     * Raises an exception if we encounter report for an AWB number that we did not ship.
266
     * 
267
     * @param providerId
268
     * @param returnedOrders
269
     */
3430 rajveer 270
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, org.apache.thrift.TException;
1133 chandransh 271
 
1245 chandransh 272
    /**
273
     * Update the status description of orders whose AWB numbers are keys of the Map.
274
     * 
275
     * @param providerId
276
     * @param undeliveredOrders
277
     */
3430 rajveer 278
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, org.apache.thrift.TException;
1245 chandransh 279
 
1406 ankur.sing 280
    /**
281
     * Returns the list of orders whose delivery time has passed but have not been
282
     * delivered yet for the given provider and warehouse. To get a complete list of
283
     * undelivered orders, pass them as -1.
284
     * Returns an empty list if no such orders exist.
285
     * 
286
     * @param providerId
287
     * @param warehouseId
288
     */
3430 rajveer 289
    public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException;
1406 ankur.sing 290
 
1598 ankur.sing 291
    /**
2538 chandransh 292
     * 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.
293
     * Returns the final flag status.
294
     * Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
295
     * 
296
     * @param orderId
297
     */
3430 rajveer 298
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
2538 chandransh 299
 
300
    /**
301
     * Sends out an email to the account manager of the original courier provider used to ship the order.
302
     * If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUESTED.
303
     * If the order status was DOA_PICKUP_REQUESTED, it is left unchanged.
304
     * For any other status, it returns false.
305
     * Throws an exception if the order with the given id couldn't be found.
306
     * 
307
     * @param orderId
308
     */
3430 rajveer 309
    public boolean requestPickupNumber(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
2538 chandransh 310
 
311
    /**
312
     * If the order status is DOA_PICKUP_REQUESTED, it does the following
313
     * 	1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
314
     * 	2. Changes order status to be DOA_PICKUP_AUTHORIZED.
315
     * 	3. Returns true
2590 chandransh 316
     * If the order is in any other status, it returns false.
2538 chandransh 317
     * Throws an exception if the order with the given id couldn't be found.
318
     * 
319
     * @param orderId
320
     * @param pickupNumber
321
     */
3430 rajveer 322
    public boolean authorizePickup(long orderId, String pickupNumber) throws TransactionServiceException, org.apache.thrift.TException;
2538 chandransh 323
 
2590 chandransh 324
    /**
2765 chandransh 325
     * Marks all DOA_PICKUP_AUTHORIZED orders of the previous day for a provider as DOA_RETURN_IN_TRANSIT.
326
     * Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
327
     * 
328
     * @param providerId
329
     * @param pickupDetails
330
     */
3430 rajveer 331
    public List<Order> markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException;
2765 chandransh 332
 
333
    /**
2601 chandransh 334
     * 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 335
     * If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
2590 chandransh 336
     * If the order is in any other state, it returns false.
337
     * Throws an exception if the order with the given id couldn't be found.
338
     * 
339
     * @param orderId
340
     */
3430 rajveer 341
    public boolean receiveReturn(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
2590 chandransh 342
 
343
    /**
2601 chandransh 344
     * Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
2615 chandransh 345
     * 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 346
     * If the order is in any other state, it returns false.
347
     * Throws an exception if the order with the given id couldn't be found.
348
     * 
349
     * @param orderId
350
     * @param isValid
351
     */
3430 rajveer 352
    public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, org.apache.thrift.TException;
2590 chandransh 353
 
2615 chandransh 354
    /**
355
     * If the order is in SALES_RET_RECEIVED or DOA_CERT_INVALID state, it does the following:
356
     * 	1. Creates a new order for processing in the BILLED state. All billing information is saved.
357
     * 	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.
358
     * 	
359
     * If the order is in DOA_CERT_VALID state, it does the following:
360
     * 	1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
361
     * 	2. Creates a return order for the warehouse executive to return the DOA material.
362
     * 	3. Marks the current order as the final DOA_RESHIPPED state.
363
     * 
364
     * Returns the id of the newly created order.
365
     * 
366
     * Throws an exception if the order with the given id couldn't be found.
367
     * 
368
     * @param orderId
369
     */
3430 rajveer 370
    public long reshipOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
2615 chandransh 371
 
372
    /**
373
     * If the order is in SALES_RET_RECEIVED, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
374
     * 	1. Creates a refund request for batch processing.
375
     * 	2. Creates a return order for the warehouse executive to return the shipped material.
376
     * 	3. Marks the current order as SALES_RET_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
377
     * 
378
     * If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
379
     * 	1. Creates a refund request for batch processing.
3226 chandransh 380
     * 	2. Cancels the reservation of the item in the warehouse.
381
     * 	3. Marks the current order as the REFUNDED final state.
2615 chandransh 382
     * 
3226 chandransh 383
     * For all COD orders, if the order is in INIT, SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
384
     * 	1. Cancels the reservation of the item in the warehouse.
385
     * 	2. Marks the current order as CANCELED.
386
     * 	
387
     * In all cases, it updates the reason for cancellation or refund and the person who performed the action.
388
     *  
2615 chandransh 389
     * Returns True if it is successful, False otherwise.
390
     * 
391
     * Throws an exception if the order with the given id couldn't be found.
392
     * 
393
     * @param orderId
3226 chandransh 394
     * @param refundedBy
395
     * @param reason
2615 chandransh 396
     */
3430 rajveer 397
    public boolean refundOrder(long orderId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException;
2615 chandransh 398
 
2690 chandransh 399
    /**
400
     * Get all return orders created between the from and to dates for the given warehouse.
401
     * Ignores the warehouse if it is passed as -1.
402
     * 
403
     * @param warehouseId
404
     * @param fromDate
405
     * @param toDate
406
     */
3430 rajveer 407
    public List<ReturnOrder> getReturnOrders(long warehouseId, long fromDate, long toDate) throws org.apache.thrift.TException;
2690 chandransh 408
 
409
    /**
2700 chandransh 410
     * Returns the ReturnOrder corresponding to the given id.
411
     * Throws an exception if the return order with the given id couldn't be found.
412
     * 
413
     * @param id
414
     */
3430 rajveer 415
    public ReturnOrder getReturnOrder(long id) throws TransactionServiceException, org.apache.thrift.TException;
2700 chandransh 416
 
417
    /**
2690 chandransh 418
     * Marks the return order with the given id as processed. Raises an exception if no such return order exists.
419
     * 
420
     * @param returnOrderId
421
     */
3430 rajveer 422
    public void processReturn(long returnOrderId) throws TransactionServiceException, org.apache.thrift.TException;
2690 chandransh 423
 
2819 chandransh 424
    /**
425
     * Creates a purchase order corresponding to all the pending orders of the given warehouse.
2842 chandransh 426
     * Returns the PO no. of the newly created purchase order. Returns -1 no new purchase order had to be created.
2819 chandransh 427
     * 
428
     * @param warehouseId
429
     */
3430 rajveer 430
    public long createPurchaseOrder(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
2819 chandransh 431
 
3451 chandransh 432
    /**
433
     * 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.
434
     * 
435
     * @param orderId
436
     * @param weight
437
     */
438
    public Order updateWeight(long orderId, double weight) throws TransactionServiceException, org.apache.thrift.TException;
439
 
3469 chandransh 440
    /**
441
     * Change the item to be shipped for this order. Also adjusts the reservation in the inventory accordingly.
442
     * Currently, it also ensures that only a different color of the given item is shipped.
443
     * 
444
     * @param orderId
445
     * @param itemId
446
     */
447
    public Order changeItem(long orderId, long itemId) throws TransactionServiceException, org.apache.thrift.TException;
448
 
449
    /**
450
     * Moves the given order to the given warehouse. Also adjusts the inventory reservations accordingly.
451
     * 
452
     * @param orderId
453
     * @param warehouseId
454
     */
455
    public Order shiftToWarehouse(long orderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
456
 
3553 chandransh 457
    /**
458
     * Adds the given delay reason to the given order.
3986 chandransh 459
     * Increases the expected delivery time of the given order by the given no. of days.
3553 chandransh 460
     * Raises an exception if no order with the given id can be found.
461
     * 
462
     * @param orderId
463
     * @param delayReason
3986 chandransh 464
     * @param furtherDelay
3553 chandransh 465
     */
3986 chandransh 466
    public boolean addDelayReason(long orderId, DelayReason delayReason, long furtherDelay) throws TransactionServiceException, org.apache.thrift.TException;
3553 chandransh 467
 
3956 chandransh 468
    /**
469
     * Marks the COD orders with given AWB nos. as having been processed.
470
     * Updates the captured amount for the corresponding payment.
471
     * 
472
     * Returns a map of AWBs which were not processed and the associated reason. An AWB is not processed if:
473
     * 1. There is no order corresponding to an AWB number.
474
     * 2. The captured amount for a payment exceeds the total payment.
475
     * 3. The order corresponding to an AWB no. is in a state prior to DELIVERY_SUCCESS.
476
     * 
477
     * @param collectedAmountMap
478
     * @param xferBy
479
     * @param xferTxnId
480
     * @param xferDate
481
     */
482
    public Map<String,String> reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate) throws TransactionServiceException, org.apache.thrift.TException;
483
 
4008 mandeep.dh 484
    /**
4065 mandeep.dh 485
     * Returns the list of transaction ids that require some extra processing and
4008 mandeep.dh 486
     * which belong to a particular category. This is currently used by CRM
4065 mandeep.dh 487
     * application. If no such transaction ids are present, it returns an empty list.
4008 mandeep.dh 488
     * 
489
     * @param category
490
     */
491
    public List<Long> getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category) throws org.apache.thrift.TException;
492
 
493
    /**
494
     * Marks a particular transaction as processed for a particular cateogory.
4065 mandeep.dh 495
     * It essentially deletes the transaction id record for a particular
496
     * processing type category (if present) from DB.
497
     * This is currently used by CRM application.
4008 mandeep.dh 498
     * 
499
     * @param transactionId
500
     * @param category
501
     */
502
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category) throws org.apache.thrift.TException;
503
 
4018 chandransh 504
    /**
505
     * Returns a map containing the number of risky orders keyed by item id. A risky order
506
     * is defined as one whose shipping date is about to expire.
507
     */
508
    public Map<Long,Long> getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException;
509
 
68 ashish 510
  }
511
 
3430 rajveer 512
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
513
 
514
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
515
 
516
    public void getTransaction(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransaction_call> resultHandler) throws org.apache.thrift.TException;
517
 
518
    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;
519
 
520
    public void getTransactionsForShoppingCartId(long shoppingCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsForShoppingCartId_call> resultHandler) throws org.apache.thrift.TException;
521
 
522
    public void getTransactionStatus(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
523
 
524
    public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
525
 
526
    public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException;
527
 
528
    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;
529
 
4133 chandransh 530
    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;
531
 
532
    public void getOrderCount(List<OrderStatus> statuses, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderCount_call> resultHandler) throws org.apache.thrift.TException;
533
 
3430 rajveer 534
    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;
535
 
3451 chandransh 536
    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 537
 
538
    public void getReturnableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException;
539
 
540
    public void getCancellableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCancellableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException;
541
 
542
    public void changeOrderStatus(long orderId, OrderStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeOrderStatus_call> resultHandler) throws org.apache.thrift.TException;
543
 
544
    public void getOrdersForTransaction(long transactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersForTransaction_call> resultHandler) throws org.apache.thrift.TException;
545
 
546
    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;
547
 
548
    public void createOrder(Order order, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrder_call> resultHandler) throws org.apache.thrift.TException;
549
 
550
    public void getOrder(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrder_call> resultHandler) throws org.apache.thrift.TException;
551
 
552
    public void getLineItemsForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLineItemsForOrder_call> resultHandler) throws org.apache.thrift.TException;
553
 
554
    public void getOrderForCustomer(long orderId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForCustomer_call> resultHandler) throws org.apache.thrift.TException;
555
 
556
    public void getAlerts(long orderId, boolean valid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAlerts_call> resultHandler) throws org.apache.thrift.TException;
557
 
558
    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;
559
 
560
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException;
561
 
562
    public void getNoOfCustomersWithSuccessfulTransaction(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNoOfCustomersWithSuccessfulTransaction_call> resultHandler) throws org.apache.thrift.TException;
563
 
564
    public void getValidOrdersAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrdersAmountRange_call> resultHandler) throws org.apache.thrift.TException;
565
 
566
    public void getValidOrders(long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrders_call> resultHandler) throws org.apache.thrift.TException;
567
 
568
    public void batchOrders(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.batchOrders_call> resultHandler) throws org.apache.thrift.TException;
569
 
570
    public void markOrderAsOutOfStock(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderAsOutOfStock_call> resultHandler) throws org.apache.thrift.TException;
571
 
572
    public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrder_call> resultHandler) throws org.apache.thrift.TException;
573
 
574
    public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrder_call> resultHandler) throws org.apache.thrift.TException;
575
 
576
    public void billOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.billOrder_call> resultHandler) throws org.apache.thrift.TException;
577
 
578
    public void addBillingDetails(long orderId, String invoice_number, String billed_by, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBillingDetails_call> resultHandler) throws org.apache.thrift.TException;
579
 
580
    public void addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addJacketNumber_call> resultHandler) throws org.apache.thrift.TException;
581
 
582
    public void markOrdersAsManifested(long warehouseId, long providerId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsManifested_call> resultHandler) throws org.apache.thrift.TException;
583
 
584
    public void markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
585
 
586
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsDelivered_call> resultHandler) throws org.apache.thrift.TException;
587
 
588
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsFailed_call> resultHandler) throws org.apache.thrift.TException;
589
 
590
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateNonDeliveryReason_call> resultHandler) throws org.apache.thrift.TException;
591
 
592
    public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException;
593
 
594
    public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException;
595
 
596
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException;
597
 
598
    public void authorizePickup(long orderId, String pickupNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authorizePickup_call> resultHandler) throws org.apache.thrift.TException;
599
 
600
    public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
601
 
602
    public void receiveReturn(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveReturn_call> resultHandler) throws org.apache.thrift.TException;
603
 
604
    public void validateDoa(long orderId, boolean isValid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateDoa_call> resultHandler) throws org.apache.thrift.TException;
605
 
606
    public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipOrder_call> resultHandler) throws org.apache.thrift.TException;
607
 
608
    public void refundOrder(long orderId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundOrder_call> resultHandler) throws org.apache.thrift.TException;
609
 
610
    public void getReturnOrders(long warehouseId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrders_call> resultHandler) throws org.apache.thrift.TException;
611
 
612
    public void getReturnOrder(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrder_call> resultHandler) throws org.apache.thrift.TException;
613
 
614
    public void processReturn(long returnOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processReturn_call> resultHandler) throws org.apache.thrift.TException;
615
 
616
    public void createPurchaseOrder(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
617
 
3451 chandransh 618
    public void updateWeight(long orderId, double weight, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateWeight_call> resultHandler) throws org.apache.thrift.TException;
619
 
3469 chandransh 620
    public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItem_call> resultHandler) throws org.apache.thrift.TException;
621
 
622
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException;
623
 
3986 chandransh 624
    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 625
 
3956 chandransh 626
    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;
627
 
4008 mandeep.dh 628
    public void getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException;
629
 
630
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
631
 
4018 chandransh 632
    public void getItemWiseRiskyOrdersCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemWiseRiskyOrdersCount_call> resultHandler) throws org.apache.thrift.TException;
633
 
3430 rajveer 634
  }
635
 
3374 rajveer 636
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 637
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
638
      public Factory() {}
639
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
640
        return new Client(prot);
641
      }
642
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
643
        return new Client(iprot, oprot);
644
      }
645
    }
646
 
647
    public Client(org.apache.thrift.protocol.TProtocol prot)
68 ashish 648
    {
3430 rajveer 649
      super(prot, prot);
68 ashish 650
    }
651
 
3430 rajveer 652
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 653
      super(iprot, oprot);
68 ashish 654
    }
655
 
3430 rajveer 656
    public long createTransaction(Transaction transaction) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 657
    {
658
      send_createTransaction(transaction);
132 ashish 659
      return recv_createTransaction();
68 ashish 660
    }
661
 
3430 rajveer 662
    public void send_createTransaction(Transaction transaction) throws org.apache.thrift.TException
68 ashish 663
    {
664
      createTransaction_args args = new createTransaction_args();
3430 rajveer 665
      args.setTransaction(transaction);
666
      sendBase("createTransaction", args);
68 ashish 667
    }
668
 
3430 rajveer 669
    public long recv_createTransaction() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 670
    {
671
      createTransaction_result result = new createTransaction_result();
3430 rajveer 672
      receiveBase(result, "createTransaction");
132 ashish 673
      if (result.isSetSuccess()) {
674
        return result.success;
675
      }
68 ashish 676
      if (result.ex != null) {
677
        throw result.ex;
678
      }
3430 rajveer 679
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createTransaction failed: unknown result");
68 ashish 680
    }
681
 
3430 rajveer 682
    public Transaction getTransaction(long id) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 683
    {
684
      send_getTransaction(id);
685
      return recv_getTransaction();
686
    }
687
 
3430 rajveer 688
    public void send_getTransaction(long id) throws org.apache.thrift.TException
68 ashish 689
    {
690
      getTransaction_args args = new getTransaction_args();
3430 rajveer 691
      args.setId(id);
692
      sendBase("getTransaction", args);
68 ashish 693
    }
694
 
3430 rajveer 695
    public Transaction recv_getTransaction() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 696
    {
697
      getTransaction_result result = new getTransaction_result();
3430 rajveer 698
      receiveBase(result, "getTransaction");
68 ashish 699
      if (result.isSetSuccess()) {
700
        return result.success;
701
      }
702
      if (result.ex != null) {
703
        throw result.ex;
704
      }
3430 rajveer 705
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");
68 ashish 706
    }
707
 
3430 rajveer 708
    public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 709
    {
132 ashish 710
      send_getTransactionsForCustomer(customerId, from_date, to_date, status);
68 ashish 711
      return recv_getTransactionsForCustomer();
712
    }
713
 
3430 rajveer 714
    public void send_getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws org.apache.thrift.TException
68 ashish 715
    {
716
      getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();
3430 rajveer 717
      args.setCustomerId(customerId);
718
      args.setFrom_date(from_date);
719
      args.setTo_date(to_date);
720
      args.setStatus(status);
721
      sendBase("getTransactionsForCustomer", args);
68 ashish 722
    }
723
 
3430 rajveer 724
    public List<Transaction> recv_getTransactionsForCustomer() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 725
    {
726
      getTransactionsForCustomer_result result = new getTransactionsForCustomer_result();
3430 rajveer 727
      receiveBase(result, "getTransactionsForCustomer");
68 ashish 728
      if (result.isSetSuccess()) {
729
        return result.success;
730
      }
731
      if (result.ex != null) {
732
        throw result.ex;
733
      }
3430 rajveer 734
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");
68 ashish 735
    }
736
 
3430 rajveer 737
    public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, org.apache.thrift.TException
132 ashish 738
    {
739
      send_getTransactionsForShoppingCartId(shoppingCartId);
740
      return recv_getTransactionsForShoppingCartId();
741
    }
742
 
3430 rajveer 743
    public void send_getTransactionsForShoppingCartId(long shoppingCartId) throws org.apache.thrift.TException
132 ashish 744
    {
745
      getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();
3430 rajveer 746
      args.setShoppingCartId(shoppingCartId);
747
      sendBase("getTransactionsForShoppingCartId", args);
132 ashish 748
    }
749
 
3430 rajveer 750
    public List<Transaction> recv_getTransactionsForShoppingCartId() throws TransactionServiceException, org.apache.thrift.TException
132 ashish 751
    {
752
      getTransactionsForShoppingCartId_result result = new getTransactionsForShoppingCartId_result();
3430 rajveer 753
      receiveBase(result, "getTransactionsForShoppingCartId");
132 ashish 754
      if (result.isSetSuccess()) {
755
        return result.success;
756
      }
757
      if (result.ex != null) {
758
        throw result.ex;
759
      }
3430 rajveer 760
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionsForShoppingCartId failed: unknown result");
132 ashish 761
    }
762
 
3430 rajveer 763
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 764
    {
765
      send_getTransactionStatus(transactionId);
766
      return recv_getTransactionStatus();
767
    }
768
 
3430 rajveer 769
    public void send_getTransactionStatus(long transactionId) throws org.apache.thrift.TException
68 ashish 770
    {
771
      getTransactionStatus_args args = new getTransactionStatus_args();
3430 rajveer 772
      args.setTransactionId(transactionId);
773
      sendBase("getTransactionStatus", args);
68 ashish 774
    }
775
 
3430 rajveer 776
    public TransactionStatus recv_getTransactionStatus() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 777
    {
778
      getTransactionStatus_result result = new getTransactionStatus_result();
3430 rajveer 779
      receiveBase(result, "getTransactionStatus");
68 ashish 780
      if (result.isSetSuccess()) {
781
        return result.success;
782
      }
783
      if (result.ex != null) {
784
        throw result.ex;
785
      }
3430 rajveer 786
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
68 ashish 787
    }
788
 
3430 rajveer 789
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 790
    {
791
      send_changeTransactionStatus(transactionId, status, description);
792
      return recv_changeTransactionStatus();
793
    }
794
 
3430 rajveer 795
    public void send_changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws org.apache.thrift.TException
68 ashish 796
    {
797
      changeTransactionStatus_args args = new changeTransactionStatus_args();
3430 rajveer 798
      args.setTransactionId(transactionId);
799
      args.setStatus(status);
800
      args.setDescription(description);
801
      sendBase("changeTransactionStatus", args);
68 ashish 802
    }
803
 
3430 rajveer 804
    public boolean recv_changeTransactionStatus() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 805
    {
806
      changeTransactionStatus_result result = new changeTransactionStatus_result();
3430 rajveer 807
      receiveBase(result, "changeTransactionStatus");
68 ashish 808
      if (result.isSetSuccess()) {
809
        return result.success;
810
      }
811
      if (result.ex != null) {
812
        throw result.ex;
813
      }
3430 rajveer 814
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");
68 ashish 815
    }
816
 
3430 rajveer 817
    public boolean enqueueTransactionInfoEmail(long transactionId) throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 818
    {
1398 varun.gupt 819
      send_enqueueTransactionInfoEmail(transactionId);
820
      return recv_enqueueTransactionInfoEmail();
1382 varun.gupt 821
    }
822
 
3430 rajveer 823
    public void send_enqueueTransactionInfoEmail(long transactionId) throws org.apache.thrift.TException
1382 varun.gupt 824
    {
1398 varun.gupt 825
      enqueueTransactionInfoEmail_args args = new enqueueTransactionInfoEmail_args();
3430 rajveer 826
      args.setTransactionId(transactionId);
827
      sendBase("enqueueTransactionInfoEmail", args);
1382 varun.gupt 828
    }
829
 
3430 rajveer 830
    public boolean recv_enqueueTransactionInfoEmail() throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 831
    {
1398 varun.gupt 832
      enqueueTransactionInfoEmail_result result = new enqueueTransactionInfoEmail_result();
3430 rajveer 833
      receiveBase(result, "enqueueTransactionInfoEmail");
1382 varun.gupt 834
      if (result.isSetSuccess()) {
835
        return result.success;
836
      }
837
      if (result.ex != null) {
838
        throw result.ex;
839
      }
3430 rajveer 840
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enqueueTransactionInfoEmail failed: unknown result");
1382 varun.gupt 841
    }
842
 
3430 rajveer 843
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 844
    {
483 rajveer 845
      send_getAllOrders(status, from_date, to_date, warehouse_id);
846
      return recv_getAllOrders();
68 ashish 847
    }
848
 
3430 rajveer 849
    public void send_getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws org.apache.thrift.TException
68 ashish 850
    {
483 rajveer 851
      getAllOrders_args args = new getAllOrders_args();
3430 rajveer 852
      args.setStatus(status);
853
      args.setFrom_date(from_date);
854
      args.setTo_date(to_date);
855
      args.setWarehouse_id(warehouse_id);
856
      sendBase("getAllOrders", args);
68 ashish 857
    }
858
 
3430 rajveer 859
    public List<Order> recv_getAllOrders() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 860
    {
483 rajveer 861
      getAllOrders_result result = new getAllOrders_result();
3430 rajveer 862
      receiveBase(result, "getAllOrders");
68 ashish 863
      if (result.isSetSuccess()) {
864
        return result.success;
865
      }
866
      if (result.ex != null) {
867
        throw result.ex;
868
      }
3430 rajveer 869
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
68 ashish 870
    }
871
 
4133 chandransh 872
    public List<Order> getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException
873
    {
874
      send_getOrdersInBatch(statuses, offset, limit, warehouse_id);
875
      return recv_getOrdersInBatch();
876
    }
877
 
878
    public void send_getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws org.apache.thrift.TException
879
    {
880
      getOrdersInBatch_args args = new getOrdersInBatch_args();
881
      args.setStatuses(statuses);
882
      args.setOffset(offset);
883
      args.setLimit(limit);
884
      args.setWarehouse_id(warehouse_id);
885
      sendBase("getOrdersInBatch", args);
886
    }
887
 
888
    public List<Order> recv_getOrdersInBatch() throws TransactionServiceException, org.apache.thrift.TException
889
    {
890
      getOrdersInBatch_result result = new getOrdersInBatch_result();
891
      receiveBase(result, "getOrdersInBatch");
892
      if (result.isSetSuccess()) {
893
        return result.success;
894
      }
895
      if (result.ex != null) {
896
        throw result.ex;
897
      }
898
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersInBatch failed: unknown result");
899
    }
900
 
901
    public int getOrderCount(List<OrderStatus> statuses, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
902
    {
903
      send_getOrderCount(statuses, warehouseId);
904
      return recv_getOrderCount();
905
    }
906
 
907
    public void send_getOrderCount(List<OrderStatus> statuses, long warehouseId) throws org.apache.thrift.TException
908
    {
909
      getOrderCount_args args = new getOrderCount_args();
910
      args.setStatuses(statuses);
911
      args.setWarehouseId(warehouseId);
912
      sendBase("getOrderCount", args);
913
    }
914
 
915
    public int recv_getOrderCount() throws TransactionServiceException, org.apache.thrift.TException
916
    {
917
      getOrderCount_result result = new getOrderCount_result();
918
      receiveBase(result, "getOrderCount");
919
      if (result.isSetSuccess()) {
920
        return result.success;
921
      }
922
      if (result.ex != null) {
923
        throw result.ex;
924
      }
925
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderCount failed: unknown result");
926
    }
927
 
3430 rajveer 928
    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 929
    {
930
      send_getOrdersByBillingDate(status, start_billing_date, end_billing_date, warehouse_id);
931
      return recv_getOrdersByBillingDate();
932
    }
933
 
3430 rajveer 934
    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 935
    {
936
      getOrdersByBillingDate_args args = new getOrdersByBillingDate_args();
3430 rajveer 937
      args.setStatus(status);
938
      args.setStart_billing_date(start_billing_date);
939
      args.setEnd_billing_date(end_billing_date);
940
      args.setWarehouse_id(warehouse_id);
941
      sendBase("getOrdersByBillingDate", args);
1022 varun.gupt 942
    }
943
 
3430 rajveer 944
    public List<Order> recv_getOrdersByBillingDate() throws TransactionServiceException, org.apache.thrift.TException
1022 varun.gupt 945
    {
946
      getOrdersByBillingDate_result result = new getOrdersByBillingDate_result();
3430 rajveer 947
      receiveBase(result, "getOrdersByBillingDate");
1022 varun.gupt 948
      if (result.isSetSuccess()) {
949
        return result.success;
950
      }
951
      if (result.ex != null) {
952
        throw result.ex;
953
      }
3430 rajveer 954
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersByBillingDate failed: unknown result");
1022 varun.gupt 955
    }
956
 
3451 chandransh 957
    public List<Order> getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException
3427 chandransh 958
    {
3451 chandransh 959
      send_getOrdersByShippingDate(fromShippingDate, toShippingDate, providerId, warehouseId, cod);
3427 chandransh 960
      return recv_getOrdersByShippingDate();
961
    }
962
 
3451 chandransh 963
    public void send_getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod) throws org.apache.thrift.TException
3427 chandransh 964
    {
965
      getOrdersByShippingDate_args args = new getOrdersByShippingDate_args();
3430 rajveer 966
      args.setFromShippingDate(fromShippingDate);
967
      args.setToShippingDate(toShippingDate);
968
      args.setProviderId(providerId);
969
      args.setWarehouseId(warehouseId);
3451 chandransh 970
      args.setCod(cod);
3430 rajveer 971
      sendBase("getOrdersByShippingDate", args);
3427 chandransh 972
    }
973
 
3430 rajveer 974
    public List<Order> recv_getOrdersByShippingDate() throws TransactionServiceException, org.apache.thrift.TException
3427 chandransh 975
    {
976
      getOrdersByShippingDate_result result = new getOrdersByShippingDate_result();
3430 rajveer 977
      receiveBase(result, "getOrdersByShippingDate");
3427 chandransh 978
      if (result.isSetSuccess()) {
979
        return result.success;
980
      }
981
      if (result.ex != null) {
982
        throw result.ex;
983
      }
3430 rajveer 984
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersByShippingDate failed: unknown result");
3427 chandransh 985
    }
986
 
3430 rajveer 987
    public List<Long> getReturnableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 988
    {
989
      send_getReturnableOrdersForCustomer(customer_id, limit);
990
      return recv_getReturnableOrdersForCustomer();
991
    }
992
 
3430 rajveer 993
    public void send_getReturnableOrdersForCustomer(long customer_id, long limit) throws org.apache.thrift.TException
1382 varun.gupt 994
    {
995
      getReturnableOrdersForCustomer_args args = new getReturnableOrdersForCustomer_args();
3430 rajveer 996
      args.setCustomer_id(customer_id);
997
      args.setLimit(limit);
998
      sendBase("getReturnableOrdersForCustomer", args);
1382 varun.gupt 999
    }
1000
 
3430 rajveer 1001
    public List<Long> recv_getReturnableOrdersForCustomer() throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 1002
    {
1003
      getReturnableOrdersForCustomer_result result = new getReturnableOrdersForCustomer_result();
3430 rajveer 1004
      receiveBase(result, "getReturnableOrdersForCustomer");
1382 varun.gupt 1005
      if (result.isSetSuccess()) {
1006
        return result.success;
1007
      }
1008
      if (result.ex != null) {
1009
        throw result.ex;
1010
      }
3430 rajveer 1011
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnableOrdersForCustomer failed: unknown result");
1382 varun.gupt 1012
    }
1013
 
3430 rajveer 1014
    public List<Long> getCancellableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 1015
    {
1016
      send_getCancellableOrdersForCustomer(customer_id, limit);
1017
      return recv_getCancellableOrdersForCustomer();
1018
    }
1019
 
3430 rajveer 1020
    public void send_getCancellableOrdersForCustomer(long customer_id, long limit) throws org.apache.thrift.TException
1382 varun.gupt 1021
    {
1022
      getCancellableOrdersForCustomer_args args = new getCancellableOrdersForCustomer_args();
3430 rajveer 1023
      args.setCustomer_id(customer_id);
1024
      args.setLimit(limit);
1025
      sendBase("getCancellableOrdersForCustomer", args);
1382 varun.gupt 1026
    }
1027
 
3430 rajveer 1028
    public List<Long> recv_getCancellableOrdersForCustomer() throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 1029
    {
1030
      getCancellableOrdersForCustomer_result result = new getCancellableOrdersForCustomer_result();
3430 rajveer 1031
      receiveBase(result, "getCancellableOrdersForCustomer");
1382 varun.gupt 1032
      if (result.isSetSuccess()) {
1033
        return result.success;
1034
      }
1035
      if (result.ex != null) {
1036
        throw result.ex;
1037
      }
3430 rajveer 1038
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCancellableOrdersForCustomer failed: unknown result");
1382 varun.gupt 1039
    }
1040
 
3430 rajveer 1041
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1042
    {
483 rajveer 1043
      send_changeOrderStatus(orderId, status, description);
1044
      return recv_changeOrderStatus();
68 ashish 1045
    }
1046
 
3430 rajveer 1047
    public void send_changeOrderStatus(long orderId, OrderStatus status, String description) throws org.apache.thrift.TException
68 ashish 1048
    {
483 rajveer 1049
      changeOrderStatus_args args = new changeOrderStatus_args();
3430 rajveer 1050
      args.setOrderId(orderId);
1051
      args.setStatus(status);
1052
      args.setDescription(description);
1053
      sendBase("changeOrderStatus", args);
68 ashish 1054
    }
1055
 
3430 rajveer 1056
    public boolean recv_changeOrderStatus() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1057
    {
483 rajveer 1058
      changeOrderStatus_result result = new changeOrderStatus_result();
3430 rajveer 1059
      receiveBase(result, "changeOrderStatus");
68 ashish 1060
      if (result.isSetSuccess()) {
1061
        return result.success;
1062
      }
1063
      if (result.ex != null) {
1064
        throw result.ex;
1065
      }
3430 rajveer 1066
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
68 ashish 1067
    }
1068
 
3430 rajveer 1069
    public List<Order> getOrdersForTransaction(long transactionId, long customerId) throws TransactionServiceException, org.apache.thrift.TException
495 rajveer 1070
    {
3061 chandransh 1071
      send_getOrdersForTransaction(transactionId, customerId);
1072
      return recv_getOrdersForTransaction();
495 rajveer 1073
    }
1074
 
3430 rajveer 1075
    public void send_getOrdersForTransaction(long transactionId, long customerId) throws org.apache.thrift.TException
495 rajveer 1076
    {
3061 chandransh 1077
      getOrdersForTransaction_args args = new getOrdersForTransaction_args();
3430 rajveer 1078
      args.setTransactionId(transactionId);
1079
      args.setCustomerId(customerId);
1080
      sendBase("getOrdersForTransaction", args);
495 rajveer 1081
    }
1082
 
3430 rajveer 1083
    public List<Order> recv_getOrdersForTransaction() throws TransactionServiceException, org.apache.thrift.TException
495 rajveer 1084
    {
3061 chandransh 1085
      getOrdersForTransaction_result result = new getOrdersForTransaction_result();
3430 rajveer 1086
      receiveBase(result, "getOrdersForTransaction");
495 rajveer 1087
      if (result.isSetSuccess()) {
1088
        return result.success;
1089
      }
1090
      if (result.ex != null) {
1091
        throw result.ex;
1092
      }
3430 rajveer 1093
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersForTransaction failed: unknown result");
495 rajveer 1094
    }
1095
 
3430 rajveer 1096
    public List<Order> getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws TransactionServiceException, org.apache.thrift.TException
1148 chandransh 1097
    {
3061 chandransh 1098
      send_getOrdersForCustomer(customerId, from_date, to_date, statuses);
1099
      return recv_getOrdersForCustomer();
1148 chandransh 1100
    }
1101
 
3430 rajveer 1102
    public void send_getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws org.apache.thrift.TException
1148 chandransh 1103
    {
3061 chandransh 1104
      getOrdersForCustomer_args args = new getOrdersForCustomer_args();
3430 rajveer 1105
      args.setCustomerId(customerId);
1106
      args.setFrom_date(from_date);
1107
      args.setTo_date(to_date);
1108
      args.setStatuses(statuses);
1109
      sendBase("getOrdersForCustomer", args);
1148 chandransh 1110
    }
1111
 
3430 rajveer 1112
    public List<Order> recv_getOrdersForCustomer() throws TransactionServiceException, org.apache.thrift.TException
1148 chandransh 1113
    {
3061 chandransh 1114
      getOrdersForCustomer_result result = new getOrdersForCustomer_result();
3430 rajveer 1115
      receiveBase(result, "getOrdersForCustomer");
1148 chandransh 1116
      if (result.isSetSuccess()) {
1117
        return result.success;
1118
      }
1119
      if (result.ex != null) {
1120
        throw result.ex;
1121
      }
3430 rajveer 1122
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersForCustomer failed: unknown result");
1148 chandransh 1123
    }
1124
 
3430 rajveer 1125
    public long createOrder(Order order) throws TransactionServiceException, org.apache.thrift.TException
923 rajveer 1126
    {
3061 chandransh 1127
      send_createOrder(order);
1128
      return recv_createOrder();
923 rajveer 1129
    }
1130
 
3430 rajveer 1131
    public void send_createOrder(Order order) throws org.apache.thrift.TException
923 rajveer 1132
    {
3061 chandransh 1133
      createOrder_args args = new createOrder_args();
3430 rajveer 1134
      args.setOrder(order);
1135
      sendBase("createOrder", args);
923 rajveer 1136
    }
1137
 
3430 rajveer 1138
    public long recv_createOrder() throws TransactionServiceException, org.apache.thrift.TException
923 rajveer 1139
    {
3061 chandransh 1140
      createOrder_result result = new createOrder_result();
3430 rajveer 1141
      receiveBase(result, "createOrder");
923 rajveer 1142
      if (result.isSetSuccess()) {
1143
        return result.success;
1144
      }
1145
      if (result.ex != null) {
1146
        throw result.ex;
1147
      }
3430 rajveer 1148
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createOrder failed: unknown result");
923 rajveer 1149
    }
1150
 
3430 rajveer 1151
    public Order getOrder(long id) throws TransactionServiceException, org.apache.thrift.TException
923 rajveer 1152
    {
3061 chandransh 1153
      send_getOrder(id);
1154
      return recv_getOrder();
923 rajveer 1155
    }
1156
 
3430 rajveer 1157
    public void send_getOrder(long id) throws org.apache.thrift.TException
923 rajveer 1158
    {
3061 chandransh 1159
      getOrder_args args = new getOrder_args();
3430 rajveer 1160
      args.setId(id);
1161
      sendBase("getOrder", args);
923 rajveer 1162
    }
1163
 
3430 rajveer 1164
    public Order recv_getOrder() throws TransactionServiceException, org.apache.thrift.TException
923 rajveer 1165
    {
3061 chandransh 1166
      getOrder_result result = new getOrder_result();
3430 rajveer 1167
      receiveBase(result, "getOrder");
923 rajveer 1168
      if (result.isSetSuccess()) {
1169
        return result.success;
1170
      }
1171
      if (result.ex != null) {
1172
        throw result.ex;
1173
      }
3430 rajveer 1174
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrder failed: unknown result");
923 rajveer 1175
    }
1176
 
3430 rajveer 1177
    public List<LineItem> getLineItemsForOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1178
    {
3061 chandransh 1179
      send_getLineItemsForOrder(orderId);
1180
      return recv_getLineItemsForOrder();
68 ashish 1181
    }
1182
 
3430 rajveer 1183
    public void send_getLineItemsForOrder(long orderId) throws org.apache.thrift.TException
68 ashish 1184
    {
3061 chandransh 1185
      getLineItemsForOrder_args args = new getLineItemsForOrder_args();
3430 rajveer 1186
      args.setOrderId(orderId);
1187
      sendBase("getLineItemsForOrder", args);
68 ashish 1188
    }
1189
 
3430 rajveer 1190
    public List<LineItem> recv_getLineItemsForOrder() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1191
    {
3061 chandransh 1192
      getLineItemsForOrder_result result = new getLineItemsForOrder_result();
3430 rajveer 1193
      receiveBase(result, "getLineItemsForOrder");
68 ashish 1194
      if (result.isSetSuccess()) {
1195
        return result.success;
1196
      }
1197
      if (result.ex != null) {
1198
        throw result.ex;
1199
      }
3430 rajveer 1200
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLineItemsForOrder failed: unknown result");
68 ashish 1201
    }
1202
 
3430 rajveer 1203
    public Order getOrderForCustomer(long orderId, long customerId) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1204
    {
3061 chandransh 1205
      send_getOrderForCustomer(orderId, customerId);
1206
      return recv_getOrderForCustomer();
68 ashish 1207
    }
1208
 
3430 rajveer 1209
    public void send_getOrderForCustomer(long orderId, long customerId) throws org.apache.thrift.TException
68 ashish 1210
    {
3061 chandransh 1211
      getOrderForCustomer_args args = new getOrderForCustomer_args();
3430 rajveer 1212
      args.setOrderId(orderId);
1213
      args.setCustomerId(customerId);
1214
      sendBase("getOrderForCustomer", args);
68 ashish 1215
    }
1216
 
3430 rajveer 1217
    public Order recv_getOrderForCustomer() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1218
    {
3061 chandransh 1219
      getOrderForCustomer_result result = new getOrderForCustomer_result();
3430 rajveer 1220
      receiveBase(result, "getOrderForCustomer");
68 ashish 1221
      if (result.isSetSuccess()) {
1222
        return result.success;
1223
      }
1224
      if (result.ex != null) {
1225
        throw result.ex;
1226
      }
3430 rajveer 1227
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
68 ashish 1228
    }
1229
 
3430 rajveer 1230
    public List<Alert> getAlerts(long orderId, boolean valid) throws org.apache.thrift.TException
68 ashish 1231
    {
3061 chandransh 1232
      send_getAlerts(orderId, valid);
1233
      return recv_getAlerts();
68 ashish 1234
    }
1235
 
3430 rajveer 1236
    public void send_getAlerts(long orderId, boolean valid) throws org.apache.thrift.TException
68 ashish 1237
    {
3061 chandransh 1238
      getAlerts_args args = new getAlerts_args();
3430 rajveer 1239
      args.setOrderId(orderId);
1240
      args.setValid(valid);
1241
      sendBase("getAlerts", args);
68 ashish 1242
    }
1243
 
3430 rajveer 1244
    public List<Alert> recv_getAlerts() throws org.apache.thrift.TException
68 ashish 1245
    {
3061 chandransh 1246
      getAlerts_result result = new getAlerts_result();
3430 rajveer 1247
      receiveBase(result, "getAlerts");
68 ashish 1248
      if (result.isSetSuccess()) {
1249
        return result.success;
1250
      }
3430 rajveer 1251
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
3061 chandransh 1252
    }
1253
 
3430 rajveer 1254
    public void setAlert(long orderId, boolean unset, long type, String comment) throws org.apache.thrift.TException
3061 chandransh 1255
    {
1256
      send_setAlert(orderId, unset, type, comment);
1257
      recv_setAlert();
1258
    }
1259
 
3430 rajveer 1260
    public void send_setAlert(long orderId, boolean unset, long type, String comment) throws org.apache.thrift.TException
3061 chandransh 1261
    {
1262
      setAlert_args args = new setAlert_args();
3430 rajveer 1263
      args.setOrderId(orderId);
1264
      args.setUnset(unset);
1265
      args.setType(type);
1266
      args.setComment(comment);
1267
      sendBase("setAlert", args);
3061 chandransh 1268
    }
1269
 
3430 rajveer 1270
    public void recv_setAlert() throws org.apache.thrift.TException
3061 chandransh 1271
    {
1272
      setAlert_result result = new setAlert_result();
3430 rajveer 1273
      receiveBase(result, "setAlert");
3061 chandransh 1274
      return;
68 ashish 1275
    }
1276
 
3430 rajveer 1277
    public long getValidOrderCount() throws org.apache.thrift.TException
68 ashish 1278
    {
3061 chandransh 1279
      send_getValidOrderCount();
1280
      return recv_getValidOrderCount();
68 ashish 1281
    }
1282
 
3430 rajveer 1283
    public void send_getValidOrderCount() throws org.apache.thrift.TException
68 ashish 1284
    {
3061 chandransh 1285
      getValidOrderCount_args args = new getValidOrderCount_args();
3430 rajveer 1286
      sendBase("getValidOrderCount", args);
68 ashish 1287
    }
1288
 
3430 rajveer 1289
    public long recv_getValidOrderCount() throws org.apache.thrift.TException
68 ashish 1290
    {
3061 chandransh 1291
      getValidOrderCount_result result = new getValidOrderCount_result();
3430 rajveer 1292
      receiveBase(result, "getValidOrderCount");
68 ashish 1293
      if (result.isSetSuccess()) {
1294
        return result.success;
1295
      }
3430 rajveer 1296
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
3061 chandransh 1297
    }
1298
 
3430 rajveer 1299
    public long getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException
3061 chandransh 1300
    {
1301
      send_getNoOfCustomersWithSuccessfulTransaction();
1302
      return recv_getNoOfCustomersWithSuccessfulTransaction();
1303
    }
1304
 
3430 rajveer 1305
    public void send_getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException
3061 chandransh 1306
    {
1307
      getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();
3430 rajveer 1308
      sendBase("getNoOfCustomersWithSuccessfulTransaction", args);
3061 chandransh 1309
    }
1310
 
3430 rajveer 1311
    public long recv_getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException
3061 chandransh 1312
    {
1313
      getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();
3430 rajveer 1314
      receiveBase(result, "getNoOfCustomersWithSuccessfulTransaction");
3061 chandransh 1315
      if (result.isSetSuccess()) {
1316
        return result.success;
1317
      }
3430 rajveer 1318
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNoOfCustomersWithSuccessfulTransaction failed: unknown result");
68 ashish 1319
    }
1320
 
3430 rajveer 1321
    public List<Double> getValidOrdersAmountRange() throws org.apache.thrift.TException
68 ashish 1322
    {
3061 chandransh 1323
      send_getValidOrdersAmountRange();
1324
      return recv_getValidOrdersAmountRange();
68 ashish 1325
    }
1326
 
3430 rajveer 1327
    public void send_getValidOrdersAmountRange() throws org.apache.thrift.TException
68 ashish 1328
    {
3061 chandransh 1329
      getValidOrdersAmountRange_args args = new getValidOrdersAmountRange_args();
3430 rajveer 1330
      sendBase("getValidOrdersAmountRange", args);
68 ashish 1331
    }
1332
 
3430 rajveer 1333
    public List<Double> recv_getValidOrdersAmountRange() throws org.apache.thrift.TException
68 ashish 1334
    {
3061 chandransh 1335
      getValidOrdersAmountRange_result result = new getValidOrdersAmountRange_result();
3430 rajveer 1336
      receiveBase(result, "getValidOrdersAmountRange");
68 ashish 1337
      if (result.isSetSuccess()) {
1338
        return result.success;
1339
      }
3430 rajveer 1340
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidOrdersAmountRange failed: unknown result");
68 ashish 1341
    }
1342
 
3430 rajveer 1343
    public List<Order> getValidOrders(long limit) throws org.apache.thrift.TException
1529 ankur.sing 1344
    {
3061 chandransh 1345
      send_getValidOrders(limit);
1346
      return recv_getValidOrders();
1529 ankur.sing 1347
    }
1348
 
3430 rajveer 1349
    public void send_getValidOrders(long limit) throws org.apache.thrift.TException
1529 ankur.sing 1350
    {
3061 chandransh 1351
      getValidOrders_args args = new getValidOrders_args();
3430 rajveer 1352
      args.setLimit(limit);
1353
      sendBase("getValidOrders", args);
1529 ankur.sing 1354
    }
1355
 
3430 rajveer 1356
    public List<Order> recv_getValidOrders() throws org.apache.thrift.TException
1529 ankur.sing 1357
    {
3061 chandransh 1358
      getValidOrders_result result = new getValidOrders_result();
3430 rajveer 1359
      receiveBase(result, "getValidOrders");
1529 ankur.sing 1360
      if (result.isSetSuccess()) {
1361
        return result.success;
1362
      }
3430 rajveer 1363
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidOrders failed: unknown result");
1529 ankur.sing 1364
    }
1365
 
3430 rajveer 1366
    public List<Order> batchOrders(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
1221 chandransh 1367
    {
1368
      send_batchOrders(warehouseId);
1369
      return recv_batchOrders();
1370
    }
1371
 
3430 rajveer 1372
    public void send_batchOrders(long warehouseId) throws org.apache.thrift.TException
1221 chandransh 1373
    {
1374
      batchOrders_args args = new batchOrders_args();
3430 rajveer 1375
      args.setWarehouseId(warehouseId);
1376
      sendBase("batchOrders", args);
1221 chandransh 1377
    }
1378
 
3430 rajveer 1379
    public List<Order> recv_batchOrders() throws TransactionServiceException, org.apache.thrift.TException
1221 chandransh 1380
    {
1381
      batchOrders_result result = new batchOrders_result();
3430 rajveer 1382
      receiveBase(result, "batchOrders");
1221 chandransh 1383
      if (result.isSetSuccess()) {
1384
        return result.success;
1385
      }
1386
      if (result.ex != null) {
1387
        throw result.ex;
1388
      }
3430 rajveer 1389
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "batchOrders failed: unknown result");
1221 chandransh 1390
    }
1391
 
3430 rajveer 1392
    public boolean markOrderAsOutOfStock(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1209 chandransh 1393
    {
1394
      send_markOrderAsOutOfStock(orderId);
1395
      return recv_markOrderAsOutOfStock();
1396
    }
1397
 
3430 rajveer 1398
    public void send_markOrderAsOutOfStock(long orderId) throws org.apache.thrift.TException
1209 chandransh 1399
    {
1400
      markOrderAsOutOfStock_args args = new markOrderAsOutOfStock_args();
3430 rajveer 1401
      args.setOrderId(orderId);
1402
      sendBase("markOrderAsOutOfStock", args);
1209 chandransh 1403
    }
1404
 
3430 rajveer 1405
    public boolean recv_markOrderAsOutOfStock() throws TransactionServiceException, org.apache.thrift.TException
1209 chandransh 1406
    {
1407
      markOrderAsOutOfStock_result result = new markOrderAsOutOfStock_result();
3430 rajveer 1408
      receiveBase(result, "markOrderAsOutOfStock");
1209 chandransh 1409
      if (result.isSetSuccess()) {
1410
        return result.success;
1411
      }
1412
      if (result.ex != null) {
1413
        throw result.ex;
1414
      }
3430 rajveer 1415
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderAsOutOfStock failed: unknown result");
1209 chandransh 1416
    }
1417
 
3430 rajveer 1418
    public boolean verifyOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
758 chandransh 1419
    {
3061 chandransh 1420
      send_verifyOrder(orderId);
1421
      return recv_verifyOrder();
758 chandransh 1422
    }
1423
 
3430 rajveer 1424
    public void send_verifyOrder(long orderId) throws org.apache.thrift.TException
758 chandransh 1425
    {
3061 chandransh 1426
      verifyOrder_args args = new verifyOrder_args();
3430 rajveer 1427
      args.setOrderId(orderId);
1428
      sendBase("verifyOrder", args);
758 chandransh 1429
    }
1430
 
3430 rajveer 1431
    public boolean recv_verifyOrder() throws TransactionServiceException, org.apache.thrift.TException
758 chandransh 1432
    {
3061 chandransh 1433
      verifyOrder_result result = new verifyOrder_result();
3430 rajveer 1434
      receiveBase(result, "verifyOrder");
758 chandransh 1435
      if (result.isSetSuccess()) {
1436
        return result.success;
1437
      }
1438
      if (result.ex != null) {
1439
        throw result.ex;
1440
      }
3430 rajveer 1441
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "verifyOrder failed: unknown result");
758 chandransh 1442
    }
1443
 
3430 rajveer 1444
    public boolean acceptOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1114 chandransh 1445
    {
3061 chandransh 1446
      send_acceptOrder(orderId);
1447
      return recv_acceptOrder();
1114 chandransh 1448
    }
1449
 
3430 rajveer 1450
    public void send_acceptOrder(long orderId) throws org.apache.thrift.TException
1114 chandransh 1451
    {
3061 chandransh 1452
      acceptOrder_args args = new acceptOrder_args();
3430 rajveer 1453
      args.setOrderId(orderId);
1454
      sendBase("acceptOrder", args);
1114 chandransh 1455
    }
1456
 
3430 rajveer 1457
    public boolean recv_acceptOrder() throws TransactionServiceException, org.apache.thrift.TException
1114 chandransh 1458
    {
3061 chandransh 1459
      acceptOrder_result result = new acceptOrder_result();
3430 rajveer 1460
      receiveBase(result, "acceptOrder");
1114 chandransh 1461
      if (result.isSetSuccess()) {
1462
        return result.success;
1463
      }
1464
      if (result.ex != null) {
1465
        throw result.ex;
1466
      }
3430 rajveer 1467
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
1114 chandransh 1468
    }
1469
 
3430 rajveer 1470
    public boolean billOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1133 chandransh 1471
    {
3061 chandransh 1472
      send_billOrder(orderId);
1473
      return recv_billOrder();
1133 chandransh 1474
    }
1475
 
3430 rajveer 1476
    public void send_billOrder(long orderId) throws org.apache.thrift.TException
1133 chandransh 1477
    {
3061 chandransh 1478
      billOrder_args args = new billOrder_args();
3430 rajveer 1479
      args.setOrderId(orderId);
1480
      sendBase("billOrder", args);
1133 chandransh 1481
    }
1482
 
3430 rajveer 1483
    public boolean recv_billOrder() throws TransactionServiceException, org.apache.thrift.TException
1133 chandransh 1484
    {
3061 chandransh 1485
      billOrder_result result = new billOrder_result();
3430 rajveer 1486
      receiveBase(result, "billOrder");
3061 chandransh 1487
      if (result.isSetSuccess()) {
1488
        return result.success;
1489
      }
1133 chandransh 1490
      if (result.ex != null) {
1491
        throw result.ex;
1492
      }
3430 rajveer 1493
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "billOrder failed: unknown result");
1133 chandransh 1494
    }
1495
 
3430 rajveer 1496
    public boolean addBillingDetails(long orderId, String invoice_number, String billed_by) throws TransactionServiceException, org.apache.thrift.TException
1133 chandransh 1497
    {
3061 chandransh 1498
      send_addBillingDetails(orderId, invoice_number, billed_by);
1499
      return recv_addBillingDetails();
1133 chandransh 1500
    }
1501
 
3430 rajveer 1502
    public void send_addBillingDetails(long orderId, String invoice_number, String billed_by) throws org.apache.thrift.TException
1133 chandransh 1503
    {
3061 chandransh 1504
      addBillingDetails_args args = new addBillingDetails_args();
3430 rajveer 1505
      args.setOrderId(orderId);
1506
      args.setInvoice_number(invoice_number);
1507
      args.setBilled_by(billed_by);
1508
      sendBase("addBillingDetails", args);
1133 chandransh 1509
    }
1510
 
3430 rajveer 1511
    public boolean recv_addBillingDetails() throws TransactionServiceException, org.apache.thrift.TException
1133 chandransh 1512
    {
3061 chandransh 1513
      addBillingDetails_result result = new addBillingDetails_result();
3430 rajveer 1514
      receiveBase(result, "addBillingDetails");
3061 chandransh 1515
      if (result.isSetSuccess()) {
1516
        return result.success;
1517
      }
1133 chandransh 1518
      if (result.ex != null) {
1519
        throw result.ex;
1520
      }
3430 rajveer 1521
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
1133 chandransh 1522
    }
1523
 
3430 rajveer 1524
    public boolean addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws TransactionServiceException, org.apache.thrift.TException
1245 chandransh 1525
    {
3061 chandransh 1526
      send_addJacketNumber(orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType);
1527
      return recv_addJacketNumber();
1245 chandransh 1528
    }
1529
 
3430 rajveer 1530
    public void send_addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws org.apache.thrift.TException
1245 chandransh 1531
    {
3061 chandransh 1532
      addJacketNumber_args args = new addJacketNumber_args();
3430 rajveer 1533
      args.setOrderId(orderId);
1534
      args.setJacketNumber(jacketNumber);
1535
      args.setImeiNumber(imeiNumber);
1536
      args.setItemNumber(itemNumber);
1537
      args.setBilledBy(billedBy);
1538
      args.setBillingType(billingType);
1539
      sendBase("addJacketNumber", args);
1245 chandransh 1540
    }
1541
 
3430 rajveer 1542
    public boolean recv_addJacketNumber() throws TransactionServiceException, org.apache.thrift.TException
1245 chandransh 1543
    {
3061 chandransh 1544
      addJacketNumber_result result = new addJacketNumber_result();
3430 rajveer 1545
      receiveBase(result, "addJacketNumber");
3061 chandransh 1546
      if (result.isSetSuccess()) {
1547
        return result.success;
1548
      }
1245 chandransh 1549
      if (result.ex != null) {
1550
        throw result.ex;
1551
      }
3430 rajveer 1552
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addJacketNumber failed: unknown result");
1245 chandransh 1553
    }
1554
 
3430 rajveer 1555
    public boolean markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException
1406 ankur.sing 1556
    {
3061 chandransh 1557
      send_markOrdersAsManifested(warehouseId, providerId, cod);
1558
      return recv_markOrdersAsManifested();
1406 ankur.sing 1559
    }
1560
 
3430 rajveer 1561
    public void send_markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws org.apache.thrift.TException
1406 ankur.sing 1562
    {
3061 chandransh 1563
      markOrdersAsManifested_args args = new markOrdersAsManifested_args();
3430 rajveer 1564
      args.setWarehouseId(warehouseId);
1565
      args.setProviderId(providerId);
1566
      args.setCod(cod);
1567
      sendBase("markOrdersAsManifested", args);
1406 ankur.sing 1568
    }
1569
 
3430 rajveer 1570
    public boolean recv_markOrdersAsManifested() throws TransactionServiceException, org.apache.thrift.TException
1406 ankur.sing 1571
    {
3061 chandransh 1572
      markOrdersAsManifested_result result = new markOrdersAsManifested_result();
3430 rajveer 1573
      receiveBase(result, "markOrdersAsManifested");
1406 ankur.sing 1574
      if (result.isSetSuccess()) {
1575
        return result.success;
1576
      }
3061 chandransh 1577
      if (result.ex != null) {
1578
        throw result.ex;
1579
      }
3430 rajveer 1580
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrdersAsManifested failed: unknown result");
1406 ankur.sing 1581
    }
1582
 
3430 rajveer 1583
    public List<Order> markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1584
    {
3061 chandransh 1585
      send_markOrdersAsPickedUp(providerId, pickupDetails);
1586
      return recv_markOrdersAsPickedUp();
305 ashish 1587
    }
1588
 
3430 rajveer 1589
    public void send_markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException
305 ashish 1590
    {
3061 chandransh 1591
      markOrdersAsPickedUp_args args = new markOrdersAsPickedUp_args();
3430 rajveer 1592
      args.setProviderId(providerId);
1593
      args.setPickupDetails(pickupDetails);
1594
      sendBase("markOrdersAsPickedUp", args);
305 ashish 1595
    }
1596
 
3430 rajveer 1597
    public List<Order> recv_markOrdersAsPickedUp() throws TransactionServiceException, org.apache.thrift.TException
305 ashish 1598
    {
3061 chandransh 1599
      markOrdersAsPickedUp_result result = new markOrdersAsPickedUp_result();
3430 rajveer 1600
      receiveBase(result, "markOrdersAsPickedUp");
305 ashish 1601
      if (result.isSetSuccess()) {
1602
        return result.success;
1603
      }
3061 chandransh 1604
      if (result.ex != null) {
1605
        throw result.ex;
305 ashish 1606
      }
3430 rajveer 1607
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrdersAsPickedUp failed: unknown result");
305 ashish 1608
    }
1609
 
3430 rajveer 1610
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TransactionServiceException, org.apache.thrift.TException
1598 ankur.sing 1611
    {
3061 chandransh 1612
      send_markOrdersAsDelivered(providerId, deliveredOrders);
1613
      recv_markOrdersAsDelivered();
1598 ankur.sing 1614
    }
1615
 
3430 rajveer 1616
    public void send_markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws org.apache.thrift.TException
1598 ankur.sing 1617
    {
3061 chandransh 1618
      markOrdersAsDelivered_args args = new markOrdersAsDelivered_args();
3430 rajveer 1619
      args.setProviderId(providerId);
1620
      args.setDeliveredOrders(deliveredOrders);
1621
      sendBase("markOrdersAsDelivered", args);
1598 ankur.sing 1622
    }
1623
 
3430 rajveer 1624
    public void recv_markOrdersAsDelivered() throws TransactionServiceException, org.apache.thrift.TException
1598 ankur.sing 1625
    {
3061 chandransh 1626
      markOrdersAsDelivered_result result = new markOrdersAsDelivered_result();
3430 rajveer 1627
      receiveBase(result, "markOrdersAsDelivered");
3061 chandransh 1628
      if (result.ex != null) {
1629
        throw result.ex;
1598 ankur.sing 1630
      }
3061 chandransh 1631
      return;
1598 ankur.sing 1632
    }
1633
 
3430 rajveer 1634
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, org.apache.thrift.TException
1629 ankur.sing 1635
    {
3061 chandransh 1636
      send_markOrdersAsFailed(providerId, returnedOrders);
1637
      recv_markOrdersAsFailed();
1629 ankur.sing 1638
    }
1639
 
3430 rajveer 1640
    public void send_markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws org.apache.thrift.TException
1629 ankur.sing 1641
    {
3061 chandransh 1642
      markOrdersAsFailed_args args = new markOrdersAsFailed_args();
3430 rajveer 1643
      args.setProviderId(providerId);
1644
      args.setReturnedOrders(returnedOrders);
1645
      sendBase("markOrdersAsFailed", args);
1629 ankur.sing 1646
    }
1647
 
3430 rajveer 1648
    public void recv_markOrdersAsFailed() throws TransactionServiceException, org.apache.thrift.TException
1629 ankur.sing 1649
    {
3061 chandransh 1650
      markOrdersAsFailed_result result = new markOrdersAsFailed_result();
3430 rajveer 1651
      receiveBase(result, "markOrdersAsFailed");
3061 chandransh 1652
      if (result.ex != null) {
1653
        throw result.ex;
1629 ankur.sing 1654
      }
3061 chandransh 1655
      return;
1629 ankur.sing 1656
    }
1657
 
3430 rajveer 1658
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, org.apache.thrift.TException
1629 ankur.sing 1659
    {
3061 chandransh 1660
      send_updateNonDeliveryReason(providerId, undeliveredOrders);
1661
      recv_updateNonDeliveryReason();
1629 ankur.sing 1662
    }
1663
 
3430 rajveer 1664
    public void send_updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws org.apache.thrift.TException
1629 ankur.sing 1665
    {
3061 chandransh 1666
      updateNonDeliveryReason_args args = new updateNonDeliveryReason_args();
3430 rajveer 1667
      args.setProviderId(providerId);
1668
      args.setUndeliveredOrders(undeliveredOrders);
1669
      sendBase("updateNonDeliveryReason", args);
1629 ankur.sing 1670
    }
1671
 
3430 rajveer 1672
    public void recv_updateNonDeliveryReason() throws TransactionServiceException, org.apache.thrift.TException
1629 ankur.sing 1673
    {
3061 chandransh 1674
      updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();
3430 rajveer 1675
      receiveBase(result, "updateNonDeliveryReason");
3061 chandransh 1676
      if (result.ex != null) {
1677
        throw result.ex;
1629 ankur.sing 1678
      }
3061 chandransh 1679
      return;
1629 ankur.sing 1680
    }
1681
 
3430 rajveer 1682
    public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException
1886 ankur.sing 1683
    {
3061 chandransh 1684
      send_getUndeliveredOrders(providerId, warehouseId);
1685
      return recv_getUndeliveredOrders();
1886 ankur.sing 1686
    }
1687
 
3430 rajveer 1688
    public void send_getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException
1886 ankur.sing 1689
    {
3061 chandransh 1690
      getUndeliveredOrders_args args = new getUndeliveredOrders_args();
3430 rajveer 1691
      args.setProviderId(providerId);
1692
      args.setWarehouseId(warehouseId);
1693
      sendBase("getUndeliveredOrders", args);
1886 ankur.sing 1694
    }
1695
 
3430 rajveer 1696
    public List<Order> recv_getUndeliveredOrders() throws org.apache.thrift.TException
1886 ankur.sing 1697
    {
3061 chandransh 1698
      getUndeliveredOrders_result result = new getUndeliveredOrders_result();
3430 rajveer 1699
      receiveBase(result, "getUndeliveredOrders");
1886 ankur.sing 1700
      if (result.isSetSuccess()) {
1701
        return result.success;
1702
      }
3430 rajveer 1703
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUndeliveredOrders failed: unknown result");
1886 ankur.sing 1704
    }
1705
 
3430 rajveer 1706
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1707
    {
1708
      send_toggleDOAFlag(orderId);
1709
      return recv_toggleDOAFlag();
1710
    }
1711
 
3430 rajveer 1712
    public void send_toggleDOAFlag(long orderId) throws org.apache.thrift.TException
2538 chandransh 1713
    {
1714
      toggleDOAFlag_args args = new toggleDOAFlag_args();
3430 rajveer 1715
      args.setOrderId(orderId);
1716
      sendBase("toggleDOAFlag", args);
2538 chandransh 1717
    }
1718
 
3430 rajveer 1719
    public boolean recv_toggleDOAFlag() throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1720
    {
1721
      toggleDOAFlag_result result = new toggleDOAFlag_result();
3430 rajveer 1722
      receiveBase(result, "toggleDOAFlag");
2538 chandransh 1723
      if (result.isSetSuccess()) {
1724
        return result.success;
1725
      }
1726
      if (result.ex != null) {
1727
        throw result.ex;
1728
      }
3430 rajveer 1729
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");
2538 chandransh 1730
    }
1731
 
3430 rajveer 1732
    public boolean requestPickupNumber(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1733
    {
1734
      send_requestPickupNumber(orderId);
1735
      return recv_requestPickupNumber();
1736
    }
1737
 
3430 rajveer 1738
    public void send_requestPickupNumber(long orderId) throws org.apache.thrift.TException
2538 chandransh 1739
    {
1740
      requestPickupNumber_args args = new requestPickupNumber_args();
3430 rajveer 1741
      args.setOrderId(orderId);
1742
      sendBase("requestPickupNumber", args);
2538 chandransh 1743
    }
1744
 
3430 rajveer 1745
    public boolean recv_requestPickupNumber() throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1746
    {
1747
      requestPickupNumber_result result = new requestPickupNumber_result();
3430 rajveer 1748
      receiveBase(result, "requestPickupNumber");
2538 chandransh 1749
      if (result.isSetSuccess()) {
1750
        return result.success;
1751
      }
1752
      if (result.ex != null) {
1753
        throw result.ex;
1754
      }
3430 rajveer 1755
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "requestPickupNumber failed: unknown result");
2538 chandransh 1756
    }
1757
 
3430 rajveer 1758
    public boolean authorizePickup(long orderId, String pickupNumber) throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1759
    {
1760
      send_authorizePickup(orderId, pickupNumber);
1761
      return recv_authorizePickup();
1762
    }
1763
 
3430 rajveer 1764
    public void send_authorizePickup(long orderId, String pickupNumber) throws org.apache.thrift.TException
2538 chandransh 1765
    {
1766
      authorizePickup_args args = new authorizePickup_args();
3430 rajveer 1767
      args.setOrderId(orderId);
1768
      args.setPickupNumber(pickupNumber);
1769
      sendBase("authorizePickup", args);
2538 chandransh 1770
    }
1771
 
3430 rajveer 1772
    public boolean recv_authorizePickup() throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1773
    {
1774
      authorizePickup_result result = new authorizePickup_result();
3430 rajveer 1775
      receiveBase(result, "authorizePickup");
2538 chandransh 1776
      if (result.isSetSuccess()) {
1777
        return result.success;
1778
      }
1779
      if (result.ex != null) {
1780
        throw result.ex;
1781
      }
3430 rajveer 1782
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authorizePickup failed: unknown result");
2538 chandransh 1783
    }
1784
 
3430 rajveer 1785
    public List<Order> markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException
2765 chandransh 1786
    {
1787
      send_markDoasAsPickedUp(providerId, pickupDetails);
1788
      return recv_markDoasAsPickedUp();
1789
    }
1790
 
3430 rajveer 1791
    public void send_markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException
2765 chandransh 1792
    {
1793
      markDoasAsPickedUp_args args = new markDoasAsPickedUp_args();
3430 rajveer 1794
      args.setProviderId(providerId);
1795
      args.setPickupDetails(pickupDetails);
1796
      sendBase("markDoasAsPickedUp", args);
2765 chandransh 1797
    }
1798
 
3430 rajveer 1799
    public List<Order> recv_markDoasAsPickedUp() throws org.apache.thrift.TException
2765 chandransh 1800
    {
1801
      markDoasAsPickedUp_result result = new markDoasAsPickedUp_result();
3430 rajveer 1802
      receiveBase(result, "markDoasAsPickedUp");
2765 chandransh 1803
      if (result.isSetSuccess()) {
1804
        return result.success;
1805
      }
3430 rajveer 1806
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markDoasAsPickedUp failed: unknown result");
2765 chandransh 1807
    }
1808
 
3430 rajveer 1809
    public boolean receiveReturn(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2590 chandransh 1810
    {
2615 chandransh 1811
      send_receiveReturn(orderId);
1812
      return recv_receiveReturn();
2590 chandransh 1813
    }
1814
 
3430 rajveer 1815
    public void send_receiveReturn(long orderId) throws org.apache.thrift.TException
2590 chandransh 1816
    {
2615 chandransh 1817
      receiveReturn_args args = new receiveReturn_args();
3430 rajveer 1818
      args.setOrderId(orderId);
1819
      sendBase("receiveReturn", args);
2590 chandransh 1820
    }
1821
 
3430 rajveer 1822
    public boolean recv_receiveReturn() throws TransactionServiceException, org.apache.thrift.TException
2590 chandransh 1823
    {
2615 chandransh 1824
      receiveReturn_result result = new receiveReturn_result();
3430 rajveer 1825
      receiveBase(result, "receiveReturn");
2590 chandransh 1826
      if (result.isSetSuccess()) {
1827
        return result.success;
1828
      }
1829
      if (result.ex != null) {
1830
        throw result.ex;
1831
      }
3430 rajveer 1832
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "receiveReturn failed: unknown result");
2590 chandransh 1833
    }
1834
 
3430 rajveer 1835
    public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, org.apache.thrift.TException
2590 chandransh 1836
    {
1837
      send_validateDoa(orderId, isValid);
1838
      return recv_validateDoa();
1839
    }
1840
 
3430 rajveer 1841
    public void send_validateDoa(long orderId, boolean isValid) throws org.apache.thrift.TException
2590 chandransh 1842
    {
1843
      validateDoa_args args = new validateDoa_args();
3430 rajveer 1844
      args.setOrderId(orderId);
1845
      args.setIsValid(isValid);
1846
      sendBase("validateDoa", args);
2590 chandransh 1847
    }
1848
 
3430 rajveer 1849
    public boolean recv_validateDoa() throws TransactionServiceException, org.apache.thrift.TException
2590 chandransh 1850
    {
1851
      validateDoa_result result = new validateDoa_result();
3430 rajveer 1852
      receiveBase(result, "validateDoa");
2590 chandransh 1853
      if (result.isSetSuccess()) {
1854
        return result.success;
1855
      }
1856
      if (result.ex != null) {
1857
        throw result.ex;
1858
      }
3430 rajveer 1859
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateDoa failed: unknown result");
2590 chandransh 1860
    }
1861
 
3430 rajveer 1862
    public long reshipOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2615 chandransh 1863
    {
1864
      send_reshipOrder(orderId);
1865
      return recv_reshipOrder();
1866
    }
1867
 
3430 rajveer 1868
    public void send_reshipOrder(long orderId) throws org.apache.thrift.TException
2615 chandransh 1869
    {
1870
      reshipOrder_args args = new reshipOrder_args();
3430 rajveer 1871
      args.setOrderId(orderId);
1872
      sendBase("reshipOrder", args);
2615 chandransh 1873
    }
1874
 
3430 rajveer 1875
    public long recv_reshipOrder() throws TransactionServiceException, org.apache.thrift.TException
2615 chandransh 1876
    {
1877
      reshipOrder_result result = new reshipOrder_result();
3430 rajveer 1878
      receiveBase(result, "reshipOrder");
2615 chandransh 1879
      if (result.isSetSuccess()) {
1880
        return result.success;
1881
      }
1882
      if (result.ex != null) {
1883
        throw result.ex;
1884
      }
3430 rajveer 1885
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reshipOrder failed: unknown result");
2615 chandransh 1886
    }
1887
 
3430 rajveer 1888
    public boolean refundOrder(long orderId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException
2615 chandransh 1889
    {
3226 chandransh 1890
      send_refundOrder(orderId, refundedBy, reason);
2615 chandransh 1891
      return recv_refundOrder();
1892
    }
1893
 
3430 rajveer 1894
    public void send_refundOrder(long orderId, String refundedBy, String reason) throws org.apache.thrift.TException
2615 chandransh 1895
    {
1896
      refundOrder_args args = new refundOrder_args();
3430 rajveer 1897
      args.setOrderId(orderId);
1898
      args.setRefundedBy(refundedBy);
1899
      args.setReason(reason);
1900
      sendBase("refundOrder", args);
2615 chandransh 1901
    }
1902
 
3430 rajveer 1903
    public boolean recv_refundOrder() throws TransactionServiceException, org.apache.thrift.TException
2615 chandransh 1904
    {
1905
      refundOrder_result result = new refundOrder_result();
3430 rajveer 1906
      receiveBase(result, "refundOrder");
2615 chandransh 1907
      if (result.isSetSuccess()) {
1908
        return result.success;
1909
      }
1910
      if (result.ex != null) {
1911
        throw result.ex;
1912
      }
3430 rajveer 1913
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "refundOrder failed: unknown result");
2615 chandransh 1914
    }
1915
 
3430 rajveer 1916
    public List<ReturnOrder> getReturnOrders(long warehouseId, long fromDate, long toDate) throws org.apache.thrift.TException
2690 chandransh 1917
    {
1918
      send_getReturnOrders(warehouseId, fromDate, toDate);
1919
      return recv_getReturnOrders();
1920
    }
1921
 
3430 rajveer 1922
    public void send_getReturnOrders(long warehouseId, long fromDate, long toDate) throws org.apache.thrift.TException
2690 chandransh 1923
    {
1924
      getReturnOrders_args args = new getReturnOrders_args();
3430 rajveer 1925
      args.setWarehouseId(warehouseId);
1926
      args.setFromDate(fromDate);
1927
      args.setToDate(toDate);
1928
      sendBase("getReturnOrders", args);
2690 chandransh 1929
    }
1930
 
3430 rajveer 1931
    public List<ReturnOrder> recv_getReturnOrders() throws org.apache.thrift.TException
2690 chandransh 1932
    {
1933
      getReturnOrders_result result = new getReturnOrders_result();
3430 rajveer 1934
      receiveBase(result, "getReturnOrders");
2690 chandransh 1935
      if (result.isSetSuccess()) {
1936
        return result.success;
1937
      }
3430 rajveer 1938
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnOrders failed: unknown result");
2690 chandransh 1939
    }
1940
 
3430 rajveer 1941
    public ReturnOrder getReturnOrder(long id) throws TransactionServiceException, org.apache.thrift.TException
2700 chandransh 1942
    {
1943
      send_getReturnOrder(id);
1944
      return recv_getReturnOrder();
1945
    }
1946
 
3430 rajveer 1947
    public void send_getReturnOrder(long id) throws org.apache.thrift.TException
2700 chandransh 1948
    {
1949
      getReturnOrder_args args = new getReturnOrder_args();
3430 rajveer 1950
      args.setId(id);
1951
      sendBase("getReturnOrder", args);
2700 chandransh 1952
    }
1953
 
3430 rajveer 1954
    public ReturnOrder recv_getReturnOrder() throws TransactionServiceException, org.apache.thrift.TException
2700 chandransh 1955
    {
1956
      getReturnOrder_result result = new getReturnOrder_result();
3430 rajveer 1957
      receiveBase(result, "getReturnOrder");
2700 chandransh 1958
      if (result.isSetSuccess()) {
1959
        return result.success;
1960
      }
1961
      if (result.ex != null) {
1962
        throw result.ex;
1963
      }
3430 rajveer 1964
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnOrder failed: unknown result");
2700 chandransh 1965
    }
1966
 
3430 rajveer 1967
    public void processReturn(long returnOrderId) throws TransactionServiceException, org.apache.thrift.TException
2690 chandransh 1968
    {
1969
      send_processReturn(returnOrderId);
1970
      recv_processReturn();
1971
    }
1972
 
3430 rajveer 1973
    public void send_processReturn(long returnOrderId) throws org.apache.thrift.TException
2690 chandransh 1974
    {
1975
      processReturn_args args = new processReturn_args();
3430 rajveer 1976
      args.setReturnOrderId(returnOrderId);
1977
      sendBase("processReturn", args);
2690 chandransh 1978
    }
1979
 
3430 rajveer 1980
    public void recv_processReturn() throws TransactionServiceException, org.apache.thrift.TException
2690 chandransh 1981
    {
1982
      processReturn_result result = new processReturn_result();
3430 rajveer 1983
      receiveBase(result, "processReturn");
2690 chandransh 1984
      if (result.ex != null) {
1985
        throw result.ex;
1986
      }
1987
      return;
1988
    }
1989
 
3430 rajveer 1990
    public long createPurchaseOrder(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
2819 chandransh 1991
    {
1992
      send_createPurchaseOrder(warehouseId);
1993
      return recv_createPurchaseOrder();
1994
    }
1995
 
3430 rajveer 1996
    public void send_createPurchaseOrder(long warehouseId) throws org.apache.thrift.TException
2819 chandransh 1997
    {
1998
      createPurchaseOrder_args args = new createPurchaseOrder_args();
3430 rajveer 1999
      args.setWarehouseId(warehouseId);
2000
      sendBase("createPurchaseOrder", args);
2819 chandransh 2001
    }
2002
 
3430 rajveer 2003
    public long recv_createPurchaseOrder() throws TransactionServiceException, org.apache.thrift.TException
2819 chandransh 2004
    {
2005
      createPurchaseOrder_result result = new createPurchaseOrder_result();
3430 rajveer 2006
      receiveBase(result, "createPurchaseOrder");
2819 chandransh 2007
      if (result.isSetSuccess()) {
2008
        return result.success;
2009
      }
2010
      if (result.ex != null) {
2011
        throw result.ex;
2012
      }
3430 rajveer 2013
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPurchaseOrder failed: unknown result");
2819 chandransh 2014
    }
2015
 
3451 chandransh 2016
    public Order updateWeight(long orderId, double weight) throws TransactionServiceException, org.apache.thrift.TException
2017
    {
2018
      send_updateWeight(orderId, weight);
2019
      return recv_updateWeight();
2020
    }
2021
 
2022
    public void send_updateWeight(long orderId, double weight) throws org.apache.thrift.TException
2023
    {
2024
      updateWeight_args args = new updateWeight_args();
2025
      args.setOrderId(orderId);
2026
      args.setWeight(weight);
2027
      sendBase("updateWeight", args);
2028
    }
2029
 
2030
    public Order recv_updateWeight() throws TransactionServiceException, org.apache.thrift.TException
2031
    {
2032
      updateWeight_result result = new updateWeight_result();
2033
      receiveBase(result, "updateWeight");
2034
      if (result.isSetSuccess()) {
2035
        return result.success;
2036
      }
2037
      if (result.ex != null) {
2038
        throw result.ex;
2039
      }
2040
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateWeight failed: unknown result");
2041
    }
2042
 
3469 chandransh 2043
    public Order changeItem(long orderId, long itemId) throws TransactionServiceException, org.apache.thrift.TException
2044
    {
2045
      send_changeItem(orderId, itemId);
2046
      return recv_changeItem();
2047
    }
2048
 
2049
    public void send_changeItem(long orderId, long itemId) throws org.apache.thrift.TException
2050
    {
2051
      changeItem_args args = new changeItem_args();
2052
      args.setOrderId(orderId);
2053
      args.setItemId(itemId);
2054
      sendBase("changeItem", args);
2055
    }
2056
 
2057
    public Order recv_changeItem() throws TransactionServiceException, org.apache.thrift.TException
2058
    {
2059
      changeItem_result result = new changeItem_result();
2060
      receiveBase(result, "changeItem");
2061
      if (result.isSetSuccess()) {
2062
        return result.success;
2063
      }
2064
      if (result.ex != null) {
2065
        throw result.ex;
2066
      }
2067
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeItem failed: unknown result");
2068
    }
2069
 
2070
    public Order shiftToWarehouse(long orderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
2071
    {
2072
      send_shiftToWarehouse(orderId, warehouseId);
2073
      return recv_shiftToWarehouse();
2074
    }
2075
 
2076
    public void send_shiftToWarehouse(long orderId, long warehouseId) throws org.apache.thrift.TException
2077
    {
2078
      shiftToWarehouse_args args = new shiftToWarehouse_args();
2079
      args.setOrderId(orderId);
2080
      args.setWarehouseId(warehouseId);
2081
      sendBase("shiftToWarehouse", args);
2082
    }
2083
 
2084
    public Order recv_shiftToWarehouse() throws TransactionServiceException, org.apache.thrift.TException
2085
    {
2086
      shiftToWarehouse_result result = new shiftToWarehouse_result();
2087
      receiveBase(result, "shiftToWarehouse");
2088
      if (result.isSetSuccess()) {
2089
        return result.success;
2090
      }
2091
      if (result.ex != null) {
2092
        throw result.ex;
2093
      }
2094
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "shiftToWarehouse failed: unknown result");
2095
    }
2096
 
3986 chandransh 2097
    public boolean addDelayReason(long orderId, DelayReason delayReason, long furtherDelay) throws TransactionServiceException, org.apache.thrift.TException
3553 chandransh 2098
    {
3986 chandransh 2099
      send_addDelayReason(orderId, delayReason, furtherDelay);
3553 chandransh 2100
      return recv_addDelayReason();
2101
    }
2102
 
3986 chandransh 2103
    public void send_addDelayReason(long orderId, DelayReason delayReason, long furtherDelay) throws org.apache.thrift.TException
3553 chandransh 2104
    {
2105
      addDelayReason_args args = new addDelayReason_args();
2106
      args.setOrderId(orderId);
2107
      args.setDelayReason(delayReason);
3986 chandransh 2108
      args.setFurtherDelay(furtherDelay);
3553 chandransh 2109
      sendBase("addDelayReason", args);
2110
    }
2111
 
2112
    public boolean recv_addDelayReason() throws TransactionServiceException, org.apache.thrift.TException
2113
    {
2114
      addDelayReason_result result = new addDelayReason_result();
2115
      receiveBase(result, "addDelayReason");
2116
      if (result.isSetSuccess()) {
2117
        return result.success;
2118
      }
2119
      if (result.ex != null) {
2120
        throw result.ex;
2121
      }
2122
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addDelayReason failed: unknown result");
2123
    }
2124
 
3956 chandransh 2125
    public Map<String,String> reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate) throws TransactionServiceException, org.apache.thrift.TException
2126
    {
2127
      send_reconcileCodCollection(collectedAmountMap, xferBy, xferTxnId, xferDate);
2128
      return recv_reconcileCodCollection();
2129
    }
2130
 
2131
    public void send_reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate) throws org.apache.thrift.TException
2132
    {
2133
      reconcileCodCollection_args args = new reconcileCodCollection_args();
2134
      args.setCollectedAmountMap(collectedAmountMap);
2135
      args.setXferBy(xferBy);
2136
      args.setXferTxnId(xferTxnId);
2137
      args.setXferDate(xferDate);
2138
      sendBase("reconcileCodCollection", args);
2139
    }
2140
 
2141
    public Map<String,String> recv_reconcileCodCollection() throws TransactionServiceException, org.apache.thrift.TException
2142
    {
2143
      reconcileCodCollection_result result = new reconcileCodCollection_result();
2144
      receiveBase(result, "reconcileCodCollection");
2145
      if (result.isSetSuccess()) {
2146
        return result.success;
2147
      }
2148
      if (result.ex != null) {
2149
        throw result.ex;
2150
      }
2151
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reconcileCodCollection failed: unknown result");
2152
    }
2153
 
4008 mandeep.dh 2154
    public List<Long> getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category) throws org.apache.thrift.TException
2155
    {
2156
      send_getTransactionsRequiringExtraProcessing(category);
2157
      return recv_getTransactionsRequiringExtraProcessing();
2158
    }
2159
 
2160
    public void send_getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category) throws org.apache.thrift.TException
2161
    {
2162
      getTransactionsRequiringExtraProcessing_args args = new getTransactionsRequiringExtraProcessing_args();
2163
      args.setCategory(category);
2164
      sendBase("getTransactionsRequiringExtraProcessing", args);
2165
    }
2166
 
2167
    public List<Long> recv_getTransactionsRequiringExtraProcessing() throws org.apache.thrift.TException
2168
    {
2169
      getTransactionsRequiringExtraProcessing_result result = new getTransactionsRequiringExtraProcessing_result();
2170
      receiveBase(result, "getTransactionsRequiringExtraProcessing");
2171
      if (result.isSetSuccess()) {
2172
        return result.success;
2173
      }
2174
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionsRequiringExtraProcessing failed: unknown result");
2175
    }
2176
 
2177
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category) throws org.apache.thrift.TException
2178
    {
2179
      send_markTransactionAsProcessed(transactionId, category);
2180
      recv_markTransactionAsProcessed();
2181
    }
2182
 
2183
    public void send_markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category) throws org.apache.thrift.TException
2184
    {
2185
      markTransactionAsProcessed_args args = new markTransactionAsProcessed_args();
2186
      args.setTransactionId(transactionId);
2187
      args.setCategory(category);
2188
      sendBase("markTransactionAsProcessed", args);
2189
    }
2190
 
2191
    public void recv_markTransactionAsProcessed() throws org.apache.thrift.TException
2192
    {
2193
      markTransactionAsProcessed_result result = new markTransactionAsProcessed_result();
2194
      receiveBase(result, "markTransactionAsProcessed");
2195
      return;
2196
    }
2197
 
4018 chandransh 2198
    public Map<Long,Long> getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException
2199
    {
2200
      send_getItemWiseRiskyOrdersCount();
2201
      return recv_getItemWiseRiskyOrdersCount();
2202
    }
2203
 
2204
    public void send_getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException
2205
    {
2206
      getItemWiseRiskyOrdersCount_args args = new getItemWiseRiskyOrdersCount_args();
2207
      sendBase("getItemWiseRiskyOrdersCount", args);
2208
    }
2209
 
2210
    public Map<Long,Long> recv_getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException
2211
    {
2212
      getItemWiseRiskyOrdersCount_result result = new getItemWiseRiskyOrdersCount_result();
2213
      receiveBase(result, "getItemWiseRiskyOrdersCount");
2214
      if (result.isSetSuccess()) {
2215
        return result.success;
2216
      }
2217
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemWiseRiskyOrdersCount failed: unknown result");
2218
    }
2219
 
68 ashish 2220
  }
3430 rajveer 2221
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2222
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2223
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2224
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2225
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
2226
        this.clientManager = clientManager;
2227
        this.protocolFactory = protocolFactory;
2228
      }
2229
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
2230
        return new AsyncClient(protocolFactory, clientManager, transport);
2231
      }
68 ashish 2232
    }
2233
 
3430 rajveer 2234
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
2235
      super(protocolFactory, clientManager, transport);
2236
    }
68 ashish 2237
 
3430 rajveer 2238
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<createTransaction_call> resultHandler) throws org.apache.thrift.TException {
2239
      checkReady();
2240
      createTransaction_call method_call = new createTransaction_call(transaction, resultHandler, this, ___protocolFactory, ___transport);
2241
      this.___currentMethod = method_call;
2242
      ___manager.call(method_call);
2243
    }
2244
 
2245
    public static class createTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
2246
      private Transaction transaction;
2247
      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 {
2248
        super(client, protocolFactory, transport, resultHandler, false);
2249
        this.transaction = transaction;
68 ashish 2250
      }
3430 rajveer 2251
 
2252
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2253
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
2254
        createTransaction_args args = new createTransaction_args();
2255
        args.setTransaction(transaction);
2256
        args.write(prot);
2257
        prot.writeMessageEnd();
2258
      }
2259
 
2260
      public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
2261
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2262
          throw new IllegalStateException("Method call not finished!");
2263
        }
2264
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2265
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2266
        return (new Client(prot)).recv_createTransaction();
2267
      }
68 ashish 2268
    }
2269
 
3430 rajveer 2270
    public void getTransaction(long id, org.apache.thrift.async.AsyncMethodCallback<getTransaction_call> resultHandler) throws org.apache.thrift.TException {
2271
      checkReady();
2272
      getTransaction_call method_call = new getTransaction_call(id, resultHandler, this, ___protocolFactory, ___transport);
2273
      this.___currentMethod = method_call;
2274
      ___manager.call(method_call);
2275
    }
2276
 
2277
    public static class getTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
2278
      private long id;
2279
      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 {
2280
        super(client, protocolFactory, transport, resultHandler, false);
2281
        this.id = id;
2282
      }
2283
 
2284
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2285
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
2286
        getTransaction_args args = new getTransaction_args();
2287
        args.setId(id);
2288
        args.write(prot);
2289
        prot.writeMessageEnd();
2290
      }
2291
 
2292
      public Transaction getResult() throws TransactionServiceException, org.apache.thrift.TException {
2293
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2294
          throw new IllegalStateException("Method call not finished!");
2295
        }
2296
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2297
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2298
        return (new Client(prot)).recv_getTransaction();
2299
      }
2300
    }
2301
 
2302
    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 {
2303
      checkReady();
2304
      getTransactionsForCustomer_call method_call = new getTransactionsForCustomer_call(customerId, from_date, to_date, status, resultHandler, this, ___protocolFactory, ___transport);
2305
      this.___currentMethod = method_call;
2306
      ___manager.call(method_call);
2307
    }
2308
 
2309
    public static class getTransactionsForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2310
      private long customerId;
2311
      private long from_date;
2312
      private long to_date;
2313
      private TransactionStatus status;
2314
      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 {
2315
        super(client, protocolFactory, transport, resultHandler, false);
2316
        this.customerId = customerId;
2317
        this.from_date = from_date;
2318
        this.to_date = to_date;
2319
        this.status = status;
2320
      }
2321
 
2322
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2323
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionsForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2324
        getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();
2325
        args.setCustomerId(customerId);
2326
        args.setFrom_date(from_date);
2327
        args.setTo_date(to_date);
2328
        args.setStatus(status);
2329
        args.write(prot);
2330
        prot.writeMessageEnd();
2331
      }
2332
 
2333
      public List<Transaction> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2334
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2335
          throw new IllegalStateException("Method call not finished!");
2336
        }
2337
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2338
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2339
        return (new Client(prot)).recv_getTransactionsForCustomer();
2340
      }
2341
    }
2342
 
2343
    public void getTransactionsForShoppingCartId(long shoppingCartId, org.apache.thrift.async.AsyncMethodCallback<getTransactionsForShoppingCartId_call> resultHandler) throws org.apache.thrift.TException {
2344
      checkReady();
2345
      getTransactionsForShoppingCartId_call method_call = new getTransactionsForShoppingCartId_call(shoppingCartId, resultHandler, this, ___protocolFactory, ___transport);
2346
      this.___currentMethod = method_call;
2347
      ___manager.call(method_call);
2348
    }
2349
 
2350
    public static class getTransactionsForShoppingCartId_call extends org.apache.thrift.async.TAsyncMethodCall {
2351
      private long shoppingCartId;
2352
      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 {
2353
        super(client, protocolFactory, transport, resultHandler, false);
2354
        this.shoppingCartId = shoppingCartId;
2355
      }
2356
 
2357
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2358
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionsForShoppingCartId", org.apache.thrift.protocol.TMessageType.CALL, 0));
2359
        getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();
2360
        args.setShoppingCartId(shoppingCartId);
2361
        args.write(prot);
2362
        prot.writeMessageEnd();
2363
      }
2364
 
2365
      public List<Transaction> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2366
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2367
          throw new IllegalStateException("Method call not finished!");
2368
        }
2369
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2370
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2371
        return (new Client(prot)).recv_getTransactionsForShoppingCartId();
2372
      }
2373
    }
2374
 
2375
    public void getTransactionStatus(long transactionId, org.apache.thrift.async.AsyncMethodCallback<getTransactionStatus_call> resultHandler) throws org.apache.thrift.TException {
2376
      checkReady();
2377
      getTransactionStatus_call method_call = new getTransactionStatus_call(transactionId, resultHandler, this, ___protocolFactory, ___transport);
2378
      this.___currentMethod = method_call;
2379
      ___manager.call(method_call);
2380
    }
2381
 
2382
    public static class getTransactionStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
2383
      private long transactionId;
2384
      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 {
2385
        super(client, protocolFactory, transport, resultHandler, false);
2386
        this.transactionId = transactionId;
2387
      }
2388
 
2389
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2390
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
2391
        getTransactionStatus_args args = new getTransactionStatus_args();
2392
        args.setTransactionId(transactionId);
2393
        args.write(prot);
2394
        prot.writeMessageEnd();
2395
      }
2396
 
2397
      public TransactionStatus getResult() throws TransactionServiceException, org.apache.thrift.TException {
2398
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2399
          throw new IllegalStateException("Method call not finished!");
2400
        }
2401
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2402
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2403
        return (new Client(prot)).recv_getTransactionStatus();
2404
      }
2405
    }
2406
 
2407
    public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException {
2408
      checkReady();
2409
      changeTransactionStatus_call method_call = new changeTransactionStatus_call(transactionId, status, description, resultHandler, this, ___protocolFactory, ___transport);
2410
      this.___currentMethod = method_call;
2411
      ___manager.call(method_call);
2412
    }
2413
 
2414
    public static class changeTransactionStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
2415
      private long transactionId;
2416
      private TransactionStatus status;
2417
      private String description;
2418
      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 {
2419
        super(client, protocolFactory, transport, resultHandler, false);
2420
        this.transactionId = transactionId;
2421
        this.status = status;
2422
        this.description = description;
2423
      }
2424
 
2425
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2426
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeTransactionStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
2427
        changeTransactionStatus_args args = new changeTransactionStatus_args();
2428
        args.setTransactionId(transactionId);
2429
        args.setStatus(status);
2430
        args.setDescription(description);
2431
        args.write(prot);
2432
        prot.writeMessageEnd();
2433
      }
2434
 
2435
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
2436
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2437
          throw new IllegalStateException("Method call not finished!");
2438
        }
2439
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2440
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2441
        return (new Client(prot)).recv_changeTransactionStatus();
2442
      }
2443
    }
2444
 
2445
    public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException {
2446
      checkReady();
2447
      enqueueTransactionInfoEmail_call method_call = new enqueueTransactionInfoEmail_call(transactionId, resultHandler, this, ___protocolFactory, ___transport);
2448
      this.___currentMethod = method_call;
2449
      ___manager.call(method_call);
2450
    }
2451
 
2452
    public static class enqueueTransactionInfoEmail_call extends org.apache.thrift.async.TAsyncMethodCall {
2453
      private long transactionId;
2454
      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 {
2455
        super(client, protocolFactory, transport, resultHandler, false);
2456
        this.transactionId = transactionId;
2457
      }
2458
 
2459
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2460
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enqueueTransactionInfoEmail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2461
        enqueueTransactionInfoEmail_args args = new enqueueTransactionInfoEmail_args();
2462
        args.setTransactionId(transactionId);
2463
        args.write(prot);
2464
        prot.writeMessageEnd();
2465
      }
2466
 
2467
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
2468
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2469
          throw new IllegalStateException("Method call not finished!");
2470
        }
2471
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2472
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2473
        return (new Client(prot)).recv_enqueueTransactionInfoEmail();
2474
      }
2475
    }
2476
 
2477
    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 {
2478
      checkReady();
2479
      getAllOrders_call method_call = new getAllOrders_call(status, from_date, to_date, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2480
      this.___currentMethod = method_call;
2481
      ___manager.call(method_call);
2482
    }
2483
 
2484
    public static class getAllOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
2485
      private OrderStatus status;
2486
      private long from_date;
2487
      private long to_date;
2488
      private long warehouse_id;
2489
      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 {
2490
        super(client, protocolFactory, transport, resultHandler, false);
2491
        this.status = status;
2492
        this.from_date = from_date;
2493
        this.to_date = to_date;
2494
        this.warehouse_id = warehouse_id;
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("getAllOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
2499
        getAllOrders_args args = new getAllOrders_args();
2500
        args.setStatus(status);
2501
        args.setFrom_date(from_date);
2502
        args.setTo_date(to_date);
2503
        args.setWarehouse_id(warehouse_id);
2504
        args.write(prot);
2505
        prot.writeMessageEnd();
2506
      }
2507
 
2508
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2509
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2510
          throw new IllegalStateException("Method call not finished!");
2511
        }
2512
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2513
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2514
        return (new Client(prot)).recv_getAllOrders();
2515
      }
2516
    }
2517
 
4133 chandransh 2518
    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 {
2519
      checkReady();
2520
      getOrdersInBatch_call method_call = new getOrdersInBatch_call(statuses, offset, limit, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2521
      this.___currentMethod = method_call;
2522
      ___manager.call(method_call);
2523
    }
2524
 
2525
    public static class getOrdersInBatch_call extends org.apache.thrift.async.TAsyncMethodCall {
2526
      private List<OrderStatus> statuses;
2527
      private long offset;
2528
      private long limit;
2529
      private long warehouse_id;
2530
      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 {
2531
        super(client, protocolFactory, transport, resultHandler, false);
2532
        this.statuses = statuses;
2533
        this.offset = offset;
2534
        this.limit = limit;
2535
        this.warehouse_id = warehouse_id;
2536
      }
2537
 
2538
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2539
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersInBatch", org.apache.thrift.protocol.TMessageType.CALL, 0));
2540
        getOrdersInBatch_args args = new getOrdersInBatch_args();
2541
        args.setStatuses(statuses);
2542
        args.setOffset(offset);
2543
        args.setLimit(limit);
2544
        args.setWarehouse_id(warehouse_id);
2545
        args.write(prot);
2546
        prot.writeMessageEnd();
2547
      }
2548
 
2549
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2550
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2551
          throw new IllegalStateException("Method call not finished!");
2552
        }
2553
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2554
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2555
        return (new Client(prot)).recv_getOrdersInBatch();
2556
      }
2557
    }
2558
 
2559
    public void getOrderCount(List<OrderStatus> statuses, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getOrderCount_call> resultHandler) throws org.apache.thrift.TException {
2560
      checkReady();
2561
      getOrderCount_call method_call = new getOrderCount_call(statuses, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2562
      this.___currentMethod = method_call;
2563
      ___manager.call(method_call);
2564
    }
2565
 
2566
    public static class getOrderCount_call extends org.apache.thrift.async.TAsyncMethodCall {
2567
      private List<OrderStatus> statuses;
2568
      private long warehouseId;
2569
      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 {
2570
        super(client, protocolFactory, transport, resultHandler, false);
2571
        this.statuses = statuses;
2572
        this.warehouseId = warehouseId;
2573
      }
2574
 
2575
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2576
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
2577
        getOrderCount_args args = new getOrderCount_args();
2578
        args.setStatuses(statuses);
2579
        args.setWarehouseId(warehouseId);
2580
        args.write(prot);
2581
        prot.writeMessageEnd();
2582
      }
2583
 
2584
      public int getResult() throws TransactionServiceException, org.apache.thrift.TException {
2585
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2586
          throw new IllegalStateException("Method call not finished!");
2587
        }
2588
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2589
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2590
        return (new Client(prot)).recv_getOrderCount();
2591
      }
2592
    }
2593
 
3430 rajveer 2594
    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 {
2595
      checkReady();
2596
      getOrdersByBillingDate_call method_call = new getOrdersByBillingDate_call(status, start_billing_date, end_billing_date, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2597
      this.___currentMethod = method_call;
2598
      ___manager.call(method_call);
2599
    }
2600
 
2601
    public static class getOrdersByBillingDate_call extends org.apache.thrift.async.TAsyncMethodCall {
2602
      private OrderStatus status;
2603
      private long start_billing_date;
2604
      private long end_billing_date;
2605
      private long warehouse_id;
2606
      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 {
2607
        super(client, protocolFactory, transport, resultHandler, false);
2608
        this.status = status;
2609
        this.start_billing_date = start_billing_date;
2610
        this.end_billing_date = end_billing_date;
2611
        this.warehouse_id = warehouse_id;
2612
      }
2613
 
2614
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2615
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersByBillingDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
2616
        getOrdersByBillingDate_args args = new getOrdersByBillingDate_args();
2617
        args.setStatus(status);
2618
        args.setStart_billing_date(start_billing_date);
2619
        args.setEnd_billing_date(end_billing_date);
2620
        args.setWarehouse_id(warehouse_id);
2621
        args.write(prot);
2622
        prot.writeMessageEnd();
2623
      }
2624
 
2625
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2626
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2627
          throw new IllegalStateException("Method call not finished!");
2628
        }
2629
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2630
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2631
        return (new Client(prot)).recv_getOrdersByBillingDate();
2632
      }
2633
    }
2634
 
3451 chandransh 2635
    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 2636
      checkReady();
3451 chandransh 2637
      getOrdersByShippingDate_call method_call = new getOrdersByShippingDate_call(fromShippingDate, toShippingDate, providerId, warehouseId, cod, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 2638
      this.___currentMethod = method_call;
2639
      ___manager.call(method_call);
2640
    }
2641
 
2642
    public static class getOrdersByShippingDate_call extends org.apache.thrift.async.TAsyncMethodCall {
2643
      private long fromShippingDate;
2644
      private long toShippingDate;
2645
      private long providerId;
2646
      private long warehouseId;
3451 chandransh 2647
      private boolean cod;
2648
      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 2649
        super(client, protocolFactory, transport, resultHandler, false);
2650
        this.fromShippingDate = fromShippingDate;
2651
        this.toShippingDate = toShippingDate;
2652
        this.providerId = providerId;
2653
        this.warehouseId = warehouseId;
3451 chandransh 2654
        this.cod = cod;
3430 rajveer 2655
      }
2656
 
2657
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2658
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersByShippingDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
2659
        getOrdersByShippingDate_args args = new getOrdersByShippingDate_args();
2660
        args.setFromShippingDate(fromShippingDate);
2661
        args.setToShippingDate(toShippingDate);
2662
        args.setProviderId(providerId);
2663
        args.setWarehouseId(warehouseId);
3451 chandransh 2664
        args.setCod(cod);
3430 rajveer 2665
        args.write(prot);
2666
        prot.writeMessageEnd();
2667
      }
2668
 
2669
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2670
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2671
          throw new IllegalStateException("Method call not finished!");
2672
        }
2673
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2674
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2675
        return (new Client(prot)).recv_getOrdersByShippingDate();
2676
      }
2677
    }
2678
 
2679
    public void getReturnableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<getReturnableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException {
2680
      checkReady();
2681
      getReturnableOrdersForCustomer_call method_call = new getReturnableOrdersForCustomer_call(customer_id, limit, resultHandler, this, ___protocolFactory, ___transport);
2682
      this.___currentMethod = method_call;
2683
      ___manager.call(method_call);
2684
    }
2685
 
2686
    public static class getReturnableOrdersForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2687
      private long customer_id;
2688
      private long limit;
2689
      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 {
2690
        super(client, protocolFactory, transport, resultHandler, false);
2691
        this.customer_id = customer_id;
2692
        this.limit = limit;
2693
      }
2694
 
2695
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2696
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReturnableOrdersForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2697
        getReturnableOrdersForCustomer_args args = new getReturnableOrdersForCustomer_args();
2698
        args.setCustomer_id(customer_id);
2699
        args.setLimit(limit);
2700
        args.write(prot);
2701
        prot.writeMessageEnd();
2702
      }
2703
 
2704
      public List<Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2705
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2706
          throw new IllegalStateException("Method call not finished!");
2707
        }
2708
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2709
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2710
        return (new Client(prot)).recv_getReturnableOrdersForCustomer();
2711
      }
2712
    }
2713
 
2714
    public void getCancellableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<getCancellableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException {
2715
      checkReady();
2716
      getCancellableOrdersForCustomer_call method_call = new getCancellableOrdersForCustomer_call(customer_id, limit, resultHandler, this, ___protocolFactory, ___transport);
2717
      this.___currentMethod = method_call;
2718
      ___manager.call(method_call);
2719
    }
2720
 
2721
    public static class getCancellableOrdersForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2722
      private long customer_id;
2723
      private long limit;
2724
      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 {
2725
        super(client, protocolFactory, transport, resultHandler, false);
2726
        this.customer_id = customer_id;
2727
        this.limit = limit;
2728
      }
2729
 
2730
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2731
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCancellableOrdersForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2732
        getCancellableOrdersForCustomer_args args = new getCancellableOrdersForCustomer_args();
2733
        args.setCustomer_id(customer_id);
2734
        args.setLimit(limit);
2735
        args.write(prot);
2736
        prot.writeMessageEnd();
2737
      }
2738
 
2739
      public List<Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2740
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2741
          throw new IllegalStateException("Method call not finished!");
2742
        }
2743
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2744
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2745
        return (new Client(prot)).recv_getCancellableOrdersForCustomer();
2746
      }
2747
    }
2748
 
2749
    public void changeOrderStatus(long orderId, OrderStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<changeOrderStatus_call> resultHandler) throws org.apache.thrift.TException {
2750
      checkReady();
2751
      changeOrderStatus_call method_call = new changeOrderStatus_call(orderId, status, description, resultHandler, this, ___protocolFactory, ___transport);
2752
      this.___currentMethod = method_call;
2753
      ___manager.call(method_call);
2754
    }
2755
 
2756
    public static class changeOrderStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
2757
      private long orderId;
2758
      private OrderStatus status;
2759
      private String description;
2760
      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 {
2761
        super(client, protocolFactory, transport, resultHandler, false);
2762
        this.orderId = orderId;
2763
        this.status = status;
2764
        this.description = description;
2765
      }
2766
 
2767
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2768
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeOrderStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
2769
        changeOrderStatus_args args = new changeOrderStatus_args();
2770
        args.setOrderId(orderId);
2771
        args.setStatus(status);
2772
        args.setDescription(description);
2773
        args.write(prot);
2774
        prot.writeMessageEnd();
2775
      }
2776
 
2777
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
2778
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2779
          throw new IllegalStateException("Method call not finished!");
2780
        }
2781
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2782
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2783
        return (new Client(prot)).recv_changeOrderStatus();
2784
      }
2785
    }
2786
 
2787
    public void getOrdersForTransaction(long transactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<getOrdersForTransaction_call> resultHandler) throws org.apache.thrift.TException {
2788
      checkReady();
2789
      getOrdersForTransaction_call method_call = new getOrdersForTransaction_call(transactionId, customerId, resultHandler, this, ___protocolFactory, ___transport);
2790
      this.___currentMethod = method_call;
2791
      ___manager.call(method_call);
2792
    }
2793
 
2794
    public static class getOrdersForTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
2795
      private long transactionId;
2796
      private long customerId;
2797
      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 {
2798
        super(client, protocolFactory, transport, resultHandler, false);
2799
        this.transactionId = transactionId;
2800
        this.customerId = customerId;
2801
      }
2802
 
2803
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2804
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersForTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
2805
        getOrdersForTransaction_args args = new getOrdersForTransaction_args();
2806
        args.setTransactionId(transactionId);
2807
        args.setCustomerId(customerId);
2808
        args.write(prot);
2809
        prot.writeMessageEnd();
2810
      }
2811
 
2812
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2813
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2814
          throw new IllegalStateException("Method call not finished!");
2815
        }
2816
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2817
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2818
        return (new Client(prot)).recv_getOrdersForTransaction();
2819
      }
2820
    }
2821
 
2822
    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 {
2823
      checkReady();
2824
      getOrdersForCustomer_call method_call = new getOrdersForCustomer_call(customerId, from_date, to_date, statuses, resultHandler, this, ___protocolFactory, ___transport);
2825
      this.___currentMethod = method_call;
2826
      ___manager.call(method_call);
2827
    }
2828
 
2829
    public static class getOrdersForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2830
      private long customerId;
2831
      private long from_date;
2832
      private long to_date;
2833
      private List<OrderStatus> statuses;
2834
      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 {
2835
        super(client, protocolFactory, transport, resultHandler, false);
2836
        this.customerId = customerId;
2837
        this.from_date = from_date;
2838
        this.to_date = to_date;
2839
        this.statuses = statuses;
2840
      }
2841
 
2842
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2843
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2844
        getOrdersForCustomer_args args = new getOrdersForCustomer_args();
2845
        args.setCustomerId(customerId);
2846
        args.setFrom_date(from_date);
2847
        args.setTo_date(to_date);
2848
        args.setStatuses(statuses);
2849
        args.write(prot);
2850
        prot.writeMessageEnd();
2851
      }
2852
 
2853
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2854
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2855
          throw new IllegalStateException("Method call not finished!");
2856
        }
2857
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2858
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2859
        return (new Client(prot)).recv_getOrdersForCustomer();
2860
      }
2861
    }
2862
 
2863
    public void createOrder(Order order, org.apache.thrift.async.AsyncMethodCallback<createOrder_call> resultHandler) throws org.apache.thrift.TException {
2864
      checkReady();
2865
      createOrder_call method_call = new createOrder_call(order, resultHandler, this, ___protocolFactory, ___transport);
2866
      this.___currentMethod = method_call;
2867
      ___manager.call(method_call);
2868
    }
2869
 
2870
    public static class createOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
2871
      private Order order;
2872
      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 {
2873
        super(client, protocolFactory, transport, resultHandler, false);
2874
        this.order = order;
2875
      }
2876
 
2877
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2878
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
2879
        createOrder_args args = new createOrder_args();
2880
        args.setOrder(order);
2881
        args.write(prot);
2882
        prot.writeMessageEnd();
2883
      }
2884
 
2885
      public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
2886
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2887
          throw new IllegalStateException("Method call not finished!");
2888
        }
2889
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2890
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2891
        return (new Client(prot)).recv_createOrder();
2892
      }
2893
    }
2894
 
2895
    public void getOrder(long id, org.apache.thrift.async.AsyncMethodCallback<getOrder_call> resultHandler) throws org.apache.thrift.TException {
2896
      checkReady();
2897
      getOrder_call method_call = new getOrder_call(id, resultHandler, this, ___protocolFactory, ___transport);
2898
      this.___currentMethod = method_call;
2899
      ___manager.call(method_call);
2900
    }
2901
 
2902
    public static class getOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
2903
      private long id;
2904
      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 {
2905
        super(client, protocolFactory, transport, resultHandler, false);
2906
        this.id = id;
2907
      }
2908
 
2909
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2910
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
2911
        getOrder_args args = new getOrder_args();
2912
        args.setId(id);
2913
        args.write(prot);
2914
        prot.writeMessageEnd();
2915
      }
2916
 
2917
      public Order 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_getOrder();
2924
      }
2925
    }
2926
 
2927
    public void getLineItemsForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getLineItemsForOrder_call> resultHandler) throws org.apache.thrift.TException {
2928
      checkReady();
2929
      getLineItemsForOrder_call method_call = new getLineItemsForOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2930
      this.___currentMethod = method_call;
2931
      ___manager.call(method_call);
2932
    }
2933
 
2934
    public static class getLineItemsForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
2935
      private long orderId;
2936
      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 {
2937
        super(client, protocolFactory, transport, resultHandler, false);
2938
        this.orderId = orderId;
2939
      }
2940
 
2941
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2942
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLineItemsForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
2943
        getLineItemsForOrder_args args = new getLineItemsForOrder_args();
2944
        args.setOrderId(orderId);
2945
        args.write(prot);
2946
        prot.writeMessageEnd();
2947
      }
2948
 
2949
      public List<LineItem> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2950
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2951
          throw new IllegalStateException("Method call not finished!");
2952
        }
2953
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2954
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2955
        return (new Client(prot)).recv_getLineItemsForOrder();
2956
      }
2957
    }
2958
 
2959
    public void getOrderForCustomer(long orderId, long customerId, org.apache.thrift.async.AsyncMethodCallback<getOrderForCustomer_call> resultHandler) throws org.apache.thrift.TException {
2960
      checkReady();
2961
      getOrderForCustomer_call method_call = new getOrderForCustomer_call(orderId, customerId, resultHandler, this, ___protocolFactory, ___transport);
2962
      this.___currentMethod = method_call;
2963
      ___manager.call(method_call);
2964
    }
2965
 
2966
    public static class getOrderForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2967
      private long orderId;
2968
      private long customerId;
2969
      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 {
2970
        super(client, protocolFactory, transport, resultHandler, false);
2971
        this.orderId = orderId;
2972
        this.customerId = customerId;
2973
      }
2974
 
2975
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2976
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2977
        getOrderForCustomer_args args = new getOrderForCustomer_args();
2978
        args.setOrderId(orderId);
2979
        args.setCustomerId(customerId);
2980
        args.write(prot);
2981
        prot.writeMessageEnd();
2982
      }
2983
 
2984
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
2985
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2986
          throw new IllegalStateException("Method call not finished!");
2987
        }
2988
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2989
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2990
        return (new Client(prot)).recv_getOrderForCustomer();
2991
      }
2992
    }
2993
 
2994
    public void getAlerts(long orderId, boolean valid, org.apache.thrift.async.AsyncMethodCallback<getAlerts_call> resultHandler) throws org.apache.thrift.TException {
2995
      checkReady();
2996
      getAlerts_call method_call = new getAlerts_call(orderId, valid, resultHandler, this, ___protocolFactory, ___transport);
2997
      this.___currentMethod = method_call;
2998
      ___manager.call(method_call);
2999
    }
3000
 
3001
    public static class getAlerts_call extends org.apache.thrift.async.TAsyncMethodCall {
3002
      private long orderId;
3003
      private boolean valid;
3004
      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 {
3005
        super(client, protocolFactory, transport, resultHandler, false);
3006
        this.orderId = orderId;
3007
        this.valid = valid;
3008
      }
3009
 
3010
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3011
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAlerts", org.apache.thrift.protocol.TMessageType.CALL, 0));
3012
        getAlerts_args args = new getAlerts_args();
3013
        args.setOrderId(orderId);
3014
        args.setValid(valid);
3015
        args.write(prot);
3016
        prot.writeMessageEnd();
3017
      }
3018
 
3019
      public List<Alert> getResult() throws org.apache.thrift.TException {
3020
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3021
          throw new IllegalStateException("Method call not finished!");
3022
        }
3023
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3024
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3025
        return (new Client(prot)).recv_getAlerts();
3026
      }
3027
    }
3028
 
3029
    public void setAlert(long orderId, boolean unset, long type, String comment, org.apache.thrift.async.AsyncMethodCallback<setAlert_call> resultHandler) throws org.apache.thrift.TException {
3030
      checkReady();
3031
      setAlert_call method_call = new setAlert_call(orderId, unset, type, comment, resultHandler, this, ___protocolFactory, ___transport);
3032
      this.___currentMethod = method_call;
3033
      ___manager.call(method_call);
3034
    }
3035
 
3036
    public static class setAlert_call extends org.apache.thrift.async.TAsyncMethodCall {
3037
      private long orderId;
3038
      private boolean unset;
3039
      private long type;
3040
      private String comment;
3041
      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 {
3042
        super(client, protocolFactory, transport, resultHandler, false);
3043
        this.orderId = orderId;
3044
        this.unset = unset;
3045
        this.type = type;
3046
        this.comment = comment;
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("setAlert", org.apache.thrift.protocol.TMessageType.CALL, 0));
3051
        setAlert_args args = new setAlert_args();
3052
        args.setOrderId(orderId);
3053
        args.setUnset(unset);
3054
        args.setType(type);
3055
        args.setComment(comment);
3056
        args.write(prot);
3057
        prot.writeMessageEnd();
3058
      }
3059
 
3060
      public void getResult() throws org.apache.thrift.TException {
3061
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3062
          throw new IllegalStateException("Method call not finished!");
3063
        }
3064
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3065
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3066
        (new Client(prot)).recv_setAlert();
3067
      }
3068
    }
3069
 
3070
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException {
3071
      checkReady();
3072
      getValidOrderCount_call method_call = new getValidOrderCount_call(resultHandler, this, ___protocolFactory, ___transport);
3073
      this.___currentMethod = method_call;
3074
      ___manager.call(method_call);
3075
    }
3076
 
3077
    public static class getValidOrderCount_call extends org.apache.thrift.async.TAsyncMethodCall {
3078
      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 {
3079
        super(client, protocolFactory, transport, resultHandler, false);
3080
      }
3081
 
3082
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3083
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidOrderCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
3084
        getValidOrderCount_args args = new getValidOrderCount_args();
3085
        args.write(prot);
3086
        prot.writeMessageEnd();
3087
      }
3088
 
3089
      public long getResult() throws 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_getValidOrderCount();
3096
      }
3097
    }
3098
 
3099
    public void getNoOfCustomersWithSuccessfulTransaction(org.apache.thrift.async.AsyncMethodCallback<getNoOfCustomersWithSuccessfulTransaction_call> resultHandler) throws org.apache.thrift.TException {
3100
      checkReady();
3101
      getNoOfCustomersWithSuccessfulTransaction_call method_call = new getNoOfCustomersWithSuccessfulTransaction_call(resultHandler, this, ___protocolFactory, ___transport);
3102
      this.___currentMethod = method_call;
3103
      ___manager.call(method_call);
3104
    }
3105
 
3106
    public static class getNoOfCustomersWithSuccessfulTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
3107
      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 {
3108
        super(client, protocolFactory, transport, resultHandler, false);
3109
      }
3110
 
3111
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3112
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNoOfCustomersWithSuccessfulTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
3113
        getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();
3114
        args.write(prot);
3115
        prot.writeMessageEnd();
3116
      }
3117
 
3118
      public long getResult() throws org.apache.thrift.TException {
3119
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3120
          throw new IllegalStateException("Method call not finished!");
3121
        }
3122
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3123
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3124
        return (new Client(prot)).recv_getNoOfCustomersWithSuccessfulTransaction();
3125
      }
3126
    }
3127
 
3128
    public void getValidOrdersAmountRange(org.apache.thrift.async.AsyncMethodCallback<getValidOrdersAmountRange_call> resultHandler) throws org.apache.thrift.TException {
3129
      checkReady();
3130
      getValidOrdersAmountRange_call method_call = new getValidOrdersAmountRange_call(resultHandler, this, ___protocolFactory, ___transport);
3131
      this.___currentMethod = method_call;
3132
      ___manager.call(method_call);
3133
    }
3134
 
3135
    public static class getValidOrdersAmountRange_call extends org.apache.thrift.async.TAsyncMethodCall {
3136
      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 {
3137
        super(client, protocolFactory, transport, resultHandler, false);
3138
      }
3139
 
3140
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3141
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidOrdersAmountRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
3142
        getValidOrdersAmountRange_args args = new getValidOrdersAmountRange_args();
3143
        args.write(prot);
3144
        prot.writeMessageEnd();
3145
      }
3146
 
3147
      public List<Double> getResult() throws org.apache.thrift.TException {
3148
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3149
          throw new IllegalStateException("Method call not finished!");
3150
        }
3151
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3152
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3153
        return (new Client(prot)).recv_getValidOrdersAmountRange();
3154
      }
3155
    }
3156
 
3157
    public void getValidOrders(long limit, org.apache.thrift.async.AsyncMethodCallback<getValidOrders_call> resultHandler) throws org.apache.thrift.TException {
3158
      checkReady();
3159
      getValidOrders_call method_call = new getValidOrders_call(limit, resultHandler, this, ___protocolFactory, ___transport);
3160
      this.___currentMethod = method_call;
3161
      ___manager.call(method_call);
3162
    }
3163
 
3164
    public static class getValidOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
3165
      private long limit;
3166
      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 {
3167
        super(client, protocolFactory, transport, resultHandler, false);
3168
        this.limit = limit;
3169
      }
3170
 
3171
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3172
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
3173
        getValidOrders_args args = new getValidOrders_args();
3174
        args.setLimit(limit);
3175
        args.write(prot);
3176
        prot.writeMessageEnd();
3177
      }
3178
 
3179
      public List<Order> getResult() throws org.apache.thrift.TException {
3180
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3181
          throw new IllegalStateException("Method call not finished!");
3182
        }
3183
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3184
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3185
        return (new Client(prot)).recv_getValidOrders();
3186
      }
3187
    }
3188
 
3189
    public void batchOrders(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<batchOrders_call> resultHandler) throws org.apache.thrift.TException {
3190
      checkReady();
3191
      batchOrders_call method_call = new batchOrders_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3192
      this.___currentMethod = method_call;
3193
      ___manager.call(method_call);
3194
    }
3195
 
3196
    public static class batchOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
3197
      private long warehouseId;
3198
      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 {
3199
        super(client, protocolFactory, transport, resultHandler, false);
3200
        this.warehouseId = warehouseId;
3201
      }
3202
 
3203
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3204
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("batchOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
3205
        batchOrders_args args = new batchOrders_args();
3206
        args.setWarehouseId(warehouseId);
3207
        args.write(prot);
3208
        prot.writeMessageEnd();
3209
      }
3210
 
3211
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
3212
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3213
          throw new IllegalStateException("Method call not finished!");
3214
        }
3215
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3216
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3217
        return (new Client(prot)).recv_batchOrders();
3218
      }
3219
    }
3220
 
3221
    public void markOrderAsOutOfStock(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderAsOutOfStock_call> resultHandler) throws org.apache.thrift.TException {
3222
      checkReady();
3223
      markOrderAsOutOfStock_call method_call = new markOrderAsOutOfStock_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3224
      this.___currentMethod = method_call;
3225
      ___manager.call(method_call);
3226
    }
3227
 
3228
    public static class markOrderAsOutOfStock_call extends org.apache.thrift.async.TAsyncMethodCall {
3229
      private long orderId;
3230
      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 {
3231
        super(client, protocolFactory, transport, resultHandler, false);
3232
        this.orderId = orderId;
3233
      }
3234
 
3235
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3236
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderAsOutOfStock", org.apache.thrift.protocol.TMessageType.CALL, 0));
3237
        markOrderAsOutOfStock_args args = new markOrderAsOutOfStock_args();
3238
        args.setOrderId(orderId);
3239
        args.write(prot);
3240
        prot.writeMessageEnd();
3241
      }
3242
 
3243
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3244
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3245
          throw new IllegalStateException("Method call not finished!");
3246
        }
3247
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3248
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3249
        return (new Client(prot)).recv_markOrderAsOutOfStock();
3250
      }
3251
    }
3252
 
3253
    public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<verifyOrder_call> resultHandler) throws org.apache.thrift.TException {
3254
      checkReady();
3255
      verifyOrder_call method_call = new verifyOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3256
      this.___currentMethod = method_call;
3257
      ___manager.call(method_call);
3258
    }
3259
 
3260
    public static class verifyOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3261
      private long orderId;
3262
      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 {
3263
        super(client, protocolFactory, transport, resultHandler, false);
3264
        this.orderId = orderId;
3265
      }
3266
 
3267
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3268
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("verifyOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3269
        verifyOrder_args args = new verifyOrder_args();
3270
        args.setOrderId(orderId);
3271
        args.write(prot);
3272
        prot.writeMessageEnd();
3273
      }
3274
 
3275
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3276
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3277
          throw new IllegalStateException("Method call not finished!");
3278
        }
3279
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3280
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3281
        return (new Client(prot)).recv_verifyOrder();
3282
      }
3283
    }
3284
 
3285
    public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<acceptOrder_call> resultHandler) throws org.apache.thrift.TException {
3286
      checkReady();
3287
      acceptOrder_call method_call = new acceptOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3288
      this.___currentMethod = method_call;
3289
      ___manager.call(method_call);
3290
    }
3291
 
3292
    public static class acceptOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3293
      private long orderId;
3294
      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 {
3295
        super(client, protocolFactory, transport, resultHandler, false);
3296
        this.orderId = orderId;
3297
      }
3298
 
3299
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3300
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("acceptOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3301
        acceptOrder_args args = new acceptOrder_args();
3302
        args.setOrderId(orderId);
3303
        args.write(prot);
3304
        prot.writeMessageEnd();
3305
      }
3306
 
3307
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3308
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3309
          throw new IllegalStateException("Method call not finished!");
3310
        }
3311
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3312
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3313
        return (new Client(prot)).recv_acceptOrder();
3314
      }
3315
    }
3316
 
3317
    public void billOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<billOrder_call> resultHandler) throws org.apache.thrift.TException {
3318
      checkReady();
3319
      billOrder_call method_call = new billOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3320
      this.___currentMethod = method_call;
3321
      ___manager.call(method_call);
3322
    }
3323
 
3324
    public static class billOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3325
      private long orderId;
3326
      public billOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<billOrder_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 {
3327
        super(client, protocolFactory, transport, resultHandler, false);
3328
        this.orderId = orderId;
3329
      }
3330
 
3331
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3332
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("billOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3333
        billOrder_args args = new billOrder_args();
3334
        args.setOrderId(orderId);
3335
        args.write(prot);
3336
        prot.writeMessageEnd();
3337
      }
3338
 
3339
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3340
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3341
          throw new IllegalStateException("Method call not finished!");
3342
        }
3343
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3344
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3345
        return (new Client(prot)).recv_billOrder();
3346
      }
3347
    }
3348
 
3349
    public void addBillingDetails(long orderId, String invoice_number, String billed_by, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler) throws org.apache.thrift.TException {
3350
      checkReady();
3351
      addBillingDetails_call method_call = new addBillingDetails_call(orderId, invoice_number, billed_by, resultHandler, this, ___protocolFactory, ___transport);
3352
      this.___currentMethod = method_call;
3353
      ___manager.call(method_call);
3354
    }
3355
 
3356
    public static class addBillingDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
3357
      private long orderId;
3358
      private String invoice_number;
3359
      private String billed_by;
3360
      public addBillingDetails_call(long orderId, String invoice_number, String billed_by, 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 {
3361
        super(client, protocolFactory, transport, resultHandler, false);
3362
        this.orderId = orderId;
3363
        this.invoice_number = invoice_number;
3364
        this.billed_by = billed_by;
3365
      }
3366
 
3367
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3368
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBillingDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
3369
        addBillingDetails_args args = new addBillingDetails_args();
3370
        args.setOrderId(orderId);
3371
        args.setInvoice_number(invoice_number);
3372
        args.setBilled_by(billed_by);
3373
        args.write(prot);
3374
        prot.writeMessageEnd();
3375
      }
3376
 
3377
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3378
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3379
          throw new IllegalStateException("Method call not finished!");
3380
        }
3381
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3382
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3383
        return (new Client(prot)).recv_addBillingDetails();
3384
      }
3385
    }
3386
 
3387
    public void addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType, org.apache.thrift.async.AsyncMethodCallback<addJacketNumber_call> resultHandler) throws org.apache.thrift.TException {
3388
      checkReady();
3389
      addJacketNumber_call method_call = new addJacketNumber_call(orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType, resultHandler, this, ___protocolFactory, ___transport);
3390
      this.___currentMethod = method_call;
3391
      ___manager.call(method_call);
3392
    }
3393
 
3394
    public static class addJacketNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
3395
      private long orderId;
3396
      private long jacketNumber;
3397
      private long imeiNumber;
3398
      private String itemNumber;
3399
      private String billedBy;
3400
      private long billingType;
3401
      public addJacketNumber_call(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType, org.apache.thrift.async.AsyncMethodCallback<addJacketNumber_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 {
3402
        super(client, protocolFactory, transport, resultHandler, false);
3403
        this.orderId = orderId;
3404
        this.jacketNumber = jacketNumber;
3405
        this.imeiNumber = imeiNumber;
3406
        this.itemNumber = itemNumber;
3407
        this.billedBy = billedBy;
3408
        this.billingType = billingType;
3409
      }
3410
 
3411
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3412
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addJacketNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
3413
        addJacketNumber_args args = new addJacketNumber_args();
3414
        args.setOrderId(orderId);
3415
        args.setJacketNumber(jacketNumber);
3416
        args.setImeiNumber(imeiNumber);
3417
        args.setItemNumber(itemNumber);
3418
        args.setBilledBy(billedBy);
3419
        args.setBillingType(billingType);
3420
        args.write(prot);
3421
        prot.writeMessageEnd();
3422
      }
3423
 
3424
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3425
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3426
          throw new IllegalStateException("Method call not finished!");
3427
        }
3428
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3429
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3430
        return (new Client(prot)).recv_addJacketNumber();
3431
      }
3432
    }
3433
 
3434
    public void markOrdersAsManifested(long warehouseId, long providerId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsManifested_call> resultHandler) throws org.apache.thrift.TException {
3435
      checkReady();
3436
      markOrdersAsManifested_call method_call = new markOrdersAsManifested_call(warehouseId, providerId, cod, resultHandler, this, ___protocolFactory, ___transport);
3437
      this.___currentMethod = method_call;
3438
      ___manager.call(method_call);
3439
    }
3440
 
3441
    public static class markOrdersAsManifested_call extends org.apache.thrift.async.TAsyncMethodCall {
3442
      private long warehouseId;
3443
      private long providerId;
3444
      private boolean cod;
3445
      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 {
3446
        super(client, protocolFactory, transport, resultHandler, false);
3447
        this.warehouseId = warehouseId;
3448
        this.providerId = providerId;
3449
        this.cod = cod;
3450
      }
3451
 
3452
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3453
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsManifested", org.apache.thrift.protocol.TMessageType.CALL, 0));
3454
        markOrdersAsManifested_args args = new markOrdersAsManifested_args();
3455
        args.setWarehouseId(warehouseId);
3456
        args.setProviderId(providerId);
3457
        args.setCod(cod);
3458
        args.write(prot);
3459
        prot.writeMessageEnd();
3460
      }
3461
 
3462
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3463
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3464
          throw new IllegalStateException("Method call not finished!");
3465
        }
3466
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3467
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3468
        return (new Client(prot)).recv_markOrdersAsManifested();
3469
      }
3470
    }
3471
 
3472
    public void markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsPickedUp_call> resultHandler) throws org.apache.thrift.TException {
3473
      checkReady();
3474
      markOrdersAsPickedUp_call method_call = new markOrdersAsPickedUp_call(providerId, pickupDetails, resultHandler, this, ___protocolFactory, ___transport);
3475
      this.___currentMethod = method_call;
3476
      ___manager.call(method_call);
3477
    }
3478
 
3479
    public static class markOrdersAsPickedUp_call extends org.apache.thrift.async.TAsyncMethodCall {
3480
      private long providerId;
3481
      private Map<String,String> pickupDetails;
3482
      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 {
3483
        super(client, protocolFactory, transport, resultHandler, false);
3484
        this.providerId = providerId;
3485
        this.pickupDetails = pickupDetails;
3486
      }
3487
 
3488
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3489
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsPickedUp", org.apache.thrift.protocol.TMessageType.CALL, 0));
3490
        markOrdersAsPickedUp_args args = new markOrdersAsPickedUp_args();
3491
        args.setProviderId(providerId);
3492
        args.setPickupDetails(pickupDetails);
3493
        args.write(prot);
3494
        prot.writeMessageEnd();
3495
      }
3496
 
3497
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
3498
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3499
          throw new IllegalStateException("Method call not finished!");
3500
        }
3501
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3502
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3503
        return (new Client(prot)).recv_markOrdersAsPickedUp();
3504
      }
3505
    }
3506
 
3507
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsDelivered_call> resultHandler) throws org.apache.thrift.TException {
3508
      checkReady();
3509
      markOrdersAsDelivered_call method_call = new markOrdersAsDelivered_call(providerId, deliveredOrders, resultHandler, this, ___protocolFactory, ___transport);
3510
      this.___currentMethod = method_call;
3511
      ___manager.call(method_call);
3512
    }
3513
 
3514
    public static class markOrdersAsDelivered_call extends org.apache.thrift.async.TAsyncMethodCall {
3515
      private long providerId;
3516
      private Map<String,String> deliveredOrders;
3517
      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 {
3518
        super(client, protocolFactory, transport, resultHandler, false);
3519
        this.providerId = providerId;
3520
        this.deliveredOrders = deliveredOrders;
3521
      }
3522
 
3523
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3524
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsDelivered", org.apache.thrift.protocol.TMessageType.CALL, 0));
3525
        markOrdersAsDelivered_args args = new markOrdersAsDelivered_args();
3526
        args.setProviderId(providerId);
3527
        args.setDeliveredOrders(deliveredOrders);
3528
        args.write(prot);
3529
        prot.writeMessageEnd();
3530
      }
3531
 
3532
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
3533
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3534
          throw new IllegalStateException("Method call not finished!");
3535
        }
3536
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3537
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3538
        (new Client(prot)).recv_markOrdersAsDelivered();
3539
      }
3540
    }
3541
 
3542
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsFailed_call> resultHandler) throws org.apache.thrift.TException {
3543
      checkReady();
3544
      markOrdersAsFailed_call method_call = new markOrdersAsFailed_call(providerId, returnedOrders, resultHandler, this, ___protocolFactory, ___transport);
3545
      this.___currentMethod = method_call;
3546
      ___manager.call(method_call);
3547
    }
3548
 
3549
    public static class markOrdersAsFailed_call extends org.apache.thrift.async.TAsyncMethodCall {
3550
      private long providerId;
3551
      private Map<String,String> returnedOrders;
3552
      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 {
3553
        super(client, protocolFactory, transport, resultHandler, false);
3554
        this.providerId = providerId;
3555
        this.returnedOrders = returnedOrders;
3556
      }
3557
 
3558
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3559
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsFailed", org.apache.thrift.protocol.TMessageType.CALL, 0));
3560
        markOrdersAsFailed_args args = new markOrdersAsFailed_args();
3561
        args.setProviderId(providerId);
3562
        args.setReturnedOrders(returnedOrders);
3563
        args.write(prot);
3564
        prot.writeMessageEnd();
3565
      }
3566
 
3567
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
3568
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3569
          throw new IllegalStateException("Method call not finished!");
3570
        }
3571
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3572
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3573
        (new Client(prot)).recv_markOrdersAsFailed();
3574
      }
3575
    }
3576
 
3577
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders, org.apache.thrift.async.AsyncMethodCallback<updateNonDeliveryReason_call> resultHandler) throws org.apache.thrift.TException {
3578
      checkReady();
3579
      updateNonDeliveryReason_call method_call = new updateNonDeliveryReason_call(providerId, undeliveredOrders, resultHandler, this, ___protocolFactory, ___transport);
3580
      this.___currentMethod = method_call;
3581
      ___manager.call(method_call);
3582
    }
3583
 
3584
    public static class updateNonDeliveryReason_call extends org.apache.thrift.async.TAsyncMethodCall {
3585
      private long providerId;
3586
      private Map<String,String> undeliveredOrders;
3587
      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 {
3588
        super(client, protocolFactory, transport, resultHandler, false);
3589
        this.providerId = providerId;
3590
        this.undeliveredOrders = undeliveredOrders;
3591
      }
3592
 
3593
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3594
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateNonDeliveryReason", org.apache.thrift.protocol.TMessageType.CALL, 0));
3595
        updateNonDeliveryReason_args args = new updateNonDeliveryReason_args();
3596
        args.setProviderId(providerId);
3597
        args.setUndeliveredOrders(undeliveredOrders);
3598
        args.write(prot);
3599
        prot.writeMessageEnd();
3600
      }
3601
 
3602
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
3603
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3604
          throw new IllegalStateException("Method call not finished!");
3605
        }
3606
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3607
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3608
        (new Client(prot)).recv_updateNonDeliveryReason();
3609
      }
3610
    }
3611
 
3612
    public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException {
3613
      checkReady();
3614
      getUndeliveredOrders_call method_call = new getUndeliveredOrders_call(providerId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3615
      this.___currentMethod = method_call;
3616
      ___manager.call(method_call);
3617
    }
3618
 
3619
    public static class getUndeliveredOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
3620
      private long providerId;
3621
      private long warehouseId;
3622
      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 {
3623
        super(client, protocolFactory, transport, resultHandler, false);
3624
        this.providerId = providerId;
3625
        this.warehouseId = warehouseId;
3626
      }
3627
 
3628
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3629
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUndeliveredOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
3630
        getUndeliveredOrders_args args = new getUndeliveredOrders_args();
3631
        args.setProviderId(providerId);
3632
        args.setWarehouseId(warehouseId);
3633
        args.write(prot);
3634
        prot.writeMessageEnd();
3635
      }
3636
 
3637
      public List<Order> getResult() throws org.apache.thrift.TException {
3638
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3639
          throw new IllegalStateException("Method call not finished!");
3640
        }
3641
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3642
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3643
        return (new Client(prot)).recv_getUndeliveredOrders();
3644
      }
3645
    }
3646
 
3647
    public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException {
3648
      checkReady();
3649
      toggleDOAFlag_call method_call = new toggleDOAFlag_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3650
      this.___currentMethod = method_call;
3651
      ___manager.call(method_call);
3652
    }
3653
 
3654
    public static class toggleDOAFlag_call extends org.apache.thrift.async.TAsyncMethodCall {
3655
      private long orderId;
3656
      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 {
3657
        super(client, protocolFactory, transport, resultHandler, false);
3658
        this.orderId = orderId;
3659
      }
3660
 
3661
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3662
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("toggleDOAFlag", org.apache.thrift.protocol.TMessageType.CALL, 0));
3663
        toggleDOAFlag_args args = new toggleDOAFlag_args();
3664
        args.setOrderId(orderId);
3665
        args.write(prot);
3666
        prot.writeMessageEnd();
3667
      }
3668
 
3669
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3670
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3671
          throw new IllegalStateException("Method call not finished!");
3672
        }
3673
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3674
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3675
        return (new Client(prot)).recv_toggleDOAFlag();
3676
      }
3677
    }
3678
 
3679
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException {
3680
      checkReady();
3681
      requestPickupNumber_call method_call = new requestPickupNumber_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3682
      this.___currentMethod = method_call;
3683
      ___manager.call(method_call);
3684
    }
3685
 
3686
    public static class requestPickupNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
3687
      private long orderId;
3688
      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 {
3689
        super(client, protocolFactory, transport, resultHandler, false);
3690
        this.orderId = orderId;
3691
      }
3692
 
3693
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3694
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("requestPickupNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
3695
        requestPickupNumber_args args = new requestPickupNumber_args();
3696
        args.setOrderId(orderId);
3697
        args.write(prot);
3698
        prot.writeMessageEnd();
3699
      }
3700
 
3701
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3702
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3703
          throw new IllegalStateException("Method call not finished!");
3704
        }
3705
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3706
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3707
        return (new Client(prot)).recv_requestPickupNumber();
3708
      }
3709
    }
3710
 
3711
    public void authorizePickup(long orderId, String pickupNumber, org.apache.thrift.async.AsyncMethodCallback<authorizePickup_call> resultHandler) throws org.apache.thrift.TException {
3712
      checkReady();
3713
      authorizePickup_call method_call = new authorizePickup_call(orderId, pickupNumber, resultHandler, this, ___protocolFactory, ___transport);
3714
      this.___currentMethod = method_call;
3715
      ___manager.call(method_call);
3716
    }
3717
 
3718
    public static class authorizePickup_call extends org.apache.thrift.async.TAsyncMethodCall {
3719
      private long orderId;
3720
      private String pickupNumber;
3721
      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 {
3722
        super(client, protocolFactory, transport, resultHandler, false);
3723
        this.orderId = orderId;
3724
        this.pickupNumber = pickupNumber;
3725
      }
3726
 
3727
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3728
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authorizePickup", org.apache.thrift.protocol.TMessageType.CALL, 0));
3729
        authorizePickup_args args = new authorizePickup_args();
3730
        args.setOrderId(orderId);
3731
        args.setPickupNumber(pickupNumber);
3732
        args.write(prot);
3733
        prot.writeMessageEnd();
3734
      }
3735
 
3736
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3737
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3738
          throw new IllegalStateException("Method call not finished!");
3739
        }
3740
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3741
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3742
        return (new Client(prot)).recv_authorizePickup();
3743
      }
3744
    }
3745
 
3746
    public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException {
3747
      checkReady();
3748
      markDoasAsPickedUp_call method_call = new markDoasAsPickedUp_call(providerId, pickupDetails, resultHandler, this, ___protocolFactory, ___transport);
3749
      this.___currentMethod = method_call;
3750
      ___manager.call(method_call);
3751
    }
3752
 
3753
    public static class markDoasAsPickedUp_call extends org.apache.thrift.async.TAsyncMethodCall {
3754
      private long providerId;
3755
      private Map<String,String> pickupDetails;
3756
      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 {
3757
        super(client, protocolFactory, transport, resultHandler, false);
3758
        this.providerId = providerId;
3759
        this.pickupDetails = pickupDetails;
3760
      }
3761
 
3762
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3763
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markDoasAsPickedUp", org.apache.thrift.protocol.TMessageType.CALL, 0));
3764
        markDoasAsPickedUp_args args = new markDoasAsPickedUp_args();
3765
        args.setProviderId(providerId);
3766
        args.setPickupDetails(pickupDetails);
3767
        args.write(prot);
3768
        prot.writeMessageEnd();
3769
      }
3770
 
3771
      public List<Order> getResult() throws org.apache.thrift.TException {
3772
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3773
          throw new IllegalStateException("Method call not finished!");
3774
        }
3775
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3776
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3777
        return (new Client(prot)).recv_markDoasAsPickedUp();
3778
      }
3779
    }
3780
 
3781
    public void receiveReturn(long orderId, org.apache.thrift.async.AsyncMethodCallback<receiveReturn_call> resultHandler) throws org.apache.thrift.TException {
3782
      checkReady();
3783
      receiveReturn_call method_call = new receiveReturn_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3784
      this.___currentMethod = method_call;
3785
      ___manager.call(method_call);
3786
    }
3787
 
3788
    public static class receiveReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
3789
      private long orderId;
3790
      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 {
3791
        super(client, protocolFactory, transport, resultHandler, false);
3792
        this.orderId = orderId;
3793
      }
3794
 
3795
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3796
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("receiveReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
3797
        receiveReturn_args args = new receiveReturn_args();
3798
        args.setOrderId(orderId);
3799
        args.write(prot);
3800
        prot.writeMessageEnd();
3801
      }
3802
 
3803
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3804
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3805
          throw new IllegalStateException("Method call not finished!");
3806
        }
3807
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3808
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3809
        return (new Client(prot)).recv_receiveReturn();
3810
      }
3811
    }
3812
 
3813
    public void validateDoa(long orderId, boolean isValid, org.apache.thrift.async.AsyncMethodCallback<validateDoa_call> resultHandler) throws org.apache.thrift.TException {
3814
      checkReady();
3815
      validateDoa_call method_call = new validateDoa_call(orderId, isValid, resultHandler, this, ___protocolFactory, ___transport);
3816
      this.___currentMethod = method_call;
3817
      ___manager.call(method_call);
3818
    }
3819
 
3820
    public static class validateDoa_call extends org.apache.thrift.async.TAsyncMethodCall {
3821
      private long orderId;
3822
      private boolean isValid;
3823
      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 {
3824
        super(client, protocolFactory, transport, resultHandler, false);
3825
        this.orderId = orderId;
3826
        this.isValid = isValid;
3827
      }
3828
 
3829
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3830
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateDoa", org.apache.thrift.protocol.TMessageType.CALL, 0));
3831
        validateDoa_args args = new validateDoa_args();
3832
        args.setOrderId(orderId);
3833
        args.setIsValid(isValid);
3834
        args.write(prot);
3835
        prot.writeMessageEnd();
3836
      }
3837
 
3838
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3839
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3840
          throw new IllegalStateException("Method call not finished!");
3841
        }
3842
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3843
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3844
        return (new Client(prot)).recv_validateDoa();
3845
      }
3846
    }
3847
 
3848
    public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<reshipOrder_call> resultHandler) throws org.apache.thrift.TException {
3849
      checkReady();
3850
      reshipOrder_call method_call = new reshipOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3851
      this.___currentMethod = method_call;
3852
      ___manager.call(method_call);
3853
    }
3854
 
3855
    public static class reshipOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3856
      private long orderId;
3857
      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 {
3858
        super(client, protocolFactory, transport, resultHandler, false);
3859
        this.orderId = orderId;
3860
      }
3861
 
3862
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3863
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reshipOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3864
        reshipOrder_args args = new reshipOrder_args();
3865
        args.setOrderId(orderId);
3866
        args.write(prot);
3867
        prot.writeMessageEnd();
3868
      }
3869
 
3870
      public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
3871
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3872
          throw new IllegalStateException("Method call not finished!");
3873
        }
3874
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3875
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3876
        return (new Client(prot)).recv_reshipOrder();
3877
      }
3878
    }
3879
 
3880
    public void refundOrder(long orderId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<refundOrder_call> resultHandler) throws org.apache.thrift.TException {
3881
      checkReady();
3882
      refundOrder_call method_call = new refundOrder_call(orderId, refundedBy, reason, resultHandler, this, ___protocolFactory, ___transport);
3883
      this.___currentMethod = method_call;
3884
      ___manager.call(method_call);
3885
    }
3886
 
3887
    public static class refundOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3888
      private long orderId;
3889
      private String refundedBy;
3890
      private String reason;
3891
      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 {
3892
        super(client, protocolFactory, transport, resultHandler, false);
3893
        this.orderId = orderId;
3894
        this.refundedBy = refundedBy;
3895
        this.reason = reason;
3896
      }
3897
 
3898
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3899
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("refundOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3900
        refundOrder_args args = new refundOrder_args();
3901
        args.setOrderId(orderId);
3902
        args.setRefundedBy(refundedBy);
3903
        args.setReason(reason);
3904
        args.write(prot);
3905
        prot.writeMessageEnd();
3906
      }
3907
 
3908
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3909
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3910
          throw new IllegalStateException("Method call not finished!");
3911
        }
3912
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3913
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3914
        return (new Client(prot)).recv_refundOrder();
3915
      }
3916
    }
3917
 
3918
    public void getReturnOrders(long warehouseId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getReturnOrders_call> resultHandler) throws org.apache.thrift.TException {
3919
      checkReady();
3920
      getReturnOrders_call method_call = new getReturnOrders_call(warehouseId, fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
3921
      this.___currentMethod = method_call;
3922
      ___manager.call(method_call);
3923
    }
3924
 
3925
    public static class getReturnOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
3926
      private long warehouseId;
3927
      private long fromDate;
3928
      private long toDate;
3929
      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 {
3930
        super(client, protocolFactory, transport, resultHandler, false);
3931
        this.warehouseId = warehouseId;
3932
        this.fromDate = fromDate;
3933
        this.toDate = toDate;
3934
      }
3935
 
3936
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3937
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReturnOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
3938
        getReturnOrders_args args = new getReturnOrders_args();
3939
        args.setWarehouseId(warehouseId);
3940
        args.setFromDate(fromDate);
3941
        args.setToDate(toDate);
3942
        args.write(prot);
3943
        prot.writeMessageEnd();
3944
      }
3945
 
3946
      public List<ReturnOrder> getResult() throws 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_getReturnOrders();
3953
      }
3954
    }
3955
 
3956
    public void getReturnOrder(long id, org.apache.thrift.async.AsyncMethodCallback<getReturnOrder_call> resultHandler) throws org.apache.thrift.TException {
3957
      checkReady();
3958
      getReturnOrder_call method_call = new getReturnOrder_call(id, resultHandler, this, ___protocolFactory, ___transport);
3959
      this.___currentMethod = method_call;
3960
      ___manager.call(method_call);
3961
    }
3962
 
3963
    public static class getReturnOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3964
      private long id;
3965
      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 {
3966
        super(client, protocolFactory, transport, resultHandler, false);
3967
        this.id = id;
3968
      }
3969
 
3970
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3971
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReturnOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3972
        getReturnOrder_args args = new getReturnOrder_args();
3973
        args.setId(id);
3974
        args.write(prot);
3975
        prot.writeMessageEnd();
3976
      }
3977
 
3978
      public ReturnOrder getResult() throws TransactionServiceException, org.apache.thrift.TException {
3979
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3980
          throw new IllegalStateException("Method call not finished!");
3981
        }
3982
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3983
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3984
        return (new Client(prot)).recv_getReturnOrder();
3985
      }
3986
    }
3987
 
3988
    public void processReturn(long returnOrderId, org.apache.thrift.async.AsyncMethodCallback<processReturn_call> resultHandler) throws org.apache.thrift.TException {
3989
      checkReady();
3990
      processReturn_call method_call = new processReturn_call(returnOrderId, resultHandler, this, ___protocolFactory, ___transport);
3991
      this.___currentMethod = method_call;
3992
      ___manager.call(method_call);
3993
    }
3994
 
3995
    public static class processReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
3996
      private long returnOrderId;
3997
      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 {
3998
        super(client, protocolFactory, transport, resultHandler, false);
3999
        this.returnOrderId = returnOrderId;
4000
      }
4001
 
4002
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4003
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("processReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
4004
        processReturn_args args = new processReturn_args();
4005
        args.setReturnOrderId(returnOrderId);
4006
        args.write(prot);
4007
        prot.writeMessageEnd();
4008
      }
4009
 
4010
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
4011
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4012
          throw new IllegalStateException("Method call not finished!");
4013
        }
4014
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4015
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4016
        (new Client(prot)).recv_processReturn();
4017
      }
4018
    }
4019
 
4020
    public void createPurchaseOrder(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException {
4021
      checkReady();
4022
      createPurchaseOrder_call method_call = new createPurchaseOrder_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
4023
      this.___currentMethod = method_call;
4024
      ___manager.call(method_call);
4025
    }
4026
 
4027
    public static class createPurchaseOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
4028
      private long warehouseId;
4029
      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 {
4030
        super(client, protocolFactory, transport, resultHandler, false);
4031
        this.warehouseId = warehouseId;
4032
      }
4033
 
4034
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4035
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPurchaseOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
4036
        createPurchaseOrder_args args = new createPurchaseOrder_args();
4037
        args.setWarehouseId(warehouseId);
4038
        args.write(prot);
4039
        prot.writeMessageEnd();
4040
      }
4041
 
4042
      public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
4043
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4044
          throw new IllegalStateException("Method call not finished!");
4045
        }
4046
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4047
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4048
        return (new Client(prot)).recv_createPurchaseOrder();
4049
      }
4050
    }
4051
 
3451 chandransh 4052
    public void updateWeight(long orderId, double weight, org.apache.thrift.async.AsyncMethodCallback<updateWeight_call> resultHandler) throws org.apache.thrift.TException {
4053
      checkReady();
4054
      updateWeight_call method_call = new updateWeight_call(orderId, weight, resultHandler, this, ___protocolFactory, ___transport);
4055
      this.___currentMethod = method_call;
4056
      ___manager.call(method_call);
4057
    }
4058
 
4059
    public static class updateWeight_call extends org.apache.thrift.async.TAsyncMethodCall {
4060
      private long orderId;
4061
      private double weight;
4062
      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 {
4063
        super(client, protocolFactory, transport, resultHandler, false);
4064
        this.orderId = orderId;
4065
        this.weight = weight;
4066
      }
4067
 
4068
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4069
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateWeight", org.apache.thrift.protocol.TMessageType.CALL, 0));
4070
        updateWeight_args args = new updateWeight_args();
4071
        args.setOrderId(orderId);
4072
        args.setWeight(weight);
4073
        args.write(prot);
4074
        prot.writeMessageEnd();
4075
      }
4076
 
4077
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
4078
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4079
          throw new IllegalStateException("Method call not finished!");
4080
        }
4081
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4082
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4083
        return (new Client(prot)).recv_updateWeight();
4084
      }
4085
    }
4086
 
3469 chandransh 4087
    public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<changeItem_call> resultHandler) throws org.apache.thrift.TException {
4088
      checkReady();
4089
      changeItem_call method_call = new changeItem_call(orderId, itemId, resultHandler, this, ___protocolFactory, ___transport);
4090
      this.___currentMethod = method_call;
4091
      ___manager.call(method_call);
4092
    }
4093
 
4094
    public static class changeItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4095
      private long orderId;
4096
      private long itemId;
4097
      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 {
4098
        super(client, protocolFactory, transport, resultHandler, false);
4099
        this.orderId = orderId;
4100
        this.itemId = itemId;
4101
      }
4102
 
4103
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4104
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4105
        changeItem_args args = new changeItem_args();
4106
        args.setOrderId(orderId);
4107
        args.setItemId(itemId);
4108
        args.write(prot);
4109
        prot.writeMessageEnd();
4110
      }
4111
 
4112
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
4113
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4114
          throw new IllegalStateException("Method call not finished!");
4115
        }
4116
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4117
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4118
        return (new Client(prot)).recv_changeItem();
4119
      }
4120
    }
4121
 
4122
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException {
4123
      checkReady();
4124
      shiftToWarehouse_call method_call = new shiftToWarehouse_call(orderId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
4125
      this.___currentMethod = method_call;
4126
      ___manager.call(method_call);
4127
    }
4128
 
4129
    public static class shiftToWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
4130
      private long orderId;
4131
      private long warehouseId;
4132
      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 {
4133
        super(client, protocolFactory, transport, resultHandler, false);
4134
        this.orderId = orderId;
4135
        this.warehouseId = warehouseId;
4136
      }
4137
 
4138
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4139
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shiftToWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
4140
        shiftToWarehouse_args args = new shiftToWarehouse_args();
4141
        args.setOrderId(orderId);
4142
        args.setWarehouseId(warehouseId);
4143
        args.write(prot);
4144
        prot.writeMessageEnd();
4145
      }
4146
 
4147
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
4148
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4149
          throw new IllegalStateException("Method call not finished!");
4150
        }
4151
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4152
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4153
        return (new Client(prot)).recv_shiftToWarehouse();
4154
      }
4155
    }
4156
 
3986 chandransh 4157
    public void addDelayReason(long orderId, DelayReason delayReason, long furtherDelay, org.apache.thrift.async.AsyncMethodCallback<addDelayReason_call> resultHandler) throws org.apache.thrift.TException {
3553 chandransh 4158
      checkReady();
3986 chandransh 4159
      addDelayReason_call method_call = new addDelayReason_call(orderId, delayReason, furtherDelay, resultHandler, this, ___protocolFactory, ___transport);
3553 chandransh 4160
      this.___currentMethod = method_call;
4161
      ___manager.call(method_call);
4162
    }
4163
 
4164
    public static class addDelayReason_call extends org.apache.thrift.async.TAsyncMethodCall {
4165
      private long orderId;
4166
      private DelayReason delayReason;
3986 chandransh 4167
      private long furtherDelay;
4168
      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 4169
        super(client, protocolFactory, transport, resultHandler, false);
4170
        this.orderId = orderId;
4171
        this.delayReason = delayReason;
3986 chandransh 4172
        this.furtherDelay = furtherDelay;
3553 chandransh 4173
      }
4174
 
4175
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4176
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addDelayReason", org.apache.thrift.protocol.TMessageType.CALL, 0));
4177
        addDelayReason_args args = new addDelayReason_args();
4178
        args.setOrderId(orderId);
4179
        args.setDelayReason(delayReason);
3986 chandransh 4180
        args.setFurtherDelay(furtherDelay);
3553 chandransh 4181
        args.write(prot);
4182
        prot.writeMessageEnd();
4183
      }
4184
 
4185
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
4186
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4187
          throw new IllegalStateException("Method call not finished!");
4188
        }
4189
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4190
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4191
        return (new Client(prot)).recv_addDelayReason();
4192
      }
4193
    }
4194
 
3956 chandransh 4195
    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 {
4196
      checkReady();
4197
      reconcileCodCollection_call method_call = new reconcileCodCollection_call(collectedAmountMap, xferBy, xferTxnId, xferDate, resultHandler, this, ___protocolFactory, ___transport);
4198
      this.___currentMethod = method_call;
4199
      ___manager.call(method_call);
4200
    }
4201
 
4202
    public static class reconcileCodCollection_call extends org.apache.thrift.async.TAsyncMethodCall {
4203
      private Map<String,Double> collectedAmountMap;
4204
      private String xferBy;
4205
      private String xferTxnId;
4206
      private long xferDate;
4207
      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 {
4208
        super(client, protocolFactory, transport, resultHandler, false);
4209
        this.collectedAmountMap = collectedAmountMap;
4210
        this.xferBy = xferBy;
4211
        this.xferTxnId = xferTxnId;
4212
        this.xferDate = xferDate;
4213
      }
4214
 
4215
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4216
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reconcileCodCollection", org.apache.thrift.protocol.TMessageType.CALL, 0));
4217
        reconcileCodCollection_args args = new reconcileCodCollection_args();
4218
        args.setCollectedAmountMap(collectedAmountMap);
4219
        args.setXferBy(xferBy);
4220
        args.setXferTxnId(xferTxnId);
4221
        args.setXferDate(xferDate);
4222
        args.write(prot);
4223
        prot.writeMessageEnd();
4224
      }
4225
 
4226
      public Map<String,String> getResult() throws TransactionServiceException, org.apache.thrift.TException {
4227
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4228
          throw new IllegalStateException("Method call not finished!");
4229
        }
4230
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4231
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4232
        return (new Client(prot)).recv_reconcileCodCollection();
4233
      }
4234
    }
4235
 
4008 mandeep.dh 4236
    public void getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<getTransactionsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException {
4237
      checkReady();
4238
      getTransactionsRequiringExtraProcessing_call method_call = new getTransactionsRequiringExtraProcessing_call(category, resultHandler, this, ___protocolFactory, ___transport);
4239
      this.___currentMethod = method_call;
4240
      ___manager.call(method_call);
4241
    }
4242
 
4243
    public static class getTransactionsRequiringExtraProcessing_call extends org.apache.thrift.async.TAsyncMethodCall {
4244
      private ExtraTransactionProcessingType category;
4245
      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 {
4246
        super(client, protocolFactory, transport, resultHandler, false);
4247
        this.category = category;
4248
      }
4249
 
4250
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4251
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionsRequiringExtraProcessing", org.apache.thrift.protocol.TMessageType.CALL, 0));
4252
        getTransactionsRequiringExtraProcessing_args args = new getTransactionsRequiringExtraProcessing_args();
4253
        args.setCategory(category);
4254
        args.write(prot);
4255
        prot.writeMessageEnd();
4256
      }
4257
 
4258
      public List<Long> getResult() throws org.apache.thrift.TException {
4259
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4260
          throw new IllegalStateException("Method call not finished!");
4261
        }
4262
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4263
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4264
        return (new Client(prot)).recv_getTransactionsRequiringExtraProcessing();
4265
      }
4266
    }
4267
 
4268
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<markTransactionAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
4269
      checkReady();
4270
      markTransactionAsProcessed_call method_call = new markTransactionAsProcessed_call(transactionId, category, resultHandler, this, ___protocolFactory, ___transport);
4271
      this.___currentMethod = method_call;
4272
      ___manager.call(method_call);
4273
    }
4274
 
4275
    public static class markTransactionAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
4276
      private long transactionId;
4277
      private ExtraTransactionProcessingType category;
4278
      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 {
4279
        super(client, protocolFactory, transport, resultHandler, false);
4280
        this.transactionId = transactionId;
4281
        this.category = category;
4282
      }
4283
 
4284
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4285
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markTransactionAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
4286
        markTransactionAsProcessed_args args = new markTransactionAsProcessed_args();
4287
        args.setTransactionId(transactionId);
4288
        args.setCategory(category);
4289
        args.write(prot);
4290
        prot.writeMessageEnd();
4291
      }
4292
 
4293
      public void getResult() throws org.apache.thrift.TException {
4294
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4295
          throw new IllegalStateException("Method call not finished!");
4296
        }
4297
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4298
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4299
        (new Client(prot)).recv_markTransactionAsProcessed();
4300
      }
4301
    }
4302
 
4018 chandransh 4303
    public void getItemWiseRiskyOrdersCount(org.apache.thrift.async.AsyncMethodCallback<getItemWiseRiskyOrdersCount_call> resultHandler) throws org.apache.thrift.TException {
4304
      checkReady();
4305
      getItemWiseRiskyOrdersCount_call method_call = new getItemWiseRiskyOrdersCount_call(resultHandler, this, ___protocolFactory, ___transport);
4306
      this.___currentMethod = method_call;
4307
      ___manager.call(method_call);
4308
    }
4309
 
4310
    public static class getItemWiseRiskyOrdersCount_call extends org.apache.thrift.async.TAsyncMethodCall {
4311
      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 {
4312
        super(client, protocolFactory, transport, resultHandler, false);
4313
      }
4314
 
4315
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4316
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemWiseRiskyOrdersCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
4317
        getItemWiseRiskyOrdersCount_args args = new getItemWiseRiskyOrdersCount_args();
4318
        args.write(prot);
4319
        prot.writeMessageEnd();
4320
      }
4321
 
4322
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
4323
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4324
          throw new IllegalStateException("Method call not finished!");
4325
        }
4326
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4327
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4328
        return (new Client(prot)).recv_getItemWiseRiskyOrdersCount();
4329
      }
4330
    }
4331
 
3430 rajveer 4332
  }
4333
 
4334
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4335
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4336
    public Processor(I iface) {
4337
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
4338
    }
4339
 
4340
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
4341
      super(iface, getProcessMap(processMap));
4342
    }
4343
 
4344
    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) {
4345
      processMap.put("createTransaction", new createTransaction());
4346
      processMap.put("getTransaction", new getTransaction());
4347
      processMap.put("getTransactionsForCustomer", new getTransactionsForCustomer());
4348
      processMap.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());
4349
      processMap.put("getTransactionStatus", new getTransactionStatus());
4350
      processMap.put("changeTransactionStatus", new changeTransactionStatus());
4351
      processMap.put("enqueueTransactionInfoEmail", new enqueueTransactionInfoEmail());
4352
      processMap.put("getAllOrders", new getAllOrders());
4133 chandransh 4353
      processMap.put("getOrdersInBatch", new getOrdersInBatch());
4354
      processMap.put("getOrderCount", new getOrderCount());
3430 rajveer 4355
      processMap.put("getOrdersByBillingDate", new getOrdersByBillingDate());
4356
      processMap.put("getOrdersByShippingDate", new getOrdersByShippingDate());
4357
      processMap.put("getReturnableOrdersForCustomer", new getReturnableOrdersForCustomer());
4358
      processMap.put("getCancellableOrdersForCustomer", new getCancellableOrdersForCustomer());
4359
      processMap.put("changeOrderStatus", new changeOrderStatus());
4360
      processMap.put("getOrdersForTransaction", new getOrdersForTransaction());
4361
      processMap.put("getOrdersForCustomer", new getOrdersForCustomer());
4362
      processMap.put("createOrder", new createOrder());
4363
      processMap.put("getOrder", new getOrder());
4364
      processMap.put("getLineItemsForOrder", new getLineItemsForOrder());
4365
      processMap.put("getOrderForCustomer", new getOrderForCustomer());
4366
      processMap.put("getAlerts", new getAlerts());
4367
      processMap.put("setAlert", new setAlert());
4368
      processMap.put("getValidOrderCount", new getValidOrderCount());
4369
      processMap.put("getNoOfCustomersWithSuccessfulTransaction", new getNoOfCustomersWithSuccessfulTransaction());
4370
      processMap.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());
4371
      processMap.put("getValidOrders", new getValidOrders());
4372
      processMap.put("batchOrders", new batchOrders());
4373
      processMap.put("markOrderAsOutOfStock", new markOrderAsOutOfStock());
4374
      processMap.put("verifyOrder", new verifyOrder());
4375
      processMap.put("acceptOrder", new acceptOrder());
4376
      processMap.put("billOrder", new billOrder());
4377
      processMap.put("addBillingDetails", new addBillingDetails());
4378
      processMap.put("addJacketNumber", new addJacketNumber());
4379
      processMap.put("markOrdersAsManifested", new markOrdersAsManifested());
4380
      processMap.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());
4381
      processMap.put("markOrdersAsDelivered", new markOrdersAsDelivered());
4382
      processMap.put("markOrdersAsFailed", new markOrdersAsFailed());
4383
      processMap.put("updateNonDeliveryReason", new updateNonDeliveryReason());
4384
      processMap.put("getUndeliveredOrders", new getUndeliveredOrders());
4385
      processMap.put("toggleDOAFlag", new toggleDOAFlag());
4386
      processMap.put("requestPickupNumber", new requestPickupNumber());
4387
      processMap.put("authorizePickup", new authorizePickup());
4388
      processMap.put("markDoasAsPickedUp", new markDoasAsPickedUp());
4389
      processMap.put("receiveReturn", new receiveReturn());
4390
      processMap.put("validateDoa", new validateDoa());
4391
      processMap.put("reshipOrder", new reshipOrder());
4392
      processMap.put("refundOrder", new refundOrder());
4393
      processMap.put("getReturnOrders", new getReturnOrders());
4394
      processMap.put("getReturnOrder", new getReturnOrder());
4395
      processMap.put("processReturn", new processReturn());
4396
      processMap.put("createPurchaseOrder", new createPurchaseOrder());
3451 chandransh 4397
      processMap.put("updateWeight", new updateWeight());
3469 chandransh 4398
      processMap.put("changeItem", new changeItem());
4399
      processMap.put("shiftToWarehouse", new shiftToWarehouse());
3553 chandransh 4400
      processMap.put("addDelayReason", new addDelayReason());
3956 chandransh 4401
      processMap.put("reconcileCodCollection", new reconcileCodCollection());
4008 mandeep.dh 4402
      processMap.put("getTransactionsRequiringExtraProcessing", new getTransactionsRequiringExtraProcessing());
4403
      processMap.put("markTransactionAsProcessed", new markTransactionAsProcessed());
4018 chandransh 4404
      processMap.put("getItemWiseRiskyOrdersCount", new getItemWiseRiskyOrdersCount());
3430 rajveer 4405
      return processMap;
4406
    }
4407
 
4408
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
4409
      public createTransaction() {
4410
        super("createTransaction");
4411
      }
4412
 
4413
      protected createTransaction_args getEmptyArgsInstance() {
4414
        return new createTransaction_args();
4415
      }
4416
 
4417
      protected createTransaction_result getResult(I iface, createTransaction_args args) throws org.apache.thrift.TException {
68 ashish 4418
        createTransaction_result result = new createTransaction_result();
4419
        try {
3430 rajveer 4420
          result.success = iface.createTransaction(args.transaction);
132 ashish 4421
          result.setSuccessIsSet(true);
68 ashish 4422
        } catch (TransactionServiceException ex) {
4423
          result.ex = ex;
4424
        }
3430 rajveer 4425
        return result;
68 ashish 4426
      }
4427
    }
4428
 
3430 rajveer 4429
    private static class getTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransaction_args> {
4430
      public getTransaction() {
4431
        super("getTransaction");
4432
      }
4433
 
4434
      protected getTransaction_args getEmptyArgsInstance() {
4435
        return new getTransaction_args();
4436
      }
4437
 
4438
      protected getTransaction_result getResult(I iface, getTransaction_args args) throws org.apache.thrift.TException {
68 ashish 4439
        getTransaction_result result = new getTransaction_result();
4440
        try {
3430 rajveer 4441
          result.success = iface.getTransaction(args.id);
68 ashish 4442
        } catch (TransactionServiceException ex) {
4443
          result.ex = ex;
4444
        }
3430 rajveer 4445
        return result;
68 ashish 4446
      }
4447
    }
4448
 
3430 rajveer 4449
    private static class getTransactionsForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionsForCustomer_args> {
4450
      public getTransactionsForCustomer() {
4451
        super("getTransactionsForCustomer");
4452
      }
4453
 
4454
      protected getTransactionsForCustomer_args getEmptyArgsInstance() {
4455
        return new getTransactionsForCustomer_args();
4456
      }
4457
 
4458
      protected getTransactionsForCustomer_result getResult(I iface, getTransactionsForCustomer_args args) throws org.apache.thrift.TException {
68 ashish 4459
        getTransactionsForCustomer_result result = new getTransactionsForCustomer_result();
4460
        try {
3430 rajveer 4461
          result.success = iface.getTransactionsForCustomer(args.customerId, args.from_date, args.to_date, args.status);
68 ashish 4462
        } catch (TransactionServiceException ex) {
4463
          result.ex = ex;
4464
        }
3430 rajveer 4465
        return result;
68 ashish 4466
      }
4467
    }
4468
 
3430 rajveer 4469
    private static class getTransactionsForShoppingCartId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionsForShoppingCartId_args> {
4470
      public getTransactionsForShoppingCartId() {
4471
        super("getTransactionsForShoppingCartId");
4472
      }
4473
 
4474
      protected getTransactionsForShoppingCartId_args getEmptyArgsInstance() {
4475
        return new getTransactionsForShoppingCartId_args();
4476
      }
4477
 
4478
      protected getTransactionsForShoppingCartId_result getResult(I iface, getTransactionsForShoppingCartId_args args) throws org.apache.thrift.TException {
132 ashish 4479
        getTransactionsForShoppingCartId_result result = new getTransactionsForShoppingCartId_result();
4480
        try {
3430 rajveer 4481
          result.success = iface.getTransactionsForShoppingCartId(args.shoppingCartId);
132 ashish 4482
        } catch (TransactionServiceException ex) {
4483
          result.ex = ex;
4484
        }
3430 rajveer 4485
        return result;
132 ashish 4486
      }
4487
    }
4488
 
3430 rajveer 4489
    private static class getTransactionStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionStatus_args> {
4490
      public getTransactionStatus() {
4491
        super("getTransactionStatus");
4492
      }
4493
 
4494
      protected getTransactionStatus_args getEmptyArgsInstance() {
4495
        return new getTransactionStatus_args();
4496
      }
4497
 
4498
      protected getTransactionStatus_result getResult(I iface, getTransactionStatus_args args) throws org.apache.thrift.TException {
68 ashish 4499
        getTransactionStatus_result result = new getTransactionStatus_result();
4500
        try {
3430 rajveer 4501
          result.success = iface.getTransactionStatus(args.transactionId);
68 ashish 4502
        } catch (TransactionServiceException ex) {
4503
          result.ex = ex;
4504
        }
3430 rajveer 4505
        return result;
68 ashish 4506
      }
4507
    }
4508
 
3430 rajveer 4509
    private static class changeTransactionStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeTransactionStatus_args> {
4510
      public changeTransactionStatus() {
4511
        super("changeTransactionStatus");
4512
      }
4513
 
4514
      protected changeTransactionStatus_args getEmptyArgsInstance() {
4515
        return new changeTransactionStatus_args();
4516
      }
4517
 
4518
      protected changeTransactionStatus_result getResult(I iface, changeTransactionStatus_args args) throws org.apache.thrift.TException {
68 ashish 4519
        changeTransactionStatus_result result = new changeTransactionStatus_result();
4520
        try {
3430 rajveer 4521
          result.success = iface.changeTransactionStatus(args.transactionId, args.status, args.description);
68 ashish 4522
          result.setSuccessIsSet(true);
4523
        } catch (TransactionServiceException ex) {
4524
          result.ex = ex;
4525
        }
3430 rajveer 4526
        return result;
68 ashish 4527
      }
4528
    }
4529
 
3430 rajveer 4530
    private static class enqueueTransactionInfoEmail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enqueueTransactionInfoEmail_args> {
4531
      public enqueueTransactionInfoEmail() {
4532
        super("enqueueTransactionInfoEmail");
4533
      }
4534
 
4535
      protected enqueueTransactionInfoEmail_args getEmptyArgsInstance() {
4536
        return new enqueueTransactionInfoEmail_args();
4537
      }
4538
 
4539
      protected enqueueTransactionInfoEmail_result getResult(I iface, enqueueTransactionInfoEmail_args args) throws org.apache.thrift.TException {
1398 varun.gupt 4540
        enqueueTransactionInfoEmail_result result = new enqueueTransactionInfoEmail_result();
1382 varun.gupt 4541
        try {
3430 rajveer 4542
          result.success = iface.enqueueTransactionInfoEmail(args.transactionId);
1382 varun.gupt 4543
          result.setSuccessIsSet(true);
4544
        } catch (TransactionServiceException ex) {
4545
          result.ex = ex;
4546
        }
3430 rajveer 4547
        return result;
1382 varun.gupt 4548
      }
4549
    }
4550
 
3430 rajveer 4551
    private static class getAllOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllOrders_args> {
4552
      public getAllOrders() {
4553
        super("getAllOrders");
4554
      }
4555
 
4556
      protected getAllOrders_args getEmptyArgsInstance() {
4557
        return new getAllOrders_args();
4558
      }
4559
 
4560
      protected getAllOrders_result getResult(I iface, getAllOrders_args args) throws org.apache.thrift.TException {
483 rajveer 4561
        getAllOrders_result result = new getAllOrders_result();
68 ashish 4562
        try {
3430 rajveer 4563
          result.success = iface.getAllOrders(args.status, args.from_date, args.to_date, args.warehouse_id);
68 ashish 4564
        } catch (TransactionServiceException ex) {
4565
          result.ex = ex;
4566
        }
3430 rajveer 4567
        return result;
68 ashish 4568
      }
4569
    }
4570
 
4133 chandransh 4571
    private static class getOrdersInBatch<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersInBatch_args> {
4572
      public getOrdersInBatch() {
4573
        super("getOrdersInBatch");
4574
      }
4575
 
4576
      protected getOrdersInBatch_args getEmptyArgsInstance() {
4577
        return new getOrdersInBatch_args();
4578
      }
4579
 
4580
      protected getOrdersInBatch_result getResult(I iface, getOrdersInBatch_args args) throws org.apache.thrift.TException {
4581
        getOrdersInBatch_result result = new getOrdersInBatch_result();
4582
        try {
4583
          result.success = iface.getOrdersInBatch(args.statuses, args.offset, args.limit, args.warehouse_id);
4584
        } catch (TransactionServiceException ex) {
4585
          result.ex = ex;
4586
        }
4587
        return result;
4588
      }
4589
    }
4590
 
4591
    private static class getOrderCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderCount_args> {
4592
      public getOrderCount() {
4593
        super("getOrderCount");
4594
      }
4595
 
4596
      protected getOrderCount_args getEmptyArgsInstance() {
4597
        return new getOrderCount_args();
4598
      }
4599
 
4600
      protected getOrderCount_result getResult(I iface, getOrderCount_args args) throws org.apache.thrift.TException {
4601
        getOrderCount_result result = new getOrderCount_result();
4602
        try {
4603
          result.success = iface.getOrderCount(args.statuses, args.warehouseId);
4604
          result.setSuccessIsSet(true);
4605
        } catch (TransactionServiceException ex) {
4606
          result.ex = ex;
4607
        }
4608
        return result;
4609
      }
4610
    }
4611
 
3430 rajveer 4612
    private static class getOrdersByBillingDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersByBillingDate_args> {
4613
      public getOrdersByBillingDate() {
4614
        super("getOrdersByBillingDate");
4615
      }
4616
 
4617
      protected getOrdersByBillingDate_args getEmptyArgsInstance() {
4618
        return new getOrdersByBillingDate_args();
4619
      }
4620
 
4621
      protected getOrdersByBillingDate_result getResult(I iface, getOrdersByBillingDate_args args) throws org.apache.thrift.TException {
1022 varun.gupt 4622
        getOrdersByBillingDate_result result = new getOrdersByBillingDate_result();
4623
        try {
3430 rajveer 4624
          result.success = iface.getOrdersByBillingDate(args.status, args.start_billing_date, args.end_billing_date, args.warehouse_id);
1022 varun.gupt 4625
        } catch (TransactionServiceException ex) {
4626
          result.ex = ex;
4627
        }
3430 rajveer 4628
        return result;
1022 varun.gupt 4629
      }
4630
    }
4631
 
3430 rajveer 4632
    private static class getOrdersByShippingDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersByShippingDate_args> {
4633
      public getOrdersByShippingDate() {
4634
        super("getOrdersByShippingDate");
4635
      }
4636
 
4637
      protected getOrdersByShippingDate_args getEmptyArgsInstance() {
4638
        return new getOrdersByShippingDate_args();
4639
      }
4640
 
4641
      protected getOrdersByShippingDate_result getResult(I iface, getOrdersByShippingDate_args args) throws org.apache.thrift.TException {
3427 chandransh 4642
        getOrdersByShippingDate_result result = new getOrdersByShippingDate_result();
4643
        try {
3451 chandransh 4644
          result.success = iface.getOrdersByShippingDate(args.fromShippingDate, args.toShippingDate, args.providerId, args.warehouseId, args.cod);
3427 chandransh 4645
        } catch (TransactionServiceException ex) {
4646
          result.ex = ex;
4647
        }
3430 rajveer 4648
        return result;
3427 chandransh 4649
      }
4650
    }
4651
 
3430 rajveer 4652
    private static class getReturnableOrdersForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnableOrdersForCustomer_args> {
4653
      public getReturnableOrdersForCustomer() {
4654
        super("getReturnableOrdersForCustomer");
4655
      }
4656
 
4657
      protected getReturnableOrdersForCustomer_args getEmptyArgsInstance() {
4658
        return new getReturnableOrdersForCustomer_args();
4659
      }
4660
 
4661
      protected getReturnableOrdersForCustomer_result getResult(I iface, getReturnableOrdersForCustomer_args args) throws org.apache.thrift.TException {
1382 varun.gupt 4662
        getReturnableOrdersForCustomer_result result = new getReturnableOrdersForCustomer_result();
4663
        try {
3430 rajveer 4664
          result.success = iface.getReturnableOrdersForCustomer(args.customer_id, args.limit);
1382 varun.gupt 4665
        } catch (TransactionServiceException ex) {
4666
          result.ex = ex;
4667
        }
3430 rajveer 4668
        return result;
1382 varun.gupt 4669
      }
4670
    }
4671
 
3430 rajveer 4672
    private static class getCancellableOrdersForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCancellableOrdersForCustomer_args> {
4673
      public getCancellableOrdersForCustomer() {
4674
        super("getCancellableOrdersForCustomer");
4675
      }
4676
 
4677
      protected getCancellableOrdersForCustomer_args getEmptyArgsInstance() {
4678
        return new getCancellableOrdersForCustomer_args();
4679
      }
4680
 
4681
      protected getCancellableOrdersForCustomer_result getResult(I iface, getCancellableOrdersForCustomer_args args) throws org.apache.thrift.TException {
1382 varun.gupt 4682
        getCancellableOrdersForCustomer_result result = new getCancellableOrdersForCustomer_result();
4683
        try {
3430 rajveer 4684
          result.success = iface.getCancellableOrdersForCustomer(args.customer_id, args.limit);
1382 varun.gupt 4685
        } catch (TransactionServiceException ex) {
4686
          result.ex = ex;
4687
        }
3430 rajveer 4688
        return result;
1382 varun.gupt 4689
      }
4690
    }
4691
 
3430 rajveer 4692
    private static class changeOrderStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeOrderStatus_args> {
4693
      public changeOrderStatus() {
4694
        super("changeOrderStatus");
4695
      }
4696
 
4697
      protected changeOrderStatus_args getEmptyArgsInstance() {
4698
        return new changeOrderStatus_args();
4699
      }
4700
 
4701
      protected changeOrderStatus_result getResult(I iface, changeOrderStatus_args args) throws org.apache.thrift.TException {
483 rajveer 4702
        changeOrderStatus_result result = new changeOrderStatus_result();
68 ashish 4703
        try {
3430 rajveer 4704
          result.success = iface.changeOrderStatus(args.orderId, args.status, args.description);
68 ashish 4705
          result.setSuccessIsSet(true);
4706
        } catch (TransactionServiceException ex) {
4707
          result.ex = ex;
4708
        }
3430 rajveer 4709
        return result;
68 ashish 4710
      }
4711
    }
4712
 
3430 rajveer 4713
    private static class getOrdersForTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForTransaction_args> {
4714
      public getOrdersForTransaction() {
4715
        super("getOrdersForTransaction");
4716
      }
4717
 
4718
      protected getOrdersForTransaction_args getEmptyArgsInstance() {
4719
        return new getOrdersForTransaction_args();
4720
      }
4721
 
4722
      protected getOrdersForTransaction_result getResult(I iface, getOrdersForTransaction_args args) throws org.apache.thrift.TException {
3061 chandransh 4723
        getOrdersForTransaction_result result = new getOrdersForTransaction_result();
495 rajveer 4724
        try {
3430 rajveer 4725
          result.success = iface.getOrdersForTransaction(args.transactionId, args.customerId);
495 rajveer 4726
        } catch (TransactionServiceException ex) {
4727
          result.ex = ex;
4728
        }
3430 rajveer 4729
        return result;
495 rajveer 4730
      }
4731
    }
4732
 
3430 rajveer 4733
    private static class getOrdersForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForCustomer_args> {
4734
      public getOrdersForCustomer() {
4735
        super("getOrdersForCustomer");
4736
      }
4737
 
4738
      protected getOrdersForCustomer_args getEmptyArgsInstance() {
4739
        return new getOrdersForCustomer_args();
4740
      }
4741
 
4742
      protected getOrdersForCustomer_result getResult(I iface, getOrdersForCustomer_args args) throws org.apache.thrift.TException {
3061 chandransh 4743
        getOrdersForCustomer_result result = new getOrdersForCustomer_result();
1148 chandransh 4744
        try {
3430 rajveer 4745
          result.success = iface.getOrdersForCustomer(args.customerId, args.from_date, args.to_date, args.statuses);
1148 chandransh 4746
        } catch (TransactionServiceException ex) {
4747
          result.ex = ex;
4748
        }
3430 rajveer 4749
        return result;
1148 chandransh 4750
      }
4751
    }
4752
 
3430 rajveer 4753
    private static class createOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createOrder_args> {
4754
      public createOrder() {
4755
        super("createOrder");
4756
      }
4757
 
4758
      protected createOrder_args getEmptyArgsInstance() {
4759
        return new createOrder_args();
4760
      }
4761
 
4762
      protected createOrder_result getResult(I iface, createOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 4763
        createOrder_result result = new createOrder_result();
923 rajveer 4764
        try {
3430 rajveer 4765
          result.success = iface.createOrder(args.order);
923 rajveer 4766
          result.setSuccessIsSet(true);
4767
        } catch (TransactionServiceException ex) {
4768
          result.ex = ex;
4769
        }
3430 rajveer 4770
        return result;
923 rajveer 4771
      }
4772
    }
4773
 
3430 rajveer 4774
    private static class getOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrder_args> {
4775
      public getOrder() {
4776
        super("getOrder");
4777
      }
4778
 
4779
      protected getOrder_args getEmptyArgsInstance() {
4780
        return new getOrder_args();
4781
      }
4782
 
4783
      protected getOrder_result getResult(I iface, getOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 4784
        getOrder_result result = new getOrder_result();
923 rajveer 4785
        try {
3430 rajveer 4786
          result.success = iface.getOrder(args.id);
923 rajveer 4787
        } catch (TransactionServiceException ex) {
4788
          result.ex = ex;
4789
        }
3430 rajveer 4790
        return result;
923 rajveer 4791
      }
4792
    }
4793
 
3430 rajveer 4794
    private static class getLineItemsForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLineItemsForOrder_args> {
4795
      public getLineItemsForOrder() {
4796
        super("getLineItemsForOrder");
4797
      }
4798
 
4799
      protected getLineItemsForOrder_args getEmptyArgsInstance() {
4800
        return new getLineItemsForOrder_args();
4801
      }
4802
 
4803
      protected getLineItemsForOrder_result getResult(I iface, getLineItemsForOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 4804
        getLineItemsForOrder_result result = new getLineItemsForOrder_result();
68 ashish 4805
        try {
3430 rajveer 4806
          result.success = iface.getLineItemsForOrder(args.orderId);
68 ashish 4807
        } catch (TransactionServiceException ex) {
4808
          result.ex = ex;
4809
        }
3430 rajveer 4810
        return result;
68 ashish 4811
      }
4812
    }
4813
 
3430 rajveer 4814
    private static class getOrderForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderForCustomer_args> {
4815
      public getOrderForCustomer() {
4816
        super("getOrderForCustomer");
4817
      }
4818
 
4819
      protected getOrderForCustomer_args getEmptyArgsInstance() {
4820
        return new getOrderForCustomer_args();
4821
      }
4822
 
4823
      protected getOrderForCustomer_result getResult(I iface, getOrderForCustomer_args args) throws org.apache.thrift.TException {
3061 chandransh 4824
        getOrderForCustomer_result result = new getOrderForCustomer_result();
68 ashish 4825
        try {
3430 rajveer 4826
          result.success = iface.getOrderForCustomer(args.orderId, args.customerId);
68 ashish 4827
        } catch (TransactionServiceException ex) {
4828
          result.ex = ex;
4829
        }
3430 rajveer 4830
        return result;
68 ashish 4831
      }
4832
    }
4833
 
3430 rajveer 4834
    private static class getAlerts<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAlerts_args> {
4835
      public getAlerts() {
4836
        super("getAlerts");
4837
      }
4838
 
4839
      protected getAlerts_args getEmptyArgsInstance() {
4840
        return new getAlerts_args();
4841
      }
4842
 
4843
      protected getAlerts_result getResult(I iface, getAlerts_args args) throws org.apache.thrift.TException {
3061 chandransh 4844
        getAlerts_result result = new getAlerts_result();
3430 rajveer 4845
        result.success = iface.getAlerts(args.orderId, args.valid);
4846
        return result;
3061 chandransh 4847
      }
4848
    }
4849
 
3430 rajveer 4850
    private static class setAlert<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setAlert_args> {
4851
      public setAlert() {
4852
        super("setAlert");
4853
      }
4854
 
4855
      protected setAlert_args getEmptyArgsInstance() {
4856
        return new setAlert_args();
4857
      }
4858
 
4859
      protected setAlert_result getResult(I iface, setAlert_args args) throws org.apache.thrift.TException {
3061 chandransh 4860
        setAlert_result result = new setAlert_result();
3430 rajveer 4861
        iface.setAlert(args.orderId, args.unset, args.type, args.comment);
4862
        return result;
3061 chandransh 4863
      }
4864
    }
4865
 
3430 rajveer 4866
    private static class getValidOrderCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrderCount_args> {
4867
      public getValidOrderCount() {
4868
        super("getValidOrderCount");
4869
      }
4870
 
4871
      protected getValidOrderCount_args getEmptyArgsInstance() {
4872
        return new getValidOrderCount_args();
4873
      }
4874
 
4875
      protected getValidOrderCount_result getResult(I iface, getValidOrderCount_args args) throws org.apache.thrift.TException {
3061 chandransh 4876
        getValidOrderCount_result result = new getValidOrderCount_result();
3430 rajveer 4877
        result.success = iface.getValidOrderCount();
3061 chandransh 4878
        result.setSuccessIsSet(true);
3430 rajveer 4879
        return result;
3061 chandransh 4880
      }
4881
    }
4882
 
3430 rajveer 4883
    private static class getNoOfCustomersWithSuccessfulTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNoOfCustomersWithSuccessfulTransaction_args> {
4884
      public getNoOfCustomersWithSuccessfulTransaction() {
4885
        super("getNoOfCustomersWithSuccessfulTransaction");
4886
      }
4887
 
4888
      protected getNoOfCustomersWithSuccessfulTransaction_args getEmptyArgsInstance() {
4889
        return new getNoOfCustomersWithSuccessfulTransaction_args();
4890
      }
4891
 
4892
      protected getNoOfCustomersWithSuccessfulTransaction_result getResult(I iface, getNoOfCustomersWithSuccessfulTransaction_args args) throws org.apache.thrift.TException {
3061 chandransh 4893
        getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();
3430 rajveer 4894
        result.success = iface.getNoOfCustomersWithSuccessfulTransaction();
3061 chandransh 4895
        result.setSuccessIsSet(true);
3430 rajveer 4896
        return result;
3061 chandransh 4897
      }
4898
    }
4899
 
3430 rajveer 4900
    private static class getValidOrdersAmountRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrdersAmountRange_args> {
4901
      public getValidOrdersAmountRange() {
4902
        super("getValidOrdersAmountRange");
4903
      }
4904
 
4905
      protected getValidOrdersAmountRange_args getEmptyArgsInstance() {
4906
        return new getValidOrdersAmountRange_args();
4907
      }
4908
 
4909
      protected getValidOrdersAmountRange_result getResult(I iface, getValidOrdersAmountRange_args args) throws org.apache.thrift.TException {
3061 chandransh 4910
        getValidOrdersAmountRange_result result = new getValidOrdersAmountRange_result();
3430 rajveer 4911
        result.success = iface.getValidOrdersAmountRange();
4912
        return result;
3061 chandransh 4913
      }
4914
    }
4915
 
3430 rajveer 4916
    private static class getValidOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrders_args> {
4917
      public getValidOrders() {
4918
        super("getValidOrders");
4919
      }
4920
 
4921
      protected getValidOrders_args getEmptyArgsInstance() {
4922
        return new getValidOrders_args();
4923
      }
4924
 
4925
      protected getValidOrders_result getResult(I iface, getValidOrders_args args) throws org.apache.thrift.TException {
3061 chandransh 4926
        getValidOrders_result result = new getValidOrders_result();
3430 rajveer 4927
        result.success = iface.getValidOrders(args.limit);
4928
        return result;
3061 chandransh 4929
      }
4930
    }
4931
 
3430 rajveer 4932
    private static class batchOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, batchOrders_args> {
4933
      public batchOrders() {
4934
        super("batchOrders");
4935
      }
4936
 
4937
      protected batchOrders_args getEmptyArgsInstance() {
4938
        return new batchOrders_args();
4939
      }
4940
 
4941
      protected batchOrders_result getResult(I iface, batchOrders_args args) throws org.apache.thrift.TException {
3061 chandransh 4942
        batchOrders_result result = new batchOrders_result();
68 ashish 4943
        try {
3430 rajveer 4944
          result.success = iface.batchOrders(args.warehouseId);
3061 chandransh 4945
        } catch (TransactionServiceException ex) {
4946
          result.ex = ex;
4947
        }
3430 rajveer 4948
        return result;
3061 chandransh 4949
      }
4950
    }
4951
 
3430 rajveer 4952
    private static class markOrderAsOutOfStock<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderAsOutOfStock_args> {
4953
      public markOrderAsOutOfStock() {
4954
        super("markOrderAsOutOfStock");
4955
      }
4956
 
4957
      protected markOrderAsOutOfStock_args getEmptyArgsInstance() {
4958
        return new markOrderAsOutOfStock_args();
4959
      }
4960
 
4961
      protected markOrderAsOutOfStock_result getResult(I iface, markOrderAsOutOfStock_args args) throws org.apache.thrift.TException {
3061 chandransh 4962
        markOrderAsOutOfStock_result result = new markOrderAsOutOfStock_result();
4963
        try {
3430 rajveer 4964
          result.success = iface.markOrderAsOutOfStock(args.orderId);
68 ashish 4965
          result.setSuccessIsSet(true);
4966
        } catch (TransactionServiceException ex) {
4967
          result.ex = ex;
4968
        }
3430 rajveer 4969
        return result;
68 ashish 4970
      }
4971
    }
4972
 
3430 rajveer 4973
    private static class verifyOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, verifyOrder_args> {
4974
      public verifyOrder() {
4975
        super("verifyOrder");
4976
      }
4977
 
4978
      protected verifyOrder_args getEmptyArgsInstance() {
4979
        return new verifyOrder_args();
4980
      }
4981
 
4982
      protected verifyOrder_result getResult(I iface, verifyOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 4983
        verifyOrder_result result = new verifyOrder_result();
68 ashish 4984
        try {
3430 rajveer 4985
          result.success = iface.verifyOrder(args.orderId);
3061 chandransh 4986
          result.setSuccessIsSet(true);
68 ashish 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 acceptOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, acceptOrder_args> {
4995
      public acceptOrder() {
4996
        super("acceptOrder");
4997
      }
4998
 
4999
      protected acceptOrder_args getEmptyArgsInstance() {
5000
        return new acceptOrder_args();
5001
      }
5002
 
5003
      protected acceptOrder_result getResult(I iface, acceptOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 5004
        acceptOrder_result result = new acceptOrder_result();
68 ashish 5005
        try {
3430 rajveer 5006
          result.success = iface.acceptOrder(args.orderId);
3061 chandransh 5007
          result.setSuccessIsSet(true);
68 ashish 5008
        } catch (TransactionServiceException ex) {
5009
          result.ex = ex;
5010
        }
3430 rajveer 5011
        return result;
68 ashish 5012
      }
5013
    }
5014
 
3430 rajveer 5015
    private static class billOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, billOrder_args> {
5016
      public billOrder() {
5017
        super("billOrder");
5018
      }
5019
 
5020
      protected billOrder_args getEmptyArgsInstance() {
5021
        return new billOrder_args();
5022
      }
5023
 
5024
      protected billOrder_result getResult(I iface, billOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 5025
        billOrder_result result = new billOrder_result();
1529 ankur.sing 5026
        try {
3430 rajveer 5027
          result.success = iface.billOrder(args.orderId);
3061 chandransh 5028
          result.setSuccessIsSet(true);
1529 ankur.sing 5029
        } catch (TransactionServiceException ex) {
5030
          result.ex = ex;
5031
        }
3430 rajveer 5032
        return result;
1529 ankur.sing 5033
      }
5034
    }
5035
 
3430 rajveer 5036
    private static class addBillingDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBillingDetails_args> {
5037
      public addBillingDetails() {
5038
        super("addBillingDetails");
5039
      }
5040
 
5041
      protected addBillingDetails_args getEmptyArgsInstance() {
5042
        return new addBillingDetails_args();
5043
      }
5044
 
5045
      protected addBillingDetails_result getResult(I iface, addBillingDetails_args args) throws org.apache.thrift.TException {
3061 chandransh 5046
        addBillingDetails_result result = new addBillingDetails_result();
1221 chandransh 5047
        try {
3430 rajveer 5048
          result.success = iface.addBillingDetails(args.orderId, args.invoice_number, args.billed_by);
3061 chandransh 5049
          result.setSuccessIsSet(true);
1221 chandransh 5050
        } catch (TransactionServiceException ex) {
5051
          result.ex = ex;
5052
        }
3430 rajveer 5053
        return result;
1221 chandransh 5054
      }
5055
    }
5056
 
3430 rajveer 5057
    private static class addJacketNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addJacketNumber_args> {
5058
      public addJacketNumber() {
5059
        super("addJacketNumber");
5060
      }
5061
 
5062
      protected addJacketNumber_args getEmptyArgsInstance() {
5063
        return new addJacketNumber_args();
5064
      }
5065
 
5066
      protected addJacketNumber_result getResult(I iface, addJacketNumber_args args) throws org.apache.thrift.TException {
3061 chandransh 5067
        addJacketNumber_result result = new addJacketNumber_result();
1209 chandransh 5068
        try {
3430 rajveer 5069
          result.success = iface.addJacketNumber(args.orderId, args.jacketNumber, args.imeiNumber, args.itemNumber, args.billedBy, args.billingType);
1209 chandransh 5070
          result.setSuccessIsSet(true);
5071
        } catch (TransactionServiceException ex) {
5072
          result.ex = ex;
5073
        }
3430 rajveer 5074
        return result;
1209 chandransh 5075
      }
5076
    }
5077
 
3430 rajveer 5078
    private static class markOrdersAsManifested<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsManifested_args> {
5079
      public markOrdersAsManifested() {
5080
        super("markOrdersAsManifested");
5081
      }
5082
 
5083
      protected markOrdersAsManifested_args getEmptyArgsInstance() {
5084
        return new markOrdersAsManifested_args();
5085
      }
5086
 
5087
      protected markOrdersAsManifested_result getResult(I iface, markOrdersAsManifested_args args) throws org.apache.thrift.TException {
758 chandransh 5088
        markOrdersAsManifested_result result = new markOrdersAsManifested_result();
5089
        try {
3430 rajveer 5090
          result.success = iface.markOrdersAsManifested(args.warehouseId, args.providerId, args.cod);
758 chandransh 5091
          result.setSuccessIsSet(true);
5092
        } catch (TransactionServiceException ex) {
5093
          result.ex = ex;
5094
        }
3430 rajveer 5095
        return result;
758 chandransh 5096
      }
5097
    }
5098
 
3430 rajveer 5099
    private static class markOrdersAsPickedUp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsPickedUp_args> {
5100
      public markOrdersAsPickedUp() {
5101
        super("markOrdersAsPickedUp");
5102
      }
5103
 
5104
      protected markOrdersAsPickedUp_args getEmptyArgsInstance() {
5105
        return new markOrdersAsPickedUp_args();
5106
      }
5107
 
5108
      protected markOrdersAsPickedUp_result getResult(I iface, markOrdersAsPickedUp_args args) throws org.apache.thrift.TException {
1114 chandransh 5109
        markOrdersAsPickedUp_result result = new markOrdersAsPickedUp_result();
5110
        try {
3430 rajveer 5111
          result.success = iface.markOrdersAsPickedUp(args.providerId, args.pickupDetails);
1114 chandransh 5112
        } catch (TransactionServiceException ex) {
5113
          result.ex = ex;
5114
        }
3430 rajveer 5115
        return result;
1114 chandransh 5116
      }
5117
    }
5118
 
3430 rajveer 5119
    private static class markOrdersAsDelivered<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsDelivered_args> {
5120
      public markOrdersAsDelivered() {
5121
        super("markOrdersAsDelivered");
5122
      }
5123
 
5124
      protected markOrdersAsDelivered_args getEmptyArgsInstance() {
5125
        return new markOrdersAsDelivered_args();
5126
      }
5127
 
5128
      protected markOrdersAsDelivered_result getResult(I iface, markOrdersAsDelivered_args args) throws org.apache.thrift.TException {
1133 chandransh 5129
        markOrdersAsDelivered_result result = new markOrdersAsDelivered_result();
5130
        try {
3430 rajveer 5131
          iface.markOrdersAsDelivered(args.providerId, args.deliveredOrders);
1133 chandransh 5132
        } catch (TransactionServiceException ex) {
5133
          result.ex = ex;
5134
        }
3430 rajveer 5135
        return result;
1133 chandransh 5136
      }
5137
    }
5138
 
3430 rajveer 5139
    private static class markOrdersAsFailed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsFailed_args> {
5140
      public markOrdersAsFailed() {
5141
        super("markOrdersAsFailed");
5142
      }
5143
 
5144
      protected markOrdersAsFailed_args getEmptyArgsInstance() {
5145
        return new markOrdersAsFailed_args();
5146
      }
5147
 
5148
      protected markOrdersAsFailed_result getResult(I iface, markOrdersAsFailed_args args) throws org.apache.thrift.TException {
1133 chandransh 5149
        markOrdersAsFailed_result result = new markOrdersAsFailed_result();
5150
        try {
3430 rajveer 5151
          iface.markOrdersAsFailed(args.providerId, args.returnedOrders);
1133 chandransh 5152
        } catch (TransactionServiceException ex) {
5153
          result.ex = ex;
5154
        }
3430 rajveer 5155
        return result;
1133 chandransh 5156
      }
5157
    }
5158
 
3430 rajveer 5159
    private static class updateNonDeliveryReason<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateNonDeliveryReason_args> {
5160
      public updateNonDeliveryReason() {
5161
        super("updateNonDeliveryReason");
5162
      }
5163
 
5164
      protected updateNonDeliveryReason_args getEmptyArgsInstance() {
5165
        return new updateNonDeliveryReason_args();
5166
      }
5167
 
5168
      protected updateNonDeliveryReason_result getResult(I iface, updateNonDeliveryReason_args args) throws org.apache.thrift.TException {
1245 chandransh 5169
        updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();
5170
        try {
3430 rajveer 5171
          iface.updateNonDeliveryReason(args.providerId, args.undeliveredOrders);
1245 chandransh 5172
        } catch (TransactionServiceException ex) {
5173
          result.ex = ex;
5174
        }
3430 rajveer 5175
        return result;
1245 chandransh 5176
      }
5177
    }
5178
 
3430 rajveer 5179
    private static class getUndeliveredOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUndeliveredOrders_args> {
5180
      public getUndeliveredOrders() {
5181
        super("getUndeliveredOrders");
5182
      }
5183
 
5184
      protected getUndeliveredOrders_args getEmptyArgsInstance() {
5185
        return new getUndeliveredOrders_args();
5186
      }
5187
 
5188
      protected getUndeliveredOrders_result getResult(I iface, getUndeliveredOrders_args args) throws org.apache.thrift.TException {
1406 ankur.sing 5189
        getUndeliveredOrders_result result = new getUndeliveredOrders_result();
3430 rajveer 5190
        result.success = iface.getUndeliveredOrders(args.providerId, args.warehouseId);
5191
        return result;
1406 ankur.sing 5192
      }
5193
    }
5194
 
3430 rajveer 5195
    private static class toggleDOAFlag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, toggleDOAFlag_args> {
5196
      public toggleDOAFlag() {
5197
        super("toggleDOAFlag");
5198
      }
5199
 
5200
      protected toggleDOAFlag_args getEmptyArgsInstance() {
5201
        return new toggleDOAFlag_args();
5202
      }
5203
 
5204
      protected toggleDOAFlag_result getResult(I iface, toggleDOAFlag_args args) throws org.apache.thrift.TException {
2538 chandransh 5205
        toggleDOAFlag_result result = new toggleDOAFlag_result();
5206
        try {
3430 rajveer 5207
          result.success = iface.toggleDOAFlag(args.orderId);
2538 chandransh 5208
          result.setSuccessIsSet(true);
5209
        } catch (TransactionServiceException ex) {
5210
          result.ex = ex;
5211
        }
3430 rajveer 5212
        return result;
2538 chandransh 5213
      }
5214
    }
5215
 
3430 rajveer 5216
    private static class requestPickupNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, requestPickupNumber_args> {
5217
      public requestPickupNumber() {
5218
        super("requestPickupNumber");
5219
      }
5220
 
5221
      protected requestPickupNumber_args getEmptyArgsInstance() {
5222
        return new requestPickupNumber_args();
5223
      }
5224
 
5225
      protected requestPickupNumber_result getResult(I iface, requestPickupNumber_args args) throws org.apache.thrift.TException {
2538 chandransh 5226
        requestPickupNumber_result result = new requestPickupNumber_result();
5227
        try {
3430 rajveer 5228
          result.success = iface.requestPickupNumber(args.orderId);
2538 chandransh 5229
          result.setSuccessIsSet(true);
5230
        } catch (TransactionServiceException ex) {
5231
          result.ex = ex;
5232
        }
3430 rajveer 5233
        return result;
2538 chandransh 5234
      }
5235
    }
5236
 
3430 rajveer 5237
    private static class authorizePickup<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authorizePickup_args> {
5238
      public authorizePickup() {
5239
        super("authorizePickup");
5240
      }
5241
 
5242
      protected authorizePickup_args getEmptyArgsInstance() {
5243
        return new authorizePickup_args();
5244
      }
5245
 
5246
      protected authorizePickup_result getResult(I iface, authorizePickup_args args) throws org.apache.thrift.TException {
2538 chandransh 5247
        authorizePickup_result result = new authorizePickup_result();
5248
        try {
3430 rajveer 5249
          result.success = iface.authorizePickup(args.orderId, args.pickupNumber);
2538 chandransh 5250
          result.setSuccessIsSet(true);
5251
        } catch (TransactionServiceException ex) {
5252
          result.ex = ex;
5253
        }
3430 rajveer 5254
        return result;
2538 chandransh 5255
      }
5256
    }
5257
 
3430 rajveer 5258
    private static class markDoasAsPickedUp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markDoasAsPickedUp_args> {
5259
      public markDoasAsPickedUp() {
5260
        super("markDoasAsPickedUp");
5261
      }
5262
 
5263
      protected markDoasAsPickedUp_args getEmptyArgsInstance() {
5264
        return new markDoasAsPickedUp_args();
5265
      }
5266
 
5267
      protected markDoasAsPickedUp_result getResult(I iface, markDoasAsPickedUp_args args) throws org.apache.thrift.TException {
2765 chandransh 5268
        markDoasAsPickedUp_result result = new markDoasAsPickedUp_result();
3430 rajveer 5269
        result.success = iface.markDoasAsPickedUp(args.providerId, args.pickupDetails);
5270
        return result;
2765 chandransh 5271
      }
5272
    }
5273
 
3430 rajveer 5274
    private static class receiveReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, receiveReturn_args> {
5275
      public receiveReturn() {
5276
        super("receiveReturn");
5277
      }
5278
 
5279
      protected receiveReturn_args getEmptyArgsInstance() {
5280
        return new receiveReturn_args();
5281
      }
5282
 
5283
      protected receiveReturn_result getResult(I iface, receiveReturn_args args) throws org.apache.thrift.TException {
2615 chandransh 5284
        receiveReturn_result result = new receiveReturn_result();
2590 chandransh 5285
        try {
3430 rajveer 5286
          result.success = iface.receiveReturn(args.orderId);
2590 chandransh 5287
          result.setSuccessIsSet(true);
5288
        } catch (TransactionServiceException ex) {
5289
          result.ex = ex;
5290
        }
3430 rajveer 5291
        return result;
2590 chandransh 5292
      }
5293
    }
5294
 
3430 rajveer 5295
    private static class validateDoa<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateDoa_args> {
5296
      public validateDoa() {
5297
        super("validateDoa");
5298
      }
5299
 
5300
      protected validateDoa_args getEmptyArgsInstance() {
5301
        return new validateDoa_args();
5302
      }
5303
 
5304
      protected validateDoa_result getResult(I iface, validateDoa_args args) throws org.apache.thrift.TException {
2590 chandransh 5305
        validateDoa_result result = new validateDoa_result();
5306
        try {
3430 rajveer 5307
          result.success = iface.validateDoa(args.orderId, args.isValid);
2590 chandransh 5308
          result.setSuccessIsSet(true);
5309
        } catch (TransactionServiceException ex) {
5310
          result.ex = ex;
5311
        }
3430 rajveer 5312
        return result;
2590 chandransh 5313
      }
5314
    }
5315
 
3430 rajveer 5316
    private static class reshipOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reshipOrder_args> {
5317
      public reshipOrder() {
5318
        super("reshipOrder");
5319
      }
5320
 
5321
      protected reshipOrder_args getEmptyArgsInstance() {
5322
        return new reshipOrder_args();
5323
      }
5324
 
5325
      protected reshipOrder_result getResult(I iface, reshipOrder_args args) throws org.apache.thrift.TException {
2615 chandransh 5326
        reshipOrder_result result = new reshipOrder_result();
5327
        try {
3430 rajveer 5328
          result.success = iface.reshipOrder(args.orderId);
2615 chandransh 5329
          result.setSuccessIsSet(true);
5330
        } catch (TransactionServiceException ex) {
5331
          result.ex = ex;
5332
        }
3430 rajveer 5333
        return result;
2615 chandransh 5334
      }
5335
    }
5336
 
3430 rajveer 5337
    private static class refundOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, refundOrder_args> {
5338
      public refundOrder() {
5339
        super("refundOrder");
5340
      }
5341
 
5342
      protected refundOrder_args getEmptyArgsInstance() {
5343
        return new refundOrder_args();
5344
      }
5345
 
5346
      protected refundOrder_result getResult(I iface, refundOrder_args args) throws org.apache.thrift.TException {
2615 chandransh 5347
        refundOrder_result result = new refundOrder_result();
5348
        try {
3430 rajveer 5349
          result.success = iface.refundOrder(args.orderId, args.refundedBy, args.reason);
2615 chandransh 5350
          result.setSuccessIsSet(true);
5351
        } catch (TransactionServiceException ex) {
5352
          result.ex = ex;
5353
        }
3430 rajveer 5354
        return result;
2615 chandransh 5355
      }
5356
    }
5357
 
3430 rajveer 5358
    private static class getReturnOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnOrders_args> {
5359
      public getReturnOrders() {
5360
        super("getReturnOrders");
5361
      }
5362
 
5363
      protected getReturnOrders_args getEmptyArgsInstance() {
5364
        return new getReturnOrders_args();
5365
      }
5366
 
5367
      protected getReturnOrders_result getResult(I iface, getReturnOrders_args args) throws org.apache.thrift.TException {
2690 chandransh 5368
        getReturnOrders_result result = new getReturnOrders_result();
3430 rajveer 5369
        result.success = iface.getReturnOrders(args.warehouseId, args.fromDate, args.toDate);
5370
        return result;
2690 chandransh 5371
      }
5372
    }
5373
 
3430 rajveer 5374
    private static class getReturnOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnOrder_args> {
5375
      public getReturnOrder() {
5376
        super("getReturnOrder");
5377
      }
5378
 
5379
      protected getReturnOrder_args getEmptyArgsInstance() {
5380
        return new getReturnOrder_args();
5381
      }
5382
 
5383
      protected getReturnOrder_result getResult(I iface, getReturnOrder_args args) throws org.apache.thrift.TException {
2700 chandransh 5384
        getReturnOrder_result result = new getReturnOrder_result();
5385
        try {
3430 rajveer 5386
          result.success = iface.getReturnOrder(args.id);
2700 chandransh 5387
        } catch (TransactionServiceException ex) {
5388
          result.ex = ex;
5389
        }
3430 rajveer 5390
        return result;
2700 chandransh 5391
      }
5392
    }
5393
 
3430 rajveer 5394
    private static class processReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, processReturn_args> {
5395
      public processReturn() {
5396
        super("processReturn");
5397
      }
5398
 
5399
      protected processReturn_args getEmptyArgsInstance() {
5400
        return new processReturn_args();
5401
      }
5402
 
5403
      protected processReturn_result getResult(I iface, processReturn_args args) throws org.apache.thrift.TException {
2690 chandransh 5404
        processReturn_result result = new processReturn_result();
5405
        try {
3430 rajveer 5406
          iface.processReturn(args.returnOrderId);
2690 chandransh 5407
        } catch (TransactionServiceException ex) {
5408
          result.ex = ex;
5409
        }
3430 rajveer 5410
        return result;
2690 chandransh 5411
      }
5412
    }
5413
 
3430 rajveer 5414
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
5415
      public createPurchaseOrder() {
5416
        super("createPurchaseOrder");
5417
      }
5418
 
5419
      protected createPurchaseOrder_args getEmptyArgsInstance() {
5420
        return new createPurchaseOrder_args();
5421
      }
5422
 
5423
      protected createPurchaseOrder_result getResult(I iface, createPurchaseOrder_args args) throws org.apache.thrift.TException {
2819 chandransh 5424
        createPurchaseOrder_result result = new createPurchaseOrder_result();
5425
        try {
3430 rajveer 5426
          result.success = iface.createPurchaseOrder(args.warehouseId);
2819 chandransh 5427
          result.setSuccessIsSet(true);
5428
        } catch (TransactionServiceException ex) {
5429
          result.ex = ex;
5430
        }
3430 rajveer 5431
        return result;
2819 chandransh 5432
      }
5433
    }
5434
 
3451 chandransh 5435
    private static class updateWeight<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateWeight_args> {
5436
      public updateWeight() {
5437
        super("updateWeight");
5438
      }
5439
 
5440
      protected updateWeight_args getEmptyArgsInstance() {
5441
        return new updateWeight_args();
5442
      }
5443
 
5444
      protected updateWeight_result getResult(I iface, updateWeight_args args) throws org.apache.thrift.TException {
5445
        updateWeight_result result = new updateWeight_result();
5446
        try {
5447
          result.success = iface.updateWeight(args.orderId, args.weight);
5448
        } catch (TransactionServiceException ex) {
5449
          result.ex = ex;
5450
        }
5451
        return result;
5452
      }
5453
    }
5454
 
3469 chandransh 5455
    private static class changeItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItem_args> {
5456
      public changeItem() {
5457
        super("changeItem");
5458
      }
5459
 
5460
      protected changeItem_args getEmptyArgsInstance() {
5461
        return new changeItem_args();
5462
      }
5463
 
5464
      protected changeItem_result getResult(I iface, changeItem_args args) throws org.apache.thrift.TException {
5465
        changeItem_result result = new changeItem_result();
5466
        try {
5467
          result.success = iface.changeItem(args.orderId, args.itemId);
5468
        } catch (TransactionServiceException ex) {
5469
          result.ex = ex;
5470
        }
5471
        return result;
5472
      }
5473
    }
5474
 
5475
    private static class shiftToWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shiftToWarehouse_args> {
5476
      public shiftToWarehouse() {
5477
        super("shiftToWarehouse");
5478
      }
5479
 
5480
      protected shiftToWarehouse_args getEmptyArgsInstance() {
5481
        return new shiftToWarehouse_args();
5482
      }
5483
 
5484
      protected shiftToWarehouse_result getResult(I iface, shiftToWarehouse_args args) throws org.apache.thrift.TException {
5485
        shiftToWarehouse_result result = new shiftToWarehouse_result();
5486
        try {
5487
          result.success = iface.shiftToWarehouse(args.orderId, args.warehouseId);
5488
        } catch (TransactionServiceException ex) {
5489
          result.ex = ex;
5490
        }
5491
        return result;
5492
      }
5493
    }
5494
 
3553 chandransh 5495
    private static class addDelayReason<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addDelayReason_args> {
5496
      public addDelayReason() {
5497
        super("addDelayReason");
5498
      }
5499
 
5500
      protected addDelayReason_args getEmptyArgsInstance() {
5501
        return new addDelayReason_args();
5502
      }
5503
 
5504
      protected addDelayReason_result getResult(I iface, addDelayReason_args args) throws org.apache.thrift.TException {
5505
        addDelayReason_result result = new addDelayReason_result();
5506
        try {
3986 chandransh 5507
          result.success = iface.addDelayReason(args.orderId, args.delayReason, args.furtherDelay);
3553 chandransh 5508
          result.setSuccessIsSet(true);
5509
        } catch (TransactionServiceException ex) {
5510
          result.ex = ex;
5511
        }
5512
        return result;
5513
      }
5514
    }
5515
 
3956 chandransh 5516
    private static class reconcileCodCollection<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reconcileCodCollection_args> {
5517
      public reconcileCodCollection() {
5518
        super("reconcileCodCollection");
5519
      }
5520
 
5521
      protected reconcileCodCollection_args getEmptyArgsInstance() {
5522
        return new reconcileCodCollection_args();
5523
      }
5524
 
5525
      protected reconcileCodCollection_result getResult(I iface, reconcileCodCollection_args args) throws org.apache.thrift.TException {
5526
        reconcileCodCollection_result result = new reconcileCodCollection_result();
5527
        try {
5528
          result.success = iface.reconcileCodCollection(args.collectedAmountMap, args.xferBy, args.xferTxnId, args.xferDate);
5529
        } catch (TransactionServiceException ex) {
5530
          result.ex = ex;
5531
        }
5532
        return result;
5533
      }
5534
    }
5535
 
4008 mandeep.dh 5536
    private static class getTransactionsRequiringExtraProcessing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionsRequiringExtraProcessing_args> {
5537
      public getTransactionsRequiringExtraProcessing() {
5538
        super("getTransactionsRequiringExtraProcessing");
5539
      }
5540
 
5541
      protected getTransactionsRequiringExtraProcessing_args getEmptyArgsInstance() {
5542
        return new getTransactionsRequiringExtraProcessing_args();
5543
      }
5544
 
5545
      protected getTransactionsRequiringExtraProcessing_result getResult(I iface, getTransactionsRequiringExtraProcessing_args args) throws org.apache.thrift.TException {
5546
        getTransactionsRequiringExtraProcessing_result result = new getTransactionsRequiringExtraProcessing_result();
5547
        result.success = iface.getTransactionsRequiringExtraProcessing(args.category);
5548
        return result;
5549
      }
5550
    }
5551
 
5552
    private static class markTransactionAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markTransactionAsProcessed_args> {
5553
      public markTransactionAsProcessed() {
5554
        super("markTransactionAsProcessed");
5555
      }
5556
 
5557
      protected markTransactionAsProcessed_args getEmptyArgsInstance() {
5558
        return new markTransactionAsProcessed_args();
5559
      }
5560
 
5561
      protected markTransactionAsProcessed_result getResult(I iface, markTransactionAsProcessed_args args) throws org.apache.thrift.TException {
5562
        markTransactionAsProcessed_result result = new markTransactionAsProcessed_result();
5563
        iface.markTransactionAsProcessed(args.transactionId, args.category);
5564
        return result;
5565
      }
5566
    }
5567
 
4018 chandransh 5568
    private static class getItemWiseRiskyOrdersCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemWiseRiskyOrdersCount_args> {
5569
      public getItemWiseRiskyOrdersCount() {
5570
        super("getItemWiseRiskyOrdersCount");
5571
      }
5572
 
5573
      protected getItemWiseRiskyOrdersCount_args getEmptyArgsInstance() {
5574
        return new getItemWiseRiskyOrdersCount_args();
5575
      }
5576
 
5577
      protected getItemWiseRiskyOrdersCount_result getResult(I iface, getItemWiseRiskyOrdersCount_args args) throws org.apache.thrift.TException {
5578
        getItemWiseRiskyOrdersCount_result result = new getItemWiseRiskyOrdersCount_result();
5579
        result.success = iface.getItemWiseRiskyOrdersCount();
5580
        return result;
5581
      }
5582
    }
5583
 
68 ashish 5584
  }
5585
 
3430 rajveer 5586
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
5587
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
68 ashish 5588
 
3430 rajveer 5589
    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 5590
 
3430 rajveer 5591
    private Transaction transaction; // required
68 ashish 5592
 
5593
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5594
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 5595
      TRANSACTION((short)1, "transaction");
5596
 
5597
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5598
 
5599
      static {
5600
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5601
          byName.put(field.getFieldName(), field);
5602
        }
5603
      }
5604
 
5605
      /**
5606
       * Find the _Fields constant that matches fieldId, or null if its not found.
5607
       */
5608
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5609
        switch(fieldId) {
5610
          case 1: // TRANSACTION
5611
            return TRANSACTION;
5612
          default:
5613
            return null;
5614
        }
68 ashish 5615
      }
5616
 
5617
      /**
5618
       * Find the _Fields constant that matches fieldId, throwing an exception
5619
       * if it is not found.
5620
       */
5621
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5622
        _Fields fields = findByThriftId(fieldId);
5623
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5624
        return fields;
5625
      }
5626
 
5627
      /**
5628
       * Find the _Fields constant that matches name, or null if its not found.
5629
       */
5630
      public static _Fields findByName(String name) {
5631
        return byName.get(name);
5632
      }
5633
 
5634
      private final short _thriftId;
5635
      private final String _fieldName;
5636
 
5637
      _Fields(short thriftId, String fieldName) {
5638
        _thriftId = thriftId;
5639
        _fieldName = fieldName;
5640
      }
5641
 
5642
      public short getThriftFieldId() {
5643
        return _thriftId;
5644
      }
5645
 
5646
      public String getFieldName() {
5647
        return _fieldName;
5648
      }
5649
    }
5650
 
5651
    // isset id assignments
5652
 
3430 rajveer 5653
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 5654
    static {
3430 rajveer 5655
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5656
      tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5657
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class)));
5658
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5659
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransaction_args.class, metaDataMap);
68 ashish 5660
    }
5661
 
5662
    public createTransaction_args() {
5663
    }
5664
 
5665
    public createTransaction_args(
5666
      Transaction transaction)
5667
    {
5668
      this();
5669
      this.transaction = transaction;
5670
    }
5671
 
5672
    /**
5673
     * Performs a deep copy on <i>other</i>.
5674
     */
5675
    public createTransaction_args(createTransaction_args other) {
5676
      if (other.isSetTransaction()) {
5677
        this.transaction = new Transaction(other.transaction);
5678
      }
5679
    }
5680
 
5681
    public createTransaction_args deepCopy() {
5682
      return new createTransaction_args(this);
5683
    }
5684
 
3430 rajveer 5685
    @Override
5686
    public void clear() {
5687
      this.transaction = null;
68 ashish 5688
    }
5689
 
5690
    public Transaction getTransaction() {
5691
      return this.transaction;
5692
    }
5693
 
3430 rajveer 5694
    public void setTransaction(Transaction transaction) {
68 ashish 5695
      this.transaction = transaction;
5696
    }
5697
 
5698
    public void unsetTransaction() {
5699
      this.transaction = null;
5700
    }
5701
 
3430 rajveer 5702
    /** Returns true if field transaction is set (has been assigned a value) and false otherwise */
68 ashish 5703
    public boolean isSetTransaction() {
5704
      return this.transaction != null;
5705
    }
5706
 
5707
    public void setTransactionIsSet(boolean value) {
5708
      if (!value) {
5709
        this.transaction = null;
5710
      }
5711
    }
5712
 
5713
    public void setFieldValue(_Fields field, Object value) {
5714
      switch (field) {
5715
      case TRANSACTION:
5716
        if (value == null) {
5717
          unsetTransaction();
5718
        } else {
5719
          setTransaction((Transaction)value);
5720
        }
5721
        break;
5722
 
5723
      }
5724
    }
5725
 
5726
    public Object getFieldValue(_Fields field) {
5727
      switch (field) {
5728
      case TRANSACTION:
5729
        return getTransaction();
5730
 
5731
      }
5732
      throw new IllegalStateException();
5733
    }
5734
 
3430 rajveer 5735
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5736
    public boolean isSet(_Fields field) {
5737
      if (field == null) {
5738
        throw new IllegalArgumentException();
5739
      }
68 ashish 5740
 
5741
      switch (field) {
5742
      case TRANSACTION:
5743
        return isSetTransaction();
5744
      }
5745
      throw new IllegalStateException();
5746
    }
5747
 
5748
    @Override
5749
    public boolean equals(Object that) {
5750
      if (that == null)
5751
        return false;
5752
      if (that instanceof createTransaction_args)
5753
        return this.equals((createTransaction_args)that);
5754
      return false;
5755
    }
5756
 
5757
    public boolean equals(createTransaction_args that) {
5758
      if (that == null)
5759
        return false;
5760
 
5761
      boolean this_present_transaction = true && this.isSetTransaction();
5762
      boolean that_present_transaction = true && that.isSetTransaction();
5763
      if (this_present_transaction || that_present_transaction) {
5764
        if (!(this_present_transaction && that_present_transaction))
5765
          return false;
5766
        if (!this.transaction.equals(that.transaction))
5767
          return false;
5768
      }
5769
 
5770
      return true;
5771
    }
5772
 
5773
    @Override
5774
    public int hashCode() {
5775
      return 0;
5776
    }
5777
 
684 chandransh 5778
    public int compareTo(createTransaction_args other) {
5779
      if (!getClass().equals(other.getClass())) {
5780
        return getClass().getName().compareTo(other.getClass().getName());
5781
      }
5782
 
5783
      int lastComparison = 0;
5784
      createTransaction_args typedOther = (createTransaction_args)other;
5785
 
3430 rajveer 5786
      lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(typedOther.isSetTransaction());
684 chandransh 5787
      if (lastComparison != 0) {
5788
        return lastComparison;
5789
      }
3430 rajveer 5790
      if (isSetTransaction()) {
5791
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, typedOther.transaction);
5792
        if (lastComparison != 0) {
5793
          return lastComparison;
5794
        }
684 chandransh 5795
      }
5796
      return 0;
5797
    }
5798
 
3430 rajveer 5799
    public _Fields fieldForId(int fieldId) {
5800
      return _Fields.findByThriftId(fieldId);
5801
    }
5802
 
5803
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5804
      org.apache.thrift.protocol.TField field;
68 ashish 5805
      iprot.readStructBegin();
5806
      while (true)
5807
      {
5808
        field = iprot.readFieldBegin();
3430 rajveer 5809
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 5810
          break;
5811
        }
3430 rajveer 5812
        switch (field.id) {
5813
          case 1: // TRANSACTION
5814
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5815
              this.transaction = new Transaction();
5816
              this.transaction.read(iprot);
5817
            } else { 
5818
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5819
            }
5820
            break;
5821
          default:
5822
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 5823
        }
3430 rajveer 5824
        iprot.readFieldEnd();
68 ashish 5825
      }
5826
      iprot.readStructEnd();
5827
      validate();
5828
    }
5829
 
3430 rajveer 5830
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 5831
      validate();
5832
 
5833
      oprot.writeStructBegin(STRUCT_DESC);
5834
      if (this.transaction != null) {
5835
        oprot.writeFieldBegin(TRANSACTION_FIELD_DESC);
5836
        this.transaction.write(oprot);
5837
        oprot.writeFieldEnd();
5838
      }
5839
      oprot.writeFieldStop();
5840
      oprot.writeStructEnd();
5841
    }
5842
 
5843
    @Override
5844
    public String toString() {
5845
      StringBuilder sb = new StringBuilder("createTransaction_args(");
5846
      boolean first = true;
5847
 
5848
      sb.append("transaction:");
5849
      if (this.transaction == null) {
5850
        sb.append("null");
5851
      } else {
5852
        sb.append(this.transaction);
5853
      }
5854
      first = false;
5855
      sb.append(")");
5856
      return sb.toString();
5857
    }
5858
 
3430 rajveer 5859
    public void validate() throws org.apache.thrift.TException {
68 ashish 5860
      // check for required fields
5861
    }
5862
 
3430 rajveer 5863
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5864
      try {
5865
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5866
      } catch (org.apache.thrift.TException te) {
5867
        throw new java.io.IOException(te);
5868
      }
5869
    }
5870
 
5871
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5872
      try {
5873
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5874
      } catch (org.apache.thrift.TException te) {
5875
        throw new java.io.IOException(te);
5876
      }
5877
    }
5878
 
68 ashish 5879
  }
5880
 
3430 rajveer 5881
  public static class createTransaction_result implements org.apache.thrift.TBase<createTransaction_result, createTransaction_result._Fields>, java.io.Serializable, Cloneable   {
5882
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_result");
68 ashish 5883
 
3430 rajveer 5884
    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);
5885
    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 5886
 
3430 rajveer 5887
    private long success; // required
5888
    private TransactionServiceException ex; // required
68 ashish 5889
 
5890
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5891
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
132 ashish 5892
      SUCCESS((short)0, "success"),
68 ashish 5893
      EX((short)1, "ex");
5894
 
5895
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5896
 
5897
      static {
5898
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5899
          byName.put(field.getFieldName(), field);
5900
        }
5901
      }
5902
 
5903
      /**
5904
       * Find the _Fields constant that matches fieldId, or null if its not found.
5905
       */
5906
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5907
        switch(fieldId) {
5908
          case 0: // SUCCESS
5909
            return SUCCESS;
5910
          case 1: // EX
5911
            return EX;
5912
          default:
5913
            return null;
5914
        }
68 ashish 5915
      }
5916
 
5917
      /**
5918
       * Find the _Fields constant that matches fieldId, throwing an exception
5919
       * if it is not found.
5920
       */
5921
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5922
        _Fields fields = findByThriftId(fieldId);
5923
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5924
        return fields;
5925
      }
5926
 
5927
      /**
5928
       * Find the _Fields constant that matches name, or null if its not found.
5929
       */
5930
      public static _Fields findByName(String name) {
5931
        return byName.get(name);
5932
      }
5933
 
5934
      private final short _thriftId;
5935
      private final String _fieldName;
5936
 
5937
      _Fields(short thriftId, String fieldName) {
5938
        _thriftId = thriftId;
5939
        _fieldName = fieldName;
5940
      }
5941
 
5942
      public short getThriftFieldId() {
5943
        return _thriftId;
5944
      }
5945
 
5946
      public String getFieldName() {
5947
        return _fieldName;
5948
      }
5949
    }
5950
 
5951
    // isset id assignments
132 ashish 5952
    private static final int __SUCCESS_ISSET_ID = 0;
5953
    private BitSet __isset_bit_vector = new BitSet(1);
68 ashish 5954
 
3430 rajveer 5955
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 5956
    static {
3430 rajveer 5957
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5958
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5959
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5960
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5961
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5962
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5963
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransaction_result.class, metaDataMap);
68 ashish 5964
    }
5965
 
5966
    public createTransaction_result() {
5967
    }
5968
 
5969
    public createTransaction_result(
132 ashish 5970
      long success,
68 ashish 5971
      TransactionServiceException ex)
5972
    {
5973
      this();
132 ashish 5974
      this.success = success;
5975
      setSuccessIsSet(true);
68 ashish 5976
      this.ex = ex;
5977
    }
5978
 
5979
    /**
5980
     * Performs a deep copy on <i>other</i>.
5981
     */
5982
    public createTransaction_result(createTransaction_result other) {
132 ashish 5983
      __isset_bit_vector.clear();
5984
      __isset_bit_vector.or(other.__isset_bit_vector);
5985
      this.success = other.success;
68 ashish 5986
      if (other.isSetEx()) {
5987
        this.ex = new TransactionServiceException(other.ex);
5988
      }
5989
    }
5990
 
5991
    public createTransaction_result deepCopy() {
5992
      return new createTransaction_result(this);
5993
    }
5994
 
3430 rajveer 5995
    @Override
5996
    public void clear() {
5997
      setSuccessIsSet(false);
5998
      this.success = 0;
5999
      this.ex = null;
68 ashish 6000
    }
6001
 
132 ashish 6002
    public long getSuccess() {
6003
      return this.success;
6004
    }
6005
 
3430 rajveer 6006
    public void setSuccess(long success) {
132 ashish 6007
      this.success = success;
6008
      setSuccessIsSet(true);
6009
    }
6010
 
6011
    public void unsetSuccess() {
6012
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
6013
    }
6014
 
3430 rajveer 6015
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
132 ashish 6016
    public boolean isSetSuccess() {
6017
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
6018
    }
6019
 
6020
    public void setSuccessIsSet(boolean value) {
6021
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
6022
    }
6023
 
68 ashish 6024
    public TransactionServiceException getEx() {
6025
      return this.ex;
6026
    }
6027
 
3430 rajveer 6028
    public void setEx(TransactionServiceException ex) {
68 ashish 6029
      this.ex = ex;
6030
    }
6031
 
6032
    public void unsetEx() {
6033
      this.ex = null;
6034
    }
6035
 
3430 rajveer 6036
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 6037
    public boolean isSetEx() {
6038
      return this.ex != null;
6039
    }
6040
 
6041
    public void setExIsSet(boolean value) {
6042
      if (!value) {
6043
        this.ex = null;
6044
      }
6045
    }
6046
 
6047
    public void setFieldValue(_Fields field, Object value) {
6048
      switch (field) {
132 ashish 6049
      case SUCCESS:
6050
        if (value == null) {
6051
          unsetSuccess();
6052
        } else {
6053
          setSuccess((Long)value);
6054
        }
6055
        break;
6056
 
68 ashish 6057
      case EX:
6058
        if (value == null) {
6059
          unsetEx();
6060
        } else {
6061
          setEx((TransactionServiceException)value);
6062
        }
6063
        break;
6064
 
6065
      }
6066
    }
6067
 
6068
    public Object getFieldValue(_Fields field) {
6069
      switch (field) {
132 ashish 6070
      case SUCCESS:
3430 rajveer 6071
        return Long.valueOf(getSuccess());
132 ashish 6072
 
68 ashish 6073
      case EX:
6074
        return getEx();
6075
 
6076
      }
6077
      throw new IllegalStateException();
6078
    }
6079
 
3430 rajveer 6080
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6081
    public boolean isSet(_Fields field) {
6082
      if (field == null) {
6083
        throw new IllegalArgumentException();
6084
      }
68 ashish 6085
 
6086
      switch (field) {
132 ashish 6087
      case SUCCESS:
6088
        return isSetSuccess();
68 ashish 6089
      case EX:
6090
        return isSetEx();
6091
      }
6092
      throw new IllegalStateException();
6093
    }
6094
 
6095
    @Override
6096
    public boolean equals(Object that) {
6097
      if (that == null)
6098
        return false;
6099
      if (that instanceof createTransaction_result)
6100
        return this.equals((createTransaction_result)that);
6101
      return false;
6102
    }
6103
 
6104
    public boolean equals(createTransaction_result that) {
6105
      if (that == null)
6106
        return false;
6107
 
132 ashish 6108
      boolean this_present_success = true;
6109
      boolean that_present_success = true;
6110
      if (this_present_success || that_present_success) {
6111
        if (!(this_present_success && that_present_success))
6112
          return false;
6113
        if (this.success != that.success)
6114
          return false;
6115
      }
6116
 
68 ashish 6117
      boolean this_present_ex = true && this.isSetEx();
6118
      boolean that_present_ex = true && that.isSetEx();
6119
      if (this_present_ex || that_present_ex) {
6120
        if (!(this_present_ex && that_present_ex))
6121
          return false;
6122
        if (!this.ex.equals(that.ex))
6123
          return false;
6124
      }
6125
 
6126
      return true;
6127
    }
6128
 
6129
    @Override
6130
    public int hashCode() {
6131
      return 0;
6132
    }
6133
 
6134
    public int compareTo(createTransaction_result other) {
6135
      if (!getClass().equals(other.getClass())) {
6136
        return getClass().getName().compareTo(other.getClass().getName());
6137
      }
6138
 
6139
      int lastComparison = 0;
6140
      createTransaction_result typedOther = (createTransaction_result)other;
6141
 
3430 rajveer 6142
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
132 ashish 6143
      if (lastComparison != 0) {
6144
        return lastComparison;
6145
      }
3430 rajveer 6146
      if (isSetSuccess()) {
6147
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6148
        if (lastComparison != 0) {
6149
          return lastComparison;
6150
        }
132 ashish 6151
      }
3430 rajveer 6152
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 6153
      if (lastComparison != 0) {
6154
        return lastComparison;
6155
      }
3430 rajveer 6156
      if (isSetEx()) {
6157
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
6158
        if (lastComparison != 0) {
6159
          return lastComparison;
6160
        }
68 ashish 6161
      }
6162
      return 0;
6163
    }
6164
 
3430 rajveer 6165
    public _Fields fieldForId(int fieldId) {
6166
      return _Fields.findByThriftId(fieldId);
6167
    }
6168
 
6169
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6170
      org.apache.thrift.protocol.TField field;
68 ashish 6171
      iprot.readStructBegin();
6172
      while (true)
6173
      {
6174
        field = iprot.readFieldBegin();
3430 rajveer 6175
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 6176
          break;
6177
        }
3430 rajveer 6178
        switch (field.id) {
6179
          case 0: // SUCCESS
6180
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6181
              this.success = iprot.readI64();
6182
              setSuccessIsSet(true);
6183
            } else { 
6184
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6185
            }
6186
            break;
6187
          case 1: // EX
6188
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6189
              this.ex = new TransactionServiceException();
6190
              this.ex.read(iprot);
6191
            } else { 
6192
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6193
            }
6194
            break;
6195
          default:
6196
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 6197
        }
3430 rajveer 6198
        iprot.readFieldEnd();
68 ashish 6199
      }
6200
      iprot.readStructEnd();
6201
      validate();
6202
    }
6203
 
3430 rajveer 6204
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 6205
      oprot.writeStructBegin(STRUCT_DESC);
6206
 
132 ashish 6207
      if (this.isSetSuccess()) {
6208
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6209
        oprot.writeI64(this.success);
6210
        oprot.writeFieldEnd();
6211
      } else if (this.isSetEx()) {
68 ashish 6212
        oprot.writeFieldBegin(EX_FIELD_DESC);
6213
        this.ex.write(oprot);
6214
        oprot.writeFieldEnd();
6215
      }
6216
      oprot.writeFieldStop();
6217
      oprot.writeStructEnd();
6218
    }
6219
 
6220
    @Override
6221
    public String toString() {
6222
      StringBuilder sb = new StringBuilder("createTransaction_result(");
6223
      boolean first = true;
6224
 
132 ashish 6225
      sb.append("success:");
6226
      sb.append(this.success);
6227
      first = false;
6228
      if (!first) sb.append(", ");
68 ashish 6229
      sb.append("ex:");
6230
      if (this.ex == null) {
6231
        sb.append("null");
6232
      } else {
6233
        sb.append(this.ex);
6234
      }
6235
      first = false;
6236
      sb.append(")");
6237
      return sb.toString();
6238
    }
6239
 
3430 rajveer 6240
    public void validate() throws org.apache.thrift.TException {
68 ashish 6241
      // check for required fields
6242
    }
6243
 
3430 rajveer 6244
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6245
      try {
6246
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6247
      } catch (org.apache.thrift.TException te) {
6248
        throw new java.io.IOException(te);
6249
      }
6250
    }
6251
 
6252
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6253
      try {
6254
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6255
      } catch (org.apache.thrift.TException te) {
6256
        throw new java.io.IOException(te);
6257
      }
6258
    }
6259
 
68 ashish 6260
  }
6261
 
3430 rajveer 6262
  public static class getTransaction_args implements org.apache.thrift.TBase<getTransaction_args, getTransaction_args._Fields>, java.io.Serializable, Cloneable   {
6263
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransaction_args");
68 ashish 6264
 
3430 rajveer 6265
    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 6266
 
3430 rajveer 6267
    private long id; // required
68 ashish 6268
 
6269
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6270
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 6271
      ID((short)1, "id");
6272
 
6273
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6274
 
6275
      static {
6276
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6277
          byName.put(field.getFieldName(), field);
6278
        }
6279
      }
6280
 
6281
      /**
6282
       * Find the _Fields constant that matches fieldId, or null if its not found.
6283
       */
6284
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6285
        switch(fieldId) {
6286
          case 1: // ID
6287
            return ID;
6288
          default:
6289
            return null;
6290
        }
68 ashish 6291
      }
6292
 
6293
      /**
6294
       * Find the _Fields constant that matches fieldId, throwing an exception
6295
       * if it is not found.
6296
       */
6297
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6298
        _Fields fields = findByThriftId(fieldId);
6299
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6300
        return fields;
6301
      }
6302
 
6303
      /**
6304
       * Find the _Fields constant that matches name, or null if its not found.
6305
       */
6306
      public static _Fields findByName(String name) {
6307
        return byName.get(name);
6308
      }
6309
 
6310
      private final short _thriftId;
6311
      private final String _fieldName;
6312
 
6313
      _Fields(short thriftId, String fieldName) {
6314
        _thriftId = thriftId;
6315
        _fieldName = fieldName;
6316
      }
6317
 
6318
      public short getThriftFieldId() {
6319
        return _thriftId;
6320
      }
6321
 
6322
      public String getFieldName() {
6323
        return _fieldName;
6324
      }
6325
    }
6326
 
6327
    // isset id assignments
6328
    private static final int __ID_ISSET_ID = 0;
6329
    private BitSet __isset_bit_vector = new BitSet(1);
6330
 
3430 rajveer 6331
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 6332
    static {
3430 rajveer 6333
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6334
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6335
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6336
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6337
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransaction_args.class, metaDataMap);
68 ashish 6338
    }
6339
 
6340
    public getTransaction_args() {
6341
    }
6342
 
6343
    public getTransaction_args(
6344
      long id)
6345
    {
6346
      this();
6347
      this.id = id;
6348
      setIdIsSet(true);
6349
    }
6350
 
6351
    /**
6352
     * Performs a deep copy on <i>other</i>.
6353
     */
6354
    public getTransaction_args(getTransaction_args other) {
6355
      __isset_bit_vector.clear();
6356
      __isset_bit_vector.or(other.__isset_bit_vector);
6357
      this.id = other.id;
6358
    }
6359
 
6360
    public getTransaction_args deepCopy() {
6361
      return new getTransaction_args(this);
6362
    }
6363
 
3430 rajveer 6364
    @Override
6365
    public void clear() {
6366
      setIdIsSet(false);
6367
      this.id = 0;
68 ashish 6368
    }
6369
 
6370
    public long getId() {
6371
      return this.id;
6372
    }
6373
 
3430 rajveer 6374
    public void setId(long id) {
68 ashish 6375
      this.id = id;
6376
      setIdIsSet(true);
6377
    }
6378
 
6379
    public void unsetId() {
6380
      __isset_bit_vector.clear(__ID_ISSET_ID);
6381
    }
6382
 
3430 rajveer 6383
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
68 ashish 6384
    public boolean isSetId() {
6385
      return __isset_bit_vector.get(__ID_ISSET_ID);
6386
    }
6387
 
6388
    public void setIdIsSet(boolean value) {
6389
      __isset_bit_vector.set(__ID_ISSET_ID, value);
6390
    }
6391
 
6392
    public void setFieldValue(_Fields field, Object value) {
6393
      switch (field) {
6394
      case ID:
6395
        if (value == null) {
6396
          unsetId();
6397
        } else {
6398
          setId((Long)value);
6399
        }
6400
        break;
6401
 
6402
      }
6403
    }
6404
 
6405
    public Object getFieldValue(_Fields field) {
6406
      switch (field) {
6407
      case ID:
3430 rajveer 6408
        return Long.valueOf(getId());
68 ashish 6409
 
6410
      }
6411
      throw new IllegalStateException();
6412
    }
6413
 
3430 rajveer 6414
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6415
    public boolean isSet(_Fields field) {
6416
      if (field == null) {
6417
        throw new IllegalArgumentException();
6418
      }
68 ashish 6419
 
6420
      switch (field) {
6421
      case ID:
6422
        return isSetId();
6423
      }
6424
      throw new IllegalStateException();
6425
    }
6426
 
6427
    @Override
6428
    public boolean equals(Object that) {
6429
      if (that == null)
6430
        return false;
6431
      if (that instanceof getTransaction_args)
6432
        return this.equals((getTransaction_args)that);
6433
      return false;
6434
    }
6435
 
6436
    public boolean equals(getTransaction_args that) {
6437
      if (that == null)
6438
        return false;
6439
 
6440
      boolean this_present_id = true;
6441
      boolean that_present_id = true;
6442
      if (this_present_id || that_present_id) {
6443
        if (!(this_present_id && that_present_id))
6444
          return false;
6445
        if (this.id != that.id)
6446
          return false;
6447
      }
6448
 
6449
      return true;
6450
    }
6451
 
6452
    @Override
6453
    public int hashCode() {
6454
      return 0;
6455
    }
6456
 
6457
    public int compareTo(getTransaction_args other) {
6458
      if (!getClass().equals(other.getClass())) {
6459
        return getClass().getName().compareTo(other.getClass().getName());
6460
      }
6461
 
6462
      int lastComparison = 0;
6463
      getTransaction_args typedOther = (getTransaction_args)other;
6464
 
3430 rajveer 6465
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
68 ashish 6466
      if (lastComparison != 0) {
6467
        return lastComparison;
6468
      }
3430 rajveer 6469
      if (isSetId()) {
6470
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6471
        if (lastComparison != 0) {
6472
          return lastComparison;
6473
        }
68 ashish 6474
      }
6475
      return 0;
6476
    }
6477
 
3430 rajveer 6478
    public _Fields fieldForId(int fieldId) {
6479
      return _Fields.findByThriftId(fieldId);
6480
    }
6481
 
6482
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6483
      org.apache.thrift.protocol.TField field;
68 ashish 6484
      iprot.readStructBegin();
6485
      while (true)
6486
      {
6487
        field = iprot.readFieldBegin();
3430 rajveer 6488
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 6489
          break;
6490
        }
3430 rajveer 6491
        switch (field.id) {
6492
          case 1: // ID
6493
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6494
              this.id = iprot.readI64();
6495
              setIdIsSet(true);
6496
            } else { 
6497
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6498
            }
6499
            break;
6500
          default:
6501
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 6502
        }
3430 rajveer 6503
        iprot.readFieldEnd();
68 ashish 6504
      }
6505
      iprot.readStructEnd();
6506
      validate();
6507
    }
6508
 
3430 rajveer 6509
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 6510
      validate();
6511
 
6512
      oprot.writeStructBegin(STRUCT_DESC);
6513
      oprot.writeFieldBegin(ID_FIELD_DESC);
6514
      oprot.writeI64(this.id);
6515
      oprot.writeFieldEnd();
6516
      oprot.writeFieldStop();
6517
      oprot.writeStructEnd();
6518
    }
6519
 
6520
    @Override
6521
    public String toString() {
6522
      StringBuilder sb = new StringBuilder("getTransaction_args(");
6523
      boolean first = true;
6524
 
6525
      sb.append("id:");
6526
      sb.append(this.id);
6527
      first = false;
6528
      sb.append(")");
6529
      return sb.toString();
6530
    }
6531
 
3430 rajveer 6532
    public void validate() throws org.apache.thrift.TException {
68 ashish 6533
      // check for required fields
6534
    }
6535
 
3430 rajveer 6536
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6537
      try {
6538
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6539
      } catch (org.apache.thrift.TException te) {
6540
        throw new java.io.IOException(te);
6541
      }
6542
    }
6543
 
6544
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6545
      try {
6546
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6547
        __isset_bit_vector = new BitSet(1);
6548
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6549
      } catch (org.apache.thrift.TException te) {
6550
        throw new java.io.IOException(te);
6551
      }
6552
    }
6553
 
68 ashish 6554
  }
6555
 
3430 rajveer 6556
  public static class getTransaction_result implements org.apache.thrift.TBase<getTransaction_result, getTransaction_result._Fields>, java.io.Serializable, Cloneable   {
6557
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransaction_result");
68 ashish 6558
 
3430 rajveer 6559
    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);
6560
    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 6561
 
3430 rajveer 6562
    private Transaction success; // required
6563
    private TransactionServiceException ex; // required
68 ashish 6564
 
6565
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6566
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 6567
      SUCCESS((short)0, "success"),
6568
      EX((short)1, "ex");
6569
 
6570
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6571
 
6572
      static {
6573
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6574
          byName.put(field.getFieldName(), field);
6575
        }
6576
      }
6577
 
6578
      /**
6579
       * Find the _Fields constant that matches fieldId, or null if its not found.
6580
       */
6581
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6582
        switch(fieldId) {
6583
          case 0: // SUCCESS
6584
            return SUCCESS;
6585
          case 1: // EX
6586
            return EX;
6587
          default:
6588
            return null;
6589
        }
68 ashish 6590
      }
6591
 
6592
      /**
6593
       * Find the _Fields constant that matches fieldId, throwing an exception
6594
       * if it is not found.
6595
       */
6596
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6597
        _Fields fields = findByThriftId(fieldId);
6598
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6599
        return fields;
6600
      }
6601
 
6602
      /**
6603
       * Find the _Fields constant that matches name, or null if its not found.
6604
       */
6605
      public static _Fields findByName(String name) {
6606
        return byName.get(name);
6607
      }
6608
 
6609
      private final short _thriftId;
6610
      private final String _fieldName;
6611
 
6612
      _Fields(short thriftId, String fieldName) {
6613
        _thriftId = thriftId;
6614
        _fieldName = fieldName;
6615
      }
6616
 
6617
      public short getThriftFieldId() {
6618
        return _thriftId;
6619
      }
6620
 
6621
      public String getFieldName() {
6622
        return _fieldName;
6623
      }
6624
    }
6625
 
6626
    // isset id assignments
6627
 
3430 rajveer 6628
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 6629
    static {
3430 rajveer 6630
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6631
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6632
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class)));
6633
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6634
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6635
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6636
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransaction_result.class, metaDataMap);
68 ashish 6637
    }
6638
 
6639
    public getTransaction_result() {
6640
    }
6641
 
6642
    public getTransaction_result(
6643
      Transaction success,
6644
      TransactionServiceException ex)
6645
    {
6646
      this();
6647
      this.success = success;
6648
      this.ex = ex;
6649
    }
6650
 
6651
    /**
6652
     * Performs a deep copy on <i>other</i>.
6653
     */
6654
    public getTransaction_result(getTransaction_result other) {
6655
      if (other.isSetSuccess()) {
6656
        this.success = new Transaction(other.success);
6657
      }
6658
      if (other.isSetEx()) {
6659
        this.ex = new TransactionServiceException(other.ex);
6660
      }
6661
    }
6662
 
6663
    public getTransaction_result deepCopy() {
6664
      return new getTransaction_result(this);
6665
    }
6666
 
3430 rajveer 6667
    @Override
6668
    public void clear() {
6669
      this.success = null;
6670
      this.ex = null;
68 ashish 6671
    }
6672
 
6673
    public Transaction getSuccess() {
6674
      return this.success;
6675
    }
6676
 
3430 rajveer 6677
    public void setSuccess(Transaction success) {
68 ashish 6678
      this.success = success;
6679
    }
6680
 
6681
    public void unsetSuccess() {
6682
      this.success = null;
6683
    }
6684
 
3430 rajveer 6685
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 6686
    public boolean isSetSuccess() {
6687
      return this.success != null;
6688
    }
6689
 
6690
    public void setSuccessIsSet(boolean value) {
6691
      if (!value) {
6692
        this.success = null;
6693
      }
6694
    }
6695
 
6696
    public TransactionServiceException getEx() {
6697
      return this.ex;
6698
    }
6699
 
3430 rajveer 6700
    public void setEx(TransactionServiceException ex) {
68 ashish 6701
      this.ex = ex;
6702
    }
6703
 
6704
    public void unsetEx() {
6705
      this.ex = null;
6706
    }
6707
 
3430 rajveer 6708
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 6709
    public boolean isSetEx() {
6710
      return this.ex != null;
6711
    }
6712
 
6713
    public void setExIsSet(boolean value) {
6714
      if (!value) {
6715
        this.ex = null;
6716
      }
6717
    }
6718
 
6719
    public void setFieldValue(_Fields field, Object value) {
6720
      switch (field) {
6721
      case SUCCESS:
6722
        if (value == null) {
6723
          unsetSuccess();
6724
        } else {
6725
          setSuccess((Transaction)value);
6726
        }
6727
        break;
6728
 
6729
      case EX:
6730
        if (value == null) {
6731
          unsetEx();
6732
        } else {
6733
          setEx((TransactionServiceException)value);
6734
        }
6735
        break;
6736
 
6737
      }
6738
    }
6739
 
6740
    public Object getFieldValue(_Fields field) {
6741
      switch (field) {
6742
      case SUCCESS:
6743
        return getSuccess();
6744
 
6745
      case EX:
6746
        return getEx();
6747
 
6748
      }
6749
      throw new IllegalStateException();
6750
    }
6751
 
3430 rajveer 6752
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6753
    public boolean isSet(_Fields field) {
6754
      if (field == null) {
6755
        throw new IllegalArgumentException();
6756
      }
68 ashish 6757
 
6758
      switch (field) {
6759
      case SUCCESS:
6760
        return isSetSuccess();
6761
      case EX:
6762
        return isSetEx();
6763
      }
6764
      throw new IllegalStateException();
6765
    }
6766
 
6767
    @Override
6768
    public boolean equals(Object that) {
6769
      if (that == null)
6770
        return false;
6771
      if (that instanceof getTransaction_result)
6772
        return this.equals((getTransaction_result)that);
6773
      return false;
6774
    }
6775
 
6776
    public boolean equals(getTransaction_result that) {
6777
      if (that == null)
6778
        return false;
6779
 
6780
      boolean this_present_success = true && this.isSetSuccess();
6781
      boolean that_present_success = true && that.isSetSuccess();
6782
      if (this_present_success || that_present_success) {
6783
        if (!(this_present_success && that_present_success))
6784
          return false;
6785
        if (!this.success.equals(that.success))
6786
          return false;
6787
      }
6788
 
6789
      boolean this_present_ex = true && this.isSetEx();
6790
      boolean that_present_ex = true && that.isSetEx();
6791
      if (this_present_ex || that_present_ex) {
6792
        if (!(this_present_ex && that_present_ex))
6793
          return false;
6794
        if (!this.ex.equals(that.ex))
6795
          return false;
6796
      }
6797
 
6798
      return true;
6799
    }
6800
 
6801
    @Override
6802
    public int hashCode() {
6803
      return 0;
6804
    }
6805
 
684 chandransh 6806
    public int compareTo(getTransaction_result other) {
6807
      if (!getClass().equals(other.getClass())) {
6808
        return getClass().getName().compareTo(other.getClass().getName());
6809
      }
6810
 
6811
      int lastComparison = 0;
6812
      getTransaction_result typedOther = (getTransaction_result)other;
6813
 
3430 rajveer 6814
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
684 chandransh 6815
      if (lastComparison != 0) {
6816
        return lastComparison;
6817
      }
3430 rajveer 6818
      if (isSetSuccess()) {
6819
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6820
        if (lastComparison != 0) {
6821
          return lastComparison;
6822
        }
684 chandransh 6823
      }
3430 rajveer 6824
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
684 chandransh 6825
      if (lastComparison != 0) {
6826
        return lastComparison;
6827
      }
3430 rajveer 6828
      if (isSetEx()) {
6829
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
6830
        if (lastComparison != 0) {
6831
          return lastComparison;
6832
        }
684 chandransh 6833
      }
6834
      return 0;
6835
    }
6836
 
3430 rajveer 6837
    public _Fields fieldForId(int fieldId) {
6838
      return _Fields.findByThriftId(fieldId);
6839
    }
6840
 
6841
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6842
      org.apache.thrift.protocol.TField field;
68 ashish 6843
      iprot.readStructBegin();
6844
      while (true)
6845
      {
6846
        field = iprot.readFieldBegin();
3430 rajveer 6847
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 6848
          break;
6849
        }
3430 rajveer 6850
        switch (field.id) {
6851
          case 0: // SUCCESS
6852
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6853
              this.success = new Transaction();
6854
              this.success.read(iprot);
6855
            } else { 
6856
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6857
            }
6858
            break;
6859
          case 1: // EX
6860
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6861
              this.ex = new TransactionServiceException();
6862
              this.ex.read(iprot);
6863
            } else { 
6864
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6865
            }
6866
            break;
6867
          default:
6868
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 6869
        }
3430 rajveer 6870
        iprot.readFieldEnd();
68 ashish 6871
      }
6872
      iprot.readStructEnd();
6873
      validate();
6874
    }
6875
 
3430 rajveer 6876
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 6877
      oprot.writeStructBegin(STRUCT_DESC);
6878
 
6879
      if (this.isSetSuccess()) {
6880
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6881
        this.success.write(oprot);
6882
        oprot.writeFieldEnd();
6883
      } else if (this.isSetEx()) {
6884
        oprot.writeFieldBegin(EX_FIELD_DESC);
6885
        this.ex.write(oprot);
6886
        oprot.writeFieldEnd();
6887
      }
6888
      oprot.writeFieldStop();
6889
      oprot.writeStructEnd();
6890
    }
6891
 
6892
    @Override
6893
    public String toString() {
6894
      StringBuilder sb = new StringBuilder("getTransaction_result(");
6895
      boolean first = true;
6896
 
6897
      sb.append("success:");
6898
      if (this.success == null) {
6899
        sb.append("null");
6900
      } else {
6901
        sb.append(this.success);
6902
      }
6903
      first = false;
6904
      if (!first) sb.append(", ");
6905
      sb.append("ex:");
6906
      if (this.ex == null) {
6907
        sb.append("null");
6908
      } else {
6909
        sb.append(this.ex);
6910
      }
6911
      first = false;
6912
      sb.append(")");
6913
      return sb.toString();
6914
    }
6915
 
3430 rajveer 6916
    public void validate() throws org.apache.thrift.TException {
68 ashish 6917
      // check for required fields
6918
    }
6919
 
3430 rajveer 6920
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6921
      try {
6922
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6923
      } catch (org.apache.thrift.TException te) {
6924
        throw new java.io.IOException(te);
6925
      }
6926
    }
6927
 
6928
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6929
      try {
6930
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6931
      } catch (org.apache.thrift.TException te) {
6932
        throw new java.io.IOException(te);
6933
      }
6934
    }
6935
 
68 ashish 6936
  }
6937
 
3430 rajveer 6938
  public static class getTransactionsForCustomer_args implements org.apache.thrift.TBase<getTransactionsForCustomer_args, getTransactionsForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
6939
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForCustomer_args");
68 ashish 6940
 
3430 rajveer 6941
    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);
6942
    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);
6943
    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);
6944
    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 6945
 
3430 rajveer 6946
    private long customerId; // required
6947
    private long from_date; // required
6948
    private long to_date; // required
6949
    private TransactionStatus status; // required
68 ashish 6950
 
6951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6952
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 6953
      CUSTOMER_ID((short)1, "customerId"),
132 ashish 6954
      FROM_DATE((short)2, "from_date"),
6955
      TO_DATE((short)3, "to_date"),
68 ashish 6956
      /**
6957
       * 
6958
       * @see TransactionStatus
6959
       */
6960
      STATUS((short)4, "status");
6961
 
6962
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6963
 
6964
      static {
6965
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6966
          byName.put(field.getFieldName(), field);
6967
        }
6968
      }
6969
 
6970
      /**
6971
       * Find the _Fields constant that matches fieldId, or null if its not found.
6972
       */
6973
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6974
        switch(fieldId) {
6975
          case 1: // CUSTOMER_ID
6976
            return CUSTOMER_ID;
6977
          case 2: // FROM_DATE
6978
            return FROM_DATE;
6979
          case 3: // TO_DATE
6980
            return TO_DATE;
6981
          case 4: // STATUS
6982
            return STATUS;
6983
          default:
6984
            return null;
6985
        }
68 ashish 6986
      }
6987
 
6988
      /**
6989
       * Find the _Fields constant that matches fieldId, throwing an exception
6990
       * if it is not found.
6991
       */
6992
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6993
        _Fields fields = findByThriftId(fieldId);
6994
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6995
        return fields;
6996
      }
6997
 
6998
      /**
6999
       * Find the _Fields constant that matches name, or null if its not found.
7000
       */
7001
      public static _Fields findByName(String name) {
7002
        return byName.get(name);
7003
      }
7004
 
7005
      private final short _thriftId;
7006
      private final String _fieldName;
7007
 
7008
      _Fields(short thriftId, String fieldName) {
7009
        _thriftId = thriftId;
7010
        _fieldName = fieldName;
7011
      }
7012
 
7013
      public short getThriftFieldId() {
7014
        return _thriftId;
7015
      }
7016
 
7017
      public String getFieldName() {
7018
        return _fieldName;
7019
      }
7020
    }
7021
 
7022
    // isset id assignments
7023
    private static final int __CUSTOMERID_ISSET_ID = 0;
132 ashish 7024
    private static final int __FROM_DATE_ISSET_ID = 1;
7025
    private static final int __TO_DATE_ISSET_ID = 2;
68 ashish 7026
    private BitSet __isset_bit_vector = new BitSet(3);
7027
 
3430 rajveer 7028
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 7029
    static {
3430 rajveer 7030
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7031
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7032
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7033
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("from_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7034
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7035
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("to_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7036
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7037
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7038
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
7039
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7040
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForCustomer_args.class, metaDataMap);
68 ashish 7041
    }
7042
 
7043
    public getTransactionsForCustomer_args() {
7044
    }
7045
 
7046
    public getTransactionsForCustomer_args(
7047
      long customerId,
132 ashish 7048
      long from_date,
7049
      long to_date,
68 ashish 7050
      TransactionStatus status)
7051
    {
7052
      this();
7053
      this.customerId = customerId;
7054
      setCustomerIdIsSet(true);
132 ashish 7055
      this.from_date = from_date;
7056
      setFrom_dateIsSet(true);
7057
      this.to_date = to_date;
7058
      setTo_dateIsSet(true);
68 ashish 7059
      this.status = status;
7060
    }
7061
 
7062
    /**
7063
     * Performs a deep copy on <i>other</i>.
7064
     */
7065
    public getTransactionsForCustomer_args(getTransactionsForCustomer_args other) {
7066
      __isset_bit_vector.clear();
7067
      __isset_bit_vector.or(other.__isset_bit_vector);
7068
      this.customerId = other.customerId;
132 ashish 7069
      this.from_date = other.from_date;
7070
      this.to_date = other.to_date;
68 ashish 7071
      if (other.isSetStatus()) {
7072
        this.status = other.status;
7073
      }
7074
    }
7075
 
7076
    public getTransactionsForCustomer_args deepCopy() {
7077
      return new getTransactionsForCustomer_args(this);
7078
    }
7079
 
3430 rajveer 7080
    @Override
7081
    public void clear() {
7082
      setCustomerIdIsSet(false);
7083
      this.customerId = 0;
7084
      setFrom_dateIsSet(false);
7085
      this.from_date = 0;
7086
      setTo_dateIsSet(false);
7087
      this.to_date = 0;
7088
      this.status = null;
68 ashish 7089
    }
7090
 
7091
    public long getCustomerId() {
7092
      return this.customerId;
7093
    }
7094
 
3430 rajveer 7095
    public void setCustomerId(long customerId) {
68 ashish 7096
      this.customerId = customerId;
7097
      setCustomerIdIsSet(true);
7098
    }
7099
 
7100
    public void unsetCustomerId() {
7101
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
7102
    }
7103
 
3430 rajveer 7104
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
68 ashish 7105
    public boolean isSetCustomerId() {
7106
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
7107
    }
7108
 
7109
    public void setCustomerIdIsSet(boolean value) {
7110
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
7111
    }
7112
 
132 ashish 7113
    public long getFrom_date() {
7114
      return this.from_date;
68 ashish 7115
    }
7116
 
3430 rajveer 7117
    public void setFrom_date(long from_date) {
132 ashish 7118
      this.from_date = from_date;
7119
      setFrom_dateIsSet(true);
68 ashish 7120
    }
7121
 
132 ashish 7122
    public void unsetFrom_date() {
7123
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
68 ashish 7124
    }
7125
 
3430 rajveer 7126
    /** Returns true if field from_date is set (has been assigned a value) and false otherwise */
132 ashish 7127
    public boolean isSetFrom_date() {
7128
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
68 ashish 7129
    }
7130
 
132 ashish 7131
    public void setFrom_dateIsSet(boolean value) {
7132
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
68 ashish 7133
    }
7134
 
132 ashish 7135
    public long getTo_date() {
7136
      return this.to_date;
68 ashish 7137
    }
7138
 
3430 rajveer 7139
    public void setTo_date(long to_date) {
132 ashish 7140
      this.to_date = to_date;
7141
      setTo_dateIsSet(true);
68 ashish 7142
    }
7143
 
132 ashish 7144
    public void unsetTo_date() {
7145
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
68 ashish 7146
    }
7147
 
3430 rajveer 7148
    /** Returns true if field to_date is set (has been assigned a value) and false otherwise */
132 ashish 7149
    public boolean isSetTo_date() {
7150
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
68 ashish 7151
    }
7152
 
132 ashish 7153
    public void setTo_dateIsSet(boolean value) {
7154
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
68 ashish 7155
    }
7156
 
7157
    /**
7158
     * 
7159
     * @see TransactionStatus
7160
     */
7161
    public TransactionStatus getStatus() {
7162
      return this.status;
7163
    }
7164
 
7165
    /**
7166
     * 
7167
     * @see TransactionStatus
7168
     */
3430 rajveer 7169
    public void setStatus(TransactionStatus status) {
68 ashish 7170
      this.status = status;
7171
    }
7172
 
7173
    public void unsetStatus() {
7174
      this.status = null;
7175
    }
7176
 
3430 rajveer 7177
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
68 ashish 7178
    public boolean isSetStatus() {
7179
      return this.status != null;
7180
    }
7181
 
7182
    public void setStatusIsSet(boolean value) {
7183
      if (!value) {
7184
        this.status = null;
7185
      }
7186
    }
7187
 
7188
    public void setFieldValue(_Fields field, Object value) {
7189
      switch (field) {
7190
      case CUSTOMER_ID:
7191
        if (value == null) {
7192
          unsetCustomerId();
7193
        } else {
7194
          setCustomerId((Long)value);
7195
        }
7196
        break;
7197
 
132 ashish 7198
      case FROM_DATE:
68 ashish 7199
        if (value == null) {
132 ashish 7200
          unsetFrom_date();
68 ashish 7201
        } else {
132 ashish 7202
          setFrom_date((Long)value);
68 ashish 7203
        }
7204
        break;
7205
 
132 ashish 7206
      case TO_DATE:
68 ashish 7207
        if (value == null) {
132 ashish 7208
          unsetTo_date();
68 ashish 7209
        } else {
132 ashish 7210
          setTo_date((Long)value);
68 ashish 7211
        }
7212
        break;
7213
 
7214
      case STATUS:
7215
        if (value == null) {
7216
          unsetStatus();
7217
        } else {
7218
          setStatus((TransactionStatus)value);
7219
        }
7220
        break;
7221
 
7222
      }
7223
    }
7224
 
7225
    public Object getFieldValue(_Fields field) {
7226
      switch (field) {
7227
      case CUSTOMER_ID:
3430 rajveer 7228
        return Long.valueOf(getCustomerId());
68 ashish 7229
 
132 ashish 7230
      case FROM_DATE:
3430 rajveer 7231
        return Long.valueOf(getFrom_date());
68 ashish 7232
 
132 ashish 7233
      case TO_DATE:
3430 rajveer 7234
        return Long.valueOf(getTo_date());
68 ashish 7235
 
7236
      case STATUS:
7237
        return getStatus();
7238
 
7239
      }
7240
      throw new IllegalStateException();
7241
    }
7242
 
3430 rajveer 7243
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7244
    public boolean isSet(_Fields field) {
7245
      if (field == null) {
7246
        throw new IllegalArgumentException();
7247
      }
68 ashish 7248
 
7249
      switch (field) {
7250
      case CUSTOMER_ID:
7251
        return isSetCustomerId();
132 ashish 7252
      case FROM_DATE:
7253
        return isSetFrom_date();
7254
      case TO_DATE:
7255
        return isSetTo_date();
68 ashish 7256
      case STATUS:
7257
        return isSetStatus();
7258
      }
7259
      throw new IllegalStateException();
7260
    }
7261
 
7262
    @Override
7263
    public boolean equals(Object that) {
7264
      if (that == null)
7265
        return false;
7266
      if (that instanceof getTransactionsForCustomer_args)
7267
        return this.equals((getTransactionsForCustomer_args)that);
7268
      return false;
7269
    }
7270
 
7271
    public boolean equals(getTransactionsForCustomer_args that) {
7272
      if (that == null)
7273
        return false;
7274
 
7275
      boolean this_present_customerId = true;
7276
      boolean that_present_customerId = true;
7277
      if (this_present_customerId || that_present_customerId) {
7278
        if (!(this_present_customerId && that_present_customerId))
7279
          return false;
7280
        if (this.customerId != that.customerId)
7281
          return false;
7282
      }
7283
 
132 ashish 7284
      boolean this_present_from_date = true;
7285
      boolean that_present_from_date = true;
7286
      if (this_present_from_date || that_present_from_date) {
7287
        if (!(this_present_from_date && that_present_from_date))
68 ashish 7288
          return false;
132 ashish 7289
        if (this.from_date != that.from_date)
68 ashish 7290
          return false;
7291
      }
7292
 
132 ashish 7293
      boolean this_present_to_date = true;
7294
      boolean that_present_to_date = true;
7295
      if (this_present_to_date || that_present_to_date) {
7296
        if (!(this_present_to_date && that_present_to_date))
68 ashish 7297
          return false;
132 ashish 7298
        if (this.to_date != that.to_date)
68 ashish 7299
          return false;
7300
      }
7301
 
7302
      boolean this_present_status = true && this.isSetStatus();
7303
      boolean that_present_status = true && that.isSetStatus();
7304
      if (this_present_status || that_present_status) {
7305
        if (!(this_present_status && that_present_status))
7306
          return false;
7307
        if (!this.status.equals(that.status))
7308
          return false;
7309
      }
7310
 
7311
      return true;
7312
    }
7313
 
7314
    @Override
7315
    public int hashCode() {
7316
      return 0;
7317
    }
7318
 
7319
    public int compareTo(getTransactionsForCustomer_args other) {
7320
      if (!getClass().equals(other.getClass())) {
7321
        return getClass().getName().compareTo(other.getClass().getName());
7322
      }
7323
 
7324
      int lastComparison = 0;
7325
      getTransactionsForCustomer_args typedOther = (getTransactionsForCustomer_args)other;
7326
 
3430 rajveer 7327
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
68 ashish 7328
      if (lastComparison != 0) {
7329
        return lastComparison;
7330
      }
3430 rajveer 7331
      if (isSetCustomerId()) {
7332
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
7333
        if (lastComparison != 0) {
7334
          return lastComparison;
7335
        }
68 ashish 7336
      }
3430 rajveer 7337
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(typedOther.isSetFrom_date());
68 ashish 7338
      if (lastComparison != 0) {
7339
        return lastComparison;
7340
      }
3430 rajveer 7341
      if (isSetFrom_date()) {
7342
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_date, typedOther.from_date);
7343
        if (lastComparison != 0) {
7344
          return lastComparison;
7345
        }
68 ashish 7346
      }
3430 rajveer 7347
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(typedOther.isSetTo_date());
68 ashish 7348
      if (lastComparison != 0) {
7349
        return lastComparison;
7350
      }
3430 rajveer 7351
      if (isSetTo_date()) {
7352
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_date, typedOther.to_date);
7353
        if (lastComparison != 0) {
7354
          return lastComparison;
7355
        }
68 ashish 7356
      }
3430 rajveer 7357
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
68 ashish 7358
      if (lastComparison != 0) {
7359
        return lastComparison;
7360
      }
3430 rajveer 7361
      if (isSetStatus()) {
7362
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
7363
        if (lastComparison != 0) {
7364
          return lastComparison;
7365
        }
68 ashish 7366
      }
7367
      return 0;
7368
    }
7369
 
3430 rajveer 7370
    public _Fields fieldForId(int fieldId) {
7371
      return _Fields.findByThriftId(fieldId);
7372
    }
7373
 
7374
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7375
      org.apache.thrift.protocol.TField field;
68 ashish 7376
      iprot.readStructBegin();
7377
      while (true)
7378
      {
7379
        field = iprot.readFieldBegin();
3430 rajveer 7380
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 7381
          break;
7382
        }
3430 rajveer 7383
        switch (field.id) {
7384
          case 1: // CUSTOMER_ID
7385
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7386
              this.customerId = iprot.readI64();
7387
              setCustomerIdIsSet(true);
7388
            } else { 
7389
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7390
            }
7391
            break;
7392
          case 2: // FROM_DATE
7393
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7394
              this.from_date = iprot.readI64();
7395
              setFrom_dateIsSet(true);
7396
            } else { 
7397
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7398
            }
7399
            break;
7400
          case 3: // TO_DATE
7401
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7402
              this.to_date = iprot.readI64();
7403
              setTo_dateIsSet(true);
7404
            } else { 
7405
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7406
            }
7407
            break;
7408
          case 4: // STATUS
7409
            if (field.type == org.apache.thrift.protocol.TType.I32) {
7410
              this.status = TransactionStatus.findByValue(iprot.readI32());
7411
            } else { 
7412
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7413
            }
7414
            break;
7415
          default:
7416
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 7417
        }
3430 rajveer 7418
        iprot.readFieldEnd();
68 ashish 7419
      }
7420
      iprot.readStructEnd();
7421
      validate();
7422
    }
7423
 
3430 rajveer 7424
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 7425
      validate();
7426
 
7427
      oprot.writeStructBegin(STRUCT_DESC);
7428
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
7429
      oprot.writeI64(this.customerId);
7430
      oprot.writeFieldEnd();
132 ashish 7431
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
7432
      oprot.writeI64(this.from_date);
68 ashish 7433
      oprot.writeFieldEnd();
132 ashish 7434
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
7435
      oprot.writeI64(this.to_date);
68 ashish 7436
      oprot.writeFieldEnd();
7437
      if (this.status != null) {
7438
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
7439
        oprot.writeI32(this.status.getValue());
7440
        oprot.writeFieldEnd();
7441
      }
7442
      oprot.writeFieldStop();
7443
      oprot.writeStructEnd();
7444
    }
7445
 
7446
    @Override
7447
    public String toString() {
7448
      StringBuilder sb = new StringBuilder("getTransactionsForCustomer_args(");
7449
      boolean first = true;
7450
 
7451
      sb.append("customerId:");
7452
      sb.append(this.customerId);
7453
      first = false;
7454
      if (!first) sb.append(", ");
132 ashish 7455
      sb.append("from_date:");
7456
      sb.append(this.from_date);
68 ashish 7457
      first = false;
7458
      if (!first) sb.append(", ");
132 ashish 7459
      sb.append("to_date:");
7460
      sb.append(this.to_date);
68 ashish 7461
      first = false;
7462
      if (!first) sb.append(", ");
7463
      sb.append("status:");
7464
      if (this.status == null) {
7465
        sb.append("null");
7466
      } else {
7467
        sb.append(this.status);
7468
      }
7469
      first = false;
7470
      sb.append(")");
7471
      return sb.toString();
7472
    }
7473
 
3430 rajveer 7474
    public void validate() throws org.apache.thrift.TException {
68 ashish 7475
      // check for required fields
7476
    }
7477
 
3430 rajveer 7478
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7479
      try {
7480
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7481
      } catch (org.apache.thrift.TException te) {
7482
        throw new java.io.IOException(te);
7483
      }
7484
    }
7485
 
7486
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7487
      try {
7488
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7489
        __isset_bit_vector = new BitSet(1);
7490
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7491
      } catch (org.apache.thrift.TException te) {
7492
        throw new java.io.IOException(te);
7493
      }
7494
    }
7495
 
68 ashish 7496
  }
7497
 
3430 rajveer 7498
  public static class getTransactionsForCustomer_result implements org.apache.thrift.TBase<getTransactionsForCustomer_result, getTransactionsForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
7499
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForCustomer_result");
68 ashish 7500
 
3430 rajveer 7501
    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);
7502
    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 7503
 
3430 rajveer 7504
    private List<Transaction> success; // required
7505
    private TransactionServiceException ex; // required
68 ashish 7506
 
7507
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7508
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 7509
      SUCCESS((short)0, "success"),
7510
      EX((short)1, "ex");
7511
 
7512
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7513
 
7514
      static {
7515
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7516
          byName.put(field.getFieldName(), field);
7517
        }
7518
      }
7519
 
7520
      /**
7521
       * Find the _Fields constant that matches fieldId, or null if its not found.
7522
       */
7523
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7524
        switch(fieldId) {
7525
          case 0: // SUCCESS
7526
            return SUCCESS;
7527
          case 1: // EX
7528
            return EX;
7529
          default:
7530
            return null;
7531
        }
68 ashish 7532
      }
7533
 
7534
      /**
7535
       * Find the _Fields constant that matches fieldId, throwing an exception
7536
       * if it is not found.
7537
       */
7538
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7539
        _Fields fields = findByThriftId(fieldId);
7540
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7541
        return fields;
7542
      }
7543
 
7544
      /**
7545
       * Find the _Fields constant that matches name, or null if its not found.
7546
       */
7547
      public static _Fields findByName(String name) {
7548
        return byName.get(name);
7549
      }
7550
 
7551
      private final short _thriftId;
7552
      private final String _fieldName;
7553
 
7554
      _Fields(short thriftId, String fieldName) {
7555
        _thriftId = thriftId;
7556
        _fieldName = fieldName;
7557
      }
7558
 
7559
      public short getThriftFieldId() {
7560
        return _thriftId;
7561
      }
7562
 
7563
      public String getFieldName() {
7564
        return _fieldName;
7565
      }
7566
    }
7567
 
7568
    // isset id assignments
7569
 
3430 rajveer 7570
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 7571
    static {
3430 rajveer 7572
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7573
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7574
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7575
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class))));
7576
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7577
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7578
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7579
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForCustomer_result.class, metaDataMap);
68 ashish 7580
    }
7581
 
7582
    public getTransactionsForCustomer_result() {
7583
    }
7584
 
7585
    public getTransactionsForCustomer_result(
7586
      List<Transaction> success,
7587
      TransactionServiceException ex)
7588
    {
7589
      this();
7590
      this.success = success;
7591
      this.ex = ex;
7592
    }
7593
 
7594
    /**
7595
     * Performs a deep copy on <i>other</i>.
7596
     */
7597
    public getTransactionsForCustomer_result(getTransactionsForCustomer_result other) {
7598
      if (other.isSetSuccess()) {
7599
        List<Transaction> __this__success = new ArrayList<Transaction>();
7600
        for (Transaction other_element : other.success) {
7601
          __this__success.add(new Transaction(other_element));
7602
        }
7603
        this.success = __this__success;
7604
      }
7605
      if (other.isSetEx()) {
7606
        this.ex = new TransactionServiceException(other.ex);
7607
      }
7608
    }
7609
 
7610
    public getTransactionsForCustomer_result deepCopy() {
7611
      return new getTransactionsForCustomer_result(this);
7612
    }
7613
 
3430 rajveer 7614
    @Override
7615
    public void clear() {
7616
      this.success = null;
7617
      this.ex = null;
68 ashish 7618
    }
7619
 
7620
    public int getSuccessSize() {
7621
      return (this.success == null) ? 0 : this.success.size();
7622
    }
7623
 
7624
    public java.util.Iterator<Transaction> getSuccessIterator() {
7625
      return (this.success == null) ? null : this.success.iterator();
7626
    }
7627
 
7628
    public void addToSuccess(Transaction elem) {
7629
      if (this.success == null) {
7630
        this.success = new ArrayList<Transaction>();
7631
      }
7632
      this.success.add(elem);
7633
    }
7634
 
7635
    public List<Transaction> getSuccess() {
7636
      return this.success;
7637
    }
7638
 
3430 rajveer 7639
    public void setSuccess(List<Transaction> success) {
68 ashish 7640
      this.success = success;
7641
    }
7642
 
7643
    public void unsetSuccess() {
7644
      this.success = null;
7645
    }
7646
 
3430 rajveer 7647
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 7648
    public boolean isSetSuccess() {
7649
      return this.success != null;
7650
    }
7651
 
7652
    public void setSuccessIsSet(boolean value) {
7653
      if (!value) {
7654
        this.success = null;
7655
      }
7656
    }
7657
 
7658
    public TransactionServiceException getEx() {
7659
      return this.ex;
7660
    }
7661
 
3430 rajveer 7662
    public void setEx(TransactionServiceException ex) {
68 ashish 7663
      this.ex = ex;
7664
    }
7665
 
7666
    public void unsetEx() {
7667
      this.ex = null;
7668
    }
7669
 
3430 rajveer 7670
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 7671
    public boolean isSetEx() {
7672
      return this.ex != null;
7673
    }
7674
 
7675
    public void setExIsSet(boolean value) {
7676
      if (!value) {
7677
        this.ex = null;
7678
      }
7679
    }
7680
 
7681
    public void setFieldValue(_Fields field, Object value) {
7682
      switch (field) {
7683
      case SUCCESS:
7684
        if (value == null) {
7685
          unsetSuccess();
7686
        } else {
7687
          setSuccess((List<Transaction>)value);
7688
        }
7689
        break;
7690
 
7691
      case EX:
7692
        if (value == null) {
7693
          unsetEx();
7694
        } else {
7695
          setEx((TransactionServiceException)value);
7696
        }
7697
        break;
7698
 
7699
      }
7700
    }
7701
 
7702
    public Object getFieldValue(_Fields field) {
7703
      switch (field) {
7704
      case SUCCESS:
7705
        return getSuccess();
7706
 
7707
      case EX:
7708
        return getEx();
7709
 
7710
      }
7711
      throw new IllegalStateException();
7712
    }
7713
 
3430 rajveer 7714
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7715
    public boolean isSet(_Fields field) {
7716
      if (field == null) {
7717
        throw new IllegalArgumentException();
7718
      }
68 ashish 7719
 
7720
      switch (field) {
7721
      case SUCCESS:
7722
        return isSetSuccess();
7723
      case EX:
7724
        return isSetEx();
7725
      }
7726
      throw new IllegalStateException();
7727
    }
7728
 
7729
    @Override
7730
    public boolean equals(Object that) {
7731
      if (that == null)
7732
        return false;
7733
      if (that instanceof getTransactionsForCustomer_result)
7734
        return this.equals((getTransactionsForCustomer_result)that);
7735
      return false;
7736
    }
7737
 
7738
    public boolean equals(getTransactionsForCustomer_result that) {
7739
      if (that == null)
7740
        return false;
7741
 
7742
      boolean this_present_success = true && this.isSetSuccess();
7743
      boolean that_present_success = true && that.isSetSuccess();
7744
      if (this_present_success || that_present_success) {
7745
        if (!(this_present_success && that_present_success))
7746
          return false;
7747
        if (!this.success.equals(that.success))
7748
          return false;
7749
      }
7750
 
7751
      boolean this_present_ex = true && this.isSetEx();
7752
      boolean that_present_ex = true && that.isSetEx();
7753
      if (this_present_ex || that_present_ex) {
7754
        if (!(this_present_ex && that_present_ex))
7755
          return false;
7756
        if (!this.ex.equals(that.ex))
7757
          return false;
7758
      }
7759
 
7760
      return true;
7761
    }
7762
 
7763
    @Override
7764
    public int hashCode() {
7765
      return 0;
7766
    }
7767
 
684 chandransh 7768
    public int compareTo(getTransactionsForCustomer_result other) {
7769
      if (!getClass().equals(other.getClass())) {
7770
        return getClass().getName().compareTo(other.getClass().getName());
7771
      }
7772
 
7773
      int lastComparison = 0;
7774
      getTransactionsForCustomer_result typedOther = (getTransactionsForCustomer_result)other;
7775
 
3430 rajveer 7776
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
684 chandransh 7777
      if (lastComparison != 0) {
7778
        return lastComparison;
7779
      }
3430 rajveer 7780
      if (isSetSuccess()) {
7781
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7782
        if (lastComparison != 0) {
7783
          return lastComparison;
7784
        }
684 chandransh 7785
      }
3430 rajveer 7786
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
684 chandransh 7787
      if (lastComparison != 0) {
7788
        return lastComparison;
7789
      }
3430 rajveer 7790
      if (isSetEx()) {
7791
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
7792
        if (lastComparison != 0) {
7793
          return lastComparison;
7794
        }
684 chandransh 7795
      }
7796
      return 0;
7797
    }
7798
 
3430 rajveer 7799
    public _Fields fieldForId(int fieldId) {
7800
      return _Fields.findByThriftId(fieldId);
7801
    }
7802
 
7803
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7804
      org.apache.thrift.protocol.TField field;
68 ashish 7805
      iprot.readStructBegin();
7806
      while (true)
7807
      {
7808
        field = iprot.readFieldBegin();
3430 rajveer 7809
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 7810
          break;
7811
        }
3430 rajveer 7812
        switch (field.id) {
7813
          case 0: // SUCCESS
7814
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7815
              {
7816
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
7817
                this.success = new ArrayList<Transaction>(_list8.size);
7818
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
68 ashish 7819
                {
3430 rajveer 7820
                  Transaction _elem10; // required
7821
                  _elem10 = new Transaction();
7822
                  _elem10.read(iprot);
7823
                  this.success.add(_elem10);
68 ashish 7824
                }
3430 rajveer 7825
                iprot.readListEnd();
68 ashish 7826
              }
3430 rajveer 7827
            } else { 
7828
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7829
            }
7830
            break;
7831
          case 1: // EX
7832
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7833
              this.ex = new TransactionServiceException();
7834
              this.ex.read(iprot);
7835
            } else { 
7836
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7837
            }
7838
            break;
7839
          default:
7840
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 7841
        }
3430 rajveer 7842
        iprot.readFieldEnd();
68 ashish 7843
      }
7844
      iprot.readStructEnd();
7845
      validate();
7846
    }
7847
 
3430 rajveer 7848
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 7849
      oprot.writeStructBegin(STRUCT_DESC);
7850
 
7851
      if (this.isSetSuccess()) {
7852
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7853
        {
3430 rajveer 7854
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
684 chandransh 7855
          for (Transaction _iter11 : this.success)
68 ashish 7856
          {
684 chandransh 7857
            _iter11.write(oprot);
68 ashish 7858
          }
7859
          oprot.writeListEnd();
7860
        }
7861
        oprot.writeFieldEnd();
7862
      } else if (this.isSetEx()) {
7863
        oprot.writeFieldBegin(EX_FIELD_DESC);
7864
        this.ex.write(oprot);
7865
        oprot.writeFieldEnd();
7866
      }
7867
      oprot.writeFieldStop();
7868
      oprot.writeStructEnd();
7869
    }
7870
 
7871
    @Override
7872
    public String toString() {
7873
      StringBuilder sb = new StringBuilder("getTransactionsForCustomer_result(");
7874
      boolean first = true;
7875
 
7876
      sb.append("success:");
7877
      if (this.success == null) {
7878
        sb.append("null");
7879
      } else {
7880
        sb.append(this.success);
7881
      }
7882
      first = false;
7883
      if (!first) sb.append(", ");
7884
      sb.append("ex:");
7885
      if (this.ex == null) {
7886
        sb.append("null");
7887
      } else {
7888
        sb.append(this.ex);
7889
      }
7890
      first = false;
7891
      sb.append(")");
7892
      return sb.toString();
7893
    }
7894
 
3430 rajveer 7895
    public void validate() throws org.apache.thrift.TException {
68 ashish 7896
      // check for required fields
7897
    }
7898
 
3430 rajveer 7899
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7900
      try {
7901
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7902
      } catch (org.apache.thrift.TException te) {
7903
        throw new java.io.IOException(te);
7904
      }
7905
    }
7906
 
7907
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7908
      try {
7909
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7910
      } catch (org.apache.thrift.TException te) {
7911
        throw new java.io.IOException(te);
7912
      }
7913
    }
7914
 
68 ashish 7915
  }
7916
 
3430 rajveer 7917
  public static class getTransactionsForShoppingCartId_args implements org.apache.thrift.TBase<getTransactionsForShoppingCartId_args, getTransactionsForShoppingCartId_args._Fields>, java.io.Serializable, Cloneable   {
7918
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForShoppingCartId_args");
132 ashish 7919
 
3430 rajveer 7920
    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 7921
 
3430 rajveer 7922
    private long shoppingCartId; // required
132 ashish 7923
 
7924
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7925
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
132 ashish 7926
      SHOPPING_CART_ID((short)1, "shoppingCartId");
7927
 
7928
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7929
 
7930
      static {
7931
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7932
          byName.put(field.getFieldName(), field);
7933
        }
7934
      }
7935
 
7936
      /**
7937
       * Find the _Fields constant that matches fieldId, or null if its not found.
7938
       */
7939
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7940
        switch(fieldId) {
7941
          case 1: // SHOPPING_CART_ID
7942
            return SHOPPING_CART_ID;
7943
          default:
7944
            return null;
7945
        }
132 ashish 7946
      }
7947
 
7948
      /**
7949
       * Find the _Fields constant that matches fieldId, throwing an exception
7950
       * if it is not found.
7951
       */
7952
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7953
        _Fields fields = findByThriftId(fieldId);
7954
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7955
        return fields;
7956
      }
7957
 
7958
      /**
7959
       * Find the _Fields constant that matches name, or null if its not found.
7960
       */
7961
      public static _Fields findByName(String name) {
7962
        return byName.get(name);
7963
      }
7964
 
7965
      private final short _thriftId;
7966
      private final String _fieldName;
7967
 
7968
      _Fields(short thriftId, String fieldName) {
7969
        _thriftId = thriftId;
7970
        _fieldName = fieldName;
7971
      }
7972
 
7973
      public short getThriftFieldId() {
7974
        return _thriftId;
7975
      }
7976
 
7977
      public String getFieldName() {
7978
        return _fieldName;
7979
      }
7980
    }
7981
 
7982
    // isset id assignments
7983
    private static final int __SHOPPINGCARTID_ISSET_ID = 0;
7984
    private BitSet __isset_bit_vector = new BitSet(1);
7985
 
3430 rajveer 7986
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
132 ashish 7987
    static {
3430 rajveer 7988
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7989
      tmpMap.put(_Fields.SHOPPING_CART_ID, new org.apache.thrift.meta_data.FieldMetaData("shoppingCartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7990
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7991
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7992
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForShoppingCartId_args.class, metaDataMap);
132 ashish 7993
    }
7994
 
7995
    public getTransactionsForShoppingCartId_args() {
7996
    }
7997
 
7998
    public getTransactionsForShoppingCartId_args(
7999
      long shoppingCartId)
8000
    {
8001
      this();
8002
      this.shoppingCartId = shoppingCartId;
8003
      setShoppingCartIdIsSet(true);
8004
    }
8005
 
8006
    /**
8007
     * Performs a deep copy on <i>other</i>.
8008
     */
8009
    public getTransactionsForShoppingCartId_args(getTransactionsForShoppingCartId_args other) {
8010
      __isset_bit_vector.clear();
8011
      __isset_bit_vector.or(other.__isset_bit_vector);
8012
      this.shoppingCartId = other.shoppingCartId;
8013
    }
8014
 
8015
    public getTransactionsForShoppingCartId_args deepCopy() {
8016
      return new getTransactionsForShoppingCartId_args(this);
8017
    }
8018
 
3430 rajveer 8019
    @Override
8020
    public void clear() {
8021
      setShoppingCartIdIsSet(false);
8022
      this.shoppingCartId = 0;
132 ashish 8023
    }
8024
 
8025
    public long getShoppingCartId() {
8026
      return this.shoppingCartId;
8027
    }
8028
 
3430 rajveer 8029
    public void setShoppingCartId(long shoppingCartId) {
132 ashish 8030
      this.shoppingCartId = shoppingCartId;
8031
      setShoppingCartIdIsSet(true);
8032
    }
8033
 
8034
    public void unsetShoppingCartId() {
8035
      __isset_bit_vector.clear(__SHOPPINGCARTID_ISSET_ID);
8036
    }
8037
 
3430 rajveer 8038
    /** Returns true if field shoppingCartId is set (has been assigned a value) and false otherwise */
132 ashish 8039
    public boolean isSetShoppingCartId() {
8040
      return __isset_bit_vector.get(__SHOPPINGCARTID_ISSET_ID);
8041
    }
8042
 
8043
    public void setShoppingCartIdIsSet(boolean value) {
8044
      __isset_bit_vector.set(__SHOPPINGCARTID_ISSET_ID, value);
8045
    }
8046
 
8047
    public void setFieldValue(_Fields field, Object value) {
8048
      switch (field) {
8049
      case SHOPPING_CART_ID:
8050
        if (value == null) {
8051
          unsetShoppingCartId();
8052
        } else {
8053
          setShoppingCartId((Long)value);
8054
        }
8055
        break;
8056
 
8057
      }
8058
    }
8059
 
8060
    public Object getFieldValue(_Fields field) {
8061
      switch (field) {
8062
      case SHOPPING_CART_ID:
3430 rajveer 8063
        return Long.valueOf(getShoppingCartId());
132 ashish 8064
 
8065
      }
8066
      throw new IllegalStateException();
8067
    }
8068
 
3430 rajveer 8069
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8070
    public boolean isSet(_Fields field) {
8071
      if (field == null) {
8072
        throw new IllegalArgumentException();
8073
      }
132 ashish 8074
 
8075
      switch (field) {
8076
      case SHOPPING_CART_ID:
8077
        return isSetShoppingCartId();
8078
      }
8079
      throw new IllegalStateException();
8080
    }
8081
 
8082
    @Override
8083
    public boolean equals(Object that) {
8084
      if (that == null)
8085
        return false;
8086
      if (that instanceof getTransactionsForShoppingCartId_args)
8087
        return this.equals((getTransactionsForShoppingCartId_args)that);
8088
      return false;
8089
    }
8090
 
8091
    public boolean equals(getTransactionsForShoppingCartId_args that) {
8092
      if (that == null)
8093
        return false;
8094
 
8095
      boolean this_present_shoppingCartId = true;
8096
      boolean that_present_shoppingCartId = true;
8097
      if (this_present_shoppingCartId || that_present_shoppingCartId) {
8098
        if (!(this_present_shoppingCartId && that_present_shoppingCartId))
8099
          return false;
8100
        if (this.shoppingCartId != that.shoppingCartId)
8101
          return false;
8102
      }
8103
 
8104
      return true;
8105
    }
8106
 
8107
    @Override
8108
    public int hashCode() {
8109
      return 0;
8110
    }
8111
 
8112
    public int compareTo(getTransactionsForShoppingCartId_args other) {
8113
      if (!getClass().equals(other.getClass())) {
8114
        return getClass().getName().compareTo(other.getClass().getName());
8115
      }
8116
 
8117
      int lastComparison = 0;
8118
      getTransactionsForShoppingCartId_args typedOther = (getTransactionsForShoppingCartId_args)other;
8119
 
3430 rajveer 8120
      lastComparison = Boolean.valueOf(isSetShoppingCartId()).compareTo(typedOther.isSetShoppingCartId());
132 ashish 8121
      if (lastComparison != 0) {
8122
        return lastComparison;
8123
      }
3430 rajveer 8124
      if (isSetShoppingCartId()) {
8125
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shoppingCartId, typedOther.shoppingCartId);
8126
        if (lastComparison != 0) {
8127
          return lastComparison;
8128
        }
132 ashish 8129
      }
8130
      return 0;
8131
    }
8132
 
3430 rajveer 8133
    public _Fields fieldForId(int fieldId) {
8134
      return _Fields.findByThriftId(fieldId);
8135
    }
8136
 
8137
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8138
      org.apache.thrift.protocol.TField field;
132 ashish 8139
      iprot.readStructBegin();
8140
      while (true)
8141
      {
8142
        field = iprot.readFieldBegin();
3430 rajveer 8143
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
132 ashish 8144
          break;
8145
        }
3430 rajveer 8146
        switch (field.id) {
8147
          case 1: // SHOPPING_CART_ID
8148
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8149
              this.shoppingCartId = iprot.readI64();
8150
              setShoppingCartIdIsSet(true);
8151
            } else { 
8152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8153
            }
8154
            break;
8155
          default:
8156
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
132 ashish 8157
        }
3430 rajveer 8158
        iprot.readFieldEnd();
132 ashish 8159
      }
8160
      iprot.readStructEnd();
8161
      validate();
8162
    }
8163
 
3430 rajveer 8164
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
132 ashish 8165
      validate();
8166
 
8167
      oprot.writeStructBegin(STRUCT_DESC);
8168
      oprot.writeFieldBegin(SHOPPING_CART_ID_FIELD_DESC);
8169
      oprot.writeI64(this.shoppingCartId);
8170
      oprot.writeFieldEnd();
8171
      oprot.writeFieldStop();
8172
      oprot.writeStructEnd();
8173
    }
8174
 
8175
    @Override
8176
    public String toString() {
8177
      StringBuilder sb = new StringBuilder("getTransactionsForShoppingCartId_args(");
8178
      boolean first = true;
8179
 
8180
      sb.append("shoppingCartId:");
8181
      sb.append(this.shoppingCartId);
8182
      first = false;
8183
      sb.append(")");
8184
      return sb.toString();
8185
    }
8186
 
3430 rajveer 8187
    public void validate() throws org.apache.thrift.TException {
132 ashish 8188
      // check for required fields
8189
    }
8190
 
3430 rajveer 8191
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8192
      try {
8193
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8194
      } catch (org.apache.thrift.TException te) {
8195
        throw new java.io.IOException(te);
8196
      }
8197
    }
8198
 
8199
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8200
      try {
8201
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8202
        __isset_bit_vector = new BitSet(1);
8203
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8204
      } catch (org.apache.thrift.TException te) {
8205
        throw new java.io.IOException(te);
8206
      }
8207
    }
8208
 
132 ashish 8209
  }
8210
 
3430 rajveer 8211
  public static class getTransactionsForShoppingCartId_result implements org.apache.thrift.TBase<getTransactionsForShoppingCartId_result, getTransactionsForShoppingCartId_result._Fields>, java.io.Serializable, Cloneable   {
8212
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForShoppingCartId_result");
132 ashish 8213
 
3430 rajveer 8214
    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);
8215
    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 8216
 
3430 rajveer 8217
    private List<Transaction> success; // required
8218
    private TransactionServiceException ex; // required
132 ashish 8219
 
8220
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8221
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
132 ashish 8222
      SUCCESS((short)0, "success"),
8223
      EX((short)1, "ex");
8224
 
8225
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8226
 
8227
      static {
8228
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8229
          byName.put(field.getFieldName(), field);
8230
        }
8231
      }
8232
 
8233
      /**
8234
       * Find the _Fields constant that matches fieldId, or null if its not found.
8235
       */
8236
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8237
        switch(fieldId) {
8238
          case 0: // SUCCESS
8239
            return SUCCESS;
8240
          case 1: // EX
8241
            return EX;
8242
          default:
8243
            return null;
8244
        }
132 ashish 8245
      }
8246
 
8247
      /**
8248
       * Find the _Fields constant that matches fieldId, throwing an exception
8249
       * if it is not found.
8250
       */
8251
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8252
        _Fields fields = findByThriftId(fieldId);
8253
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8254
        return fields;
8255
      }
8256
 
8257
      /**
8258
       * Find the _Fields constant that matches name, or null if its not found.
8259
       */
8260
      public static _Fields findByName(String name) {
8261
        return byName.get(name);
8262
      }
8263
 
8264
      private final short _thriftId;
8265
      private final String _fieldName;
8266
 
8267
      _Fields(short thriftId, String fieldName) {
8268
        _thriftId = thriftId;
8269
        _fieldName = fieldName;
8270
      }
8271
 
8272
      public short getThriftFieldId() {
8273
        return _thriftId;
8274
      }
8275
 
8276
      public String getFieldName() {
8277
        return _fieldName;
8278
      }
8279
    }
8280
 
8281
    // isset id assignments
8282
 
3430 rajveer 8283
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
132 ashish 8284
    static {
3430 rajveer 8285
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8286
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8287
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8288
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class))));
8289
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8290
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8291
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8292
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForShoppingCartId_result.class, metaDataMap);
132 ashish 8293
    }
8294
 
8295
    public getTransactionsForShoppingCartId_result() {
8296
    }
8297
 
8298
    public getTransactionsForShoppingCartId_result(
8299
      List<Transaction> success,
8300
      TransactionServiceException ex)
8301
    {
8302
      this();
8303
      this.success = success;
8304
      this.ex = ex;
8305
    }
8306
 
8307
    /**
8308
     * Performs a deep copy on <i>other</i>.
8309
     */
8310
    public getTransactionsForShoppingCartId_result(getTransactionsForShoppingCartId_result other) {
8311
      if (other.isSetSuccess()) {
8312
        List<Transaction> __this__success = new ArrayList<Transaction>();
8313
        for (Transaction other_element : other.success) {
8314
          __this__success.add(new Transaction(other_element));
8315
        }
8316
        this.success = __this__success;
8317
      }
8318
      if (other.isSetEx()) {
8319
        this.ex = new TransactionServiceException(other.ex);
8320
      }
8321
    }
8322
 
8323
    public getTransactionsForShoppingCartId_result deepCopy() {
8324
      return new getTransactionsForShoppingCartId_result(this);
8325
    }
8326
 
3430 rajveer 8327
    @Override
8328
    public void clear() {
8329
      this.success = null;
8330
      this.ex = null;
132 ashish 8331
    }
8332
 
8333
    public int getSuccessSize() {
8334
      return (this.success == null) ? 0 : this.success.size();
8335
    }
8336
 
8337
    public java.util.Iterator<Transaction> getSuccessIterator() {
8338
      return (this.success == null) ? null : this.success.iterator();
8339
    }
8340
 
8341
    public void addToSuccess(Transaction elem) {
8342
      if (this.success == null) {
8343
        this.success = new ArrayList<Transaction>();
8344
      }
8345
      this.success.add(elem);
8346
    }
8347
 
8348
    public List<Transaction> getSuccess() {
8349
      return this.success;
8350
    }
8351
 
3430 rajveer 8352
    public void setSuccess(List<Transaction> success) {
132 ashish 8353
      this.success = success;
8354
    }
8355
 
8356
    public void unsetSuccess() {
8357
      this.success = null;
8358
    }
8359
 
3430 rajveer 8360
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
132 ashish 8361
    public boolean isSetSuccess() {
8362
      return this.success != null;
8363
    }
8364
 
8365
    public void setSuccessIsSet(boolean value) {
8366
      if (!value) {
8367
        this.success = null;
8368
      }
8369
    }
8370
 
8371
    public TransactionServiceException getEx() {
8372
      return this.ex;
8373
    }
8374
 
3430 rajveer 8375
    public void setEx(TransactionServiceException ex) {
132 ashish 8376
      this.ex = ex;
8377
    }
8378
 
8379
    public void unsetEx() {
8380
      this.ex = null;
8381
    }
8382
 
3430 rajveer 8383
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
132 ashish 8384
    public boolean isSetEx() {
8385
      return this.ex != null;
8386
    }
8387
 
8388
    public void setExIsSet(boolean value) {
8389
      if (!value) {
8390
        this.ex = null;
8391
      }
8392
    }
8393
 
8394
    public void setFieldValue(_Fields field, Object value) {
8395
      switch (field) {
8396
      case SUCCESS:
8397
        if (value == null) {
8398
          unsetSuccess();
8399
        } else {
8400
          setSuccess((List<Transaction>)value);
8401
        }
8402
        break;
8403
 
8404
      case EX:
8405
        if (value == null) {
8406
          unsetEx();
8407
        } else {
8408
          setEx((TransactionServiceException)value);
8409
        }
8410
        break;
8411
 
8412
      }
8413
    }
8414
 
8415
    public Object getFieldValue(_Fields field) {
8416
      switch (field) {
8417
      case SUCCESS:
8418
        return getSuccess();
8419
 
8420
      case EX:
8421
        return getEx();
8422
 
8423
      }
8424
      throw new IllegalStateException();
8425
    }
8426
 
3430 rajveer 8427
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8428
    public boolean isSet(_Fields field) {
8429
      if (field == null) {
8430
        throw new IllegalArgumentException();
8431
      }
132 ashish 8432
 
8433
      switch (field) {
8434
      case SUCCESS:
8435
        return isSetSuccess();
8436
      case EX:
8437
        return isSetEx();
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_result)
8447
        return this.equals((getTransactionsForShoppingCartId_result)that);
8448
      return false;
8449
    }
8450
 
8451
    public boolean equals(getTransactionsForShoppingCartId_result that) {
8452
      if (that == null)
8453
        return false;
8454
 
8455
      boolean this_present_success = true && this.isSetSuccess();
8456
      boolean that_present_success = true && that.isSetSuccess();
8457
      if (this_present_success || that_present_success) {
8458
        if (!(this_present_success && that_present_success))
8459
          return false;
8460
        if (!this.success.equals(that.success))
8461
          return false;
8462
      }
8463
 
8464
      boolean this_present_ex = true && this.isSetEx();
8465
      boolean that_present_ex = true && that.isSetEx();
8466
      if (this_present_ex || that_present_ex) {
8467
        if (!(this_present_ex && that_present_ex))
8468
          return false;
8469
        if (!this.ex.equals(that.ex))
8470
          return false;
8471
      }
8472
 
8473
      return true;
8474
    }
8475
 
8476
    @Override
8477
    public int hashCode() {
8478
      return 0;
8479
    }
8480
 
684 chandransh 8481
    public int compareTo(getTransactionsForShoppingCartId_result other) {
8482
      if (!getClass().equals(other.getClass())) {
8483
        return getClass().getName().compareTo(other.getClass().getName());
8484
      }
8485
 
8486
      int lastComparison = 0;
8487
      getTransactionsForShoppingCartId_result typedOther = (getTransactionsForShoppingCartId_result)other;
8488
 
3430 rajveer 8489
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
684 chandransh 8490
      if (lastComparison != 0) {
8491
        return lastComparison;
8492
      }
3430 rajveer 8493
      if (isSetSuccess()) {
8494
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8495
        if (lastComparison != 0) {
8496
          return lastComparison;
8497
        }
684 chandransh 8498
      }
3430 rajveer 8499
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
684 chandransh 8500
      if (lastComparison != 0) {
8501
        return lastComparison;
8502
      }
3430 rajveer 8503
      if (isSetEx()) {
8504
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
8505
        if (lastComparison != 0) {
8506
          return lastComparison;
8507
        }
684 chandransh 8508
      }
8509
      return 0;
8510
    }
8511
 
3430 rajveer 8512
    public _Fields fieldForId(int fieldId) {
8513
      return _Fields.findByThriftId(fieldId);
8514
    }
8515
 
8516
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8517
      org.apache.thrift.protocol.TField field;
132 ashish 8518
      iprot.readStructBegin();
8519
      while (true)
8520
      {
8521
        field = iprot.readFieldBegin();
3430 rajveer 8522
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
132 ashish 8523
          break;
8524
        }
3430 rajveer 8525
        switch (field.id) {
8526
          case 0: // SUCCESS
8527
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8528
              {
8529
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
8530
                this.success = new ArrayList<Transaction>(_list12.size);
8531
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
132 ashish 8532
                {
3430 rajveer 8533
                  Transaction _elem14; // required
8534
                  _elem14 = new Transaction();
8535
                  _elem14.read(iprot);
8536
                  this.success.add(_elem14);
132 ashish 8537
                }
3430 rajveer 8538
                iprot.readListEnd();
132 ashish 8539
              }
3430 rajveer 8540
            } else { 
8541
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8542
            }
8543
            break;
8544
          case 1: // EX
8545
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8546
              this.ex = new TransactionServiceException();
8547
              this.ex.read(iprot);
8548
            } else { 
8549
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8550
            }
8551
            break;
8552
          default:
8553
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
132 ashish 8554
        }
3430 rajveer 8555
        iprot.readFieldEnd();
132 ashish 8556
      }
8557
      iprot.readStructEnd();
8558
      validate();
8559
    }
8560
 
3430 rajveer 8561
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
132 ashish 8562
      oprot.writeStructBegin(STRUCT_DESC);
8563
 
8564
      if (this.isSetSuccess()) {
8565
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8566
        {
3430 rajveer 8567
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
684 chandransh 8568
          for (Transaction _iter15 : this.success)
132 ashish 8569
          {
684 chandransh 8570
            _iter15.write(oprot);
132 ashish 8571
          }
8572
          oprot.writeListEnd();
8573
        }
8574
        oprot.writeFieldEnd();
8575
      } else if (this.isSetEx()) {
8576
        oprot.writeFieldBegin(EX_FIELD_DESC);
8577
        this.ex.write(oprot);
8578
        oprot.writeFieldEnd();
8579
      }
8580
      oprot.writeFieldStop();
8581
      oprot.writeStructEnd();
8582
    }
8583
 
8584
    @Override
8585
    public String toString() {
8586
      StringBuilder sb = new StringBuilder("getTransactionsForShoppingCartId_result(");
8587
      boolean first = true;
8588
 
8589
      sb.append("success:");
8590
      if (this.success == null) {
8591
        sb.append("null");
8592
      } else {
8593
        sb.append(this.success);
8594
      }
8595
      first = false;
8596
      if (!first) sb.append(", ");
8597
      sb.append("ex:");
8598
      if (this.ex == null) {
8599
        sb.append("null");
8600
      } else {
8601
        sb.append(this.ex);
8602
      }
8603
      first = false;
8604
      sb.append(")");
8605
      return sb.toString();
8606
    }
8607
 
3430 rajveer 8608
    public void validate() throws org.apache.thrift.TException {
132 ashish 8609
      // check for required fields
8610
    }
8611
 
3430 rajveer 8612
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8613
      try {
8614
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8615
      } catch (org.apache.thrift.TException te) {
8616
        throw new java.io.IOException(te);
8617
      }
8618
    }
8619
 
8620
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8621
      try {
8622
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8623
      } catch (org.apache.thrift.TException te) {
8624
        throw new java.io.IOException(te);
8625
      }
8626
    }
8627
 
132 ashish 8628
  }
8629
 
3430 rajveer 8630
  public static class getTransactionStatus_args implements org.apache.thrift.TBase<getTransactionStatus_args, getTransactionStatus_args._Fields>, java.io.Serializable, Cloneable   {
8631
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionStatus_args");
68 ashish 8632
 
3430 rajveer 8633
    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 8634
 
3430 rajveer 8635
    private long transactionId; // required
68 ashish 8636
 
8637
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8638
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 8639
      TRANSACTION_ID((short)1, "transactionId");
8640
 
8641
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8642
 
8643
      static {
8644
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8645
          byName.put(field.getFieldName(), field);
8646
        }
8647
      }
8648
 
8649
      /**
8650
       * Find the _Fields constant that matches fieldId, or null if its not found.
8651
       */
8652
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8653
        switch(fieldId) {
8654
          case 1: // TRANSACTION_ID
8655
            return TRANSACTION_ID;
8656
          default:
8657
            return null;
8658
        }
68 ashish 8659
      }
8660
 
8661
      /**
8662
       * Find the _Fields constant that matches fieldId, throwing an exception
8663
       * if it is not found.
8664
       */
8665
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8666
        _Fields fields = findByThriftId(fieldId);
8667
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8668
        return fields;
8669
      }
8670
 
8671
      /**
8672
       * Find the _Fields constant that matches name, or null if its not found.
8673
       */
8674
      public static _Fields findByName(String name) {
8675
        return byName.get(name);
8676
      }
8677
 
8678
      private final short _thriftId;
8679
      private final String _fieldName;
8680
 
8681
      _Fields(short thriftId, String fieldName) {
8682
        _thriftId = thriftId;
8683
        _fieldName = fieldName;
8684
      }
8685
 
8686
      public short getThriftFieldId() {
8687
        return _thriftId;
8688
      }
8689
 
8690
      public String getFieldName() {
8691
        return _fieldName;
8692
      }
8693
    }
8694
 
8695
    // isset id assignments
8696
    private static final int __TRANSACTIONID_ISSET_ID = 0;
8697
    private BitSet __isset_bit_vector = new BitSet(1);
8698
 
3430 rajveer 8699
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 8700
    static {
3430 rajveer 8701
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8702
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8703
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8704
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8705
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionStatus_args.class, metaDataMap);
68 ashish 8706
    }
8707
 
8708
    public getTransactionStatus_args() {
8709
    }
8710
 
8711
    public getTransactionStatus_args(
8712
      long transactionId)
8713
    {
8714
      this();
8715
      this.transactionId = transactionId;
8716
      setTransactionIdIsSet(true);
8717
    }
8718
 
8719
    /**
8720
     * Performs a deep copy on <i>other</i>.
8721
     */
8722
    public getTransactionStatus_args(getTransactionStatus_args other) {
8723
      __isset_bit_vector.clear();
8724
      __isset_bit_vector.or(other.__isset_bit_vector);
8725
      this.transactionId = other.transactionId;
8726
    }
8727
 
8728
    public getTransactionStatus_args deepCopy() {
8729
      return new getTransactionStatus_args(this);
8730
    }
8731
 
3430 rajveer 8732
    @Override
8733
    public void clear() {
8734
      setTransactionIdIsSet(false);
8735
      this.transactionId = 0;
68 ashish 8736
    }
8737
 
8738
    public long getTransactionId() {
8739
      return this.transactionId;
8740
    }
8741
 
3430 rajveer 8742
    public void setTransactionId(long transactionId) {
68 ashish 8743
      this.transactionId = transactionId;
8744
      setTransactionIdIsSet(true);
8745
    }
8746
 
8747
    public void unsetTransactionId() {
8748
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
8749
    }
8750
 
3430 rajveer 8751
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
68 ashish 8752
    public boolean isSetTransactionId() {
8753
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
8754
    }
8755
 
8756
    public void setTransactionIdIsSet(boolean value) {
8757
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
8758
    }
8759
 
8760
    public void setFieldValue(_Fields field, Object value) {
8761
      switch (field) {
8762
      case TRANSACTION_ID:
8763
        if (value == null) {
8764
          unsetTransactionId();
8765
        } else {
8766
          setTransactionId((Long)value);
8767
        }
8768
        break;
8769
 
8770
      }
8771
    }
8772
 
8773
    public Object getFieldValue(_Fields field) {
8774
      switch (field) {
8775
      case TRANSACTION_ID:
3430 rajveer 8776
        return Long.valueOf(getTransactionId());
68 ashish 8777
 
8778
      }
8779
      throw new IllegalStateException();
8780
    }
8781
 
3430 rajveer 8782
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8783
    public boolean isSet(_Fields field) {
8784
      if (field == null) {
8785
        throw new IllegalArgumentException();
8786
      }
68 ashish 8787
 
8788
      switch (field) {
8789
      case TRANSACTION_ID:
8790
        return isSetTransactionId();
8791
      }
8792
      throw new IllegalStateException();
8793
    }
8794
 
8795
    @Override
8796
    public boolean equals(Object that) {
8797
      if (that == null)
8798
        return false;
8799
      if (that instanceof getTransactionStatus_args)
8800
        return this.equals((getTransactionStatus_args)that);
8801
      return false;
8802
    }
8803
 
8804
    public boolean equals(getTransactionStatus_args that) {
8805
      if (that == null)
8806
        return false;
8807
 
8808
      boolean this_present_transactionId = true;
8809
      boolean that_present_transactionId = true;
8810
      if (this_present_transactionId || that_present_transactionId) {
8811
        if (!(this_present_transactionId && that_present_transactionId))
8812
          return false;
8813
        if (this.transactionId != that.transactionId)
8814
          return false;
8815
      }
8816
 
8817
      return true;
8818
    }
8819
 
8820
    @Override
8821
    public int hashCode() {
8822
      return 0;
8823
    }
8824
 
8825
    public int compareTo(getTransactionStatus_args other) {
8826
      if (!getClass().equals(other.getClass())) {
8827
        return getClass().getName().compareTo(other.getClass().getName());
8828
      }
8829
 
8830
      int lastComparison = 0;
8831
      getTransactionStatus_args typedOther = (getTransactionStatus_args)other;
8832
 
3430 rajveer 8833
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
68 ashish 8834
      if (lastComparison != 0) {
8835
        return lastComparison;
8836
      }
3430 rajveer 8837
      if (isSetTransactionId()) {
8838
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
8839
        if (lastComparison != 0) {
8840
          return lastComparison;
8841
        }
68 ashish 8842
      }
8843
      return 0;
8844
    }
8845
 
3430 rajveer 8846
    public _Fields fieldForId(int fieldId) {
8847
      return _Fields.findByThriftId(fieldId);
8848
    }
8849
 
8850
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8851
      org.apache.thrift.protocol.TField field;
68 ashish 8852
      iprot.readStructBegin();
8853
      while (true)
8854
      {
8855
        field = iprot.readFieldBegin();
3430 rajveer 8856
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 8857
          break;
8858
        }
3430 rajveer 8859
        switch (field.id) {
8860
          case 1: // TRANSACTION_ID
8861
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8862
              this.transactionId = iprot.readI64();
8863
              setTransactionIdIsSet(true);
8864
            } else { 
8865
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8866
            }
8867
            break;
8868
          default:
8869
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 8870
        }
3430 rajveer 8871
        iprot.readFieldEnd();
68 ashish 8872
      }
8873
      iprot.readStructEnd();
8874
      validate();
8875
    }
8876
 
3430 rajveer 8877
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 8878
      validate();
8879
 
8880
      oprot.writeStructBegin(STRUCT_DESC);
8881
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
8882
      oprot.writeI64(this.transactionId);
8883
      oprot.writeFieldEnd();
8884
      oprot.writeFieldStop();
8885
      oprot.writeStructEnd();
8886
    }
8887
 
8888
    @Override
8889
    public String toString() {
8890
      StringBuilder sb = new StringBuilder("getTransactionStatus_args(");
8891
      boolean first = true;
8892
 
8893
      sb.append("transactionId:");
8894
      sb.append(this.transactionId);
8895
      first = false;
8896
      sb.append(")");
8897
      return sb.toString();
8898
    }
8899
 
3430 rajveer 8900
    public void validate() throws org.apache.thrift.TException {
68 ashish 8901
      // check for required fields
8902
    }
8903
 
3430 rajveer 8904
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8905
      try {
8906
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8907
      } catch (org.apache.thrift.TException te) {
8908
        throw new java.io.IOException(te);
8909
      }
8910
    }
8911
 
8912
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8913
      try {
8914
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8915
        __isset_bit_vector = new BitSet(1);
8916
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8917
      } catch (org.apache.thrift.TException te) {
8918
        throw new java.io.IOException(te);
8919
      }
8920
    }
8921
 
68 ashish 8922
  }
8923
 
3430 rajveer 8924
  public static class getTransactionStatus_result implements org.apache.thrift.TBase<getTransactionStatus_result, getTransactionStatus_result._Fields>, java.io.Serializable, Cloneable   {
8925
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionStatus_result");
68 ashish 8926
 
3430 rajveer 8927
    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);
8928
    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 8929
 
3430 rajveer 8930
    private TransactionStatus success; // required
8931
    private TransactionServiceException ex; // required
68 ashish 8932
 
8933
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8934
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 8935
      /**
8936
       * 
8937
       * @see TransactionStatus
8938
       */
8939
      SUCCESS((short)0, "success"),
8940
      EX((short)1, "ex");
8941
 
8942
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8943
 
8944
      static {
8945
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8946
          byName.put(field.getFieldName(), field);
8947
        }
8948
      }
8949
 
8950
      /**
8951
       * Find the _Fields constant that matches fieldId, or null if its not found.
8952
       */
8953
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8954
        switch(fieldId) {
8955
          case 0: // SUCCESS
8956
            return SUCCESS;
8957
          case 1: // EX
8958
            return EX;
8959
          default:
8960
            return null;
8961
        }
68 ashish 8962
      }
8963
 
8964
      /**
8965
       * Find the _Fields constant that matches fieldId, throwing an exception
8966
       * if it is not found.
8967
       */
8968
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8969
        _Fields fields = findByThriftId(fieldId);
8970
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8971
        return fields;
8972
      }
8973
 
8974
      /**
8975
       * Find the _Fields constant that matches name, or null if its not found.
8976
       */
8977
      public static _Fields findByName(String name) {
8978
        return byName.get(name);
8979
      }
8980
 
8981
      private final short _thriftId;
8982
      private final String _fieldName;
8983
 
8984
      _Fields(short thriftId, String fieldName) {
8985
        _thriftId = thriftId;
8986
        _fieldName = fieldName;
8987
      }
8988
 
8989
      public short getThriftFieldId() {
8990
        return _thriftId;
8991
      }
8992
 
8993
      public String getFieldName() {
8994
        return _fieldName;
8995
      }
8996
    }
8997
 
8998
    // isset id assignments
8999
 
3430 rajveer 9000
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 9001
    static {
3430 rajveer 9002
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9003
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9004
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
9005
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9006
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9007
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9008
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionStatus_result.class, metaDataMap);
68 ashish 9009
    }
9010
 
9011
    public getTransactionStatus_result() {
9012
    }
9013
 
9014
    public getTransactionStatus_result(
9015
      TransactionStatus success,
9016
      TransactionServiceException ex)
9017
    {
9018
      this();
9019
      this.success = success;
9020
      this.ex = ex;
9021
    }
9022
 
9023
    /**
9024
     * Performs a deep copy on <i>other</i>.
9025
     */
9026
    public getTransactionStatus_result(getTransactionStatus_result other) {
9027
      if (other.isSetSuccess()) {
9028
        this.success = other.success;
9029
      }
9030
      if (other.isSetEx()) {
9031
        this.ex = new TransactionServiceException(other.ex);
9032
      }
9033
    }
9034
 
9035
    public getTransactionStatus_result deepCopy() {
9036
      return new getTransactionStatus_result(this);
9037
    }
9038
 
3430 rajveer 9039
    @Override
9040
    public void clear() {
9041
      this.success = null;
9042
      this.ex = null;
68 ashish 9043
    }
9044
 
9045
    /**
9046
     * 
9047
     * @see TransactionStatus
9048
     */
9049
    public TransactionStatus getSuccess() {
9050
      return this.success;
9051
    }
9052
 
9053
    /**
9054
     * 
9055
     * @see TransactionStatus
9056
     */
3430 rajveer 9057
    public void setSuccess(TransactionStatus success) {
68 ashish 9058
      this.success = success;
9059
    }
9060
 
9061
    public void unsetSuccess() {
9062
      this.success = null;
9063
    }
9064
 
3430 rajveer 9065
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 9066
    public boolean isSetSuccess() {
9067
      return this.success != null;
9068
    }
9069
 
9070
    public void setSuccessIsSet(boolean value) {
9071
      if (!value) {
9072
        this.success = null;
9073
      }
9074
    }
9075
 
9076
    public TransactionServiceException getEx() {
9077
      return this.ex;
9078
    }
9079
 
3430 rajveer 9080
    public void setEx(TransactionServiceException ex) {
68 ashish 9081
      this.ex = ex;
9082
    }
9083
 
9084
    public void unsetEx() {
9085
      this.ex = null;
9086
    }
9087
 
3430 rajveer 9088
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 9089
    public boolean isSetEx() {
9090
      return this.ex != null;
9091
    }
9092
 
9093
    public void setExIsSet(boolean value) {
9094
      if (!value) {
9095
        this.ex = null;
9096
      }
9097
    }
9098
 
9099
    public void setFieldValue(_Fields field, Object value) {
9100
      switch (field) {
9101
      case SUCCESS:
9102
        if (value == null) {
9103
          unsetSuccess();
9104
        } else {
9105
          setSuccess((TransactionStatus)value);
9106
        }
9107
        break;
9108
 
9109
      case EX:
9110
        if (value == null) {
9111
          unsetEx();
9112
        } else {
9113
          setEx((TransactionServiceException)value);
9114
        }
9115
        break;
9116
 
9117
      }
9118
    }
9119
 
9120
    public Object getFieldValue(_Fields field) {
9121
      switch (field) {
9122
      case SUCCESS:
9123
        return getSuccess();
9124
 
9125
      case EX:
9126
        return getEx();
9127
 
9128
      }
9129
      throw new IllegalStateException();
9130
    }
9131
 
3430 rajveer 9132
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9133
    public boolean isSet(_Fields field) {
9134
      if (field == null) {
9135
        throw new IllegalArgumentException();
9136
      }
68 ashish 9137
 
9138
      switch (field) {
9139
      case SUCCESS:
9140
        return isSetSuccess();
9141
      case EX:
9142
        return isSetEx();
9143
      }
9144
      throw new IllegalStateException();
9145
    }
9146
 
9147
    @Override
9148
    public boolean equals(Object that) {
9149
      if (that == null)
9150
        return false;
9151
      if (that instanceof getTransactionStatus_result)
9152
        return this.equals((getTransactionStatus_result)that);
9153
      return false;
9154
    }
9155
 
9156
    public boolean equals(getTransactionStatus_result that) {
9157
      if (that == null)
9158
        return false;
9159
 
9160
      boolean this_present_success = true && this.isSetSuccess();
9161
      boolean that_present_success = true && that.isSetSuccess();
9162
      if (this_present_success || that_present_success) {
9163
        if (!(this_present_success && that_present_success))
9164
          return false;
9165
        if (!this.success.equals(that.success))
9166
          return false;
9167
      }
9168
 
9169
      boolean this_present_ex = true && this.isSetEx();
9170
      boolean that_present_ex = true && that.isSetEx();
9171
      if (this_present_ex || that_present_ex) {
9172
        if (!(this_present_ex && that_present_ex))
9173
          return false;
9174
        if (!this.ex.equals(that.ex))
9175
          return false;
9176
      }
9177
 
9178
      return true;
9179
    }
9180
 
9181
    @Override
9182
    public int hashCode() {
9183
      return 0;
9184
    }
9185
 
9186
    public int compareTo(getTransactionStatus_result other) {
9187
      if (!getClass().equals(other.getClass())) {
9188
        return getClass().getName().compareTo(other.getClass().getName());
9189
      }
9190
 
9191
      int lastComparison = 0;
9192
      getTransactionStatus_result typedOther = (getTransactionStatus_result)other;
9193
 
3430 rajveer 9194
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 9195
      if (lastComparison != 0) {
9196
        return lastComparison;
9197
      }
3430 rajveer 9198
      if (isSetSuccess()) {
9199
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9200
        if (lastComparison != 0) {
9201
          return lastComparison;
9202
        }
68 ashish 9203
      }
3430 rajveer 9204
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 9205
      if (lastComparison != 0) {
9206
        return lastComparison;
9207
      }
3430 rajveer 9208
      if (isSetEx()) {
9209
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
9210
        if (lastComparison != 0) {
9211
          return lastComparison;
9212
        }
68 ashish 9213
      }
9214
      return 0;
9215
    }
9216
 
3430 rajveer 9217
    public _Fields fieldForId(int fieldId) {
9218
      return _Fields.findByThriftId(fieldId);
9219
    }
9220
 
9221
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9222
      org.apache.thrift.protocol.TField field;
68 ashish 9223
      iprot.readStructBegin();
9224
      while (true)
9225
      {
9226
        field = iprot.readFieldBegin();
3430 rajveer 9227
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 9228
          break;
9229
        }
3430 rajveer 9230
        switch (field.id) {
9231
          case 0: // SUCCESS
9232
            if (field.type == org.apache.thrift.protocol.TType.I32) {
9233
              this.success = TransactionStatus.findByValue(iprot.readI32());
9234
            } else { 
9235
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9236
            }
9237
            break;
9238
          case 1: // EX
9239
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9240
              this.ex = new TransactionServiceException();
9241
              this.ex.read(iprot);
9242
            } else { 
9243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9244
            }
9245
            break;
9246
          default:
9247
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 9248
        }
3430 rajveer 9249
        iprot.readFieldEnd();
68 ashish 9250
      }
9251
      iprot.readStructEnd();
9252
      validate();
9253
    }
9254
 
3430 rajveer 9255
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 9256
      oprot.writeStructBegin(STRUCT_DESC);
9257
 
9258
      if (this.isSetSuccess()) {
9259
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9260
        oprot.writeI32(this.success.getValue());
9261
        oprot.writeFieldEnd();
9262
      } else if (this.isSetEx()) {
9263
        oprot.writeFieldBegin(EX_FIELD_DESC);
9264
        this.ex.write(oprot);
9265
        oprot.writeFieldEnd();
9266
      }
9267
      oprot.writeFieldStop();
9268
      oprot.writeStructEnd();
9269
    }
9270
 
9271
    @Override
9272
    public String toString() {
9273
      StringBuilder sb = new StringBuilder("getTransactionStatus_result(");
9274
      boolean first = true;
9275
 
9276
      sb.append("success:");
9277
      if (this.success == null) {
9278
        sb.append("null");
9279
      } else {
9280
        sb.append(this.success);
9281
      }
9282
      first = false;
9283
      if (!first) sb.append(", ");
9284
      sb.append("ex:");
9285
      if (this.ex == null) {
9286
        sb.append("null");
9287
      } else {
9288
        sb.append(this.ex);
9289
      }
9290
      first = false;
9291
      sb.append(")");
9292
      return sb.toString();
9293
    }
9294
 
3430 rajveer 9295
    public void validate() throws org.apache.thrift.TException {
68 ashish 9296
      // check for required fields
9297
    }
9298
 
3430 rajveer 9299
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9300
      try {
9301
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9302
      } catch (org.apache.thrift.TException te) {
9303
        throw new java.io.IOException(te);
9304
      }
9305
    }
9306
 
9307
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9308
      try {
9309
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9310
      } catch (org.apache.thrift.TException te) {
9311
        throw new java.io.IOException(te);
9312
      }
9313
    }
9314
 
68 ashish 9315
  }
9316
 
3430 rajveer 9317
  public static class changeTransactionStatus_args implements org.apache.thrift.TBase<changeTransactionStatus_args, changeTransactionStatus_args._Fields>, java.io.Serializable, Cloneable   {
9318
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeTransactionStatus_args");
68 ashish 9319
 
3430 rajveer 9320
    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);
9321
    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);
9322
    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 9323
 
3430 rajveer 9324
    private long transactionId; // required
9325
    private TransactionStatus status; // required
9326
    private String description; // required
68 ashish 9327
 
9328
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9329
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 9330
      TRANSACTION_ID((short)1, "transactionId"),
9331
      /**
9332
       * 
9333
       * @see TransactionStatus
9334
       */
9335
      STATUS((short)2, "status"),
9336
      DESCRIPTION((short)3, "description");
9337
 
9338
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9339
 
9340
      static {
9341
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9342
          byName.put(field.getFieldName(), field);
9343
        }
9344
      }
9345
 
9346
      /**
9347
       * Find the _Fields constant that matches fieldId, or null if its not found.
9348
       */
9349
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9350
        switch(fieldId) {
9351
          case 1: // TRANSACTION_ID
9352
            return TRANSACTION_ID;
9353
          case 2: // STATUS
9354
            return STATUS;
9355
          case 3: // DESCRIPTION
9356
            return DESCRIPTION;
9357
          default:
9358
            return null;
9359
        }
68 ashish 9360
      }
9361
 
9362
      /**
9363
       * Find the _Fields constant that matches fieldId, throwing an exception
9364
       * if it is not found.
9365
       */
9366
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9367
        _Fields fields = findByThriftId(fieldId);
9368
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9369
        return fields;
9370
      }
9371
 
9372
      /**
9373
       * Find the _Fields constant that matches name, or null if its not found.
9374
       */
9375
      public static _Fields findByName(String name) {
9376
        return byName.get(name);
9377
      }
9378
 
9379
      private final short _thriftId;
9380
      private final String _fieldName;
9381
 
9382
      _Fields(short thriftId, String fieldName) {
9383
        _thriftId = thriftId;
9384
        _fieldName = fieldName;
9385
      }
9386
 
9387
      public short getThriftFieldId() {
9388
        return _thriftId;
9389
      }
9390
 
9391
      public String getFieldName() {
9392
        return _fieldName;
9393
      }
9394
    }
9395
 
9396
    // isset id assignments
9397
    private static final int __TRANSACTIONID_ISSET_ID = 0;
9398
    private BitSet __isset_bit_vector = new BitSet(1);
9399
 
3430 rajveer 9400
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 9401
    static {
3430 rajveer 9402
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9403
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9404
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9405
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9406
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
9407
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9408
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9409
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9410
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeTransactionStatus_args.class, metaDataMap);
68 ashish 9411
    }
9412
 
9413
    public changeTransactionStatus_args() {
9414
    }
9415
 
9416
    public changeTransactionStatus_args(
9417
      long transactionId,
9418
      TransactionStatus status,
9419
      String description)
9420
    {
9421
      this();
9422
      this.transactionId = transactionId;
9423
      setTransactionIdIsSet(true);
9424
      this.status = status;
9425
      this.description = description;
9426
    }
9427
 
9428
    /**
9429
     * Performs a deep copy on <i>other</i>.
9430
     */
9431
    public changeTransactionStatus_args(changeTransactionStatus_args other) {
9432
      __isset_bit_vector.clear();
9433
      __isset_bit_vector.or(other.__isset_bit_vector);
9434
      this.transactionId = other.transactionId;
9435
      if (other.isSetStatus()) {
9436
        this.status = other.status;
9437
      }
9438
      if (other.isSetDescription()) {
9439
        this.description = other.description;
9440
      }
9441
    }
9442
 
9443
    public changeTransactionStatus_args deepCopy() {
9444
      return new changeTransactionStatus_args(this);
9445
    }
9446
 
3430 rajveer 9447
    @Override
9448
    public void clear() {
9449
      setTransactionIdIsSet(false);
9450
      this.transactionId = 0;
9451
      this.status = null;
9452
      this.description = null;
68 ashish 9453
    }
9454
 
9455
    public long getTransactionId() {
9456
      return this.transactionId;
9457
    }
9458
 
3430 rajveer 9459
    public void setTransactionId(long transactionId) {
68 ashish 9460
      this.transactionId = transactionId;
9461
      setTransactionIdIsSet(true);
9462
    }
9463
 
9464
    public void unsetTransactionId() {
9465
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
9466
    }
9467
 
3430 rajveer 9468
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
68 ashish 9469
    public boolean isSetTransactionId() {
9470
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
9471
    }
9472
 
9473
    public void setTransactionIdIsSet(boolean value) {
9474
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
9475
    }
9476
 
9477
    /**
9478
     * 
9479
     * @see TransactionStatus
9480
     */
9481
    public TransactionStatus getStatus() {
9482
      return this.status;
9483
    }
9484
 
9485
    /**
9486
     * 
9487
     * @see TransactionStatus
9488
     */
3430 rajveer 9489
    public void setStatus(TransactionStatus status) {
68 ashish 9490
      this.status = status;
9491
    }
9492
 
9493
    public void unsetStatus() {
9494
      this.status = null;
9495
    }
9496
 
3430 rajveer 9497
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
68 ashish 9498
    public boolean isSetStatus() {
9499
      return this.status != null;
9500
    }
9501
 
9502
    public void setStatusIsSet(boolean value) {
9503
      if (!value) {
9504
        this.status = null;
9505
      }
9506
    }
9507
 
9508
    public String getDescription() {
9509
      return this.description;
9510
    }
9511
 
3430 rajveer 9512
    public void setDescription(String description) {
68 ashish 9513
      this.description = description;
9514
    }
9515
 
9516
    public void unsetDescription() {
9517
      this.description = null;
9518
    }
9519
 
3430 rajveer 9520
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
68 ashish 9521
    public boolean isSetDescription() {
9522
      return this.description != null;
9523
    }
9524
 
9525
    public void setDescriptionIsSet(boolean value) {
9526
      if (!value) {
9527
        this.description = null;
9528
      }
9529
    }
9530
 
9531
    public void setFieldValue(_Fields field, Object value) {
9532
      switch (field) {
9533
      case TRANSACTION_ID:
9534
        if (value == null) {
9535
          unsetTransactionId();
9536
        } else {
9537
          setTransactionId((Long)value);
9538
        }
9539
        break;
9540
 
9541
      case STATUS:
9542
        if (value == null) {
9543
          unsetStatus();
9544
        } else {
9545
          setStatus((TransactionStatus)value);
9546
        }
9547
        break;
9548
 
9549
      case DESCRIPTION:
9550
        if (value == null) {
9551
          unsetDescription();
9552
        } else {
9553
          setDescription((String)value);
9554
        }
9555
        break;
9556
 
9557
      }
9558
    }
9559
 
9560
    public Object getFieldValue(_Fields field) {
9561
      switch (field) {
9562
      case TRANSACTION_ID:
3430 rajveer 9563
        return Long.valueOf(getTransactionId());
68 ashish 9564
 
9565
      case STATUS:
9566
        return getStatus();
9567
 
9568
      case DESCRIPTION:
9569
        return getDescription();
9570
 
9571
      }
9572
      throw new IllegalStateException();
9573
    }
9574
 
3430 rajveer 9575
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9576
    public boolean isSet(_Fields field) {
9577
      if (field == null) {
9578
        throw new IllegalArgumentException();
9579
      }
68 ashish 9580
 
9581
      switch (field) {
9582
      case TRANSACTION_ID:
9583
        return isSetTransactionId();
9584
      case STATUS:
9585
        return isSetStatus();
9586
      case DESCRIPTION:
9587
        return isSetDescription();
9588
      }
9589
      throw new IllegalStateException();
9590
    }
9591
 
9592
    @Override
9593
    public boolean equals(Object that) {
9594
      if (that == null)
9595
        return false;
9596
      if (that instanceof changeTransactionStatus_args)
9597
        return this.equals((changeTransactionStatus_args)that);
9598
      return false;
9599
    }
9600
 
9601
    public boolean equals(changeTransactionStatus_args that) {
9602
      if (that == null)
9603
        return false;
9604
 
9605
      boolean this_present_transactionId = true;
9606
      boolean that_present_transactionId = true;
9607
      if (this_present_transactionId || that_present_transactionId) {
9608
        if (!(this_present_transactionId && that_present_transactionId))
9609
          return false;
9610
        if (this.transactionId != that.transactionId)
9611
          return false;
9612
      }
9613
 
9614
      boolean this_present_status = true && this.isSetStatus();
9615
      boolean that_present_status = true && that.isSetStatus();
9616
      if (this_present_status || that_present_status) {
9617
        if (!(this_present_status && that_present_status))
9618
          return false;
9619
        if (!this.status.equals(that.status))
9620
          return false;
9621
      }
9622
 
9623
      boolean this_present_description = true && this.isSetDescription();
9624
      boolean that_present_description = true && that.isSetDescription();
9625
      if (this_present_description || that_present_description) {
9626
        if (!(this_present_description && that_present_description))
9627
          return false;
9628
        if (!this.description.equals(that.description))
9629
          return false;
9630
      }
9631
 
9632
      return true;
9633
    }
9634
 
9635
    @Override
9636
    public int hashCode() {
9637
      return 0;
9638
    }
9639
 
9640
    public int compareTo(changeTransactionStatus_args other) {
9641
      if (!getClass().equals(other.getClass())) {
9642
        return getClass().getName().compareTo(other.getClass().getName());
9643
      }
9644
 
9645
      int lastComparison = 0;
9646
      changeTransactionStatus_args typedOther = (changeTransactionStatus_args)other;
9647
 
3430 rajveer 9648
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
68 ashish 9649
      if (lastComparison != 0) {
9650
        return lastComparison;
9651
      }
3430 rajveer 9652
      if (isSetTransactionId()) {
9653
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
9654
        if (lastComparison != 0) {
9655
          return lastComparison;
9656
        }
68 ashish 9657
      }
3430 rajveer 9658
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
68 ashish 9659
      if (lastComparison != 0) {
9660
        return lastComparison;
9661
      }
3430 rajveer 9662
      if (isSetStatus()) {
9663
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
9664
        if (lastComparison != 0) {
9665
          return lastComparison;
9666
        }
68 ashish 9667
      }
3430 rajveer 9668
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
68 ashish 9669
      if (lastComparison != 0) {
9670
        return lastComparison;
9671
      }
3430 rajveer 9672
      if (isSetDescription()) {
9673
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
9674
        if (lastComparison != 0) {
9675
          return lastComparison;
9676
        }
68 ashish 9677
      }
9678
      return 0;
9679
    }
9680
 
3430 rajveer 9681
    public _Fields fieldForId(int fieldId) {
9682
      return _Fields.findByThriftId(fieldId);
9683
    }
9684
 
9685
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9686
      org.apache.thrift.protocol.TField field;
68 ashish 9687
      iprot.readStructBegin();
9688
      while (true)
9689
      {
9690
        field = iprot.readFieldBegin();
3430 rajveer 9691
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 9692
          break;
9693
        }
3430 rajveer 9694
        switch (field.id) {
9695
          case 1: // TRANSACTION_ID
9696
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9697
              this.transactionId = iprot.readI64();
9698
              setTransactionIdIsSet(true);
9699
            } else { 
9700
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9701
            }
9702
            break;
9703
          case 2: // STATUS
9704
            if (field.type == org.apache.thrift.protocol.TType.I32) {
9705
              this.status = TransactionStatus.findByValue(iprot.readI32());
9706
            } else { 
9707
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9708
            }
9709
            break;
9710
          case 3: // DESCRIPTION
9711
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9712
              this.description = iprot.readString();
9713
            } else { 
9714
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9715
            }
9716
            break;
9717
          default:
9718
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 9719
        }
3430 rajveer 9720
        iprot.readFieldEnd();
68 ashish 9721
      }
9722
      iprot.readStructEnd();
9723
      validate();
9724
    }
9725
 
3430 rajveer 9726
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 9727
      validate();
9728
 
9729
      oprot.writeStructBegin(STRUCT_DESC);
9730
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
9731
      oprot.writeI64(this.transactionId);
9732
      oprot.writeFieldEnd();
9733
      if (this.status != null) {
9734
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
9735
        oprot.writeI32(this.status.getValue());
9736
        oprot.writeFieldEnd();
9737
      }
9738
      if (this.description != null) {
9739
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
9740
        oprot.writeString(this.description);
9741
        oprot.writeFieldEnd();
9742
      }
9743
      oprot.writeFieldStop();
9744
      oprot.writeStructEnd();
9745
    }
9746
 
9747
    @Override
9748
    public String toString() {
9749
      StringBuilder sb = new StringBuilder("changeTransactionStatus_args(");
9750
      boolean first = true;
9751
 
9752
      sb.append("transactionId:");
9753
      sb.append(this.transactionId);
9754
      first = false;
9755
      if (!first) sb.append(", ");
9756
      sb.append("status:");
9757
      if (this.status == null) {
9758
        sb.append("null");
9759
      } else {
9760
        sb.append(this.status);
9761
      }
9762
      first = false;
9763
      if (!first) sb.append(", ");
9764
      sb.append("description:");
9765
      if (this.description == null) {
9766
        sb.append("null");
9767
      } else {
9768
        sb.append(this.description);
9769
      }
9770
      first = false;
9771
      sb.append(")");
9772
      return sb.toString();
9773
    }
9774
 
3430 rajveer 9775
    public void validate() throws org.apache.thrift.TException {
68 ashish 9776
      // check for required fields
9777
    }
9778
 
3430 rajveer 9779
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9780
      try {
9781
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9782
      } catch (org.apache.thrift.TException te) {
9783
        throw new java.io.IOException(te);
9784
      }
9785
    }
9786
 
9787
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9788
      try {
9789
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9790
        __isset_bit_vector = new BitSet(1);
9791
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9792
      } catch (org.apache.thrift.TException te) {
9793
        throw new java.io.IOException(te);
9794
      }
9795
    }
9796
 
68 ashish 9797
  }
9798
 
3430 rajveer 9799
  public static class changeTransactionStatus_result implements org.apache.thrift.TBase<changeTransactionStatus_result, changeTransactionStatus_result._Fields>, java.io.Serializable, Cloneable   {
9800
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeTransactionStatus_result");
68 ashish 9801
 
3430 rajveer 9802
    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);
9803
    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 9804
 
3430 rajveer 9805
    private boolean success; // required
9806
    private TransactionServiceException ex; // required
68 ashish 9807
 
9808
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9809
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 9810
      SUCCESS((short)0, "success"),
9811
      EX((short)1, "ex");
9812
 
9813
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9814
 
9815
      static {
9816
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9817
          byName.put(field.getFieldName(), field);
9818
        }
9819
      }
9820
 
9821
      /**
9822
       * Find the _Fields constant that matches fieldId, or null if its not found.
9823
       */
9824
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9825
        switch(fieldId) {
9826
          case 0: // SUCCESS
9827
            return SUCCESS;
9828
          case 1: // EX
9829
            return EX;
9830
          default:
9831
            return null;
9832
        }
68 ashish 9833
      }
9834
 
9835
      /**
9836
       * Find the _Fields constant that matches fieldId, throwing an exception
9837
       * if it is not found.
9838
       */
9839
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9840
        _Fields fields = findByThriftId(fieldId);
9841
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9842
        return fields;
9843
      }
9844
 
9845
      /**
9846
       * Find the _Fields constant that matches name, or null if its not found.
9847
       */
9848
      public static _Fields findByName(String name) {
9849
        return byName.get(name);
9850
      }
9851
 
9852
      private final short _thriftId;
9853
      private final String _fieldName;
9854
 
9855
      _Fields(short thriftId, String fieldName) {
9856
        _thriftId = thriftId;
9857
        _fieldName = fieldName;
9858
      }
9859
 
9860
      public short getThriftFieldId() {
9861
        return _thriftId;
9862
      }
9863
 
9864
      public String getFieldName() {
9865
        return _fieldName;
9866
      }
9867
    }
9868
 
9869
    // isset id assignments
9870
    private static final int __SUCCESS_ISSET_ID = 0;
9871
    private BitSet __isset_bit_vector = new BitSet(1);
9872
 
3430 rajveer 9873
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 9874
    static {
3430 rajveer 9875
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9876
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9877
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9878
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9879
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9880
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9881
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeTransactionStatus_result.class, metaDataMap);
68 ashish 9882
    }
9883
 
9884
    public changeTransactionStatus_result() {
9885
    }
9886
 
9887
    public changeTransactionStatus_result(
9888
      boolean success,
9889
      TransactionServiceException ex)
9890
    {
9891
      this();
9892
      this.success = success;
9893
      setSuccessIsSet(true);
9894
      this.ex = ex;
9895
    }
9896
 
9897
    /**
9898
     * Performs a deep copy on <i>other</i>.
9899
     */
9900
    public changeTransactionStatus_result(changeTransactionStatus_result other) {
9901
      __isset_bit_vector.clear();
9902
      __isset_bit_vector.or(other.__isset_bit_vector);
9903
      this.success = other.success;
9904
      if (other.isSetEx()) {
9905
        this.ex = new TransactionServiceException(other.ex);
9906
      }
9907
    }
9908
 
9909
    public changeTransactionStatus_result deepCopy() {
9910
      return new changeTransactionStatus_result(this);
9911
    }
9912
 
3430 rajveer 9913
    @Override
9914
    public void clear() {
9915
      setSuccessIsSet(false);
9916
      this.success = false;
9917
      this.ex = null;
68 ashish 9918
    }
9919
 
9920
    public boolean isSuccess() {
9921
      return this.success;
9922
    }
9923
 
3430 rajveer 9924
    public void setSuccess(boolean success) {
68 ashish 9925
      this.success = success;
9926
      setSuccessIsSet(true);
9927
    }
9928
 
9929
    public void unsetSuccess() {
9930
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9931
    }
9932
 
3430 rajveer 9933
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 9934
    public boolean isSetSuccess() {
9935
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9936
    }
9937
 
9938
    public void setSuccessIsSet(boolean value) {
9939
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9940
    }
9941
 
9942
    public TransactionServiceException getEx() {
9943
      return this.ex;
9944
    }
9945
 
3430 rajveer 9946
    public void setEx(TransactionServiceException ex) {
68 ashish 9947
      this.ex = ex;
9948
    }
9949
 
9950
    public void unsetEx() {
9951
      this.ex = null;
9952
    }
9953
 
3430 rajveer 9954
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 9955
    public boolean isSetEx() {
9956
      return this.ex != null;
9957
    }
9958
 
9959
    public void setExIsSet(boolean value) {
9960
      if (!value) {
9961
        this.ex = null;
9962
      }
9963
    }
9964
 
9965
    public void setFieldValue(_Fields field, Object value) {
9966
      switch (field) {
9967
      case SUCCESS:
9968
        if (value == null) {
9969
          unsetSuccess();
9970
        } else {
9971
          setSuccess((Boolean)value);
9972
        }
9973
        break;
9974
 
9975
      case EX:
9976
        if (value == null) {
9977
          unsetEx();
9978
        } else {
9979
          setEx((TransactionServiceException)value);
9980
        }
9981
        break;
9982
 
9983
      }
9984
    }
9985
 
9986
    public Object getFieldValue(_Fields field) {
9987
      switch (field) {
9988
      case SUCCESS:
3430 rajveer 9989
        return Boolean.valueOf(isSuccess());
68 ashish 9990
 
9991
      case EX:
9992
        return getEx();
9993
 
9994
      }
9995
      throw new IllegalStateException();
9996
    }
9997
 
3430 rajveer 9998
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9999
    public boolean isSet(_Fields field) {
10000
      if (field == null) {
10001
        throw new IllegalArgumentException();
10002
      }
68 ashish 10003
 
10004
      switch (field) {
10005
      case SUCCESS:
10006
        return isSetSuccess();
10007
      case EX:
10008
        return isSetEx();
10009
      }
10010
      throw new IllegalStateException();
10011
    }
10012
 
10013
    @Override
10014
    public boolean equals(Object that) {
10015
      if (that == null)
10016
        return false;
10017
      if (that instanceof changeTransactionStatus_result)
10018
        return this.equals((changeTransactionStatus_result)that);
10019
      return false;
10020
    }
10021
 
10022
    public boolean equals(changeTransactionStatus_result that) {
10023
      if (that == null)
10024
        return false;
10025
 
10026
      boolean this_present_success = true;
10027
      boolean that_present_success = true;
10028
      if (this_present_success || that_present_success) {
10029
        if (!(this_present_success && that_present_success))
10030
          return false;
10031
        if (this.success != that.success)
10032
          return false;
10033
      }
10034
 
10035
      boolean this_present_ex = true && this.isSetEx();
10036
      boolean that_present_ex = true && that.isSetEx();
10037
      if (this_present_ex || that_present_ex) {
10038
        if (!(this_present_ex && that_present_ex))
10039
          return false;
10040
        if (!this.ex.equals(that.ex))
10041
          return false;
10042
      }
10043
 
10044
      return true;
10045
    }
10046
 
10047
    @Override
10048
    public int hashCode() {
10049
      return 0;
10050
    }
10051
 
10052
    public int compareTo(changeTransactionStatus_result other) {
10053
      if (!getClass().equals(other.getClass())) {
10054
        return getClass().getName().compareTo(other.getClass().getName());
10055
      }
10056
 
10057
      int lastComparison = 0;
10058
      changeTransactionStatus_result typedOther = (changeTransactionStatus_result)other;
10059
 
3430 rajveer 10060
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 10061
      if (lastComparison != 0) {
10062
        return lastComparison;
10063
      }
3430 rajveer 10064
      if (isSetSuccess()) {
10065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10066
        if (lastComparison != 0) {
10067
          return lastComparison;
10068
        }
68 ashish 10069
      }
3430 rajveer 10070
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 10071
      if (lastComparison != 0) {
10072
        return lastComparison;
10073
      }
3430 rajveer 10074
      if (isSetEx()) {
10075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
10076
        if (lastComparison != 0) {
10077
          return lastComparison;
10078
        }
68 ashish 10079
      }
10080
      return 0;
10081
    }
10082
 
3430 rajveer 10083
    public _Fields fieldForId(int fieldId) {
10084
      return _Fields.findByThriftId(fieldId);
10085
    }
10086
 
10087
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10088
      org.apache.thrift.protocol.TField field;
68 ashish 10089
      iprot.readStructBegin();
10090
      while (true)
10091
      {
10092
        field = iprot.readFieldBegin();
3430 rajveer 10093
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 10094
          break;
10095
        }
3430 rajveer 10096
        switch (field.id) {
10097
          case 0: // SUCCESS
10098
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10099
              this.success = iprot.readBool();
10100
              setSuccessIsSet(true);
10101
            } else { 
10102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10103
            }
10104
            break;
10105
          case 1: // EX
10106
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10107
              this.ex = new TransactionServiceException();
10108
              this.ex.read(iprot);
10109
            } else { 
10110
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10111
            }
10112
            break;
10113
          default:
10114
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 10115
        }
3430 rajveer 10116
        iprot.readFieldEnd();
68 ashish 10117
      }
10118
      iprot.readStructEnd();
10119
      validate();
10120
    }
10121
 
3430 rajveer 10122
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 10123
      oprot.writeStructBegin(STRUCT_DESC);
10124
 
10125
      if (this.isSetSuccess()) {
10126
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10127
        oprot.writeBool(this.success);
10128
        oprot.writeFieldEnd();
10129
      } else if (this.isSetEx()) {
10130
        oprot.writeFieldBegin(EX_FIELD_DESC);
10131
        this.ex.write(oprot);
10132
        oprot.writeFieldEnd();
10133
      }
10134
      oprot.writeFieldStop();
10135
      oprot.writeStructEnd();
10136
    }
10137
 
10138
    @Override
10139
    public String toString() {
10140
      StringBuilder sb = new StringBuilder("changeTransactionStatus_result(");
10141
      boolean first = true;
10142
 
10143
      sb.append("success:");
10144
      sb.append(this.success);
10145
      first = false;
10146
      if (!first) sb.append(", ");
10147
      sb.append("ex:");
10148
      if (this.ex == null) {
10149
        sb.append("null");
10150
      } else {
10151
        sb.append(this.ex);
10152
      }
10153
      first = false;
10154
      sb.append(")");
10155
      return sb.toString();
10156
    }
10157
 
3430 rajveer 10158
    public void validate() throws org.apache.thrift.TException {
68 ashish 10159
      // check for required fields
10160
    }
10161
 
3430 rajveer 10162
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10163
      try {
10164
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10165
      } catch (org.apache.thrift.TException te) {
10166
        throw new java.io.IOException(te);
10167
      }
10168
    }
10169
 
10170
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10171
      try {
10172
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10173
      } catch (org.apache.thrift.TException te) {
10174
        throw new java.io.IOException(te);
10175
      }
10176
    }
10177
 
68 ashish 10178
  }
10179
 
3430 rajveer 10180
  public static class enqueueTransactionInfoEmail_args implements org.apache.thrift.TBase<enqueueTransactionInfoEmail_args, enqueueTransactionInfoEmail_args._Fields>, java.io.Serializable, Cloneable   {
10181
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enqueueTransactionInfoEmail_args");
1382 varun.gupt 10182
 
3430 rajveer 10183
    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 10184
 
3430 rajveer 10185
    private long transactionId; // required
1382 varun.gupt 10186
 
10187
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10188
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 10189
      TRANSACTION_ID((short)1, "transactionId");
10190
 
10191
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10192
 
10193
      static {
10194
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10195
          byName.put(field.getFieldName(), field);
10196
        }
10197
      }
10198
 
10199
      /**
10200
       * Find the _Fields constant that matches fieldId, or null if its not found.
10201
       */
10202
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10203
        switch(fieldId) {
10204
          case 1: // TRANSACTION_ID
10205
            return TRANSACTION_ID;
10206
          default:
10207
            return null;
10208
        }
1382 varun.gupt 10209
      }
10210
 
10211
      /**
10212
       * Find the _Fields constant that matches fieldId, throwing an exception
10213
       * if it is not found.
10214
       */
10215
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10216
        _Fields fields = findByThriftId(fieldId);
10217
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10218
        return fields;
10219
      }
10220
 
10221
      /**
10222
       * Find the _Fields constant that matches name, or null if its not found.
10223
       */
10224
      public static _Fields findByName(String name) {
10225
        return byName.get(name);
10226
      }
10227
 
10228
      private final short _thriftId;
10229
      private final String _fieldName;
10230
 
10231
      _Fields(short thriftId, String fieldName) {
10232
        _thriftId = thriftId;
10233
        _fieldName = fieldName;
10234
      }
10235
 
10236
      public short getThriftFieldId() {
10237
        return _thriftId;
10238
      }
10239
 
10240
      public String getFieldName() {
10241
        return _fieldName;
10242
      }
10243
    }
10244
 
10245
    // isset id assignments
10246
    private static final int __TRANSACTIONID_ISSET_ID = 0;
10247
    private BitSet __isset_bit_vector = new BitSet(1);
10248
 
3430 rajveer 10249
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 10250
    static {
3430 rajveer 10251
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10252
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10253
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10254
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10255
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enqueueTransactionInfoEmail_args.class, metaDataMap);
1382 varun.gupt 10256
    }
10257
 
1398 varun.gupt 10258
    public enqueueTransactionInfoEmail_args() {
1382 varun.gupt 10259
    }
10260
 
1398 varun.gupt 10261
    public enqueueTransactionInfoEmail_args(
1382 varun.gupt 10262
      long transactionId)
10263
    {
10264
      this();
10265
      this.transactionId = transactionId;
10266
      setTransactionIdIsSet(true);
10267
    }
10268
 
10269
    /**
10270
     * Performs a deep copy on <i>other</i>.
10271
     */
1398 varun.gupt 10272
    public enqueueTransactionInfoEmail_args(enqueueTransactionInfoEmail_args other) {
1382 varun.gupt 10273
      __isset_bit_vector.clear();
10274
      __isset_bit_vector.or(other.__isset_bit_vector);
10275
      this.transactionId = other.transactionId;
10276
    }
10277
 
1398 varun.gupt 10278
    public enqueueTransactionInfoEmail_args deepCopy() {
10279
      return new enqueueTransactionInfoEmail_args(this);
1382 varun.gupt 10280
    }
10281
 
3430 rajveer 10282
    @Override
10283
    public void clear() {
10284
      setTransactionIdIsSet(false);
10285
      this.transactionId = 0;
1382 varun.gupt 10286
    }
10287
 
10288
    public long getTransactionId() {
10289
      return this.transactionId;
10290
    }
10291
 
3430 rajveer 10292
    public void setTransactionId(long transactionId) {
1382 varun.gupt 10293
      this.transactionId = transactionId;
10294
      setTransactionIdIsSet(true);
10295
    }
10296
 
10297
    public void unsetTransactionId() {
10298
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
10299
    }
10300
 
3430 rajveer 10301
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
1382 varun.gupt 10302
    public boolean isSetTransactionId() {
10303
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
10304
    }
10305
 
10306
    public void setTransactionIdIsSet(boolean value) {
10307
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
10308
    }
10309
 
10310
    public void setFieldValue(_Fields field, Object value) {
10311
      switch (field) {
10312
      case TRANSACTION_ID:
10313
        if (value == null) {
10314
          unsetTransactionId();
10315
        } else {
10316
          setTransactionId((Long)value);
10317
        }
10318
        break;
10319
 
10320
      }
10321
    }
10322
 
10323
    public Object getFieldValue(_Fields field) {
10324
      switch (field) {
10325
      case TRANSACTION_ID:
3430 rajveer 10326
        return Long.valueOf(getTransactionId());
1382 varun.gupt 10327
 
10328
      }
10329
      throw new IllegalStateException();
10330
    }
10331
 
3430 rajveer 10332
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10333
    public boolean isSet(_Fields field) {
10334
      if (field == null) {
10335
        throw new IllegalArgumentException();
10336
      }
1382 varun.gupt 10337
 
10338
      switch (field) {
10339
      case TRANSACTION_ID:
10340
        return isSetTransactionId();
10341
      }
10342
      throw new IllegalStateException();
10343
    }
10344
 
10345
    @Override
10346
    public boolean equals(Object that) {
10347
      if (that == null)
10348
        return false;
1398 varun.gupt 10349
      if (that instanceof enqueueTransactionInfoEmail_args)
10350
        return this.equals((enqueueTransactionInfoEmail_args)that);
1382 varun.gupt 10351
      return false;
10352
    }
10353
 
1398 varun.gupt 10354
    public boolean equals(enqueueTransactionInfoEmail_args that) {
1382 varun.gupt 10355
      if (that == null)
10356
        return false;
10357
 
10358
      boolean this_present_transactionId = true;
10359
      boolean that_present_transactionId = true;
10360
      if (this_present_transactionId || that_present_transactionId) {
10361
        if (!(this_present_transactionId && that_present_transactionId))
10362
          return false;
10363
        if (this.transactionId != that.transactionId)
10364
          return false;
10365
      }
10366
 
10367
      return true;
10368
    }
10369
 
10370
    @Override
10371
    public int hashCode() {
10372
      return 0;
10373
    }
10374
 
1398 varun.gupt 10375
    public int compareTo(enqueueTransactionInfoEmail_args other) {
1382 varun.gupt 10376
      if (!getClass().equals(other.getClass())) {
10377
        return getClass().getName().compareTo(other.getClass().getName());
10378
      }
10379
 
10380
      int lastComparison = 0;
1398 varun.gupt 10381
      enqueueTransactionInfoEmail_args typedOther = (enqueueTransactionInfoEmail_args)other;
1382 varun.gupt 10382
 
3430 rajveer 10383
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
1382 varun.gupt 10384
      if (lastComparison != 0) {
10385
        return lastComparison;
10386
      }
3430 rajveer 10387
      if (isSetTransactionId()) {
10388
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
10389
        if (lastComparison != 0) {
10390
          return lastComparison;
10391
        }
1382 varun.gupt 10392
      }
10393
      return 0;
10394
    }
10395
 
3430 rajveer 10396
    public _Fields fieldForId(int fieldId) {
10397
      return _Fields.findByThriftId(fieldId);
10398
    }
10399
 
10400
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10401
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 10402
      iprot.readStructBegin();
10403
      while (true)
10404
      {
10405
        field = iprot.readFieldBegin();
3430 rajveer 10406
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 10407
          break;
10408
        }
3430 rajveer 10409
        switch (field.id) {
10410
          case 1: // TRANSACTION_ID
10411
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10412
              this.transactionId = iprot.readI64();
10413
              setTransactionIdIsSet(true);
10414
            } else { 
10415
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10416
            }
10417
            break;
10418
          default:
10419
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 10420
        }
3430 rajveer 10421
        iprot.readFieldEnd();
1382 varun.gupt 10422
      }
10423
      iprot.readStructEnd();
10424
      validate();
10425
    }
10426
 
3430 rajveer 10427
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 10428
      validate();
10429
 
10430
      oprot.writeStructBegin(STRUCT_DESC);
10431
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
10432
      oprot.writeI64(this.transactionId);
10433
      oprot.writeFieldEnd();
10434
      oprot.writeFieldStop();
10435
      oprot.writeStructEnd();
10436
    }
10437
 
10438
    @Override
10439
    public String toString() {
1398 varun.gupt 10440
      StringBuilder sb = new StringBuilder("enqueueTransactionInfoEmail_args(");
1382 varun.gupt 10441
      boolean first = true;
10442
 
10443
      sb.append("transactionId:");
10444
      sb.append(this.transactionId);
10445
      first = false;
10446
      sb.append(")");
10447
      return sb.toString();
10448
    }
10449
 
3430 rajveer 10450
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 10451
      // check for required fields
10452
    }
10453
 
3430 rajveer 10454
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10455
      try {
10456
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10457
      } catch (org.apache.thrift.TException te) {
10458
        throw new java.io.IOException(te);
10459
      }
10460
    }
10461
 
10462
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10463
      try {
10464
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10465
        __isset_bit_vector = new BitSet(1);
10466
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10467
      } catch (org.apache.thrift.TException te) {
10468
        throw new java.io.IOException(te);
10469
      }
10470
    }
10471
 
1382 varun.gupt 10472
  }
10473
 
3430 rajveer 10474
  public static class enqueueTransactionInfoEmail_result implements org.apache.thrift.TBase<enqueueTransactionInfoEmail_result, enqueueTransactionInfoEmail_result._Fields>, java.io.Serializable, Cloneable   {
10475
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enqueueTransactionInfoEmail_result");
1382 varun.gupt 10476
 
3430 rajveer 10477
    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);
10478
    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 10479
 
3430 rajveer 10480
    private boolean success; // required
10481
    private TransactionServiceException ex; // required
1382 varun.gupt 10482
 
10483
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10484
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 10485
      SUCCESS((short)0, "success"),
10486
      EX((short)1, "ex");
10487
 
10488
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10489
 
10490
      static {
10491
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10492
          byName.put(field.getFieldName(), field);
10493
        }
10494
      }
10495
 
10496
      /**
10497
       * Find the _Fields constant that matches fieldId, or null if its not found.
10498
       */
10499
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10500
        switch(fieldId) {
10501
          case 0: // SUCCESS
10502
            return SUCCESS;
10503
          case 1: // EX
10504
            return EX;
10505
          default:
10506
            return null;
10507
        }
1382 varun.gupt 10508
      }
10509
 
10510
      /**
10511
       * Find the _Fields constant that matches fieldId, throwing an exception
10512
       * if it is not found.
10513
       */
10514
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10515
        _Fields fields = findByThriftId(fieldId);
10516
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10517
        return fields;
10518
      }
10519
 
10520
      /**
10521
       * Find the _Fields constant that matches name, or null if its not found.
10522
       */
10523
      public static _Fields findByName(String name) {
10524
        return byName.get(name);
10525
      }
10526
 
10527
      private final short _thriftId;
10528
      private final String _fieldName;
10529
 
10530
      _Fields(short thriftId, String fieldName) {
10531
        _thriftId = thriftId;
10532
        _fieldName = fieldName;
10533
      }
10534
 
10535
      public short getThriftFieldId() {
10536
        return _thriftId;
10537
      }
10538
 
10539
      public String getFieldName() {
10540
        return _fieldName;
10541
      }
10542
    }
10543
 
10544
    // isset id assignments
10545
    private static final int __SUCCESS_ISSET_ID = 0;
10546
    private BitSet __isset_bit_vector = new BitSet(1);
10547
 
3430 rajveer 10548
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 10549
    static {
3430 rajveer 10550
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10551
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10552
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10553
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10554
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10555
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10556
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enqueueTransactionInfoEmail_result.class, metaDataMap);
1382 varun.gupt 10557
    }
10558
 
1398 varun.gupt 10559
    public enqueueTransactionInfoEmail_result() {
1382 varun.gupt 10560
    }
10561
 
1398 varun.gupt 10562
    public enqueueTransactionInfoEmail_result(
1382 varun.gupt 10563
      boolean success,
10564
      TransactionServiceException ex)
10565
    {
10566
      this();
10567
      this.success = success;
10568
      setSuccessIsSet(true);
10569
      this.ex = ex;
10570
    }
10571
 
10572
    /**
10573
     * Performs a deep copy on <i>other</i>.
10574
     */
1398 varun.gupt 10575
    public enqueueTransactionInfoEmail_result(enqueueTransactionInfoEmail_result other) {
1382 varun.gupt 10576
      __isset_bit_vector.clear();
10577
      __isset_bit_vector.or(other.__isset_bit_vector);
10578
      this.success = other.success;
10579
      if (other.isSetEx()) {
10580
        this.ex = new TransactionServiceException(other.ex);
10581
      }
10582
    }
10583
 
1398 varun.gupt 10584
    public enqueueTransactionInfoEmail_result deepCopy() {
10585
      return new enqueueTransactionInfoEmail_result(this);
1382 varun.gupt 10586
    }
10587
 
3430 rajveer 10588
    @Override
10589
    public void clear() {
10590
      setSuccessIsSet(false);
10591
      this.success = false;
10592
      this.ex = null;
1382 varun.gupt 10593
    }
10594
 
10595
    public boolean isSuccess() {
10596
      return this.success;
10597
    }
10598
 
3430 rajveer 10599
    public void setSuccess(boolean success) {
1382 varun.gupt 10600
      this.success = success;
10601
      setSuccessIsSet(true);
10602
    }
10603
 
10604
    public void unsetSuccess() {
10605
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10606
    }
10607
 
3430 rajveer 10608
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1382 varun.gupt 10609
    public boolean isSetSuccess() {
10610
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10611
    }
10612
 
10613
    public void setSuccessIsSet(boolean value) {
10614
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10615
    }
10616
 
10617
    public TransactionServiceException getEx() {
10618
      return this.ex;
10619
    }
10620
 
3430 rajveer 10621
    public void setEx(TransactionServiceException ex) {
1382 varun.gupt 10622
      this.ex = ex;
10623
    }
10624
 
10625
    public void unsetEx() {
10626
      this.ex = null;
10627
    }
10628
 
3430 rajveer 10629
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1382 varun.gupt 10630
    public boolean isSetEx() {
10631
      return this.ex != null;
10632
    }
10633
 
10634
    public void setExIsSet(boolean value) {
10635
      if (!value) {
10636
        this.ex = null;
10637
      }
10638
    }
10639
 
10640
    public void setFieldValue(_Fields field, Object value) {
10641
      switch (field) {
10642
      case SUCCESS:
10643
        if (value == null) {
10644
          unsetSuccess();
10645
        } else {
10646
          setSuccess((Boolean)value);
10647
        }
10648
        break;
10649
 
10650
      case EX:
10651
        if (value == null) {
10652
          unsetEx();
10653
        } else {
10654
          setEx((TransactionServiceException)value);
10655
        }
10656
        break;
10657
 
10658
      }
10659
    }
10660
 
10661
    public Object getFieldValue(_Fields field) {
10662
      switch (field) {
10663
      case SUCCESS:
3430 rajveer 10664
        return Boolean.valueOf(isSuccess());
1382 varun.gupt 10665
 
10666
      case EX:
10667
        return getEx();
10668
 
10669
      }
10670
      throw new IllegalStateException();
10671
    }
10672
 
3430 rajveer 10673
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10674
    public boolean isSet(_Fields field) {
10675
      if (field == null) {
10676
        throw new IllegalArgumentException();
10677
      }
1382 varun.gupt 10678
 
10679
      switch (field) {
10680
      case SUCCESS:
10681
        return isSetSuccess();
10682
      case EX:
10683
        return isSetEx();
10684
      }
10685
      throw new IllegalStateException();
10686
    }
10687
 
10688
    @Override
10689
    public boolean equals(Object that) {
10690
      if (that == null)
10691
        return false;
1398 varun.gupt 10692
      if (that instanceof enqueueTransactionInfoEmail_result)
10693
        return this.equals((enqueueTransactionInfoEmail_result)that);
1382 varun.gupt 10694
      return false;
10695
    }
10696
 
1398 varun.gupt 10697
    public boolean equals(enqueueTransactionInfoEmail_result that) {
1382 varun.gupt 10698
      if (that == null)
10699
        return false;
10700
 
10701
      boolean this_present_success = true;
10702
      boolean that_present_success = true;
10703
      if (this_present_success || that_present_success) {
10704
        if (!(this_present_success && that_present_success))
10705
          return false;
10706
        if (this.success != that.success)
10707
          return false;
10708
      }
10709
 
10710
      boolean this_present_ex = true && this.isSetEx();
10711
      boolean that_present_ex = true && that.isSetEx();
10712
      if (this_present_ex || that_present_ex) {
10713
        if (!(this_present_ex && that_present_ex))
10714
          return false;
10715
        if (!this.ex.equals(that.ex))
10716
          return false;
10717
      }
10718
 
10719
      return true;
10720
    }
10721
 
10722
    @Override
10723
    public int hashCode() {
10724
      return 0;
10725
    }
10726
 
1398 varun.gupt 10727
    public int compareTo(enqueueTransactionInfoEmail_result other) {
1382 varun.gupt 10728
      if (!getClass().equals(other.getClass())) {
10729
        return getClass().getName().compareTo(other.getClass().getName());
10730
      }
10731
 
10732
      int lastComparison = 0;
1398 varun.gupt 10733
      enqueueTransactionInfoEmail_result typedOther = (enqueueTransactionInfoEmail_result)other;
1382 varun.gupt 10734
 
3430 rajveer 10735
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1382 varun.gupt 10736
      if (lastComparison != 0) {
10737
        return lastComparison;
10738
      }
3430 rajveer 10739
      if (isSetSuccess()) {
10740
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10741
        if (lastComparison != 0) {
10742
          return lastComparison;
10743
        }
1382 varun.gupt 10744
      }
3430 rajveer 10745
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1382 varun.gupt 10746
      if (lastComparison != 0) {
10747
        return lastComparison;
10748
      }
3430 rajveer 10749
      if (isSetEx()) {
10750
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
10751
        if (lastComparison != 0) {
10752
          return lastComparison;
10753
        }
1382 varun.gupt 10754
      }
10755
      return 0;
10756
    }
10757
 
3430 rajveer 10758
    public _Fields fieldForId(int fieldId) {
10759
      return _Fields.findByThriftId(fieldId);
10760
    }
10761
 
10762
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10763
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 10764
      iprot.readStructBegin();
10765
      while (true)
10766
      {
10767
        field = iprot.readFieldBegin();
3430 rajveer 10768
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 10769
          break;
10770
        }
3430 rajveer 10771
        switch (field.id) {
10772
          case 0: // SUCCESS
10773
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10774
              this.success = iprot.readBool();
10775
              setSuccessIsSet(true);
10776
            } else { 
10777
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10778
            }
10779
            break;
10780
          case 1: // EX
10781
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10782
              this.ex = new TransactionServiceException();
10783
              this.ex.read(iprot);
10784
            } else { 
10785
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10786
            }
10787
            break;
10788
          default:
10789
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 10790
        }
3430 rajveer 10791
        iprot.readFieldEnd();
1382 varun.gupt 10792
      }
10793
      iprot.readStructEnd();
10794
      validate();
10795
    }
10796
 
3430 rajveer 10797
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 10798
      oprot.writeStructBegin(STRUCT_DESC);
10799
 
10800
      if (this.isSetSuccess()) {
10801
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10802
        oprot.writeBool(this.success);
10803
        oprot.writeFieldEnd();
10804
      } else if (this.isSetEx()) {
10805
        oprot.writeFieldBegin(EX_FIELD_DESC);
10806
        this.ex.write(oprot);
10807
        oprot.writeFieldEnd();
10808
      }
10809
      oprot.writeFieldStop();
10810
      oprot.writeStructEnd();
10811
    }
10812
 
10813
    @Override
10814
    public String toString() {
1398 varun.gupt 10815
      StringBuilder sb = new StringBuilder("enqueueTransactionInfoEmail_result(");
1382 varun.gupt 10816
      boolean first = true;
10817
 
10818
      sb.append("success:");
10819
      sb.append(this.success);
10820
      first = false;
10821
      if (!first) sb.append(", ");
10822
      sb.append("ex:");
10823
      if (this.ex == null) {
10824
        sb.append("null");
10825
      } else {
10826
        sb.append(this.ex);
10827
      }
10828
      first = false;
10829
      sb.append(")");
10830
      return sb.toString();
10831
    }
10832
 
3430 rajveer 10833
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 10834
      // check for required fields
10835
    }
10836
 
3430 rajveer 10837
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10838
      try {
10839
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10840
      } catch (org.apache.thrift.TException te) {
10841
        throw new java.io.IOException(te);
10842
      }
10843
    }
10844
 
10845
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10846
      try {
10847
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10848
      } catch (org.apache.thrift.TException te) {
10849
        throw new java.io.IOException(te);
10850
      }
10851
    }
10852
 
1382 varun.gupt 10853
  }
10854
 
3430 rajveer 10855
  public static class getAllOrders_args implements org.apache.thrift.TBase<getAllOrders_args, getAllOrders_args._Fields>, java.io.Serializable, Cloneable   {
10856
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrders_args");
68 ashish 10857
 
3430 rajveer 10858
    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);
10859
    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);
10860
    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);
10861
    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 10862
 
3430 rajveer 10863
    private OrderStatus status; // required
10864
    private long from_date; // required
10865
    private long to_date; // required
10866
    private long warehouse_id; // required
68 ashish 10867
 
10868
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10869
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
483 rajveer 10870
      /**
10871
       * 
10872
       * @see OrderStatus
10873
       */
10874
      STATUS((short)1, "status"),
10875
      FROM_DATE((short)2, "from_date"),
10876
      TO_DATE((short)3, "to_date"),
10877
      WAREHOUSE_ID((short)4, "warehouse_id");
68 ashish 10878
 
10879
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10880
 
10881
      static {
10882
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10883
          byName.put(field.getFieldName(), field);
10884
        }
10885
      }
10886
 
10887
      /**
10888
       * Find the _Fields constant that matches fieldId, or null if its not found.
10889
       */
10890
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10891
        switch(fieldId) {
10892
          case 1: // STATUS
10893
            return STATUS;
10894
          case 2: // FROM_DATE
10895
            return FROM_DATE;
10896
          case 3: // TO_DATE
10897
            return TO_DATE;
10898
          case 4: // WAREHOUSE_ID
10899
            return WAREHOUSE_ID;
10900
          default:
10901
            return null;
10902
        }
68 ashish 10903
      }
10904
 
10905
      /**
10906
       * Find the _Fields constant that matches fieldId, throwing an exception
10907
       * if it is not found.
10908
       */
10909
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10910
        _Fields fields = findByThriftId(fieldId);
10911
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10912
        return fields;
10913
      }
10914
 
10915
      /**
10916
       * Find the _Fields constant that matches name, or null if its not found.
10917
       */
10918
      public static _Fields findByName(String name) {
10919
        return byName.get(name);
10920
      }
10921
 
10922
      private final short _thriftId;
10923
      private final String _fieldName;
10924
 
10925
      _Fields(short thriftId, String fieldName) {
10926
        _thriftId = thriftId;
10927
        _fieldName = fieldName;
10928
      }
10929
 
10930
      public short getThriftFieldId() {
10931
        return _thriftId;
10932
      }
10933
 
10934
      public String getFieldName() {
10935
        return _fieldName;
10936
      }
10937
    }
10938
 
10939
    // isset id assignments
483 rajveer 10940
    private static final int __FROM_DATE_ISSET_ID = 0;
10941
    private static final int __TO_DATE_ISSET_ID = 1;
10942
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
10943
    private BitSet __isset_bit_vector = new BitSet(3);
68 ashish 10944
 
3430 rajveer 10945
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 10946
    static {
3430 rajveer 10947
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10948
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10949
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
10950
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("from_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10951
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10952
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("to_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10953
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10954
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10955
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10956
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10957
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrders_args.class, metaDataMap);
68 ashish 10958
    }
10959
 
483 rajveer 10960
    public getAllOrders_args() {
68 ashish 10961
    }
10962
 
483 rajveer 10963
    public getAllOrders_args(
10964
      OrderStatus status,
10965
      long from_date,
10966
      long to_date,
10967
      long warehouse_id)
68 ashish 10968
    {
10969
      this();
483 rajveer 10970
      this.status = status;
10971
      this.from_date = from_date;
10972
      setFrom_dateIsSet(true);
10973
      this.to_date = to_date;
10974
      setTo_dateIsSet(true);
10975
      this.warehouse_id = warehouse_id;
10976
      setWarehouse_idIsSet(true);
68 ashish 10977
    }
10978
 
10979
    /**
10980
     * Performs a deep copy on <i>other</i>.
10981
     */
483 rajveer 10982
    public getAllOrders_args(getAllOrders_args other) {
68 ashish 10983
      __isset_bit_vector.clear();
10984
      __isset_bit_vector.or(other.__isset_bit_vector);
483 rajveer 10985
      if (other.isSetStatus()) {
10986
        this.status = other.status;
10987
      }
10988
      this.from_date = other.from_date;
10989
      this.to_date = other.to_date;
10990
      this.warehouse_id = other.warehouse_id;
68 ashish 10991
    }
10992
 
483 rajveer 10993
    public getAllOrders_args deepCopy() {
10994
      return new getAllOrders_args(this);
68 ashish 10995
    }
10996
 
3430 rajveer 10997
    @Override
10998
    public void clear() {
10999
      this.status = null;
11000
      setFrom_dateIsSet(false);
11001
      this.from_date = 0;
11002
      setTo_dateIsSet(false);
11003
      this.to_date = 0;
11004
      setWarehouse_idIsSet(false);
11005
      this.warehouse_id = 0;
68 ashish 11006
    }
11007
 
483 rajveer 11008
    /**
11009
     * 
11010
     * @see OrderStatus
11011
     */
11012
    public OrderStatus getStatus() {
11013
      return this.status;
68 ashish 11014
    }
11015
 
483 rajveer 11016
    /**
11017
     * 
11018
     * @see OrderStatus
11019
     */
3430 rajveer 11020
    public void setStatus(OrderStatus status) {
483 rajveer 11021
      this.status = status;
68 ashish 11022
    }
11023
 
483 rajveer 11024
    public void unsetStatus() {
11025
      this.status = null;
68 ashish 11026
    }
11027
 
3430 rajveer 11028
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
483 rajveer 11029
    public boolean isSetStatus() {
11030
      return this.status != null;
68 ashish 11031
    }
11032
 
483 rajveer 11033
    public void setStatusIsSet(boolean value) {
11034
      if (!value) {
11035
        this.status = null;
68 ashish 11036
      }
11037
    }
11038
 
483 rajveer 11039
    public long getFrom_date() {
11040
      return this.from_date;
68 ashish 11041
    }
11042
 
3430 rajveer 11043
    public void setFrom_date(long from_date) {
483 rajveer 11044
      this.from_date = from_date;
11045
      setFrom_dateIsSet(true);
68 ashish 11046
    }
11047
 
483 rajveer 11048
    public void unsetFrom_date() {
11049
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
68 ashish 11050
    }
11051
 
3430 rajveer 11052
    /** Returns true if field from_date is set (has been assigned a value) and false otherwise */
483 rajveer 11053
    public boolean isSetFrom_date() {
11054
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
68 ashish 11055
    }
11056
 
483 rajveer 11057
    public void setFrom_dateIsSet(boolean value) {
11058
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
68 ashish 11059
    }
11060
 
483 rajveer 11061
    public long getTo_date() {
11062
      return this.to_date;
68 ashish 11063
    }
11064
 
3430 rajveer 11065
    public void setTo_date(long to_date) {
483 rajveer 11066
      this.to_date = to_date;
11067
      setTo_dateIsSet(true);
68 ashish 11068
    }
11069
 
483 rajveer 11070
    public void unsetTo_date() {
11071
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
68 ashish 11072
    }
11073
 
3430 rajveer 11074
    /** Returns true if field to_date is set (has been assigned a value) and false otherwise */
483 rajveer 11075
    public boolean isSetTo_date() {
11076
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
68 ashish 11077
    }
11078
 
483 rajveer 11079
    public void setTo_dateIsSet(boolean value) {
11080
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
68 ashish 11081
    }
11082
 
483 rajveer 11083
    public long getWarehouse_id() {
11084
      return this.warehouse_id;
68 ashish 11085
    }
11086
 
3430 rajveer 11087
    public void setWarehouse_id(long warehouse_id) {
483 rajveer 11088
      this.warehouse_id = warehouse_id;
11089
      setWarehouse_idIsSet(true);
68 ashish 11090
    }
11091
 
483 rajveer 11092
    public void unsetWarehouse_id() {
11093
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
68 ashish 11094
    }
11095
 
3430 rajveer 11096
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
483 rajveer 11097
    public boolean isSetWarehouse_id() {
11098
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
68 ashish 11099
    }
11100
 
483 rajveer 11101
    public void setWarehouse_idIsSet(boolean value) {
11102
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
68 ashish 11103
    }
11104
 
11105
    public void setFieldValue(_Fields field, Object value) {
11106
      switch (field) {
483 rajveer 11107
      case STATUS:
68 ashish 11108
        if (value == null) {
483 rajveer 11109
          unsetStatus();
68 ashish 11110
        } else {
483 rajveer 11111
          setStatus((OrderStatus)value);
68 ashish 11112
        }
11113
        break;
11114
 
483 rajveer 11115
      case FROM_DATE:
68 ashish 11116
        if (value == null) {
483 rajveer 11117
          unsetFrom_date();
68 ashish 11118
        } else {
483 rajveer 11119
          setFrom_date((Long)value);
68 ashish 11120
        }
11121
        break;
11122
 
483 rajveer 11123
      case TO_DATE:
11124
        if (value == null) {
11125
          unsetTo_date();
11126
        } else {
11127
          setTo_date((Long)value);
11128
        }
11129
        break;
11130
 
11131
      case WAREHOUSE_ID:
11132
        if (value == null) {
11133
          unsetWarehouse_id();
11134
        } else {
11135
          setWarehouse_id((Long)value);
11136
        }
11137
        break;
11138
 
68 ashish 11139
      }
11140
    }
11141
 
11142
    public Object getFieldValue(_Fields field) {
11143
      switch (field) {
483 rajveer 11144
      case STATUS:
11145
        return getStatus();
68 ashish 11146
 
483 rajveer 11147
      case FROM_DATE:
3430 rajveer 11148
        return Long.valueOf(getFrom_date());
68 ashish 11149
 
483 rajveer 11150
      case TO_DATE:
3430 rajveer 11151
        return Long.valueOf(getTo_date());
483 rajveer 11152
 
11153
      case WAREHOUSE_ID:
3430 rajveer 11154
        return Long.valueOf(getWarehouse_id());
483 rajveer 11155
 
68 ashish 11156
      }
11157
      throw new IllegalStateException();
11158
    }
11159
 
3430 rajveer 11160
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11161
    public boolean isSet(_Fields field) {
11162
      if (field == null) {
11163
        throw new IllegalArgumentException();
11164
      }
68 ashish 11165
 
11166
      switch (field) {
483 rajveer 11167
      case STATUS:
11168
        return isSetStatus();
11169
      case FROM_DATE:
11170
        return isSetFrom_date();
11171
      case TO_DATE:
11172
        return isSetTo_date();
11173
      case WAREHOUSE_ID:
11174
        return isSetWarehouse_id();
68 ashish 11175
      }
11176
      throw new IllegalStateException();
11177
    }
11178
 
11179
    @Override
11180
    public boolean equals(Object that) {
11181
      if (that == null)
11182
        return false;
483 rajveer 11183
      if (that instanceof getAllOrders_args)
11184
        return this.equals((getAllOrders_args)that);
68 ashish 11185
      return false;
11186
    }
11187
 
483 rajveer 11188
    public boolean equals(getAllOrders_args that) {
68 ashish 11189
      if (that == null)
11190
        return false;
11191
 
483 rajveer 11192
      boolean this_present_status = true && this.isSetStatus();
11193
      boolean that_present_status = true && that.isSetStatus();
11194
      if (this_present_status || that_present_status) {
11195
        if (!(this_present_status && that_present_status))
68 ashish 11196
          return false;
483 rajveer 11197
        if (!this.status.equals(that.status))
68 ashish 11198
          return false;
11199
      }
11200
 
483 rajveer 11201
      boolean this_present_from_date = true;
11202
      boolean that_present_from_date = true;
11203
      if (this_present_from_date || that_present_from_date) {
11204
        if (!(this_present_from_date && that_present_from_date))
68 ashish 11205
          return false;
483 rajveer 11206
        if (this.from_date != that.from_date)
68 ashish 11207
          return false;
11208
      }
11209
 
483 rajveer 11210
      boolean this_present_to_date = true;
11211
      boolean that_present_to_date = true;
11212
      if (this_present_to_date || that_present_to_date) {
11213
        if (!(this_present_to_date && that_present_to_date))
11214
          return false;
11215
        if (this.to_date != that.to_date)
11216
          return false;
68 ashish 11217
      }
11218
 
483 rajveer 11219
      boolean this_present_warehouse_id = true;
11220
      boolean that_present_warehouse_id = true;
11221
      if (this_present_warehouse_id || that_present_warehouse_id) {
11222
        if (!(this_present_warehouse_id && that_present_warehouse_id))
68 ashish 11223
          return false;
483 rajveer 11224
        if (this.warehouse_id != that.warehouse_id)
68 ashish 11225
          return false;
11226
      }
11227
 
11228
      return true;
11229
    }
11230
 
11231
    @Override
11232
    public int hashCode() {
11233
      return 0;
11234
    }
11235
 
483 rajveer 11236
    public int compareTo(getAllOrders_args other) {
68 ashish 11237
      if (!getClass().equals(other.getClass())) {
11238
        return getClass().getName().compareTo(other.getClass().getName());
11239
      }
11240
 
11241
      int lastComparison = 0;
483 rajveer 11242
      getAllOrders_args typedOther = (getAllOrders_args)other;
68 ashish 11243
 
3430 rajveer 11244
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
68 ashish 11245
      if (lastComparison != 0) {
11246
        return lastComparison;
11247
      }
3430 rajveer 11248
      if (isSetStatus()) {
11249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
11250
        if (lastComparison != 0) {
11251
          return lastComparison;
11252
        }
68 ashish 11253
      }
3430 rajveer 11254
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(typedOther.isSetFrom_date());
483 rajveer 11255
      if (lastComparison != 0) {
11256
        return lastComparison;
11257
      }
3430 rajveer 11258
      if (isSetFrom_date()) {
11259
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_date, typedOther.from_date);
11260
        if (lastComparison != 0) {
11261
          return lastComparison;
11262
        }
483 rajveer 11263
      }
3430 rajveer 11264
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(typedOther.isSetTo_date());
483 rajveer 11265
      if (lastComparison != 0) {
11266
        return lastComparison;
11267
      }
3430 rajveer 11268
      if (isSetTo_date()) {
11269
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_date, typedOther.to_date);
11270
        if (lastComparison != 0) {
11271
          return lastComparison;
11272
        }
483 rajveer 11273
      }
3430 rajveer 11274
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
483 rajveer 11275
      if (lastComparison != 0) {
11276
        return lastComparison;
11277
      }
3430 rajveer 11278
      if (isSetWarehouse_id()) {
11279
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
11280
        if (lastComparison != 0) {
11281
          return lastComparison;
11282
        }
483 rajveer 11283
      }
68 ashish 11284
      return 0;
11285
    }
11286
 
3430 rajveer 11287
    public _Fields fieldForId(int fieldId) {
11288
      return _Fields.findByThriftId(fieldId);
11289
    }
11290
 
11291
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11292
      org.apache.thrift.protocol.TField field;
68 ashish 11293
      iprot.readStructBegin();
11294
      while (true)
11295
      {
11296
        field = iprot.readFieldBegin();
3430 rajveer 11297
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 11298
          break;
11299
        }
3430 rajveer 11300
        switch (field.id) {
11301
          case 1: // STATUS
11302
            if (field.type == org.apache.thrift.protocol.TType.I32) {
11303
              this.status = OrderStatus.findByValue(iprot.readI32());
11304
            } else { 
11305
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11306
            }
11307
            break;
11308
          case 2: // FROM_DATE
11309
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11310
              this.from_date = iprot.readI64();
11311
              setFrom_dateIsSet(true);
11312
            } else { 
11313
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11314
            }
11315
            break;
11316
          case 3: // TO_DATE
11317
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11318
              this.to_date = iprot.readI64();
11319
              setTo_dateIsSet(true);
11320
            } else { 
11321
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11322
            }
11323
            break;
11324
          case 4: // WAREHOUSE_ID
11325
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11326
              this.warehouse_id = iprot.readI64();
11327
              setWarehouse_idIsSet(true);
11328
            } else { 
11329
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11330
            }
11331
            break;
11332
          default:
11333
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 11334
        }
3430 rajveer 11335
        iprot.readFieldEnd();
68 ashish 11336
      }
11337
      iprot.readStructEnd();
11338
      validate();
11339
    }
11340
 
3430 rajveer 11341
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 11342
      validate();
11343
 
11344
      oprot.writeStructBegin(STRUCT_DESC);
483 rajveer 11345
      if (this.status != null) {
11346
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
11347
        oprot.writeI32(this.status.getValue());
11348
        oprot.writeFieldEnd();
11349
      }
11350
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
11351
      oprot.writeI64(this.from_date);
68 ashish 11352
      oprot.writeFieldEnd();
483 rajveer 11353
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
11354
      oprot.writeI64(this.to_date);
11355
      oprot.writeFieldEnd();
11356
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
11357
      oprot.writeI64(this.warehouse_id);
11358
      oprot.writeFieldEnd();
68 ashish 11359
      oprot.writeFieldStop();
11360
      oprot.writeStructEnd();
11361
    }
11362
 
11363
    @Override
11364
    public String toString() {
483 rajveer 11365
      StringBuilder sb = new StringBuilder("getAllOrders_args(");
68 ashish 11366
      boolean first = true;
11367
 
483 rajveer 11368
      sb.append("status:");
11369
      if (this.status == null) {
11370
        sb.append("null");
11371
      } else {
11372
        sb.append(this.status);
11373
      }
68 ashish 11374
      first = false;
483 rajveer 11375
      if (!first) sb.append(", ");
11376
      sb.append("from_date:");
11377
      sb.append(this.from_date);
11378
      first = false;
11379
      if (!first) sb.append(", ");
11380
      sb.append("to_date:");
11381
      sb.append(this.to_date);
11382
      first = false;
11383
      if (!first) sb.append(", ");
11384
      sb.append("warehouse_id:");
11385
      sb.append(this.warehouse_id);
11386
      first = false;
68 ashish 11387
      sb.append(")");
11388
      return sb.toString();
11389
    }
11390
 
3430 rajveer 11391
    public void validate() throws org.apache.thrift.TException {
68 ashish 11392
      // check for required fields
11393
    }
11394
 
3430 rajveer 11395
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11396
      try {
11397
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11398
      } catch (org.apache.thrift.TException te) {
11399
        throw new java.io.IOException(te);
11400
      }
11401
    }
11402
 
11403
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11404
      try {
11405
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11406
        __isset_bit_vector = new BitSet(1);
11407
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11408
      } catch (org.apache.thrift.TException te) {
11409
        throw new java.io.IOException(te);
11410
      }
11411
    }
11412
 
68 ashish 11413
  }
11414
 
3430 rajveer 11415
  public static class getAllOrders_result implements org.apache.thrift.TBase<getAllOrders_result, getAllOrders_result._Fields>, java.io.Serializable, Cloneable   {
11416
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrders_result");
68 ashish 11417
 
3430 rajveer 11418
    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);
11419
    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 11420
 
3430 rajveer 11421
    private List<Order> success; // required
11422
    private TransactionServiceException ex; // required
68 ashish 11423
 
11424
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11425
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 11426
      SUCCESS((short)0, "success"),
11427
      EX((short)1, "ex");
11428
 
11429
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11430
 
11431
      static {
11432
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11433
          byName.put(field.getFieldName(), field);
11434
        }
11435
      }
11436
 
11437
      /**
11438
       * Find the _Fields constant that matches fieldId, or null if its not found.
11439
       */
11440
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11441
        switch(fieldId) {
11442
          case 0: // SUCCESS
11443
            return SUCCESS;
11444
          case 1: // EX
11445
            return EX;
11446
          default:
11447
            return null;
11448
        }
68 ashish 11449
      }
11450
 
11451
      /**
11452
       * Find the _Fields constant that matches fieldId, throwing an exception
11453
       * if it is not found.
11454
       */
11455
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11456
        _Fields fields = findByThriftId(fieldId);
11457
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11458
        return fields;
11459
      }
11460
 
11461
      /**
11462
       * Find the _Fields constant that matches name, or null if its not found.
11463
       */
11464
      public static _Fields findByName(String name) {
11465
        return byName.get(name);
11466
      }
11467
 
11468
      private final short _thriftId;
11469
      private final String _fieldName;
11470
 
11471
      _Fields(short thriftId, String fieldName) {
11472
        _thriftId = thriftId;
11473
        _fieldName = fieldName;
11474
      }
11475
 
11476
      public short getThriftFieldId() {
11477
        return _thriftId;
11478
      }
11479
 
11480
      public String getFieldName() {
11481
        return _fieldName;
11482
      }
11483
    }
11484
 
11485
    // isset id assignments
11486
 
3430 rajveer 11487
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 11488
    static {
3430 rajveer 11489
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11490
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11491
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11492
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
11493
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11495
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11496
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrders_result.class, metaDataMap);
68 ashish 11497
    }
11498
 
483 rajveer 11499
    public getAllOrders_result() {
68 ashish 11500
    }
11501
 
483 rajveer 11502
    public getAllOrders_result(
11503
      List<Order> success,
68 ashish 11504
      TransactionServiceException ex)
11505
    {
11506
      this();
11507
      this.success = success;
11508
      this.ex = ex;
11509
    }
11510
 
11511
    /**
11512
     * Performs a deep copy on <i>other</i>.
11513
     */
483 rajveer 11514
    public getAllOrders_result(getAllOrders_result other) {
68 ashish 11515
      if (other.isSetSuccess()) {
483 rajveer 11516
        List<Order> __this__success = new ArrayList<Order>();
11517
        for (Order other_element : other.success) {
11518
          __this__success.add(new Order(other_element));
11519
        }
11520
        this.success = __this__success;
68 ashish 11521
      }
11522
      if (other.isSetEx()) {
11523
        this.ex = new TransactionServiceException(other.ex);
11524
      }
11525
    }
11526
 
483 rajveer 11527
    public getAllOrders_result deepCopy() {
11528
      return new getAllOrders_result(this);
68 ashish 11529
    }
11530
 
3430 rajveer 11531
    @Override
11532
    public void clear() {
11533
      this.success = null;
11534
      this.ex = null;
68 ashish 11535
    }
11536
 
483 rajveer 11537
    public int getSuccessSize() {
11538
      return (this.success == null) ? 0 : this.success.size();
11539
    }
11540
 
11541
    public java.util.Iterator<Order> getSuccessIterator() {
11542
      return (this.success == null) ? null : this.success.iterator();
11543
    }
11544
 
11545
    public void addToSuccess(Order elem) {
11546
      if (this.success == null) {
11547
        this.success = new ArrayList<Order>();
11548
      }
11549
      this.success.add(elem);
11550
    }
11551
 
11552
    public List<Order> getSuccess() {
68 ashish 11553
      return this.success;
11554
    }
11555
 
3430 rajveer 11556
    public void setSuccess(List<Order> success) {
68 ashish 11557
      this.success = success;
11558
    }
11559
 
11560
    public void unsetSuccess() {
11561
      this.success = null;
11562
    }
11563
 
3430 rajveer 11564
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 11565
    public boolean isSetSuccess() {
11566
      return this.success != null;
11567
    }
11568
 
11569
    public void setSuccessIsSet(boolean value) {
11570
      if (!value) {
11571
        this.success = null;
11572
      }
11573
    }
11574
 
11575
    public TransactionServiceException getEx() {
11576
      return this.ex;
11577
    }
11578
 
3430 rajveer 11579
    public void setEx(TransactionServiceException ex) {
68 ashish 11580
      this.ex = ex;
11581
    }
11582
 
11583
    public void unsetEx() {
11584
      this.ex = null;
11585
    }
11586
 
3430 rajveer 11587
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 11588
    public boolean isSetEx() {
11589
      return this.ex != null;
11590
    }
11591
 
11592
    public void setExIsSet(boolean value) {
11593
      if (!value) {
11594
        this.ex = null;
11595
      }
11596
    }
11597
 
11598
    public void setFieldValue(_Fields field, Object value) {
11599
      switch (field) {
11600
      case SUCCESS:
11601
        if (value == null) {
11602
          unsetSuccess();
11603
        } else {
483 rajveer 11604
          setSuccess((List<Order>)value);
68 ashish 11605
        }
11606
        break;
11607
 
11608
      case EX:
11609
        if (value == null) {
11610
          unsetEx();
11611
        } else {
11612
          setEx((TransactionServiceException)value);
11613
        }
11614
        break;
11615
 
11616
      }
11617
    }
11618
 
11619
    public Object getFieldValue(_Fields field) {
11620
      switch (field) {
11621
      case SUCCESS:
11622
        return getSuccess();
11623
 
11624
      case EX:
11625
        return getEx();
11626
 
11627
      }
11628
      throw new IllegalStateException();
11629
    }
11630
 
3430 rajveer 11631
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11632
    public boolean isSet(_Fields field) {
11633
      if (field == null) {
11634
        throw new IllegalArgumentException();
11635
      }
68 ashish 11636
 
11637
      switch (field) {
11638
      case SUCCESS:
11639
        return isSetSuccess();
11640
      case EX:
11641
        return isSetEx();
11642
      }
11643
      throw new IllegalStateException();
11644
    }
11645
 
11646
    @Override
11647
    public boolean equals(Object that) {
11648
      if (that == null)
11649
        return false;
483 rajveer 11650
      if (that instanceof getAllOrders_result)
11651
        return this.equals((getAllOrders_result)that);
68 ashish 11652
      return false;
11653
    }
11654
 
483 rajveer 11655
    public boolean equals(getAllOrders_result that) {
68 ashish 11656
      if (that == null)
11657
        return false;
11658
 
11659
      boolean this_present_success = true && this.isSetSuccess();
11660
      boolean that_present_success = true && that.isSetSuccess();
11661
      if (this_present_success || that_present_success) {
11662
        if (!(this_present_success && that_present_success))
11663
          return false;
11664
        if (!this.success.equals(that.success))
11665
          return false;
11666
      }
11667
 
11668
      boolean this_present_ex = true && this.isSetEx();
11669
      boolean that_present_ex = true && that.isSetEx();
11670
      if (this_present_ex || that_present_ex) {
11671
        if (!(this_present_ex && that_present_ex))
11672
          return false;
11673
        if (!this.ex.equals(that.ex))
11674
          return false;
11675
      }
11676
 
11677
      return true;
11678
    }
11679
 
11680
    @Override
11681
    public int hashCode() {
11682
      return 0;
11683
    }
11684
 
483 rajveer 11685
    public int compareTo(getAllOrders_result other) {
11686
      if (!getClass().equals(other.getClass())) {
11687
        return getClass().getName().compareTo(other.getClass().getName());
11688
      }
11689
 
11690
      int lastComparison = 0;
11691
      getAllOrders_result typedOther = (getAllOrders_result)other;
11692
 
3430 rajveer 11693
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
483 rajveer 11694
      if (lastComparison != 0) {
11695
        return lastComparison;
11696
      }
3430 rajveer 11697
      if (isSetSuccess()) {
11698
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11699
        if (lastComparison != 0) {
11700
          return lastComparison;
11701
        }
483 rajveer 11702
      }
3430 rajveer 11703
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
483 rajveer 11704
      if (lastComparison != 0) {
11705
        return lastComparison;
11706
      }
3430 rajveer 11707
      if (isSetEx()) {
11708
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
11709
        if (lastComparison != 0) {
11710
          return lastComparison;
11711
        }
483 rajveer 11712
      }
11713
      return 0;
11714
    }
11715
 
3430 rajveer 11716
    public _Fields fieldForId(int fieldId) {
11717
      return _Fields.findByThriftId(fieldId);
11718
    }
11719
 
11720
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11721
      org.apache.thrift.protocol.TField field;
68 ashish 11722
      iprot.readStructBegin();
11723
      while (true)
11724
      {
11725
        field = iprot.readFieldBegin();
3430 rajveer 11726
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 11727
          break;
11728
        }
3430 rajveer 11729
        switch (field.id) {
11730
          case 0: // SUCCESS
11731
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11732
              {
11733
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
11734
                this.success = new ArrayList<Order>(_list16.size);
11735
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
483 rajveer 11736
                {
3430 rajveer 11737
                  Order _elem18; // required
11738
                  _elem18 = new Order();
11739
                  _elem18.read(iprot);
11740
                  this.success.add(_elem18);
483 rajveer 11741
                }
3430 rajveer 11742
                iprot.readListEnd();
68 ashish 11743
              }
3430 rajveer 11744
            } else { 
11745
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11746
            }
11747
            break;
11748
          case 1: // EX
11749
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11750
              this.ex = new TransactionServiceException();
11751
              this.ex.read(iprot);
11752
            } else { 
11753
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11754
            }
11755
            break;
11756
          default:
11757
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 11758
        }
3430 rajveer 11759
        iprot.readFieldEnd();
68 ashish 11760
      }
11761
      iprot.readStructEnd();
11762
      validate();
11763
    }
11764
 
3430 rajveer 11765
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 11766
      oprot.writeStructBegin(STRUCT_DESC);
11767
 
11768
      if (this.isSetSuccess()) {
11769
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
483 rajveer 11770
        {
3430 rajveer 11771
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
684 chandransh 11772
          for (Order _iter19 : this.success)
483 rajveer 11773
          {
684 chandransh 11774
            _iter19.write(oprot);
483 rajveer 11775
          }
11776
          oprot.writeListEnd();
11777
        }
68 ashish 11778
        oprot.writeFieldEnd();
11779
      } else if (this.isSetEx()) {
11780
        oprot.writeFieldBegin(EX_FIELD_DESC);
11781
        this.ex.write(oprot);
11782
        oprot.writeFieldEnd();
11783
      }
11784
      oprot.writeFieldStop();
11785
      oprot.writeStructEnd();
11786
    }
11787
 
11788
    @Override
11789
    public String toString() {
483 rajveer 11790
      StringBuilder sb = new StringBuilder("getAllOrders_result(");
68 ashish 11791
      boolean first = true;
11792
 
11793
      sb.append("success:");
11794
      if (this.success == null) {
11795
        sb.append("null");
11796
      } else {
11797
        sb.append(this.success);
11798
      }
11799
      first = false;
11800
      if (!first) sb.append(", ");
11801
      sb.append("ex:");
11802
      if (this.ex == null) {
11803
        sb.append("null");
11804
      } else {
11805
        sb.append(this.ex);
11806
      }
11807
      first = false;
11808
      sb.append(")");
11809
      return sb.toString();
11810
    }
11811
 
3430 rajveer 11812
    public void validate() throws org.apache.thrift.TException {
68 ashish 11813
      // check for required fields
11814
    }
11815
 
3430 rajveer 11816
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11817
      try {
11818
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11819
      } catch (org.apache.thrift.TException te) {
11820
        throw new java.io.IOException(te);
11821
      }
11822
    }
11823
 
11824
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11825
      try {
11826
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11827
      } catch (org.apache.thrift.TException te) {
11828
        throw new java.io.IOException(te);
11829
      }
11830
    }
11831
 
68 ashish 11832
  }
11833
 
4133 chandransh 11834
  public static class getOrdersInBatch_args implements org.apache.thrift.TBase<getOrdersInBatch_args, getOrdersInBatch_args._Fields>, java.io.Serializable, Cloneable   {
11835
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersInBatch_args");
11836
 
11837
    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);
11838
    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);
11839
    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);
11840
    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);
11841
 
11842
    private List<OrderStatus> statuses; // required
11843
    private long offset; // required
11844
    private long limit; // required
11845
    private long warehouse_id; // required
11846
 
11847
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11848
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11849
      STATUSES((short)1, "statuses"),
11850
      OFFSET((short)2, "offset"),
11851
      LIMIT((short)3, "limit"),
11852
      WAREHOUSE_ID((short)4, "warehouse_id");
11853
 
11854
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11855
 
11856
      static {
11857
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11858
          byName.put(field.getFieldName(), field);
11859
        }
11860
      }
11861
 
11862
      /**
11863
       * Find the _Fields constant that matches fieldId, or null if its not found.
11864
       */
11865
      public static _Fields findByThriftId(int fieldId) {
11866
        switch(fieldId) {
11867
          case 1: // STATUSES
11868
            return STATUSES;
11869
          case 2: // OFFSET
11870
            return OFFSET;
11871
          case 3: // LIMIT
11872
            return LIMIT;
11873
          case 4: // WAREHOUSE_ID
11874
            return WAREHOUSE_ID;
11875
          default:
11876
            return null;
11877
        }
11878
      }
11879
 
11880
      /**
11881
       * Find the _Fields constant that matches fieldId, throwing an exception
11882
       * if it is not found.
11883
       */
11884
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11885
        _Fields fields = findByThriftId(fieldId);
11886
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11887
        return fields;
11888
      }
11889
 
11890
      /**
11891
       * Find the _Fields constant that matches name, or null if its not found.
11892
       */
11893
      public static _Fields findByName(String name) {
11894
        return byName.get(name);
11895
      }
11896
 
11897
      private final short _thriftId;
11898
      private final String _fieldName;
11899
 
11900
      _Fields(short thriftId, String fieldName) {
11901
        _thriftId = thriftId;
11902
        _fieldName = fieldName;
11903
      }
11904
 
11905
      public short getThriftFieldId() {
11906
        return _thriftId;
11907
      }
11908
 
11909
      public String getFieldName() {
11910
        return _fieldName;
11911
      }
11912
    }
11913
 
11914
    // isset id assignments
11915
    private static final int __OFFSET_ISSET_ID = 0;
11916
    private static final int __LIMIT_ISSET_ID = 1;
11917
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
11918
    private BitSet __isset_bit_vector = new BitSet(3);
11919
 
11920
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11921
    static {
11922
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11923
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11924
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11925
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
11926
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11927
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11928
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11929
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11930
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11931
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11932
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11933
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersInBatch_args.class, metaDataMap);
11934
    }
11935
 
11936
    public getOrdersInBatch_args() {
11937
    }
11938
 
11939
    public getOrdersInBatch_args(
11940
      List<OrderStatus> statuses,
11941
      long offset,
11942
      long limit,
11943
      long warehouse_id)
11944
    {
11945
      this();
11946
      this.statuses = statuses;
11947
      this.offset = offset;
11948
      setOffsetIsSet(true);
11949
      this.limit = limit;
11950
      setLimitIsSet(true);
11951
      this.warehouse_id = warehouse_id;
11952
      setWarehouse_idIsSet(true);
11953
    }
11954
 
11955
    /**
11956
     * Performs a deep copy on <i>other</i>.
11957
     */
11958
    public getOrdersInBatch_args(getOrdersInBatch_args other) {
11959
      __isset_bit_vector.clear();
11960
      __isset_bit_vector.or(other.__isset_bit_vector);
11961
      if (other.isSetStatuses()) {
11962
        List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();
11963
        for (OrderStatus other_element : other.statuses) {
11964
          __this__statuses.add(other_element);
11965
        }
11966
        this.statuses = __this__statuses;
11967
      }
11968
      this.offset = other.offset;
11969
      this.limit = other.limit;
11970
      this.warehouse_id = other.warehouse_id;
11971
    }
11972
 
11973
    public getOrdersInBatch_args deepCopy() {
11974
      return new getOrdersInBatch_args(this);
11975
    }
11976
 
11977
    @Override
11978
    public void clear() {
11979
      this.statuses = null;
11980
      setOffsetIsSet(false);
11981
      this.offset = 0;
11982
      setLimitIsSet(false);
11983
      this.limit = 0;
11984
      setWarehouse_idIsSet(false);
11985
      this.warehouse_id = 0;
11986
    }
11987
 
11988
    public int getStatusesSize() {
11989
      return (this.statuses == null) ? 0 : this.statuses.size();
11990
    }
11991
 
11992
    public java.util.Iterator<OrderStatus> getStatusesIterator() {
11993
      return (this.statuses == null) ? null : this.statuses.iterator();
11994
    }
11995
 
11996
    public void addToStatuses(OrderStatus elem) {
11997
      if (this.statuses == null) {
11998
        this.statuses = new ArrayList<OrderStatus>();
11999
      }
12000
      this.statuses.add(elem);
12001
    }
12002
 
12003
    public List<OrderStatus> getStatuses() {
12004
      return this.statuses;
12005
    }
12006
 
12007
    public void setStatuses(List<OrderStatus> statuses) {
12008
      this.statuses = statuses;
12009
    }
12010
 
12011
    public void unsetStatuses() {
12012
      this.statuses = null;
12013
    }
12014
 
12015
    /** Returns true if field statuses is set (has been assigned a value) and false otherwise */
12016
    public boolean isSetStatuses() {
12017
      return this.statuses != null;
12018
    }
12019
 
12020
    public void setStatusesIsSet(boolean value) {
12021
      if (!value) {
12022
        this.statuses = null;
12023
      }
12024
    }
12025
 
12026
    public long getOffset() {
12027
      return this.offset;
12028
    }
12029
 
12030
    public void setOffset(long offset) {
12031
      this.offset = offset;
12032
      setOffsetIsSet(true);
12033
    }
12034
 
12035
    public void unsetOffset() {
12036
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
12037
    }
12038
 
12039
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
12040
    public boolean isSetOffset() {
12041
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
12042
    }
12043
 
12044
    public void setOffsetIsSet(boolean value) {
12045
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
12046
    }
12047
 
12048
    public long getLimit() {
12049
      return this.limit;
12050
    }
12051
 
12052
    public void setLimit(long limit) {
12053
      this.limit = limit;
12054
      setLimitIsSet(true);
12055
    }
12056
 
12057
    public void unsetLimit() {
12058
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
12059
    }
12060
 
12061
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
12062
    public boolean isSetLimit() {
12063
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
12064
    }
12065
 
12066
    public void setLimitIsSet(boolean value) {
12067
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
12068
    }
12069
 
12070
    public long getWarehouse_id() {
12071
      return this.warehouse_id;
12072
    }
12073
 
12074
    public void setWarehouse_id(long warehouse_id) {
12075
      this.warehouse_id = warehouse_id;
12076
      setWarehouse_idIsSet(true);
12077
    }
12078
 
12079
    public void unsetWarehouse_id() {
12080
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
12081
    }
12082
 
12083
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
12084
    public boolean isSetWarehouse_id() {
12085
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
12086
    }
12087
 
12088
    public void setWarehouse_idIsSet(boolean value) {
12089
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
12090
    }
12091
 
12092
    public void setFieldValue(_Fields field, Object value) {
12093
      switch (field) {
12094
      case STATUSES:
12095
        if (value == null) {
12096
          unsetStatuses();
12097
        } else {
12098
          setStatuses((List<OrderStatus>)value);
12099
        }
12100
        break;
12101
 
12102
      case OFFSET:
12103
        if (value == null) {
12104
          unsetOffset();
12105
        } else {
12106
          setOffset((Long)value);
12107
        }
12108
        break;
12109
 
12110
      case LIMIT:
12111
        if (value == null) {
12112
          unsetLimit();
12113
        } else {
12114
          setLimit((Long)value);
12115
        }
12116
        break;
12117
 
12118
      case WAREHOUSE_ID:
12119
        if (value == null) {
12120
          unsetWarehouse_id();
12121
        } else {
12122
          setWarehouse_id((Long)value);
12123
        }
12124
        break;
12125
 
12126
      }
12127
    }
12128
 
12129
    public Object getFieldValue(_Fields field) {
12130
      switch (field) {
12131
      case STATUSES:
12132
        return getStatuses();
12133
 
12134
      case OFFSET:
12135
        return Long.valueOf(getOffset());
12136
 
12137
      case LIMIT:
12138
        return Long.valueOf(getLimit());
12139
 
12140
      case WAREHOUSE_ID:
12141
        return Long.valueOf(getWarehouse_id());
12142
 
12143
      }
12144
      throw new IllegalStateException();
12145
    }
12146
 
12147
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12148
    public boolean isSet(_Fields field) {
12149
      if (field == null) {
12150
        throw new IllegalArgumentException();
12151
      }
12152
 
12153
      switch (field) {
12154
      case STATUSES:
12155
        return isSetStatuses();
12156
      case OFFSET:
12157
        return isSetOffset();
12158
      case LIMIT:
12159
        return isSetLimit();
12160
      case WAREHOUSE_ID:
12161
        return isSetWarehouse_id();
12162
      }
12163
      throw new IllegalStateException();
12164
    }
12165
 
12166
    @Override
12167
    public boolean equals(Object that) {
12168
      if (that == null)
12169
        return false;
12170
      if (that instanceof getOrdersInBatch_args)
12171
        return this.equals((getOrdersInBatch_args)that);
12172
      return false;
12173
    }
12174
 
12175
    public boolean equals(getOrdersInBatch_args that) {
12176
      if (that == null)
12177
        return false;
12178
 
12179
      boolean this_present_statuses = true && this.isSetStatuses();
12180
      boolean that_present_statuses = true && that.isSetStatuses();
12181
      if (this_present_statuses || that_present_statuses) {
12182
        if (!(this_present_statuses && that_present_statuses))
12183
          return false;
12184
        if (!this.statuses.equals(that.statuses))
12185
          return false;
12186
      }
12187
 
12188
      boolean this_present_offset = true;
12189
      boolean that_present_offset = true;
12190
      if (this_present_offset || that_present_offset) {
12191
        if (!(this_present_offset && that_present_offset))
12192
          return false;
12193
        if (this.offset != that.offset)
12194
          return false;
12195
      }
12196
 
12197
      boolean this_present_limit = true;
12198
      boolean that_present_limit = true;
12199
      if (this_present_limit || that_present_limit) {
12200
        if (!(this_present_limit && that_present_limit))
12201
          return false;
12202
        if (this.limit != that.limit)
12203
          return false;
12204
      }
12205
 
12206
      boolean this_present_warehouse_id = true;
12207
      boolean that_present_warehouse_id = true;
12208
      if (this_present_warehouse_id || that_present_warehouse_id) {
12209
        if (!(this_present_warehouse_id && that_present_warehouse_id))
12210
          return false;
12211
        if (this.warehouse_id != that.warehouse_id)
12212
          return false;
12213
      }
12214
 
12215
      return true;
12216
    }
12217
 
12218
    @Override
12219
    public int hashCode() {
12220
      return 0;
12221
    }
12222
 
12223
    public int compareTo(getOrdersInBatch_args other) {
12224
      if (!getClass().equals(other.getClass())) {
12225
        return getClass().getName().compareTo(other.getClass().getName());
12226
      }
12227
 
12228
      int lastComparison = 0;
12229
      getOrdersInBatch_args typedOther = (getOrdersInBatch_args)other;
12230
 
12231
      lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());
12232
      if (lastComparison != 0) {
12233
        return lastComparison;
12234
      }
12235
      if (isSetStatuses()) {
12236
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);
12237
        if (lastComparison != 0) {
12238
          return lastComparison;
12239
        }
12240
      }
12241
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
12242
      if (lastComparison != 0) {
12243
        return lastComparison;
12244
      }
12245
      if (isSetOffset()) {
12246
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
12247
        if (lastComparison != 0) {
12248
          return lastComparison;
12249
        }
12250
      }
12251
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
12252
      if (lastComparison != 0) {
12253
        return lastComparison;
12254
      }
12255
      if (isSetLimit()) {
12256
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
12257
        if (lastComparison != 0) {
12258
          return lastComparison;
12259
        }
12260
      }
12261
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
12262
      if (lastComparison != 0) {
12263
        return lastComparison;
12264
      }
12265
      if (isSetWarehouse_id()) {
12266
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
12267
        if (lastComparison != 0) {
12268
          return lastComparison;
12269
        }
12270
      }
12271
      return 0;
12272
    }
12273
 
12274
    public _Fields fieldForId(int fieldId) {
12275
      return _Fields.findByThriftId(fieldId);
12276
    }
12277
 
12278
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12279
      org.apache.thrift.protocol.TField field;
12280
      iprot.readStructBegin();
12281
      while (true)
12282
      {
12283
        field = iprot.readFieldBegin();
12284
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12285
          break;
12286
        }
12287
        switch (field.id) {
12288
          case 1: // STATUSES
12289
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12290
              {
12291
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12292
                this.statuses = new ArrayList<OrderStatus>(_list20.size);
12293
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
12294
                {
12295
                  OrderStatus _elem22; // required
12296
                  _elem22 = OrderStatus.findByValue(iprot.readI32());
12297
                  this.statuses.add(_elem22);
12298
                }
12299
                iprot.readListEnd();
12300
              }
12301
            } else { 
12302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12303
            }
12304
            break;
12305
          case 2: // OFFSET
12306
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12307
              this.offset = iprot.readI64();
12308
              setOffsetIsSet(true);
12309
            } else { 
12310
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12311
            }
12312
            break;
12313
          case 3: // LIMIT
12314
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12315
              this.limit = iprot.readI64();
12316
              setLimitIsSet(true);
12317
            } else { 
12318
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12319
            }
12320
            break;
12321
          case 4: // WAREHOUSE_ID
12322
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12323
              this.warehouse_id = iprot.readI64();
12324
              setWarehouse_idIsSet(true);
12325
            } else { 
12326
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12327
            }
12328
            break;
12329
          default:
12330
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12331
        }
12332
        iprot.readFieldEnd();
12333
      }
12334
      iprot.readStructEnd();
12335
      validate();
12336
    }
12337
 
12338
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12339
      validate();
12340
 
12341
      oprot.writeStructBegin(STRUCT_DESC);
12342
      if (this.statuses != null) {
12343
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
12344
        {
12345
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
12346
          for (OrderStatus _iter23 : this.statuses)
12347
          {
12348
            oprot.writeI32(_iter23.getValue());
12349
          }
12350
          oprot.writeListEnd();
12351
        }
12352
        oprot.writeFieldEnd();
12353
      }
12354
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
12355
      oprot.writeI64(this.offset);
12356
      oprot.writeFieldEnd();
12357
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
12358
      oprot.writeI64(this.limit);
12359
      oprot.writeFieldEnd();
12360
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12361
      oprot.writeI64(this.warehouse_id);
12362
      oprot.writeFieldEnd();
12363
      oprot.writeFieldStop();
12364
      oprot.writeStructEnd();
12365
    }
12366
 
12367
    @Override
12368
    public String toString() {
12369
      StringBuilder sb = new StringBuilder("getOrdersInBatch_args(");
12370
      boolean first = true;
12371
 
12372
      sb.append("statuses:");
12373
      if (this.statuses == null) {
12374
        sb.append("null");
12375
      } else {
12376
        sb.append(this.statuses);
12377
      }
12378
      first = false;
12379
      if (!first) sb.append(", ");
12380
      sb.append("offset:");
12381
      sb.append(this.offset);
12382
      first = false;
12383
      if (!first) sb.append(", ");
12384
      sb.append("limit:");
12385
      sb.append(this.limit);
12386
      first = false;
12387
      if (!first) sb.append(", ");
12388
      sb.append("warehouse_id:");
12389
      sb.append(this.warehouse_id);
12390
      first = false;
12391
      sb.append(")");
12392
      return sb.toString();
12393
    }
12394
 
12395
    public void validate() throws org.apache.thrift.TException {
12396
      // check for required fields
12397
    }
12398
 
12399
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12400
      try {
12401
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12402
      } catch (org.apache.thrift.TException te) {
12403
        throw new java.io.IOException(te);
12404
      }
12405
    }
12406
 
12407
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12408
      try {
12409
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12410
      } catch (org.apache.thrift.TException te) {
12411
        throw new java.io.IOException(te);
12412
      }
12413
    }
12414
 
12415
  }
12416
 
12417
  public static class getOrdersInBatch_result implements org.apache.thrift.TBase<getOrdersInBatch_result, getOrdersInBatch_result._Fields>, java.io.Serializable, Cloneable   {
12418
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersInBatch_result");
12419
 
12420
    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);
12421
    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);
12422
 
12423
    private List<Order> success; // required
12424
    private TransactionServiceException ex; // required
12425
 
12426
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12427
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12428
      SUCCESS((short)0, "success"),
12429
      EX((short)1, "ex");
12430
 
12431
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12432
 
12433
      static {
12434
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12435
          byName.put(field.getFieldName(), field);
12436
        }
12437
      }
12438
 
12439
      /**
12440
       * Find the _Fields constant that matches fieldId, or null if its not found.
12441
       */
12442
      public static _Fields findByThriftId(int fieldId) {
12443
        switch(fieldId) {
12444
          case 0: // SUCCESS
12445
            return SUCCESS;
12446
          case 1: // EX
12447
            return EX;
12448
          default:
12449
            return null;
12450
        }
12451
      }
12452
 
12453
      /**
12454
       * Find the _Fields constant that matches fieldId, throwing an exception
12455
       * if it is not found.
12456
       */
12457
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12458
        _Fields fields = findByThriftId(fieldId);
12459
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12460
        return fields;
12461
      }
12462
 
12463
      /**
12464
       * Find the _Fields constant that matches name, or null if its not found.
12465
       */
12466
      public static _Fields findByName(String name) {
12467
        return byName.get(name);
12468
      }
12469
 
12470
      private final short _thriftId;
12471
      private final String _fieldName;
12472
 
12473
      _Fields(short thriftId, String fieldName) {
12474
        _thriftId = thriftId;
12475
        _fieldName = fieldName;
12476
      }
12477
 
12478
      public short getThriftFieldId() {
12479
        return _thriftId;
12480
      }
12481
 
12482
      public String getFieldName() {
12483
        return _fieldName;
12484
      }
12485
    }
12486
 
12487
    // isset id assignments
12488
 
12489
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12490
    static {
12491
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12492
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12493
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12494
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
12495
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12496
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12497
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12498
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersInBatch_result.class, metaDataMap);
12499
    }
12500
 
12501
    public getOrdersInBatch_result() {
12502
    }
12503
 
12504
    public getOrdersInBatch_result(
12505
      List<Order> success,
12506
      TransactionServiceException ex)
12507
    {
12508
      this();
12509
      this.success = success;
12510
      this.ex = ex;
12511
    }
12512
 
12513
    /**
12514
     * Performs a deep copy on <i>other</i>.
12515
     */
12516
    public getOrdersInBatch_result(getOrdersInBatch_result other) {
12517
      if (other.isSetSuccess()) {
12518
        List<Order> __this__success = new ArrayList<Order>();
12519
        for (Order other_element : other.success) {
12520
          __this__success.add(new Order(other_element));
12521
        }
12522
        this.success = __this__success;
12523
      }
12524
      if (other.isSetEx()) {
12525
        this.ex = new TransactionServiceException(other.ex);
12526
      }
12527
    }
12528
 
12529
    public getOrdersInBatch_result deepCopy() {
12530
      return new getOrdersInBatch_result(this);
12531
    }
12532
 
12533
    @Override
12534
    public void clear() {
12535
      this.success = null;
12536
      this.ex = null;
12537
    }
12538
 
12539
    public int getSuccessSize() {
12540
      return (this.success == null) ? 0 : this.success.size();
12541
    }
12542
 
12543
    public java.util.Iterator<Order> getSuccessIterator() {
12544
      return (this.success == null) ? null : this.success.iterator();
12545
    }
12546
 
12547
    public void addToSuccess(Order elem) {
12548
      if (this.success == null) {
12549
        this.success = new ArrayList<Order>();
12550
      }
12551
      this.success.add(elem);
12552
    }
12553
 
12554
    public List<Order> getSuccess() {
12555
      return this.success;
12556
    }
12557
 
12558
    public void setSuccess(List<Order> success) {
12559
      this.success = success;
12560
    }
12561
 
12562
    public void unsetSuccess() {
12563
      this.success = null;
12564
    }
12565
 
12566
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12567
    public boolean isSetSuccess() {
12568
      return this.success != null;
12569
    }
12570
 
12571
    public void setSuccessIsSet(boolean value) {
12572
      if (!value) {
12573
        this.success = null;
12574
      }
12575
    }
12576
 
12577
    public TransactionServiceException getEx() {
12578
      return this.ex;
12579
    }
12580
 
12581
    public void setEx(TransactionServiceException ex) {
12582
      this.ex = ex;
12583
    }
12584
 
12585
    public void unsetEx() {
12586
      this.ex = null;
12587
    }
12588
 
12589
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
12590
    public boolean isSetEx() {
12591
      return this.ex != null;
12592
    }
12593
 
12594
    public void setExIsSet(boolean value) {
12595
      if (!value) {
12596
        this.ex = null;
12597
      }
12598
    }
12599
 
12600
    public void setFieldValue(_Fields field, Object value) {
12601
      switch (field) {
12602
      case SUCCESS:
12603
        if (value == null) {
12604
          unsetSuccess();
12605
        } else {
12606
          setSuccess((List<Order>)value);
12607
        }
12608
        break;
12609
 
12610
      case EX:
12611
        if (value == null) {
12612
          unsetEx();
12613
        } else {
12614
          setEx((TransactionServiceException)value);
12615
        }
12616
        break;
12617
 
12618
      }
12619
    }
12620
 
12621
    public Object getFieldValue(_Fields field) {
12622
      switch (field) {
12623
      case SUCCESS:
12624
        return getSuccess();
12625
 
12626
      case EX:
12627
        return getEx();
12628
 
12629
      }
12630
      throw new IllegalStateException();
12631
    }
12632
 
12633
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12634
    public boolean isSet(_Fields field) {
12635
      if (field == null) {
12636
        throw new IllegalArgumentException();
12637
      }
12638
 
12639
      switch (field) {
12640
      case SUCCESS:
12641
        return isSetSuccess();
12642
      case EX:
12643
        return isSetEx();
12644
      }
12645
      throw new IllegalStateException();
12646
    }
12647
 
12648
    @Override
12649
    public boolean equals(Object that) {
12650
      if (that == null)
12651
        return false;
12652
      if (that instanceof getOrdersInBatch_result)
12653
        return this.equals((getOrdersInBatch_result)that);
12654
      return false;
12655
    }
12656
 
12657
    public boolean equals(getOrdersInBatch_result that) {
12658
      if (that == null)
12659
        return false;
12660
 
12661
      boolean this_present_success = true && this.isSetSuccess();
12662
      boolean that_present_success = true && that.isSetSuccess();
12663
      if (this_present_success || that_present_success) {
12664
        if (!(this_present_success && that_present_success))
12665
          return false;
12666
        if (!this.success.equals(that.success))
12667
          return false;
12668
      }
12669
 
12670
      boolean this_present_ex = true && this.isSetEx();
12671
      boolean that_present_ex = true && that.isSetEx();
12672
      if (this_present_ex || that_present_ex) {
12673
        if (!(this_present_ex && that_present_ex))
12674
          return false;
12675
        if (!this.ex.equals(that.ex))
12676
          return false;
12677
      }
12678
 
12679
      return true;
12680
    }
12681
 
12682
    @Override
12683
    public int hashCode() {
12684
      return 0;
12685
    }
12686
 
12687
    public int compareTo(getOrdersInBatch_result other) {
12688
      if (!getClass().equals(other.getClass())) {
12689
        return getClass().getName().compareTo(other.getClass().getName());
12690
      }
12691
 
12692
      int lastComparison = 0;
12693
      getOrdersInBatch_result typedOther = (getOrdersInBatch_result)other;
12694
 
12695
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12696
      if (lastComparison != 0) {
12697
        return lastComparison;
12698
      }
12699
      if (isSetSuccess()) {
12700
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12701
        if (lastComparison != 0) {
12702
          return lastComparison;
12703
        }
12704
      }
12705
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
12706
      if (lastComparison != 0) {
12707
        return lastComparison;
12708
      }
12709
      if (isSetEx()) {
12710
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
12711
        if (lastComparison != 0) {
12712
          return lastComparison;
12713
        }
12714
      }
12715
      return 0;
12716
    }
12717
 
12718
    public _Fields fieldForId(int fieldId) {
12719
      return _Fields.findByThriftId(fieldId);
12720
    }
12721
 
12722
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12723
      org.apache.thrift.protocol.TField field;
12724
      iprot.readStructBegin();
12725
      while (true)
12726
      {
12727
        field = iprot.readFieldBegin();
12728
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12729
          break;
12730
        }
12731
        switch (field.id) {
12732
          case 0: // SUCCESS
12733
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12734
              {
12735
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
12736
                this.success = new ArrayList<Order>(_list24.size);
12737
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
12738
                {
12739
                  Order _elem26; // required
12740
                  _elem26 = new Order();
12741
                  _elem26.read(iprot);
12742
                  this.success.add(_elem26);
12743
                }
12744
                iprot.readListEnd();
12745
              }
12746
            } else { 
12747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12748
            }
12749
            break;
12750
          case 1: // EX
12751
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12752
              this.ex = new TransactionServiceException();
12753
              this.ex.read(iprot);
12754
            } else { 
12755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12756
            }
12757
            break;
12758
          default:
12759
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12760
        }
12761
        iprot.readFieldEnd();
12762
      }
12763
      iprot.readStructEnd();
12764
      validate();
12765
    }
12766
 
12767
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12768
      oprot.writeStructBegin(STRUCT_DESC);
12769
 
12770
      if (this.isSetSuccess()) {
12771
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12772
        {
12773
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
12774
          for (Order _iter27 : this.success)
12775
          {
12776
            _iter27.write(oprot);
12777
          }
12778
          oprot.writeListEnd();
12779
        }
12780
        oprot.writeFieldEnd();
12781
      } else if (this.isSetEx()) {
12782
        oprot.writeFieldBegin(EX_FIELD_DESC);
12783
        this.ex.write(oprot);
12784
        oprot.writeFieldEnd();
12785
      }
12786
      oprot.writeFieldStop();
12787
      oprot.writeStructEnd();
12788
    }
12789
 
12790
    @Override
12791
    public String toString() {
12792
      StringBuilder sb = new StringBuilder("getOrdersInBatch_result(");
12793
      boolean first = true;
12794
 
12795
      sb.append("success:");
12796
      if (this.success == null) {
12797
        sb.append("null");
12798
      } else {
12799
        sb.append(this.success);
12800
      }
12801
      first = false;
12802
      if (!first) sb.append(", ");
12803
      sb.append("ex:");
12804
      if (this.ex == null) {
12805
        sb.append("null");
12806
      } else {
12807
        sb.append(this.ex);
12808
      }
12809
      first = false;
12810
      sb.append(")");
12811
      return sb.toString();
12812
    }
12813
 
12814
    public void validate() throws org.apache.thrift.TException {
12815
      // check for required fields
12816
    }
12817
 
12818
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12819
      try {
12820
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12821
      } catch (org.apache.thrift.TException te) {
12822
        throw new java.io.IOException(te);
12823
      }
12824
    }
12825
 
12826
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12827
      try {
12828
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12829
      } catch (org.apache.thrift.TException te) {
12830
        throw new java.io.IOException(te);
12831
      }
12832
    }
12833
 
12834
  }
12835
 
12836
  public static class getOrderCount_args implements org.apache.thrift.TBase<getOrderCount_args, getOrderCount_args._Fields>, java.io.Serializable, Cloneable   {
12837
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderCount_args");
12838
 
12839
    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);
12840
    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);
12841
 
12842
    private List<OrderStatus> statuses; // required
12843
    private long warehouseId; // required
12844
 
12845
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12846
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12847
      STATUSES((short)1, "statuses"),
12848
      WAREHOUSE_ID((short)2, "warehouseId");
12849
 
12850
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12851
 
12852
      static {
12853
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12854
          byName.put(field.getFieldName(), field);
12855
        }
12856
      }
12857
 
12858
      /**
12859
       * Find the _Fields constant that matches fieldId, or null if its not found.
12860
       */
12861
      public static _Fields findByThriftId(int fieldId) {
12862
        switch(fieldId) {
12863
          case 1: // STATUSES
12864
            return STATUSES;
12865
          case 2: // WAREHOUSE_ID
12866
            return WAREHOUSE_ID;
12867
          default:
12868
            return null;
12869
        }
12870
      }
12871
 
12872
      /**
12873
       * Find the _Fields constant that matches fieldId, throwing an exception
12874
       * if it is not found.
12875
       */
12876
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12877
        _Fields fields = findByThriftId(fieldId);
12878
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12879
        return fields;
12880
      }
12881
 
12882
      /**
12883
       * Find the _Fields constant that matches name, or null if its not found.
12884
       */
12885
      public static _Fields findByName(String name) {
12886
        return byName.get(name);
12887
      }
12888
 
12889
      private final short _thriftId;
12890
      private final String _fieldName;
12891
 
12892
      _Fields(short thriftId, String fieldName) {
12893
        _thriftId = thriftId;
12894
        _fieldName = fieldName;
12895
      }
12896
 
12897
      public short getThriftFieldId() {
12898
        return _thriftId;
12899
      }
12900
 
12901
      public String getFieldName() {
12902
        return _fieldName;
12903
      }
12904
    }
12905
 
12906
    // isset id assignments
12907
    private static final int __WAREHOUSEID_ISSET_ID = 0;
12908
    private BitSet __isset_bit_vector = new BitSet(1);
12909
 
12910
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12911
    static {
12912
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12913
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12914
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12915
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
12916
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12917
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12918
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12919
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderCount_args.class, metaDataMap);
12920
    }
12921
 
12922
    public getOrderCount_args() {
12923
    }
12924
 
12925
    public getOrderCount_args(
12926
      List<OrderStatus> statuses,
12927
      long warehouseId)
12928
    {
12929
      this();
12930
      this.statuses = statuses;
12931
      this.warehouseId = warehouseId;
12932
      setWarehouseIdIsSet(true);
12933
    }
12934
 
12935
    /**
12936
     * Performs a deep copy on <i>other</i>.
12937
     */
12938
    public getOrderCount_args(getOrderCount_args other) {
12939
      __isset_bit_vector.clear();
12940
      __isset_bit_vector.or(other.__isset_bit_vector);
12941
      if (other.isSetStatuses()) {
12942
        List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();
12943
        for (OrderStatus other_element : other.statuses) {
12944
          __this__statuses.add(other_element);
12945
        }
12946
        this.statuses = __this__statuses;
12947
      }
12948
      this.warehouseId = other.warehouseId;
12949
    }
12950
 
12951
    public getOrderCount_args deepCopy() {
12952
      return new getOrderCount_args(this);
12953
    }
12954
 
12955
    @Override
12956
    public void clear() {
12957
      this.statuses = null;
12958
      setWarehouseIdIsSet(false);
12959
      this.warehouseId = 0;
12960
    }
12961
 
12962
    public int getStatusesSize() {
12963
      return (this.statuses == null) ? 0 : this.statuses.size();
12964
    }
12965
 
12966
    public java.util.Iterator<OrderStatus> getStatusesIterator() {
12967
      return (this.statuses == null) ? null : this.statuses.iterator();
12968
    }
12969
 
12970
    public void addToStatuses(OrderStatus elem) {
12971
      if (this.statuses == null) {
12972
        this.statuses = new ArrayList<OrderStatus>();
12973
      }
12974
      this.statuses.add(elem);
12975
    }
12976
 
12977
    public List<OrderStatus> getStatuses() {
12978
      return this.statuses;
12979
    }
12980
 
12981
    public void setStatuses(List<OrderStatus> statuses) {
12982
      this.statuses = statuses;
12983
    }
12984
 
12985
    public void unsetStatuses() {
12986
      this.statuses = null;
12987
    }
12988
 
12989
    /** Returns true if field statuses is set (has been assigned a value) and false otherwise */
12990
    public boolean isSetStatuses() {
12991
      return this.statuses != null;
12992
    }
12993
 
12994
    public void setStatusesIsSet(boolean value) {
12995
      if (!value) {
12996
        this.statuses = null;
12997
      }
12998
    }
12999
 
13000
    public long getWarehouseId() {
13001
      return this.warehouseId;
13002
    }
13003
 
13004
    public void setWarehouseId(long warehouseId) {
13005
      this.warehouseId = warehouseId;
13006
      setWarehouseIdIsSet(true);
13007
    }
13008
 
13009
    public void unsetWarehouseId() {
13010
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
13011
    }
13012
 
13013
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
13014
    public boolean isSetWarehouseId() {
13015
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
13016
    }
13017
 
13018
    public void setWarehouseIdIsSet(boolean value) {
13019
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
13020
    }
13021
 
13022
    public void setFieldValue(_Fields field, Object value) {
13023
      switch (field) {
13024
      case STATUSES:
13025
        if (value == null) {
13026
          unsetStatuses();
13027
        } else {
13028
          setStatuses((List<OrderStatus>)value);
13029
        }
13030
        break;
13031
 
13032
      case WAREHOUSE_ID:
13033
        if (value == null) {
13034
          unsetWarehouseId();
13035
        } else {
13036
          setWarehouseId((Long)value);
13037
        }
13038
        break;
13039
 
13040
      }
13041
    }
13042
 
13043
    public Object getFieldValue(_Fields field) {
13044
      switch (field) {
13045
      case STATUSES:
13046
        return getStatuses();
13047
 
13048
      case WAREHOUSE_ID:
13049
        return Long.valueOf(getWarehouseId());
13050
 
13051
      }
13052
      throw new IllegalStateException();
13053
    }
13054
 
13055
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13056
    public boolean isSet(_Fields field) {
13057
      if (field == null) {
13058
        throw new IllegalArgumentException();
13059
      }
13060
 
13061
      switch (field) {
13062
      case STATUSES:
13063
        return isSetStatuses();
13064
      case WAREHOUSE_ID:
13065
        return isSetWarehouseId();
13066
      }
13067
      throw new IllegalStateException();
13068
    }
13069
 
13070
    @Override
13071
    public boolean equals(Object that) {
13072
      if (that == null)
13073
        return false;
13074
      if (that instanceof getOrderCount_args)
13075
        return this.equals((getOrderCount_args)that);
13076
      return false;
13077
    }
13078
 
13079
    public boolean equals(getOrderCount_args that) {
13080
      if (that == null)
13081
        return false;
13082
 
13083
      boolean this_present_statuses = true && this.isSetStatuses();
13084
      boolean that_present_statuses = true && that.isSetStatuses();
13085
      if (this_present_statuses || that_present_statuses) {
13086
        if (!(this_present_statuses && that_present_statuses))
13087
          return false;
13088
        if (!this.statuses.equals(that.statuses))
13089
          return false;
13090
      }
13091
 
13092
      boolean this_present_warehouseId = true;
13093
      boolean that_present_warehouseId = true;
13094
      if (this_present_warehouseId || that_present_warehouseId) {
13095
        if (!(this_present_warehouseId && that_present_warehouseId))
13096
          return false;
13097
        if (this.warehouseId != that.warehouseId)
13098
          return false;
13099
      }
13100
 
13101
      return true;
13102
    }
13103
 
13104
    @Override
13105
    public int hashCode() {
13106
      return 0;
13107
    }
13108
 
13109
    public int compareTo(getOrderCount_args other) {
13110
      if (!getClass().equals(other.getClass())) {
13111
        return getClass().getName().compareTo(other.getClass().getName());
13112
      }
13113
 
13114
      int lastComparison = 0;
13115
      getOrderCount_args typedOther = (getOrderCount_args)other;
13116
 
13117
      lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());
13118
      if (lastComparison != 0) {
13119
        return lastComparison;
13120
      }
13121
      if (isSetStatuses()) {
13122
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);
13123
        if (lastComparison != 0) {
13124
          return lastComparison;
13125
        }
13126
      }
13127
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
13128
      if (lastComparison != 0) {
13129
        return lastComparison;
13130
      }
13131
      if (isSetWarehouseId()) {
13132
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
13133
        if (lastComparison != 0) {
13134
          return lastComparison;
13135
        }
13136
      }
13137
      return 0;
13138
    }
13139
 
13140
    public _Fields fieldForId(int fieldId) {
13141
      return _Fields.findByThriftId(fieldId);
13142
    }
13143
 
13144
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13145
      org.apache.thrift.protocol.TField field;
13146
      iprot.readStructBegin();
13147
      while (true)
13148
      {
13149
        field = iprot.readFieldBegin();
13150
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13151
          break;
13152
        }
13153
        switch (field.id) {
13154
          case 1: // STATUSES
13155
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13156
              {
13157
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
13158
                this.statuses = new ArrayList<OrderStatus>(_list28.size);
13159
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
13160
                {
13161
                  OrderStatus _elem30; // required
13162
                  _elem30 = OrderStatus.findByValue(iprot.readI32());
13163
                  this.statuses.add(_elem30);
13164
                }
13165
                iprot.readListEnd();
13166
              }
13167
            } else { 
13168
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13169
            }
13170
            break;
13171
          case 2: // WAREHOUSE_ID
13172
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13173
              this.warehouseId = iprot.readI64();
13174
              setWarehouseIdIsSet(true);
13175
            } else { 
13176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13177
            }
13178
            break;
13179
          default:
13180
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13181
        }
13182
        iprot.readFieldEnd();
13183
      }
13184
      iprot.readStructEnd();
13185
      validate();
13186
    }
13187
 
13188
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13189
      validate();
13190
 
13191
      oprot.writeStructBegin(STRUCT_DESC);
13192
      if (this.statuses != null) {
13193
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
13194
        {
13195
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
13196
          for (OrderStatus _iter31 : this.statuses)
13197
          {
13198
            oprot.writeI32(_iter31.getValue());
13199
          }
13200
          oprot.writeListEnd();
13201
        }
13202
        oprot.writeFieldEnd();
13203
      }
13204
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
13205
      oprot.writeI64(this.warehouseId);
13206
      oprot.writeFieldEnd();
13207
      oprot.writeFieldStop();
13208
      oprot.writeStructEnd();
13209
    }
13210
 
13211
    @Override
13212
    public String toString() {
13213
      StringBuilder sb = new StringBuilder("getOrderCount_args(");
13214
      boolean first = true;
13215
 
13216
      sb.append("statuses:");
13217
      if (this.statuses == null) {
13218
        sb.append("null");
13219
      } else {
13220
        sb.append(this.statuses);
13221
      }
13222
      first = false;
13223
      if (!first) sb.append(", ");
13224
      sb.append("warehouseId:");
13225
      sb.append(this.warehouseId);
13226
      first = false;
13227
      sb.append(")");
13228
      return sb.toString();
13229
    }
13230
 
13231
    public void validate() throws org.apache.thrift.TException {
13232
      // check for required fields
13233
    }
13234
 
13235
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13236
      try {
13237
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13238
      } catch (org.apache.thrift.TException te) {
13239
        throw new java.io.IOException(te);
13240
      }
13241
    }
13242
 
13243
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13244
      try {
13245
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13246
      } catch (org.apache.thrift.TException te) {
13247
        throw new java.io.IOException(te);
13248
      }
13249
    }
13250
 
13251
  }
13252
 
13253
  public static class getOrderCount_result implements org.apache.thrift.TBase<getOrderCount_result, getOrderCount_result._Fields>, java.io.Serializable, Cloneable   {
13254
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderCount_result");
13255
 
13256
    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);
13257
    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);
13258
 
13259
    private int success; // required
13260
    private TransactionServiceException ex; // required
13261
 
13262
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13263
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13264
      SUCCESS((short)0, "success"),
13265
      EX((short)1, "ex");
13266
 
13267
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13268
 
13269
      static {
13270
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13271
          byName.put(field.getFieldName(), field);
13272
        }
13273
      }
13274
 
13275
      /**
13276
       * Find the _Fields constant that matches fieldId, or null if its not found.
13277
       */
13278
      public static _Fields findByThriftId(int fieldId) {
13279
        switch(fieldId) {
13280
          case 0: // SUCCESS
13281
            return SUCCESS;
13282
          case 1: // EX
13283
            return EX;
13284
          default:
13285
            return null;
13286
        }
13287
      }
13288
 
13289
      /**
13290
       * Find the _Fields constant that matches fieldId, throwing an exception
13291
       * if it is not found.
13292
       */
13293
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13294
        _Fields fields = findByThriftId(fieldId);
13295
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13296
        return fields;
13297
      }
13298
 
13299
      /**
13300
       * Find the _Fields constant that matches name, or null if its not found.
13301
       */
13302
      public static _Fields findByName(String name) {
13303
        return byName.get(name);
13304
      }
13305
 
13306
      private final short _thriftId;
13307
      private final String _fieldName;
13308
 
13309
      _Fields(short thriftId, String fieldName) {
13310
        _thriftId = thriftId;
13311
        _fieldName = fieldName;
13312
      }
13313
 
13314
      public short getThriftFieldId() {
13315
        return _thriftId;
13316
      }
13317
 
13318
      public String getFieldName() {
13319
        return _fieldName;
13320
      }
13321
    }
13322
 
13323
    // isset id assignments
13324
    private static final int __SUCCESS_ISSET_ID = 0;
13325
    private BitSet __isset_bit_vector = new BitSet(1);
13326
 
13327
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13328
    static {
13329
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13330
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13331
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13332
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13333
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13334
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13335
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderCount_result.class, metaDataMap);
13336
    }
13337
 
13338
    public getOrderCount_result() {
13339
    }
13340
 
13341
    public getOrderCount_result(
13342
      int success,
13343
      TransactionServiceException ex)
13344
    {
13345
      this();
13346
      this.success = success;
13347
      setSuccessIsSet(true);
13348
      this.ex = ex;
13349
    }
13350
 
13351
    /**
13352
     * Performs a deep copy on <i>other</i>.
13353
     */
13354
    public getOrderCount_result(getOrderCount_result other) {
13355
      __isset_bit_vector.clear();
13356
      __isset_bit_vector.or(other.__isset_bit_vector);
13357
      this.success = other.success;
13358
      if (other.isSetEx()) {
13359
        this.ex = new TransactionServiceException(other.ex);
13360
      }
13361
    }
13362
 
13363
    public getOrderCount_result deepCopy() {
13364
      return new getOrderCount_result(this);
13365
    }
13366
 
13367
    @Override
13368
    public void clear() {
13369
      setSuccessIsSet(false);
13370
      this.success = 0;
13371
      this.ex = null;
13372
    }
13373
 
13374
    public int getSuccess() {
13375
      return this.success;
13376
    }
13377
 
13378
    public void setSuccess(int success) {
13379
      this.success = success;
13380
      setSuccessIsSet(true);
13381
    }
13382
 
13383
    public void unsetSuccess() {
13384
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13385
    }
13386
 
13387
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13388
    public boolean isSetSuccess() {
13389
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13390
    }
13391
 
13392
    public void setSuccessIsSet(boolean value) {
13393
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13394
    }
13395
 
13396
    public TransactionServiceException getEx() {
13397
      return this.ex;
13398
    }
13399
 
13400
    public void setEx(TransactionServiceException ex) {
13401
      this.ex = ex;
13402
    }
13403
 
13404
    public void unsetEx() {
13405
      this.ex = null;
13406
    }
13407
 
13408
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
13409
    public boolean isSetEx() {
13410
      return this.ex != null;
13411
    }
13412
 
13413
    public void setExIsSet(boolean value) {
13414
      if (!value) {
13415
        this.ex = null;
13416
      }
13417
    }
13418
 
13419
    public void setFieldValue(_Fields field, Object value) {
13420
      switch (field) {
13421
      case SUCCESS:
13422
        if (value == null) {
13423
          unsetSuccess();
13424
        } else {
13425
          setSuccess((Integer)value);
13426
        }
13427
        break;
13428
 
13429
      case EX:
13430
        if (value == null) {
13431
          unsetEx();
13432
        } else {
13433
          setEx((TransactionServiceException)value);
13434
        }
13435
        break;
13436
 
13437
      }
13438
    }
13439
 
13440
    public Object getFieldValue(_Fields field) {
13441
      switch (field) {
13442
      case SUCCESS:
13443
        return Integer.valueOf(getSuccess());
13444
 
13445
      case EX:
13446
        return getEx();
13447
 
13448
      }
13449
      throw new IllegalStateException();
13450
    }
13451
 
13452
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13453
    public boolean isSet(_Fields field) {
13454
      if (field == null) {
13455
        throw new IllegalArgumentException();
13456
      }
13457
 
13458
      switch (field) {
13459
      case SUCCESS:
13460
        return isSetSuccess();
13461
      case EX:
13462
        return isSetEx();
13463
      }
13464
      throw new IllegalStateException();
13465
    }
13466
 
13467
    @Override
13468
    public boolean equals(Object that) {
13469
      if (that == null)
13470
        return false;
13471
      if (that instanceof getOrderCount_result)
13472
        return this.equals((getOrderCount_result)that);
13473
      return false;
13474
    }
13475
 
13476
    public boolean equals(getOrderCount_result that) {
13477
      if (that == null)
13478
        return false;
13479
 
13480
      boolean this_present_success = true;
13481
      boolean that_present_success = true;
13482
      if (this_present_success || that_present_success) {
13483
        if (!(this_present_success && that_present_success))
13484
          return false;
13485
        if (this.success != that.success)
13486
          return false;
13487
      }
13488
 
13489
      boolean this_present_ex = true && this.isSetEx();
13490
      boolean that_present_ex = true && that.isSetEx();
13491
      if (this_present_ex || that_present_ex) {
13492
        if (!(this_present_ex && that_present_ex))
13493
          return false;
13494
        if (!this.ex.equals(that.ex))
13495
          return false;
13496
      }
13497
 
13498
      return true;
13499
    }
13500
 
13501
    @Override
13502
    public int hashCode() {
13503
      return 0;
13504
    }
13505
 
13506
    public int compareTo(getOrderCount_result other) {
13507
      if (!getClass().equals(other.getClass())) {
13508
        return getClass().getName().compareTo(other.getClass().getName());
13509
      }
13510
 
13511
      int lastComparison = 0;
13512
      getOrderCount_result typedOther = (getOrderCount_result)other;
13513
 
13514
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13515
      if (lastComparison != 0) {
13516
        return lastComparison;
13517
      }
13518
      if (isSetSuccess()) {
13519
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13520
        if (lastComparison != 0) {
13521
          return lastComparison;
13522
        }
13523
      }
13524
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
13525
      if (lastComparison != 0) {
13526
        return lastComparison;
13527
      }
13528
      if (isSetEx()) {
13529
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
13530
        if (lastComparison != 0) {
13531
          return lastComparison;
13532
        }
13533
      }
13534
      return 0;
13535
    }
13536
 
13537
    public _Fields fieldForId(int fieldId) {
13538
      return _Fields.findByThriftId(fieldId);
13539
    }
13540
 
13541
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13542
      org.apache.thrift.protocol.TField field;
13543
      iprot.readStructBegin();
13544
      while (true)
13545
      {
13546
        field = iprot.readFieldBegin();
13547
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13548
          break;
13549
        }
13550
        switch (field.id) {
13551
          case 0: // SUCCESS
13552
            if (field.type == org.apache.thrift.protocol.TType.I32) {
13553
              this.success = iprot.readI32();
13554
              setSuccessIsSet(true);
13555
            } else { 
13556
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13557
            }
13558
            break;
13559
          case 1: // EX
13560
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13561
              this.ex = new TransactionServiceException();
13562
              this.ex.read(iprot);
13563
            } else { 
13564
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13565
            }
13566
            break;
13567
          default:
13568
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13569
        }
13570
        iprot.readFieldEnd();
13571
      }
13572
      iprot.readStructEnd();
13573
      validate();
13574
    }
13575
 
13576
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13577
      oprot.writeStructBegin(STRUCT_DESC);
13578
 
13579
      if (this.isSetSuccess()) {
13580
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13581
        oprot.writeI32(this.success);
13582
        oprot.writeFieldEnd();
13583
      } else if (this.isSetEx()) {
13584
        oprot.writeFieldBegin(EX_FIELD_DESC);
13585
        this.ex.write(oprot);
13586
        oprot.writeFieldEnd();
13587
      }
13588
      oprot.writeFieldStop();
13589
      oprot.writeStructEnd();
13590
    }
13591
 
13592
    @Override
13593
    public String toString() {
13594
      StringBuilder sb = new StringBuilder("getOrderCount_result(");
13595
      boolean first = true;
13596
 
13597
      sb.append("success:");
13598
      sb.append(this.success);
13599
      first = false;
13600
      if (!first) sb.append(", ");
13601
      sb.append("ex:");
13602
      if (this.ex == null) {
13603
        sb.append("null");
13604
      } else {
13605
        sb.append(this.ex);
13606
      }
13607
      first = false;
13608
      sb.append(")");
13609
      return sb.toString();
13610
    }
13611
 
13612
    public void validate() throws org.apache.thrift.TException {
13613
      // check for required fields
13614
    }
13615
 
13616
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13617
      try {
13618
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13619
      } catch (org.apache.thrift.TException te) {
13620
        throw new java.io.IOException(te);
13621
      }
13622
    }
13623
 
13624
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13625
      try {
13626
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13627
      } catch (org.apache.thrift.TException te) {
13628
        throw new java.io.IOException(te);
13629
      }
13630
    }
13631
 
13632
  }
13633
 
3430 rajveer 13634
  public static class getOrdersByBillingDate_args implements org.apache.thrift.TBase<getOrdersByBillingDate_args, getOrdersByBillingDate_args._Fields>, java.io.Serializable, Cloneable   {
13635
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByBillingDate_args");
1022 varun.gupt 13636
 
3430 rajveer 13637
    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);
13638
    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);
13639
    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);
13640
    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 13641
 
3430 rajveer 13642
    private OrderStatus status; // required
13643
    private long start_billing_date; // required
13644
    private long end_billing_date; // required
13645
    private long warehouse_id; // required
1022 varun.gupt 13646
 
13647
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13648
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1022 varun.gupt 13649
      /**
13650
       * 
13651
       * @see OrderStatus
13652
       */
13653
      STATUS((short)1, "status"),
13654
      START_BILLING_DATE((short)2, "start_billing_date"),
13655
      END_BILLING_DATE((short)3, "end_billing_date"),
13656
      WAREHOUSE_ID((short)4, "warehouse_id");
13657
 
13658
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13659
 
13660
      static {
13661
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13662
          byName.put(field.getFieldName(), field);
13663
        }
13664
      }
13665
 
13666
      /**
13667
       * Find the _Fields constant that matches fieldId, or null if its not found.
13668
       */
13669
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13670
        switch(fieldId) {
13671
          case 1: // STATUS
13672
            return STATUS;
13673
          case 2: // START_BILLING_DATE
13674
            return START_BILLING_DATE;
13675
          case 3: // END_BILLING_DATE
13676
            return END_BILLING_DATE;
13677
          case 4: // WAREHOUSE_ID
13678
            return WAREHOUSE_ID;
13679
          default:
13680
            return null;
13681
        }
1022 varun.gupt 13682
      }
13683
 
13684
      /**
13685
       * Find the _Fields constant that matches fieldId, throwing an exception
13686
       * if it is not found.
13687
       */
13688
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13689
        _Fields fields = findByThriftId(fieldId);
13690
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13691
        return fields;
13692
      }
13693
 
13694
      /**
13695
       * Find the _Fields constant that matches name, or null if its not found.
13696
       */
13697
      public static _Fields findByName(String name) {
13698
        return byName.get(name);
13699
      }
13700
 
13701
      private final short _thriftId;
13702
      private final String _fieldName;
13703
 
13704
      _Fields(short thriftId, String fieldName) {
13705
        _thriftId = thriftId;
13706
        _fieldName = fieldName;
13707
      }
13708
 
13709
      public short getThriftFieldId() {
13710
        return _thriftId;
13711
      }
13712
 
13713
      public String getFieldName() {
13714
        return _fieldName;
13715
      }
13716
    }
13717
 
13718
    // isset id assignments
13719
    private static final int __START_BILLING_DATE_ISSET_ID = 0;
13720
    private static final int __END_BILLING_DATE_ISSET_ID = 1;
13721
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
13722
    private BitSet __isset_bit_vector = new BitSet(3);
13723
 
3430 rajveer 13724
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1022 varun.gupt 13725
    static {
3430 rajveer 13726
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13727
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13728
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
13729
      tmpMap.put(_Fields.START_BILLING_DATE, new org.apache.thrift.meta_data.FieldMetaData("start_billing_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13730
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13731
      tmpMap.put(_Fields.END_BILLING_DATE, new org.apache.thrift.meta_data.FieldMetaData("end_billing_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13732
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13733
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13734
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13735
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13736
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByBillingDate_args.class, metaDataMap);
1022 varun.gupt 13737
    }
13738
 
13739
    public getOrdersByBillingDate_args() {
13740
    }
13741
 
13742
    public getOrdersByBillingDate_args(
13743
      OrderStatus status,
13744
      long start_billing_date,
13745
      long end_billing_date,
13746
      long warehouse_id)
13747
    {
13748
      this();
13749
      this.status = status;
13750
      this.start_billing_date = start_billing_date;
13751
      setStart_billing_dateIsSet(true);
13752
      this.end_billing_date = end_billing_date;
13753
      setEnd_billing_dateIsSet(true);
13754
      this.warehouse_id = warehouse_id;
13755
      setWarehouse_idIsSet(true);
13756
    }
13757
 
13758
    /**
13759
     * Performs a deep copy on <i>other</i>.
13760
     */
13761
    public getOrdersByBillingDate_args(getOrdersByBillingDate_args other) {
13762
      __isset_bit_vector.clear();
13763
      __isset_bit_vector.or(other.__isset_bit_vector);
13764
      if (other.isSetStatus()) {
13765
        this.status = other.status;
13766
      }
13767
      this.start_billing_date = other.start_billing_date;
13768
      this.end_billing_date = other.end_billing_date;
13769
      this.warehouse_id = other.warehouse_id;
13770
    }
13771
 
13772
    public getOrdersByBillingDate_args deepCopy() {
13773
      return new getOrdersByBillingDate_args(this);
13774
    }
13775
 
3430 rajveer 13776
    @Override
13777
    public void clear() {
13778
      this.status = null;
13779
      setStart_billing_dateIsSet(false);
13780
      this.start_billing_date = 0;
13781
      setEnd_billing_dateIsSet(false);
13782
      this.end_billing_date = 0;
13783
      setWarehouse_idIsSet(false);
13784
      this.warehouse_id = 0;
1022 varun.gupt 13785
    }
13786
 
13787
    /**
13788
     * 
13789
     * @see OrderStatus
13790
     */
13791
    public OrderStatus getStatus() {
13792
      return this.status;
13793
    }
13794
 
13795
    /**
13796
     * 
13797
     * @see OrderStatus
13798
     */
3430 rajveer 13799
    public void setStatus(OrderStatus status) {
1022 varun.gupt 13800
      this.status = status;
13801
    }
13802
 
13803
    public void unsetStatus() {
13804
      this.status = null;
13805
    }
13806
 
3430 rajveer 13807
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
1022 varun.gupt 13808
    public boolean isSetStatus() {
13809
      return this.status != null;
13810
    }
13811
 
13812
    public void setStatusIsSet(boolean value) {
13813
      if (!value) {
13814
        this.status = null;
13815
      }
13816
    }
13817
 
13818
    public long getStart_billing_date() {
13819
      return this.start_billing_date;
13820
    }
13821
 
3430 rajveer 13822
    public void setStart_billing_date(long start_billing_date) {
1022 varun.gupt 13823
      this.start_billing_date = start_billing_date;
13824
      setStart_billing_dateIsSet(true);
13825
    }
13826
 
13827
    public void unsetStart_billing_date() {
13828
      __isset_bit_vector.clear(__START_BILLING_DATE_ISSET_ID);
13829
    }
13830
 
3430 rajveer 13831
    /** Returns true if field start_billing_date is set (has been assigned a value) and false otherwise */
1022 varun.gupt 13832
    public boolean isSetStart_billing_date() {
13833
      return __isset_bit_vector.get(__START_BILLING_DATE_ISSET_ID);
13834
    }
13835
 
13836
    public void setStart_billing_dateIsSet(boolean value) {
13837
      __isset_bit_vector.set(__START_BILLING_DATE_ISSET_ID, value);
13838
    }
13839
 
13840
    public long getEnd_billing_date() {
13841
      return this.end_billing_date;
13842
    }
13843
 
3430 rajveer 13844
    public void setEnd_billing_date(long end_billing_date) {
1022 varun.gupt 13845
      this.end_billing_date = end_billing_date;
13846
      setEnd_billing_dateIsSet(true);
13847
    }
13848
 
13849
    public void unsetEnd_billing_date() {
13850
      __isset_bit_vector.clear(__END_BILLING_DATE_ISSET_ID);
13851
    }
13852
 
3430 rajveer 13853
    /** Returns true if field end_billing_date is set (has been assigned a value) and false otherwise */
1022 varun.gupt 13854
    public boolean isSetEnd_billing_date() {
13855
      return __isset_bit_vector.get(__END_BILLING_DATE_ISSET_ID);
13856
    }
13857
 
13858
    public void setEnd_billing_dateIsSet(boolean value) {
13859
      __isset_bit_vector.set(__END_BILLING_DATE_ISSET_ID, value);
13860
    }
13861
 
13862
    public long getWarehouse_id() {
13863
      return this.warehouse_id;
13864
    }
13865
 
3430 rajveer 13866
    public void setWarehouse_id(long warehouse_id) {
1022 varun.gupt 13867
      this.warehouse_id = warehouse_id;
13868
      setWarehouse_idIsSet(true);
13869
    }
13870
 
13871
    public void unsetWarehouse_id() {
13872
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
13873
    }
13874
 
3430 rajveer 13875
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
1022 varun.gupt 13876
    public boolean isSetWarehouse_id() {
13877
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
13878
    }
13879
 
13880
    public void setWarehouse_idIsSet(boolean value) {
13881
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
13882
    }
13883
 
13884
    public void setFieldValue(_Fields field, Object value) {
13885
      switch (field) {
13886
      case STATUS:
13887
        if (value == null) {
13888
          unsetStatus();
13889
        } else {
13890
          setStatus((OrderStatus)value);
13891
        }
13892
        break;
13893
 
13894
      case START_BILLING_DATE:
13895
        if (value == null) {
13896
          unsetStart_billing_date();
13897
        } else {
13898
          setStart_billing_date((Long)value);
13899
        }
13900
        break;
13901
 
13902
      case END_BILLING_DATE:
13903
        if (value == null) {
13904
          unsetEnd_billing_date();
13905
        } else {
13906
          setEnd_billing_date((Long)value);
13907
        }
13908
        break;
13909
 
13910
      case WAREHOUSE_ID:
13911
        if (value == null) {
13912
          unsetWarehouse_id();
13913
        } else {
13914
          setWarehouse_id((Long)value);
13915
        }
13916
        break;
13917
 
13918
      }
13919
    }
13920
 
13921
    public Object getFieldValue(_Fields field) {
13922
      switch (field) {
13923
      case STATUS:
13924
        return getStatus();
13925
 
13926
      case START_BILLING_DATE:
3430 rajveer 13927
        return Long.valueOf(getStart_billing_date());
1022 varun.gupt 13928
 
13929
      case END_BILLING_DATE:
3430 rajveer 13930
        return Long.valueOf(getEnd_billing_date());
1022 varun.gupt 13931
 
13932
      case WAREHOUSE_ID:
3430 rajveer 13933
        return Long.valueOf(getWarehouse_id());
1022 varun.gupt 13934
 
13935
      }
13936
      throw new IllegalStateException();
13937
    }
13938
 
3430 rajveer 13939
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13940
    public boolean isSet(_Fields field) {
13941
      if (field == null) {
13942
        throw new IllegalArgumentException();
13943
      }
1022 varun.gupt 13944
 
13945
      switch (field) {
13946
      case STATUS:
13947
        return isSetStatus();
13948
      case START_BILLING_DATE:
13949
        return isSetStart_billing_date();
13950
      case END_BILLING_DATE:
13951
        return isSetEnd_billing_date();
13952
      case WAREHOUSE_ID:
13953
        return isSetWarehouse_id();
13954
      }
13955
      throw new IllegalStateException();
13956
    }
13957
 
13958
    @Override
13959
    public boolean equals(Object that) {
13960
      if (that == null)
13961
        return false;
13962
      if (that instanceof getOrdersByBillingDate_args)
13963
        return this.equals((getOrdersByBillingDate_args)that);
13964
      return false;
13965
    }
13966
 
13967
    public boolean equals(getOrdersByBillingDate_args that) {
13968
      if (that == null)
13969
        return false;
13970
 
13971
      boolean this_present_status = true && this.isSetStatus();
13972
      boolean that_present_status = true && that.isSetStatus();
13973
      if (this_present_status || that_present_status) {
13974
        if (!(this_present_status && that_present_status))
13975
          return false;
13976
        if (!this.status.equals(that.status))
13977
          return false;
13978
      }
13979
 
13980
      boolean this_present_start_billing_date = true;
13981
      boolean that_present_start_billing_date = true;
13982
      if (this_present_start_billing_date || that_present_start_billing_date) {
13983
        if (!(this_present_start_billing_date && that_present_start_billing_date))
13984
          return false;
13985
        if (this.start_billing_date != that.start_billing_date)
13986
          return false;
13987
      }
13988
 
13989
      boolean this_present_end_billing_date = true;
13990
      boolean that_present_end_billing_date = true;
13991
      if (this_present_end_billing_date || that_present_end_billing_date) {
13992
        if (!(this_present_end_billing_date && that_present_end_billing_date))
13993
          return false;
13994
        if (this.end_billing_date != that.end_billing_date)
13995
          return false;
13996
      }
13997
 
13998
      boolean this_present_warehouse_id = true;
13999
      boolean that_present_warehouse_id = true;
14000
      if (this_present_warehouse_id || that_present_warehouse_id) {
14001
        if (!(this_present_warehouse_id && that_present_warehouse_id))
14002
          return false;
14003
        if (this.warehouse_id != that.warehouse_id)
14004
          return false;
14005
      }
14006
 
14007
      return true;
14008
    }
14009
 
14010
    @Override
14011
    public int hashCode() {
14012
      return 0;
14013
    }
14014
 
14015
    public int compareTo(getOrdersByBillingDate_args other) {
14016
      if (!getClass().equals(other.getClass())) {
14017
        return getClass().getName().compareTo(other.getClass().getName());
14018
      }
14019
 
14020
      int lastComparison = 0;
14021
      getOrdersByBillingDate_args typedOther = (getOrdersByBillingDate_args)other;
14022
 
3430 rajveer 14023
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
1022 varun.gupt 14024
      if (lastComparison != 0) {
14025
        return lastComparison;
14026
      }
3430 rajveer 14027
      if (isSetStatus()) {
14028
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
14029
        if (lastComparison != 0) {
14030
          return lastComparison;
14031
        }
1022 varun.gupt 14032
      }
3430 rajveer 14033
      lastComparison = Boolean.valueOf(isSetStart_billing_date()).compareTo(typedOther.isSetStart_billing_date());
1022 varun.gupt 14034
      if (lastComparison != 0) {
14035
        return lastComparison;
14036
      }
3430 rajveer 14037
      if (isSetStart_billing_date()) {
14038
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start_billing_date, typedOther.start_billing_date);
14039
        if (lastComparison != 0) {
14040
          return lastComparison;
14041
        }
1022 varun.gupt 14042
      }
3430 rajveer 14043
      lastComparison = Boolean.valueOf(isSetEnd_billing_date()).compareTo(typedOther.isSetEnd_billing_date());
1022 varun.gupt 14044
      if (lastComparison != 0) {
14045
        return lastComparison;
14046
      }
3430 rajveer 14047
      if (isSetEnd_billing_date()) {
14048
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.end_billing_date, typedOther.end_billing_date);
14049
        if (lastComparison != 0) {
14050
          return lastComparison;
14051
        }
1022 varun.gupt 14052
      }
3430 rajveer 14053
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
1022 varun.gupt 14054
      if (lastComparison != 0) {
14055
        return lastComparison;
14056
      }
3430 rajveer 14057
      if (isSetWarehouse_id()) {
14058
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
14059
        if (lastComparison != 0) {
14060
          return lastComparison;
14061
        }
1022 varun.gupt 14062
      }
14063
      return 0;
14064
    }
14065
 
3430 rajveer 14066
    public _Fields fieldForId(int fieldId) {
14067
      return _Fields.findByThriftId(fieldId);
14068
    }
14069
 
14070
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14071
      org.apache.thrift.protocol.TField field;
1022 varun.gupt 14072
      iprot.readStructBegin();
14073
      while (true)
14074
      {
14075
        field = iprot.readFieldBegin();
3430 rajveer 14076
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1022 varun.gupt 14077
          break;
14078
        }
3430 rajveer 14079
        switch (field.id) {
14080
          case 1: // STATUS
14081
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14082
              this.status = OrderStatus.findByValue(iprot.readI32());
14083
            } else { 
14084
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14085
            }
14086
            break;
14087
          case 2: // START_BILLING_DATE
14088
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14089
              this.start_billing_date = iprot.readI64();
14090
              setStart_billing_dateIsSet(true);
14091
            } else { 
14092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14093
            }
14094
            break;
14095
          case 3: // END_BILLING_DATE
14096
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14097
              this.end_billing_date = iprot.readI64();
14098
              setEnd_billing_dateIsSet(true);
14099
            } else { 
14100
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14101
            }
14102
            break;
14103
          case 4: // WAREHOUSE_ID
14104
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14105
              this.warehouse_id = iprot.readI64();
14106
              setWarehouse_idIsSet(true);
14107
            } else { 
14108
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14109
            }
14110
            break;
14111
          default:
14112
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1022 varun.gupt 14113
        }
3430 rajveer 14114
        iprot.readFieldEnd();
1022 varun.gupt 14115
      }
14116
      iprot.readStructEnd();
14117
      validate();
14118
    }
14119
 
3430 rajveer 14120
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1022 varun.gupt 14121
      validate();
14122
 
14123
      oprot.writeStructBegin(STRUCT_DESC);
14124
      if (this.status != null) {
14125
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
14126
        oprot.writeI32(this.status.getValue());
14127
        oprot.writeFieldEnd();
14128
      }
14129
      oprot.writeFieldBegin(START_BILLING_DATE_FIELD_DESC);
14130
      oprot.writeI64(this.start_billing_date);
14131
      oprot.writeFieldEnd();
14132
      oprot.writeFieldBegin(END_BILLING_DATE_FIELD_DESC);
14133
      oprot.writeI64(this.end_billing_date);
14134
      oprot.writeFieldEnd();
14135
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
14136
      oprot.writeI64(this.warehouse_id);
14137
      oprot.writeFieldEnd();
14138
      oprot.writeFieldStop();
14139
      oprot.writeStructEnd();
14140
    }
14141
 
14142
    @Override
14143
    public String toString() {
14144
      StringBuilder sb = new StringBuilder("getOrdersByBillingDate_args(");
14145
      boolean first = true;
14146
 
14147
      sb.append("status:");
14148
      if (this.status == null) {
14149
        sb.append("null");
14150
      } else {
14151
        sb.append(this.status);
14152
      }
14153
      first = false;
14154
      if (!first) sb.append(", ");
14155
      sb.append("start_billing_date:");
14156
      sb.append(this.start_billing_date);
14157
      first = false;
14158
      if (!first) sb.append(", ");
14159
      sb.append("end_billing_date:");
14160
      sb.append(this.end_billing_date);
14161
      first = false;
14162
      if (!first) sb.append(", ");
14163
      sb.append("warehouse_id:");
14164
      sb.append(this.warehouse_id);
14165
      first = false;
14166
      sb.append(")");
14167
      return sb.toString();
14168
    }
14169
 
3430 rajveer 14170
    public void validate() throws org.apache.thrift.TException {
1022 varun.gupt 14171
      // check for required fields
14172
    }
14173
 
3430 rajveer 14174
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14175
      try {
14176
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14177
      } catch (org.apache.thrift.TException te) {
14178
        throw new java.io.IOException(te);
14179
      }
14180
    }
14181
 
14182
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14183
      try {
14184
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14185
        __isset_bit_vector = new BitSet(1);
14186
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14187
      } catch (org.apache.thrift.TException te) {
14188
        throw new java.io.IOException(te);
14189
      }
14190
    }
14191
 
1022 varun.gupt 14192
  }
14193
 
3430 rajveer 14194
  public static class getOrdersByBillingDate_result implements org.apache.thrift.TBase<getOrdersByBillingDate_result, getOrdersByBillingDate_result._Fields>, java.io.Serializable, Cloneable   {
14195
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByBillingDate_result");
1022 varun.gupt 14196
 
3430 rajveer 14197
    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);
14198
    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 14199
 
3430 rajveer 14200
    private List<Order> success; // required
14201
    private TransactionServiceException ex; // required
1022 varun.gupt 14202
 
14203
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14204
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1022 varun.gupt 14205
      SUCCESS((short)0, "success"),
14206
      EX((short)1, "ex");
14207
 
14208
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14209
 
14210
      static {
14211
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14212
          byName.put(field.getFieldName(), field);
14213
        }
14214
      }
14215
 
14216
      /**
14217
       * Find the _Fields constant that matches fieldId, or null if its not found.
14218
       */
14219
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14220
        switch(fieldId) {
14221
          case 0: // SUCCESS
14222
            return SUCCESS;
14223
          case 1: // EX
14224
            return EX;
14225
          default:
14226
            return null;
14227
        }
1022 varun.gupt 14228
      }
14229
 
14230
      /**
14231
       * Find the _Fields constant that matches fieldId, throwing an exception
14232
       * if it is not found.
14233
       */
14234
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14235
        _Fields fields = findByThriftId(fieldId);
14236
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14237
        return fields;
14238
      }
14239
 
14240
      /**
14241
       * Find the _Fields constant that matches name, or null if its not found.
14242
       */
14243
      public static _Fields findByName(String name) {
14244
        return byName.get(name);
14245
      }
14246
 
14247
      private final short _thriftId;
14248
      private final String _fieldName;
14249
 
14250
      _Fields(short thriftId, String fieldName) {
14251
        _thriftId = thriftId;
14252
        _fieldName = fieldName;
14253
      }
14254
 
14255
      public short getThriftFieldId() {
14256
        return _thriftId;
14257
      }
14258
 
14259
      public String getFieldName() {
14260
        return _fieldName;
14261
      }
14262
    }
14263
 
14264
    // isset id assignments
14265
 
3430 rajveer 14266
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1022 varun.gupt 14267
    static {
3430 rajveer 14268
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14269
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14270
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14271
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
14272
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14273
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14274
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14275
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByBillingDate_result.class, metaDataMap);
1022 varun.gupt 14276
    }
14277
 
14278
    public getOrdersByBillingDate_result() {
14279
    }
14280
 
14281
    public getOrdersByBillingDate_result(
14282
      List<Order> success,
14283
      TransactionServiceException ex)
14284
    {
14285
      this();
14286
      this.success = success;
14287
      this.ex = ex;
14288
    }
14289
 
14290
    /**
14291
     * Performs a deep copy on <i>other</i>.
14292
     */
14293
    public getOrdersByBillingDate_result(getOrdersByBillingDate_result other) {
14294
      if (other.isSetSuccess()) {
14295
        List<Order> __this__success = new ArrayList<Order>();
14296
        for (Order other_element : other.success) {
14297
          __this__success.add(new Order(other_element));
14298
        }
14299
        this.success = __this__success;
14300
      }
14301
      if (other.isSetEx()) {
14302
        this.ex = new TransactionServiceException(other.ex);
14303
      }
14304
    }
14305
 
14306
    public getOrdersByBillingDate_result deepCopy() {
14307
      return new getOrdersByBillingDate_result(this);
14308
    }
14309
 
3430 rajveer 14310
    @Override
14311
    public void clear() {
14312
      this.success = null;
14313
      this.ex = null;
1022 varun.gupt 14314
    }
14315
 
14316
    public int getSuccessSize() {
14317
      return (this.success == null) ? 0 : this.success.size();
14318
    }
14319
 
14320
    public java.util.Iterator<Order> getSuccessIterator() {
14321
      return (this.success == null) ? null : this.success.iterator();
14322
    }
14323
 
14324
    public void addToSuccess(Order elem) {
14325
      if (this.success == null) {
14326
        this.success = new ArrayList<Order>();
14327
      }
14328
      this.success.add(elem);
14329
    }
14330
 
14331
    public List<Order> getSuccess() {
14332
      return this.success;
14333
    }
14334
 
3430 rajveer 14335
    public void setSuccess(List<Order> success) {
1022 varun.gupt 14336
      this.success = success;
14337
    }
14338
 
14339
    public void unsetSuccess() {
14340
      this.success = null;
14341
    }
14342
 
3430 rajveer 14343
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1022 varun.gupt 14344
    public boolean isSetSuccess() {
14345
      return this.success != null;
14346
    }
14347
 
14348
    public void setSuccessIsSet(boolean value) {
14349
      if (!value) {
14350
        this.success = null;
14351
      }
14352
    }
14353
 
14354
    public TransactionServiceException getEx() {
14355
      return this.ex;
14356
    }
14357
 
3430 rajveer 14358
    public void setEx(TransactionServiceException ex) {
1022 varun.gupt 14359
      this.ex = ex;
14360
    }
14361
 
14362
    public void unsetEx() {
14363
      this.ex = null;
14364
    }
14365
 
3430 rajveer 14366
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1022 varun.gupt 14367
    public boolean isSetEx() {
14368
      return this.ex != null;
14369
    }
14370
 
14371
    public void setExIsSet(boolean value) {
14372
      if (!value) {
14373
        this.ex = null;
14374
      }
14375
    }
14376
 
14377
    public void setFieldValue(_Fields field, Object value) {
14378
      switch (field) {
14379
      case SUCCESS:
14380
        if (value == null) {
14381
          unsetSuccess();
14382
        } else {
14383
          setSuccess((List<Order>)value);
14384
        }
14385
        break;
14386
 
14387
      case EX:
14388
        if (value == null) {
14389
          unsetEx();
14390
        } else {
14391
          setEx((TransactionServiceException)value);
14392
        }
14393
        break;
14394
 
14395
      }
14396
    }
14397
 
14398
    public Object getFieldValue(_Fields field) {
14399
      switch (field) {
14400
      case SUCCESS:
14401
        return getSuccess();
14402
 
14403
      case EX:
14404
        return getEx();
14405
 
14406
      }
14407
      throw new IllegalStateException();
14408
    }
14409
 
3430 rajveer 14410
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14411
    public boolean isSet(_Fields field) {
14412
      if (field == null) {
14413
        throw new IllegalArgumentException();
14414
      }
1022 varun.gupt 14415
 
14416
      switch (field) {
14417
      case SUCCESS:
14418
        return isSetSuccess();
14419
      case EX:
14420
        return isSetEx();
14421
      }
14422
      throw new IllegalStateException();
14423
    }
14424
 
14425
    @Override
14426
    public boolean equals(Object that) {
14427
      if (that == null)
14428
        return false;
14429
      if (that instanceof getOrdersByBillingDate_result)
14430
        return this.equals((getOrdersByBillingDate_result)that);
14431
      return false;
14432
    }
14433
 
14434
    public boolean equals(getOrdersByBillingDate_result that) {
14435
      if (that == null)
14436
        return false;
14437
 
14438
      boolean this_present_success = true && this.isSetSuccess();
14439
      boolean that_present_success = true && that.isSetSuccess();
14440
      if (this_present_success || that_present_success) {
14441
        if (!(this_present_success && that_present_success))
14442
          return false;
14443
        if (!this.success.equals(that.success))
14444
          return false;
14445
      }
14446
 
14447
      boolean this_present_ex = true && this.isSetEx();
14448
      boolean that_present_ex = true && that.isSetEx();
14449
      if (this_present_ex || that_present_ex) {
14450
        if (!(this_present_ex && that_present_ex))
14451
          return false;
14452
        if (!this.ex.equals(that.ex))
14453
          return false;
14454
      }
14455
 
14456
      return true;
14457
    }
14458
 
14459
    @Override
14460
    public int hashCode() {
14461
      return 0;
14462
    }
14463
 
14464
    public int compareTo(getOrdersByBillingDate_result other) {
14465
      if (!getClass().equals(other.getClass())) {
14466
        return getClass().getName().compareTo(other.getClass().getName());
14467
      }
14468
 
14469
      int lastComparison = 0;
14470
      getOrdersByBillingDate_result typedOther = (getOrdersByBillingDate_result)other;
14471
 
3430 rajveer 14472
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1022 varun.gupt 14473
      if (lastComparison != 0) {
14474
        return lastComparison;
14475
      }
3430 rajveer 14476
      if (isSetSuccess()) {
14477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14478
        if (lastComparison != 0) {
14479
          return lastComparison;
14480
        }
1022 varun.gupt 14481
      }
3430 rajveer 14482
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1022 varun.gupt 14483
      if (lastComparison != 0) {
14484
        return lastComparison;
14485
      }
3430 rajveer 14486
      if (isSetEx()) {
14487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
14488
        if (lastComparison != 0) {
14489
          return lastComparison;
14490
        }
1022 varun.gupt 14491
      }
14492
      return 0;
14493
    }
14494
 
3430 rajveer 14495
    public _Fields fieldForId(int fieldId) {
14496
      return _Fields.findByThriftId(fieldId);
14497
    }
14498
 
14499
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14500
      org.apache.thrift.protocol.TField field;
1022 varun.gupt 14501
      iprot.readStructBegin();
14502
      while (true)
14503
      {
14504
        field = iprot.readFieldBegin();
3430 rajveer 14505
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1022 varun.gupt 14506
          break;
14507
        }
3430 rajveer 14508
        switch (field.id) {
14509
          case 0: // SUCCESS
14510
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14511
              {
4133 chandransh 14512
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
14513
                this.success = new ArrayList<Order>(_list32.size);
14514
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1022 varun.gupt 14515
                {
4133 chandransh 14516
                  Order _elem34; // required
14517
                  _elem34 = new Order();
14518
                  _elem34.read(iprot);
14519
                  this.success.add(_elem34);
1022 varun.gupt 14520
                }
3430 rajveer 14521
                iprot.readListEnd();
1022 varun.gupt 14522
              }
3430 rajveer 14523
            } else { 
14524
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14525
            }
14526
            break;
14527
          case 1: // EX
14528
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14529
              this.ex = new TransactionServiceException();
14530
              this.ex.read(iprot);
14531
            } else { 
14532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14533
            }
14534
            break;
14535
          default:
14536
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1022 varun.gupt 14537
        }
3430 rajveer 14538
        iprot.readFieldEnd();
1022 varun.gupt 14539
      }
14540
      iprot.readStructEnd();
14541
      validate();
14542
    }
14543
 
3430 rajveer 14544
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1022 varun.gupt 14545
      oprot.writeStructBegin(STRUCT_DESC);
14546
 
14547
      if (this.isSetSuccess()) {
14548
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14549
        {
3430 rajveer 14550
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 14551
          for (Order _iter35 : this.success)
1022 varun.gupt 14552
          {
4133 chandransh 14553
            _iter35.write(oprot);
1022 varun.gupt 14554
          }
14555
          oprot.writeListEnd();
14556
        }
14557
        oprot.writeFieldEnd();
14558
      } else if (this.isSetEx()) {
14559
        oprot.writeFieldBegin(EX_FIELD_DESC);
14560
        this.ex.write(oprot);
14561
        oprot.writeFieldEnd();
14562
      }
14563
      oprot.writeFieldStop();
14564
      oprot.writeStructEnd();
14565
    }
14566
 
14567
    @Override
14568
    public String toString() {
14569
      StringBuilder sb = new StringBuilder("getOrdersByBillingDate_result(");
14570
      boolean first = true;
14571
 
14572
      sb.append("success:");
14573
      if (this.success == null) {
14574
        sb.append("null");
14575
      } else {
14576
        sb.append(this.success);
14577
      }
14578
      first = false;
14579
      if (!first) sb.append(", ");
14580
      sb.append("ex:");
14581
      if (this.ex == null) {
14582
        sb.append("null");
14583
      } else {
14584
        sb.append(this.ex);
14585
      }
14586
      first = false;
14587
      sb.append(")");
14588
      return sb.toString();
14589
    }
14590
 
3430 rajveer 14591
    public void validate() throws org.apache.thrift.TException {
1022 varun.gupt 14592
      // check for required fields
14593
    }
14594
 
3430 rajveer 14595
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14596
      try {
14597
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14598
      } catch (org.apache.thrift.TException te) {
14599
        throw new java.io.IOException(te);
14600
      }
14601
    }
14602
 
14603
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14604
      try {
14605
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14606
      } catch (org.apache.thrift.TException te) {
14607
        throw new java.io.IOException(te);
14608
      }
14609
    }
14610
 
1022 varun.gupt 14611
  }
14612
 
3430 rajveer 14613
  public static class getOrdersByShippingDate_args implements org.apache.thrift.TBase<getOrdersByShippingDate_args, getOrdersByShippingDate_args._Fields>, java.io.Serializable, Cloneable   {
14614
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByShippingDate_args");
3427 chandransh 14615
 
3430 rajveer 14616
    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);
14617
    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);
14618
    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);
14619
    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 14620
    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 14621
 
3430 rajveer 14622
    private long fromShippingDate; // required
14623
    private long toShippingDate; // required
14624
    private long providerId; // required
14625
    private long warehouseId; // required
3451 chandransh 14626
    private boolean cod; // required
3427 chandransh 14627
 
14628
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14629
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3427 chandransh 14630
      FROM_SHIPPING_DATE((short)1, "fromShippingDate"),
14631
      TO_SHIPPING_DATE((short)2, "toShippingDate"),
14632
      PROVIDER_ID((short)3, "providerId"),
3451 chandransh 14633
      WAREHOUSE_ID((short)4, "warehouseId"),
14634
      COD((short)5, "cod");
3427 chandransh 14635
 
14636
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14637
 
14638
      static {
14639
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14640
          byName.put(field.getFieldName(), field);
14641
        }
14642
      }
14643
 
14644
      /**
14645
       * Find the _Fields constant that matches fieldId, or null if its not found.
14646
       */
14647
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14648
        switch(fieldId) {
14649
          case 1: // FROM_SHIPPING_DATE
14650
            return FROM_SHIPPING_DATE;
14651
          case 2: // TO_SHIPPING_DATE
14652
            return TO_SHIPPING_DATE;
14653
          case 3: // PROVIDER_ID
14654
            return PROVIDER_ID;
14655
          case 4: // WAREHOUSE_ID
14656
            return WAREHOUSE_ID;
3451 chandransh 14657
          case 5: // COD
14658
            return COD;
3430 rajveer 14659
          default:
14660
            return null;
14661
        }
3427 chandransh 14662
      }
14663
 
14664
      /**
14665
       * Find the _Fields constant that matches fieldId, throwing an exception
14666
       * if it is not found.
14667
       */
14668
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14669
        _Fields fields = findByThriftId(fieldId);
14670
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14671
        return fields;
14672
      }
14673
 
14674
      /**
14675
       * Find the _Fields constant that matches name, or null if its not found.
14676
       */
14677
      public static _Fields findByName(String name) {
14678
        return byName.get(name);
14679
      }
14680
 
14681
      private final short _thriftId;
14682
      private final String _fieldName;
14683
 
14684
      _Fields(short thriftId, String fieldName) {
14685
        _thriftId = thriftId;
14686
        _fieldName = fieldName;
14687
      }
14688
 
14689
      public short getThriftFieldId() {
14690
        return _thriftId;
14691
      }
14692
 
14693
      public String getFieldName() {
14694
        return _fieldName;
14695
      }
14696
    }
14697
 
14698
    // isset id assignments
14699
    private static final int __FROMSHIPPINGDATE_ISSET_ID = 0;
14700
    private static final int __TOSHIPPINGDATE_ISSET_ID = 1;
14701
    private static final int __PROVIDERID_ISSET_ID = 2;
14702
    private static final int __WAREHOUSEID_ISSET_ID = 3;
3451 chandransh 14703
    private static final int __COD_ISSET_ID = 4;
14704
    private BitSet __isset_bit_vector = new BitSet(5);
3427 chandransh 14705
 
3430 rajveer 14706
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3427 chandransh 14707
    static {
3430 rajveer 14708
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14709
      tmpMap.put(_Fields.FROM_SHIPPING_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromShippingDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14710
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14711
      tmpMap.put(_Fields.TO_SHIPPING_DATE, new org.apache.thrift.meta_data.FieldMetaData("toShippingDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14712
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14713
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14714
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14715
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14716
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3451 chandransh 14717
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14718
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3430 rajveer 14719
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14720
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByShippingDate_args.class, metaDataMap);
3427 chandransh 14721
    }
14722
 
14723
    public getOrdersByShippingDate_args() {
14724
    }
14725
 
14726
    public getOrdersByShippingDate_args(
14727
      long fromShippingDate,
14728
      long toShippingDate,
14729
      long providerId,
3451 chandransh 14730
      long warehouseId,
14731
      boolean cod)
3427 chandransh 14732
    {
14733
      this();
14734
      this.fromShippingDate = fromShippingDate;
14735
      setFromShippingDateIsSet(true);
14736
      this.toShippingDate = toShippingDate;
14737
      setToShippingDateIsSet(true);
14738
      this.providerId = providerId;
14739
      setProviderIdIsSet(true);
14740
      this.warehouseId = warehouseId;
14741
      setWarehouseIdIsSet(true);
3451 chandransh 14742
      this.cod = cod;
14743
      setCodIsSet(true);
3427 chandransh 14744
    }
14745
 
14746
    /**
14747
     * Performs a deep copy on <i>other</i>.
14748
     */
14749
    public getOrdersByShippingDate_args(getOrdersByShippingDate_args other) {
14750
      __isset_bit_vector.clear();
14751
      __isset_bit_vector.or(other.__isset_bit_vector);
14752
      this.fromShippingDate = other.fromShippingDate;
14753
      this.toShippingDate = other.toShippingDate;
14754
      this.providerId = other.providerId;
14755
      this.warehouseId = other.warehouseId;
3451 chandransh 14756
      this.cod = other.cod;
3427 chandransh 14757
    }
14758
 
14759
    public getOrdersByShippingDate_args deepCopy() {
14760
      return new getOrdersByShippingDate_args(this);
14761
    }
14762
 
3430 rajveer 14763
    @Override
14764
    public void clear() {
14765
      setFromShippingDateIsSet(false);
14766
      this.fromShippingDate = 0;
14767
      setToShippingDateIsSet(false);
14768
      this.toShippingDate = 0;
14769
      setProviderIdIsSet(false);
14770
      this.providerId = 0;
14771
      setWarehouseIdIsSet(false);
14772
      this.warehouseId = 0;
3451 chandransh 14773
      setCodIsSet(false);
14774
      this.cod = false;
3427 chandransh 14775
    }
14776
 
14777
    public long getFromShippingDate() {
14778
      return this.fromShippingDate;
14779
    }
14780
 
3430 rajveer 14781
    public void setFromShippingDate(long fromShippingDate) {
3427 chandransh 14782
      this.fromShippingDate = fromShippingDate;
14783
      setFromShippingDateIsSet(true);
14784
    }
14785
 
14786
    public void unsetFromShippingDate() {
14787
      __isset_bit_vector.clear(__FROMSHIPPINGDATE_ISSET_ID);
14788
    }
14789
 
3430 rajveer 14790
    /** Returns true if field fromShippingDate is set (has been assigned a value) and false otherwise */
3427 chandransh 14791
    public boolean isSetFromShippingDate() {
14792
      return __isset_bit_vector.get(__FROMSHIPPINGDATE_ISSET_ID);
14793
    }
14794
 
14795
    public void setFromShippingDateIsSet(boolean value) {
14796
      __isset_bit_vector.set(__FROMSHIPPINGDATE_ISSET_ID, value);
14797
    }
14798
 
14799
    public long getToShippingDate() {
14800
      return this.toShippingDate;
14801
    }
14802
 
3430 rajveer 14803
    public void setToShippingDate(long toShippingDate) {
3427 chandransh 14804
      this.toShippingDate = toShippingDate;
14805
      setToShippingDateIsSet(true);
14806
    }
14807
 
14808
    public void unsetToShippingDate() {
14809
      __isset_bit_vector.clear(__TOSHIPPINGDATE_ISSET_ID);
14810
    }
14811
 
3430 rajveer 14812
    /** Returns true if field toShippingDate is set (has been assigned a value) and false otherwise */
3427 chandransh 14813
    public boolean isSetToShippingDate() {
14814
      return __isset_bit_vector.get(__TOSHIPPINGDATE_ISSET_ID);
14815
    }
14816
 
14817
    public void setToShippingDateIsSet(boolean value) {
14818
      __isset_bit_vector.set(__TOSHIPPINGDATE_ISSET_ID, value);
14819
    }
14820
 
14821
    public long getProviderId() {
14822
      return this.providerId;
14823
    }
14824
 
3430 rajveer 14825
    public void setProviderId(long providerId) {
3427 chandransh 14826
      this.providerId = providerId;
14827
      setProviderIdIsSet(true);
14828
    }
14829
 
14830
    public void unsetProviderId() {
14831
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14832
    }
14833
 
3430 rajveer 14834
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3427 chandransh 14835
    public boolean isSetProviderId() {
14836
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14837
    }
14838
 
14839
    public void setProviderIdIsSet(boolean value) {
14840
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14841
    }
14842
 
14843
    public long getWarehouseId() {
14844
      return this.warehouseId;
14845
    }
14846
 
3430 rajveer 14847
    public void setWarehouseId(long warehouseId) {
3427 chandransh 14848
      this.warehouseId = warehouseId;
14849
      setWarehouseIdIsSet(true);
14850
    }
14851
 
14852
    public void unsetWarehouseId() {
14853
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
14854
    }
14855
 
3430 rajveer 14856
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
3427 chandransh 14857
    public boolean isSetWarehouseId() {
14858
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
14859
    }
14860
 
14861
    public void setWarehouseIdIsSet(boolean value) {
14862
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
14863
    }
14864
 
3451 chandransh 14865
    public boolean isCod() {
14866
      return this.cod;
14867
    }
14868
 
14869
    public void setCod(boolean cod) {
14870
      this.cod = cod;
14871
      setCodIsSet(true);
14872
    }
14873
 
14874
    public void unsetCod() {
14875
      __isset_bit_vector.clear(__COD_ISSET_ID);
14876
    }
14877
 
14878
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14879
    public boolean isSetCod() {
14880
      return __isset_bit_vector.get(__COD_ISSET_ID);
14881
    }
14882
 
14883
    public void setCodIsSet(boolean value) {
14884
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14885
    }
14886
 
3427 chandransh 14887
    public void setFieldValue(_Fields field, Object value) {
14888
      switch (field) {
14889
      case FROM_SHIPPING_DATE:
14890
        if (value == null) {
14891
          unsetFromShippingDate();
14892
        } else {
14893
          setFromShippingDate((Long)value);
14894
        }
14895
        break;
14896
 
14897
      case TO_SHIPPING_DATE:
14898
        if (value == null) {
14899
          unsetToShippingDate();
14900
        } else {
14901
          setToShippingDate((Long)value);
14902
        }
14903
        break;
14904
 
14905
      case PROVIDER_ID:
14906
        if (value == null) {
14907
          unsetProviderId();
14908
        } else {
14909
          setProviderId((Long)value);
14910
        }
14911
        break;
14912
 
14913
      case WAREHOUSE_ID:
14914
        if (value == null) {
14915
          unsetWarehouseId();
14916
        } else {
14917
          setWarehouseId((Long)value);
14918
        }
14919
        break;
14920
 
3451 chandransh 14921
      case COD:
14922
        if (value == null) {
14923
          unsetCod();
14924
        } else {
14925
          setCod((Boolean)value);
14926
        }
14927
        break;
14928
 
3427 chandransh 14929
      }
14930
    }
14931
 
14932
    public Object getFieldValue(_Fields field) {
14933
      switch (field) {
14934
      case FROM_SHIPPING_DATE:
3430 rajveer 14935
        return Long.valueOf(getFromShippingDate());
3427 chandransh 14936
 
14937
      case TO_SHIPPING_DATE:
3430 rajveer 14938
        return Long.valueOf(getToShippingDate());
3427 chandransh 14939
 
14940
      case PROVIDER_ID:
3430 rajveer 14941
        return Long.valueOf(getProviderId());
3427 chandransh 14942
 
14943
      case WAREHOUSE_ID:
3430 rajveer 14944
        return Long.valueOf(getWarehouseId());
3427 chandransh 14945
 
3451 chandransh 14946
      case COD:
14947
        return Boolean.valueOf(isCod());
14948
 
3427 chandransh 14949
      }
14950
      throw new IllegalStateException();
14951
    }
14952
 
3430 rajveer 14953
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14954
    public boolean isSet(_Fields field) {
14955
      if (field == null) {
14956
        throw new IllegalArgumentException();
14957
      }
3427 chandransh 14958
 
14959
      switch (field) {
14960
      case FROM_SHIPPING_DATE:
14961
        return isSetFromShippingDate();
14962
      case TO_SHIPPING_DATE:
14963
        return isSetToShippingDate();
14964
      case PROVIDER_ID:
14965
        return isSetProviderId();
14966
      case WAREHOUSE_ID:
14967
        return isSetWarehouseId();
3451 chandransh 14968
      case COD:
14969
        return isSetCod();
3427 chandransh 14970
      }
14971
      throw new IllegalStateException();
14972
    }
14973
 
14974
    @Override
14975
    public boolean equals(Object that) {
14976
      if (that == null)
14977
        return false;
14978
      if (that instanceof getOrdersByShippingDate_args)
14979
        return this.equals((getOrdersByShippingDate_args)that);
14980
      return false;
14981
    }
14982
 
14983
    public boolean equals(getOrdersByShippingDate_args that) {
14984
      if (that == null)
14985
        return false;
14986
 
14987
      boolean this_present_fromShippingDate = true;
14988
      boolean that_present_fromShippingDate = true;
14989
      if (this_present_fromShippingDate || that_present_fromShippingDate) {
14990
        if (!(this_present_fromShippingDate && that_present_fromShippingDate))
14991
          return false;
14992
        if (this.fromShippingDate != that.fromShippingDate)
14993
          return false;
14994
      }
14995
 
14996
      boolean this_present_toShippingDate = true;
14997
      boolean that_present_toShippingDate = true;
14998
      if (this_present_toShippingDate || that_present_toShippingDate) {
14999
        if (!(this_present_toShippingDate && that_present_toShippingDate))
15000
          return false;
15001
        if (this.toShippingDate != that.toShippingDate)
15002
          return false;
15003
      }
15004
 
15005
      boolean this_present_providerId = true;
15006
      boolean that_present_providerId = true;
15007
      if (this_present_providerId || that_present_providerId) {
15008
        if (!(this_present_providerId && that_present_providerId))
15009
          return false;
15010
        if (this.providerId != that.providerId)
15011
          return false;
15012
      }
15013
 
15014
      boolean this_present_warehouseId = true;
15015
      boolean that_present_warehouseId = true;
15016
      if (this_present_warehouseId || that_present_warehouseId) {
15017
        if (!(this_present_warehouseId && that_present_warehouseId))
15018
          return false;
15019
        if (this.warehouseId != that.warehouseId)
15020
          return false;
15021
      }
15022
 
3451 chandransh 15023
      boolean this_present_cod = true;
15024
      boolean that_present_cod = true;
15025
      if (this_present_cod || that_present_cod) {
15026
        if (!(this_present_cod && that_present_cod))
15027
          return false;
15028
        if (this.cod != that.cod)
15029
          return false;
15030
      }
15031
 
3427 chandransh 15032
      return true;
15033
    }
15034
 
15035
    @Override
15036
    public int hashCode() {
15037
      return 0;
15038
    }
15039
 
15040
    public int compareTo(getOrdersByShippingDate_args other) {
15041
      if (!getClass().equals(other.getClass())) {
15042
        return getClass().getName().compareTo(other.getClass().getName());
15043
      }
15044
 
15045
      int lastComparison = 0;
15046
      getOrdersByShippingDate_args typedOther = (getOrdersByShippingDate_args)other;
15047
 
3430 rajveer 15048
      lastComparison = Boolean.valueOf(isSetFromShippingDate()).compareTo(typedOther.isSetFromShippingDate());
3427 chandransh 15049
      if (lastComparison != 0) {
15050
        return lastComparison;
15051
      }
3430 rajveer 15052
      if (isSetFromShippingDate()) {
15053
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromShippingDate, typedOther.fromShippingDate);
15054
        if (lastComparison != 0) {
15055
          return lastComparison;
15056
        }
3427 chandransh 15057
      }
3430 rajveer 15058
      lastComparison = Boolean.valueOf(isSetToShippingDate()).compareTo(typedOther.isSetToShippingDate());
3427 chandransh 15059
      if (lastComparison != 0) {
15060
        return lastComparison;
15061
      }
3430 rajveer 15062
      if (isSetToShippingDate()) {
15063
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toShippingDate, typedOther.toShippingDate);
15064
        if (lastComparison != 0) {
15065
          return lastComparison;
15066
        }
3427 chandransh 15067
      }
3430 rajveer 15068
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
3427 chandransh 15069
      if (lastComparison != 0) {
15070
        return lastComparison;
15071
      }
3430 rajveer 15072
      if (isSetProviderId()) {
15073
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15074
        if (lastComparison != 0) {
15075
          return lastComparison;
15076
        }
3427 chandransh 15077
      }
3430 rajveer 15078
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
3427 chandransh 15079
      if (lastComparison != 0) {
15080
        return lastComparison;
15081
      }
3430 rajveer 15082
      if (isSetWarehouseId()) {
15083
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
15084
        if (lastComparison != 0) {
15085
          return lastComparison;
15086
        }
3427 chandransh 15087
      }
3451 chandransh 15088
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15089
      if (lastComparison != 0) {
15090
        return lastComparison;
15091
      }
15092
      if (isSetCod()) {
15093
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15094
        if (lastComparison != 0) {
15095
          return lastComparison;
15096
        }
15097
      }
3427 chandransh 15098
      return 0;
15099
    }
15100
 
3430 rajveer 15101
    public _Fields fieldForId(int fieldId) {
15102
      return _Fields.findByThriftId(fieldId);
15103
    }
15104
 
15105
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15106
      org.apache.thrift.protocol.TField field;
3427 chandransh 15107
      iprot.readStructBegin();
15108
      while (true)
15109
      {
15110
        field = iprot.readFieldBegin();
3430 rajveer 15111
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3427 chandransh 15112
          break;
15113
        }
3430 rajveer 15114
        switch (field.id) {
15115
          case 1: // FROM_SHIPPING_DATE
15116
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15117
              this.fromShippingDate = iprot.readI64();
15118
              setFromShippingDateIsSet(true);
15119
            } else { 
15120
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15121
            }
15122
            break;
15123
          case 2: // TO_SHIPPING_DATE
15124
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15125
              this.toShippingDate = iprot.readI64();
15126
              setToShippingDateIsSet(true);
15127
            } else { 
15128
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15129
            }
15130
            break;
15131
          case 3: // PROVIDER_ID
15132
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15133
              this.providerId = iprot.readI64();
15134
              setProviderIdIsSet(true);
15135
            } else { 
15136
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15137
            }
15138
            break;
15139
          case 4: // WAREHOUSE_ID
15140
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15141
              this.warehouseId = iprot.readI64();
15142
              setWarehouseIdIsSet(true);
15143
            } else { 
15144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15145
            }
15146
            break;
3451 chandransh 15147
          case 5: // COD
15148
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15149
              this.cod = iprot.readBool();
15150
              setCodIsSet(true);
15151
            } else { 
15152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15153
            }
15154
            break;
3430 rajveer 15155
          default:
15156
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3427 chandransh 15157
        }
3430 rajveer 15158
        iprot.readFieldEnd();
3427 chandransh 15159
      }
15160
      iprot.readStructEnd();
15161
      validate();
15162
    }
15163
 
3430 rajveer 15164
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3427 chandransh 15165
      validate();
15166
 
15167
      oprot.writeStructBegin(STRUCT_DESC);
15168
      oprot.writeFieldBegin(FROM_SHIPPING_DATE_FIELD_DESC);
15169
      oprot.writeI64(this.fromShippingDate);
15170
      oprot.writeFieldEnd();
15171
      oprot.writeFieldBegin(TO_SHIPPING_DATE_FIELD_DESC);
15172
      oprot.writeI64(this.toShippingDate);
15173
      oprot.writeFieldEnd();
15174
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15175
      oprot.writeI64(this.providerId);
15176
      oprot.writeFieldEnd();
15177
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
15178
      oprot.writeI64(this.warehouseId);
15179
      oprot.writeFieldEnd();
3451 chandransh 15180
      oprot.writeFieldBegin(COD_FIELD_DESC);
15181
      oprot.writeBool(this.cod);
15182
      oprot.writeFieldEnd();
3427 chandransh 15183
      oprot.writeFieldStop();
15184
      oprot.writeStructEnd();
15185
    }
15186
 
15187
    @Override
15188
    public String toString() {
15189
      StringBuilder sb = new StringBuilder("getOrdersByShippingDate_args(");
15190
      boolean first = true;
15191
 
15192
      sb.append("fromShippingDate:");
15193
      sb.append(this.fromShippingDate);
15194
      first = false;
15195
      if (!first) sb.append(", ");
15196
      sb.append("toShippingDate:");
15197
      sb.append(this.toShippingDate);
15198
      first = false;
15199
      if (!first) sb.append(", ");
15200
      sb.append("providerId:");
15201
      sb.append(this.providerId);
15202
      first = false;
15203
      if (!first) sb.append(", ");
15204
      sb.append("warehouseId:");
15205
      sb.append(this.warehouseId);
15206
      first = false;
3451 chandransh 15207
      if (!first) sb.append(", ");
15208
      sb.append("cod:");
15209
      sb.append(this.cod);
15210
      first = false;
3427 chandransh 15211
      sb.append(")");
15212
      return sb.toString();
15213
    }
15214
 
3430 rajveer 15215
    public void validate() throws org.apache.thrift.TException {
3427 chandransh 15216
      // check for required fields
15217
    }
15218
 
3430 rajveer 15219
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15220
      try {
15221
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15222
      } catch (org.apache.thrift.TException te) {
15223
        throw new java.io.IOException(te);
15224
      }
15225
    }
15226
 
15227
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15228
      try {
15229
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15230
      } catch (org.apache.thrift.TException te) {
15231
        throw new java.io.IOException(te);
15232
      }
15233
    }
15234
 
3427 chandransh 15235
  }
15236
 
3430 rajveer 15237
  public static class getOrdersByShippingDate_result implements org.apache.thrift.TBase<getOrdersByShippingDate_result, getOrdersByShippingDate_result._Fields>, java.io.Serializable, Cloneable   {
15238
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByShippingDate_result");
3427 chandransh 15239
 
3430 rajveer 15240
    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);
15241
    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 15242
 
3430 rajveer 15243
    private List<Order> success; // required
15244
    private TransactionServiceException ex; // required
3427 chandransh 15245
 
15246
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15247
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3427 chandransh 15248
      SUCCESS((short)0, "success"),
15249
      EX((short)1, "ex");
15250
 
15251
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15252
 
15253
      static {
15254
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15255
          byName.put(field.getFieldName(), field);
15256
        }
15257
      }
15258
 
15259
      /**
15260
       * Find the _Fields constant that matches fieldId, or null if its not found.
15261
       */
15262
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15263
        switch(fieldId) {
15264
          case 0: // SUCCESS
15265
            return SUCCESS;
15266
          case 1: // EX
15267
            return EX;
15268
          default:
15269
            return null;
15270
        }
3427 chandransh 15271
      }
15272
 
15273
      /**
15274
       * Find the _Fields constant that matches fieldId, throwing an exception
15275
       * if it is not found.
15276
       */
15277
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15278
        _Fields fields = findByThriftId(fieldId);
15279
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15280
        return fields;
15281
      }
15282
 
15283
      /**
15284
       * Find the _Fields constant that matches name, or null if its not found.
15285
       */
15286
      public static _Fields findByName(String name) {
15287
        return byName.get(name);
15288
      }
15289
 
15290
      private final short _thriftId;
15291
      private final String _fieldName;
15292
 
15293
      _Fields(short thriftId, String fieldName) {
15294
        _thriftId = thriftId;
15295
        _fieldName = fieldName;
15296
      }
15297
 
15298
      public short getThriftFieldId() {
15299
        return _thriftId;
15300
      }
15301
 
15302
      public String getFieldName() {
15303
        return _fieldName;
15304
      }
15305
    }
15306
 
15307
    // isset id assignments
15308
 
3430 rajveer 15309
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3427 chandransh 15310
    static {
3430 rajveer 15311
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15312
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15313
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15314
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
15315
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15316
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15317
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15318
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByShippingDate_result.class, metaDataMap);
3427 chandransh 15319
    }
15320
 
15321
    public getOrdersByShippingDate_result() {
15322
    }
15323
 
15324
    public getOrdersByShippingDate_result(
15325
      List<Order> success,
15326
      TransactionServiceException ex)
15327
    {
15328
      this();
15329
      this.success = success;
15330
      this.ex = ex;
15331
    }
15332
 
15333
    /**
15334
     * Performs a deep copy on <i>other</i>.
15335
     */
15336
    public getOrdersByShippingDate_result(getOrdersByShippingDate_result other) {
15337
      if (other.isSetSuccess()) {
15338
        List<Order> __this__success = new ArrayList<Order>();
15339
        for (Order other_element : other.success) {
15340
          __this__success.add(new Order(other_element));
15341
        }
15342
        this.success = __this__success;
15343
      }
15344
      if (other.isSetEx()) {
15345
        this.ex = new TransactionServiceException(other.ex);
15346
      }
15347
    }
15348
 
15349
    public getOrdersByShippingDate_result deepCopy() {
15350
      return new getOrdersByShippingDate_result(this);
15351
    }
15352
 
3430 rajveer 15353
    @Override
15354
    public void clear() {
15355
      this.success = null;
15356
      this.ex = null;
3427 chandransh 15357
    }
15358
 
15359
    public int getSuccessSize() {
15360
      return (this.success == null) ? 0 : this.success.size();
15361
    }
15362
 
15363
    public java.util.Iterator<Order> getSuccessIterator() {
15364
      return (this.success == null) ? null : this.success.iterator();
15365
    }
15366
 
15367
    public void addToSuccess(Order elem) {
15368
      if (this.success == null) {
15369
        this.success = new ArrayList<Order>();
15370
      }
15371
      this.success.add(elem);
15372
    }
15373
 
15374
    public List<Order> getSuccess() {
15375
      return this.success;
15376
    }
15377
 
3430 rajveer 15378
    public void setSuccess(List<Order> success) {
3427 chandransh 15379
      this.success = success;
15380
    }
15381
 
15382
    public void unsetSuccess() {
15383
      this.success = null;
15384
    }
15385
 
3430 rajveer 15386
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3427 chandransh 15387
    public boolean isSetSuccess() {
15388
      return this.success != null;
15389
    }
15390
 
15391
    public void setSuccessIsSet(boolean value) {
15392
      if (!value) {
15393
        this.success = null;
15394
      }
15395
    }
15396
 
15397
    public TransactionServiceException getEx() {
15398
      return this.ex;
15399
    }
15400
 
3430 rajveer 15401
    public void setEx(TransactionServiceException ex) {
3427 chandransh 15402
      this.ex = ex;
15403
    }
15404
 
15405
    public void unsetEx() {
15406
      this.ex = null;
15407
    }
15408
 
3430 rajveer 15409
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3427 chandransh 15410
    public boolean isSetEx() {
15411
      return this.ex != null;
15412
    }
15413
 
15414
    public void setExIsSet(boolean value) {
15415
      if (!value) {
15416
        this.ex = null;
15417
      }
15418
    }
15419
 
15420
    public void setFieldValue(_Fields field, Object value) {
15421
      switch (field) {
15422
      case SUCCESS:
15423
        if (value == null) {
15424
          unsetSuccess();
15425
        } else {
15426
          setSuccess((List<Order>)value);
15427
        }
15428
        break;
15429
 
15430
      case EX:
15431
        if (value == null) {
15432
          unsetEx();
15433
        } else {
15434
          setEx((TransactionServiceException)value);
15435
        }
15436
        break;
15437
 
15438
      }
15439
    }
15440
 
15441
    public Object getFieldValue(_Fields field) {
15442
      switch (field) {
15443
      case SUCCESS:
15444
        return getSuccess();
15445
 
15446
      case EX:
15447
        return getEx();
15448
 
15449
      }
15450
      throw new IllegalStateException();
15451
    }
15452
 
3430 rajveer 15453
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15454
    public boolean isSet(_Fields field) {
15455
      if (field == null) {
15456
        throw new IllegalArgumentException();
15457
      }
3427 chandransh 15458
 
15459
      switch (field) {
15460
      case SUCCESS:
15461
        return isSetSuccess();
15462
      case EX:
15463
        return isSetEx();
15464
      }
15465
      throw new IllegalStateException();
15466
    }
15467
 
15468
    @Override
15469
    public boolean equals(Object that) {
15470
      if (that == null)
15471
        return false;
15472
      if (that instanceof getOrdersByShippingDate_result)
15473
        return this.equals((getOrdersByShippingDate_result)that);
15474
      return false;
15475
    }
15476
 
15477
    public boolean equals(getOrdersByShippingDate_result that) {
15478
      if (that == null)
15479
        return false;
15480
 
15481
      boolean this_present_success = true && this.isSetSuccess();
15482
      boolean that_present_success = true && that.isSetSuccess();
15483
      if (this_present_success || that_present_success) {
15484
        if (!(this_present_success && that_present_success))
15485
          return false;
15486
        if (!this.success.equals(that.success))
15487
          return false;
15488
      }
15489
 
15490
      boolean this_present_ex = true && this.isSetEx();
15491
      boolean that_present_ex = true && that.isSetEx();
15492
      if (this_present_ex || that_present_ex) {
15493
        if (!(this_present_ex && that_present_ex))
15494
          return false;
15495
        if (!this.ex.equals(that.ex))
15496
          return false;
15497
      }
15498
 
15499
      return true;
15500
    }
15501
 
15502
    @Override
15503
    public int hashCode() {
15504
      return 0;
15505
    }
15506
 
15507
    public int compareTo(getOrdersByShippingDate_result other) {
15508
      if (!getClass().equals(other.getClass())) {
15509
        return getClass().getName().compareTo(other.getClass().getName());
15510
      }
15511
 
15512
      int lastComparison = 0;
15513
      getOrdersByShippingDate_result typedOther = (getOrdersByShippingDate_result)other;
15514
 
3430 rajveer 15515
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3427 chandransh 15516
      if (lastComparison != 0) {
15517
        return lastComparison;
15518
      }
3430 rajveer 15519
      if (isSetSuccess()) {
15520
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15521
        if (lastComparison != 0) {
15522
          return lastComparison;
15523
        }
3427 chandransh 15524
      }
3430 rajveer 15525
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
3427 chandransh 15526
      if (lastComparison != 0) {
15527
        return lastComparison;
15528
      }
3430 rajveer 15529
      if (isSetEx()) {
15530
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
15531
        if (lastComparison != 0) {
15532
          return lastComparison;
15533
        }
3427 chandransh 15534
      }
15535
      return 0;
15536
    }
15537
 
3430 rajveer 15538
    public _Fields fieldForId(int fieldId) {
15539
      return _Fields.findByThriftId(fieldId);
15540
    }
15541
 
15542
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15543
      org.apache.thrift.protocol.TField field;
3427 chandransh 15544
      iprot.readStructBegin();
15545
      while (true)
15546
      {
15547
        field = iprot.readFieldBegin();
3430 rajveer 15548
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3427 chandransh 15549
          break;
15550
        }
3430 rajveer 15551
        switch (field.id) {
15552
          case 0: // SUCCESS
15553
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15554
              {
4133 chandransh 15555
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
15556
                this.success = new ArrayList<Order>(_list36.size);
15557
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
3427 chandransh 15558
                {
4133 chandransh 15559
                  Order _elem38; // required
15560
                  _elem38 = new Order();
15561
                  _elem38.read(iprot);
15562
                  this.success.add(_elem38);
3427 chandransh 15563
                }
3430 rajveer 15564
                iprot.readListEnd();
3427 chandransh 15565
              }
3430 rajveer 15566
            } else { 
15567
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15568
            }
15569
            break;
15570
          case 1: // EX
15571
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15572
              this.ex = new TransactionServiceException();
15573
              this.ex.read(iprot);
15574
            } else { 
15575
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15576
            }
15577
            break;
15578
          default:
15579
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3427 chandransh 15580
        }
3430 rajveer 15581
        iprot.readFieldEnd();
3427 chandransh 15582
      }
15583
      iprot.readStructEnd();
15584
      validate();
15585
    }
15586
 
3430 rajveer 15587
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3427 chandransh 15588
      oprot.writeStructBegin(STRUCT_DESC);
15589
 
15590
      if (this.isSetSuccess()) {
15591
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15592
        {
3430 rajveer 15593
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 15594
          for (Order _iter39 : this.success)
3427 chandransh 15595
          {
4133 chandransh 15596
            _iter39.write(oprot);
3427 chandransh 15597
          }
15598
          oprot.writeListEnd();
15599
        }
15600
        oprot.writeFieldEnd();
15601
      } else if (this.isSetEx()) {
15602
        oprot.writeFieldBegin(EX_FIELD_DESC);
15603
        this.ex.write(oprot);
15604
        oprot.writeFieldEnd();
15605
      }
15606
      oprot.writeFieldStop();
15607
      oprot.writeStructEnd();
15608
    }
15609
 
15610
    @Override
15611
    public String toString() {
15612
      StringBuilder sb = new StringBuilder("getOrdersByShippingDate_result(");
15613
      boolean first = true;
15614
 
15615
      sb.append("success:");
15616
      if (this.success == null) {
15617
        sb.append("null");
15618
      } else {
15619
        sb.append(this.success);
15620
      }
15621
      first = false;
15622
      if (!first) sb.append(", ");
15623
      sb.append("ex:");
15624
      if (this.ex == null) {
15625
        sb.append("null");
15626
      } else {
15627
        sb.append(this.ex);
15628
      }
15629
      first = false;
15630
      sb.append(")");
15631
      return sb.toString();
15632
    }
15633
 
3430 rajveer 15634
    public void validate() throws org.apache.thrift.TException {
3427 chandransh 15635
      // check for required fields
15636
    }
15637
 
3430 rajveer 15638
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15639
      try {
15640
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15641
      } catch (org.apache.thrift.TException te) {
15642
        throw new java.io.IOException(te);
15643
      }
15644
    }
15645
 
15646
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15647
      try {
15648
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15649
      } catch (org.apache.thrift.TException te) {
15650
        throw new java.io.IOException(te);
15651
      }
15652
    }
15653
 
3427 chandransh 15654
  }
15655
 
3430 rajveer 15656
  public static class getReturnableOrdersForCustomer_args implements org.apache.thrift.TBase<getReturnableOrdersForCustomer_args, getReturnableOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
15657
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnableOrdersForCustomer_args");
1382 varun.gupt 15658
 
3430 rajveer 15659
    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);
15660
    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 15661
 
3430 rajveer 15662
    private long customer_id; // required
15663
    private long limit; // required
1382 varun.gupt 15664
 
15665
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15666
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 15667
      CUSTOMER_ID((short)1, "customer_id"),
15668
      LIMIT((short)2, "limit");
15669
 
15670
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15671
 
15672
      static {
15673
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15674
          byName.put(field.getFieldName(), field);
15675
        }
15676
      }
15677
 
15678
      /**
15679
       * Find the _Fields constant that matches fieldId, or null if its not found.
15680
       */
15681
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15682
        switch(fieldId) {
15683
          case 1: // CUSTOMER_ID
15684
            return CUSTOMER_ID;
15685
          case 2: // LIMIT
15686
            return LIMIT;
15687
          default:
15688
            return null;
15689
        }
1382 varun.gupt 15690
      }
15691
 
15692
      /**
15693
       * Find the _Fields constant that matches fieldId, throwing an exception
15694
       * if it is not found.
15695
       */
15696
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15697
        _Fields fields = findByThriftId(fieldId);
15698
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15699
        return fields;
15700
      }
15701
 
15702
      /**
15703
       * Find the _Fields constant that matches name, or null if its not found.
15704
       */
15705
      public static _Fields findByName(String name) {
15706
        return byName.get(name);
15707
      }
15708
 
15709
      private final short _thriftId;
15710
      private final String _fieldName;
15711
 
15712
      _Fields(short thriftId, String fieldName) {
15713
        _thriftId = thriftId;
15714
        _fieldName = fieldName;
15715
      }
15716
 
15717
      public short getThriftFieldId() {
15718
        return _thriftId;
15719
      }
15720
 
15721
      public String getFieldName() {
15722
        return _fieldName;
15723
      }
15724
    }
15725
 
15726
    // isset id assignments
15727
    private static final int __CUSTOMER_ID_ISSET_ID = 0;
15728
    private static final int __LIMIT_ISSET_ID = 1;
15729
    private BitSet __isset_bit_vector = new BitSet(2);
15730
 
3430 rajveer 15731
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 15732
    static {
3430 rajveer 15733
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15734
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customer_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15735
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15736
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15737
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15738
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15739
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnableOrdersForCustomer_args.class, metaDataMap);
1382 varun.gupt 15740
    }
15741
 
15742
    public getReturnableOrdersForCustomer_args() {
15743
    }
15744
 
15745
    public getReturnableOrdersForCustomer_args(
15746
      long customer_id,
15747
      long limit)
15748
    {
15749
      this();
15750
      this.customer_id = customer_id;
15751
      setCustomer_idIsSet(true);
15752
      this.limit = limit;
15753
      setLimitIsSet(true);
15754
    }
15755
 
15756
    /**
15757
     * Performs a deep copy on <i>other</i>.
15758
     */
15759
    public getReturnableOrdersForCustomer_args(getReturnableOrdersForCustomer_args other) {
15760
      __isset_bit_vector.clear();
15761
      __isset_bit_vector.or(other.__isset_bit_vector);
15762
      this.customer_id = other.customer_id;
15763
      this.limit = other.limit;
15764
    }
15765
 
15766
    public getReturnableOrdersForCustomer_args deepCopy() {
15767
      return new getReturnableOrdersForCustomer_args(this);
15768
    }
15769
 
3430 rajveer 15770
    @Override
15771
    public void clear() {
15772
      setCustomer_idIsSet(false);
15773
      this.customer_id = 0;
15774
      setLimitIsSet(false);
15775
      this.limit = 0;
1382 varun.gupt 15776
    }
15777
 
15778
    public long getCustomer_id() {
15779
      return this.customer_id;
15780
    }
15781
 
3430 rajveer 15782
    public void setCustomer_id(long customer_id) {
1382 varun.gupt 15783
      this.customer_id = customer_id;
15784
      setCustomer_idIsSet(true);
15785
    }
15786
 
15787
    public void unsetCustomer_id() {
15788
      __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
15789
    }
15790
 
3430 rajveer 15791
    /** Returns true if field customer_id is set (has been assigned a value) and false otherwise */
1382 varun.gupt 15792
    public boolean isSetCustomer_id() {
15793
      return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
15794
    }
15795
 
15796
    public void setCustomer_idIsSet(boolean value) {
15797
      __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
15798
    }
15799
 
15800
    public long getLimit() {
15801
      return this.limit;
15802
    }
15803
 
3430 rajveer 15804
    public void setLimit(long limit) {
1382 varun.gupt 15805
      this.limit = limit;
15806
      setLimitIsSet(true);
15807
    }
15808
 
15809
    public void unsetLimit() {
15810
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
15811
    }
15812
 
3430 rajveer 15813
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
1382 varun.gupt 15814
    public boolean isSetLimit() {
15815
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
15816
    }
15817
 
15818
    public void setLimitIsSet(boolean value) {
15819
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
15820
    }
15821
 
15822
    public void setFieldValue(_Fields field, Object value) {
15823
      switch (field) {
15824
      case CUSTOMER_ID:
15825
        if (value == null) {
15826
          unsetCustomer_id();
15827
        } else {
15828
          setCustomer_id((Long)value);
15829
        }
15830
        break;
15831
 
15832
      case LIMIT:
15833
        if (value == null) {
15834
          unsetLimit();
15835
        } else {
15836
          setLimit((Long)value);
15837
        }
15838
        break;
15839
 
15840
      }
15841
    }
15842
 
15843
    public Object getFieldValue(_Fields field) {
15844
      switch (field) {
15845
      case CUSTOMER_ID:
3430 rajveer 15846
        return Long.valueOf(getCustomer_id());
1382 varun.gupt 15847
 
15848
      case LIMIT:
3430 rajveer 15849
        return Long.valueOf(getLimit());
1382 varun.gupt 15850
 
15851
      }
15852
      throw new IllegalStateException();
15853
    }
15854
 
3430 rajveer 15855
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15856
    public boolean isSet(_Fields field) {
15857
      if (field == null) {
15858
        throw new IllegalArgumentException();
15859
      }
1382 varun.gupt 15860
 
15861
      switch (field) {
15862
      case CUSTOMER_ID:
15863
        return isSetCustomer_id();
15864
      case LIMIT:
15865
        return isSetLimit();
15866
      }
15867
      throw new IllegalStateException();
15868
    }
15869
 
15870
    @Override
15871
    public boolean equals(Object that) {
15872
      if (that == null)
15873
        return false;
15874
      if (that instanceof getReturnableOrdersForCustomer_args)
15875
        return this.equals((getReturnableOrdersForCustomer_args)that);
15876
      return false;
15877
    }
15878
 
15879
    public boolean equals(getReturnableOrdersForCustomer_args that) {
15880
      if (that == null)
15881
        return false;
15882
 
15883
      boolean this_present_customer_id = true;
15884
      boolean that_present_customer_id = true;
15885
      if (this_present_customer_id || that_present_customer_id) {
15886
        if (!(this_present_customer_id && that_present_customer_id))
15887
          return false;
15888
        if (this.customer_id != that.customer_id)
15889
          return false;
15890
      }
15891
 
15892
      boolean this_present_limit = true;
15893
      boolean that_present_limit = true;
15894
      if (this_present_limit || that_present_limit) {
15895
        if (!(this_present_limit && that_present_limit))
15896
          return false;
15897
        if (this.limit != that.limit)
15898
          return false;
15899
      }
15900
 
15901
      return true;
15902
    }
15903
 
15904
    @Override
15905
    public int hashCode() {
15906
      return 0;
15907
    }
15908
 
15909
    public int compareTo(getReturnableOrdersForCustomer_args other) {
15910
      if (!getClass().equals(other.getClass())) {
15911
        return getClass().getName().compareTo(other.getClass().getName());
15912
      }
15913
 
15914
      int lastComparison = 0;
15915
      getReturnableOrdersForCustomer_args typedOther = (getReturnableOrdersForCustomer_args)other;
15916
 
3430 rajveer 15917
      lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(typedOther.isSetCustomer_id());
1382 varun.gupt 15918
      if (lastComparison != 0) {
15919
        return lastComparison;
15920
      }
3430 rajveer 15921
      if (isSetCustomer_id()) {
15922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_id, typedOther.customer_id);
15923
        if (lastComparison != 0) {
15924
          return lastComparison;
15925
        }
1382 varun.gupt 15926
      }
3430 rajveer 15927
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
1382 varun.gupt 15928
      if (lastComparison != 0) {
15929
        return lastComparison;
15930
      }
3430 rajveer 15931
      if (isSetLimit()) {
15932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
15933
        if (lastComparison != 0) {
15934
          return lastComparison;
15935
        }
1382 varun.gupt 15936
      }
15937
      return 0;
15938
    }
15939
 
3430 rajveer 15940
    public _Fields fieldForId(int fieldId) {
15941
      return _Fields.findByThriftId(fieldId);
15942
    }
15943
 
15944
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15945
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 15946
      iprot.readStructBegin();
15947
      while (true)
15948
      {
15949
        field = iprot.readFieldBegin();
3430 rajveer 15950
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 15951
          break;
15952
        }
3430 rajveer 15953
        switch (field.id) {
15954
          case 1: // CUSTOMER_ID
15955
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15956
              this.customer_id = iprot.readI64();
15957
              setCustomer_idIsSet(true);
15958
            } else { 
15959
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15960
            }
15961
            break;
15962
          case 2: // LIMIT
15963
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15964
              this.limit = iprot.readI64();
15965
              setLimitIsSet(true);
15966
            } else { 
15967
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15968
            }
15969
            break;
15970
          default:
15971
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 15972
        }
3430 rajveer 15973
        iprot.readFieldEnd();
1382 varun.gupt 15974
      }
15975
      iprot.readStructEnd();
15976
      validate();
15977
    }
15978
 
3430 rajveer 15979
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 15980
      validate();
15981
 
15982
      oprot.writeStructBegin(STRUCT_DESC);
15983
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
15984
      oprot.writeI64(this.customer_id);
15985
      oprot.writeFieldEnd();
15986
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
15987
      oprot.writeI64(this.limit);
15988
      oprot.writeFieldEnd();
15989
      oprot.writeFieldStop();
15990
      oprot.writeStructEnd();
15991
    }
15992
 
15993
    @Override
15994
    public String toString() {
15995
      StringBuilder sb = new StringBuilder("getReturnableOrdersForCustomer_args(");
15996
      boolean first = true;
15997
 
15998
      sb.append("customer_id:");
15999
      sb.append(this.customer_id);
16000
      first = false;
16001
      if (!first) sb.append(", ");
16002
      sb.append("limit:");
16003
      sb.append(this.limit);
16004
      first = false;
16005
      sb.append(")");
16006
      return sb.toString();
16007
    }
16008
 
3430 rajveer 16009
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 16010
      // check for required fields
16011
    }
16012
 
3430 rajveer 16013
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16014
      try {
16015
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16016
      } catch (org.apache.thrift.TException te) {
16017
        throw new java.io.IOException(te);
16018
      }
16019
    }
16020
 
16021
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16022
      try {
16023
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16024
        __isset_bit_vector = new BitSet(1);
16025
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16026
      } catch (org.apache.thrift.TException te) {
16027
        throw new java.io.IOException(te);
16028
      }
16029
    }
16030
 
1382 varun.gupt 16031
  }
16032
 
3430 rajveer 16033
  public static class getReturnableOrdersForCustomer_result implements org.apache.thrift.TBase<getReturnableOrdersForCustomer_result, getReturnableOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
16034
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnableOrdersForCustomer_result");
1382 varun.gupt 16035
 
3430 rajveer 16036
    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);
16037
    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 16038
 
3430 rajveer 16039
    private List<Long> success; // required
16040
    private TransactionServiceException ex; // required
1382 varun.gupt 16041
 
16042
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16043
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 16044
      SUCCESS((short)0, "success"),
16045
      EX((short)1, "ex");
16046
 
16047
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16048
 
16049
      static {
16050
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16051
          byName.put(field.getFieldName(), field);
16052
        }
16053
      }
16054
 
16055
      /**
16056
       * Find the _Fields constant that matches fieldId, or null if its not found.
16057
       */
16058
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16059
        switch(fieldId) {
16060
          case 0: // SUCCESS
16061
            return SUCCESS;
16062
          case 1: // EX
16063
            return EX;
16064
          default:
16065
            return null;
16066
        }
1382 varun.gupt 16067
      }
16068
 
16069
      /**
16070
       * Find the _Fields constant that matches fieldId, throwing an exception
16071
       * if it is not found.
16072
       */
16073
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16074
        _Fields fields = findByThriftId(fieldId);
16075
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16076
        return fields;
16077
      }
16078
 
16079
      /**
16080
       * Find the _Fields constant that matches name, or null if its not found.
16081
       */
16082
      public static _Fields findByName(String name) {
16083
        return byName.get(name);
16084
      }
16085
 
16086
      private final short _thriftId;
16087
      private final String _fieldName;
16088
 
16089
      _Fields(short thriftId, String fieldName) {
16090
        _thriftId = thriftId;
16091
        _fieldName = fieldName;
16092
      }
16093
 
16094
      public short getThriftFieldId() {
16095
        return _thriftId;
16096
      }
16097
 
16098
      public String getFieldName() {
16099
        return _fieldName;
16100
      }
16101
    }
16102
 
16103
    // isset id assignments
16104
 
3430 rajveer 16105
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 16106
    static {
3430 rajveer 16107
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16108
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16109
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16110
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
16111
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16112
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16113
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16114
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnableOrdersForCustomer_result.class, metaDataMap);
1382 varun.gupt 16115
    }
16116
 
16117
    public getReturnableOrdersForCustomer_result() {
16118
    }
16119
 
16120
    public getReturnableOrdersForCustomer_result(
16121
      List<Long> success,
16122
      TransactionServiceException ex)
16123
    {
16124
      this();
16125
      this.success = success;
16126
      this.ex = ex;
16127
    }
16128
 
16129
    /**
16130
     * Performs a deep copy on <i>other</i>.
16131
     */
16132
    public getReturnableOrdersForCustomer_result(getReturnableOrdersForCustomer_result other) {
16133
      if (other.isSetSuccess()) {
16134
        List<Long> __this__success = new ArrayList<Long>();
16135
        for (Long other_element : other.success) {
16136
          __this__success.add(other_element);
16137
        }
16138
        this.success = __this__success;
16139
      }
16140
      if (other.isSetEx()) {
16141
        this.ex = new TransactionServiceException(other.ex);
16142
      }
16143
    }
16144
 
16145
    public getReturnableOrdersForCustomer_result deepCopy() {
16146
      return new getReturnableOrdersForCustomer_result(this);
16147
    }
16148
 
3430 rajveer 16149
    @Override
16150
    public void clear() {
16151
      this.success = null;
16152
      this.ex = null;
1382 varun.gupt 16153
    }
16154
 
16155
    public int getSuccessSize() {
16156
      return (this.success == null) ? 0 : this.success.size();
16157
    }
16158
 
16159
    public java.util.Iterator<Long> getSuccessIterator() {
16160
      return (this.success == null) ? null : this.success.iterator();
16161
    }
16162
 
16163
    public void addToSuccess(long elem) {
16164
      if (this.success == null) {
16165
        this.success = new ArrayList<Long>();
16166
      }
16167
      this.success.add(elem);
16168
    }
16169
 
16170
    public List<Long> getSuccess() {
16171
      return this.success;
16172
    }
16173
 
3430 rajveer 16174
    public void setSuccess(List<Long> success) {
1382 varun.gupt 16175
      this.success = success;
16176
    }
16177
 
16178
    public void unsetSuccess() {
16179
      this.success = null;
16180
    }
16181
 
3430 rajveer 16182
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1382 varun.gupt 16183
    public boolean isSetSuccess() {
16184
      return this.success != null;
16185
    }
16186
 
16187
    public void setSuccessIsSet(boolean value) {
16188
      if (!value) {
16189
        this.success = null;
16190
      }
16191
    }
16192
 
16193
    public TransactionServiceException getEx() {
16194
      return this.ex;
16195
    }
16196
 
3430 rajveer 16197
    public void setEx(TransactionServiceException ex) {
1382 varun.gupt 16198
      this.ex = ex;
16199
    }
16200
 
16201
    public void unsetEx() {
16202
      this.ex = null;
16203
    }
16204
 
3430 rajveer 16205
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1382 varun.gupt 16206
    public boolean isSetEx() {
16207
      return this.ex != null;
16208
    }
16209
 
16210
    public void setExIsSet(boolean value) {
16211
      if (!value) {
16212
        this.ex = null;
16213
      }
16214
    }
16215
 
16216
    public void setFieldValue(_Fields field, Object value) {
16217
      switch (field) {
16218
      case SUCCESS:
16219
        if (value == null) {
16220
          unsetSuccess();
16221
        } else {
16222
          setSuccess((List<Long>)value);
16223
        }
16224
        break;
16225
 
16226
      case EX:
16227
        if (value == null) {
16228
          unsetEx();
16229
        } else {
16230
          setEx((TransactionServiceException)value);
16231
        }
16232
        break;
16233
 
16234
      }
16235
    }
16236
 
16237
    public Object getFieldValue(_Fields field) {
16238
      switch (field) {
16239
      case SUCCESS:
16240
        return getSuccess();
16241
 
16242
      case EX:
16243
        return getEx();
16244
 
16245
      }
16246
      throw new IllegalStateException();
16247
    }
16248
 
3430 rajveer 16249
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16250
    public boolean isSet(_Fields field) {
16251
      if (field == null) {
16252
        throw new IllegalArgumentException();
16253
      }
1382 varun.gupt 16254
 
16255
      switch (field) {
16256
      case SUCCESS:
16257
        return isSetSuccess();
16258
      case EX:
16259
        return isSetEx();
16260
      }
16261
      throw new IllegalStateException();
16262
    }
16263
 
16264
    @Override
16265
    public boolean equals(Object that) {
16266
      if (that == null)
16267
        return false;
16268
      if (that instanceof getReturnableOrdersForCustomer_result)
16269
        return this.equals((getReturnableOrdersForCustomer_result)that);
16270
      return false;
16271
    }
16272
 
16273
    public boolean equals(getReturnableOrdersForCustomer_result that) {
16274
      if (that == null)
16275
        return false;
16276
 
16277
      boolean this_present_success = true && this.isSetSuccess();
16278
      boolean that_present_success = true && that.isSetSuccess();
16279
      if (this_present_success || that_present_success) {
16280
        if (!(this_present_success && that_present_success))
16281
          return false;
16282
        if (!this.success.equals(that.success))
16283
          return false;
16284
      }
16285
 
16286
      boolean this_present_ex = true && this.isSetEx();
16287
      boolean that_present_ex = true && that.isSetEx();
16288
      if (this_present_ex || that_present_ex) {
16289
        if (!(this_present_ex && that_present_ex))
16290
          return false;
16291
        if (!this.ex.equals(that.ex))
16292
          return false;
16293
      }
16294
 
16295
      return true;
16296
    }
16297
 
16298
    @Override
16299
    public int hashCode() {
16300
      return 0;
16301
    }
16302
 
16303
    public int compareTo(getReturnableOrdersForCustomer_result other) {
16304
      if (!getClass().equals(other.getClass())) {
16305
        return getClass().getName().compareTo(other.getClass().getName());
16306
      }
16307
 
16308
      int lastComparison = 0;
16309
      getReturnableOrdersForCustomer_result typedOther = (getReturnableOrdersForCustomer_result)other;
16310
 
3430 rajveer 16311
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1382 varun.gupt 16312
      if (lastComparison != 0) {
16313
        return lastComparison;
16314
      }
3430 rajveer 16315
      if (isSetSuccess()) {
16316
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16317
        if (lastComparison != 0) {
16318
          return lastComparison;
16319
        }
1382 varun.gupt 16320
      }
3430 rajveer 16321
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1382 varun.gupt 16322
      if (lastComparison != 0) {
16323
        return lastComparison;
16324
      }
3430 rajveer 16325
      if (isSetEx()) {
16326
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
16327
        if (lastComparison != 0) {
16328
          return lastComparison;
16329
        }
1382 varun.gupt 16330
      }
16331
      return 0;
16332
    }
16333
 
3430 rajveer 16334
    public _Fields fieldForId(int fieldId) {
16335
      return _Fields.findByThriftId(fieldId);
16336
    }
16337
 
16338
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16339
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 16340
      iprot.readStructBegin();
16341
      while (true)
16342
      {
16343
        field = iprot.readFieldBegin();
3430 rajveer 16344
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 16345
          break;
16346
        }
3430 rajveer 16347
        switch (field.id) {
16348
          case 0: // SUCCESS
16349
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16350
              {
4133 chandransh 16351
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
16352
                this.success = new ArrayList<Long>(_list40.size);
16353
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
1382 varun.gupt 16354
                {
4133 chandransh 16355
                  long _elem42; // required
16356
                  _elem42 = iprot.readI64();
16357
                  this.success.add(_elem42);
1382 varun.gupt 16358
                }
3430 rajveer 16359
                iprot.readListEnd();
1382 varun.gupt 16360
              }
3430 rajveer 16361
            } else { 
16362
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16363
            }
16364
            break;
16365
          case 1: // EX
16366
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16367
              this.ex = new TransactionServiceException();
16368
              this.ex.read(iprot);
16369
            } else { 
16370
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16371
            }
16372
            break;
16373
          default:
16374
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 16375
        }
3430 rajveer 16376
        iprot.readFieldEnd();
1382 varun.gupt 16377
      }
16378
      iprot.readStructEnd();
16379
      validate();
16380
    }
16381
 
3430 rajveer 16382
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 16383
      oprot.writeStructBegin(STRUCT_DESC);
16384
 
16385
      if (this.isSetSuccess()) {
16386
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16387
        {
3430 rajveer 16388
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
4133 chandransh 16389
          for (long _iter43 : this.success)
1382 varun.gupt 16390
          {
4133 chandransh 16391
            oprot.writeI64(_iter43);
1382 varun.gupt 16392
          }
16393
          oprot.writeListEnd();
16394
        }
16395
        oprot.writeFieldEnd();
16396
      } else if (this.isSetEx()) {
16397
        oprot.writeFieldBegin(EX_FIELD_DESC);
16398
        this.ex.write(oprot);
16399
        oprot.writeFieldEnd();
16400
      }
16401
      oprot.writeFieldStop();
16402
      oprot.writeStructEnd();
16403
    }
16404
 
16405
    @Override
16406
    public String toString() {
16407
      StringBuilder sb = new StringBuilder("getReturnableOrdersForCustomer_result(");
16408
      boolean first = true;
16409
 
16410
      sb.append("success:");
16411
      if (this.success == null) {
16412
        sb.append("null");
16413
      } else {
16414
        sb.append(this.success);
16415
      }
16416
      first = false;
16417
      if (!first) sb.append(", ");
16418
      sb.append("ex:");
16419
      if (this.ex == null) {
16420
        sb.append("null");
16421
      } else {
16422
        sb.append(this.ex);
16423
      }
16424
      first = false;
16425
      sb.append(")");
16426
      return sb.toString();
16427
    }
16428
 
3430 rajveer 16429
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 16430
      // check for required fields
16431
    }
16432
 
3430 rajveer 16433
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16434
      try {
16435
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16436
      } catch (org.apache.thrift.TException te) {
16437
        throw new java.io.IOException(te);
16438
      }
16439
    }
16440
 
16441
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16442
      try {
16443
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16444
      } catch (org.apache.thrift.TException te) {
16445
        throw new java.io.IOException(te);
16446
      }
16447
    }
16448
 
1382 varun.gupt 16449
  }
16450
 
3430 rajveer 16451
  public static class getCancellableOrdersForCustomer_args implements org.apache.thrift.TBase<getCancellableOrdersForCustomer_args, getCancellableOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
16452
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCancellableOrdersForCustomer_args");
1382 varun.gupt 16453
 
3430 rajveer 16454
    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);
16455
    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 16456
 
3430 rajveer 16457
    private long customer_id; // required
16458
    private long limit; // required
1382 varun.gupt 16459
 
16460
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16461
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 16462
      CUSTOMER_ID((short)1, "customer_id"),
16463
      LIMIT((short)2, "limit");
16464
 
16465
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16466
 
16467
      static {
16468
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16469
          byName.put(field.getFieldName(), field);
16470
        }
16471
      }
16472
 
16473
      /**
16474
       * Find the _Fields constant that matches fieldId, or null if its not found.
16475
       */
16476
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16477
        switch(fieldId) {
16478
          case 1: // CUSTOMER_ID
16479
            return CUSTOMER_ID;
16480
          case 2: // LIMIT
16481
            return LIMIT;
16482
          default:
16483
            return null;
16484
        }
1382 varun.gupt 16485
      }
16486
 
16487
      /**
16488
       * Find the _Fields constant that matches fieldId, throwing an exception
16489
       * if it is not found.
16490
       */
16491
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16492
        _Fields fields = findByThriftId(fieldId);
16493
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16494
        return fields;
16495
      }
16496
 
16497
      /**
16498
       * Find the _Fields constant that matches name, or null if its not found.
16499
       */
16500
      public static _Fields findByName(String name) {
16501
        return byName.get(name);
16502
      }
16503
 
16504
      private final short _thriftId;
16505
      private final String _fieldName;
16506
 
16507
      _Fields(short thriftId, String fieldName) {
16508
        _thriftId = thriftId;
16509
        _fieldName = fieldName;
16510
      }
16511
 
16512
      public short getThriftFieldId() {
16513
        return _thriftId;
16514
      }
16515
 
16516
      public String getFieldName() {
16517
        return _fieldName;
16518
      }
16519
    }
16520
 
16521
    // isset id assignments
16522
    private static final int __CUSTOMER_ID_ISSET_ID = 0;
16523
    private static final int __LIMIT_ISSET_ID = 1;
16524
    private BitSet __isset_bit_vector = new BitSet(2);
16525
 
3430 rajveer 16526
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 16527
    static {
3430 rajveer 16528
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16529
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customer_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16530
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16531
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16532
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16533
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16534
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCancellableOrdersForCustomer_args.class, metaDataMap);
1382 varun.gupt 16535
    }
16536
 
16537
    public getCancellableOrdersForCustomer_args() {
16538
    }
16539
 
16540
    public getCancellableOrdersForCustomer_args(
16541
      long customer_id,
16542
      long limit)
16543
    {
16544
      this();
16545
      this.customer_id = customer_id;
16546
      setCustomer_idIsSet(true);
16547
      this.limit = limit;
16548
      setLimitIsSet(true);
16549
    }
16550
 
16551
    /**
16552
     * Performs a deep copy on <i>other</i>.
16553
     */
16554
    public getCancellableOrdersForCustomer_args(getCancellableOrdersForCustomer_args other) {
16555
      __isset_bit_vector.clear();
16556
      __isset_bit_vector.or(other.__isset_bit_vector);
16557
      this.customer_id = other.customer_id;
16558
      this.limit = other.limit;
16559
    }
16560
 
16561
    public getCancellableOrdersForCustomer_args deepCopy() {
16562
      return new getCancellableOrdersForCustomer_args(this);
16563
    }
16564
 
3430 rajveer 16565
    @Override
16566
    public void clear() {
16567
      setCustomer_idIsSet(false);
16568
      this.customer_id = 0;
16569
      setLimitIsSet(false);
16570
      this.limit = 0;
1382 varun.gupt 16571
    }
16572
 
16573
    public long getCustomer_id() {
16574
      return this.customer_id;
16575
    }
16576
 
3430 rajveer 16577
    public void setCustomer_id(long customer_id) {
1382 varun.gupt 16578
      this.customer_id = customer_id;
16579
      setCustomer_idIsSet(true);
16580
    }
16581
 
16582
    public void unsetCustomer_id() {
16583
      __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
16584
    }
16585
 
3430 rajveer 16586
    /** Returns true if field customer_id is set (has been assigned a value) and false otherwise */
1382 varun.gupt 16587
    public boolean isSetCustomer_id() {
16588
      return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
16589
    }
16590
 
16591
    public void setCustomer_idIsSet(boolean value) {
16592
      __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
16593
    }
16594
 
16595
    public long getLimit() {
16596
      return this.limit;
16597
    }
16598
 
3430 rajveer 16599
    public void setLimit(long limit) {
1382 varun.gupt 16600
      this.limit = limit;
16601
      setLimitIsSet(true);
16602
    }
16603
 
16604
    public void unsetLimit() {
16605
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
16606
    }
16607
 
3430 rajveer 16608
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
1382 varun.gupt 16609
    public boolean isSetLimit() {
16610
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
16611
    }
16612
 
16613
    public void setLimitIsSet(boolean value) {
16614
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
16615
    }
16616
 
16617
    public void setFieldValue(_Fields field, Object value) {
16618
      switch (field) {
16619
      case CUSTOMER_ID:
16620
        if (value == null) {
16621
          unsetCustomer_id();
16622
        } else {
16623
          setCustomer_id((Long)value);
16624
        }
16625
        break;
16626
 
16627
      case LIMIT:
16628
        if (value == null) {
16629
          unsetLimit();
16630
        } else {
16631
          setLimit((Long)value);
16632
        }
16633
        break;
16634
 
16635
      }
16636
    }
16637
 
16638
    public Object getFieldValue(_Fields field) {
16639
      switch (field) {
16640
      case CUSTOMER_ID:
3430 rajveer 16641
        return Long.valueOf(getCustomer_id());
1382 varun.gupt 16642
 
16643
      case LIMIT:
3430 rajveer 16644
        return Long.valueOf(getLimit());
1382 varun.gupt 16645
 
16646
      }
16647
      throw new IllegalStateException();
16648
    }
16649
 
3430 rajveer 16650
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16651
    public boolean isSet(_Fields field) {
16652
      if (field == null) {
16653
        throw new IllegalArgumentException();
16654
      }
1382 varun.gupt 16655
 
16656
      switch (field) {
16657
      case CUSTOMER_ID:
16658
        return isSetCustomer_id();
16659
      case LIMIT:
16660
        return isSetLimit();
16661
      }
16662
      throw new IllegalStateException();
16663
    }
16664
 
16665
    @Override
16666
    public boolean equals(Object that) {
16667
      if (that == null)
16668
        return false;
16669
      if (that instanceof getCancellableOrdersForCustomer_args)
16670
        return this.equals((getCancellableOrdersForCustomer_args)that);
16671
      return false;
16672
    }
16673
 
16674
    public boolean equals(getCancellableOrdersForCustomer_args that) {
16675
      if (that == null)
16676
        return false;
16677
 
16678
      boolean this_present_customer_id = true;
16679
      boolean that_present_customer_id = true;
16680
      if (this_present_customer_id || that_present_customer_id) {
16681
        if (!(this_present_customer_id && that_present_customer_id))
16682
          return false;
16683
        if (this.customer_id != that.customer_id)
16684
          return false;
16685
      }
16686
 
16687
      boolean this_present_limit = true;
16688
      boolean that_present_limit = true;
16689
      if (this_present_limit || that_present_limit) {
16690
        if (!(this_present_limit && that_present_limit))
16691
          return false;
16692
        if (this.limit != that.limit)
16693
          return false;
16694
      }
16695
 
16696
      return true;
16697
    }
16698
 
16699
    @Override
16700
    public int hashCode() {
16701
      return 0;
16702
    }
16703
 
16704
    public int compareTo(getCancellableOrdersForCustomer_args other) {
16705
      if (!getClass().equals(other.getClass())) {
16706
        return getClass().getName().compareTo(other.getClass().getName());
16707
      }
16708
 
16709
      int lastComparison = 0;
16710
      getCancellableOrdersForCustomer_args typedOther = (getCancellableOrdersForCustomer_args)other;
16711
 
3430 rajveer 16712
      lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(typedOther.isSetCustomer_id());
1382 varun.gupt 16713
      if (lastComparison != 0) {
16714
        return lastComparison;
16715
      }
3430 rajveer 16716
      if (isSetCustomer_id()) {
16717
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_id, typedOther.customer_id);
16718
        if (lastComparison != 0) {
16719
          return lastComparison;
16720
        }
1382 varun.gupt 16721
      }
3430 rajveer 16722
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
1382 varun.gupt 16723
      if (lastComparison != 0) {
16724
        return lastComparison;
16725
      }
3430 rajveer 16726
      if (isSetLimit()) {
16727
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
16728
        if (lastComparison != 0) {
16729
          return lastComparison;
16730
        }
1382 varun.gupt 16731
      }
16732
      return 0;
16733
    }
16734
 
3430 rajveer 16735
    public _Fields fieldForId(int fieldId) {
16736
      return _Fields.findByThriftId(fieldId);
16737
    }
16738
 
16739
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16740
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 16741
      iprot.readStructBegin();
16742
      while (true)
16743
      {
16744
        field = iprot.readFieldBegin();
3430 rajveer 16745
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 16746
          break;
16747
        }
3430 rajveer 16748
        switch (field.id) {
16749
          case 1: // CUSTOMER_ID
16750
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16751
              this.customer_id = iprot.readI64();
16752
              setCustomer_idIsSet(true);
16753
            } else { 
16754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16755
            }
16756
            break;
16757
          case 2: // LIMIT
16758
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16759
              this.limit = iprot.readI64();
16760
              setLimitIsSet(true);
16761
            } else { 
16762
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16763
            }
16764
            break;
16765
          default:
16766
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 16767
        }
3430 rajveer 16768
        iprot.readFieldEnd();
1382 varun.gupt 16769
      }
16770
      iprot.readStructEnd();
16771
      validate();
16772
    }
16773
 
3430 rajveer 16774
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 16775
      validate();
16776
 
16777
      oprot.writeStructBegin(STRUCT_DESC);
16778
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
16779
      oprot.writeI64(this.customer_id);
16780
      oprot.writeFieldEnd();
16781
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
16782
      oprot.writeI64(this.limit);
16783
      oprot.writeFieldEnd();
16784
      oprot.writeFieldStop();
16785
      oprot.writeStructEnd();
16786
    }
16787
 
16788
    @Override
16789
    public String toString() {
16790
      StringBuilder sb = new StringBuilder("getCancellableOrdersForCustomer_args(");
16791
      boolean first = true;
16792
 
16793
      sb.append("customer_id:");
16794
      sb.append(this.customer_id);
16795
      first = false;
16796
      if (!first) sb.append(", ");
16797
      sb.append("limit:");
16798
      sb.append(this.limit);
16799
      first = false;
16800
      sb.append(")");
16801
      return sb.toString();
16802
    }
16803
 
3430 rajveer 16804
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 16805
      // check for required fields
16806
    }
16807
 
3430 rajveer 16808
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16809
      try {
16810
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16811
      } catch (org.apache.thrift.TException te) {
16812
        throw new java.io.IOException(te);
16813
      }
16814
    }
16815
 
16816
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16817
      try {
16818
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16819
        __isset_bit_vector = new BitSet(1);
16820
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16821
      } catch (org.apache.thrift.TException te) {
16822
        throw new java.io.IOException(te);
16823
      }
16824
    }
16825
 
1382 varun.gupt 16826
  }
16827
 
3430 rajveer 16828
  public static class getCancellableOrdersForCustomer_result implements org.apache.thrift.TBase<getCancellableOrdersForCustomer_result, getCancellableOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
16829
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCancellableOrdersForCustomer_result");
1382 varun.gupt 16830
 
3430 rajveer 16831
    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);
16832
    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 16833
 
3430 rajveer 16834
    private List<Long> success; // required
16835
    private TransactionServiceException ex; // required
1382 varun.gupt 16836
 
16837
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16838
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 16839
      SUCCESS((short)0, "success"),
16840
      EX((short)1, "ex");
16841
 
16842
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16843
 
16844
      static {
16845
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16846
          byName.put(field.getFieldName(), field);
16847
        }
16848
      }
16849
 
16850
      /**
16851
       * Find the _Fields constant that matches fieldId, or null if its not found.
16852
       */
16853
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16854
        switch(fieldId) {
16855
          case 0: // SUCCESS
16856
            return SUCCESS;
16857
          case 1: // EX
16858
            return EX;
16859
          default:
16860
            return null;
16861
        }
1382 varun.gupt 16862
      }
16863
 
16864
      /**
16865
       * Find the _Fields constant that matches fieldId, throwing an exception
16866
       * if it is not found.
16867
       */
16868
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16869
        _Fields fields = findByThriftId(fieldId);
16870
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16871
        return fields;
16872
      }
16873
 
16874
      /**
16875
       * Find the _Fields constant that matches name, or null if its not found.
16876
       */
16877
      public static _Fields findByName(String name) {
16878
        return byName.get(name);
16879
      }
16880
 
16881
      private final short _thriftId;
16882
      private final String _fieldName;
16883
 
16884
      _Fields(short thriftId, String fieldName) {
16885
        _thriftId = thriftId;
16886
        _fieldName = fieldName;
16887
      }
16888
 
16889
      public short getThriftFieldId() {
16890
        return _thriftId;
16891
      }
16892
 
16893
      public String getFieldName() {
16894
        return _fieldName;
16895
      }
16896
    }
16897
 
16898
    // isset id assignments
16899
 
3430 rajveer 16900
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 16901
    static {
3430 rajveer 16902
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16903
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16904
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16905
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
16906
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16907
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16908
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16909
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCancellableOrdersForCustomer_result.class, metaDataMap);
1382 varun.gupt 16910
    }
16911
 
16912
    public getCancellableOrdersForCustomer_result() {
16913
    }
16914
 
16915
    public getCancellableOrdersForCustomer_result(
16916
      List<Long> success,
16917
      TransactionServiceException ex)
16918
    {
16919
      this();
16920
      this.success = success;
16921
      this.ex = ex;
16922
    }
16923
 
16924
    /**
16925
     * Performs a deep copy on <i>other</i>.
16926
     */
16927
    public getCancellableOrdersForCustomer_result(getCancellableOrdersForCustomer_result other) {
16928
      if (other.isSetSuccess()) {
16929
        List<Long> __this__success = new ArrayList<Long>();
16930
        for (Long other_element : other.success) {
16931
          __this__success.add(other_element);
16932
        }
16933
        this.success = __this__success;
16934
      }
16935
      if (other.isSetEx()) {
16936
        this.ex = new TransactionServiceException(other.ex);
16937
      }
16938
    }
16939
 
16940
    public getCancellableOrdersForCustomer_result deepCopy() {
16941
      return new getCancellableOrdersForCustomer_result(this);
16942
    }
16943
 
3430 rajveer 16944
    @Override
16945
    public void clear() {
16946
      this.success = null;
16947
      this.ex = null;
1382 varun.gupt 16948
    }
16949
 
16950
    public int getSuccessSize() {
16951
      return (this.success == null) ? 0 : this.success.size();
16952
    }
16953
 
16954
    public java.util.Iterator<Long> getSuccessIterator() {
16955
      return (this.success == null) ? null : this.success.iterator();
16956
    }
16957
 
16958
    public void addToSuccess(long elem) {
16959
      if (this.success == null) {
16960
        this.success = new ArrayList<Long>();
16961
      }
16962
      this.success.add(elem);
16963
    }
16964
 
16965
    public List<Long> getSuccess() {
16966
      return this.success;
16967
    }
16968
 
3430 rajveer 16969
    public void setSuccess(List<Long> success) {
1382 varun.gupt 16970
      this.success = success;
16971
    }
16972
 
16973
    public void unsetSuccess() {
16974
      this.success = null;
16975
    }
16976
 
3430 rajveer 16977
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1382 varun.gupt 16978
    public boolean isSetSuccess() {
16979
      return this.success != null;
16980
    }
16981
 
16982
    public void setSuccessIsSet(boolean value) {
16983
      if (!value) {
16984
        this.success = null;
16985
      }
16986
    }
16987
 
16988
    public TransactionServiceException getEx() {
16989
      return this.ex;
16990
    }
16991
 
3430 rajveer 16992
    public void setEx(TransactionServiceException ex) {
1382 varun.gupt 16993
      this.ex = ex;
16994
    }
16995
 
16996
    public void unsetEx() {
16997
      this.ex = null;
16998
    }
16999
 
3430 rajveer 17000
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1382 varun.gupt 17001
    public boolean isSetEx() {
17002
      return this.ex != null;
17003
    }
17004
 
17005
    public void setExIsSet(boolean value) {
17006
      if (!value) {
17007
        this.ex = null;
17008
      }
17009
    }
17010
 
17011
    public void setFieldValue(_Fields field, Object value) {
17012
      switch (field) {
17013
      case SUCCESS:
17014
        if (value == null) {
17015
          unsetSuccess();
17016
        } else {
17017
          setSuccess((List<Long>)value);
17018
        }
17019
        break;
17020
 
17021
      case EX:
17022
        if (value == null) {
17023
          unsetEx();
17024
        } else {
17025
          setEx((TransactionServiceException)value);
17026
        }
17027
        break;
17028
 
17029
      }
17030
    }
17031
 
17032
    public Object getFieldValue(_Fields field) {
17033
      switch (field) {
17034
      case SUCCESS:
17035
        return getSuccess();
17036
 
17037
      case EX:
17038
        return getEx();
17039
 
17040
      }
17041
      throw new IllegalStateException();
17042
    }
17043
 
3430 rajveer 17044
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17045
    public boolean isSet(_Fields field) {
17046
      if (field == null) {
17047
        throw new IllegalArgumentException();
17048
      }
1382 varun.gupt 17049
 
17050
      switch (field) {
17051
      case SUCCESS:
17052
        return isSetSuccess();
17053
      case EX:
17054
        return isSetEx();
17055
      }
17056
      throw new IllegalStateException();
17057
    }
17058
 
17059
    @Override
17060
    public boolean equals(Object that) {
17061
      if (that == null)
17062
        return false;
17063
      if (that instanceof getCancellableOrdersForCustomer_result)
17064
        return this.equals((getCancellableOrdersForCustomer_result)that);
17065
      return false;
17066
    }
17067
 
17068
    public boolean equals(getCancellableOrdersForCustomer_result that) {
17069
      if (that == null)
17070
        return false;
17071
 
17072
      boolean this_present_success = true && this.isSetSuccess();
17073
      boolean that_present_success = true && that.isSetSuccess();
17074
      if (this_present_success || that_present_success) {
17075
        if (!(this_present_success && that_present_success))
17076
          return false;
17077
        if (!this.success.equals(that.success))
17078
          return false;
17079
      }
17080
 
17081
      boolean this_present_ex = true && this.isSetEx();
17082
      boolean that_present_ex = true && that.isSetEx();
17083
      if (this_present_ex || that_present_ex) {
17084
        if (!(this_present_ex && that_present_ex))
17085
          return false;
17086
        if (!this.ex.equals(that.ex))
17087
          return false;
17088
      }
17089
 
17090
      return true;
17091
    }
17092
 
17093
    @Override
17094
    public int hashCode() {
17095
      return 0;
17096
    }
17097
 
17098
    public int compareTo(getCancellableOrdersForCustomer_result other) {
17099
      if (!getClass().equals(other.getClass())) {
17100
        return getClass().getName().compareTo(other.getClass().getName());
17101
      }
17102
 
17103
      int lastComparison = 0;
17104
      getCancellableOrdersForCustomer_result typedOther = (getCancellableOrdersForCustomer_result)other;
17105
 
3430 rajveer 17106
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1382 varun.gupt 17107
      if (lastComparison != 0) {
17108
        return lastComparison;
17109
      }
3430 rajveer 17110
      if (isSetSuccess()) {
17111
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17112
        if (lastComparison != 0) {
17113
          return lastComparison;
17114
        }
1382 varun.gupt 17115
      }
3430 rajveer 17116
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1382 varun.gupt 17117
      if (lastComparison != 0) {
17118
        return lastComparison;
17119
      }
3430 rajveer 17120
      if (isSetEx()) {
17121
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
17122
        if (lastComparison != 0) {
17123
          return lastComparison;
17124
        }
1382 varun.gupt 17125
      }
17126
      return 0;
17127
    }
17128
 
3430 rajveer 17129
    public _Fields fieldForId(int fieldId) {
17130
      return _Fields.findByThriftId(fieldId);
17131
    }
17132
 
17133
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17134
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 17135
      iprot.readStructBegin();
17136
      while (true)
17137
      {
17138
        field = iprot.readFieldBegin();
3430 rajveer 17139
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 17140
          break;
17141
        }
3430 rajveer 17142
        switch (field.id) {
17143
          case 0: // SUCCESS
17144
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17145
              {
4133 chandransh 17146
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
17147
                this.success = new ArrayList<Long>(_list44.size);
17148
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
1382 varun.gupt 17149
                {
4133 chandransh 17150
                  long _elem46; // required
17151
                  _elem46 = iprot.readI64();
17152
                  this.success.add(_elem46);
1382 varun.gupt 17153
                }
3430 rajveer 17154
                iprot.readListEnd();
1382 varun.gupt 17155
              }
3430 rajveer 17156
            } else { 
17157
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17158
            }
17159
            break;
17160
          case 1: // EX
17161
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17162
              this.ex = new TransactionServiceException();
17163
              this.ex.read(iprot);
17164
            } else { 
17165
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17166
            }
17167
            break;
17168
          default:
17169
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 17170
        }
3430 rajveer 17171
        iprot.readFieldEnd();
1382 varun.gupt 17172
      }
17173
      iprot.readStructEnd();
17174
      validate();
17175
    }
17176
 
3430 rajveer 17177
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 17178
      oprot.writeStructBegin(STRUCT_DESC);
17179
 
17180
      if (this.isSetSuccess()) {
17181
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17182
        {
3430 rajveer 17183
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
4133 chandransh 17184
          for (long _iter47 : this.success)
1382 varun.gupt 17185
          {
4133 chandransh 17186
            oprot.writeI64(_iter47);
1382 varun.gupt 17187
          }
17188
          oprot.writeListEnd();
17189
        }
17190
        oprot.writeFieldEnd();
17191
      } else if (this.isSetEx()) {
17192
        oprot.writeFieldBegin(EX_FIELD_DESC);
17193
        this.ex.write(oprot);
17194
        oprot.writeFieldEnd();
17195
      }
17196
      oprot.writeFieldStop();
17197
      oprot.writeStructEnd();
17198
    }
17199
 
17200
    @Override
17201
    public String toString() {
17202
      StringBuilder sb = new StringBuilder("getCancellableOrdersForCustomer_result(");
17203
      boolean first = true;
17204
 
17205
      sb.append("success:");
17206
      if (this.success == null) {
17207
        sb.append("null");
17208
      } else {
17209
        sb.append(this.success);
17210
      }
17211
      first = false;
17212
      if (!first) sb.append(", ");
17213
      sb.append("ex:");
17214
      if (this.ex == null) {
17215
        sb.append("null");
17216
      } else {
17217
        sb.append(this.ex);
17218
      }
17219
      first = false;
17220
      sb.append(")");
17221
      return sb.toString();
17222
    }
17223
 
3430 rajveer 17224
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 17225
      // check for required fields
17226
    }
17227
 
3430 rajveer 17228
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17229
      try {
17230
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17231
      } catch (org.apache.thrift.TException te) {
17232
        throw new java.io.IOException(te);
17233
      }
17234
    }
17235
 
17236
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17237
      try {
17238
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17239
      } catch (org.apache.thrift.TException te) {
17240
        throw new java.io.IOException(te);
17241
      }
17242
    }
17243
 
1382 varun.gupt 17244
  }
17245
 
3430 rajveer 17246
  public static class changeOrderStatus_args implements org.apache.thrift.TBase<changeOrderStatus_args, changeOrderStatus_args._Fields>, java.io.Serializable, Cloneable   {
17247
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeOrderStatus_args");
68 ashish 17248
 
3430 rajveer 17249
    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);
17250
    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);
17251
    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 17252
 
3430 rajveer 17253
    private long orderId; // required
17254
    private OrderStatus status; // required
17255
    private String description; // required
68 ashish 17256
 
17257
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17258
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
483 rajveer 17259
      ORDER_ID((short)1, "orderId"),
17260
      /**
17261
       * 
17262
       * @see OrderStatus
17263
       */
17264
      STATUS((short)2, "status"),
17265
      DESCRIPTION((short)3, "description");
68 ashish 17266
 
17267
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17268
 
17269
      static {
17270
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17271
          byName.put(field.getFieldName(), field);
17272
        }
17273
      }
17274
 
17275
      /**
17276
       * Find the _Fields constant that matches fieldId, or null if its not found.
17277
       */
17278
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17279
        switch(fieldId) {
17280
          case 1: // ORDER_ID
17281
            return ORDER_ID;
17282
          case 2: // STATUS
17283
            return STATUS;
17284
          case 3: // DESCRIPTION
17285
            return DESCRIPTION;
17286
          default:
17287
            return null;
17288
        }
68 ashish 17289
      }
17290
 
17291
      /**
17292
       * Find the _Fields constant that matches fieldId, throwing an exception
17293
       * if it is not found.
17294
       */
17295
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17296
        _Fields fields = findByThriftId(fieldId);
17297
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17298
        return fields;
17299
      }
17300
 
17301
      /**
17302
       * Find the _Fields constant that matches name, or null if its not found.
17303
       */
17304
      public static _Fields findByName(String name) {
17305
        return byName.get(name);
17306
      }
17307
 
17308
      private final short _thriftId;
17309
      private final String _fieldName;
17310
 
17311
      _Fields(short thriftId, String fieldName) {
17312
        _thriftId = thriftId;
17313
        _fieldName = fieldName;
17314
      }
17315
 
17316
      public short getThriftFieldId() {
17317
        return _thriftId;
17318
      }
17319
 
17320
      public String getFieldName() {
17321
        return _fieldName;
17322
      }
17323
    }
17324
 
17325
    // isset id assignments
483 rajveer 17326
    private static final int __ORDERID_ISSET_ID = 0;
68 ashish 17327
    private BitSet __isset_bit_vector = new BitSet(1);
17328
 
3430 rajveer 17329
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 17330
    static {
3430 rajveer 17331
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17332
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17333
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17334
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17335
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
17336
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17337
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17338
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17339
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeOrderStatus_args.class, metaDataMap);
68 ashish 17340
    }
17341
 
483 rajveer 17342
    public changeOrderStatus_args() {
68 ashish 17343
    }
17344
 
483 rajveer 17345
    public changeOrderStatus_args(
17346
      long orderId,
17347
      OrderStatus status,
17348
      String description)
68 ashish 17349
    {
17350
      this();
483 rajveer 17351
      this.orderId = orderId;
17352
      setOrderIdIsSet(true);
17353
      this.status = status;
17354
      this.description = description;
68 ashish 17355
    }
17356
 
17357
    /**
17358
     * Performs a deep copy on <i>other</i>.
17359
     */
483 rajveer 17360
    public changeOrderStatus_args(changeOrderStatus_args other) {
68 ashish 17361
      __isset_bit_vector.clear();
17362
      __isset_bit_vector.or(other.__isset_bit_vector);
483 rajveer 17363
      this.orderId = other.orderId;
17364
      if (other.isSetStatus()) {
17365
        this.status = other.status;
17366
      }
17367
      if (other.isSetDescription()) {
17368
        this.description = other.description;
17369
      }
68 ashish 17370
    }
17371
 
483 rajveer 17372
    public changeOrderStatus_args deepCopy() {
17373
      return new changeOrderStatus_args(this);
68 ashish 17374
    }
17375
 
3430 rajveer 17376
    @Override
17377
    public void clear() {
17378
      setOrderIdIsSet(false);
17379
      this.orderId = 0;
17380
      this.status = null;
17381
      this.description = null;
68 ashish 17382
    }
17383
 
483 rajveer 17384
    public long getOrderId() {
17385
      return this.orderId;
68 ashish 17386
    }
17387
 
3430 rajveer 17388
    public void setOrderId(long orderId) {
483 rajveer 17389
      this.orderId = orderId;
17390
      setOrderIdIsSet(true);
68 ashish 17391
    }
17392
 
483 rajveer 17393
    public void unsetOrderId() {
17394
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
68 ashish 17395
    }
17396
 
3430 rajveer 17397
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
483 rajveer 17398
    public boolean isSetOrderId() {
17399
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
68 ashish 17400
    }
17401
 
483 rajveer 17402
    public void setOrderIdIsSet(boolean value) {
17403
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
68 ashish 17404
    }
17405
 
483 rajveer 17406
    /**
17407
     * 
17408
     * @see OrderStatus
17409
     */
17410
    public OrderStatus getStatus() {
17411
      return this.status;
68 ashish 17412
    }
17413
 
17414
    /**
483 rajveer 17415
     * 
17416
     * @see OrderStatus
68 ashish 17417
     */
3430 rajveer 17418
    public void setStatus(OrderStatus status) {
483 rajveer 17419
      this.status = status;
68 ashish 17420
    }
17421
 
483 rajveer 17422
    public void unsetStatus() {
17423
      this.status = null;
68 ashish 17424
    }
17425
 
3430 rajveer 17426
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
483 rajveer 17427
    public boolean isSetStatus() {
17428
      return this.status != null;
68 ashish 17429
    }
17430
 
483 rajveer 17431
    public void setStatusIsSet(boolean value) {
68 ashish 17432
      if (!value) {
483 rajveer 17433
        this.status = null;
68 ashish 17434
      }
17435
    }
17436
 
483 rajveer 17437
    public String getDescription() {
17438
      return this.description;
68 ashish 17439
    }
17440
 
3430 rajveer 17441
    public void setDescription(String description) {
483 rajveer 17442
      this.description = description;
68 ashish 17443
    }
17444
 
483 rajveer 17445
    public void unsetDescription() {
17446
      this.description = null;
68 ashish 17447
    }
17448
 
3430 rajveer 17449
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
483 rajveer 17450
    public boolean isSetDescription() {
17451
      return this.description != null;
68 ashish 17452
    }
17453
 
483 rajveer 17454
    public void setDescriptionIsSet(boolean value) {
68 ashish 17455
      if (!value) {
483 rajveer 17456
        this.description = null;
68 ashish 17457
      }
17458
    }
17459
 
17460
    public void setFieldValue(_Fields field, Object value) {
17461
      switch (field) {
483 rajveer 17462
      case ORDER_ID:
68 ashish 17463
        if (value == null) {
483 rajveer 17464
          unsetOrderId();
68 ashish 17465
        } else {
483 rajveer 17466
          setOrderId((Long)value);
68 ashish 17467
        }
17468
        break;
17469
 
483 rajveer 17470
      case STATUS:
68 ashish 17471
        if (value == null) {
483 rajveer 17472
          unsetStatus();
68 ashish 17473
        } else {
483 rajveer 17474
          setStatus((OrderStatus)value);
68 ashish 17475
        }
17476
        break;
17477
 
483 rajveer 17478
      case DESCRIPTION:
17479
        if (value == null) {
17480
          unsetDescription();
17481
        } else {
17482
          setDescription((String)value);
17483
        }
17484
        break;
17485
 
68 ashish 17486
      }
17487
    }
17488
 
17489
    public Object getFieldValue(_Fields field) {
17490
      switch (field) {
483 rajveer 17491
      case ORDER_ID:
3430 rajveer 17492
        return Long.valueOf(getOrderId());
68 ashish 17493
 
483 rajveer 17494
      case STATUS:
17495
        return getStatus();
68 ashish 17496
 
483 rajveer 17497
      case DESCRIPTION:
17498
        return getDescription();
17499
 
68 ashish 17500
      }
17501
      throw new IllegalStateException();
17502
    }
17503
 
3430 rajveer 17504
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17505
    public boolean isSet(_Fields field) {
17506
      if (field == null) {
17507
        throw new IllegalArgumentException();
17508
      }
68 ashish 17509
 
17510
      switch (field) {
483 rajveer 17511
      case ORDER_ID:
17512
        return isSetOrderId();
17513
      case STATUS:
17514
        return isSetStatus();
17515
      case DESCRIPTION:
17516
        return isSetDescription();
68 ashish 17517
      }
17518
      throw new IllegalStateException();
17519
    }
17520
 
17521
    @Override
17522
    public boolean equals(Object that) {
17523
      if (that == null)
17524
        return false;
483 rajveer 17525
      if (that instanceof changeOrderStatus_args)
17526
        return this.equals((changeOrderStatus_args)that);
68 ashish 17527
      return false;
17528
    }
17529
 
483 rajveer 17530
    public boolean equals(changeOrderStatus_args that) {
68 ashish 17531
      if (that == null)
17532
        return false;
17533
 
483 rajveer 17534
      boolean this_present_orderId = true;
17535
      boolean that_present_orderId = true;
17536
      if (this_present_orderId || that_present_orderId) {
17537
        if (!(this_present_orderId && that_present_orderId))
68 ashish 17538
          return false;
483 rajveer 17539
        if (this.orderId != that.orderId)
68 ashish 17540
          return false;
17541
      }
17542
 
483 rajveer 17543
      boolean this_present_status = true && this.isSetStatus();
17544
      boolean that_present_status = true && that.isSetStatus();
17545
      if (this_present_status || that_present_status) {
17546
        if (!(this_present_status && that_present_status))
68 ashish 17547
          return false;
483 rajveer 17548
        if (!this.status.equals(that.status))
68 ashish 17549
          return false;
17550
      }
17551
 
483 rajveer 17552
      boolean this_present_description = true && this.isSetDescription();
17553
      boolean that_present_description = true && that.isSetDescription();
17554
      if (this_present_description || that_present_description) {
17555
        if (!(this_present_description && that_present_description))
17556
          return false;
17557
        if (!this.description.equals(that.description))
17558
          return false;
17559
      }
17560
 
68 ashish 17561
      return true;
17562
    }
17563
 
17564
    @Override
17565
    public int hashCode() {
17566
      return 0;
17567
    }
17568
 
483 rajveer 17569
    public int compareTo(changeOrderStatus_args other) {
17570
      if (!getClass().equals(other.getClass())) {
17571
        return getClass().getName().compareTo(other.getClass().getName());
68 ashish 17572
      }
17573
 
483 rajveer 17574
      int lastComparison = 0;
17575
      changeOrderStatus_args typedOther = (changeOrderStatus_args)other;
68 ashish 17576
 
3430 rajveer 17577
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
483 rajveer 17578
      if (lastComparison != 0) {
17579
        return lastComparison;
68 ashish 17580
      }
3430 rajveer 17581
      if (isSetOrderId()) {
17582
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
17583
        if (lastComparison != 0) {
17584
          return lastComparison;
17585
        }
68 ashish 17586
      }
3430 rajveer 17587
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
483 rajveer 17588
      if (lastComparison != 0) {
17589
        return lastComparison;
68 ashish 17590
      }
3430 rajveer 17591
      if (isSetStatus()) {
17592
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
17593
        if (lastComparison != 0) {
17594
          return lastComparison;
17595
        }
68 ashish 17596
      }
3430 rajveer 17597
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
483 rajveer 17598
      if (lastComparison != 0) {
17599
        return lastComparison;
68 ashish 17600
      }
3430 rajveer 17601
      if (isSetDescription()) {
17602
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
17603
        if (lastComparison != 0) {
17604
          return lastComparison;
17605
        }
68 ashish 17606
      }
17607
      return 0;
17608
    }
17609
 
3430 rajveer 17610
    public _Fields fieldForId(int fieldId) {
17611
      return _Fields.findByThriftId(fieldId);
17612
    }
17613
 
17614
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17615
      org.apache.thrift.protocol.TField field;
68 ashish 17616
      iprot.readStructBegin();
17617
      while (true)
17618
      {
17619
        field = iprot.readFieldBegin();
3430 rajveer 17620
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 17621
          break;
17622
        }
3430 rajveer 17623
        switch (field.id) {
17624
          case 1: // ORDER_ID
17625
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17626
              this.orderId = iprot.readI64();
17627
              setOrderIdIsSet(true);
17628
            } else { 
17629
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17630
            }
17631
            break;
17632
          case 2: // STATUS
17633
            if (field.type == org.apache.thrift.protocol.TType.I32) {
17634
              this.status = OrderStatus.findByValue(iprot.readI32());
17635
            } else { 
17636
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17637
            }
17638
            break;
17639
          case 3: // DESCRIPTION
17640
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17641
              this.description = iprot.readString();
17642
            } else { 
17643
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17644
            }
17645
            break;
17646
          default:
17647
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 17648
        }
3430 rajveer 17649
        iprot.readFieldEnd();
68 ashish 17650
      }
17651
      iprot.readStructEnd();
17652
      validate();
17653
    }
17654
 
3430 rajveer 17655
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 17656
      validate();
17657
 
17658
      oprot.writeStructBegin(STRUCT_DESC);
483 rajveer 17659
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
17660
      oprot.writeI64(this.orderId);
68 ashish 17661
      oprot.writeFieldEnd();
483 rajveer 17662
      if (this.status != null) {
17663
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
17664
        oprot.writeI32(this.status.getValue());
68 ashish 17665
        oprot.writeFieldEnd();
17666
      }
483 rajveer 17667
      if (this.description != null) {
17668
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
17669
        oprot.writeString(this.description);
17670
        oprot.writeFieldEnd();
17671
      }
68 ashish 17672
      oprot.writeFieldStop();
17673
      oprot.writeStructEnd();
17674
    }
17675
 
17676
    @Override
17677
    public String toString() {
483 rajveer 17678
      StringBuilder sb = new StringBuilder("changeOrderStatus_args(");
68 ashish 17679
      boolean first = true;
17680
 
483 rajveer 17681
      sb.append("orderId:");
17682
      sb.append(this.orderId);
68 ashish 17683
      first = false;
17684
      if (!first) sb.append(", ");
483 rajveer 17685
      sb.append("status:");
17686
      if (this.status == null) {
68 ashish 17687
        sb.append("null");
17688
      } else {
483 rajveer 17689
        sb.append(this.status);
68 ashish 17690
      }
17691
      first = false;
483 rajveer 17692
      if (!first) sb.append(", ");
17693
      sb.append("description:");
17694
      if (this.description == null) {
17695
        sb.append("null");
17696
      } else {
17697
        sb.append(this.description);
17698
      }
17699
      first = false;
68 ashish 17700
      sb.append(")");
17701
      return sb.toString();
17702
    }
17703
 
3430 rajveer 17704
    public void validate() throws org.apache.thrift.TException {
68 ashish 17705
      // check for required fields
17706
    }
17707
 
3430 rajveer 17708
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17709
      try {
17710
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17711
      } catch (org.apache.thrift.TException te) {
17712
        throw new java.io.IOException(te);
17713
      }
17714
    }
17715
 
17716
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17717
      try {
17718
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17719
        __isset_bit_vector = new BitSet(1);
17720
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17721
      } catch (org.apache.thrift.TException te) {
17722
        throw new java.io.IOException(te);
17723
      }
17724
    }
17725
 
68 ashish 17726
  }
17727
 
3430 rajveer 17728
  public static class changeOrderStatus_result implements org.apache.thrift.TBase<changeOrderStatus_result, changeOrderStatus_result._Fields>, java.io.Serializable, Cloneable   {
17729
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeOrderStatus_result");
68 ashish 17730
 
3430 rajveer 17731
    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);
17732
    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 17733
 
3430 rajveer 17734
    private boolean success; // required
17735
    private TransactionServiceException ex; // required
68 ashish 17736
 
17737
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17738
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 17739
      SUCCESS((short)0, "success"),
17740
      EX((short)1, "ex");
17741
 
17742
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17743
 
17744
      static {
17745
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17746
          byName.put(field.getFieldName(), field);
17747
        }
17748
      }
17749
 
17750
      /**
17751
       * Find the _Fields constant that matches fieldId, or null if its not found.
17752
       */
17753
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17754
        switch(fieldId) {
17755
          case 0: // SUCCESS
17756
            return SUCCESS;
17757
          case 1: // EX
17758
            return EX;
17759
          default:
17760
            return null;
17761
        }
68 ashish 17762
      }
17763
 
17764
      /**
17765
       * Find the _Fields constant that matches fieldId, throwing an exception
17766
       * if it is not found.
17767
       */
17768
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17769
        _Fields fields = findByThriftId(fieldId);
17770
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17771
        return fields;
17772
      }
17773
 
17774
      /**
17775
       * Find the _Fields constant that matches name, or null if its not found.
17776
       */
17777
      public static _Fields findByName(String name) {
17778
        return byName.get(name);
17779
      }
17780
 
17781
      private final short _thriftId;
17782
      private final String _fieldName;
17783
 
17784
      _Fields(short thriftId, String fieldName) {
17785
        _thriftId = thriftId;
17786
        _fieldName = fieldName;
17787
      }
17788
 
17789
      public short getThriftFieldId() {
17790
        return _thriftId;
17791
      }
17792
 
17793
      public String getFieldName() {
17794
        return _fieldName;
17795
      }
17796
    }
17797
 
17798
    // isset id assignments
17799
    private static final int __SUCCESS_ISSET_ID = 0;
17800
    private BitSet __isset_bit_vector = new BitSet(1);
17801
 
3430 rajveer 17802
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 17803
    static {
3430 rajveer 17804
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17805
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17806
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17807
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17808
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17809
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17810
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeOrderStatus_result.class, metaDataMap);
68 ashish 17811
    }
17812
 
483 rajveer 17813
    public changeOrderStatus_result() {
68 ashish 17814
    }
17815
 
483 rajveer 17816
    public changeOrderStatus_result(
68 ashish 17817
      boolean success,
17818
      TransactionServiceException ex)
17819
    {
17820
      this();
17821
      this.success = success;
17822
      setSuccessIsSet(true);
17823
      this.ex = ex;
17824
    }
17825
 
17826
    /**
17827
     * Performs a deep copy on <i>other</i>.
17828
     */
483 rajveer 17829
    public changeOrderStatus_result(changeOrderStatus_result other) {
68 ashish 17830
      __isset_bit_vector.clear();
17831
      __isset_bit_vector.or(other.__isset_bit_vector);
17832
      this.success = other.success;
17833
      if (other.isSetEx()) {
17834
        this.ex = new TransactionServiceException(other.ex);
17835
      }
17836
    }
17837
 
483 rajveer 17838
    public changeOrderStatus_result deepCopy() {
17839
      return new changeOrderStatus_result(this);
68 ashish 17840
    }
17841
 
3430 rajveer 17842
    @Override
17843
    public void clear() {
17844
      setSuccessIsSet(false);
17845
      this.success = false;
17846
      this.ex = null;
68 ashish 17847
    }
17848
 
17849
    public boolean isSuccess() {
17850
      return this.success;
17851
    }
17852
 
3430 rajveer 17853
    public void setSuccess(boolean success) {
68 ashish 17854
      this.success = success;
17855
      setSuccessIsSet(true);
17856
    }
17857
 
17858
    public void unsetSuccess() {
17859
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17860
    }
17861
 
3430 rajveer 17862
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 17863
    public boolean isSetSuccess() {
17864
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17865
    }
17866
 
17867
    public void setSuccessIsSet(boolean value) {
17868
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17869
    }
17870
 
17871
    public TransactionServiceException getEx() {
17872
      return this.ex;
17873
    }
17874
 
3430 rajveer 17875
    public void setEx(TransactionServiceException ex) {
68 ashish 17876
      this.ex = ex;
17877
    }
17878
 
17879
    public void unsetEx() {
17880
      this.ex = null;
17881
    }
17882
 
3430 rajveer 17883
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 17884
    public boolean isSetEx() {
17885
      return this.ex != null;
17886
    }
17887
 
17888
    public void setExIsSet(boolean value) {
17889
      if (!value) {
17890
        this.ex = null;
17891
      }
17892
    }
17893
 
17894
    public void setFieldValue(_Fields field, Object value) {
17895
      switch (field) {
17896
      case SUCCESS:
17897
        if (value == null) {
17898
          unsetSuccess();
17899
        } else {
17900
          setSuccess((Boolean)value);
17901
        }
17902
        break;
17903
 
17904
      case EX:
17905
        if (value == null) {
17906
          unsetEx();
17907
        } else {
17908
          setEx((TransactionServiceException)value);
17909
        }
17910
        break;
17911
 
17912
      }
17913
    }
17914
 
17915
    public Object getFieldValue(_Fields field) {
17916
      switch (field) {
17917
      case SUCCESS:
3430 rajveer 17918
        return Boolean.valueOf(isSuccess());
68 ashish 17919
 
17920
      case EX:
17921
        return getEx();
17922
 
17923
      }
17924
      throw new IllegalStateException();
17925
    }
17926
 
3430 rajveer 17927
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17928
    public boolean isSet(_Fields field) {
17929
      if (field == null) {
17930
        throw new IllegalArgumentException();
17931
      }
68 ashish 17932
 
17933
      switch (field) {
17934
      case SUCCESS:
17935
        return isSetSuccess();
17936
      case EX:
17937
        return isSetEx();
17938
      }
17939
      throw new IllegalStateException();
17940
    }
17941
 
17942
    @Override
17943
    public boolean equals(Object that) {
17944
      if (that == null)
17945
        return false;
483 rajveer 17946
      if (that instanceof changeOrderStatus_result)
17947
        return this.equals((changeOrderStatus_result)that);
68 ashish 17948
      return false;
17949
    }
17950
 
483 rajveer 17951
    public boolean equals(changeOrderStatus_result that) {
68 ashish 17952
      if (that == null)
17953
        return false;
17954
 
17955
      boolean this_present_success = true;
17956
      boolean that_present_success = true;
17957
      if (this_present_success || that_present_success) {
17958
        if (!(this_present_success && that_present_success))
17959
          return false;
17960
        if (this.success != that.success)
17961
          return false;
17962
      }
17963
 
17964
      boolean this_present_ex = true && this.isSetEx();
17965
      boolean that_present_ex = true && that.isSetEx();
17966
      if (this_present_ex || that_present_ex) {
17967
        if (!(this_present_ex && that_present_ex))
17968
          return false;
17969
        if (!this.ex.equals(that.ex))
17970
          return false;
17971
      }
17972
 
17973
      return true;
17974
    }
17975
 
17976
    @Override
17977
    public int hashCode() {
17978
      return 0;
17979
    }
17980
 
483 rajveer 17981
    public int compareTo(changeOrderStatus_result other) {
68 ashish 17982
      if (!getClass().equals(other.getClass())) {
17983
        return getClass().getName().compareTo(other.getClass().getName());
17984
      }
17985
 
17986
      int lastComparison = 0;
483 rajveer 17987
      changeOrderStatus_result typedOther = (changeOrderStatus_result)other;
68 ashish 17988
 
3430 rajveer 17989
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 17990
      if (lastComparison != 0) {
17991
        return lastComparison;
17992
      }
3430 rajveer 17993
      if (isSetSuccess()) {
17994
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17995
        if (lastComparison != 0) {
17996
          return lastComparison;
17997
        }
68 ashish 17998
      }
3430 rajveer 17999
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 18000
      if (lastComparison != 0) {
18001
        return lastComparison;
18002
      }
3430 rajveer 18003
      if (isSetEx()) {
18004
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
18005
        if (lastComparison != 0) {
18006
          return lastComparison;
18007
        }
68 ashish 18008
      }
18009
      return 0;
18010
    }
18011
 
3430 rajveer 18012
    public _Fields fieldForId(int fieldId) {
18013
      return _Fields.findByThriftId(fieldId);
18014
    }
18015
 
18016
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18017
      org.apache.thrift.protocol.TField field;
68 ashish 18018
      iprot.readStructBegin();
18019
      while (true)
18020
      {
18021
        field = iprot.readFieldBegin();
3430 rajveer 18022
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 18023
          break;
18024
        }
3430 rajveer 18025
        switch (field.id) {
18026
          case 0: // SUCCESS
18027
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
18028
              this.success = iprot.readBool();
18029
              setSuccessIsSet(true);
18030
            } else { 
18031
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18032
            }
18033
            break;
18034
          case 1: // EX
18035
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18036
              this.ex = new TransactionServiceException();
18037
              this.ex.read(iprot);
18038
            } else { 
18039
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18040
            }
18041
            break;
18042
          default:
18043
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 18044
        }
3430 rajveer 18045
        iprot.readFieldEnd();
68 ashish 18046
      }
18047
      iprot.readStructEnd();
18048
      validate();
18049
    }
18050
 
3430 rajveer 18051
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 18052
      oprot.writeStructBegin(STRUCT_DESC);
18053
 
18054
      if (this.isSetSuccess()) {
18055
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18056
        oprot.writeBool(this.success);
18057
        oprot.writeFieldEnd();
18058
      } else if (this.isSetEx()) {
18059
        oprot.writeFieldBegin(EX_FIELD_DESC);
18060
        this.ex.write(oprot);
18061
        oprot.writeFieldEnd();
18062
      }
18063
      oprot.writeFieldStop();
18064
      oprot.writeStructEnd();
18065
    }
18066
 
18067
    @Override
18068
    public String toString() {
483 rajveer 18069
      StringBuilder sb = new StringBuilder("changeOrderStatus_result(");
68 ashish 18070
      boolean first = true;
18071
 
18072
      sb.append("success:");
18073
      sb.append(this.success);
18074
      first = false;
18075
      if (!first) sb.append(", ");
18076
      sb.append("ex:");
18077
      if (this.ex == null) {
18078
        sb.append("null");
18079
      } else {
18080
        sb.append(this.ex);
18081
      }
18082
      first = false;
18083
      sb.append(")");
18084
      return sb.toString();
18085
    }
18086
 
3430 rajveer 18087
    public void validate() throws org.apache.thrift.TException {
68 ashish 18088
      // check for required fields
18089
    }
18090
 
3430 rajveer 18091
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18092
      try {
18093
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18094
      } catch (org.apache.thrift.TException te) {
18095
        throw new java.io.IOException(te);
18096
      }
18097
    }
18098
 
18099
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18100
      try {
18101
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18102
      } catch (org.apache.thrift.TException te) {
18103
        throw new java.io.IOException(te);
18104
      }
18105
    }
18106
 
68 ashish 18107
  }
18108
 
3430 rajveer 18109
  public static class getOrdersForTransaction_args implements org.apache.thrift.TBase<getOrdersForTransaction_args, getOrdersForTransaction_args._Fields>, java.io.Serializable, Cloneable   {
18110
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForTransaction_args");
495 rajveer 18111
 
3430 rajveer 18112
    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);
18113
    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 18114
 
3430 rajveer 18115
    private long transactionId; // required
18116
    private long customerId; // required
495 rajveer 18117
 
18118
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18119
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 18120
      TRANSACTION_ID((short)1, "transactionId"),
18121
      CUSTOMER_ID((short)2, "customerId");
495 rajveer 18122
 
18123
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18124
 
18125
      static {
18126
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18127
          byName.put(field.getFieldName(), field);
18128
        }
18129
      }
18130
 
18131
      /**
18132
       * Find the _Fields constant that matches fieldId, or null if its not found.
18133
       */
18134
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18135
        switch(fieldId) {
18136
          case 1: // TRANSACTION_ID
18137
            return TRANSACTION_ID;
18138
          case 2: // CUSTOMER_ID
18139
            return CUSTOMER_ID;
18140
          default:
18141
            return null;
18142
        }
495 rajveer 18143
      }
18144
 
18145
      /**
18146
       * Find the _Fields constant that matches fieldId, throwing an exception
18147
       * if it is not found.
18148
       */
18149
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18150
        _Fields fields = findByThriftId(fieldId);
18151
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18152
        return fields;
18153
      }
18154
 
18155
      /**
18156
       * Find the _Fields constant that matches name, or null if its not found.
18157
       */
18158
      public static _Fields findByName(String name) {
18159
        return byName.get(name);
18160
      }
18161
 
18162
      private final short _thriftId;
18163
      private final String _fieldName;
18164
 
18165
      _Fields(short thriftId, String fieldName) {
18166
        _thriftId = thriftId;
18167
        _fieldName = fieldName;
18168
      }
18169
 
18170
      public short getThriftFieldId() {
18171
        return _thriftId;
18172
      }
18173
 
18174
      public String getFieldName() {
18175
        return _fieldName;
18176
      }
18177
    }
18178
 
18179
    // isset id assignments
3061 chandransh 18180
    private static final int __TRANSACTIONID_ISSET_ID = 0;
18181
    private static final int __CUSTOMERID_ISSET_ID = 1;
18182
    private BitSet __isset_bit_vector = new BitSet(2);
495 rajveer 18183
 
3430 rajveer 18184
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 18185
    static {
3430 rajveer 18186
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18187
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18188
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18189
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18190
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18191
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18192
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForTransaction_args.class, metaDataMap);
495 rajveer 18193
    }
18194
 
3061 chandransh 18195
    public getOrdersForTransaction_args() {
495 rajveer 18196
    }
18197
 
3061 chandransh 18198
    public getOrdersForTransaction_args(
18199
      long transactionId,
18200
      long customerId)
495 rajveer 18201
    {
18202
      this();
3061 chandransh 18203
      this.transactionId = transactionId;
18204
      setTransactionIdIsSet(true);
18205
      this.customerId = customerId;
18206
      setCustomerIdIsSet(true);
495 rajveer 18207
    }
18208
 
18209
    /**
18210
     * Performs a deep copy on <i>other</i>.
18211
     */
3061 chandransh 18212
    public getOrdersForTransaction_args(getOrdersForTransaction_args other) {
495 rajveer 18213
      __isset_bit_vector.clear();
18214
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 18215
      this.transactionId = other.transactionId;
18216
      this.customerId = other.customerId;
495 rajveer 18217
    }
18218
 
3061 chandransh 18219
    public getOrdersForTransaction_args deepCopy() {
18220
      return new getOrdersForTransaction_args(this);
495 rajveer 18221
    }
18222
 
3430 rajveer 18223
    @Override
18224
    public void clear() {
18225
      setTransactionIdIsSet(false);
18226
      this.transactionId = 0;
18227
      setCustomerIdIsSet(false);
18228
      this.customerId = 0;
495 rajveer 18229
    }
18230
 
3061 chandransh 18231
    public long getTransactionId() {
18232
      return this.transactionId;
495 rajveer 18233
    }
18234
 
3430 rajveer 18235
    public void setTransactionId(long transactionId) {
3061 chandransh 18236
      this.transactionId = transactionId;
18237
      setTransactionIdIsSet(true);
495 rajveer 18238
    }
18239
 
3061 chandransh 18240
    public void unsetTransactionId() {
18241
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
495 rajveer 18242
    }
18243
 
3430 rajveer 18244
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
3061 chandransh 18245
    public boolean isSetTransactionId() {
18246
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
495 rajveer 18247
    }
18248
 
3061 chandransh 18249
    public void setTransactionIdIsSet(boolean value) {
18250
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
495 rajveer 18251
    }
18252
 
3061 chandransh 18253
    public long getCustomerId() {
18254
      return this.customerId;
495 rajveer 18255
    }
18256
 
3430 rajveer 18257
    public void setCustomerId(long customerId) {
3061 chandransh 18258
      this.customerId = customerId;
18259
      setCustomerIdIsSet(true);
495 rajveer 18260
    }
18261
 
3061 chandransh 18262
    public void unsetCustomerId() {
18263
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
495 rajveer 18264
    }
18265
 
3430 rajveer 18266
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
3061 chandransh 18267
    public boolean isSetCustomerId() {
18268
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
495 rajveer 18269
    }
18270
 
3061 chandransh 18271
    public void setCustomerIdIsSet(boolean value) {
18272
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
495 rajveer 18273
    }
18274
 
18275
    public void setFieldValue(_Fields field, Object value) {
18276
      switch (field) {
3061 chandransh 18277
      case TRANSACTION_ID:
495 rajveer 18278
        if (value == null) {
3061 chandransh 18279
          unsetTransactionId();
495 rajveer 18280
        } else {
3061 chandransh 18281
          setTransactionId((Long)value);
495 rajveer 18282
        }
18283
        break;
18284
 
3061 chandransh 18285
      case CUSTOMER_ID:
495 rajveer 18286
        if (value == null) {
3061 chandransh 18287
          unsetCustomerId();
495 rajveer 18288
        } else {
3061 chandransh 18289
          setCustomerId((Long)value);
495 rajveer 18290
        }
18291
        break;
18292
 
18293
      }
18294
    }
18295
 
18296
    public Object getFieldValue(_Fields field) {
18297
      switch (field) {
3061 chandransh 18298
      case TRANSACTION_ID:
3430 rajveer 18299
        return Long.valueOf(getTransactionId());
495 rajveer 18300
 
3061 chandransh 18301
      case CUSTOMER_ID:
3430 rajveer 18302
        return Long.valueOf(getCustomerId());
495 rajveer 18303
 
18304
      }
18305
      throw new IllegalStateException();
18306
    }
18307
 
3430 rajveer 18308
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18309
    public boolean isSet(_Fields field) {
18310
      if (field == null) {
18311
        throw new IllegalArgumentException();
18312
      }
495 rajveer 18313
 
18314
      switch (field) {
3061 chandransh 18315
      case TRANSACTION_ID:
18316
        return isSetTransactionId();
18317
      case CUSTOMER_ID:
18318
        return isSetCustomerId();
495 rajveer 18319
      }
18320
      throw new IllegalStateException();
18321
    }
18322
 
18323
    @Override
18324
    public boolean equals(Object that) {
18325
      if (that == null)
18326
        return false;
3061 chandransh 18327
      if (that instanceof getOrdersForTransaction_args)
18328
        return this.equals((getOrdersForTransaction_args)that);
495 rajveer 18329
      return false;
18330
    }
18331
 
3061 chandransh 18332
    public boolean equals(getOrdersForTransaction_args that) {
495 rajveer 18333
      if (that == null)
18334
        return false;
18335
 
3061 chandransh 18336
      boolean this_present_transactionId = true;
18337
      boolean that_present_transactionId = true;
18338
      if (this_present_transactionId || that_present_transactionId) {
18339
        if (!(this_present_transactionId && that_present_transactionId))
495 rajveer 18340
          return false;
3061 chandransh 18341
        if (this.transactionId != that.transactionId)
495 rajveer 18342
          return false;
18343
      }
18344
 
3061 chandransh 18345
      boolean this_present_customerId = true;
18346
      boolean that_present_customerId = true;
18347
      if (this_present_customerId || that_present_customerId) {
18348
        if (!(this_present_customerId && that_present_customerId))
495 rajveer 18349
          return false;
3061 chandransh 18350
        if (this.customerId != that.customerId)
495 rajveer 18351
          return false;
18352
      }
18353
 
18354
      return true;
18355
    }
18356
 
18357
    @Override
18358
    public int hashCode() {
18359
      return 0;
18360
    }
18361
 
3061 chandransh 18362
    public int compareTo(getOrdersForTransaction_args other) {
495 rajveer 18363
      if (!getClass().equals(other.getClass())) {
18364
        return getClass().getName().compareTo(other.getClass().getName());
18365
      }
18366
 
18367
      int lastComparison = 0;
3061 chandransh 18368
      getOrdersForTransaction_args typedOther = (getOrdersForTransaction_args)other;
495 rajveer 18369
 
3430 rajveer 18370
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
495 rajveer 18371
      if (lastComparison != 0) {
18372
        return lastComparison;
18373
      }
3430 rajveer 18374
      if (isSetTransactionId()) {
18375
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
18376
        if (lastComparison != 0) {
18377
          return lastComparison;
18378
        }
495 rajveer 18379
      }
3430 rajveer 18380
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
495 rajveer 18381
      if (lastComparison != 0) {
18382
        return lastComparison;
18383
      }
3430 rajveer 18384
      if (isSetCustomerId()) {
18385
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
18386
        if (lastComparison != 0) {
18387
          return lastComparison;
18388
        }
495 rajveer 18389
      }
18390
      return 0;
18391
    }
18392
 
3430 rajveer 18393
    public _Fields fieldForId(int fieldId) {
18394
      return _Fields.findByThriftId(fieldId);
18395
    }
18396
 
18397
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18398
      org.apache.thrift.protocol.TField field;
495 rajveer 18399
      iprot.readStructBegin();
18400
      while (true)
18401
      {
18402
        field = iprot.readFieldBegin();
3430 rajveer 18403
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 18404
          break;
18405
        }
3430 rajveer 18406
        switch (field.id) {
18407
          case 1: // TRANSACTION_ID
18408
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18409
              this.transactionId = iprot.readI64();
18410
              setTransactionIdIsSet(true);
18411
            } else { 
18412
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18413
            }
18414
            break;
18415
          case 2: // CUSTOMER_ID
18416
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18417
              this.customerId = iprot.readI64();
18418
              setCustomerIdIsSet(true);
18419
            } else { 
18420
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18421
            }
18422
            break;
18423
          default:
18424
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 18425
        }
3430 rajveer 18426
        iprot.readFieldEnd();
495 rajveer 18427
      }
18428
      iprot.readStructEnd();
18429
      validate();
18430
    }
18431
 
3430 rajveer 18432
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 18433
      validate();
18434
 
18435
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 18436
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
18437
      oprot.writeI64(this.transactionId);
495 rajveer 18438
      oprot.writeFieldEnd();
3061 chandransh 18439
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
18440
      oprot.writeI64(this.customerId);
18441
      oprot.writeFieldEnd();
495 rajveer 18442
      oprot.writeFieldStop();
18443
      oprot.writeStructEnd();
18444
    }
18445
 
18446
    @Override
18447
    public String toString() {
3061 chandransh 18448
      StringBuilder sb = new StringBuilder("getOrdersForTransaction_args(");
495 rajveer 18449
      boolean first = true;
18450
 
3061 chandransh 18451
      sb.append("transactionId:");
18452
      sb.append(this.transactionId);
495 rajveer 18453
      first = false;
18454
      if (!first) sb.append(", ");
3061 chandransh 18455
      sb.append("customerId:");
18456
      sb.append(this.customerId);
495 rajveer 18457
      first = false;
18458
      sb.append(")");
18459
      return sb.toString();
18460
    }
18461
 
3430 rajveer 18462
    public void validate() throws org.apache.thrift.TException {
495 rajveer 18463
      // check for required fields
18464
    }
18465
 
3430 rajveer 18466
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18467
      try {
18468
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18469
      } catch (org.apache.thrift.TException te) {
18470
        throw new java.io.IOException(te);
18471
      }
18472
    }
18473
 
18474
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18475
      try {
18476
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18477
      } catch (org.apache.thrift.TException te) {
18478
        throw new java.io.IOException(te);
18479
      }
18480
    }
18481
 
495 rajveer 18482
  }
18483
 
3430 rajveer 18484
  public static class getOrdersForTransaction_result implements org.apache.thrift.TBase<getOrdersForTransaction_result, getOrdersForTransaction_result._Fields>, java.io.Serializable, Cloneable   {
18485
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForTransaction_result");
495 rajveer 18486
 
3430 rajveer 18487
    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);
18488
    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 18489
 
3430 rajveer 18490
    private List<Order> success; // required
18491
    private TransactionServiceException ex; // required
495 rajveer 18492
 
18493
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18494
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 18495
      SUCCESS((short)0, "success"),
18496
      EX((short)1, "ex");
18497
 
18498
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18499
 
18500
      static {
18501
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18502
          byName.put(field.getFieldName(), field);
18503
        }
18504
      }
18505
 
18506
      /**
18507
       * Find the _Fields constant that matches fieldId, or null if its not found.
18508
       */
18509
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18510
        switch(fieldId) {
18511
          case 0: // SUCCESS
18512
            return SUCCESS;
18513
          case 1: // EX
18514
            return EX;
18515
          default:
18516
            return null;
18517
        }
495 rajveer 18518
      }
18519
 
18520
      /**
18521
       * Find the _Fields constant that matches fieldId, throwing an exception
18522
       * if it is not found.
18523
       */
18524
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18525
        _Fields fields = findByThriftId(fieldId);
18526
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18527
        return fields;
18528
      }
18529
 
18530
      /**
18531
       * Find the _Fields constant that matches name, or null if its not found.
18532
       */
18533
      public static _Fields findByName(String name) {
18534
        return byName.get(name);
18535
      }
18536
 
18537
      private final short _thriftId;
18538
      private final String _fieldName;
18539
 
18540
      _Fields(short thriftId, String fieldName) {
18541
        _thriftId = thriftId;
18542
        _fieldName = fieldName;
18543
      }
18544
 
18545
      public short getThriftFieldId() {
18546
        return _thriftId;
18547
      }
18548
 
18549
      public String getFieldName() {
18550
        return _fieldName;
18551
      }
18552
    }
18553
 
18554
    // isset id assignments
18555
 
3430 rajveer 18556
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 18557
    static {
3430 rajveer 18558
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18559
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18560
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18561
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
18562
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18563
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18564
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18565
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForTransaction_result.class, metaDataMap);
495 rajveer 18566
    }
18567
 
3061 chandransh 18568
    public getOrdersForTransaction_result() {
495 rajveer 18569
    }
18570
 
3061 chandransh 18571
    public getOrdersForTransaction_result(
18572
      List<Order> success,
495 rajveer 18573
      TransactionServiceException ex)
18574
    {
18575
      this();
18576
      this.success = success;
18577
      this.ex = ex;
18578
    }
18579
 
18580
    /**
18581
     * Performs a deep copy on <i>other</i>.
18582
     */
3061 chandransh 18583
    public getOrdersForTransaction_result(getOrdersForTransaction_result other) {
18584
      if (other.isSetSuccess()) {
18585
        List<Order> __this__success = new ArrayList<Order>();
18586
        for (Order other_element : other.success) {
18587
          __this__success.add(new Order(other_element));
18588
        }
18589
        this.success = __this__success;
18590
      }
495 rajveer 18591
      if (other.isSetEx()) {
18592
        this.ex = new TransactionServiceException(other.ex);
18593
      }
18594
    }
18595
 
3061 chandransh 18596
    public getOrdersForTransaction_result deepCopy() {
18597
      return new getOrdersForTransaction_result(this);
495 rajveer 18598
    }
18599
 
3430 rajveer 18600
    @Override
18601
    public void clear() {
18602
      this.success = null;
18603
      this.ex = null;
495 rajveer 18604
    }
18605
 
3061 chandransh 18606
    public int getSuccessSize() {
18607
      return (this.success == null) ? 0 : this.success.size();
18608
    }
18609
 
18610
    public java.util.Iterator<Order> getSuccessIterator() {
18611
      return (this.success == null) ? null : this.success.iterator();
18612
    }
18613
 
18614
    public void addToSuccess(Order elem) {
18615
      if (this.success == null) {
18616
        this.success = new ArrayList<Order>();
18617
      }
18618
      this.success.add(elem);
18619
    }
18620
 
18621
    public List<Order> getSuccess() {
495 rajveer 18622
      return this.success;
18623
    }
18624
 
3430 rajveer 18625
    public void setSuccess(List<Order> success) {
495 rajveer 18626
      this.success = success;
18627
    }
18628
 
18629
    public void unsetSuccess() {
3061 chandransh 18630
      this.success = null;
495 rajveer 18631
    }
18632
 
3430 rajveer 18633
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 18634
    public boolean isSetSuccess() {
3061 chandransh 18635
      return this.success != null;
495 rajveer 18636
    }
18637
 
18638
    public void setSuccessIsSet(boolean value) {
3061 chandransh 18639
      if (!value) {
18640
        this.success = null;
18641
      }
495 rajveer 18642
    }
18643
 
18644
    public TransactionServiceException getEx() {
18645
      return this.ex;
18646
    }
18647
 
3430 rajveer 18648
    public void setEx(TransactionServiceException ex) {
495 rajveer 18649
      this.ex = ex;
18650
    }
18651
 
18652
    public void unsetEx() {
18653
      this.ex = null;
18654
    }
18655
 
3430 rajveer 18656
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
495 rajveer 18657
    public boolean isSetEx() {
18658
      return this.ex != null;
18659
    }
18660
 
18661
    public void setExIsSet(boolean value) {
18662
      if (!value) {
18663
        this.ex = null;
18664
      }
18665
    }
18666
 
18667
    public void setFieldValue(_Fields field, Object value) {
18668
      switch (field) {
18669
      case SUCCESS:
18670
        if (value == null) {
18671
          unsetSuccess();
18672
        } else {
3061 chandransh 18673
          setSuccess((List<Order>)value);
495 rajveer 18674
        }
18675
        break;
18676
 
18677
      case EX:
18678
        if (value == null) {
18679
          unsetEx();
18680
        } else {
18681
          setEx((TransactionServiceException)value);
18682
        }
18683
        break;
18684
 
18685
      }
18686
    }
18687
 
18688
    public Object getFieldValue(_Fields field) {
18689
      switch (field) {
18690
      case SUCCESS:
3061 chandransh 18691
        return getSuccess();
495 rajveer 18692
 
18693
      case EX:
18694
        return getEx();
18695
 
18696
      }
18697
      throw new IllegalStateException();
18698
    }
18699
 
3430 rajveer 18700
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18701
    public boolean isSet(_Fields field) {
18702
      if (field == null) {
18703
        throw new IllegalArgumentException();
18704
      }
495 rajveer 18705
 
18706
      switch (field) {
18707
      case SUCCESS:
18708
        return isSetSuccess();
18709
      case EX:
18710
        return isSetEx();
18711
      }
18712
      throw new IllegalStateException();
18713
    }
18714
 
18715
    @Override
18716
    public boolean equals(Object that) {
18717
      if (that == null)
18718
        return false;
3061 chandransh 18719
      if (that instanceof getOrdersForTransaction_result)
18720
        return this.equals((getOrdersForTransaction_result)that);
495 rajveer 18721
      return false;
18722
    }
18723
 
3061 chandransh 18724
    public boolean equals(getOrdersForTransaction_result that) {
495 rajveer 18725
      if (that == null)
18726
        return false;
18727
 
3061 chandransh 18728
      boolean this_present_success = true && this.isSetSuccess();
18729
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 18730
      if (this_present_success || that_present_success) {
18731
        if (!(this_present_success && that_present_success))
18732
          return false;
3061 chandransh 18733
        if (!this.success.equals(that.success))
495 rajveer 18734
          return false;
18735
      }
18736
 
18737
      boolean this_present_ex = true && this.isSetEx();
18738
      boolean that_present_ex = true && that.isSetEx();
18739
      if (this_present_ex || that_present_ex) {
18740
        if (!(this_present_ex && that_present_ex))
18741
          return false;
18742
        if (!this.ex.equals(that.ex))
18743
          return false;
18744
      }
18745
 
18746
      return true;
18747
    }
18748
 
18749
    @Override
18750
    public int hashCode() {
18751
      return 0;
18752
    }
18753
 
3061 chandransh 18754
    public int compareTo(getOrdersForTransaction_result other) {
495 rajveer 18755
      if (!getClass().equals(other.getClass())) {
18756
        return getClass().getName().compareTo(other.getClass().getName());
18757
      }
18758
 
18759
      int lastComparison = 0;
3061 chandransh 18760
      getOrdersForTransaction_result typedOther = (getOrdersForTransaction_result)other;
495 rajveer 18761
 
3430 rajveer 18762
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 18763
      if (lastComparison != 0) {
18764
        return lastComparison;
18765
      }
3430 rajveer 18766
      if (isSetSuccess()) {
18767
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18768
        if (lastComparison != 0) {
18769
          return lastComparison;
18770
        }
495 rajveer 18771
      }
3430 rajveer 18772
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
495 rajveer 18773
      if (lastComparison != 0) {
18774
        return lastComparison;
18775
      }
3430 rajveer 18776
      if (isSetEx()) {
18777
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
18778
        if (lastComparison != 0) {
18779
          return lastComparison;
18780
        }
495 rajveer 18781
      }
18782
      return 0;
18783
    }
18784
 
3430 rajveer 18785
    public _Fields fieldForId(int fieldId) {
18786
      return _Fields.findByThriftId(fieldId);
18787
    }
18788
 
18789
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18790
      org.apache.thrift.protocol.TField field;
495 rajveer 18791
      iprot.readStructBegin();
18792
      while (true)
18793
      {
18794
        field = iprot.readFieldBegin();
3430 rajveer 18795
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 18796
          break;
18797
        }
3430 rajveer 18798
        switch (field.id) {
18799
          case 0: // SUCCESS
18800
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18801
              {
4133 chandransh 18802
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
18803
                this.success = new ArrayList<Order>(_list48.size);
18804
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
3061 chandransh 18805
                {
4133 chandransh 18806
                  Order _elem50; // required
18807
                  _elem50 = new Order();
18808
                  _elem50.read(iprot);
18809
                  this.success.add(_elem50);
3061 chandransh 18810
                }
3430 rajveer 18811
                iprot.readListEnd();
495 rajveer 18812
              }
3430 rajveer 18813
            } else { 
18814
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18815
            }
18816
            break;
18817
          case 1: // EX
18818
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18819
              this.ex = new TransactionServiceException();
18820
              this.ex.read(iprot);
18821
            } else { 
18822
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18823
            }
18824
            break;
18825
          default:
18826
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 18827
        }
3430 rajveer 18828
        iprot.readFieldEnd();
495 rajveer 18829
      }
18830
      iprot.readStructEnd();
18831
      validate();
18832
    }
18833
 
3430 rajveer 18834
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 18835
      oprot.writeStructBegin(STRUCT_DESC);
18836
 
18837
      if (this.isSetSuccess()) {
18838
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 18839
        {
3430 rajveer 18840
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 18841
          for (Order _iter51 : this.success)
3061 chandransh 18842
          {
4133 chandransh 18843
            _iter51.write(oprot);
3061 chandransh 18844
          }
18845
          oprot.writeListEnd();
18846
        }
495 rajveer 18847
        oprot.writeFieldEnd();
18848
      } else if (this.isSetEx()) {
18849
        oprot.writeFieldBegin(EX_FIELD_DESC);
18850
        this.ex.write(oprot);
18851
        oprot.writeFieldEnd();
18852
      }
18853
      oprot.writeFieldStop();
18854
      oprot.writeStructEnd();
18855
    }
18856
 
18857
    @Override
18858
    public String toString() {
3061 chandransh 18859
      StringBuilder sb = new StringBuilder("getOrdersForTransaction_result(");
495 rajveer 18860
      boolean first = true;
18861
 
18862
      sb.append("success:");
3061 chandransh 18863
      if (this.success == null) {
18864
        sb.append("null");
18865
      } else {
18866
        sb.append(this.success);
18867
      }
495 rajveer 18868
      first = false;
18869
      if (!first) sb.append(", ");
18870
      sb.append("ex:");
18871
      if (this.ex == null) {
18872
        sb.append("null");
18873
      } else {
18874
        sb.append(this.ex);
18875
      }
18876
      first = false;
18877
      sb.append(")");
18878
      return sb.toString();
18879
    }
18880
 
3430 rajveer 18881
    public void validate() throws org.apache.thrift.TException {
495 rajveer 18882
      // check for required fields
18883
    }
18884
 
3430 rajveer 18885
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18886
      try {
18887
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18888
      } catch (org.apache.thrift.TException te) {
18889
        throw new java.io.IOException(te);
18890
      }
18891
    }
18892
 
18893
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18894
      try {
18895
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18896
      } catch (org.apache.thrift.TException te) {
18897
        throw new java.io.IOException(te);
18898
      }
18899
    }
18900
 
495 rajveer 18901
  }
18902
 
3430 rajveer 18903
  public static class getOrdersForCustomer_args implements org.apache.thrift.TBase<getOrdersForCustomer_args, getOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
18904
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForCustomer_args");
1148 chandransh 18905
 
3430 rajveer 18906
    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);
18907
    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);
18908
    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);
18909
    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 18910
 
3430 rajveer 18911
    private long customerId; // required
18912
    private long from_date; // required
18913
    private long to_date; // required
18914
    private List<OrderStatus> statuses; // required
1148 chandransh 18915
 
18916
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18917
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 18918
      CUSTOMER_ID((short)1, "customerId"),
18919
      FROM_DATE((short)2, "from_date"),
18920
      TO_DATE((short)3, "to_date"),
18921
      STATUSES((short)4, "statuses");
1148 chandransh 18922
 
18923
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18924
 
18925
      static {
18926
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18927
          byName.put(field.getFieldName(), field);
18928
        }
18929
      }
18930
 
18931
      /**
18932
       * Find the _Fields constant that matches fieldId, or null if its not found.
18933
       */
18934
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18935
        switch(fieldId) {
18936
          case 1: // CUSTOMER_ID
18937
            return CUSTOMER_ID;
18938
          case 2: // FROM_DATE
18939
            return FROM_DATE;
18940
          case 3: // TO_DATE
18941
            return TO_DATE;
18942
          case 4: // STATUSES
18943
            return STATUSES;
18944
          default:
18945
            return null;
18946
        }
1148 chandransh 18947
      }
18948
 
18949
      /**
18950
       * Find the _Fields constant that matches fieldId, throwing an exception
18951
       * if it is not found.
18952
       */
18953
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18954
        _Fields fields = findByThriftId(fieldId);
18955
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18956
        return fields;
18957
      }
18958
 
18959
      /**
18960
       * Find the _Fields constant that matches name, or null if its not found.
18961
       */
18962
      public static _Fields findByName(String name) {
18963
        return byName.get(name);
18964
      }
18965
 
18966
      private final short _thriftId;
18967
      private final String _fieldName;
18968
 
18969
      _Fields(short thriftId, String fieldName) {
18970
        _thriftId = thriftId;
18971
        _fieldName = fieldName;
18972
      }
18973
 
18974
      public short getThriftFieldId() {
18975
        return _thriftId;
18976
      }
18977
 
18978
      public String getFieldName() {
18979
        return _fieldName;
18980
      }
18981
    }
18982
 
18983
    // isset id assignments
3061 chandransh 18984
    private static final int __CUSTOMERID_ISSET_ID = 0;
18985
    private static final int __FROM_DATE_ISSET_ID = 1;
18986
    private static final int __TO_DATE_ISSET_ID = 2;
18987
    private BitSet __isset_bit_vector = new BitSet(3);
1148 chandransh 18988
 
3430 rajveer 18989
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1148 chandransh 18990
    static {
3430 rajveer 18991
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18992
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18993
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18994
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("from_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18995
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18996
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("to_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18997
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18998
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18999
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19000
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
19001
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19002
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_args.class, metaDataMap);
1148 chandransh 19003
    }
19004
 
3061 chandransh 19005
    public getOrdersForCustomer_args() {
1148 chandransh 19006
    }
19007
 
3061 chandransh 19008
    public getOrdersForCustomer_args(
19009
      long customerId,
19010
      long from_date,
19011
      long to_date,
19012
      List<OrderStatus> statuses)
1148 chandransh 19013
    {
19014
      this();
3061 chandransh 19015
      this.customerId = customerId;
19016
      setCustomerIdIsSet(true);
19017
      this.from_date = from_date;
19018
      setFrom_dateIsSet(true);
19019
      this.to_date = to_date;
19020
      setTo_dateIsSet(true);
19021
      this.statuses = statuses;
1148 chandransh 19022
    }
19023
 
19024
    /**
19025
     * Performs a deep copy on <i>other</i>.
19026
     */
3061 chandransh 19027
    public getOrdersForCustomer_args(getOrdersForCustomer_args other) {
1148 chandransh 19028
      __isset_bit_vector.clear();
19029
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 19030
      this.customerId = other.customerId;
19031
      this.from_date = other.from_date;
19032
      this.to_date = other.to_date;
19033
      if (other.isSetStatuses()) {
19034
        List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();
19035
        for (OrderStatus other_element : other.statuses) {
19036
          __this__statuses.add(other_element);
19037
        }
19038
        this.statuses = __this__statuses;
2779 chandransh 19039
      }
1148 chandransh 19040
    }
19041
 
3061 chandransh 19042
    public getOrdersForCustomer_args deepCopy() {
19043
      return new getOrdersForCustomer_args(this);
1148 chandransh 19044
    }
19045
 
3430 rajveer 19046
    @Override
19047
    public void clear() {
19048
      setCustomerIdIsSet(false);
19049
      this.customerId = 0;
19050
      setFrom_dateIsSet(false);
19051
      this.from_date = 0;
19052
      setTo_dateIsSet(false);
19053
      this.to_date = 0;
19054
      this.statuses = null;
1148 chandransh 19055
    }
19056
 
3061 chandransh 19057
    public long getCustomerId() {
19058
      return this.customerId;
1148 chandransh 19059
    }
19060
 
3430 rajveer 19061
    public void setCustomerId(long customerId) {
3061 chandransh 19062
      this.customerId = customerId;
19063
      setCustomerIdIsSet(true);
1148 chandransh 19064
    }
19065
 
3061 chandransh 19066
    public void unsetCustomerId() {
19067
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
1148 chandransh 19068
    }
19069
 
3430 rajveer 19070
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
3061 chandransh 19071
    public boolean isSetCustomerId() {
19072
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
1148 chandransh 19073
    }
19074
 
3061 chandransh 19075
    public void setCustomerIdIsSet(boolean value) {
19076
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
1148 chandransh 19077
    }
19078
 
3061 chandransh 19079
    public long getFrom_date() {
19080
      return this.from_date;
1148 chandransh 19081
    }
19082
 
3430 rajveer 19083
    public void setFrom_date(long from_date) {
3061 chandransh 19084
      this.from_date = from_date;
19085
      setFrom_dateIsSet(true);
1148 chandransh 19086
    }
19087
 
3061 chandransh 19088
    public void unsetFrom_date() {
19089
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
1148 chandransh 19090
    }
19091
 
3430 rajveer 19092
    /** Returns true if field from_date is set (has been assigned a value) and false otherwise */
3061 chandransh 19093
    public boolean isSetFrom_date() {
19094
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
1148 chandransh 19095
    }
19096
 
3061 chandransh 19097
    public void setFrom_dateIsSet(boolean value) {
19098
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
1148 chandransh 19099
    }
19100
 
3061 chandransh 19101
    public long getTo_date() {
19102
      return this.to_date;
2779 chandransh 19103
    }
19104
 
3430 rajveer 19105
    public void setTo_date(long to_date) {
3061 chandransh 19106
      this.to_date = to_date;
19107
      setTo_dateIsSet(true);
2779 chandransh 19108
    }
19109
 
3061 chandransh 19110
    public void unsetTo_date() {
19111
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
2779 chandransh 19112
    }
19113
 
3430 rajveer 19114
    /** Returns true if field to_date is set (has been assigned a value) and false otherwise */
3061 chandransh 19115
    public boolean isSetTo_date() {
19116
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
2779 chandransh 19117
    }
19118
 
3061 chandransh 19119
    public void setTo_dateIsSet(boolean value) {
19120
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
2779 chandransh 19121
    }
19122
 
3061 chandransh 19123
    public int getStatusesSize() {
19124
      return (this.statuses == null) ? 0 : this.statuses.size();
2779 chandransh 19125
    }
19126
 
3061 chandransh 19127
    public java.util.Iterator<OrderStatus> getStatusesIterator() {
19128
      return (this.statuses == null) ? null : this.statuses.iterator();
2779 chandransh 19129
    }
19130
 
3061 chandransh 19131
    public void addToStatuses(OrderStatus elem) {
19132
      if (this.statuses == null) {
19133
        this.statuses = new ArrayList<OrderStatus>();
2779 chandransh 19134
      }
3061 chandransh 19135
      this.statuses.add(elem);
2779 chandransh 19136
    }
19137
 
3061 chandransh 19138
    public List<OrderStatus> getStatuses() {
19139
      return this.statuses;
2779 chandransh 19140
    }
19141
 
3430 rajveer 19142
    public void setStatuses(List<OrderStatus> statuses) {
3061 chandransh 19143
      this.statuses = statuses;
2779 chandransh 19144
    }
19145
 
3061 chandransh 19146
    public void unsetStatuses() {
19147
      this.statuses = null;
2779 chandransh 19148
    }
19149
 
3430 rajveer 19150
    /** Returns true if field statuses is set (has been assigned a value) and false otherwise */
3061 chandransh 19151
    public boolean isSetStatuses() {
19152
      return this.statuses != null;
2779 chandransh 19153
    }
19154
 
3061 chandransh 19155
    public void setStatusesIsSet(boolean value) {
2779 chandransh 19156
      if (!value) {
3061 chandransh 19157
        this.statuses = null;
2779 chandransh 19158
      }
19159
    }
19160
 
1148 chandransh 19161
    public void setFieldValue(_Fields field, Object value) {
19162
      switch (field) {
3061 chandransh 19163
      case CUSTOMER_ID:
1148 chandransh 19164
        if (value == null) {
3061 chandransh 19165
          unsetCustomerId();
1148 chandransh 19166
        } else {
3061 chandransh 19167
          setCustomerId((Long)value);
1148 chandransh 19168
        }
19169
        break;
19170
 
3061 chandransh 19171
      case FROM_DATE:
1148 chandransh 19172
        if (value == null) {
3061 chandransh 19173
          unsetFrom_date();
1148 chandransh 19174
        } else {
3061 chandransh 19175
          setFrom_date((Long)value);
1148 chandransh 19176
        }
19177
        break;
19178
 
3061 chandransh 19179
      case TO_DATE:
2779 chandransh 19180
        if (value == null) {
3061 chandransh 19181
          unsetTo_date();
2779 chandransh 19182
        } else {
3061 chandransh 19183
          setTo_date((Long)value);
2779 chandransh 19184
        }
19185
        break;
19186
 
3061 chandransh 19187
      case STATUSES:
2779 chandransh 19188
        if (value == null) {
3061 chandransh 19189
          unsetStatuses();
2779 chandransh 19190
        } else {
3061 chandransh 19191
          setStatuses((List<OrderStatus>)value);
2779 chandransh 19192
        }
19193
        break;
19194
 
1148 chandransh 19195
      }
19196
    }
19197
 
19198
    public Object getFieldValue(_Fields field) {
19199
      switch (field) {
3061 chandransh 19200
      case CUSTOMER_ID:
3430 rajveer 19201
        return Long.valueOf(getCustomerId());
1148 chandransh 19202
 
3061 chandransh 19203
      case FROM_DATE:
3430 rajveer 19204
        return Long.valueOf(getFrom_date());
1148 chandransh 19205
 
3061 chandransh 19206
      case TO_DATE:
3430 rajveer 19207
        return Long.valueOf(getTo_date());
2779 chandransh 19208
 
3061 chandransh 19209
      case STATUSES:
19210
        return getStatuses();
2779 chandransh 19211
 
1148 chandransh 19212
      }
19213
      throw new IllegalStateException();
19214
    }
19215
 
3430 rajveer 19216
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19217
    public boolean isSet(_Fields field) {
19218
      if (field == null) {
19219
        throw new IllegalArgumentException();
19220
      }
1148 chandransh 19221
 
19222
      switch (field) {
3061 chandransh 19223
      case CUSTOMER_ID:
19224
        return isSetCustomerId();
19225
      case FROM_DATE:
19226
        return isSetFrom_date();
19227
      case TO_DATE:
19228
        return isSetTo_date();
19229
      case STATUSES:
19230
        return isSetStatuses();
1148 chandransh 19231
      }
19232
      throw new IllegalStateException();
19233
    }
19234
 
19235
    @Override
19236
    public boolean equals(Object that) {
19237
      if (that == null)
19238
        return false;
3061 chandransh 19239
      if (that instanceof getOrdersForCustomer_args)
19240
        return this.equals((getOrdersForCustomer_args)that);
1148 chandransh 19241
      return false;
19242
    }
19243
 
3061 chandransh 19244
    public boolean equals(getOrdersForCustomer_args that) {
1148 chandransh 19245
      if (that == null)
19246
        return false;
19247
 
3061 chandransh 19248
      boolean this_present_customerId = true;
19249
      boolean that_present_customerId = true;
19250
      if (this_present_customerId || that_present_customerId) {
19251
        if (!(this_present_customerId && that_present_customerId))
1148 chandransh 19252
          return false;
3061 chandransh 19253
        if (this.customerId != that.customerId)
1148 chandransh 19254
          return false;
19255
      }
19256
 
3061 chandransh 19257
      boolean this_present_from_date = true;
19258
      boolean that_present_from_date = true;
19259
      if (this_present_from_date || that_present_from_date) {
19260
        if (!(this_present_from_date && that_present_from_date))
1148 chandransh 19261
          return false;
3061 chandransh 19262
        if (this.from_date != that.from_date)
1148 chandransh 19263
          return false;
19264
      }
19265
 
3061 chandransh 19266
      boolean this_present_to_date = true;
19267
      boolean that_present_to_date = true;
19268
      if (this_present_to_date || that_present_to_date) {
19269
        if (!(this_present_to_date && that_present_to_date))
2779 chandransh 19270
          return false;
3061 chandransh 19271
        if (this.to_date != that.to_date)
2779 chandransh 19272
          return false;
19273
      }
19274
 
3061 chandransh 19275
      boolean this_present_statuses = true && this.isSetStatuses();
19276
      boolean that_present_statuses = true && that.isSetStatuses();
19277
      if (this_present_statuses || that_present_statuses) {
19278
        if (!(this_present_statuses && that_present_statuses))
2779 chandransh 19279
          return false;
3061 chandransh 19280
        if (!this.statuses.equals(that.statuses))
2779 chandransh 19281
          return false;
19282
      }
19283
 
1148 chandransh 19284
      return true;
19285
    }
19286
 
19287
    @Override
19288
    public int hashCode() {
19289
      return 0;
19290
    }
19291
 
3061 chandransh 19292
    public int compareTo(getOrdersForCustomer_args other) {
1148 chandransh 19293
      if (!getClass().equals(other.getClass())) {
19294
        return getClass().getName().compareTo(other.getClass().getName());
19295
      }
19296
 
19297
      int lastComparison = 0;
3061 chandransh 19298
      getOrdersForCustomer_args typedOther = (getOrdersForCustomer_args)other;
1148 chandransh 19299
 
3430 rajveer 19300
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
1148 chandransh 19301
      if (lastComparison != 0) {
19302
        return lastComparison;
19303
      }
3430 rajveer 19304
      if (isSetCustomerId()) {
19305
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
19306
        if (lastComparison != 0) {
19307
          return lastComparison;
19308
        }
1148 chandransh 19309
      }
3430 rajveer 19310
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(typedOther.isSetFrom_date());
1148 chandransh 19311
      if (lastComparison != 0) {
19312
        return lastComparison;
19313
      }
3430 rajveer 19314
      if (isSetFrom_date()) {
19315
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_date, typedOther.from_date);
19316
        if (lastComparison != 0) {
19317
          return lastComparison;
19318
        }
1148 chandransh 19319
      }
3430 rajveer 19320
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(typedOther.isSetTo_date());
2779 chandransh 19321
      if (lastComparison != 0) {
19322
        return lastComparison;
19323
      }
3430 rajveer 19324
      if (isSetTo_date()) {
19325
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_date, typedOther.to_date);
19326
        if (lastComparison != 0) {
19327
          return lastComparison;
19328
        }
2779 chandransh 19329
      }
3430 rajveer 19330
      lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());
2779 chandransh 19331
      if (lastComparison != 0) {
19332
        return lastComparison;
19333
      }
3430 rajveer 19334
      if (isSetStatuses()) {
19335
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);
19336
        if (lastComparison != 0) {
19337
          return lastComparison;
19338
        }
2779 chandransh 19339
      }
1148 chandransh 19340
      return 0;
19341
    }
19342
 
3430 rajveer 19343
    public _Fields fieldForId(int fieldId) {
19344
      return _Fields.findByThriftId(fieldId);
19345
    }
19346
 
19347
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19348
      org.apache.thrift.protocol.TField field;
1148 chandransh 19349
      iprot.readStructBegin();
19350
      while (true)
19351
      {
19352
        field = iprot.readFieldBegin();
3430 rajveer 19353
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1148 chandransh 19354
          break;
19355
        }
3430 rajveer 19356
        switch (field.id) {
19357
          case 1: // CUSTOMER_ID
19358
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19359
              this.customerId = iprot.readI64();
19360
              setCustomerIdIsSet(true);
19361
            } else { 
19362
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19363
            }
19364
            break;
19365
          case 2: // FROM_DATE
19366
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19367
              this.from_date = iprot.readI64();
19368
              setFrom_dateIsSet(true);
19369
            } else { 
19370
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19371
            }
19372
            break;
19373
          case 3: // TO_DATE
19374
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19375
              this.to_date = iprot.readI64();
19376
              setTo_dateIsSet(true);
19377
            } else { 
19378
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19379
            }
19380
            break;
19381
          case 4: // STATUSES
19382
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19383
              {
4133 chandransh 19384
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
19385
                this.statuses = new ArrayList<OrderStatus>(_list52.size);
19386
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
3061 chandransh 19387
                {
4133 chandransh 19388
                  OrderStatus _elem54; // required
19389
                  _elem54 = OrderStatus.findByValue(iprot.readI32());
19390
                  this.statuses.add(_elem54);
3061 chandransh 19391
                }
3430 rajveer 19392
                iprot.readListEnd();
2779 chandransh 19393
              }
3430 rajveer 19394
            } else { 
19395
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19396
            }
19397
            break;
19398
          default:
19399
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1148 chandransh 19400
        }
3430 rajveer 19401
        iprot.readFieldEnd();
1148 chandransh 19402
      }
19403
      iprot.readStructEnd();
19404
      validate();
19405
    }
19406
 
3430 rajveer 19407
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1148 chandransh 19408
      validate();
19409
 
19410
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 19411
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
19412
      oprot.writeI64(this.customerId);
1148 chandransh 19413
      oprot.writeFieldEnd();
3061 chandransh 19414
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
19415
      oprot.writeI64(this.from_date);
1148 chandransh 19416
      oprot.writeFieldEnd();
3061 chandransh 19417
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
19418
      oprot.writeI64(this.to_date);
2779 chandransh 19419
      oprot.writeFieldEnd();
3061 chandransh 19420
      if (this.statuses != null) {
19421
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
19422
        {
3430 rajveer 19423
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
4133 chandransh 19424
          for (OrderStatus _iter55 : this.statuses)
3061 chandransh 19425
          {
4133 chandransh 19426
            oprot.writeI32(_iter55.getValue());
3061 chandransh 19427
          }
19428
          oprot.writeListEnd();
19429
        }
2779 chandransh 19430
        oprot.writeFieldEnd();
19431
      }
1148 chandransh 19432
      oprot.writeFieldStop();
19433
      oprot.writeStructEnd();
19434
    }
19435
 
19436
    @Override
19437
    public String toString() {
3061 chandransh 19438
      StringBuilder sb = new StringBuilder("getOrdersForCustomer_args(");
1148 chandransh 19439
      boolean first = true;
19440
 
3061 chandransh 19441
      sb.append("customerId:");
19442
      sb.append(this.customerId);
1148 chandransh 19443
      first = false;
19444
      if (!first) sb.append(", ");
3061 chandransh 19445
      sb.append("from_date:");
19446
      sb.append(this.from_date);
1148 chandransh 19447
      first = false;
2779 chandransh 19448
      if (!first) sb.append(", ");
3061 chandransh 19449
      sb.append("to_date:");
19450
      sb.append(this.to_date);
2779 chandransh 19451
      first = false;
19452
      if (!first) sb.append(", ");
3061 chandransh 19453
      sb.append("statuses:");
19454
      if (this.statuses == null) {
2779 chandransh 19455
        sb.append("null");
19456
      } else {
3061 chandransh 19457
        sb.append(this.statuses);
2779 chandransh 19458
      }
19459
      first = false;
1148 chandransh 19460
      sb.append(")");
19461
      return sb.toString();
19462
    }
19463
 
3430 rajveer 19464
    public void validate() throws org.apache.thrift.TException {
1148 chandransh 19465
      // check for required fields
19466
    }
19467
 
3430 rajveer 19468
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19469
      try {
19470
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19471
      } catch (org.apache.thrift.TException te) {
19472
        throw new java.io.IOException(te);
19473
      }
19474
    }
19475
 
19476
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19477
      try {
19478
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19479
      } catch (org.apache.thrift.TException te) {
19480
        throw new java.io.IOException(te);
19481
      }
19482
    }
19483
 
1148 chandransh 19484
  }
19485
 
3430 rajveer 19486
  public static class getOrdersForCustomer_result implements org.apache.thrift.TBase<getOrdersForCustomer_result, getOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
19487
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForCustomer_result");
1148 chandransh 19488
 
3430 rajveer 19489
    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);
19490
    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 19491
 
3430 rajveer 19492
    private List<Order> success; // required
19493
    private TransactionServiceException ex; // required
1148 chandransh 19494
 
19495
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19496
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1148 chandransh 19497
      SUCCESS((short)0, "success"),
19498
      EX((short)1, "ex");
19499
 
19500
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19501
 
19502
      static {
19503
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19504
          byName.put(field.getFieldName(), field);
19505
        }
19506
      }
19507
 
19508
      /**
19509
       * Find the _Fields constant that matches fieldId, or null if its not found.
19510
       */
19511
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19512
        switch(fieldId) {
19513
          case 0: // SUCCESS
19514
            return SUCCESS;
19515
          case 1: // EX
19516
            return EX;
19517
          default:
19518
            return null;
19519
        }
1148 chandransh 19520
      }
19521
 
19522
      /**
19523
       * Find the _Fields constant that matches fieldId, throwing an exception
19524
       * if it is not found.
19525
       */
19526
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19527
        _Fields fields = findByThriftId(fieldId);
19528
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19529
        return fields;
19530
      }
19531
 
19532
      /**
19533
       * Find the _Fields constant that matches name, or null if its not found.
19534
       */
19535
      public static _Fields findByName(String name) {
19536
        return byName.get(name);
19537
      }
19538
 
19539
      private final short _thriftId;
19540
      private final String _fieldName;
19541
 
19542
      _Fields(short thriftId, String fieldName) {
19543
        _thriftId = thriftId;
19544
        _fieldName = fieldName;
19545
      }
19546
 
19547
      public short getThriftFieldId() {
19548
        return _thriftId;
19549
      }
19550
 
19551
      public String getFieldName() {
19552
        return _fieldName;
19553
      }
19554
    }
19555
 
19556
    // isset id assignments
19557
 
3430 rajveer 19558
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1148 chandransh 19559
    static {
3430 rajveer 19560
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19561
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19562
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19563
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
19564
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19565
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19566
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19567
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_result.class, metaDataMap);
1148 chandransh 19568
    }
19569
 
3061 chandransh 19570
    public getOrdersForCustomer_result() {
1148 chandransh 19571
    }
19572
 
3061 chandransh 19573
    public getOrdersForCustomer_result(
19574
      List<Order> success,
1148 chandransh 19575
      TransactionServiceException ex)
19576
    {
19577
      this();
19578
      this.success = success;
19579
      this.ex = ex;
19580
    }
19581
 
19582
    /**
19583
     * Performs a deep copy on <i>other</i>.
19584
     */
3061 chandransh 19585
    public getOrdersForCustomer_result(getOrdersForCustomer_result other) {
19586
      if (other.isSetSuccess()) {
19587
        List<Order> __this__success = new ArrayList<Order>();
19588
        for (Order other_element : other.success) {
19589
          __this__success.add(new Order(other_element));
19590
        }
19591
        this.success = __this__success;
19592
      }
1148 chandransh 19593
      if (other.isSetEx()) {
19594
        this.ex = new TransactionServiceException(other.ex);
19595
      }
19596
    }
19597
 
3061 chandransh 19598
    public getOrdersForCustomer_result deepCopy() {
19599
      return new getOrdersForCustomer_result(this);
1148 chandransh 19600
    }
19601
 
3430 rajveer 19602
    @Override
19603
    public void clear() {
19604
      this.success = null;
19605
      this.ex = null;
1148 chandransh 19606
    }
19607
 
3061 chandransh 19608
    public int getSuccessSize() {
19609
      return (this.success == null) ? 0 : this.success.size();
19610
    }
19611
 
19612
    public java.util.Iterator<Order> getSuccessIterator() {
19613
      return (this.success == null) ? null : this.success.iterator();
19614
    }
19615
 
19616
    public void addToSuccess(Order elem) {
19617
      if (this.success == null) {
19618
        this.success = new ArrayList<Order>();
19619
      }
19620
      this.success.add(elem);
19621
    }
19622
 
19623
    public List<Order> getSuccess() {
1148 chandransh 19624
      return this.success;
19625
    }
19626
 
3430 rajveer 19627
    public void setSuccess(List<Order> success) {
1148 chandransh 19628
      this.success = success;
19629
    }
19630
 
19631
    public void unsetSuccess() {
3061 chandransh 19632
      this.success = null;
1148 chandransh 19633
    }
19634
 
3430 rajveer 19635
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1148 chandransh 19636
    public boolean isSetSuccess() {
3061 chandransh 19637
      return this.success != null;
1148 chandransh 19638
    }
19639
 
19640
    public void setSuccessIsSet(boolean value) {
3061 chandransh 19641
      if (!value) {
19642
        this.success = null;
19643
      }
1148 chandransh 19644
    }
19645
 
19646
    public TransactionServiceException getEx() {
19647
      return this.ex;
19648
    }
19649
 
3430 rajveer 19650
    public void setEx(TransactionServiceException ex) {
1148 chandransh 19651
      this.ex = ex;
19652
    }
19653
 
19654
    public void unsetEx() {
19655
      this.ex = null;
19656
    }
19657
 
3430 rajveer 19658
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1148 chandransh 19659
    public boolean isSetEx() {
19660
      return this.ex != null;
19661
    }
19662
 
19663
    public void setExIsSet(boolean value) {
19664
      if (!value) {
19665
        this.ex = null;
19666
      }
19667
    }
19668
 
19669
    public void setFieldValue(_Fields field, Object value) {
19670
      switch (field) {
19671
      case SUCCESS:
19672
        if (value == null) {
19673
          unsetSuccess();
19674
        } else {
3061 chandransh 19675
          setSuccess((List<Order>)value);
1148 chandransh 19676
        }
19677
        break;
19678
 
19679
      case EX:
19680
        if (value == null) {
19681
          unsetEx();
19682
        } else {
19683
          setEx((TransactionServiceException)value);
19684
        }
19685
        break;
19686
 
19687
      }
19688
    }
19689
 
19690
    public Object getFieldValue(_Fields field) {
19691
      switch (field) {
19692
      case SUCCESS:
3061 chandransh 19693
        return getSuccess();
1148 chandransh 19694
 
19695
      case EX:
19696
        return getEx();
19697
 
19698
      }
19699
      throw new IllegalStateException();
19700
    }
19701
 
3430 rajveer 19702
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19703
    public boolean isSet(_Fields field) {
19704
      if (field == null) {
19705
        throw new IllegalArgumentException();
19706
      }
1148 chandransh 19707
 
19708
      switch (field) {
19709
      case SUCCESS:
19710
        return isSetSuccess();
19711
      case EX:
19712
        return isSetEx();
19713
      }
19714
      throw new IllegalStateException();
19715
    }
19716
 
19717
    @Override
19718
    public boolean equals(Object that) {
19719
      if (that == null)
19720
        return false;
3061 chandransh 19721
      if (that instanceof getOrdersForCustomer_result)
19722
        return this.equals((getOrdersForCustomer_result)that);
1148 chandransh 19723
      return false;
19724
    }
19725
 
3061 chandransh 19726
    public boolean equals(getOrdersForCustomer_result that) {
1148 chandransh 19727
      if (that == null)
19728
        return false;
19729
 
3061 chandransh 19730
      boolean this_present_success = true && this.isSetSuccess();
19731
      boolean that_present_success = true && that.isSetSuccess();
1148 chandransh 19732
      if (this_present_success || that_present_success) {
19733
        if (!(this_present_success && that_present_success))
19734
          return false;
3061 chandransh 19735
        if (!this.success.equals(that.success))
1148 chandransh 19736
          return false;
19737
      }
19738
 
19739
      boolean this_present_ex = true && this.isSetEx();
19740
      boolean that_present_ex = true && that.isSetEx();
19741
      if (this_present_ex || that_present_ex) {
19742
        if (!(this_present_ex && that_present_ex))
19743
          return false;
19744
        if (!this.ex.equals(that.ex))
19745
          return false;
19746
      }
19747
 
19748
      return true;
19749
    }
19750
 
19751
    @Override
19752
    public int hashCode() {
19753
      return 0;
19754
    }
19755
 
3061 chandransh 19756
    public int compareTo(getOrdersForCustomer_result other) {
1148 chandransh 19757
      if (!getClass().equals(other.getClass())) {
19758
        return getClass().getName().compareTo(other.getClass().getName());
19759
      }
19760
 
19761
      int lastComparison = 0;
3061 chandransh 19762
      getOrdersForCustomer_result typedOther = (getOrdersForCustomer_result)other;
1148 chandransh 19763
 
3430 rajveer 19764
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1148 chandransh 19765
      if (lastComparison != 0) {
19766
        return lastComparison;
19767
      }
3430 rajveer 19768
      if (isSetSuccess()) {
19769
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19770
        if (lastComparison != 0) {
19771
          return lastComparison;
19772
        }
1148 chandransh 19773
      }
3430 rajveer 19774
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1148 chandransh 19775
      if (lastComparison != 0) {
19776
        return lastComparison;
19777
      }
3430 rajveer 19778
      if (isSetEx()) {
19779
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
19780
        if (lastComparison != 0) {
19781
          return lastComparison;
19782
        }
1148 chandransh 19783
      }
19784
      return 0;
19785
    }
19786
 
3430 rajveer 19787
    public _Fields fieldForId(int fieldId) {
19788
      return _Fields.findByThriftId(fieldId);
19789
    }
19790
 
19791
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19792
      org.apache.thrift.protocol.TField field;
1148 chandransh 19793
      iprot.readStructBegin();
19794
      while (true)
19795
      {
19796
        field = iprot.readFieldBegin();
3430 rajveer 19797
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1148 chandransh 19798
          break;
19799
        }
3430 rajveer 19800
        switch (field.id) {
19801
          case 0: // SUCCESS
19802
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19803
              {
4133 chandransh 19804
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
19805
                this.success = new ArrayList<Order>(_list56.size);
19806
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
3061 chandransh 19807
                {
4133 chandransh 19808
                  Order _elem58; // required
19809
                  _elem58 = new Order();
19810
                  _elem58.read(iprot);
19811
                  this.success.add(_elem58);
3061 chandransh 19812
                }
3430 rajveer 19813
                iprot.readListEnd();
1148 chandransh 19814
              }
3430 rajveer 19815
            } else { 
19816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19817
            }
19818
            break;
19819
          case 1: // EX
19820
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19821
              this.ex = new TransactionServiceException();
19822
              this.ex.read(iprot);
19823
            } else { 
19824
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19825
            }
19826
            break;
19827
          default:
19828
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1148 chandransh 19829
        }
3430 rajveer 19830
        iprot.readFieldEnd();
1148 chandransh 19831
      }
19832
      iprot.readStructEnd();
19833
      validate();
19834
    }
19835
 
3430 rajveer 19836
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1148 chandransh 19837
      oprot.writeStructBegin(STRUCT_DESC);
19838
 
19839
      if (this.isSetSuccess()) {
19840
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 19841
        {
3430 rajveer 19842
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 19843
          for (Order _iter59 : this.success)
3061 chandransh 19844
          {
4133 chandransh 19845
            _iter59.write(oprot);
3061 chandransh 19846
          }
19847
          oprot.writeListEnd();
19848
        }
1148 chandransh 19849
        oprot.writeFieldEnd();
19850
      } else if (this.isSetEx()) {
19851
        oprot.writeFieldBegin(EX_FIELD_DESC);
19852
        this.ex.write(oprot);
19853
        oprot.writeFieldEnd();
19854
      }
19855
      oprot.writeFieldStop();
19856
      oprot.writeStructEnd();
19857
    }
19858
 
19859
    @Override
19860
    public String toString() {
3061 chandransh 19861
      StringBuilder sb = new StringBuilder("getOrdersForCustomer_result(");
1148 chandransh 19862
      boolean first = true;
19863
 
19864
      sb.append("success:");
3061 chandransh 19865
      if (this.success == null) {
19866
        sb.append("null");
19867
      } else {
19868
        sb.append(this.success);
19869
      }
1148 chandransh 19870
      first = false;
19871
      if (!first) sb.append(", ");
19872
      sb.append("ex:");
19873
      if (this.ex == null) {
19874
        sb.append("null");
19875
      } else {
19876
        sb.append(this.ex);
19877
      }
19878
      first = false;
19879
      sb.append(")");
19880
      return sb.toString();
19881
    }
19882
 
3430 rajveer 19883
    public void validate() throws org.apache.thrift.TException {
1148 chandransh 19884
      // check for required fields
19885
    }
19886
 
3430 rajveer 19887
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19888
      try {
19889
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19890
      } catch (org.apache.thrift.TException te) {
19891
        throw new java.io.IOException(te);
19892
      }
19893
    }
19894
 
19895
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19896
      try {
19897
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19898
      } catch (org.apache.thrift.TException te) {
19899
        throw new java.io.IOException(te);
19900
      }
19901
    }
19902
 
1148 chandransh 19903
  }
19904
 
3430 rajveer 19905
  public static class createOrder_args implements org.apache.thrift.TBase<createOrder_args, createOrder_args._Fields>, java.io.Serializable, Cloneable   {
19906
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrder_args");
923 rajveer 19907
 
3430 rajveer 19908
    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 19909
 
3430 rajveer 19910
    private Order order; // required
923 rajveer 19911
 
19912
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19913
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 19914
      ORDER((short)1, "order");
923 rajveer 19915
 
19916
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19917
 
19918
      static {
19919
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19920
          byName.put(field.getFieldName(), field);
19921
        }
19922
      }
19923
 
19924
      /**
19925
       * Find the _Fields constant that matches fieldId, or null if its not found.
19926
       */
19927
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19928
        switch(fieldId) {
19929
          case 1: // ORDER
19930
            return ORDER;
19931
          default:
19932
            return null;
19933
        }
923 rajveer 19934
      }
19935
 
19936
      /**
19937
       * Find the _Fields constant that matches fieldId, throwing an exception
19938
       * if it is not found.
19939
       */
19940
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19941
        _Fields fields = findByThriftId(fieldId);
19942
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19943
        return fields;
19944
      }
19945
 
19946
      /**
19947
       * Find the _Fields constant that matches name, or null if its not found.
19948
       */
19949
      public static _Fields findByName(String name) {
19950
        return byName.get(name);
19951
      }
19952
 
19953
      private final short _thriftId;
19954
      private final String _fieldName;
19955
 
19956
      _Fields(short thriftId, String fieldName) {
19957
        _thriftId = thriftId;
19958
        _fieldName = fieldName;
19959
      }
19960
 
19961
      public short getThriftFieldId() {
19962
        return _thriftId;
19963
      }
19964
 
19965
      public String getFieldName() {
19966
        return _fieldName;
19967
      }
19968
    }
19969
 
19970
    // isset id assignments
19971
 
3430 rajveer 19972
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
923 rajveer 19973
    static {
3430 rajveer 19974
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19975
      tmpMap.put(_Fields.ORDER, new org.apache.thrift.meta_data.FieldMetaData("order", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19976
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
19977
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19978
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrder_args.class, metaDataMap);
923 rajveer 19979
    }
19980
 
3061 chandransh 19981
    public createOrder_args() {
923 rajveer 19982
    }
19983
 
3061 chandransh 19984
    public createOrder_args(
19985
      Order order)
923 rajveer 19986
    {
19987
      this();
3061 chandransh 19988
      this.order = order;
923 rajveer 19989
    }
19990
 
19991
    /**
19992
     * Performs a deep copy on <i>other</i>.
19993
     */
3061 chandransh 19994
    public createOrder_args(createOrder_args other) {
19995
      if (other.isSetOrder()) {
19996
        this.order = new Order(other.order);
19997
      }
923 rajveer 19998
    }
19999
 
3061 chandransh 20000
    public createOrder_args deepCopy() {
20001
      return new createOrder_args(this);
923 rajveer 20002
    }
20003
 
3430 rajveer 20004
    @Override
20005
    public void clear() {
20006
      this.order = null;
923 rajveer 20007
    }
20008
 
3061 chandransh 20009
    public Order getOrder() {
20010
      return this.order;
923 rajveer 20011
    }
20012
 
3430 rajveer 20013
    public void setOrder(Order order) {
3061 chandransh 20014
      this.order = order;
923 rajveer 20015
    }
20016
 
3061 chandransh 20017
    public void unsetOrder() {
20018
      this.order = null;
923 rajveer 20019
    }
20020
 
3430 rajveer 20021
    /** Returns true if field order is set (has been assigned a value) and false otherwise */
3061 chandransh 20022
    public boolean isSetOrder() {
20023
      return this.order != null;
923 rajveer 20024
    }
20025
 
3061 chandransh 20026
    public void setOrderIsSet(boolean value) {
20027
      if (!value) {
20028
        this.order = null;
20029
      }
923 rajveer 20030
    }
20031
 
20032
    public void setFieldValue(_Fields field, Object value) {
20033
      switch (field) {
3061 chandransh 20034
      case ORDER:
923 rajveer 20035
        if (value == null) {
3061 chandransh 20036
          unsetOrder();
923 rajveer 20037
        } else {
3061 chandransh 20038
          setOrder((Order)value);
923 rajveer 20039
        }
20040
        break;
20041
 
20042
      }
20043
    }
20044
 
20045
    public Object getFieldValue(_Fields field) {
20046
      switch (field) {
3061 chandransh 20047
      case ORDER:
20048
        return getOrder();
923 rajveer 20049
 
20050
      }
20051
      throw new IllegalStateException();
20052
    }
20053
 
3430 rajveer 20054
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20055
    public boolean isSet(_Fields field) {
20056
      if (field == null) {
20057
        throw new IllegalArgumentException();
20058
      }
923 rajveer 20059
 
20060
      switch (field) {
3061 chandransh 20061
      case ORDER:
20062
        return isSetOrder();
923 rajveer 20063
      }
20064
      throw new IllegalStateException();
20065
    }
20066
 
20067
    @Override
20068
    public boolean equals(Object that) {
20069
      if (that == null)
20070
        return false;
3061 chandransh 20071
      if (that instanceof createOrder_args)
20072
        return this.equals((createOrder_args)that);
923 rajveer 20073
      return false;
20074
    }
20075
 
3061 chandransh 20076
    public boolean equals(createOrder_args that) {
923 rajveer 20077
      if (that == null)
20078
        return false;
20079
 
3061 chandransh 20080
      boolean this_present_order = true && this.isSetOrder();
20081
      boolean that_present_order = true && that.isSetOrder();
20082
      if (this_present_order || that_present_order) {
20083
        if (!(this_present_order && that_present_order))
923 rajveer 20084
          return false;
3061 chandransh 20085
        if (!this.order.equals(that.order))
923 rajveer 20086
          return false;
20087
      }
20088
 
20089
      return true;
20090
    }
20091
 
20092
    @Override
20093
    public int hashCode() {
20094
      return 0;
20095
    }
20096
 
3061 chandransh 20097
    public int compareTo(createOrder_args other) {
923 rajveer 20098
      if (!getClass().equals(other.getClass())) {
20099
        return getClass().getName().compareTo(other.getClass().getName());
20100
      }
20101
 
20102
      int lastComparison = 0;
3061 chandransh 20103
      createOrder_args typedOther = (createOrder_args)other;
923 rajveer 20104
 
3430 rajveer 20105
      lastComparison = Boolean.valueOf(isSetOrder()).compareTo(typedOther.isSetOrder());
923 rajveer 20106
      if (lastComparison != 0) {
20107
        return lastComparison;
20108
      }
3430 rajveer 20109
      if (isSetOrder()) {
20110
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, typedOther.order);
20111
        if (lastComparison != 0) {
20112
          return lastComparison;
20113
        }
923 rajveer 20114
      }
20115
      return 0;
20116
    }
20117
 
3430 rajveer 20118
    public _Fields fieldForId(int fieldId) {
20119
      return _Fields.findByThriftId(fieldId);
20120
    }
20121
 
20122
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20123
      org.apache.thrift.protocol.TField field;
923 rajveer 20124
      iprot.readStructBegin();
20125
      while (true)
20126
      {
20127
        field = iprot.readFieldBegin();
3430 rajveer 20128
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
923 rajveer 20129
          break;
20130
        }
3430 rajveer 20131
        switch (field.id) {
20132
          case 1: // ORDER
20133
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20134
              this.order = new Order();
20135
              this.order.read(iprot);
20136
            } else { 
20137
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20138
            }
20139
            break;
20140
          default:
20141
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923 rajveer 20142
        }
3430 rajveer 20143
        iprot.readFieldEnd();
923 rajveer 20144
      }
20145
      iprot.readStructEnd();
20146
      validate();
20147
    }
20148
 
3430 rajveer 20149
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
923 rajveer 20150
      validate();
20151
 
20152
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 20153
      if (this.order != null) {
20154
        oprot.writeFieldBegin(ORDER_FIELD_DESC);
20155
        this.order.write(oprot);
20156
        oprot.writeFieldEnd();
20157
      }
923 rajveer 20158
      oprot.writeFieldStop();
20159
      oprot.writeStructEnd();
20160
    }
20161
 
20162
    @Override
20163
    public String toString() {
3061 chandransh 20164
      StringBuilder sb = new StringBuilder("createOrder_args(");
923 rajveer 20165
      boolean first = true;
20166
 
3061 chandransh 20167
      sb.append("order:");
20168
      if (this.order == null) {
20169
        sb.append("null");
20170
      } else {
20171
        sb.append(this.order);
20172
      }
923 rajveer 20173
      first = false;
20174
      sb.append(")");
20175
      return sb.toString();
20176
    }
20177
 
3430 rajveer 20178
    public void validate() throws org.apache.thrift.TException {
923 rajveer 20179
      // check for required fields
20180
    }
20181
 
3430 rajveer 20182
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20183
      try {
20184
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20185
      } catch (org.apache.thrift.TException te) {
20186
        throw new java.io.IOException(te);
20187
      }
20188
    }
20189
 
20190
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20191
      try {
20192
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20193
      } catch (org.apache.thrift.TException te) {
20194
        throw new java.io.IOException(te);
20195
      }
20196
    }
20197
 
923 rajveer 20198
  }
20199
 
3430 rajveer 20200
  public static class createOrder_result implements org.apache.thrift.TBase<createOrder_result, createOrder_result._Fields>, java.io.Serializable, Cloneable   {
20201
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrder_result");
923 rajveer 20202
 
3430 rajveer 20203
    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);
20204
    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 20205
 
3430 rajveer 20206
    private long success; // required
20207
    private TransactionServiceException ex; // required
923 rajveer 20208
 
20209
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20210
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
923 rajveer 20211
      SUCCESS((short)0, "success"),
20212
      EX((short)1, "ex");
20213
 
20214
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20215
 
20216
      static {
20217
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20218
          byName.put(field.getFieldName(), field);
20219
        }
20220
      }
20221
 
20222
      /**
20223
       * Find the _Fields constant that matches fieldId, or null if its not found.
20224
       */
20225
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20226
        switch(fieldId) {
20227
          case 0: // SUCCESS
20228
            return SUCCESS;
20229
          case 1: // EX
20230
            return EX;
20231
          default:
20232
            return null;
20233
        }
923 rajveer 20234
      }
20235
 
20236
      /**
20237
       * Find the _Fields constant that matches fieldId, throwing an exception
20238
       * if it is not found.
20239
       */
20240
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20241
        _Fields fields = findByThriftId(fieldId);
20242
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20243
        return fields;
20244
      }
20245
 
20246
      /**
20247
       * Find the _Fields constant that matches name, or null if its not found.
20248
       */
20249
      public static _Fields findByName(String name) {
20250
        return byName.get(name);
20251
      }
20252
 
20253
      private final short _thriftId;
20254
      private final String _fieldName;
20255
 
20256
      _Fields(short thriftId, String fieldName) {
20257
        _thriftId = thriftId;
20258
        _fieldName = fieldName;
20259
      }
20260
 
20261
      public short getThriftFieldId() {
20262
        return _thriftId;
20263
      }
20264
 
20265
      public String getFieldName() {
20266
        return _fieldName;
20267
      }
20268
    }
20269
 
20270
    // isset id assignments
20271
    private static final int __SUCCESS_ISSET_ID = 0;
20272
    private BitSet __isset_bit_vector = new BitSet(1);
20273
 
3430 rajveer 20274
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
923 rajveer 20275
    static {
3430 rajveer 20276
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20277
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20278
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20279
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20280
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20281
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20282
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrder_result.class, metaDataMap);
923 rajveer 20283
    }
20284
 
3061 chandransh 20285
    public createOrder_result() {
923 rajveer 20286
    }
20287
 
3061 chandransh 20288
    public createOrder_result(
20289
      long success,
923 rajveer 20290
      TransactionServiceException ex)
20291
    {
20292
      this();
20293
      this.success = success;
20294
      setSuccessIsSet(true);
20295
      this.ex = ex;
20296
    }
20297
 
20298
    /**
20299
     * Performs a deep copy on <i>other</i>.
20300
     */
3061 chandransh 20301
    public createOrder_result(createOrder_result other) {
923 rajveer 20302
      __isset_bit_vector.clear();
20303
      __isset_bit_vector.or(other.__isset_bit_vector);
20304
      this.success = other.success;
20305
      if (other.isSetEx()) {
20306
        this.ex = new TransactionServiceException(other.ex);
20307
      }
20308
    }
20309
 
3061 chandransh 20310
    public createOrder_result deepCopy() {
20311
      return new createOrder_result(this);
923 rajveer 20312
    }
20313
 
3430 rajveer 20314
    @Override
20315
    public void clear() {
20316
      setSuccessIsSet(false);
20317
      this.success = 0;
20318
      this.ex = null;
923 rajveer 20319
    }
20320
 
3061 chandransh 20321
    public long getSuccess() {
923 rajveer 20322
      return this.success;
20323
    }
20324
 
3430 rajveer 20325
    public void setSuccess(long success) {
923 rajveer 20326
      this.success = success;
20327
      setSuccessIsSet(true);
20328
    }
20329
 
20330
    public void unsetSuccess() {
20331
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
20332
    }
20333
 
3430 rajveer 20334
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
923 rajveer 20335
    public boolean isSetSuccess() {
20336
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
20337
    }
20338
 
20339
    public void setSuccessIsSet(boolean value) {
20340
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
20341
    }
20342
 
20343
    public TransactionServiceException getEx() {
20344
      return this.ex;
20345
    }
20346
 
3430 rajveer 20347
    public void setEx(TransactionServiceException ex) {
923 rajveer 20348
      this.ex = ex;
20349
    }
20350
 
20351
    public void unsetEx() {
20352
      this.ex = null;
20353
    }
20354
 
3430 rajveer 20355
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
923 rajveer 20356
    public boolean isSetEx() {
20357
      return this.ex != null;
20358
    }
20359
 
20360
    public void setExIsSet(boolean value) {
20361
      if (!value) {
20362
        this.ex = null;
20363
      }
20364
    }
20365
 
20366
    public void setFieldValue(_Fields field, Object value) {
20367
      switch (field) {
20368
      case SUCCESS:
20369
        if (value == null) {
20370
          unsetSuccess();
20371
        } else {
3061 chandransh 20372
          setSuccess((Long)value);
923 rajveer 20373
        }
20374
        break;
20375
 
20376
      case EX:
20377
        if (value == null) {
20378
          unsetEx();
20379
        } else {
20380
          setEx((TransactionServiceException)value);
20381
        }
20382
        break;
20383
 
20384
      }
20385
    }
20386
 
20387
    public Object getFieldValue(_Fields field) {
20388
      switch (field) {
20389
      case SUCCESS:
3430 rajveer 20390
        return Long.valueOf(getSuccess());
923 rajveer 20391
 
20392
      case EX:
20393
        return getEx();
20394
 
20395
      }
20396
      throw new IllegalStateException();
20397
    }
20398
 
3430 rajveer 20399
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20400
    public boolean isSet(_Fields field) {
20401
      if (field == null) {
20402
        throw new IllegalArgumentException();
20403
      }
923 rajveer 20404
 
20405
      switch (field) {
20406
      case SUCCESS:
20407
        return isSetSuccess();
20408
      case EX:
20409
        return isSetEx();
20410
      }
20411
      throw new IllegalStateException();
20412
    }
20413
 
20414
    @Override
20415
    public boolean equals(Object that) {
20416
      if (that == null)
20417
        return false;
3061 chandransh 20418
      if (that instanceof createOrder_result)
20419
        return this.equals((createOrder_result)that);
923 rajveer 20420
      return false;
20421
    }
20422
 
3061 chandransh 20423
    public boolean equals(createOrder_result that) {
923 rajveer 20424
      if (that == null)
20425
        return false;
20426
 
20427
      boolean this_present_success = true;
20428
      boolean that_present_success = true;
20429
      if (this_present_success || that_present_success) {
20430
        if (!(this_present_success && that_present_success))
20431
          return false;
20432
        if (this.success != that.success)
20433
          return false;
20434
      }
20435
 
20436
      boolean this_present_ex = true && this.isSetEx();
20437
      boolean that_present_ex = true && that.isSetEx();
20438
      if (this_present_ex || that_present_ex) {
20439
        if (!(this_present_ex && that_present_ex))
20440
          return false;
20441
        if (!this.ex.equals(that.ex))
20442
          return false;
20443
      }
20444
 
20445
      return true;
20446
    }
20447
 
20448
    @Override
20449
    public int hashCode() {
20450
      return 0;
20451
    }
20452
 
3061 chandransh 20453
    public int compareTo(createOrder_result other) {
923 rajveer 20454
      if (!getClass().equals(other.getClass())) {
20455
        return getClass().getName().compareTo(other.getClass().getName());
20456
      }
20457
 
20458
      int lastComparison = 0;
3061 chandransh 20459
      createOrder_result typedOther = (createOrder_result)other;
923 rajveer 20460
 
3430 rajveer 20461
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
923 rajveer 20462
      if (lastComparison != 0) {
20463
        return lastComparison;
20464
      }
3430 rajveer 20465
      if (isSetSuccess()) {
20466
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20467
        if (lastComparison != 0) {
20468
          return lastComparison;
20469
        }
923 rajveer 20470
      }
3430 rajveer 20471
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
923 rajveer 20472
      if (lastComparison != 0) {
20473
        return lastComparison;
20474
      }
3430 rajveer 20475
      if (isSetEx()) {
20476
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
20477
        if (lastComparison != 0) {
20478
          return lastComparison;
20479
        }
923 rajveer 20480
      }
20481
      return 0;
20482
    }
20483
 
3430 rajveer 20484
    public _Fields fieldForId(int fieldId) {
20485
      return _Fields.findByThriftId(fieldId);
20486
    }
20487
 
20488
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20489
      org.apache.thrift.protocol.TField field;
923 rajveer 20490
      iprot.readStructBegin();
20491
      while (true)
20492
      {
20493
        field = iprot.readFieldBegin();
3430 rajveer 20494
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
923 rajveer 20495
          break;
20496
        }
3430 rajveer 20497
        switch (field.id) {
20498
          case 0: // SUCCESS
20499
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20500
              this.success = iprot.readI64();
20501
              setSuccessIsSet(true);
20502
            } else { 
20503
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20504
            }
20505
            break;
20506
          case 1: // EX
20507
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20508
              this.ex = new TransactionServiceException();
20509
              this.ex.read(iprot);
20510
            } else { 
20511
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20512
            }
20513
            break;
20514
          default:
20515
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923 rajveer 20516
        }
3430 rajveer 20517
        iprot.readFieldEnd();
923 rajveer 20518
      }
20519
      iprot.readStructEnd();
20520
      validate();
20521
    }
20522
 
3430 rajveer 20523
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
923 rajveer 20524
      oprot.writeStructBegin(STRUCT_DESC);
20525
 
20526
      if (this.isSetSuccess()) {
20527
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 20528
        oprot.writeI64(this.success);
923 rajveer 20529
        oprot.writeFieldEnd();
20530
      } else if (this.isSetEx()) {
20531
        oprot.writeFieldBegin(EX_FIELD_DESC);
20532
        this.ex.write(oprot);
20533
        oprot.writeFieldEnd();
20534
      }
20535
      oprot.writeFieldStop();
20536
      oprot.writeStructEnd();
20537
    }
20538
 
20539
    @Override
20540
    public String toString() {
3061 chandransh 20541
      StringBuilder sb = new StringBuilder("createOrder_result(");
923 rajveer 20542
      boolean first = true;
20543
 
20544
      sb.append("success:");
20545
      sb.append(this.success);
20546
      first = false;
20547
      if (!first) sb.append(", ");
20548
      sb.append("ex:");
20549
      if (this.ex == null) {
20550
        sb.append("null");
20551
      } else {
20552
        sb.append(this.ex);
20553
      }
20554
      first = false;
20555
      sb.append(")");
20556
      return sb.toString();
20557
    }
20558
 
3430 rajveer 20559
    public void validate() throws org.apache.thrift.TException {
923 rajveer 20560
      // check for required fields
20561
    }
20562
 
3430 rajveer 20563
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20564
      try {
20565
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20566
      } catch (org.apache.thrift.TException te) {
20567
        throw new java.io.IOException(te);
20568
      }
20569
    }
20570
 
20571
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20572
      try {
20573
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20574
      } catch (org.apache.thrift.TException te) {
20575
        throw new java.io.IOException(te);
20576
      }
20577
    }
20578
 
923 rajveer 20579
  }
20580
 
3430 rajveer 20581
  public static class getOrder_args implements org.apache.thrift.TBase<getOrder_args, getOrder_args._Fields>, java.io.Serializable, Cloneable   {
20582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrder_args");
923 rajveer 20583
 
3430 rajveer 20584
    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 20585
 
3430 rajveer 20586
    private long id; // required
923 rajveer 20587
 
20588
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20589
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 20590
      ID((short)1, "id");
923 rajveer 20591
 
20592
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20593
 
20594
      static {
20595
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20596
          byName.put(field.getFieldName(), field);
20597
        }
20598
      }
20599
 
20600
      /**
20601
       * Find the _Fields constant that matches fieldId, or null if its not found.
20602
       */
20603
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20604
        switch(fieldId) {
20605
          case 1: // ID
20606
            return ID;
20607
          default:
20608
            return null;
20609
        }
923 rajveer 20610
      }
20611
 
20612
      /**
20613
       * Find the _Fields constant that matches fieldId, throwing an exception
20614
       * if it is not found.
20615
       */
20616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20617
        _Fields fields = findByThriftId(fieldId);
20618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20619
        return fields;
20620
      }
20621
 
20622
      /**
20623
       * Find the _Fields constant that matches name, or null if its not found.
20624
       */
20625
      public static _Fields findByName(String name) {
20626
        return byName.get(name);
20627
      }
20628
 
20629
      private final short _thriftId;
20630
      private final String _fieldName;
20631
 
20632
      _Fields(short thriftId, String fieldName) {
20633
        _thriftId = thriftId;
20634
        _fieldName = fieldName;
20635
      }
20636
 
20637
      public short getThriftFieldId() {
20638
        return _thriftId;
20639
      }
20640
 
20641
      public String getFieldName() {
20642
        return _fieldName;
20643
      }
20644
    }
20645
 
20646
    // isset id assignments
3061 chandransh 20647
    private static final int __ID_ISSET_ID = 0;
923 rajveer 20648
    private BitSet __isset_bit_vector = new BitSet(1);
20649
 
3430 rajveer 20650
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
923 rajveer 20651
    static {
3430 rajveer 20652
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20653
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20654
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrder_args.class, metaDataMap);
923 rajveer 20657
    }
20658
 
3061 chandransh 20659
    public getOrder_args() {
923 rajveer 20660
    }
20661
 
3061 chandransh 20662
    public getOrder_args(
20663
      long id)
923 rajveer 20664
    {
20665
      this();
3061 chandransh 20666
      this.id = id;
20667
      setIdIsSet(true);
923 rajveer 20668
    }
20669
 
20670
    /**
20671
     * Performs a deep copy on <i>other</i>.
20672
     */
3061 chandransh 20673
    public getOrder_args(getOrder_args other) {
923 rajveer 20674
      __isset_bit_vector.clear();
20675
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 20676
      this.id = other.id;
923 rajveer 20677
    }
20678
 
3061 chandransh 20679
    public getOrder_args deepCopy() {
20680
      return new getOrder_args(this);
923 rajveer 20681
    }
20682
 
3430 rajveer 20683
    @Override
20684
    public void clear() {
20685
      setIdIsSet(false);
20686
      this.id = 0;
923 rajveer 20687
    }
20688
 
3061 chandransh 20689
    public long getId() {
20690
      return this.id;
923 rajveer 20691
    }
20692
 
3430 rajveer 20693
    public void setId(long id) {
3061 chandransh 20694
      this.id = id;
20695
      setIdIsSet(true);
923 rajveer 20696
    }
20697
 
3061 chandransh 20698
    public void unsetId() {
20699
      __isset_bit_vector.clear(__ID_ISSET_ID);
923 rajveer 20700
    }
20701
 
3430 rajveer 20702
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
3061 chandransh 20703
    public boolean isSetId() {
20704
      return __isset_bit_vector.get(__ID_ISSET_ID);
923 rajveer 20705
    }
20706
 
3061 chandransh 20707
    public void setIdIsSet(boolean value) {
20708
      __isset_bit_vector.set(__ID_ISSET_ID, value);
923 rajveer 20709
    }
20710
 
20711
    public void setFieldValue(_Fields field, Object value) {
20712
      switch (field) {
3061 chandransh 20713
      case ID:
923 rajveer 20714
        if (value == null) {
3061 chandransh 20715
          unsetId();
923 rajveer 20716
        } else {
3061 chandransh 20717
          setId((Long)value);
923 rajveer 20718
        }
20719
        break;
20720
 
20721
      }
20722
    }
20723
 
20724
    public Object getFieldValue(_Fields field) {
20725
      switch (field) {
3061 chandransh 20726
      case ID:
3430 rajveer 20727
        return Long.valueOf(getId());
923 rajveer 20728
 
20729
      }
20730
      throw new IllegalStateException();
20731
    }
20732
 
3430 rajveer 20733
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20734
    public boolean isSet(_Fields field) {
20735
      if (field == null) {
20736
        throw new IllegalArgumentException();
20737
      }
923 rajveer 20738
 
20739
      switch (field) {
3061 chandransh 20740
      case ID:
20741
        return isSetId();
923 rajveer 20742
      }
20743
      throw new IllegalStateException();
20744
    }
20745
 
20746
    @Override
20747
    public boolean equals(Object that) {
20748
      if (that == null)
20749
        return false;
3061 chandransh 20750
      if (that instanceof getOrder_args)
20751
        return this.equals((getOrder_args)that);
923 rajveer 20752
      return false;
20753
    }
20754
 
3061 chandransh 20755
    public boolean equals(getOrder_args that) {
923 rajveer 20756
      if (that == null)
20757
        return false;
20758
 
3061 chandransh 20759
      boolean this_present_id = true;
20760
      boolean that_present_id = true;
20761
      if (this_present_id || that_present_id) {
20762
        if (!(this_present_id && that_present_id))
923 rajveer 20763
          return false;
3061 chandransh 20764
        if (this.id != that.id)
923 rajveer 20765
          return false;
20766
      }
20767
 
20768
      return true;
20769
    }
20770
 
20771
    @Override
20772
    public int hashCode() {
20773
      return 0;
20774
    }
20775
 
3061 chandransh 20776
    public int compareTo(getOrder_args other) {
923 rajveer 20777
      if (!getClass().equals(other.getClass())) {
20778
        return getClass().getName().compareTo(other.getClass().getName());
20779
      }
20780
 
20781
      int lastComparison = 0;
3061 chandransh 20782
      getOrder_args typedOther = (getOrder_args)other;
923 rajveer 20783
 
3430 rajveer 20784
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
923 rajveer 20785
      if (lastComparison != 0) {
20786
        return lastComparison;
20787
      }
3430 rajveer 20788
      if (isSetId()) {
20789
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
20790
        if (lastComparison != 0) {
20791
          return lastComparison;
20792
        }
923 rajveer 20793
      }
20794
      return 0;
20795
    }
20796
 
3430 rajveer 20797
    public _Fields fieldForId(int fieldId) {
20798
      return _Fields.findByThriftId(fieldId);
20799
    }
20800
 
20801
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20802
      org.apache.thrift.protocol.TField field;
923 rajveer 20803
      iprot.readStructBegin();
20804
      while (true)
20805
      {
20806
        field = iprot.readFieldBegin();
3430 rajveer 20807
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
923 rajveer 20808
          break;
20809
        }
3430 rajveer 20810
        switch (field.id) {
20811
          case 1: // ID
20812
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20813
              this.id = iprot.readI64();
20814
              setIdIsSet(true);
20815
            } else { 
20816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20817
            }
20818
            break;
20819
          default:
20820
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923 rajveer 20821
        }
3430 rajveer 20822
        iprot.readFieldEnd();
923 rajveer 20823
      }
20824
      iprot.readStructEnd();
20825
      validate();
20826
    }
20827
 
3430 rajveer 20828
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
923 rajveer 20829
      validate();
20830
 
20831
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 20832
      oprot.writeFieldBegin(ID_FIELD_DESC);
20833
      oprot.writeI64(this.id);
923 rajveer 20834
      oprot.writeFieldEnd();
20835
      oprot.writeFieldStop();
20836
      oprot.writeStructEnd();
20837
    }
20838
 
20839
    @Override
20840
    public String toString() {
3061 chandransh 20841
      StringBuilder sb = new StringBuilder("getOrder_args(");
923 rajveer 20842
      boolean first = true;
20843
 
3061 chandransh 20844
      sb.append("id:");
20845
      sb.append(this.id);
923 rajveer 20846
      first = false;
20847
      sb.append(")");
20848
      return sb.toString();
20849
    }
20850
 
3430 rajveer 20851
    public void validate() throws org.apache.thrift.TException {
923 rajveer 20852
      // check for required fields
20853
    }
20854
 
3430 rajveer 20855
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20856
      try {
20857
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20858
      } catch (org.apache.thrift.TException te) {
20859
        throw new java.io.IOException(te);
20860
      }
20861
    }
20862
 
20863
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20864
      try {
20865
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20866
        __isset_bit_vector = new BitSet(1);
20867
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20868
      } catch (org.apache.thrift.TException te) {
20869
        throw new java.io.IOException(te);
20870
      }
20871
    }
20872
 
923 rajveer 20873
  }
20874
 
3430 rajveer 20875
  public static class getOrder_result implements org.apache.thrift.TBase<getOrder_result, getOrder_result._Fields>, java.io.Serializable, Cloneable   {
20876
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrder_result");
923 rajveer 20877
 
3430 rajveer 20878
    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);
20879
    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 20880
 
3430 rajveer 20881
    private Order success; // required
20882
    private TransactionServiceException ex; // required
923 rajveer 20883
 
20884
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20885
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
923 rajveer 20886
      SUCCESS((short)0, "success"),
20887
      EX((short)1, "ex");
20888
 
20889
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20890
 
20891
      static {
20892
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20893
          byName.put(field.getFieldName(), field);
20894
        }
20895
      }
20896
 
20897
      /**
20898
       * Find the _Fields constant that matches fieldId, or null if its not found.
20899
       */
20900
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20901
        switch(fieldId) {
20902
          case 0: // SUCCESS
20903
            return SUCCESS;
20904
          case 1: // EX
20905
            return EX;
20906
          default:
20907
            return null;
20908
        }
923 rajveer 20909
      }
20910
 
20911
      /**
20912
       * Find the _Fields constant that matches fieldId, throwing an exception
20913
       * if it is not found.
20914
       */
20915
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20916
        _Fields fields = findByThriftId(fieldId);
20917
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20918
        return fields;
20919
      }
20920
 
20921
      /**
20922
       * Find the _Fields constant that matches name, or null if its not found.
20923
       */
20924
      public static _Fields findByName(String name) {
20925
        return byName.get(name);
20926
      }
20927
 
20928
      private final short _thriftId;
20929
      private final String _fieldName;
20930
 
20931
      _Fields(short thriftId, String fieldName) {
20932
        _thriftId = thriftId;
20933
        _fieldName = fieldName;
20934
      }
20935
 
20936
      public short getThriftFieldId() {
20937
        return _thriftId;
20938
      }
20939
 
20940
      public String getFieldName() {
20941
        return _fieldName;
20942
      }
20943
    }
20944
 
20945
    // isset id assignments
20946
 
3430 rajveer 20947
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
923 rajveer 20948
    static {
3430 rajveer 20949
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20950
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20951
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
20952
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20953
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20954
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20955
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrder_result.class, metaDataMap);
923 rajveer 20956
    }
20957
 
3061 chandransh 20958
    public getOrder_result() {
923 rajveer 20959
    }
20960
 
3061 chandransh 20961
    public getOrder_result(
20962
      Order success,
923 rajveer 20963
      TransactionServiceException ex)
20964
    {
20965
      this();
20966
      this.success = success;
20967
      this.ex = ex;
20968
    }
20969
 
20970
    /**
20971
     * Performs a deep copy on <i>other</i>.
20972
     */
3061 chandransh 20973
    public getOrder_result(getOrder_result other) {
20974
      if (other.isSetSuccess()) {
20975
        this.success = new Order(other.success);
20976
      }
923 rajveer 20977
      if (other.isSetEx()) {
20978
        this.ex = new TransactionServiceException(other.ex);
20979
      }
20980
    }
20981
 
3061 chandransh 20982
    public getOrder_result deepCopy() {
20983
      return new getOrder_result(this);
923 rajveer 20984
    }
20985
 
3430 rajveer 20986
    @Override
20987
    public void clear() {
20988
      this.success = null;
20989
      this.ex = null;
923 rajveer 20990
    }
20991
 
3061 chandransh 20992
    public Order getSuccess() {
923 rajveer 20993
      return this.success;
20994
    }
20995
 
3430 rajveer 20996
    public void setSuccess(Order success) {
923 rajveer 20997
      this.success = success;
20998
    }
20999
 
21000
    public void unsetSuccess() {
3061 chandransh 21001
      this.success = null;
923 rajveer 21002
    }
21003
 
3430 rajveer 21004
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
923 rajveer 21005
    public boolean isSetSuccess() {
3061 chandransh 21006
      return this.success != null;
923 rajveer 21007
    }
21008
 
21009
    public void setSuccessIsSet(boolean value) {
3061 chandransh 21010
      if (!value) {
21011
        this.success = null;
21012
      }
923 rajveer 21013
    }
21014
 
21015
    public TransactionServiceException getEx() {
21016
      return this.ex;
21017
    }
21018
 
3430 rajveer 21019
    public void setEx(TransactionServiceException ex) {
923 rajveer 21020
      this.ex = ex;
21021
    }
21022
 
21023
    public void unsetEx() {
21024
      this.ex = null;
21025
    }
21026
 
3430 rajveer 21027
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
923 rajveer 21028
    public boolean isSetEx() {
21029
      return this.ex != null;
21030
    }
21031
 
21032
    public void setExIsSet(boolean value) {
21033
      if (!value) {
21034
        this.ex = null;
21035
      }
21036
    }
21037
 
21038
    public void setFieldValue(_Fields field, Object value) {
21039
      switch (field) {
21040
      case SUCCESS:
21041
        if (value == null) {
21042
          unsetSuccess();
21043
        } else {
3061 chandransh 21044
          setSuccess((Order)value);
923 rajveer 21045
        }
21046
        break;
21047
 
21048
      case EX:
21049
        if (value == null) {
21050
          unsetEx();
21051
        } else {
21052
          setEx((TransactionServiceException)value);
21053
        }
21054
        break;
21055
 
21056
      }
21057
    }
21058
 
21059
    public Object getFieldValue(_Fields field) {
21060
      switch (field) {
21061
      case SUCCESS:
3061 chandransh 21062
        return getSuccess();
923 rajveer 21063
 
21064
      case EX:
21065
        return getEx();
21066
 
21067
      }
21068
      throw new IllegalStateException();
21069
    }
21070
 
3430 rajveer 21071
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21072
    public boolean isSet(_Fields field) {
21073
      if (field == null) {
21074
        throw new IllegalArgumentException();
21075
      }
923 rajveer 21076
 
21077
      switch (field) {
21078
      case SUCCESS:
21079
        return isSetSuccess();
21080
      case EX:
21081
        return isSetEx();
21082
      }
21083
      throw new IllegalStateException();
21084
    }
21085
 
21086
    @Override
21087
    public boolean equals(Object that) {
21088
      if (that == null)
21089
        return false;
3061 chandransh 21090
      if (that instanceof getOrder_result)
21091
        return this.equals((getOrder_result)that);
923 rajveer 21092
      return false;
21093
    }
21094
 
3061 chandransh 21095
    public boolean equals(getOrder_result that) {
923 rajveer 21096
      if (that == null)
21097
        return false;
21098
 
3061 chandransh 21099
      boolean this_present_success = true && this.isSetSuccess();
21100
      boolean that_present_success = true && that.isSetSuccess();
923 rajveer 21101
      if (this_present_success || that_present_success) {
21102
        if (!(this_present_success && that_present_success))
21103
          return false;
3061 chandransh 21104
        if (!this.success.equals(that.success))
923 rajveer 21105
          return false;
21106
      }
21107
 
21108
      boolean this_present_ex = true && this.isSetEx();
21109
      boolean that_present_ex = true && that.isSetEx();
21110
      if (this_present_ex || that_present_ex) {
21111
        if (!(this_present_ex && that_present_ex))
21112
          return false;
21113
        if (!this.ex.equals(that.ex))
21114
          return false;
21115
      }
21116
 
21117
      return true;
21118
    }
21119
 
21120
    @Override
21121
    public int hashCode() {
21122
      return 0;
21123
    }
21124
 
3061 chandransh 21125
    public int compareTo(getOrder_result other) {
923 rajveer 21126
      if (!getClass().equals(other.getClass())) {
21127
        return getClass().getName().compareTo(other.getClass().getName());
21128
      }
21129
 
21130
      int lastComparison = 0;
3061 chandransh 21131
      getOrder_result typedOther = (getOrder_result)other;
923 rajveer 21132
 
3430 rajveer 21133
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
923 rajveer 21134
      if (lastComparison != 0) {
21135
        return lastComparison;
21136
      }
3430 rajveer 21137
      if (isSetSuccess()) {
21138
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21139
        if (lastComparison != 0) {
21140
          return lastComparison;
21141
        }
923 rajveer 21142
      }
3430 rajveer 21143
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
923 rajveer 21144
      if (lastComparison != 0) {
21145
        return lastComparison;
21146
      }
3430 rajveer 21147
      if (isSetEx()) {
21148
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
21149
        if (lastComparison != 0) {
21150
          return lastComparison;
21151
        }
923 rajveer 21152
      }
21153
      return 0;
21154
    }
21155
 
3430 rajveer 21156
    public _Fields fieldForId(int fieldId) {
21157
      return _Fields.findByThriftId(fieldId);
21158
    }
21159
 
21160
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21161
      org.apache.thrift.protocol.TField field;
923 rajveer 21162
      iprot.readStructBegin();
21163
      while (true)
21164
      {
21165
        field = iprot.readFieldBegin();
3430 rajveer 21166
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
923 rajveer 21167
          break;
21168
        }
3430 rajveer 21169
        switch (field.id) {
21170
          case 0: // SUCCESS
21171
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21172
              this.success = new Order();
21173
              this.success.read(iprot);
21174
            } else { 
21175
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21176
            }
21177
            break;
21178
          case 1: // EX
21179
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21180
              this.ex = new TransactionServiceException();
21181
              this.ex.read(iprot);
21182
            } else { 
21183
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21184
            }
21185
            break;
21186
          default:
21187
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923 rajveer 21188
        }
3430 rajveer 21189
        iprot.readFieldEnd();
923 rajveer 21190
      }
21191
      iprot.readStructEnd();
21192
      validate();
21193
    }
21194
 
3430 rajveer 21195
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
923 rajveer 21196
      oprot.writeStructBegin(STRUCT_DESC);
21197
 
21198
      if (this.isSetSuccess()) {
21199
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 21200
        this.success.write(oprot);
923 rajveer 21201
        oprot.writeFieldEnd();
21202
      } else if (this.isSetEx()) {
21203
        oprot.writeFieldBegin(EX_FIELD_DESC);
21204
        this.ex.write(oprot);
21205
        oprot.writeFieldEnd();
21206
      }
21207
      oprot.writeFieldStop();
21208
      oprot.writeStructEnd();
21209
    }
21210
 
21211
    @Override
21212
    public String toString() {
3061 chandransh 21213
      StringBuilder sb = new StringBuilder("getOrder_result(");
923 rajveer 21214
      boolean first = true;
21215
 
21216
      sb.append("success:");
3061 chandransh 21217
      if (this.success == null) {
21218
        sb.append("null");
21219
      } else {
21220
        sb.append(this.success);
21221
      }
923 rajveer 21222
      first = false;
21223
      if (!first) sb.append(", ");
21224
      sb.append("ex:");
21225
      if (this.ex == null) {
21226
        sb.append("null");
21227
      } else {
21228
        sb.append(this.ex);
21229
      }
21230
      first = false;
21231
      sb.append(")");
21232
      return sb.toString();
21233
    }
21234
 
3430 rajveer 21235
    public void validate() throws org.apache.thrift.TException {
923 rajveer 21236
      // check for required fields
21237
    }
21238
 
3430 rajveer 21239
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21240
      try {
21241
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21242
      } catch (org.apache.thrift.TException te) {
21243
        throw new java.io.IOException(te);
21244
      }
21245
    }
21246
 
21247
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21248
      try {
21249
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21250
      } catch (org.apache.thrift.TException te) {
21251
        throw new java.io.IOException(te);
21252
      }
21253
    }
21254
 
923 rajveer 21255
  }
21256
 
3430 rajveer 21257
  public static class getLineItemsForOrder_args implements org.apache.thrift.TBase<getLineItemsForOrder_args, getLineItemsForOrder_args._Fields>, java.io.Serializable, Cloneable   {
21258
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLineItemsForOrder_args");
68 ashish 21259
 
3430 rajveer 21260
    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 21261
 
3430 rajveer 21262
    private long orderId; // required
68 ashish 21263
 
21264
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 21265
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 21266
      ORDER_ID((short)1, "orderId");
68 ashish 21267
 
21268
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21269
 
21270
      static {
21271
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21272
          byName.put(field.getFieldName(), field);
21273
        }
21274
      }
21275
 
21276
      /**
21277
       * Find the _Fields constant that matches fieldId, or null if its not found.
21278
       */
21279
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21280
        switch(fieldId) {
21281
          case 1: // ORDER_ID
21282
            return ORDER_ID;
21283
          default:
21284
            return null;
21285
        }
68 ashish 21286
      }
21287
 
21288
      /**
21289
       * Find the _Fields constant that matches fieldId, throwing an exception
21290
       * if it is not found.
21291
       */
21292
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21293
        _Fields fields = findByThriftId(fieldId);
21294
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21295
        return fields;
21296
      }
21297
 
21298
      /**
21299
       * Find the _Fields constant that matches name, or null if its not found.
21300
       */
21301
      public static _Fields findByName(String name) {
21302
        return byName.get(name);
21303
      }
21304
 
21305
      private final short _thriftId;
21306
      private final String _fieldName;
21307
 
21308
      _Fields(short thriftId, String fieldName) {
21309
        _thriftId = thriftId;
21310
        _fieldName = fieldName;
21311
      }
21312
 
21313
      public short getThriftFieldId() {
21314
        return _thriftId;
21315
      }
21316
 
21317
      public String getFieldName() {
21318
        return _fieldName;
21319
      }
21320
    }
21321
 
21322
    // isset id assignments
3061 chandransh 21323
    private static final int __ORDERID_ISSET_ID = 0;
21324
    private BitSet __isset_bit_vector = new BitSet(1);
68 ashish 21325
 
3430 rajveer 21326
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 21327
    static {
3430 rajveer 21328
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21329
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21330
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21331
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21332
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_args.class, metaDataMap);
68 ashish 21333
    }
21334
 
3061 chandransh 21335
    public getLineItemsForOrder_args() {
68 ashish 21336
    }
21337
 
3061 chandransh 21338
    public getLineItemsForOrder_args(
21339
      long orderId)
68 ashish 21340
    {
21341
      this();
3061 chandransh 21342
      this.orderId = orderId;
21343
      setOrderIdIsSet(true);
68 ashish 21344
    }
21345
 
21346
    /**
21347
     * Performs a deep copy on <i>other</i>.
21348
     */
3061 chandransh 21349
    public getLineItemsForOrder_args(getLineItemsForOrder_args other) {
68 ashish 21350
      __isset_bit_vector.clear();
21351
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 21352
      this.orderId = other.orderId;
68 ashish 21353
    }
21354
 
3061 chandransh 21355
    public getLineItemsForOrder_args deepCopy() {
21356
      return new getLineItemsForOrder_args(this);
68 ashish 21357
    }
21358
 
3430 rajveer 21359
    @Override
21360
    public void clear() {
21361
      setOrderIdIsSet(false);
21362
      this.orderId = 0;
68 ashish 21363
    }
21364
 
3061 chandransh 21365
    public long getOrderId() {
21366
      return this.orderId;
68 ashish 21367
    }
21368
 
3430 rajveer 21369
    public void setOrderId(long orderId) {
3061 chandransh 21370
      this.orderId = orderId;
21371
      setOrderIdIsSet(true);
68 ashish 21372
    }
21373
 
3061 chandransh 21374
    public void unsetOrderId() {
21375
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
68 ashish 21376
    }
21377
 
3430 rajveer 21378
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 21379
    public boolean isSetOrderId() {
21380
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
68 ashish 21381
    }
21382
 
3061 chandransh 21383
    public void setOrderIdIsSet(boolean value) {
21384
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
68 ashish 21385
    }
21386
 
21387
    public void setFieldValue(_Fields field, Object value) {
21388
      switch (field) {
3061 chandransh 21389
      case ORDER_ID:
68 ashish 21390
        if (value == null) {
3061 chandransh 21391
          unsetOrderId();
68 ashish 21392
        } else {
3061 chandransh 21393
          setOrderId((Long)value);
68 ashish 21394
        }
21395
        break;
21396
 
21397
      }
21398
    }
21399
 
21400
    public Object getFieldValue(_Fields field) {
21401
      switch (field) {
3061 chandransh 21402
      case ORDER_ID:
3430 rajveer 21403
        return Long.valueOf(getOrderId());
68 ashish 21404
 
21405
      }
21406
      throw new IllegalStateException();
21407
    }
21408
 
3430 rajveer 21409
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21410
    public boolean isSet(_Fields field) {
21411
      if (field == null) {
21412
        throw new IllegalArgumentException();
21413
      }
68 ashish 21414
 
21415
      switch (field) {
3061 chandransh 21416
      case ORDER_ID:
21417
        return isSetOrderId();
68 ashish 21418
      }
21419
      throw new IllegalStateException();
21420
    }
21421
 
21422
    @Override
21423
    public boolean equals(Object that) {
21424
      if (that == null)
21425
        return false;
3061 chandransh 21426
      if (that instanceof getLineItemsForOrder_args)
21427
        return this.equals((getLineItemsForOrder_args)that);
68 ashish 21428
      return false;
21429
    }
21430
 
3061 chandransh 21431
    public boolean equals(getLineItemsForOrder_args that) {
68 ashish 21432
      if (that == null)
21433
        return false;
21434
 
3061 chandransh 21435
      boolean this_present_orderId = true;
21436
      boolean that_present_orderId = true;
21437
      if (this_present_orderId || that_present_orderId) {
21438
        if (!(this_present_orderId && that_present_orderId))
68 ashish 21439
          return false;
3061 chandransh 21440
        if (this.orderId != that.orderId)
68 ashish 21441
          return false;
21442
      }
21443
 
21444
      return true;
21445
    }
21446
 
21447
    @Override
21448
    public int hashCode() {
21449
      return 0;
21450
    }
21451
 
3061 chandransh 21452
    public int compareTo(getLineItemsForOrder_args other) {
68 ashish 21453
      if (!getClass().equals(other.getClass())) {
21454
        return getClass().getName().compareTo(other.getClass().getName());
21455
      }
21456
 
21457
      int lastComparison = 0;
3061 chandransh 21458
      getLineItemsForOrder_args typedOther = (getLineItemsForOrder_args)other;
68 ashish 21459
 
3430 rajveer 21460
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
68 ashish 21461
      if (lastComparison != 0) {
21462
        return lastComparison;
21463
      }
3430 rajveer 21464
      if (isSetOrderId()) {
21465
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
21466
        if (lastComparison != 0) {
21467
          return lastComparison;
21468
        }
68 ashish 21469
      }
21470
      return 0;
21471
    }
21472
 
3430 rajveer 21473
    public _Fields fieldForId(int fieldId) {
21474
      return _Fields.findByThriftId(fieldId);
21475
    }
21476
 
21477
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21478
      org.apache.thrift.protocol.TField field;
68 ashish 21479
      iprot.readStructBegin();
21480
      while (true)
21481
      {
21482
        field = iprot.readFieldBegin();
3430 rajveer 21483
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 21484
          break;
21485
        }
3430 rajveer 21486
        switch (field.id) {
21487
          case 1: // ORDER_ID
21488
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21489
              this.orderId = iprot.readI64();
21490
              setOrderIdIsSet(true);
21491
            } else { 
21492
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21493
            }
21494
            break;
21495
          default:
21496
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 21497
        }
3430 rajveer 21498
        iprot.readFieldEnd();
68 ashish 21499
      }
21500
      iprot.readStructEnd();
21501
      validate();
21502
    }
21503
 
3430 rajveer 21504
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 21505
      validate();
21506
 
21507
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 21508
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
21509
      oprot.writeI64(this.orderId);
68 ashish 21510
      oprot.writeFieldEnd();
21511
      oprot.writeFieldStop();
21512
      oprot.writeStructEnd();
21513
    }
21514
 
21515
    @Override
21516
    public String toString() {
3061 chandransh 21517
      StringBuilder sb = new StringBuilder("getLineItemsForOrder_args(");
68 ashish 21518
      boolean first = true;
21519
 
3061 chandransh 21520
      sb.append("orderId:");
21521
      sb.append(this.orderId);
68 ashish 21522
      first = false;
21523
      sb.append(")");
21524
      return sb.toString();
21525
    }
21526
 
3430 rajveer 21527
    public void validate() throws org.apache.thrift.TException {
68 ashish 21528
      // check for required fields
21529
    }
21530
 
3430 rajveer 21531
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21532
      try {
21533
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21534
      } catch (org.apache.thrift.TException te) {
21535
        throw new java.io.IOException(te);
21536
      }
21537
    }
21538
 
21539
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21540
      try {
21541
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21542
        __isset_bit_vector = new BitSet(1);
21543
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21544
      } catch (org.apache.thrift.TException te) {
21545
        throw new java.io.IOException(te);
21546
      }
21547
    }
21548
 
68 ashish 21549
  }
21550
 
3430 rajveer 21551
  public static class getLineItemsForOrder_result implements org.apache.thrift.TBase<getLineItemsForOrder_result, getLineItemsForOrder_result._Fields>, java.io.Serializable, Cloneable   {
21552
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLineItemsForOrder_result");
68 ashish 21553
 
3430 rajveer 21554
    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);
21555
    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 21556
 
3430 rajveer 21557
    private List<LineItem> success; // required
21558
    private TransactionServiceException ex; // required
68 ashish 21559
 
21560
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 21561
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 21562
      SUCCESS((short)0, "success"),
21563
      EX((short)1, "ex");
21564
 
21565
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21566
 
21567
      static {
21568
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21569
          byName.put(field.getFieldName(), field);
21570
        }
21571
      }
21572
 
21573
      /**
21574
       * Find the _Fields constant that matches fieldId, or null if its not found.
21575
       */
21576
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21577
        switch(fieldId) {
21578
          case 0: // SUCCESS
21579
            return SUCCESS;
21580
          case 1: // EX
21581
            return EX;
21582
          default:
21583
            return null;
21584
        }
68 ashish 21585
      }
21586
 
21587
      /**
21588
       * Find the _Fields constant that matches fieldId, throwing an exception
21589
       * if it is not found.
21590
       */
21591
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21592
        _Fields fields = findByThriftId(fieldId);
21593
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21594
        return fields;
21595
      }
21596
 
21597
      /**
21598
       * Find the _Fields constant that matches name, or null if its not found.
21599
       */
21600
      public static _Fields findByName(String name) {
21601
        return byName.get(name);
21602
      }
21603
 
21604
      private final short _thriftId;
21605
      private final String _fieldName;
21606
 
21607
      _Fields(short thriftId, String fieldName) {
21608
        _thriftId = thriftId;
21609
        _fieldName = fieldName;
21610
      }
21611
 
21612
      public short getThriftFieldId() {
21613
        return _thriftId;
21614
      }
21615
 
21616
      public String getFieldName() {
21617
        return _fieldName;
21618
      }
21619
    }
21620
 
21621
    // isset id assignments
21622
 
3430 rajveer 21623
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 21624
    static {
3430 rajveer 21625
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21626
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21627
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
21628
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LineItem.class))));
21629
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21630
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21631
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21632
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_result.class, metaDataMap);
68 ashish 21633
    }
21634
 
3061 chandransh 21635
    public getLineItemsForOrder_result() {
68 ashish 21636
    }
21637
 
3061 chandransh 21638
    public getLineItemsForOrder_result(
21639
      List<LineItem> success,
68 ashish 21640
      TransactionServiceException ex)
21641
    {
21642
      this();
21643
      this.success = success;
21644
      this.ex = ex;
21645
    }
21646
 
21647
    /**
21648
     * Performs a deep copy on <i>other</i>.
21649
     */
3061 chandransh 21650
    public getLineItemsForOrder_result(getLineItemsForOrder_result other) {
483 rajveer 21651
      if (other.isSetSuccess()) {
3061 chandransh 21652
        List<LineItem> __this__success = new ArrayList<LineItem>();
21653
        for (LineItem other_element : other.success) {
21654
          __this__success.add(new LineItem(other_element));
483 rajveer 21655
        }
21656
        this.success = __this__success;
21657
      }
68 ashish 21658
      if (other.isSetEx()) {
21659
        this.ex = new TransactionServiceException(other.ex);
21660
      }
21661
    }
21662
 
3061 chandransh 21663
    public getLineItemsForOrder_result deepCopy() {
21664
      return new getLineItemsForOrder_result(this);
68 ashish 21665
    }
21666
 
3430 rajveer 21667
    @Override
21668
    public void clear() {
21669
      this.success = null;
21670
      this.ex = null;
68 ashish 21671
    }
21672
 
483 rajveer 21673
    public int getSuccessSize() {
21674
      return (this.success == null) ? 0 : this.success.size();
21675
    }
21676
 
3061 chandransh 21677
    public java.util.Iterator<LineItem> getSuccessIterator() {
483 rajveer 21678
      return (this.success == null) ? null : this.success.iterator();
21679
    }
21680
 
3061 chandransh 21681
    public void addToSuccess(LineItem elem) {
483 rajveer 21682
      if (this.success == null) {
3061 chandransh 21683
        this.success = new ArrayList<LineItem>();
483 rajveer 21684
      }
21685
      this.success.add(elem);
21686
    }
21687
 
3061 chandransh 21688
    public List<LineItem> getSuccess() {
68 ashish 21689
      return this.success;
21690
    }
21691
 
3430 rajveer 21692
    public void setSuccess(List<LineItem> success) {
68 ashish 21693
      this.success = success;
21694
    }
21695
 
21696
    public void unsetSuccess() {
483 rajveer 21697
      this.success = null;
68 ashish 21698
    }
21699
 
3430 rajveer 21700
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 21701
    public boolean isSetSuccess() {
483 rajveer 21702
      return this.success != null;
68 ashish 21703
    }
21704
 
21705
    public void setSuccessIsSet(boolean value) {
483 rajveer 21706
      if (!value) {
21707
        this.success = null;
21708
      }
68 ashish 21709
    }
21710
 
21711
    public TransactionServiceException getEx() {
21712
      return this.ex;
21713
    }
21714
 
3430 rajveer 21715
    public void setEx(TransactionServiceException ex) {
68 ashish 21716
      this.ex = ex;
21717
    }
21718
 
21719
    public void unsetEx() {
21720
      this.ex = null;
21721
    }
21722
 
3430 rajveer 21723
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 21724
    public boolean isSetEx() {
21725
      return this.ex != null;
21726
    }
21727
 
21728
    public void setExIsSet(boolean value) {
21729
      if (!value) {
21730
        this.ex = null;
21731
      }
21732
    }
21733
 
21734
    public void setFieldValue(_Fields field, Object value) {
21735
      switch (field) {
21736
      case SUCCESS:
21737
        if (value == null) {
21738
          unsetSuccess();
21739
        } else {
3061 chandransh 21740
          setSuccess((List<LineItem>)value);
68 ashish 21741
        }
21742
        break;
21743
 
21744
      case EX:
21745
        if (value == null) {
21746
          unsetEx();
21747
        } else {
21748
          setEx((TransactionServiceException)value);
21749
        }
21750
        break;
21751
 
21752
      }
21753
    }
21754
 
21755
    public Object getFieldValue(_Fields field) {
21756
      switch (field) {
21757
      case SUCCESS:
483 rajveer 21758
        return getSuccess();
68 ashish 21759
 
21760
      case EX:
21761
        return getEx();
21762
 
21763
      }
21764
      throw new IllegalStateException();
21765
    }
21766
 
3430 rajveer 21767
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21768
    public boolean isSet(_Fields field) {
21769
      if (field == null) {
21770
        throw new IllegalArgumentException();
21771
      }
68 ashish 21772
 
21773
      switch (field) {
21774
      case SUCCESS:
21775
        return isSetSuccess();
21776
      case EX:
21777
        return isSetEx();
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_result)
21787
        return this.equals((getLineItemsForOrder_result)that);
68 ashish 21788
      return false;
21789
    }
21790
 
3061 chandransh 21791
    public boolean equals(getLineItemsForOrder_result that) {
68 ashish 21792
      if (that == null)
21793
        return false;
21794
 
483 rajveer 21795
      boolean this_present_success = true && this.isSetSuccess();
21796
      boolean that_present_success = true && that.isSetSuccess();
68 ashish 21797
      if (this_present_success || that_present_success) {
21798
        if (!(this_present_success && that_present_success))
21799
          return false;
483 rajveer 21800
        if (!this.success.equals(that.success))
68 ashish 21801
          return false;
21802
      }
21803
 
21804
      boolean this_present_ex = true && this.isSetEx();
21805
      boolean that_present_ex = true && that.isSetEx();
21806
      if (this_present_ex || that_present_ex) {
21807
        if (!(this_present_ex && that_present_ex))
21808
          return false;
21809
        if (!this.ex.equals(that.ex))
21810
          return false;
21811
      }
21812
 
21813
      return true;
21814
    }
21815
 
21816
    @Override
21817
    public int hashCode() {
21818
      return 0;
21819
    }
21820
 
3061 chandransh 21821
    public int compareTo(getLineItemsForOrder_result other) {
68 ashish 21822
      if (!getClass().equals(other.getClass())) {
21823
        return getClass().getName().compareTo(other.getClass().getName());
21824
      }
21825
 
21826
      int lastComparison = 0;
3061 chandransh 21827
      getLineItemsForOrder_result typedOther = (getLineItemsForOrder_result)other;
68 ashish 21828
 
3430 rajveer 21829
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 21830
      if (lastComparison != 0) {
21831
        return lastComparison;
21832
      }
3430 rajveer 21833
      if (isSetSuccess()) {
21834
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21835
        if (lastComparison != 0) {
21836
          return lastComparison;
21837
        }
68 ashish 21838
      }
3430 rajveer 21839
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 21840
      if (lastComparison != 0) {
21841
        return lastComparison;
21842
      }
3430 rajveer 21843
      if (isSetEx()) {
21844
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
21845
        if (lastComparison != 0) {
21846
          return lastComparison;
21847
        }
68 ashish 21848
      }
21849
      return 0;
21850
    }
21851
 
3430 rajveer 21852
    public _Fields fieldForId(int fieldId) {
21853
      return _Fields.findByThriftId(fieldId);
21854
    }
21855
 
21856
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21857
      org.apache.thrift.protocol.TField field;
68 ashish 21858
      iprot.readStructBegin();
21859
      while (true)
21860
      {
21861
        field = iprot.readFieldBegin();
3430 rajveer 21862
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 21863
          break;
21864
        }
3430 rajveer 21865
        switch (field.id) {
21866
          case 0: // SUCCESS
21867
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21868
              {
4133 chandransh 21869
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
21870
                this.success = new ArrayList<LineItem>(_list60.size);
21871
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
483 rajveer 21872
                {
4133 chandransh 21873
                  LineItem _elem62; // required
21874
                  _elem62 = new LineItem();
21875
                  _elem62.read(iprot);
21876
                  this.success.add(_elem62);
483 rajveer 21877
                }
3430 rajveer 21878
                iprot.readListEnd();
68 ashish 21879
              }
3430 rajveer 21880
            } else { 
21881
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21882
            }
21883
            break;
21884
          case 1: // EX
21885
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21886
              this.ex = new TransactionServiceException();
21887
              this.ex.read(iprot);
21888
            } else { 
21889
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21890
            }
21891
            break;
21892
          default:
21893
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 21894
        }
3430 rajveer 21895
        iprot.readFieldEnd();
68 ashish 21896
      }
21897
      iprot.readStructEnd();
21898
      validate();
21899
    }
21900
 
3430 rajveer 21901
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 21902
      oprot.writeStructBegin(STRUCT_DESC);
21903
 
21904
      if (this.isSetSuccess()) {
21905
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
483 rajveer 21906
        {
3430 rajveer 21907
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 21908
          for (LineItem _iter63 : this.success)
483 rajveer 21909
          {
4133 chandransh 21910
            _iter63.write(oprot);
483 rajveer 21911
          }
21912
          oprot.writeListEnd();
21913
        }
68 ashish 21914
        oprot.writeFieldEnd();
21915
      } else if (this.isSetEx()) {
21916
        oprot.writeFieldBegin(EX_FIELD_DESC);
21917
        this.ex.write(oprot);
21918
        oprot.writeFieldEnd();
21919
      }
21920
      oprot.writeFieldStop();
21921
      oprot.writeStructEnd();
21922
    }
21923
 
21924
    @Override
21925
    public String toString() {
3061 chandransh 21926
      StringBuilder sb = new StringBuilder("getLineItemsForOrder_result(");
68 ashish 21927
      boolean first = true;
21928
 
21929
      sb.append("success:");
483 rajveer 21930
      if (this.success == null) {
21931
        sb.append("null");
21932
      } else {
21933
        sb.append(this.success);
21934
      }
68 ashish 21935
      first = false;
21936
      if (!first) sb.append(", ");
21937
      sb.append("ex:");
21938
      if (this.ex == null) {
21939
        sb.append("null");
21940
      } else {
21941
        sb.append(this.ex);
21942
      }
21943
      first = false;
21944
      sb.append(")");
21945
      return sb.toString();
21946
    }
21947
 
3430 rajveer 21948
    public void validate() throws org.apache.thrift.TException {
68 ashish 21949
      // check for required fields
21950
    }
21951
 
3430 rajveer 21952
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21953
      try {
21954
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21955
      } catch (org.apache.thrift.TException te) {
21956
        throw new java.io.IOException(te);
21957
      }
21958
    }
21959
 
21960
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21961
      try {
21962
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21963
      } catch (org.apache.thrift.TException te) {
21964
        throw new java.io.IOException(te);
21965
      }
21966
    }
21967
 
68 ashish 21968
  }
21969
 
3430 rajveer 21970
  public static class getOrderForCustomer_args implements org.apache.thrift.TBase<getOrderForCustomer_args, getOrderForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
21971
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForCustomer_args");
68 ashish 21972
 
3430 rajveer 21973
    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);
21974
    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 21975
 
3430 rajveer 21976
    private long orderId; // required
21977
    private long customerId; // required
68 ashish 21978
 
21979
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 21980
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 21981
      ORDER_ID((short)1, "orderId"),
21982
      CUSTOMER_ID((short)2, "customerId");
68 ashish 21983
 
21984
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21985
 
21986
      static {
21987
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21988
          byName.put(field.getFieldName(), field);
21989
        }
21990
      }
21991
 
21992
      /**
21993
       * Find the _Fields constant that matches fieldId, or null if its not found.
21994
       */
21995
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21996
        switch(fieldId) {
21997
          case 1: // ORDER_ID
21998
            return ORDER_ID;
21999
          case 2: // CUSTOMER_ID
22000
            return CUSTOMER_ID;
22001
          default:
22002
            return null;
22003
        }
68 ashish 22004
      }
22005
 
22006
      /**
22007
       * Find the _Fields constant that matches fieldId, throwing an exception
22008
       * if it is not found.
22009
       */
22010
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22011
        _Fields fields = findByThriftId(fieldId);
22012
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22013
        return fields;
22014
      }
22015
 
22016
      /**
22017
       * Find the _Fields constant that matches name, or null if its not found.
22018
       */
22019
      public static _Fields findByName(String name) {
22020
        return byName.get(name);
22021
      }
22022
 
22023
      private final short _thriftId;
22024
      private final String _fieldName;
22025
 
22026
      _Fields(short thriftId, String fieldName) {
22027
        _thriftId = thriftId;
22028
        _fieldName = fieldName;
22029
      }
22030
 
22031
      public short getThriftFieldId() {
22032
        return _thriftId;
22033
      }
22034
 
22035
      public String getFieldName() {
22036
        return _fieldName;
22037
      }
22038
    }
22039
 
22040
    // isset id assignments
3061 chandransh 22041
    private static final int __ORDERID_ISSET_ID = 0;
22042
    private static final int __CUSTOMERID_ISSET_ID = 1;
22043
    private BitSet __isset_bit_vector = new BitSet(2);
68 ashish 22044
 
3430 rajveer 22045
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 22046
    static {
3430 rajveer 22047
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22048
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22049
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22050
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22052
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22053
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForCustomer_args.class, metaDataMap);
68 ashish 22054
    }
22055
 
3061 chandransh 22056
    public getOrderForCustomer_args() {
68 ashish 22057
    }
22058
 
3061 chandransh 22059
    public getOrderForCustomer_args(
22060
      long orderId,
22061
      long customerId)
68 ashish 22062
    {
22063
      this();
3061 chandransh 22064
      this.orderId = orderId;
22065
      setOrderIdIsSet(true);
483 rajveer 22066
      this.customerId = customerId;
22067
      setCustomerIdIsSet(true);
68 ashish 22068
    }
22069
 
22070
    /**
22071
     * Performs a deep copy on <i>other</i>.
22072
     */
3061 chandransh 22073
    public getOrderForCustomer_args(getOrderForCustomer_args other) {
68 ashish 22074
      __isset_bit_vector.clear();
22075
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 22076
      this.orderId = other.orderId;
483 rajveer 22077
      this.customerId = other.customerId;
68 ashish 22078
    }
22079
 
3061 chandransh 22080
    public getOrderForCustomer_args deepCopy() {
22081
      return new getOrderForCustomer_args(this);
68 ashish 22082
    }
22083
 
3430 rajveer 22084
    @Override
22085
    public void clear() {
22086
      setOrderIdIsSet(false);
22087
      this.orderId = 0;
22088
      setCustomerIdIsSet(false);
22089
      this.customerId = 0;
68 ashish 22090
    }
22091
 
3061 chandransh 22092
    public long getOrderId() {
22093
      return this.orderId;
22094
    }
22095
 
3430 rajveer 22096
    public void setOrderId(long orderId) {
3061 chandransh 22097
      this.orderId = orderId;
22098
      setOrderIdIsSet(true);
22099
    }
22100
 
22101
    public void unsetOrderId() {
22102
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
22103
    }
22104
 
3430 rajveer 22105
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 22106
    public boolean isSetOrderId() {
22107
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
22108
    }
22109
 
22110
    public void setOrderIdIsSet(boolean value) {
22111
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
22112
    }
22113
 
483 rajveer 22114
    public long getCustomerId() {
22115
      return this.customerId;
68 ashish 22116
    }
22117
 
3430 rajveer 22118
    public void setCustomerId(long customerId) {
483 rajveer 22119
      this.customerId = customerId;
22120
      setCustomerIdIsSet(true);
68 ashish 22121
    }
22122
 
483 rajveer 22123
    public void unsetCustomerId() {
22124
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
68 ashish 22125
    }
22126
 
3430 rajveer 22127
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
483 rajveer 22128
    public boolean isSetCustomerId() {
22129
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
68 ashish 22130
    }
22131
 
483 rajveer 22132
    public void setCustomerIdIsSet(boolean value) {
22133
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
68 ashish 22134
    }
22135
 
22136
    public void setFieldValue(_Fields field, Object value) {
22137
      switch (field) {
3061 chandransh 22138
      case ORDER_ID:
68 ashish 22139
        if (value == null) {
3061 chandransh 22140
          unsetOrderId();
68 ashish 22141
        } else {
3061 chandransh 22142
          setOrderId((Long)value);
68 ashish 22143
        }
22144
        break;
22145
 
3061 chandransh 22146
      case CUSTOMER_ID:
68 ashish 22147
        if (value == null) {
3061 chandransh 22148
          unsetCustomerId();
68 ashish 22149
        } else {
3061 chandransh 22150
          setCustomerId((Long)value);
68 ashish 22151
        }
22152
        break;
22153
 
22154
      }
22155
    }
22156
 
22157
    public Object getFieldValue(_Fields field) {
22158
      switch (field) {
3061 chandransh 22159
      case ORDER_ID:
3430 rajveer 22160
        return Long.valueOf(getOrderId());
3061 chandransh 22161
 
483 rajveer 22162
      case CUSTOMER_ID:
3430 rajveer 22163
        return Long.valueOf(getCustomerId());
68 ashish 22164
 
22165
      }
22166
      throw new IllegalStateException();
22167
    }
22168
 
3430 rajveer 22169
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22170
    public boolean isSet(_Fields field) {
22171
      if (field == null) {
22172
        throw new IllegalArgumentException();
22173
      }
68 ashish 22174
 
22175
      switch (field) {
3061 chandransh 22176
      case ORDER_ID:
22177
        return isSetOrderId();
483 rajveer 22178
      case CUSTOMER_ID:
22179
        return isSetCustomerId();
68 ashish 22180
      }
22181
      throw new IllegalStateException();
22182
    }
22183
 
22184
    @Override
22185
    public boolean equals(Object that) {
22186
      if (that == null)
22187
        return false;
3061 chandransh 22188
      if (that instanceof getOrderForCustomer_args)
22189
        return this.equals((getOrderForCustomer_args)that);
68 ashish 22190
      return false;
22191
    }
22192
 
3061 chandransh 22193
    public boolean equals(getOrderForCustomer_args that) {
68 ashish 22194
      if (that == null)
22195
        return false;
22196
 
3061 chandransh 22197
      boolean this_present_orderId = true;
22198
      boolean that_present_orderId = true;
22199
      if (this_present_orderId || that_present_orderId) {
22200
        if (!(this_present_orderId && that_present_orderId))
22201
          return false;
22202
        if (this.orderId != that.orderId)
22203
          return false;
22204
      }
22205
 
483 rajveer 22206
      boolean this_present_customerId = true;
22207
      boolean that_present_customerId = true;
22208
      if (this_present_customerId || that_present_customerId) {
22209
        if (!(this_present_customerId && that_present_customerId))
68 ashish 22210
          return false;
483 rajveer 22211
        if (this.customerId != that.customerId)
68 ashish 22212
          return false;
22213
      }
22214
 
22215
      return true;
22216
    }
22217
 
22218
    @Override
22219
    public int hashCode() {
22220
      return 0;
22221
    }
22222
 
3061 chandransh 22223
    public int compareTo(getOrderForCustomer_args other) {
68 ashish 22224
      if (!getClass().equals(other.getClass())) {
22225
        return getClass().getName().compareTo(other.getClass().getName());
22226
      }
22227
 
22228
      int lastComparison = 0;
3061 chandransh 22229
      getOrderForCustomer_args typedOther = (getOrderForCustomer_args)other;
68 ashish 22230
 
3430 rajveer 22231
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
68 ashish 22232
      if (lastComparison != 0) {
22233
        return lastComparison;
22234
      }
3430 rajveer 22235
      if (isSetOrderId()) {
22236
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
22237
        if (lastComparison != 0) {
22238
          return lastComparison;
22239
        }
68 ashish 22240
      }
3430 rajveer 22241
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
68 ashish 22242
      if (lastComparison != 0) {
22243
        return lastComparison;
22244
      }
3430 rajveer 22245
      if (isSetCustomerId()) {
22246
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
22247
        if (lastComparison != 0) {
22248
          return lastComparison;
22249
        }
68 ashish 22250
      }
22251
      return 0;
22252
    }
22253
 
3430 rajveer 22254
    public _Fields fieldForId(int fieldId) {
22255
      return _Fields.findByThriftId(fieldId);
22256
    }
22257
 
22258
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22259
      org.apache.thrift.protocol.TField field;
68 ashish 22260
      iprot.readStructBegin();
22261
      while (true)
22262
      {
22263
        field = iprot.readFieldBegin();
3430 rajveer 22264
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 22265
          break;
22266
        }
3430 rajveer 22267
        switch (field.id) {
22268
          case 1: // ORDER_ID
22269
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22270
              this.orderId = iprot.readI64();
22271
              setOrderIdIsSet(true);
22272
            } else { 
22273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22274
            }
22275
            break;
22276
          case 2: // CUSTOMER_ID
22277
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22278
              this.customerId = iprot.readI64();
22279
              setCustomerIdIsSet(true);
22280
            } else { 
22281
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22282
            }
22283
            break;
22284
          default:
22285
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 22286
        }
3430 rajveer 22287
        iprot.readFieldEnd();
68 ashish 22288
      }
22289
      iprot.readStructEnd();
22290
      validate();
22291
    }
22292
 
3430 rajveer 22293
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 22294
      validate();
22295
 
22296
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 22297
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
22298
      oprot.writeI64(this.orderId);
22299
      oprot.writeFieldEnd();
483 rajveer 22300
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
22301
      oprot.writeI64(this.customerId);
68 ashish 22302
      oprot.writeFieldEnd();
22303
      oprot.writeFieldStop();
22304
      oprot.writeStructEnd();
22305
    }
22306
 
22307
    @Override
22308
    public String toString() {
3061 chandransh 22309
      StringBuilder sb = new StringBuilder("getOrderForCustomer_args(");
68 ashish 22310
      boolean first = true;
22311
 
3061 chandransh 22312
      sb.append("orderId:");
22313
      sb.append(this.orderId);
22314
      first = false;
22315
      if (!first) sb.append(", ");
483 rajveer 22316
      sb.append("customerId:");
22317
      sb.append(this.customerId);
68 ashish 22318
      first = false;
22319
      sb.append(")");
22320
      return sb.toString();
22321
    }
22322
 
3430 rajveer 22323
    public void validate() throws org.apache.thrift.TException {
68 ashish 22324
      // check for required fields
22325
    }
22326
 
3430 rajveer 22327
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22328
      try {
22329
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22330
      } catch (org.apache.thrift.TException te) {
22331
        throw new java.io.IOException(te);
22332
      }
22333
    }
22334
 
22335
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22336
      try {
22337
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22338
      } catch (org.apache.thrift.TException te) {
22339
        throw new java.io.IOException(te);
22340
      }
22341
    }
22342
 
68 ashish 22343
  }
22344
 
3430 rajveer 22345
  public static class getOrderForCustomer_result implements org.apache.thrift.TBase<getOrderForCustomer_result, getOrderForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
22346
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForCustomer_result");
68 ashish 22347
 
3430 rajveer 22348
    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);
22349
    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 22350
 
3430 rajveer 22351
    private Order success; // required
22352
    private TransactionServiceException ex; // required
68 ashish 22353
 
22354
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22355
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 22356
      SUCCESS((short)0, "success"),
22357
      EX((short)1, "ex");
22358
 
22359
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22360
 
22361
      static {
22362
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22363
          byName.put(field.getFieldName(), field);
22364
        }
22365
      }
22366
 
22367
      /**
22368
       * Find the _Fields constant that matches fieldId, or null if its not found.
22369
       */
22370
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22371
        switch(fieldId) {
22372
          case 0: // SUCCESS
22373
            return SUCCESS;
22374
          case 1: // EX
22375
            return EX;
22376
          default:
22377
            return null;
22378
        }
68 ashish 22379
      }
22380
 
22381
      /**
22382
       * Find the _Fields constant that matches fieldId, throwing an exception
22383
       * if it is not found.
22384
       */
22385
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22386
        _Fields fields = findByThriftId(fieldId);
22387
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22388
        return fields;
22389
      }
22390
 
22391
      /**
22392
       * Find the _Fields constant that matches name, or null if its not found.
22393
       */
22394
      public static _Fields findByName(String name) {
22395
        return byName.get(name);
22396
      }
22397
 
22398
      private final short _thriftId;
22399
      private final String _fieldName;
22400
 
22401
      _Fields(short thriftId, String fieldName) {
22402
        _thriftId = thriftId;
22403
        _fieldName = fieldName;
22404
      }
22405
 
22406
      public short getThriftFieldId() {
22407
        return _thriftId;
22408
      }
22409
 
22410
      public String getFieldName() {
22411
        return _fieldName;
22412
      }
22413
    }
22414
 
22415
    // isset id assignments
22416
 
3430 rajveer 22417
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 22418
    static {
3430 rajveer 22419
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22420
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22421
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
22422
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22423
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22424
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22425
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForCustomer_result.class, metaDataMap);
68 ashish 22426
    }
22427
 
3061 chandransh 22428
    public getOrderForCustomer_result() {
68 ashish 22429
    }
22430
 
3061 chandransh 22431
    public getOrderForCustomer_result(
22432
      Order success,
68 ashish 22433
      TransactionServiceException ex)
22434
    {
22435
      this();
22436
      this.success = success;
22437
      this.ex = ex;
22438
    }
22439
 
22440
    /**
22441
     * Performs a deep copy on <i>other</i>.
22442
     */
3061 chandransh 22443
    public getOrderForCustomer_result(getOrderForCustomer_result other) {
483 rajveer 22444
      if (other.isSetSuccess()) {
3061 chandransh 22445
        this.success = new Order(other.success);
483 rajveer 22446
      }
68 ashish 22447
      if (other.isSetEx()) {
22448
        this.ex = new TransactionServiceException(other.ex);
22449
      }
22450
    }
22451
 
3061 chandransh 22452
    public getOrderForCustomer_result deepCopy() {
22453
      return new getOrderForCustomer_result(this);
68 ashish 22454
    }
22455
 
3430 rajveer 22456
    @Override
22457
    public void clear() {
22458
      this.success = null;
22459
      this.ex = null;
68 ashish 22460
    }
22461
 
3061 chandransh 22462
    public Order getSuccess() {
68 ashish 22463
      return this.success;
22464
    }
22465
 
3430 rajveer 22466
    public void setSuccess(Order success) {
68 ashish 22467
      this.success = success;
22468
    }
22469
 
22470
    public void unsetSuccess() {
483 rajveer 22471
      this.success = null;
68 ashish 22472
    }
22473
 
3430 rajveer 22474
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 22475
    public boolean isSetSuccess() {
483 rajveer 22476
      return this.success != null;
68 ashish 22477
    }
22478
 
22479
    public void setSuccessIsSet(boolean value) {
483 rajveer 22480
      if (!value) {
22481
        this.success = null;
22482
      }
68 ashish 22483
    }
22484
 
22485
    public TransactionServiceException getEx() {
22486
      return this.ex;
22487
    }
22488
 
3430 rajveer 22489
    public void setEx(TransactionServiceException ex) {
68 ashish 22490
      this.ex = ex;
22491
    }
22492
 
22493
    public void unsetEx() {
22494
      this.ex = null;
22495
    }
22496
 
3430 rajveer 22497
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 22498
    public boolean isSetEx() {
22499
      return this.ex != null;
22500
    }
22501
 
22502
    public void setExIsSet(boolean value) {
22503
      if (!value) {
22504
        this.ex = null;
22505
      }
22506
    }
22507
 
22508
    public void setFieldValue(_Fields field, Object value) {
22509
      switch (field) {
22510
      case SUCCESS:
22511
        if (value == null) {
22512
          unsetSuccess();
22513
        } else {
3061 chandransh 22514
          setSuccess((Order)value);
68 ashish 22515
        }
22516
        break;
22517
 
22518
      case EX:
22519
        if (value == null) {
22520
          unsetEx();
22521
        } else {
22522
          setEx((TransactionServiceException)value);
22523
        }
22524
        break;
22525
 
22526
      }
22527
    }
22528
 
22529
    public Object getFieldValue(_Fields field) {
22530
      switch (field) {
22531
      case SUCCESS:
483 rajveer 22532
        return getSuccess();
68 ashish 22533
 
22534
      case EX:
22535
        return getEx();
22536
 
22537
      }
22538
      throw new IllegalStateException();
22539
    }
22540
 
3430 rajveer 22541
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22542
    public boolean isSet(_Fields field) {
22543
      if (field == null) {
22544
        throw new IllegalArgumentException();
22545
      }
68 ashish 22546
 
22547
      switch (field) {
22548
      case SUCCESS:
22549
        return isSetSuccess();
22550
      case EX:
22551
        return isSetEx();
22552
      }
22553
      throw new IllegalStateException();
22554
    }
22555
 
22556
    @Override
22557
    public boolean equals(Object that) {
22558
      if (that == null)
22559
        return false;
3061 chandransh 22560
      if (that instanceof getOrderForCustomer_result)
22561
        return this.equals((getOrderForCustomer_result)that);
68 ashish 22562
      return false;
22563
    }
22564
 
3061 chandransh 22565
    public boolean equals(getOrderForCustomer_result that) {
68 ashish 22566
      if (that == null)
22567
        return false;
22568
 
483 rajveer 22569
      boolean this_present_success = true && this.isSetSuccess();
22570
      boolean that_present_success = true && that.isSetSuccess();
68 ashish 22571
      if (this_present_success || that_present_success) {
22572
        if (!(this_present_success && that_present_success))
22573
          return false;
483 rajveer 22574
        if (!this.success.equals(that.success))
68 ashish 22575
          return false;
22576
      }
22577
 
22578
      boolean this_present_ex = true && this.isSetEx();
22579
      boolean that_present_ex = true && that.isSetEx();
22580
      if (this_present_ex || that_present_ex) {
22581
        if (!(this_present_ex && that_present_ex))
22582
          return false;
22583
        if (!this.ex.equals(that.ex))
22584
          return false;
22585
      }
22586
 
22587
      return true;
22588
    }
22589
 
22590
    @Override
22591
    public int hashCode() {
22592
      return 0;
22593
    }
22594
 
3061 chandransh 22595
    public int compareTo(getOrderForCustomer_result other) {
68 ashish 22596
      if (!getClass().equals(other.getClass())) {
22597
        return getClass().getName().compareTo(other.getClass().getName());
22598
      }
22599
 
22600
      int lastComparison = 0;
3061 chandransh 22601
      getOrderForCustomer_result typedOther = (getOrderForCustomer_result)other;
68 ashish 22602
 
3430 rajveer 22603
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 22604
      if (lastComparison != 0) {
22605
        return lastComparison;
22606
      }
3430 rajveer 22607
      if (isSetSuccess()) {
22608
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22609
        if (lastComparison != 0) {
22610
          return lastComparison;
22611
        }
68 ashish 22612
      }
3430 rajveer 22613
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 22614
      if (lastComparison != 0) {
22615
        return lastComparison;
22616
      }
3430 rajveer 22617
      if (isSetEx()) {
22618
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
22619
        if (lastComparison != 0) {
22620
          return lastComparison;
22621
        }
68 ashish 22622
      }
22623
      return 0;
22624
    }
22625
 
3430 rajveer 22626
    public _Fields fieldForId(int fieldId) {
22627
      return _Fields.findByThriftId(fieldId);
22628
    }
22629
 
22630
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22631
      org.apache.thrift.protocol.TField field;
68 ashish 22632
      iprot.readStructBegin();
22633
      while (true)
22634
      {
22635
        field = iprot.readFieldBegin();
3430 rajveer 22636
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 22637
          break;
22638
        }
3430 rajveer 22639
        switch (field.id) {
22640
          case 0: // SUCCESS
22641
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22642
              this.success = new Order();
22643
              this.success.read(iprot);
22644
            } else { 
22645
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22646
            }
22647
            break;
22648
          case 1: // EX
22649
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22650
              this.ex = new TransactionServiceException();
22651
              this.ex.read(iprot);
22652
            } else { 
22653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22654
            }
22655
            break;
22656
          default:
22657
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 22658
        }
3430 rajveer 22659
        iprot.readFieldEnd();
68 ashish 22660
      }
22661
      iprot.readStructEnd();
22662
      validate();
22663
    }
22664
 
3430 rajveer 22665
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 22666
      oprot.writeStructBegin(STRUCT_DESC);
22667
 
22668
      if (this.isSetSuccess()) {
22669
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 22670
        this.success.write(oprot);
68 ashish 22671
        oprot.writeFieldEnd();
22672
      } else if (this.isSetEx()) {
22673
        oprot.writeFieldBegin(EX_FIELD_DESC);
22674
        this.ex.write(oprot);
22675
        oprot.writeFieldEnd();
22676
      }
22677
      oprot.writeFieldStop();
22678
      oprot.writeStructEnd();
22679
    }
22680
 
22681
    @Override
22682
    public String toString() {
3061 chandransh 22683
      StringBuilder sb = new StringBuilder("getOrderForCustomer_result(");
68 ashish 22684
      boolean first = true;
22685
 
22686
      sb.append("success:");
483 rajveer 22687
      if (this.success == null) {
22688
        sb.append("null");
22689
      } else {
22690
        sb.append(this.success);
22691
      }
68 ashish 22692
      first = false;
22693
      if (!first) sb.append(", ");
22694
      sb.append("ex:");
22695
      if (this.ex == null) {
22696
        sb.append("null");
22697
      } else {
22698
        sb.append(this.ex);
22699
      }
22700
      first = false;
22701
      sb.append(")");
22702
      return sb.toString();
22703
    }
22704
 
3430 rajveer 22705
    public void validate() throws org.apache.thrift.TException {
68 ashish 22706
      // check for required fields
22707
    }
22708
 
3430 rajveer 22709
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22710
      try {
22711
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22712
      } catch (org.apache.thrift.TException te) {
22713
        throw new java.io.IOException(te);
22714
      }
22715
    }
22716
 
22717
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22718
      try {
22719
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22720
      } catch (org.apache.thrift.TException te) {
22721
        throw new java.io.IOException(te);
22722
      }
22723
    }
22724
 
68 ashish 22725
  }
22726
 
3430 rajveer 22727
  public static class getAlerts_args implements org.apache.thrift.TBase<getAlerts_args, getAlerts_args._Fields>, java.io.Serializable, Cloneable   {
22728
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlerts_args");
68 ashish 22729
 
3430 rajveer 22730
    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);
22731
    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 22732
 
3430 rajveer 22733
    private long orderId; // required
22734
    private boolean valid; // required
68 ashish 22735
 
22736
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22737
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 22738
      ORDER_ID((short)1, "orderId"),
22739
      VALID((short)2, "valid");
68 ashish 22740
 
22741
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22742
 
22743
      static {
22744
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22745
          byName.put(field.getFieldName(), field);
22746
        }
22747
      }
22748
 
22749
      /**
22750
       * Find the _Fields constant that matches fieldId, or null if its not found.
22751
       */
22752
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22753
        switch(fieldId) {
22754
          case 1: // ORDER_ID
22755
            return ORDER_ID;
22756
          case 2: // VALID
22757
            return VALID;
22758
          default:
22759
            return null;
22760
        }
68 ashish 22761
      }
22762
 
22763
      /**
22764
       * Find the _Fields constant that matches fieldId, throwing an exception
22765
       * if it is not found.
22766
       */
22767
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22768
        _Fields fields = findByThriftId(fieldId);
22769
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22770
        return fields;
22771
      }
22772
 
22773
      /**
22774
       * Find the _Fields constant that matches name, or null if its not found.
22775
       */
22776
      public static _Fields findByName(String name) {
22777
        return byName.get(name);
22778
      }
22779
 
22780
      private final short _thriftId;
22781
      private final String _fieldName;
22782
 
22783
      _Fields(short thriftId, String fieldName) {
22784
        _thriftId = thriftId;
22785
        _fieldName = fieldName;
22786
      }
22787
 
22788
      public short getThriftFieldId() {
22789
        return _thriftId;
22790
      }
22791
 
22792
      public String getFieldName() {
22793
        return _fieldName;
22794
      }
22795
    }
22796
 
22797
    // isset id assignments
3061 chandransh 22798
    private static final int __ORDERID_ISSET_ID = 0;
22799
    private static final int __VALID_ISSET_ID = 1;
22800
    private BitSet __isset_bit_vector = new BitSet(2);
68 ashish 22801
 
3430 rajveer 22802
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 22803
    static {
3430 rajveer 22804
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22805
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22806
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22807
      tmpMap.put(_Fields.VALID, new org.apache.thrift.meta_data.FieldMetaData("valid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22808
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
22809
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22810
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlerts_args.class, metaDataMap);
68 ashish 22811
    }
22812
 
3061 chandransh 22813
    public getAlerts_args() {
68 ashish 22814
    }
22815
 
3061 chandransh 22816
    public getAlerts_args(
22817
      long orderId,
22818
      boolean valid)
68 ashish 22819
    {
22820
      this();
3061 chandransh 22821
      this.orderId = orderId;
22822
      setOrderIdIsSet(true);
22823
      this.valid = valid;
22824
      setValidIsSet(true);
68 ashish 22825
    }
22826
 
22827
    /**
22828
     * Performs a deep copy on <i>other</i>.
22829
     */
3061 chandransh 22830
    public getAlerts_args(getAlerts_args other) {
22831
      __isset_bit_vector.clear();
22832
      __isset_bit_vector.or(other.__isset_bit_vector);
22833
      this.orderId = other.orderId;
22834
      this.valid = other.valid;
68 ashish 22835
    }
22836
 
3061 chandransh 22837
    public getAlerts_args deepCopy() {
22838
      return new getAlerts_args(this);
68 ashish 22839
    }
22840
 
3430 rajveer 22841
    @Override
22842
    public void clear() {
22843
      setOrderIdIsSet(false);
22844
      this.orderId = 0;
22845
      setValidIsSet(false);
22846
      this.valid = false;
68 ashish 22847
    }
22848
 
3061 chandransh 22849
    public long getOrderId() {
22850
      return this.orderId;
68 ashish 22851
    }
22852
 
3430 rajveer 22853
    public void setOrderId(long orderId) {
3061 chandransh 22854
      this.orderId = orderId;
22855
      setOrderIdIsSet(true);
68 ashish 22856
    }
22857
 
3061 chandransh 22858
    public void unsetOrderId() {
22859
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
68 ashish 22860
    }
22861
 
3430 rajveer 22862
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 22863
    public boolean isSetOrderId() {
22864
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
68 ashish 22865
    }
22866
 
3061 chandransh 22867
    public void setOrderIdIsSet(boolean value) {
22868
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
68 ashish 22869
    }
22870
 
3061 chandransh 22871
    public boolean isValid() {
22872
      return this.valid;
22873
    }
22874
 
3430 rajveer 22875
    public void setValid(boolean valid) {
3061 chandransh 22876
      this.valid = valid;
22877
      setValidIsSet(true);
22878
    }
22879
 
22880
    public void unsetValid() {
22881
      __isset_bit_vector.clear(__VALID_ISSET_ID);
22882
    }
22883
 
3430 rajveer 22884
    /** Returns true if field valid is set (has been assigned a value) and false otherwise */
3061 chandransh 22885
    public boolean isSetValid() {
22886
      return __isset_bit_vector.get(__VALID_ISSET_ID);
22887
    }
22888
 
22889
    public void setValidIsSet(boolean value) {
22890
      __isset_bit_vector.set(__VALID_ISSET_ID, value);
22891
    }
22892
 
68 ashish 22893
    public void setFieldValue(_Fields field, Object value) {
22894
      switch (field) {
3061 chandransh 22895
      case ORDER_ID:
68 ashish 22896
        if (value == null) {
3061 chandransh 22897
          unsetOrderId();
68 ashish 22898
        } else {
3061 chandransh 22899
          setOrderId((Long)value);
68 ashish 22900
        }
22901
        break;
22902
 
3061 chandransh 22903
      case VALID:
22904
        if (value == null) {
22905
          unsetValid();
22906
        } else {
22907
          setValid((Boolean)value);
22908
        }
22909
        break;
22910
 
68 ashish 22911
      }
22912
    }
22913
 
22914
    public Object getFieldValue(_Fields field) {
22915
      switch (field) {
3061 chandransh 22916
      case ORDER_ID:
3430 rajveer 22917
        return Long.valueOf(getOrderId());
68 ashish 22918
 
3061 chandransh 22919
      case VALID:
3430 rajveer 22920
        return Boolean.valueOf(isValid());
3061 chandransh 22921
 
68 ashish 22922
      }
22923
      throw new IllegalStateException();
22924
    }
22925
 
3430 rajveer 22926
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22927
    public boolean isSet(_Fields field) {
22928
      if (field == null) {
22929
        throw new IllegalArgumentException();
22930
      }
68 ashish 22931
 
22932
      switch (field) {
3061 chandransh 22933
      case ORDER_ID:
22934
        return isSetOrderId();
22935
      case VALID:
22936
        return isSetValid();
68 ashish 22937
      }
22938
      throw new IllegalStateException();
22939
    }
22940
 
22941
    @Override
22942
    public boolean equals(Object that) {
22943
      if (that == null)
22944
        return false;
3061 chandransh 22945
      if (that instanceof getAlerts_args)
22946
        return this.equals((getAlerts_args)that);
68 ashish 22947
      return false;
22948
    }
22949
 
3061 chandransh 22950
    public boolean equals(getAlerts_args that) {
68 ashish 22951
      if (that == null)
22952
        return false;
22953
 
3061 chandransh 22954
      boolean this_present_orderId = true;
22955
      boolean that_present_orderId = true;
22956
      if (this_present_orderId || that_present_orderId) {
22957
        if (!(this_present_orderId && that_present_orderId))
68 ashish 22958
          return false;
3061 chandransh 22959
        if (this.orderId != that.orderId)
68 ashish 22960
          return false;
22961
      }
22962
 
3061 chandransh 22963
      boolean this_present_valid = true;
22964
      boolean that_present_valid = true;
22965
      if (this_present_valid || that_present_valid) {
22966
        if (!(this_present_valid && that_present_valid))
22967
          return false;
22968
        if (this.valid != that.valid)
22969
          return false;
22970
      }
22971
 
68 ashish 22972
      return true;
22973
    }
22974
 
22975
    @Override
22976
    public int hashCode() {
22977
      return 0;
22978
    }
22979
 
3061 chandransh 22980
    public int compareTo(getAlerts_args other) {
68 ashish 22981
      if (!getClass().equals(other.getClass())) {
22982
        return getClass().getName().compareTo(other.getClass().getName());
22983
      }
22984
 
22985
      int lastComparison = 0;
3061 chandransh 22986
      getAlerts_args typedOther = (getAlerts_args)other;
68 ashish 22987
 
3430 rajveer 22988
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
68 ashish 22989
      if (lastComparison != 0) {
22990
        return lastComparison;
22991
      }
3430 rajveer 22992
      if (isSetOrderId()) {
22993
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
22994
        if (lastComparison != 0) {
22995
          return lastComparison;
22996
        }
68 ashish 22997
      }
3430 rajveer 22998
      lastComparison = Boolean.valueOf(isSetValid()).compareTo(typedOther.isSetValid());
3061 chandransh 22999
      if (lastComparison != 0) {
23000
        return lastComparison;
23001
      }
3430 rajveer 23002
      if (isSetValid()) {
23003
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.valid, typedOther.valid);
23004
        if (lastComparison != 0) {
23005
          return lastComparison;
23006
        }
3061 chandransh 23007
      }
68 ashish 23008
      return 0;
23009
    }
23010
 
3430 rajveer 23011
    public _Fields fieldForId(int fieldId) {
23012
      return _Fields.findByThriftId(fieldId);
23013
    }
23014
 
23015
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23016
      org.apache.thrift.protocol.TField field;
68 ashish 23017
      iprot.readStructBegin();
23018
      while (true)
23019
      {
23020
        field = iprot.readFieldBegin();
3430 rajveer 23021
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 23022
          break;
23023
        }
3430 rajveer 23024
        switch (field.id) {
23025
          case 1: // ORDER_ID
23026
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23027
              this.orderId = iprot.readI64();
23028
              setOrderIdIsSet(true);
23029
            } else { 
23030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23031
            }
23032
            break;
23033
          case 2: // VALID
23034
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
23035
              this.valid = iprot.readBool();
23036
              setValidIsSet(true);
23037
            } else { 
23038
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23039
            }
23040
            break;
23041
          default:
23042
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 23043
        }
3430 rajveer 23044
        iprot.readFieldEnd();
68 ashish 23045
      }
23046
      iprot.readStructEnd();
23047
      validate();
23048
    }
23049
 
3430 rajveer 23050
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 23051
      validate();
23052
 
23053
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 23054
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
23055
      oprot.writeI64(this.orderId);
23056
      oprot.writeFieldEnd();
23057
      oprot.writeFieldBegin(VALID_FIELD_DESC);
23058
      oprot.writeBool(this.valid);
23059
      oprot.writeFieldEnd();
68 ashish 23060
      oprot.writeFieldStop();
23061
      oprot.writeStructEnd();
23062
    }
23063
 
23064
    @Override
23065
    public String toString() {
3061 chandransh 23066
      StringBuilder sb = new StringBuilder("getAlerts_args(");
68 ashish 23067
      boolean first = true;
23068
 
3061 chandransh 23069
      sb.append("orderId:");
23070
      sb.append(this.orderId);
68 ashish 23071
      first = false;
3061 chandransh 23072
      if (!first) sb.append(", ");
23073
      sb.append("valid:");
23074
      sb.append(this.valid);
23075
      first = false;
68 ashish 23076
      sb.append(")");
23077
      return sb.toString();
23078
    }
23079
 
3430 rajveer 23080
    public void validate() throws org.apache.thrift.TException {
68 ashish 23081
      // check for required fields
23082
    }
23083
 
3430 rajveer 23084
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23085
      try {
23086
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23087
      } catch (org.apache.thrift.TException te) {
23088
        throw new java.io.IOException(te);
23089
      }
23090
    }
23091
 
23092
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23093
      try {
23094
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23095
        __isset_bit_vector = new BitSet(1);
23096
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23097
      } catch (org.apache.thrift.TException te) {
23098
        throw new java.io.IOException(te);
23099
      }
23100
    }
23101
 
68 ashish 23102
  }
23103
 
3430 rajveer 23104
  public static class getAlerts_result implements org.apache.thrift.TBase<getAlerts_result, getAlerts_result._Fields>, java.io.Serializable, Cloneable   {
23105
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlerts_result");
68 ashish 23106
 
3430 rajveer 23107
    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 23108
 
3430 rajveer 23109
    private List<Alert> success; // required
68 ashish 23110
 
23111
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23112
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 23113
      SUCCESS((short)0, "success");
68 ashish 23114
 
23115
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23116
 
23117
      static {
23118
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23119
          byName.put(field.getFieldName(), field);
23120
        }
23121
      }
23122
 
23123
      /**
23124
       * Find the _Fields constant that matches fieldId, or null if its not found.
23125
       */
23126
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23127
        switch(fieldId) {
23128
          case 0: // SUCCESS
23129
            return SUCCESS;
23130
          default:
23131
            return null;
23132
        }
68 ashish 23133
      }
23134
 
23135
      /**
23136
       * Find the _Fields constant that matches fieldId, throwing an exception
23137
       * if it is not found.
23138
       */
23139
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23140
        _Fields fields = findByThriftId(fieldId);
23141
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23142
        return fields;
23143
      }
23144
 
23145
      /**
23146
       * Find the _Fields constant that matches name, or null if its not found.
23147
       */
23148
      public static _Fields findByName(String name) {
23149
        return byName.get(name);
23150
      }
23151
 
23152
      private final short _thriftId;
23153
      private final String _fieldName;
23154
 
23155
      _Fields(short thriftId, String fieldName) {
23156
        _thriftId = thriftId;
23157
        _fieldName = fieldName;
23158
      }
23159
 
23160
      public short getThriftFieldId() {
23161
        return _thriftId;
23162
      }
23163
 
23164
      public String getFieldName() {
23165
        return _fieldName;
23166
      }
23167
    }
23168
 
23169
    // isset id assignments
23170
 
3430 rajveer 23171
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 23172
    static {
3430 rajveer 23173
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23174
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23175
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23176
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Alert.class))));
23177
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23178
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlerts_result.class, metaDataMap);
68 ashish 23179
    }
23180
 
3061 chandransh 23181
    public getAlerts_result() {
68 ashish 23182
    }
23183
 
3061 chandransh 23184
    public getAlerts_result(
23185
      List<Alert> success)
68 ashish 23186
    {
23187
      this();
23188
      this.success = success;
23189
    }
23190
 
23191
    /**
23192
     * Performs a deep copy on <i>other</i>.
23193
     */
3061 chandransh 23194
    public getAlerts_result(getAlerts_result other) {
23195
      if (other.isSetSuccess()) {
23196
        List<Alert> __this__success = new ArrayList<Alert>();
23197
        for (Alert other_element : other.success) {
23198
          __this__success.add(new Alert(other_element));
23199
        }
23200
        this.success = __this__success;
68 ashish 23201
      }
23202
    }
23203
 
3061 chandransh 23204
    public getAlerts_result deepCopy() {
23205
      return new getAlerts_result(this);
68 ashish 23206
    }
23207
 
3430 rajveer 23208
    @Override
23209
    public void clear() {
23210
      this.success = null;
68 ashish 23211
    }
23212
 
3061 chandransh 23213
    public int getSuccessSize() {
23214
      return (this.success == null) ? 0 : this.success.size();
23215
    }
23216
 
23217
    public java.util.Iterator<Alert> getSuccessIterator() {
23218
      return (this.success == null) ? null : this.success.iterator();
23219
    }
23220
 
23221
    public void addToSuccess(Alert elem) {
23222
      if (this.success == null) {
23223
        this.success = new ArrayList<Alert>();
23224
      }
23225
      this.success.add(elem);
23226
    }
23227
 
23228
    public List<Alert> getSuccess() {
68 ashish 23229
      return this.success;
23230
    }
23231
 
3430 rajveer 23232
    public void setSuccess(List<Alert> success) {
68 ashish 23233
      this.success = success;
23234
    }
23235
 
23236
    public void unsetSuccess() {
3061 chandransh 23237
      this.success = null;
68 ashish 23238
    }
23239
 
3430 rajveer 23240
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 23241
    public boolean isSetSuccess() {
3061 chandransh 23242
      return this.success != null;
68 ashish 23243
    }
23244
 
23245
    public void setSuccessIsSet(boolean value) {
23246
      if (!value) {
3061 chandransh 23247
        this.success = null;
68 ashish 23248
      }
23249
    }
23250
 
23251
    public void setFieldValue(_Fields field, Object value) {
23252
      switch (field) {
23253
      case SUCCESS:
23254
        if (value == null) {
23255
          unsetSuccess();
23256
        } else {
3061 chandransh 23257
          setSuccess((List<Alert>)value);
68 ashish 23258
        }
23259
        break;
23260
 
23261
      }
23262
    }
23263
 
23264
    public Object getFieldValue(_Fields field) {
23265
      switch (field) {
23266
      case SUCCESS:
3061 chandransh 23267
        return getSuccess();
68 ashish 23268
 
23269
      }
23270
      throw new IllegalStateException();
23271
    }
23272
 
3430 rajveer 23273
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23274
    public boolean isSet(_Fields field) {
23275
      if (field == null) {
23276
        throw new IllegalArgumentException();
23277
      }
68 ashish 23278
 
23279
      switch (field) {
23280
      case SUCCESS:
23281
        return isSetSuccess();
23282
      }
23283
      throw new IllegalStateException();
23284
    }
23285
 
23286
    @Override
23287
    public boolean equals(Object that) {
23288
      if (that == null)
23289
        return false;
3061 chandransh 23290
      if (that instanceof getAlerts_result)
23291
        return this.equals((getAlerts_result)that);
68 ashish 23292
      return false;
23293
    }
23294
 
3061 chandransh 23295
    public boolean equals(getAlerts_result that) {
68 ashish 23296
      if (that == null)
23297
        return false;
23298
 
3061 chandransh 23299
      boolean this_present_success = true && this.isSetSuccess();
23300
      boolean that_present_success = true && that.isSetSuccess();
68 ashish 23301
      if (this_present_success || that_present_success) {
23302
        if (!(this_present_success && that_present_success))
23303
          return false;
3061 chandransh 23304
        if (!this.success.equals(that.success))
68 ashish 23305
          return false;
23306
      }
23307
 
23308
      return true;
23309
    }
23310
 
23311
    @Override
23312
    public int hashCode() {
23313
      return 0;
23314
    }
23315
 
3061 chandransh 23316
    public int compareTo(getAlerts_result other) {
68 ashish 23317
      if (!getClass().equals(other.getClass())) {
23318
        return getClass().getName().compareTo(other.getClass().getName());
23319
      }
23320
 
23321
      int lastComparison = 0;
3061 chandransh 23322
      getAlerts_result typedOther = (getAlerts_result)other;
68 ashish 23323
 
3430 rajveer 23324
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 23325
      if (lastComparison != 0) {
23326
        return lastComparison;
23327
      }
3430 rajveer 23328
      if (isSetSuccess()) {
23329
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23330
        if (lastComparison != 0) {
23331
          return lastComparison;
23332
        }
68 ashish 23333
      }
23334
      return 0;
23335
    }
23336
 
3430 rajveer 23337
    public _Fields fieldForId(int fieldId) {
23338
      return _Fields.findByThriftId(fieldId);
23339
    }
23340
 
23341
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23342
      org.apache.thrift.protocol.TField field;
68 ashish 23343
      iprot.readStructBegin();
23344
      while (true)
23345
      {
23346
        field = iprot.readFieldBegin();
3430 rajveer 23347
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 23348
          break;
23349
        }
3430 rajveer 23350
        switch (field.id) {
23351
          case 0: // SUCCESS
23352
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23353
              {
4133 chandransh 23354
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
23355
                this.success = new ArrayList<Alert>(_list64.size);
23356
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
3061 chandransh 23357
                {
4133 chandransh 23358
                  Alert _elem66; // required
23359
                  _elem66 = new Alert();
23360
                  _elem66.read(iprot);
23361
                  this.success.add(_elem66);
3061 chandransh 23362
                }
3430 rajveer 23363
                iprot.readListEnd();
68 ashish 23364
              }
3430 rajveer 23365
            } else { 
23366
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23367
            }
23368
            break;
23369
          default:
23370
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 23371
        }
3430 rajveer 23372
        iprot.readFieldEnd();
68 ashish 23373
      }
23374
      iprot.readStructEnd();
23375
      validate();
23376
    }
23377
 
3430 rajveer 23378
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 23379
      oprot.writeStructBegin(STRUCT_DESC);
23380
 
23381
      if (this.isSetSuccess()) {
23382
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 23383
        {
3430 rajveer 23384
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 23385
          for (Alert _iter67 : this.success)
3061 chandransh 23386
          {
4133 chandransh 23387
            _iter67.write(oprot);
3061 chandransh 23388
          }
23389
          oprot.writeListEnd();
23390
        }
68 ashish 23391
        oprot.writeFieldEnd();
23392
      }
23393
      oprot.writeFieldStop();
23394
      oprot.writeStructEnd();
23395
    }
23396
 
23397
    @Override
23398
    public String toString() {
3061 chandransh 23399
      StringBuilder sb = new StringBuilder("getAlerts_result(");
68 ashish 23400
      boolean first = true;
23401
 
23402
      sb.append("success:");
3061 chandransh 23403
      if (this.success == null) {
68 ashish 23404
        sb.append("null");
23405
      } else {
3061 chandransh 23406
        sb.append(this.success);
68 ashish 23407
      }
23408
      first = false;
23409
      sb.append(")");
23410
      return sb.toString();
23411
    }
23412
 
3430 rajveer 23413
    public void validate() throws org.apache.thrift.TException {
68 ashish 23414
      // check for required fields
23415
    }
23416
 
3430 rajveer 23417
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23418
      try {
23419
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23420
      } catch (org.apache.thrift.TException te) {
23421
        throw new java.io.IOException(te);
23422
      }
23423
    }
23424
 
23425
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23426
      try {
23427
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23428
      } catch (org.apache.thrift.TException te) {
23429
        throw new java.io.IOException(te);
23430
      }
23431
    }
23432
 
68 ashish 23433
  }
23434
 
3430 rajveer 23435
  public static class setAlert_args implements org.apache.thrift.TBase<setAlert_args, setAlert_args._Fields>, java.io.Serializable, Cloneable   {
23436
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setAlert_args");
68 ashish 23437
 
3430 rajveer 23438
    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);
23439
    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);
23440
    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);
23441
    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 23442
 
3430 rajveer 23443
    private long orderId; // required
23444
    private boolean unset; // required
23445
    private long type; // required
23446
    private String comment; // required
68 ashish 23447
 
23448
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23449
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 23450
      ORDER_ID((short)1, "orderId"),
23451
      UNSET((short)2, "unset"),
23452
      TYPE((short)3, "type"),
23453
      COMMENT((short)4, "comment");
68 ashish 23454
 
23455
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23456
 
23457
      static {
23458
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23459
          byName.put(field.getFieldName(), field);
23460
        }
23461
      }
23462
 
23463
      /**
23464
       * Find the _Fields constant that matches fieldId, or null if its not found.
23465
       */
23466
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23467
        switch(fieldId) {
23468
          case 1: // ORDER_ID
23469
            return ORDER_ID;
23470
          case 2: // UNSET
23471
            return UNSET;
23472
          case 3: // TYPE
23473
            return TYPE;
23474
          case 4: // COMMENT
23475
            return COMMENT;
23476
          default:
23477
            return null;
23478
        }
68 ashish 23479
      }
23480
 
23481
      /**
23482
       * Find the _Fields constant that matches fieldId, throwing an exception
23483
       * if it is not found.
23484
       */
23485
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23486
        _Fields fields = findByThriftId(fieldId);
23487
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23488
        return fields;
23489
      }
23490
 
23491
      /**
23492
       * Find the _Fields constant that matches name, or null if its not found.
23493
       */
23494
      public static _Fields findByName(String name) {
23495
        return byName.get(name);
23496
      }
23497
 
23498
      private final short _thriftId;
23499
      private final String _fieldName;
23500
 
23501
      _Fields(short thriftId, String fieldName) {
23502
        _thriftId = thriftId;
23503
        _fieldName = fieldName;
23504
      }
23505
 
23506
      public short getThriftFieldId() {
23507
        return _thriftId;
23508
      }
23509
 
23510
      public String getFieldName() {
23511
        return _fieldName;
23512
      }
23513
    }
23514
 
23515
    // isset id assignments
3061 chandransh 23516
    private static final int __ORDERID_ISSET_ID = 0;
23517
    private static final int __UNSET_ISSET_ID = 1;
23518
    private static final int __TYPE_ISSET_ID = 2;
23519
    private BitSet __isset_bit_vector = new BitSet(3);
68 ashish 23520
 
3430 rajveer 23521
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 23522
    static {
3430 rajveer 23523
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23524
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23525
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23526
      tmpMap.put(_Fields.UNSET, new org.apache.thrift.meta_data.FieldMetaData("unset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23527
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
23528
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23529
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23530
      tmpMap.put(_Fields.COMMENT, new org.apache.thrift.meta_data.FieldMetaData("comment", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23531
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23532
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23533
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setAlert_args.class, metaDataMap);
68 ashish 23534
    }
23535
 
3061 chandransh 23536
    public setAlert_args() {
68 ashish 23537
    }
23538
 
3061 chandransh 23539
    public setAlert_args(
23540
      long orderId,
23541
      boolean unset,
23542
      long type,
23543
      String comment)
68 ashish 23544
    {
23545
      this();
3061 chandransh 23546
      this.orderId = orderId;
23547
      setOrderIdIsSet(true);
23548
      this.unset = unset;
23549
      setUnsetIsSet(true);
23550
      this.type = type;
23551
      setTypeIsSet(true);
23552
      this.comment = comment;
68 ashish 23553
    }
23554
 
23555
    /**
23556
     * Performs a deep copy on <i>other</i>.
23557
     */
3061 chandransh 23558
    public setAlert_args(setAlert_args other) {
68 ashish 23559
      __isset_bit_vector.clear();
23560
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 23561
      this.orderId = other.orderId;
23562
      this.unset = other.unset;
23563
      this.type = other.type;
23564
      if (other.isSetComment()) {
23565
        this.comment = other.comment;
23566
      }
68 ashish 23567
    }
23568
 
3061 chandransh 23569
    public setAlert_args deepCopy() {
23570
      return new setAlert_args(this);
68 ashish 23571
    }
23572
 
3430 rajveer 23573
    @Override
23574
    public void clear() {
23575
      setOrderIdIsSet(false);
23576
      this.orderId = 0;
23577
      setUnsetIsSet(false);
23578
      this.unset = false;
23579
      setTypeIsSet(false);
23580
      this.type = 0;
23581
      this.comment = null;
68 ashish 23582
    }
23583
 
3061 chandransh 23584
    public long getOrderId() {
23585
      return this.orderId;
68 ashish 23586
    }
23587
 
3430 rajveer 23588
    public void setOrderId(long orderId) {
3061 chandransh 23589
      this.orderId = orderId;
23590
      setOrderIdIsSet(true);
68 ashish 23591
    }
23592
 
3061 chandransh 23593
    public void unsetOrderId() {
23594
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
68 ashish 23595
    }
23596
 
3430 rajveer 23597
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 23598
    public boolean isSetOrderId() {
23599
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
68 ashish 23600
    }
23601
 
3061 chandransh 23602
    public void setOrderIdIsSet(boolean value) {
23603
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
68 ashish 23604
    }
23605
 
3061 chandransh 23606
    public boolean isUnset() {
23607
      return this.unset;
23608
    }
23609
 
3430 rajveer 23610
    public void setUnset(boolean unset) {
3061 chandransh 23611
      this.unset = unset;
23612
      setUnsetIsSet(true);
23613
    }
23614
 
23615
    public void unsetUnset() {
23616
      __isset_bit_vector.clear(__UNSET_ISSET_ID);
23617
    }
23618
 
3430 rajveer 23619
    /** Returns true if field unset is set (has been assigned a value) and false otherwise */
3061 chandransh 23620
    public boolean isSetUnset() {
23621
      return __isset_bit_vector.get(__UNSET_ISSET_ID);
23622
    }
23623
 
23624
    public void setUnsetIsSet(boolean value) {
23625
      __isset_bit_vector.set(__UNSET_ISSET_ID, value);
23626
    }
23627
 
23628
    public long getType() {
23629
      return this.type;
23630
    }
23631
 
3430 rajveer 23632
    public void setType(long type) {
3061 chandransh 23633
      this.type = type;
23634
      setTypeIsSet(true);
23635
    }
23636
 
23637
    public void unsetType() {
23638
      __isset_bit_vector.clear(__TYPE_ISSET_ID);
23639
    }
23640
 
3430 rajveer 23641
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3061 chandransh 23642
    public boolean isSetType() {
23643
      return __isset_bit_vector.get(__TYPE_ISSET_ID);
23644
    }
23645
 
23646
    public void setTypeIsSet(boolean value) {
23647
      __isset_bit_vector.set(__TYPE_ISSET_ID, value);
23648
    }
23649
 
23650
    public String getComment() {
23651
      return this.comment;
23652
    }
23653
 
3430 rajveer 23654
    public void setComment(String comment) {
3061 chandransh 23655
      this.comment = comment;
23656
    }
23657
 
23658
    public void unsetComment() {
23659
      this.comment = null;
23660
    }
23661
 
3430 rajveer 23662
    /** Returns true if field comment is set (has been assigned a value) and false otherwise */
3061 chandransh 23663
    public boolean isSetComment() {
23664
      return this.comment != null;
23665
    }
23666
 
23667
    public void setCommentIsSet(boolean value) {
23668
      if (!value) {
23669
        this.comment = null;
23670
      }
23671
    }
23672
 
68 ashish 23673
    public void setFieldValue(_Fields field, Object value) {
23674
      switch (field) {
3061 chandransh 23675
      case ORDER_ID:
68 ashish 23676
        if (value == null) {
3061 chandransh 23677
          unsetOrderId();
68 ashish 23678
        } else {
3061 chandransh 23679
          setOrderId((Long)value);
68 ashish 23680
        }
23681
        break;
23682
 
3061 chandransh 23683
      case UNSET:
23684
        if (value == null) {
23685
          unsetUnset();
23686
        } else {
23687
          setUnset((Boolean)value);
23688
        }
23689
        break;
23690
 
23691
      case TYPE:
23692
        if (value == null) {
23693
          unsetType();
23694
        } else {
23695
          setType((Long)value);
23696
        }
23697
        break;
23698
 
23699
      case COMMENT:
23700
        if (value == null) {
23701
          unsetComment();
23702
        } else {
23703
          setComment((String)value);
23704
        }
23705
        break;
23706
 
68 ashish 23707
      }
23708
    }
23709
 
23710
    public Object getFieldValue(_Fields field) {
23711
      switch (field) {
3061 chandransh 23712
      case ORDER_ID:
3430 rajveer 23713
        return Long.valueOf(getOrderId());
68 ashish 23714
 
3061 chandransh 23715
      case UNSET:
3430 rajveer 23716
        return Boolean.valueOf(isUnset());
3061 chandransh 23717
 
23718
      case TYPE:
3430 rajveer 23719
        return Long.valueOf(getType());
3061 chandransh 23720
 
23721
      case COMMENT:
23722
        return getComment();
23723
 
68 ashish 23724
      }
23725
      throw new IllegalStateException();
23726
    }
23727
 
3430 rajveer 23728
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23729
    public boolean isSet(_Fields field) {
23730
      if (field == null) {
23731
        throw new IllegalArgumentException();
23732
      }
68 ashish 23733
 
23734
      switch (field) {
3061 chandransh 23735
      case ORDER_ID:
23736
        return isSetOrderId();
23737
      case UNSET:
23738
        return isSetUnset();
23739
      case TYPE:
23740
        return isSetType();
23741
      case COMMENT:
23742
        return isSetComment();
68 ashish 23743
      }
23744
      throw new IllegalStateException();
23745
    }
23746
 
23747
    @Override
23748
    public boolean equals(Object that) {
23749
      if (that == null)
23750
        return false;
3061 chandransh 23751
      if (that instanceof setAlert_args)
23752
        return this.equals((setAlert_args)that);
68 ashish 23753
      return false;
23754
    }
23755
 
3061 chandransh 23756
    public boolean equals(setAlert_args that) {
68 ashish 23757
      if (that == null)
23758
        return false;
23759
 
3061 chandransh 23760
      boolean this_present_orderId = true;
23761
      boolean that_present_orderId = true;
23762
      if (this_present_orderId || that_present_orderId) {
23763
        if (!(this_present_orderId && that_present_orderId))
68 ashish 23764
          return false;
3061 chandransh 23765
        if (this.orderId != that.orderId)
68 ashish 23766
          return false;
23767
      }
23768
 
3061 chandransh 23769
      boolean this_present_unset = true;
23770
      boolean that_present_unset = true;
23771
      if (this_present_unset || that_present_unset) {
23772
        if (!(this_present_unset && that_present_unset))
23773
          return false;
23774
        if (this.unset != that.unset)
23775
          return false;
23776
      }
23777
 
23778
      boolean this_present_type = true;
23779
      boolean that_present_type = true;
23780
      if (this_present_type || that_present_type) {
23781
        if (!(this_present_type && that_present_type))
23782
          return false;
23783
        if (this.type != that.type)
23784
          return false;
23785
      }
23786
 
23787
      boolean this_present_comment = true && this.isSetComment();
23788
      boolean that_present_comment = true && that.isSetComment();
23789
      if (this_present_comment || that_present_comment) {
23790
        if (!(this_present_comment && that_present_comment))
23791
          return false;
23792
        if (!this.comment.equals(that.comment))
23793
          return false;
23794
      }
23795
 
68 ashish 23796
      return true;
23797
    }
23798
 
23799
    @Override
23800
    public int hashCode() {
23801
      return 0;
23802
    }
23803
 
3061 chandransh 23804
    public int compareTo(setAlert_args other) {
68 ashish 23805
      if (!getClass().equals(other.getClass())) {
23806
        return getClass().getName().compareTo(other.getClass().getName());
23807
      }
23808
 
23809
      int lastComparison = 0;
3061 chandransh 23810
      setAlert_args typedOther = (setAlert_args)other;
68 ashish 23811
 
3430 rajveer 23812
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
68 ashish 23813
      if (lastComparison != 0) {
23814
        return lastComparison;
23815
      }
3430 rajveer 23816
      if (isSetOrderId()) {
23817
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
23818
        if (lastComparison != 0) {
23819
          return lastComparison;
23820
        }
68 ashish 23821
      }
3430 rajveer 23822
      lastComparison = Boolean.valueOf(isSetUnset()).compareTo(typedOther.isSetUnset());
3061 chandransh 23823
      if (lastComparison != 0) {
23824
        return lastComparison;
23825
      }
3430 rajveer 23826
      if (isSetUnset()) {
23827
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unset, typedOther.unset);
23828
        if (lastComparison != 0) {
23829
          return lastComparison;
23830
        }
3061 chandransh 23831
      }
3430 rajveer 23832
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3061 chandransh 23833
      if (lastComparison != 0) {
23834
        return lastComparison;
23835
      }
3430 rajveer 23836
      if (isSetType()) {
23837
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
23838
        if (lastComparison != 0) {
23839
          return lastComparison;
23840
        }
3061 chandransh 23841
      }
3430 rajveer 23842
      lastComparison = Boolean.valueOf(isSetComment()).compareTo(typedOther.isSetComment());
3061 chandransh 23843
      if (lastComparison != 0) {
23844
        return lastComparison;
23845
      }
3430 rajveer 23846
      if (isSetComment()) {
23847
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment);
23848
        if (lastComparison != 0) {
23849
          return lastComparison;
23850
        }
3061 chandransh 23851
      }
68 ashish 23852
      return 0;
23853
    }
23854
 
3430 rajveer 23855
    public _Fields fieldForId(int fieldId) {
23856
      return _Fields.findByThriftId(fieldId);
23857
    }
23858
 
23859
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23860
      org.apache.thrift.protocol.TField field;
68 ashish 23861
      iprot.readStructBegin();
23862
      while (true)
23863
      {
23864
        field = iprot.readFieldBegin();
3430 rajveer 23865
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 23866
          break;
23867
        }
3430 rajveer 23868
        switch (field.id) {
23869
          case 1: // ORDER_ID
23870
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23871
              this.orderId = iprot.readI64();
23872
              setOrderIdIsSet(true);
23873
            } else { 
23874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23875
            }
23876
            break;
23877
          case 2: // UNSET
23878
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
23879
              this.unset = iprot.readBool();
23880
              setUnsetIsSet(true);
23881
            } else { 
23882
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23883
            }
23884
            break;
23885
          case 3: // TYPE
23886
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23887
              this.type = iprot.readI64();
23888
              setTypeIsSet(true);
23889
            } else { 
23890
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23891
            }
23892
            break;
23893
          case 4: // COMMENT
23894
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23895
              this.comment = iprot.readString();
23896
            } else { 
23897
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23898
            }
23899
            break;
23900
          default:
23901
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 23902
        }
3430 rajveer 23903
        iprot.readFieldEnd();
68 ashish 23904
      }
23905
      iprot.readStructEnd();
23906
      validate();
23907
    }
23908
 
3430 rajveer 23909
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 23910
      validate();
23911
 
23912
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 23913
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
23914
      oprot.writeI64(this.orderId);
68 ashish 23915
      oprot.writeFieldEnd();
3061 chandransh 23916
      oprot.writeFieldBegin(UNSET_FIELD_DESC);
23917
      oprot.writeBool(this.unset);
23918
      oprot.writeFieldEnd();
23919
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
23920
      oprot.writeI64(this.type);
23921
      oprot.writeFieldEnd();
23922
      if (this.comment != null) {
23923
        oprot.writeFieldBegin(COMMENT_FIELD_DESC);
23924
        oprot.writeString(this.comment);
23925
        oprot.writeFieldEnd();
23926
      }
68 ashish 23927
      oprot.writeFieldStop();
23928
      oprot.writeStructEnd();
23929
    }
23930
 
23931
    @Override
23932
    public String toString() {
3061 chandransh 23933
      StringBuilder sb = new StringBuilder("setAlert_args(");
68 ashish 23934
      boolean first = true;
23935
 
3061 chandransh 23936
      sb.append("orderId:");
23937
      sb.append(this.orderId);
68 ashish 23938
      first = false;
3061 chandransh 23939
      if (!first) sb.append(", ");
23940
      sb.append("unset:");
23941
      sb.append(this.unset);
23942
      first = false;
23943
      if (!first) sb.append(", ");
23944
      sb.append("type:");
23945
      sb.append(this.type);
23946
      first = false;
23947
      if (!first) sb.append(", ");
23948
      sb.append("comment:");
23949
      if (this.comment == null) {
23950
        sb.append("null");
23951
      } else {
23952
        sb.append(this.comment);
23953
      }
23954
      first = false;
68 ashish 23955
      sb.append(")");
23956
      return sb.toString();
23957
    }
23958
 
3430 rajveer 23959
    public void validate() throws org.apache.thrift.TException {
68 ashish 23960
      // check for required fields
23961
    }
23962
 
3430 rajveer 23963
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23964
      try {
23965
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23966
      } catch (org.apache.thrift.TException te) {
23967
        throw new java.io.IOException(te);
23968
      }
23969
    }
23970
 
23971
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23972
      try {
23973
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23974
        __isset_bit_vector = new BitSet(1);
23975
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23976
      } catch (org.apache.thrift.TException te) {
23977
        throw new java.io.IOException(te);
23978
      }
23979
    }
23980
 
68 ashish 23981
  }
23982
 
3430 rajveer 23983
  public static class setAlert_result implements org.apache.thrift.TBase<setAlert_result, setAlert_result._Fields>, java.io.Serializable, Cloneable   {
23984
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setAlert_result");
68 ashish 23985
 
23986
 
23987
 
23988
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23989
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 23990
;
68 ashish 23991
 
23992
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23993
 
23994
      static {
23995
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23996
          byName.put(field.getFieldName(), field);
23997
        }
23998
      }
23999
 
24000
      /**
24001
       * Find the _Fields constant that matches fieldId, or null if its not found.
24002
       */
24003
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24004
        switch(fieldId) {
24005
          default:
24006
            return null;
24007
        }
68 ashish 24008
      }
24009
 
24010
      /**
24011
       * Find the _Fields constant that matches fieldId, throwing an exception
24012
       * if it is not found.
24013
       */
24014
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24015
        _Fields fields = findByThriftId(fieldId);
24016
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24017
        return fields;
24018
      }
24019
 
24020
      /**
24021
       * Find the _Fields constant that matches name, or null if its not found.
24022
       */
24023
      public static _Fields findByName(String name) {
24024
        return byName.get(name);
24025
      }
24026
 
24027
      private final short _thriftId;
24028
      private final String _fieldName;
24029
 
24030
      _Fields(short thriftId, String fieldName) {
24031
        _thriftId = thriftId;
24032
        _fieldName = fieldName;
24033
      }
24034
 
24035
      public short getThriftFieldId() {
24036
        return _thriftId;
24037
      }
24038
 
24039
      public String getFieldName() {
24040
        return _fieldName;
24041
      }
24042
    }
3430 rajveer 24043
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 24044
    static {
3430 rajveer 24045
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24046
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24047
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setAlert_result.class, metaDataMap);
3061 chandransh 24048
    }
24049
 
24050
    public setAlert_result() {
24051
    }
24052
 
24053
    /**
24054
     * Performs a deep copy on <i>other</i>.
24055
     */
24056
    public setAlert_result(setAlert_result other) {
24057
    }
24058
 
24059
    public setAlert_result deepCopy() {
24060
      return new setAlert_result(this);
24061
    }
24062
 
3430 rajveer 24063
    @Override
24064
    public void clear() {
3061 chandransh 24065
    }
24066
 
24067
    public void setFieldValue(_Fields field, Object value) {
24068
      switch (field) {
24069
      }
24070
    }
24071
 
24072
    public Object getFieldValue(_Fields field) {
24073
      switch (field) {
24074
      }
24075
      throw new IllegalStateException();
24076
    }
24077
 
3430 rajveer 24078
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24079
    public boolean isSet(_Fields field) {
24080
      if (field == null) {
24081
        throw new IllegalArgumentException();
24082
      }
3061 chandransh 24083
 
24084
      switch (field) {
24085
      }
24086
      throw new IllegalStateException();
24087
    }
24088
 
24089
    @Override
24090
    public boolean equals(Object that) {
24091
      if (that == null)
24092
        return false;
24093
      if (that instanceof setAlert_result)
24094
        return this.equals((setAlert_result)that);
24095
      return false;
24096
    }
24097
 
24098
    public boolean equals(setAlert_result that) {
24099
      if (that == null)
24100
        return false;
24101
 
24102
      return true;
24103
    }
24104
 
24105
    @Override
24106
    public int hashCode() {
24107
      return 0;
24108
    }
24109
 
24110
    public int compareTo(setAlert_result other) {
24111
      if (!getClass().equals(other.getClass())) {
24112
        return getClass().getName().compareTo(other.getClass().getName());
24113
      }
24114
 
24115
      int lastComparison = 0;
24116
      setAlert_result typedOther = (setAlert_result)other;
24117
 
24118
      return 0;
24119
    }
24120
 
3430 rajveer 24121
    public _Fields fieldForId(int fieldId) {
24122
      return _Fields.findByThriftId(fieldId);
24123
    }
24124
 
24125
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24126
      org.apache.thrift.protocol.TField field;
3061 chandransh 24127
      iprot.readStructBegin();
24128
      while (true)
24129
      {
24130
        field = iprot.readFieldBegin();
3430 rajveer 24131
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 24132
          break;
24133
        }
3430 rajveer 24134
        switch (field.id) {
24135
          default:
24136
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 24137
        }
3430 rajveer 24138
        iprot.readFieldEnd();
3061 chandransh 24139
      }
24140
      iprot.readStructEnd();
24141
      validate();
24142
    }
24143
 
3430 rajveer 24144
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 24145
      oprot.writeStructBegin(STRUCT_DESC);
24146
 
24147
      oprot.writeFieldStop();
24148
      oprot.writeStructEnd();
24149
    }
24150
 
24151
    @Override
24152
    public String toString() {
24153
      StringBuilder sb = new StringBuilder("setAlert_result(");
24154
      boolean first = true;
24155
 
24156
      sb.append(")");
24157
      return sb.toString();
24158
    }
24159
 
3430 rajveer 24160
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 24161
      // check for required fields
24162
    }
24163
 
3430 rajveer 24164
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24165
      try {
24166
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24167
      } catch (org.apache.thrift.TException te) {
24168
        throw new java.io.IOException(te);
24169
      }
24170
    }
24171
 
24172
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24173
      try {
24174
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24175
      } catch (org.apache.thrift.TException te) {
24176
        throw new java.io.IOException(te);
24177
      }
24178
    }
24179
 
3061 chandransh 24180
  }
24181
 
3430 rajveer 24182
  public static class getValidOrderCount_args implements org.apache.thrift.TBase<getValidOrderCount_args, getValidOrderCount_args._Fields>, java.io.Serializable, Cloneable   {
24183
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrderCount_args");
3061 chandransh 24184
 
24185
 
24186
 
24187
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24188
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 24189
;
24190
 
24191
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24192
 
24193
      static {
24194
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24195
          byName.put(field.getFieldName(), field);
24196
        }
24197
      }
24198
 
24199
      /**
24200
       * Find the _Fields constant that matches fieldId, or null if its not found.
24201
       */
24202
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24203
        switch(fieldId) {
24204
          default:
24205
            return null;
24206
        }
3061 chandransh 24207
      }
24208
 
24209
      /**
24210
       * Find the _Fields constant that matches fieldId, throwing an exception
24211
       * if it is not found.
24212
       */
24213
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24214
        _Fields fields = findByThriftId(fieldId);
24215
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24216
        return fields;
24217
      }
24218
 
24219
      /**
24220
       * Find the _Fields constant that matches name, or null if its not found.
24221
       */
24222
      public static _Fields findByName(String name) {
24223
        return byName.get(name);
24224
      }
24225
 
24226
      private final short _thriftId;
24227
      private final String _fieldName;
24228
 
24229
      _Fields(short thriftId, String fieldName) {
24230
        _thriftId = thriftId;
24231
        _fieldName = fieldName;
24232
      }
24233
 
24234
      public short getThriftFieldId() {
24235
        return _thriftId;
24236
      }
24237
 
24238
      public String getFieldName() {
24239
        return _fieldName;
24240
      }
24241
    }
3430 rajveer 24242
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 24243
    static {
3430 rajveer 24244
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24245
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24246
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrderCount_args.class, metaDataMap);
3061 chandransh 24247
    }
24248
 
24249
    public getValidOrderCount_args() {
24250
    }
24251
 
24252
    /**
24253
     * Performs a deep copy on <i>other</i>.
24254
     */
24255
    public getValidOrderCount_args(getValidOrderCount_args other) {
24256
    }
24257
 
24258
    public getValidOrderCount_args deepCopy() {
24259
      return new getValidOrderCount_args(this);
24260
    }
24261
 
3430 rajveer 24262
    @Override
24263
    public void clear() {
3061 chandransh 24264
    }
24265
 
24266
    public void setFieldValue(_Fields field, Object value) {
24267
      switch (field) {
24268
      }
24269
    }
24270
 
24271
    public Object getFieldValue(_Fields field) {
24272
      switch (field) {
24273
      }
24274
      throw new IllegalStateException();
24275
    }
24276
 
3430 rajveer 24277
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24278
    public boolean isSet(_Fields field) {
24279
      if (field == null) {
24280
        throw new IllegalArgumentException();
24281
      }
3061 chandransh 24282
 
24283
      switch (field) {
24284
      }
24285
      throw new IllegalStateException();
24286
    }
24287
 
24288
    @Override
24289
    public boolean equals(Object that) {
24290
      if (that == null)
24291
        return false;
24292
      if (that instanceof getValidOrderCount_args)
24293
        return this.equals((getValidOrderCount_args)that);
24294
      return false;
24295
    }
24296
 
24297
    public boolean equals(getValidOrderCount_args that) {
24298
      if (that == null)
24299
        return false;
24300
 
24301
      return true;
24302
    }
24303
 
24304
    @Override
24305
    public int hashCode() {
24306
      return 0;
24307
    }
24308
 
24309
    public int compareTo(getValidOrderCount_args other) {
24310
      if (!getClass().equals(other.getClass())) {
24311
        return getClass().getName().compareTo(other.getClass().getName());
24312
      }
24313
 
24314
      int lastComparison = 0;
24315
      getValidOrderCount_args typedOther = (getValidOrderCount_args)other;
24316
 
24317
      return 0;
24318
    }
24319
 
3430 rajveer 24320
    public _Fields fieldForId(int fieldId) {
24321
      return _Fields.findByThriftId(fieldId);
24322
    }
24323
 
24324
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24325
      org.apache.thrift.protocol.TField field;
3061 chandransh 24326
      iprot.readStructBegin();
24327
      while (true)
24328
      {
24329
        field = iprot.readFieldBegin();
3430 rajveer 24330
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 24331
          break;
24332
        }
3430 rajveer 24333
        switch (field.id) {
24334
          default:
24335
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 24336
        }
3430 rajveer 24337
        iprot.readFieldEnd();
3061 chandransh 24338
      }
24339
      iprot.readStructEnd();
24340
      validate();
24341
    }
24342
 
3430 rajveer 24343
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 24344
      validate();
24345
 
24346
      oprot.writeStructBegin(STRUCT_DESC);
24347
      oprot.writeFieldStop();
24348
      oprot.writeStructEnd();
24349
    }
24350
 
24351
    @Override
24352
    public String toString() {
24353
      StringBuilder sb = new StringBuilder("getValidOrderCount_args(");
24354
      boolean first = true;
24355
 
24356
      sb.append(")");
24357
      return sb.toString();
24358
    }
24359
 
3430 rajveer 24360
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 24361
      // check for required fields
24362
    }
24363
 
3430 rajveer 24364
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24365
      try {
24366
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24367
      } catch (org.apache.thrift.TException te) {
24368
        throw new java.io.IOException(te);
24369
      }
24370
    }
24371
 
24372
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24373
      try {
24374
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24375
      } catch (org.apache.thrift.TException te) {
24376
        throw new java.io.IOException(te);
24377
      }
24378
    }
24379
 
3061 chandransh 24380
  }
24381
 
3430 rajveer 24382
  public static class getValidOrderCount_result implements org.apache.thrift.TBase<getValidOrderCount_result, getValidOrderCount_result._Fields>, java.io.Serializable, Cloneable   {
24383
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrderCount_result");
3061 chandransh 24384
 
3430 rajveer 24385
    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 24386
 
3430 rajveer 24387
    private long success; // required
3061 chandransh 24388
 
24389
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24390
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 24391
      SUCCESS((short)0, "success");
24392
 
24393
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24394
 
24395
      static {
24396
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24397
          byName.put(field.getFieldName(), field);
24398
        }
24399
      }
24400
 
24401
      /**
24402
       * Find the _Fields constant that matches fieldId, or null if its not found.
24403
       */
24404
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24405
        switch(fieldId) {
24406
          case 0: // SUCCESS
24407
            return SUCCESS;
24408
          default:
24409
            return null;
24410
        }
3061 chandransh 24411
      }
24412
 
24413
      /**
24414
       * Find the _Fields constant that matches fieldId, throwing an exception
24415
       * if it is not found.
24416
       */
24417
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24418
        _Fields fields = findByThriftId(fieldId);
24419
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24420
        return fields;
24421
      }
24422
 
24423
      /**
24424
       * Find the _Fields constant that matches name, or null if its not found.
24425
       */
24426
      public static _Fields findByName(String name) {
24427
        return byName.get(name);
24428
      }
24429
 
24430
      private final short _thriftId;
24431
      private final String _fieldName;
24432
 
24433
      _Fields(short thriftId, String fieldName) {
24434
        _thriftId = thriftId;
24435
        _fieldName = fieldName;
24436
      }
24437
 
24438
      public short getThriftFieldId() {
24439
        return _thriftId;
24440
      }
24441
 
24442
      public String getFieldName() {
24443
        return _fieldName;
24444
      }
24445
    }
24446
 
68 ashish 24447
    // isset id assignments
3061 chandransh 24448
    private static final int __SUCCESS_ISSET_ID = 0;
24449
    private BitSet __isset_bit_vector = new BitSet(1);
68 ashish 24450
 
3430 rajveer 24451
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 24452
    static {
3430 rajveer 24453
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24454
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24455
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24456
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24457
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrderCount_result.class, metaDataMap);
68 ashish 24458
    }
24459
 
3061 chandransh 24460
    public getValidOrderCount_result() {
68 ashish 24461
    }
24462
 
3061 chandransh 24463
    public getValidOrderCount_result(
24464
      long success)
68 ashish 24465
    {
24466
      this();
24467
      this.success = success;
3061 chandransh 24468
      setSuccessIsSet(true);
68 ashish 24469
    }
24470
 
24471
    /**
24472
     * Performs a deep copy on <i>other</i>.
24473
     */
3061 chandransh 24474
    public getValidOrderCount_result(getValidOrderCount_result other) {
24475
      __isset_bit_vector.clear();
24476
      __isset_bit_vector.or(other.__isset_bit_vector);
24477
      this.success = other.success;
68 ashish 24478
    }
24479
 
3061 chandransh 24480
    public getValidOrderCount_result deepCopy() {
24481
      return new getValidOrderCount_result(this);
68 ashish 24482
    }
24483
 
3430 rajveer 24484
    @Override
24485
    public void clear() {
24486
      setSuccessIsSet(false);
24487
      this.success = 0;
68 ashish 24488
    }
24489
 
3061 chandransh 24490
    public long getSuccess() {
68 ashish 24491
      return this.success;
24492
    }
24493
 
3430 rajveer 24494
    public void setSuccess(long success) {
68 ashish 24495
      this.success = success;
3061 chandransh 24496
      setSuccessIsSet(true);
68 ashish 24497
    }
24498
 
24499
    public void unsetSuccess() {
3061 chandransh 24500
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
68 ashish 24501
    }
24502
 
3430 rajveer 24503
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 24504
    public boolean isSetSuccess() {
3061 chandransh 24505
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
68 ashish 24506
    }
24507
 
24508
    public void setSuccessIsSet(boolean value) {
3061 chandransh 24509
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
68 ashish 24510
    }
24511
 
24512
    public void setFieldValue(_Fields field, Object value) {
24513
      switch (field) {
24514
      case SUCCESS:
24515
        if (value == null) {
24516
          unsetSuccess();
24517
        } else {
3061 chandransh 24518
          setSuccess((Long)value);
68 ashish 24519
        }
24520
        break;
24521
 
24522
      }
24523
    }
24524
 
24525
    public Object getFieldValue(_Fields field) {
24526
      switch (field) {
24527
      case SUCCESS:
3430 rajveer 24528
        return Long.valueOf(getSuccess());
68 ashish 24529
 
24530
      }
24531
      throw new IllegalStateException();
24532
    }
24533
 
3430 rajveer 24534
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24535
    public boolean isSet(_Fields field) {
24536
      if (field == null) {
24537
        throw new IllegalArgumentException();
24538
      }
68 ashish 24539
 
24540
      switch (field) {
24541
      case SUCCESS:
24542
        return isSetSuccess();
24543
      }
24544
      throw new IllegalStateException();
24545
    }
24546
 
24547
    @Override
24548
    public boolean equals(Object that) {
24549
      if (that == null)
24550
        return false;
3061 chandransh 24551
      if (that instanceof getValidOrderCount_result)
24552
        return this.equals((getValidOrderCount_result)that);
68 ashish 24553
      return false;
24554
    }
24555
 
3061 chandransh 24556
    public boolean equals(getValidOrderCount_result that) {
68 ashish 24557
      if (that == null)
24558
        return false;
24559
 
3061 chandransh 24560
      boolean this_present_success = true;
24561
      boolean that_present_success = true;
68 ashish 24562
      if (this_present_success || that_present_success) {
24563
        if (!(this_present_success && that_present_success))
24564
          return false;
3061 chandransh 24565
        if (this.success != that.success)
68 ashish 24566
          return false;
24567
      }
24568
 
24569
      return true;
24570
    }
24571
 
24572
    @Override
24573
    public int hashCode() {
24574
      return 0;
24575
    }
24576
 
3061 chandransh 24577
    public int compareTo(getValidOrderCount_result other) {
68 ashish 24578
      if (!getClass().equals(other.getClass())) {
24579
        return getClass().getName().compareTo(other.getClass().getName());
24580
      }
24581
 
24582
      int lastComparison = 0;
3061 chandransh 24583
      getValidOrderCount_result typedOther = (getValidOrderCount_result)other;
68 ashish 24584
 
3430 rajveer 24585
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 24586
      if (lastComparison != 0) {
24587
        return lastComparison;
24588
      }
3430 rajveer 24589
      if (isSetSuccess()) {
24590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24591
        if (lastComparison != 0) {
24592
          return lastComparison;
24593
        }
68 ashish 24594
      }
24595
      return 0;
24596
    }
24597
 
3430 rajveer 24598
    public _Fields fieldForId(int fieldId) {
24599
      return _Fields.findByThriftId(fieldId);
24600
    }
24601
 
24602
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24603
      org.apache.thrift.protocol.TField field;
68 ashish 24604
      iprot.readStructBegin();
24605
      while (true)
24606
      {
24607
        field = iprot.readFieldBegin();
3430 rajveer 24608
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 24609
          break;
24610
        }
3430 rajveer 24611
        switch (field.id) {
24612
          case 0: // SUCCESS
24613
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24614
              this.success = iprot.readI64();
24615
              setSuccessIsSet(true);
24616
            } else { 
24617
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24618
            }
24619
            break;
24620
          default:
24621
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 24622
        }
3430 rajveer 24623
        iprot.readFieldEnd();
68 ashish 24624
      }
24625
      iprot.readStructEnd();
24626
      validate();
24627
    }
24628
 
3430 rajveer 24629
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 24630
      oprot.writeStructBegin(STRUCT_DESC);
24631
 
24632
      if (this.isSetSuccess()) {
24633
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 24634
        oprot.writeI64(this.success);
68 ashish 24635
        oprot.writeFieldEnd();
24636
      }
24637
      oprot.writeFieldStop();
24638
      oprot.writeStructEnd();
24639
    }
24640
 
24641
    @Override
24642
    public String toString() {
3061 chandransh 24643
      StringBuilder sb = new StringBuilder("getValidOrderCount_result(");
68 ashish 24644
      boolean first = true;
24645
 
24646
      sb.append("success:");
3061 chandransh 24647
      sb.append(this.success);
68 ashish 24648
      first = false;
3061 chandransh 24649
      sb.append(")");
24650
      return sb.toString();
24651
    }
24652
 
3430 rajveer 24653
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 24654
      // check for required fields
24655
    }
24656
 
3430 rajveer 24657
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24658
      try {
24659
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24660
      } catch (org.apache.thrift.TException te) {
24661
        throw new java.io.IOException(te);
24662
      }
24663
    }
24664
 
24665
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24666
      try {
24667
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24668
      } catch (org.apache.thrift.TException te) {
24669
        throw new java.io.IOException(te);
24670
      }
24671
    }
24672
 
3061 chandransh 24673
  }
24674
 
3430 rajveer 24675
  public static class getNoOfCustomersWithSuccessfulTransaction_args implements org.apache.thrift.TBase<getNoOfCustomersWithSuccessfulTransaction_args, getNoOfCustomersWithSuccessfulTransaction_args._Fields>, java.io.Serializable, Cloneable   {
24676
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNoOfCustomersWithSuccessfulTransaction_args");
3061 chandransh 24677
 
24678
 
24679
 
24680
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24681
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 24682
;
24683
 
24684
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24685
 
24686
      static {
24687
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24688
          byName.put(field.getFieldName(), field);
24689
        }
68 ashish 24690
      }
3061 chandransh 24691
 
24692
      /**
24693
       * Find the _Fields constant that matches fieldId, or null if its not found.
24694
       */
24695
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24696
        switch(fieldId) {
24697
          default:
24698
            return null;
24699
        }
3061 chandransh 24700
      }
24701
 
24702
      /**
24703
       * Find the _Fields constant that matches fieldId, throwing an exception
24704
       * if it is not found.
24705
       */
24706
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24707
        _Fields fields = findByThriftId(fieldId);
24708
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24709
        return fields;
24710
      }
24711
 
24712
      /**
24713
       * Find the _Fields constant that matches name, or null if its not found.
24714
       */
24715
      public static _Fields findByName(String name) {
24716
        return byName.get(name);
24717
      }
24718
 
24719
      private final short _thriftId;
24720
      private final String _fieldName;
24721
 
24722
      _Fields(short thriftId, String fieldName) {
24723
        _thriftId = thriftId;
24724
        _fieldName = fieldName;
24725
      }
24726
 
24727
      public short getThriftFieldId() {
24728
        return _thriftId;
24729
      }
24730
 
24731
      public String getFieldName() {
24732
        return _fieldName;
24733
      }
24734
    }
3430 rajveer 24735
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 24736
    static {
3430 rajveer 24737
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24738
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24739
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_args.class, metaDataMap);
3061 chandransh 24740
    }
24741
 
24742
    public getNoOfCustomersWithSuccessfulTransaction_args() {
24743
    }
24744
 
24745
    /**
24746
     * Performs a deep copy on <i>other</i>.
24747
     */
24748
    public getNoOfCustomersWithSuccessfulTransaction_args(getNoOfCustomersWithSuccessfulTransaction_args other) {
24749
    }
24750
 
24751
    public getNoOfCustomersWithSuccessfulTransaction_args deepCopy() {
24752
      return new getNoOfCustomersWithSuccessfulTransaction_args(this);
24753
    }
24754
 
3430 rajveer 24755
    @Override
24756
    public void clear() {
3061 chandransh 24757
    }
24758
 
24759
    public void setFieldValue(_Fields field, Object value) {
24760
      switch (field) {
24761
      }
24762
    }
24763
 
24764
    public Object getFieldValue(_Fields field) {
24765
      switch (field) {
24766
      }
24767
      throw new IllegalStateException();
24768
    }
24769
 
3430 rajveer 24770
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24771
    public boolean isSet(_Fields field) {
24772
      if (field == null) {
24773
        throw new IllegalArgumentException();
24774
      }
3061 chandransh 24775
 
24776
      switch (field) {
24777
      }
24778
      throw new IllegalStateException();
24779
    }
24780
 
24781
    @Override
24782
    public boolean equals(Object that) {
24783
      if (that == null)
24784
        return false;
24785
      if (that instanceof getNoOfCustomersWithSuccessfulTransaction_args)
24786
        return this.equals((getNoOfCustomersWithSuccessfulTransaction_args)that);
24787
      return false;
24788
    }
24789
 
24790
    public boolean equals(getNoOfCustomersWithSuccessfulTransaction_args that) {
24791
      if (that == null)
24792
        return false;
24793
 
24794
      return true;
24795
    }
24796
 
24797
    @Override
24798
    public int hashCode() {
24799
      return 0;
24800
    }
24801
 
24802
    public int compareTo(getNoOfCustomersWithSuccessfulTransaction_args other) {
24803
      if (!getClass().equals(other.getClass())) {
24804
        return getClass().getName().compareTo(other.getClass().getName());
24805
      }
24806
 
24807
      int lastComparison = 0;
24808
      getNoOfCustomersWithSuccessfulTransaction_args typedOther = (getNoOfCustomersWithSuccessfulTransaction_args)other;
24809
 
24810
      return 0;
24811
    }
24812
 
3430 rajveer 24813
    public _Fields fieldForId(int fieldId) {
24814
      return _Fields.findByThriftId(fieldId);
24815
    }
24816
 
24817
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24818
      org.apache.thrift.protocol.TField field;
3061 chandransh 24819
      iprot.readStructBegin();
24820
      while (true)
24821
      {
24822
        field = iprot.readFieldBegin();
3430 rajveer 24823
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 24824
          break;
24825
        }
3430 rajveer 24826
        switch (field.id) {
24827
          default:
24828
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 24829
        }
3430 rajveer 24830
        iprot.readFieldEnd();
3061 chandransh 24831
      }
24832
      iprot.readStructEnd();
24833
      validate();
24834
    }
24835
 
3430 rajveer 24836
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 24837
      validate();
24838
 
24839
      oprot.writeStructBegin(STRUCT_DESC);
24840
      oprot.writeFieldStop();
24841
      oprot.writeStructEnd();
24842
    }
24843
 
24844
    @Override
24845
    public String toString() {
24846
      StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_args(");
24847
      boolean first = true;
24848
 
68 ashish 24849
      sb.append(")");
24850
      return sb.toString();
24851
    }
24852
 
3430 rajveer 24853
    public void validate() throws org.apache.thrift.TException {
68 ashish 24854
      // check for required fields
24855
    }
24856
 
3430 rajveer 24857
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24858
      try {
24859
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24860
      } catch (org.apache.thrift.TException te) {
24861
        throw new java.io.IOException(te);
24862
      }
24863
    }
24864
 
24865
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24866
      try {
24867
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24868
      } catch (org.apache.thrift.TException te) {
24869
        throw new java.io.IOException(te);
24870
      }
24871
    }
24872
 
68 ashish 24873
  }
24874
 
3430 rajveer 24875
  public static class getNoOfCustomersWithSuccessfulTransaction_result implements org.apache.thrift.TBase<getNoOfCustomersWithSuccessfulTransaction_result, getNoOfCustomersWithSuccessfulTransaction_result._Fields>, java.io.Serializable, Cloneable   {
24876
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNoOfCustomersWithSuccessfulTransaction_result");
68 ashish 24877
 
3430 rajveer 24878
    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 24879
 
3430 rajveer 24880
    private long success; // required
68 ashish 24881
 
24882
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24883
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 24884
      SUCCESS((short)0, "success");
68 ashish 24885
 
24886
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24887
 
24888
      static {
24889
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24890
          byName.put(field.getFieldName(), field);
24891
        }
24892
      }
24893
 
24894
      /**
24895
       * Find the _Fields constant that matches fieldId, or null if its not found.
24896
       */
24897
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24898
        switch(fieldId) {
24899
          case 0: // SUCCESS
24900
            return SUCCESS;
24901
          default:
24902
            return null;
24903
        }
68 ashish 24904
      }
24905
 
24906
      /**
24907
       * Find the _Fields constant that matches fieldId, throwing an exception
24908
       * if it is not found.
24909
       */
24910
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24911
        _Fields fields = findByThriftId(fieldId);
24912
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24913
        return fields;
24914
      }
24915
 
24916
      /**
24917
       * Find the _Fields constant that matches name, or null if its not found.
24918
       */
24919
      public static _Fields findByName(String name) {
24920
        return byName.get(name);
24921
      }
24922
 
24923
      private final short _thriftId;
24924
      private final String _fieldName;
24925
 
24926
      _Fields(short thriftId, String fieldName) {
24927
        _thriftId = thriftId;
24928
        _fieldName = fieldName;
24929
      }
24930
 
24931
      public short getThriftFieldId() {
24932
        return _thriftId;
24933
      }
24934
 
24935
      public String getFieldName() {
24936
        return _fieldName;
24937
      }
24938
    }
24939
 
24940
    // isset id assignments
3061 chandransh 24941
    private static final int __SUCCESS_ISSET_ID = 0;
68 ashish 24942
    private BitSet __isset_bit_vector = new BitSet(1);
24943
 
3430 rajveer 24944
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 24945
    static {
3430 rajveer 24946
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24947
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24948
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24949
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24950
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_result.class, metaDataMap);
68 ashish 24951
    }
24952
 
3061 chandransh 24953
    public getNoOfCustomersWithSuccessfulTransaction_result() {
68 ashish 24954
    }
24955
 
3061 chandransh 24956
    public getNoOfCustomersWithSuccessfulTransaction_result(
24957
      long success)
68 ashish 24958
    {
24959
      this();
3061 chandransh 24960
      this.success = success;
24961
      setSuccessIsSet(true);
68 ashish 24962
    }
24963
 
24964
    /**
24965
     * Performs a deep copy on <i>other</i>.
24966
     */
3061 chandransh 24967
    public getNoOfCustomersWithSuccessfulTransaction_result(getNoOfCustomersWithSuccessfulTransaction_result other) {
68 ashish 24968
      __isset_bit_vector.clear();
24969
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 24970
      this.success = other.success;
68 ashish 24971
    }
24972
 
3061 chandransh 24973
    public getNoOfCustomersWithSuccessfulTransaction_result deepCopy() {
24974
      return new getNoOfCustomersWithSuccessfulTransaction_result(this);
68 ashish 24975
    }
24976
 
3430 rajveer 24977
    @Override
24978
    public void clear() {
24979
      setSuccessIsSet(false);
24980
      this.success = 0;
68 ashish 24981
    }
24982
 
3061 chandransh 24983
    public long getSuccess() {
24984
      return this.success;
68 ashish 24985
    }
24986
 
3430 rajveer 24987
    public void setSuccess(long success) {
3061 chandransh 24988
      this.success = success;
24989
      setSuccessIsSet(true);
68 ashish 24990
    }
24991
 
3061 chandransh 24992
    public void unsetSuccess() {
24993
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
68 ashish 24994
    }
24995
 
3430 rajveer 24996
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 24997
    public boolean isSetSuccess() {
24998
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
68 ashish 24999
    }
25000
 
3061 chandransh 25001
    public void setSuccessIsSet(boolean value) {
25002
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
68 ashish 25003
    }
25004
 
25005
    public void setFieldValue(_Fields field, Object value) {
25006
      switch (field) {
3061 chandransh 25007
      case SUCCESS:
68 ashish 25008
        if (value == null) {
3061 chandransh 25009
          unsetSuccess();
68 ashish 25010
        } else {
3061 chandransh 25011
          setSuccess((Long)value);
68 ashish 25012
        }
25013
        break;
25014
 
25015
      }
25016
    }
25017
 
25018
    public Object getFieldValue(_Fields field) {
25019
      switch (field) {
3061 chandransh 25020
      case SUCCESS:
3430 rajveer 25021
        return Long.valueOf(getSuccess());
68 ashish 25022
 
25023
      }
25024
      throw new IllegalStateException();
25025
    }
25026
 
3430 rajveer 25027
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25028
    public boolean isSet(_Fields field) {
25029
      if (field == null) {
25030
        throw new IllegalArgumentException();
25031
      }
68 ashish 25032
 
25033
      switch (field) {
3061 chandransh 25034
      case SUCCESS:
25035
        return isSetSuccess();
68 ashish 25036
      }
25037
      throw new IllegalStateException();
25038
    }
25039
 
25040
    @Override
25041
    public boolean equals(Object that) {
25042
      if (that == null)
25043
        return false;
3061 chandransh 25044
      if (that instanceof getNoOfCustomersWithSuccessfulTransaction_result)
25045
        return this.equals((getNoOfCustomersWithSuccessfulTransaction_result)that);
68 ashish 25046
      return false;
25047
    }
25048
 
3061 chandransh 25049
    public boolean equals(getNoOfCustomersWithSuccessfulTransaction_result that) {
68 ashish 25050
      if (that == null)
25051
        return false;
25052
 
3061 chandransh 25053
      boolean this_present_success = true;
25054
      boolean that_present_success = true;
25055
      if (this_present_success || that_present_success) {
25056
        if (!(this_present_success && that_present_success))
68 ashish 25057
          return false;
3061 chandransh 25058
        if (this.success != that.success)
68 ashish 25059
          return false;
25060
      }
25061
 
25062
      return true;
25063
    }
25064
 
25065
    @Override
25066
    public int hashCode() {
25067
      return 0;
25068
    }
25069
 
3061 chandransh 25070
    public int compareTo(getNoOfCustomersWithSuccessfulTransaction_result other) {
68 ashish 25071
      if (!getClass().equals(other.getClass())) {
25072
        return getClass().getName().compareTo(other.getClass().getName());
25073
      }
25074
 
25075
      int lastComparison = 0;
3061 chandransh 25076
      getNoOfCustomersWithSuccessfulTransaction_result typedOther = (getNoOfCustomersWithSuccessfulTransaction_result)other;
68 ashish 25077
 
3430 rajveer 25078
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 25079
      if (lastComparison != 0) {
25080
        return lastComparison;
25081
      }
3430 rajveer 25082
      if (isSetSuccess()) {
25083
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25084
        if (lastComparison != 0) {
25085
          return lastComparison;
25086
        }
68 ashish 25087
      }
25088
      return 0;
25089
    }
25090
 
3430 rajveer 25091
    public _Fields fieldForId(int fieldId) {
25092
      return _Fields.findByThriftId(fieldId);
25093
    }
25094
 
25095
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25096
      org.apache.thrift.protocol.TField field;
68 ashish 25097
      iprot.readStructBegin();
25098
      while (true)
25099
      {
25100
        field = iprot.readFieldBegin();
3430 rajveer 25101
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 25102
          break;
25103
        }
3430 rajveer 25104
        switch (field.id) {
25105
          case 0: // SUCCESS
25106
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25107
              this.success = iprot.readI64();
25108
              setSuccessIsSet(true);
25109
            } else { 
25110
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25111
            }
25112
            break;
25113
          default:
25114
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 25115
        }
3430 rajveer 25116
        iprot.readFieldEnd();
68 ashish 25117
      }
25118
      iprot.readStructEnd();
25119
      validate();
25120
    }
25121
 
3430 rajveer 25122
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 25123
      oprot.writeStructBegin(STRUCT_DESC);
25124
 
25125
      if (this.isSetSuccess()) {
25126
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25127
        oprot.writeI64(this.success);
25128
        oprot.writeFieldEnd();
25129
      }
25130
      oprot.writeFieldStop();
25131
      oprot.writeStructEnd();
25132
    }
25133
 
25134
    @Override
25135
    public String toString() {
25136
      StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_result(");
25137
      boolean first = true;
25138
 
25139
      sb.append("success:");
25140
      sb.append(this.success);
25141
      first = false;
25142
      sb.append(")");
25143
      return sb.toString();
25144
    }
25145
 
3430 rajveer 25146
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 25147
      // check for required fields
25148
    }
25149
 
3430 rajveer 25150
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25151
      try {
25152
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25153
      } catch (org.apache.thrift.TException te) {
25154
        throw new java.io.IOException(te);
25155
      }
25156
    }
25157
 
25158
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25159
      try {
25160
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25161
      } catch (org.apache.thrift.TException te) {
25162
        throw new java.io.IOException(te);
25163
      }
25164
    }
25165
 
3061 chandransh 25166
  }
25167
 
3430 rajveer 25168
  public static class getValidOrdersAmountRange_args implements org.apache.thrift.TBase<getValidOrdersAmountRange_args, getValidOrdersAmountRange_args._Fields>, java.io.Serializable, Cloneable   {
25169
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrdersAmountRange_args");
3061 chandransh 25170
 
25171
 
25172
 
25173
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25174
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 25175
;
25176
 
25177
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25178
 
25179
      static {
25180
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25181
          byName.put(field.getFieldName(), field);
25182
        }
25183
      }
25184
 
25185
      /**
25186
       * Find the _Fields constant that matches fieldId, or null if its not found.
25187
       */
25188
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25189
        switch(fieldId) {
25190
          default:
25191
            return null;
25192
        }
3061 chandransh 25193
      }
25194
 
25195
      /**
25196
       * Find the _Fields constant that matches fieldId, throwing an exception
25197
       * if it is not found.
25198
       */
25199
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25200
        _Fields fields = findByThriftId(fieldId);
25201
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25202
        return fields;
25203
      }
25204
 
25205
      /**
25206
       * Find the _Fields constant that matches name, or null if its not found.
25207
       */
25208
      public static _Fields findByName(String name) {
25209
        return byName.get(name);
25210
      }
25211
 
25212
      private final short _thriftId;
25213
      private final String _fieldName;
25214
 
25215
      _Fields(short thriftId, String fieldName) {
25216
        _thriftId = thriftId;
25217
        _fieldName = fieldName;
25218
      }
25219
 
25220
      public short getThriftFieldId() {
25221
        return _thriftId;
25222
      }
25223
 
25224
      public String getFieldName() {
25225
        return _fieldName;
25226
      }
25227
    }
3430 rajveer 25228
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 25229
    static {
3430 rajveer 25230
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25231
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25232
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrdersAmountRange_args.class, metaDataMap);
3061 chandransh 25233
    }
25234
 
25235
    public getValidOrdersAmountRange_args() {
25236
    }
25237
 
25238
    /**
25239
     * Performs a deep copy on <i>other</i>.
25240
     */
25241
    public getValidOrdersAmountRange_args(getValidOrdersAmountRange_args other) {
25242
    }
25243
 
25244
    public getValidOrdersAmountRange_args deepCopy() {
25245
      return new getValidOrdersAmountRange_args(this);
25246
    }
25247
 
3430 rajveer 25248
    @Override
25249
    public void clear() {
3061 chandransh 25250
    }
25251
 
25252
    public void setFieldValue(_Fields field, Object value) {
25253
      switch (field) {
25254
      }
25255
    }
25256
 
25257
    public Object getFieldValue(_Fields field) {
25258
      switch (field) {
25259
      }
25260
      throw new IllegalStateException();
25261
    }
25262
 
3430 rajveer 25263
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25264
    public boolean isSet(_Fields field) {
25265
      if (field == null) {
25266
        throw new IllegalArgumentException();
25267
      }
3061 chandransh 25268
 
25269
      switch (field) {
25270
      }
25271
      throw new IllegalStateException();
25272
    }
25273
 
25274
    @Override
25275
    public boolean equals(Object that) {
25276
      if (that == null)
25277
        return false;
25278
      if (that instanceof getValidOrdersAmountRange_args)
25279
        return this.equals((getValidOrdersAmountRange_args)that);
25280
      return false;
25281
    }
25282
 
25283
    public boolean equals(getValidOrdersAmountRange_args that) {
25284
      if (that == null)
25285
        return false;
25286
 
25287
      return true;
25288
    }
25289
 
25290
    @Override
25291
    public int hashCode() {
25292
      return 0;
25293
    }
25294
 
25295
    public int compareTo(getValidOrdersAmountRange_args other) {
25296
      if (!getClass().equals(other.getClass())) {
25297
        return getClass().getName().compareTo(other.getClass().getName());
25298
      }
25299
 
25300
      int lastComparison = 0;
25301
      getValidOrdersAmountRange_args typedOther = (getValidOrdersAmountRange_args)other;
25302
 
25303
      return 0;
25304
    }
25305
 
3430 rajveer 25306
    public _Fields fieldForId(int fieldId) {
25307
      return _Fields.findByThriftId(fieldId);
25308
    }
25309
 
25310
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25311
      org.apache.thrift.protocol.TField field;
3061 chandransh 25312
      iprot.readStructBegin();
25313
      while (true)
25314
      {
25315
        field = iprot.readFieldBegin();
3430 rajveer 25316
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 25317
          break;
25318
        }
3430 rajveer 25319
        switch (field.id) {
25320
          default:
25321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 25322
        }
3430 rajveer 25323
        iprot.readFieldEnd();
3061 chandransh 25324
      }
25325
      iprot.readStructEnd();
68 ashish 25326
      validate();
3061 chandransh 25327
    }
68 ashish 25328
 
3430 rajveer 25329
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 25330
      validate();
25331
 
68 ashish 25332
      oprot.writeStructBegin(STRUCT_DESC);
25333
      oprot.writeFieldStop();
25334
      oprot.writeStructEnd();
25335
    }
25336
 
25337
    @Override
25338
    public String toString() {
3061 chandransh 25339
      StringBuilder sb = new StringBuilder("getValidOrdersAmountRange_args(");
68 ashish 25340
      boolean first = true;
25341
 
25342
      sb.append(")");
25343
      return sb.toString();
25344
    }
25345
 
3430 rajveer 25346
    public void validate() throws org.apache.thrift.TException {
68 ashish 25347
      // check for required fields
25348
    }
25349
 
3430 rajveer 25350
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25351
      try {
25352
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25353
      } catch (org.apache.thrift.TException te) {
25354
        throw new java.io.IOException(te);
25355
      }
25356
    }
25357
 
25358
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25359
      try {
25360
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25361
      } catch (org.apache.thrift.TException te) {
25362
        throw new java.io.IOException(te);
25363
      }
25364
    }
25365
 
68 ashish 25366
  }
25367
 
3430 rajveer 25368
  public static class getValidOrdersAmountRange_result implements org.apache.thrift.TBase<getValidOrdersAmountRange_result, getValidOrdersAmountRange_result._Fields>, java.io.Serializable, Cloneable   {
25369
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrdersAmountRange_result");
68 ashish 25370
 
3430 rajveer 25371
    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 25372
 
3430 rajveer 25373
    private List<Double> success; // required
68 ashish 25374
 
25375
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25376
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 25377
      SUCCESS((short)0, "success");
68 ashish 25378
 
25379
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25380
 
25381
      static {
25382
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25383
          byName.put(field.getFieldName(), field);
25384
        }
25385
      }
25386
 
25387
      /**
25388
       * Find the _Fields constant that matches fieldId, or null if its not found.
25389
       */
25390
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25391
        switch(fieldId) {
25392
          case 0: // SUCCESS
25393
            return SUCCESS;
25394
          default:
25395
            return null;
25396
        }
68 ashish 25397
      }
25398
 
25399
      /**
25400
       * Find the _Fields constant that matches fieldId, throwing an exception
25401
       * if it is not found.
25402
       */
25403
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25404
        _Fields fields = findByThriftId(fieldId);
25405
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25406
        return fields;
25407
      }
25408
 
25409
      /**
25410
       * Find the _Fields constant that matches name, or null if its not found.
25411
       */
25412
      public static _Fields findByName(String name) {
25413
        return byName.get(name);
25414
      }
25415
 
25416
      private final short _thriftId;
25417
      private final String _fieldName;
25418
 
25419
      _Fields(short thriftId, String fieldName) {
25420
        _thriftId = thriftId;
25421
        _fieldName = fieldName;
25422
      }
25423
 
25424
      public short getThriftFieldId() {
25425
        return _thriftId;
25426
      }
25427
 
25428
      public String getFieldName() {
25429
        return _fieldName;
25430
      }
25431
    }
25432
 
25433
    // isset id assignments
25434
 
3430 rajveer 25435
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 25436
    static {
3430 rajveer 25437
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25438
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25439
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25440
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
25441
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25442
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrdersAmountRange_result.class, metaDataMap);
68 ashish 25443
    }
25444
 
3061 chandransh 25445
    public getValidOrdersAmountRange_result() {
68 ashish 25446
    }
25447
 
3061 chandransh 25448
    public getValidOrdersAmountRange_result(
25449
      List<Double> success)
68 ashish 25450
    {
25451
      this();
25452
      this.success = success;
25453
    }
25454
 
25455
    /**
25456
     * Performs a deep copy on <i>other</i>.
25457
     */
3061 chandransh 25458
    public getValidOrdersAmountRange_result(getValidOrdersAmountRange_result other) {
483 rajveer 25459
      if (other.isSetSuccess()) {
3061 chandransh 25460
        List<Double> __this__success = new ArrayList<Double>();
25461
        for (Double other_element : other.success) {
25462
          __this__success.add(other_element);
483 rajveer 25463
        }
25464
        this.success = __this__success;
25465
      }
68 ashish 25466
    }
25467
 
3061 chandransh 25468
    public getValidOrdersAmountRange_result deepCopy() {
25469
      return new getValidOrdersAmountRange_result(this);
68 ashish 25470
    }
25471
 
3430 rajveer 25472
    @Override
25473
    public void clear() {
25474
      this.success = null;
68 ashish 25475
    }
25476
 
483 rajveer 25477
    public int getSuccessSize() {
25478
      return (this.success == null) ? 0 : this.success.size();
25479
    }
25480
 
3061 chandransh 25481
    public java.util.Iterator<Double> getSuccessIterator() {
483 rajveer 25482
      return (this.success == null) ? null : this.success.iterator();
25483
    }
25484
 
3061 chandransh 25485
    public void addToSuccess(double elem) {
483 rajveer 25486
      if (this.success == null) {
3061 chandransh 25487
        this.success = new ArrayList<Double>();
483 rajveer 25488
      }
25489
      this.success.add(elem);
25490
    }
25491
 
3061 chandransh 25492
    public List<Double> getSuccess() {
68 ashish 25493
      return this.success;
25494
    }
25495
 
3430 rajveer 25496
    public void setSuccess(List<Double> success) {
68 ashish 25497
      this.success = success;
25498
    }
25499
 
25500
    public void unsetSuccess() {
483 rajveer 25501
      this.success = null;
68 ashish 25502
    }
25503
 
3430 rajveer 25504
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 25505
    public boolean isSetSuccess() {
483 rajveer 25506
      return this.success != null;
68 ashish 25507
    }
25508
 
25509
    public void setSuccessIsSet(boolean value) {
483 rajveer 25510
      if (!value) {
25511
        this.success = null;
25512
      }
68 ashish 25513
    }
25514
 
25515
    public void setFieldValue(_Fields field, Object value) {
25516
      switch (field) {
25517
      case SUCCESS:
25518
        if (value == null) {
25519
          unsetSuccess();
25520
        } else {
3061 chandransh 25521
          setSuccess((List<Double>)value);
68 ashish 25522
        }
25523
        break;
25524
 
25525
      }
25526
    }
25527
 
25528
    public Object getFieldValue(_Fields field) {
25529
      switch (field) {
25530
      case SUCCESS:
483 rajveer 25531
        return getSuccess();
68 ashish 25532
 
25533
      }
25534
      throw new IllegalStateException();
25535
    }
25536
 
3430 rajveer 25537
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25538
    public boolean isSet(_Fields field) {
25539
      if (field == null) {
25540
        throw new IllegalArgumentException();
25541
      }
68 ashish 25542
 
25543
      switch (field) {
25544
      case SUCCESS:
25545
        return isSetSuccess();
25546
      }
25547
      throw new IllegalStateException();
25548
    }
25549
 
25550
    @Override
25551
    public boolean equals(Object that) {
25552
      if (that == null)
25553
        return false;
3061 chandransh 25554
      if (that instanceof getValidOrdersAmountRange_result)
25555
        return this.equals((getValidOrdersAmountRange_result)that);
68 ashish 25556
      return false;
25557
    }
25558
 
3061 chandransh 25559
    public boolean equals(getValidOrdersAmountRange_result that) {
68 ashish 25560
      if (that == null)
25561
        return false;
25562
 
483 rajveer 25563
      boolean this_present_success = true && this.isSetSuccess();
25564
      boolean that_present_success = true && that.isSetSuccess();
68 ashish 25565
      if (this_present_success || that_present_success) {
25566
        if (!(this_present_success && that_present_success))
25567
          return false;
483 rajveer 25568
        if (!this.success.equals(that.success))
68 ashish 25569
          return false;
25570
      }
25571
 
25572
      return true;
25573
    }
25574
 
25575
    @Override
25576
    public int hashCode() {
25577
      return 0;
25578
    }
25579
 
3061 chandransh 25580
    public int compareTo(getValidOrdersAmountRange_result other) {
68 ashish 25581
      if (!getClass().equals(other.getClass())) {
25582
        return getClass().getName().compareTo(other.getClass().getName());
25583
      }
25584
 
25585
      int lastComparison = 0;
3061 chandransh 25586
      getValidOrdersAmountRange_result typedOther = (getValidOrdersAmountRange_result)other;
68 ashish 25587
 
3430 rajveer 25588
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 25589
      if (lastComparison != 0) {
25590
        return lastComparison;
25591
      }
3430 rajveer 25592
      if (isSetSuccess()) {
25593
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25594
        if (lastComparison != 0) {
25595
          return lastComparison;
25596
        }
68 ashish 25597
      }
25598
      return 0;
25599
    }
25600
 
3430 rajveer 25601
    public _Fields fieldForId(int fieldId) {
25602
      return _Fields.findByThriftId(fieldId);
25603
    }
25604
 
25605
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25606
      org.apache.thrift.protocol.TField field;
68 ashish 25607
      iprot.readStructBegin();
25608
      while (true)
25609
      {
25610
        field = iprot.readFieldBegin();
3430 rajveer 25611
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 25612
          break;
25613
        }
3430 rajveer 25614
        switch (field.id) {
25615
          case 0: // SUCCESS
25616
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25617
              {
4133 chandransh 25618
                org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
25619
                this.success = new ArrayList<Double>(_list68.size);
25620
                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
483 rajveer 25621
                {
4133 chandransh 25622
                  double _elem70; // required
25623
                  _elem70 = iprot.readDouble();
25624
                  this.success.add(_elem70);
483 rajveer 25625
                }
3430 rajveer 25626
                iprot.readListEnd();
68 ashish 25627
              }
3430 rajveer 25628
            } else { 
25629
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25630
            }
25631
            break;
25632
          default:
25633
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 25634
        }
3430 rajveer 25635
        iprot.readFieldEnd();
68 ashish 25636
      }
25637
      iprot.readStructEnd();
25638
      validate();
25639
    }
25640
 
3430 rajveer 25641
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 25642
      oprot.writeStructBegin(STRUCT_DESC);
25643
 
25644
      if (this.isSetSuccess()) {
25645
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
483 rajveer 25646
        {
3430 rajveer 25647
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
4133 chandransh 25648
          for (double _iter71 : this.success)
483 rajveer 25649
          {
4133 chandransh 25650
            oprot.writeDouble(_iter71);
483 rajveer 25651
          }
25652
          oprot.writeListEnd();
25653
        }
68 ashish 25654
        oprot.writeFieldEnd();
25655
      }
25656
      oprot.writeFieldStop();
25657
      oprot.writeStructEnd();
25658
    }
25659
 
25660
    @Override
25661
    public String toString() {
3061 chandransh 25662
      StringBuilder sb = new StringBuilder("getValidOrdersAmountRange_result(");
68 ashish 25663
      boolean first = true;
25664
 
25665
      sb.append("success:");
483 rajveer 25666
      if (this.success == null) {
25667
        sb.append("null");
25668
      } else {
25669
        sb.append(this.success);
25670
      }
68 ashish 25671
      first = false;
25672
      sb.append(")");
25673
      return sb.toString();
25674
    }
25675
 
3430 rajveer 25676
    public void validate() throws org.apache.thrift.TException {
68 ashish 25677
      // check for required fields
25678
    }
25679
 
3430 rajveer 25680
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25681
      try {
25682
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25683
      } catch (org.apache.thrift.TException te) {
25684
        throw new java.io.IOException(te);
25685
      }
25686
    }
25687
 
25688
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25689
      try {
25690
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25691
      } catch (org.apache.thrift.TException te) {
25692
        throw new java.io.IOException(te);
25693
      }
25694
    }
25695
 
68 ashish 25696
  }
25697
 
3430 rajveer 25698
  public static class getValidOrders_args implements org.apache.thrift.TBase<getValidOrders_args, getValidOrders_args._Fields>, java.io.Serializable, Cloneable   {
25699
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrders_args");
1529 ankur.sing 25700
 
3430 rajveer 25701
    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 25702
 
3430 rajveer 25703
    private long limit; // required
1529 ankur.sing 25704
 
25705
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25706
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 25707
      LIMIT((short)1, "limit");
1529 ankur.sing 25708
 
25709
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25710
 
25711
      static {
25712
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25713
          byName.put(field.getFieldName(), field);
25714
        }
25715
      }
25716
 
25717
      /**
25718
       * Find the _Fields constant that matches fieldId, or null if its not found.
25719
       */
25720
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25721
        switch(fieldId) {
25722
          case 1: // LIMIT
25723
            return LIMIT;
25724
          default:
25725
            return null;
25726
        }
1529 ankur.sing 25727
      }
25728
 
25729
      /**
25730
       * Find the _Fields constant that matches fieldId, throwing an exception
25731
       * if it is not found.
25732
       */
25733
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25734
        _Fields fields = findByThriftId(fieldId);
25735
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25736
        return fields;
25737
      }
25738
 
25739
      /**
25740
       * Find the _Fields constant that matches name, or null if its not found.
25741
       */
25742
      public static _Fields findByName(String name) {
25743
        return byName.get(name);
25744
      }
25745
 
25746
      private final short _thriftId;
25747
      private final String _fieldName;
25748
 
25749
      _Fields(short thriftId, String fieldName) {
25750
        _thriftId = thriftId;
25751
        _fieldName = fieldName;
25752
      }
25753
 
25754
      public short getThriftFieldId() {
25755
        return _thriftId;
25756
      }
25757
 
25758
      public String getFieldName() {
25759
        return _fieldName;
25760
      }
25761
    }
25762
 
25763
    // isset id assignments
3061 chandransh 25764
    private static final int __LIMIT_ISSET_ID = 0;
25765
    private BitSet __isset_bit_vector = new BitSet(1);
1529 ankur.sing 25766
 
3430 rajveer 25767
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1529 ankur.sing 25768
    static {
3430 rajveer 25769
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25770
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25771
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25772
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25773
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrders_args.class, metaDataMap);
1529 ankur.sing 25774
    }
25775
 
3061 chandransh 25776
    public getValidOrders_args() {
1529 ankur.sing 25777
    }
25778
 
3061 chandransh 25779
    public getValidOrders_args(
25780
      long limit)
1529 ankur.sing 25781
    {
25782
      this();
3061 chandransh 25783
      this.limit = limit;
25784
      setLimitIsSet(true);
1529 ankur.sing 25785
    }
25786
 
25787
    /**
25788
     * Performs a deep copy on <i>other</i>.
25789
     */
3061 chandransh 25790
    public getValidOrders_args(getValidOrders_args other) {
1529 ankur.sing 25791
      __isset_bit_vector.clear();
25792
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 25793
      this.limit = other.limit;
1529 ankur.sing 25794
    }
25795
 
3061 chandransh 25796
    public getValidOrders_args deepCopy() {
25797
      return new getValidOrders_args(this);
1529 ankur.sing 25798
    }
25799
 
3430 rajveer 25800
    @Override
25801
    public void clear() {
25802
      setLimitIsSet(false);
25803
      this.limit = 0;
1529 ankur.sing 25804
    }
25805
 
3061 chandransh 25806
    public long getLimit() {
25807
      return this.limit;
1529 ankur.sing 25808
    }
25809
 
3430 rajveer 25810
    public void setLimit(long limit) {
3061 chandransh 25811
      this.limit = limit;
25812
      setLimitIsSet(true);
1529 ankur.sing 25813
    }
25814
 
3061 chandransh 25815
    public void unsetLimit() {
25816
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
1529 ankur.sing 25817
    }
25818
 
3430 rajveer 25819
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
3061 chandransh 25820
    public boolean isSetLimit() {
25821
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
1529 ankur.sing 25822
    }
25823
 
3061 chandransh 25824
    public void setLimitIsSet(boolean value) {
25825
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
1529 ankur.sing 25826
    }
25827
 
25828
    public void setFieldValue(_Fields field, Object value) {
25829
      switch (field) {
3061 chandransh 25830
      case LIMIT:
1529 ankur.sing 25831
        if (value == null) {
3061 chandransh 25832
          unsetLimit();
1529 ankur.sing 25833
        } else {
3061 chandransh 25834
          setLimit((Long)value);
1529 ankur.sing 25835
        }
25836
        break;
25837
 
25838
      }
25839
    }
25840
 
25841
    public Object getFieldValue(_Fields field) {
25842
      switch (field) {
3061 chandransh 25843
      case LIMIT:
3430 rajveer 25844
        return Long.valueOf(getLimit());
1529 ankur.sing 25845
 
25846
      }
25847
      throw new IllegalStateException();
25848
    }
25849
 
3430 rajveer 25850
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25851
    public boolean isSet(_Fields field) {
25852
      if (field == null) {
25853
        throw new IllegalArgumentException();
25854
      }
1529 ankur.sing 25855
 
25856
      switch (field) {
3061 chandransh 25857
      case LIMIT:
25858
        return isSetLimit();
1529 ankur.sing 25859
      }
25860
      throw new IllegalStateException();
25861
    }
25862
 
25863
    @Override
25864
    public boolean equals(Object that) {
25865
      if (that == null)
25866
        return false;
3061 chandransh 25867
      if (that instanceof getValidOrders_args)
25868
        return this.equals((getValidOrders_args)that);
1529 ankur.sing 25869
      return false;
25870
    }
25871
 
3061 chandransh 25872
    public boolean equals(getValidOrders_args that) {
1529 ankur.sing 25873
      if (that == null)
25874
        return false;
25875
 
3061 chandransh 25876
      boolean this_present_limit = true;
25877
      boolean that_present_limit = true;
25878
      if (this_present_limit || that_present_limit) {
25879
        if (!(this_present_limit && that_present_limit))
1529 ankur.sing 25880
          return false;
3061 chandransh 25881
        if (this.limit != that.limit)
1529 ankur.sing 25882
          return false;
25883
      }
25884
 
25885
      return true;
25886
    }
25887
 
25888
    @Override
25889
    public int hashCode() {
25890
      return 0;
25891
    }
25892
 
3061 chandransh 25893
    public int compareTo(getValidOrders_args other) {
1529 ankur.sing 25894
      if (!getClass().equals(other.getClass())) {
25895
        return getClass().getName().compareTo(other.getClass().getName());
25896
      }
25897
 
25898
      int lastComparison = 0;
3061 chandransh 25899
      getValidOrders_args typedOther = (getValidOrders_args)other;
1529 ankur.sing 25900
 
3430 rajveer 25901
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
1529 ankur.sing 25902
      if (lastComparison != 0) {
25903
        return lastComparison;
25904
      }
3430 rajveer 25905
      if (isSetLimit()) {
25906
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
25907
        if (lastComparison != 0) {
25908
          return lastComparison;
25909
        }
1529 ankur.sing 25910
      }
25911
      return 0;
25912
    }
25913
 
3430 rajveer 25914
    public _Fields fieldForId(int fieldId) {
25915
      return _Fields.findByThriftId(fieldId);
25916
    }
25917
 
25918
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25919
      org.apache.thrift.protocol.TField field;
1529 ankur.sing 25920
      iprot.readStructBegin();
25921
      while (true)
25922
      {
25923
        field = iprot.readFieldBegin();
3430 rajveer 25924
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1529 ankur.sing 25925
          break;
25926
        }
3430 rajveer 25927
        switch (field.id) {
25928
          case 1: // LIMIT
25929
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25930
              this.limit = iprot.readI64();
25931
              setLimitIsSet(true);
25932
            } else { 
25933
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25934
            }
25935
            break;
25936
          default:
25937
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1529 ankur.sing 25938
        }
3430 rajveer 25939
        iprot.readFieldEnd();
1529 ankur.sing 25940
      }
25941
      iprot.readStructEnd();
25942
      validate();
25943
    }
25944
 
3430 rajveer 25945
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1529 ankur.sing 25946
      validate();
25947
 
25948
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 25949
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
25950
      oprot.writeI64(this.limit);
1529 ankur.sing 25951
      oprot.writeFieldEnd();
25952
      oprot.writeFieldStop();
25953
      oprot.writeStructEnd();
25954
    }
25955
 
25956
    @Override
25957
    public String toString() {
3061 chandransh 25958
      StringBuilder sb = new StringBuilder("getValidOrders_args(");
1529 ankur.sing 25959
      boolean first = true;
25960
 
3061 chandransh 25961
      sb.append("limit:");
25962
      sb.append(this.limit);
1529 ankur.sing 25963
      first = false;
25964
      sb.append(")");
25965
      return sb.toString();
25966
    }
25967
 
3430 rajveer 25968
    public void validate() throws org.apache.thrift.TException {
1529 ankur.sing 25969
      // check for required fields
25970
    }
25971
 
3430 rajveer 25972
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25973
      try {
25974
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25975
      } catch (org.apache.thrift.TException te) {
25976
        throw new java.io.IOException(te);
25977
      }
25978
    }
25979
 
25980
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25981
      try {
25982
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25983
      } catch (org.apache.thrift.TException te) {
25984
        throw new java.io.IOException(te);
25985
      }
25986
    }
25987
 
1529 ankur.sing 25988
  }
25989
 
3430 rajveer 25990
  public static class getValidOrders_result implements org.apache.thrift.TBase<getValidOrders_result, getValidOrders_result._Fields>, java.io.Serializable, Cloneable   {
25991
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrders_result");
1529 ankur.sing 25992
 
3430 rajveer 25993
    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 25994
 
3430 rajveer 25995
    private List<Order> success; // required
1529 ankur.sing 25996
 
25997
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25998
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 25999
      SUCCESS((short)0, "success");
1529 ankur.sing 26000
 
26001
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26002
 
26003
      static {
26004
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26005
          byName.put(field.getFieldName(), field);
26006
        }
26007
      }
26008
 
26009
      /**
26010
       * Find the _Fields constant that matches fieldId, or null if its not found.
26011
       */
26012
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26013
        switch(fieldId) {
26014
          case 0: // SUCCESS
26015
            return SUCCESS;
26016
          default:
26017
            return null;
26018
        }
1529 ankur.sing 26019
      }
26020
 
26021
      /**
26022
       * Find the _Fields constant that matches fieldId, throwing an exception
26023
       * if it is not found.
26024
       */
26025
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26026
        _Fields fields = findByThriftId(fieldId);
26027
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26028
        return fields;
26029
      }
26030
 
26031
      /**
26032
       * Find the _Fields constant that matches name, or null if its not found.
26033
       */
26034
      public static _Fields findByName(String name) {
26035
        return byName.get(name);
26036
      }
26037
 
26038
      private final short _thriftId;
26039
      private final String _fieldName;
26040
 
26041
      _Fields(short thriftId, String fieldName) {
26042
        _thriftId = thriftId;
26043
        _fieldName = fieldName;
26044
      }
26045
 
26046
      public short getThriftFieldId() {
26047
        return _thriftId;
26048
      }
26049
 
26050
      public String getFieldName() {
26051
        return _fieldName;
26052
      }
26053
    }
26054
 
26055
    // isset id assignments
26056
 
3430 rajveer 26057
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1529 ankur.sing 26058
    static {
3430 rajveer 26059
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26060
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26061
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
26062
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
26063
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26064
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrders_result.class, metaDataMap);
1529 ankur.sing 26065
    }
26066
 
3061 chandransh 26067
    public getValidOrders_result() {
1529 ankur.sing 26068
    }
26069
 
3061 chandransh 26070
    public getValidOrders_result(
26071
      List<Order> success)
1529 ankur.sing 26072
    {
26073
      this();
26074
      this.success = success;
26075
    }
26076
 
26077
    /**
26078
     * Performs a deep copy on <i>other</i>.
26079
     */
3061 chandransh 26080
    public getValidOrders_result(getValidOrders_result other) {
1529 ankur.sing 26081
      if (other.isSetSuccess()) {
3061 chandransh 26082
        List<Order> __this__success = new ArrayList<Order>();
26083
        for (Order other_element : other.success) {
26084
          __this__success.add(new Order(other_element));
26085
        }
26086
        this.success = __this__success;
1529 ankur.sing 26087
      }
26088
    }
26089
 
3061 chandransh 26090
    public getValidOrders_result deepCopy() {
26091
      return new getValidOrders_result(this);
1529 ankur.sing 26092
    }
26093
 
3430 rajveer 26094
    @Override
26095
    public void clear() {
26096
      this.success = null;
1529 ankur.sing 26097
    }
26098
 
3061 chandransh 26099
    public int getSuccessSize() {
26100
      return (this.success == null) ? 0 : this.success.size();
26101
    }
26102
 
26103
    public java.util.Iterator<Order> getSuccessIterator() {
26104
      return (this.success == null) ? null : this.success.iterator();
26105
    }
26106
 
26107
    public void addToSuccess(Order elem) {
26108
      if (this.success == null) {
26109
        this.success = new ArrayList<Order>();
26110
      }
26111
      this.success.add(elem);
26112
    }
26113
 
26114
    public List<Order> getSuccess() {
1529 ankur.sing 26115
      return this.success;
26116
    }
26117
 
3430 rajveer 26118
    public void setSuccess(List<Order> success) {
1529 ankur.sing 26119
      this.success = success;
26120
    }
26121
 
26122
    public void unsetSuccess() {
26123
      this.success = null;
26124
    }
26125
 
3430 rajveer 26126
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1529 ankur.sing 26127
    public boolean isSetSuccess() {
26128
      return this.success != null;
26129
    }
26130
 
26131
    public void setSuccessIsSet(boolean value) {
26132
      if (!value) {
26133
        this.success = null;
26134
      }
26135
    }
26136
 
26137
    public void setFieldValue(_Fields field, Object value) {
26138
      switch (field) {
26139
      case SUCCESS:
26140
        if (value == null) {
26141
          unsetSuccess();
26142
        } else {
3061 chandransh 26143
          setSuccess((List<Order>)value);
1529 ankur.sing 26144
        }
26145
        break;
26146
 
26147
      }
26148
    }
26149
 
26150
    public Object getFieldValue(_Fields field) {
26151
      switch (field) {
26152
      case SUCCESS:
26153
        return getSuccess();
26154
 
26155
      }
26156
      throw new IllegalStateException();
26157
    }
26158
 
3430 rajveer 26159
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26160
    public boolean isSet(_Fields field) {
26161
      if (field == null) {
26162
        throw new IllegalArgumentException();
26163
      }
1529 ankur.sing 26164
 
26165
      switch (field) {
26166
      case SUCCESS:
26167
        return isSetSuccess();
26168
      }
26169
      throw new IllegalStateException();
26170
    }
26171
 
26172
    @Override
26173
    public boolean equals(Object that) {
26174
      if (that == null)
26175
        return false;
3061 chandransh 26176
      if (that instanceof getValidOrders_result)
26177
        return this.equals((getValidOrders_result)that);
1529 ankur.sing 26178
      return false;
26179
    }
26180
 
3061 chandransh 26181
    public boolean equals(getValidOrders_result that) {
1529 ankur.sing 26182
      if (that == null)
26183
        return false;
26184
 
26185
      boolean this_present_success = true && this.isSetSuccess();
26186
      boolean that_present_success = true && that.isSetSuccess();
26187
      if (this_present_success || that_present_success) {
26188
        if (!(this_present_success && that_present_success))
26189
          return false;
26190
        if (!this.success.equals(that.success))
26191
          return false;
26192
      }
26193
 
26194
      return true;
26195
    }
26196
 
26197
    @Override
26198
    public int hashCode() {
26199
      return 0;
26200
    }
26201
 
3061 chandransh 26202
    public int compareTo(getValidOrders_result other) {
1529 ankur.sing 26203
      if (!getClass().equals(other.getClass())) {
26204
        return getClass().getName().compareTo(other.getClass().getName());
26205
      }
26206
 
26207
      int lastComparison = 0;
3061 chandransh 26208
      getValidOrders_result typedOther = (getValidOrders_result)other;
1529 ankur.sing 26209
 
3430 rajveer 26210
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1529 ankur.sing 26211
      if (lastComparison != 0) {
26212
        return lastComparison;
26213
      }
3430 rajveer 26214
      if (isSetSuccess()) {
26215
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26216
        if (lastComparison != 0) {
26217
          return lastComparison;
26218
        }
1529 ankur.sing 26219
      }
26220
      return 0;
26221
    }
26222
 
3430 rajveer 26223
    public _Fields fieldForId(int fieldId) {
26224
      return _Fields.findByThriftId(fieldId);
26225
    }
26226
 
26227
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26228
      org.apache.thrift.protocol.TField field;
1529 ankur.sing 26229
      iprot.readStructBegin();
26230
      while (true)
26231
      {
26232
        field = iprot.readFieldBegin();
3430 rajveer 26233
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1529 ankur.sing 26234
          break;
26235
        }
3430 rajveer 26236
        switch (field.id) {
26237
          case 0: // SUCCESS
26238
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26239
              {
4133 chandransh 26240
                org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
26241
                this.success = new ArrayList<Order>(_list72.size);
26242
                for (int _i73 = 0; _i73 < _list72.size; ++_i73)
3061 chandransh 26243
                {
4133 chandransh 26244
                  Order _elem74; // required
26245
                  _elem74 = new Order();
26246
                  _elem74.read(iprot);
26247
                  this.success.add(_elem74);
3061 chandransh 26248
                }
3430 rajveer 26249
                iprot.readListEnd();
1529 ankur.sing 26250
              }
3430 rajveer 26251
            } else { 
26252
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26253
            }
26254
            break;
26255
          default:
26256
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1529 ankur.sing 26257
        }
3430 rajveer 26258
        iprot.readFieldEnd();
1529 ankur.sing 26259
      }
26260
      iprot.readStructEnd();
26261
      validate();
26262
    }
26263
 
3430 rajveer 26264
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1529 ankur.sing 26265
      oprot.writeStructBegin(STRUCT_DESC);
26266
 
26267
      if (this.isSetSuccess()) {
26268
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 26269
        {
3430 rajveer 26270
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 26271
          for (Order _iter75 : this.success)
3061 chandransh 26272
          {
4133 chandransh 26273
            _iter75.write(oprot);
3061 chandransh 26274
          }
26275
          oprot.writeListEnd();
26276
        }
1529 ankur.sing 26277
        oprot.writeFieldEnd();
26278
      }
26279
      oprot.writeFieldStop();
26280
      oprot.writeStructEnd();
26281
    }
26282
 
26283
    @Override
26284
    public String toString() {
3061 chandransh 26285
      StringBuilder sb = new StringBuilder("getValidOrders_result(");
1529 ankur.sing 26286
      boolean first = true;
26287
 
26288
      sb.append("success:");
26289
      if (this.success == null) {
26290
        sb.append("null");
26291
      } else {
26292
        sb.append(this.success);
26293
      }
26294
      first = false;
26295
      sb.append(")");
26296
      return sb.toString();
26297
    }
26298
 
3430 rajveer 26299
    public void validate() throws org.apache.thrift.TException {
1529 ankur.sing 26300
      // check for required fields
26301
    }
26302
 
3430 rajveer 26303
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26304
      try {
26305
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26306
      } catch (org.apache.thrift.TException te) {
26307
        throw new java.io.IOException(te);
26308
      }
26309
    }
26310
 
26311
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26312
      try {
26313
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26314
      } catch (org.apache.thrift.TException te) {
26315
        throw new java.io.IOException(te);
26316
      }
26317
    }
26318
 
1529 ankur.sing 26319
  }
26320
 
3430 rajveer 26321
  public static class batchOrders_args implements org.apache.thrift.TBase<batchOrders_args, batchOrders_args._Fields>, java.io.Serializable, Cloneable   {
26322
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("batchOrders_args");
1221 chandransh 26323
 
3430 rajveer 26324
    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 26325
 
3430 rajveer 26326
    private long warehouseId; // required
1221 chandransh 26327
 
26328
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26329
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1221 chandransh 26330
      WAREHOUSE_ID((short)1, "warehouseId");
26331
 
26332
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26333
 
26334
      static {
26335
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26336
          byName.put(field.getFieldName(), field);
26337
        }
26338
      }
26339
 
26340
      /**
26341
       * Find the _Fields constant that matches fieldId, or null if its not found.
26342
       */
26343
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26344
        switch(fieldId) {
26345
          case 1: // WAREHOUSE_ID
26346
            return WAREHOUSE_ID;
26347
          default:
26348
            return null;
26349
        }
1221 chandransh 26350
      }
26351
 
26352
      /**
26353
       * Find the _Fields constant that matches fieldId, throwing an exception
26354
       * if it is not found.
26355
       */
26356
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26357
        _Fields fields = findByThriftId(fieldId);
26358
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26359
        return fields;
26360
      }
26361
 
26362
      /**
26363
       * Find the _Fields constant that matches name, or null if its not found.
26364
       */
26365
      public static _Fields findByName(String name) {
26366
        return byName.get(name);
26367
      }
26368
 
26369
      private final short _thriftId;
26370
      private final String _fieldName;
26371
 
26372
      _Fields(short thriftId, String fieldName) {
26373
        _thriftId = thriftId;
26374
        _fieldName = fieldName;
26375
      }
26376
 
26377
      public short getThriftFieldId() {
26378
        return _thriftId;
26379
      }
26380
 
26381
      public String getFieldName() {
26382
        return _fieldName;
26383
      }
26384
    }
26385
 
26386
    // isset id assignments
26387
    private static final int __WAREHOUSEID_ISSET_ID = 0;
26388
    private BitSet __isset_bit_vector = new BitSet(1);
26389
 
3430 rajveer 26390
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1221 chandransh 26391
    static {
3430 rajveer 26392
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26393
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26394
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26395
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26396
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(batchOrders_args.class, metaDataMap);
1221 chandransh 26397
    }
26398
 
26399
    public batchOrders_args() {
26400
    }
26401
 
26402
    public batchOrders_args(
26403
      long warehouseId)
26404
    {
26405
      this();
26406
      this.warehouseId = warehouseId;
26407
      setWarehouseIdIsSet(true);
26408
    }
26409
 
26410
    /**
26411
     * Performs a deep copy on <i>other</i>.
26412
     */
26413
    public batchOrders_args(batchOrders_args other) {
26414
      __isset_bit_vector.clear();
26415
      __isset_bit_vector.or(other.__isset_bit_vector);
26416
      this.warehouseId = other.warehouseId;
26417
    }
26418
 
26419
    public batchOrders_args deepCopy() {
26420
      return new batchOrders_args(this);
26421
    }
26422
 
3430 rajveer 26423
    @Override
26424
    public void clear() {
26425
      setWarehouseIdIsSet(false);
26426
      this.warehouseId = 0;
1221 chandransh 26427
    }
26428
 
26429
    public long getWarehouseId() {
26430
      return this.warehouseId;
26431
    }
26432
 
3430 rajveer 26433
    public void setWarehouseId(long warehouseId) {
1221 chandransh 26434
      this.warehouseId = warehouseId;
26435
      setWarehouseIdIsSet(true);
26436
    }
26437
 
26438
    public void unsetWarehouseId() {
26439
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26440
    }
26441
 
3430 rajveer 26442
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
1221 chandransh 26443
    public boolean isSetWarehouseId() {
26444
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26445
    }
26446
 
26447
    public void setWarehouseIdIsSet(boolean value) {
26448
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26449
    }
26450
 
26451
    public void setFieldValue(_Fields field, Object value) {
26452
      switch (field) {
26453
      case WAREHOUSE_ID:
26454
        if (value == null) {
26455
          unsetWarehouseId();
26456
        } else {
26457
          setWarehouseId((Long)value);
26458
        }
26459
        break;
26460
 
26461
      }
26462
    }
26463
 
26464
    public Object getFieldValue(_Fields field) {
26465
      switch (field) {
26466
      case WAREHOUSE_ID:
3430 rajveer 26467
        return Long.valueOf(getWarehouseId());
1221 chandransh 26468
 
26469
      }
26470
      throw new IllegalStateException();
26471
    }
26472
 
3430 rajveer 26473
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26474
    public boolean isSet(_Fields field) {
26475
      if (field == null) {
26476
        throw new IllegalArgumentException();
26477
      }
1221 chandransh 26478
 
26479
      switch (field) {
26480
      case WAREHOUSE_ID:
26481
        return isSetWarehouseId();
26482
      }
26483
      throw new IllegalStateException();
26484
    }
26485
 
26486
    @Override
26487
    public boolean equals(Object that) {
26488
      if (that == null)
26489
        return false;
26490
      if (that instanceof batchOrders_args)
26491
        return this.equals((batchOrders_args)that);
26492
      return false;
26493
    }
26494
 
26495
    public boolean equals(batchOrders_args that) {
26496
      if (that == null)
26497
        return false;
26498
 
26499
      boolean this_present_warehouseId = true;
26500
      boolean that_present_warehouseId = true;
26501
      if (this_present_warehouseId || that_present_warehouseId) {
26502
        if (!(this_present_warehouseId && that_present_warehouseId))
26503
          return false;
26504
        if (this.warehouseId != that.warehouseId)
26505
          return false;
26506
      }
26507
 
26508
      return true;
26509
    }
26510
 
26511
    @Override
26512
    public int hashCode() {
26513
      return 0;
26514
    }
26515
 
26516
    public int compareTo(batchOrders_args other) {
26517
      if (!getClass().equals(other.getClass())) {
26518
        return getClass().getName().compareTo(other.getClass().getName());
26519
      }
26520
 
26521
      int lastComparison = 0;
26522
      batchOrders_args typedOther = (batchOrders_args)other;
26523
 
3430 rajveer 26524
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
1221 chandransh 26525
      if (lastComparison != 0) {
26526
        return lastComparison;
26527
      }
3430 rajveer 26528
      if (isSetWarehouseId()) {
26529
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
26530
        if (lastComparison != 0) {
26531
          return lastComparison;
26532
        }
1221 chandransh 26533
      }
26534
      return 0;
26535
    }
26536
 
3430 rajveer 26537
    public _Fields fieldForId(int fieldId) {
26538
      return _Fields.findByThriftId(fieldId);
26539
    }
26540
 
26541
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26542
      org.apache.thrift.protocol.TField field;
1221 chandransh 26543
      iprot.readStructBegin();
26544
      while (true)
26545
      {
26546
        field = iprot.readFieldBegin();
3430 rajveer 26547
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1221 chandransh 26548
          break;
26549
        }
3430 rajveer 26550
        switch (field.id) {
26551
          case 1: // WAREHOUSE_ID
26552
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26553
              this.warehouseId = iprot.readI64();
26554
              setWarehouseIdIsSet(true);
26555
            } else { 
26556
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26557
            }
26558
            break;
26559
          default:
26560
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1221 chandransh 26561
        }
3430 rajveer 26562
        iprot.readFieldEnd();
1221 chandransh 26563
      }
26564
      iprot.readStructEnd();
26565
      validate();
26566
    }
26567
 
3430 rajveer 26568
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1221 chandransh 26569
      validate();
26570
 
26571
      oprot.writeStructBegin(STRUCT_DESC);
26572
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26573
      oprot.writeI64(this.warehouseId);
26574
      oprot.writeFieldEnd();
26575
      oprot.writeFieldStop();
26576
      oprot.writeStructEnd();
26577
    }
26578
 
26579
    @Override
26580
    public String toString() {
26581
      StringBuilder sb = new StringBuilder("batchOrders_args(");
26582
      boolean first = true;
26583
 
26584
      sb.append("warehouseId:");
26585
      sb.append(this.warehouseId);
26586
      first = false;
26587
      sb.append(")");
26588
      return sb.toString();
26589
    }
26590
 
3430 rajveer 26591
    public void validate() throws org.apache.thrift.TException {
1221 chandransh 26592
      // check for required fields
26593
    }
26594
 
3430 rajveer 26595
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26596
      try {
26597
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26598
      } catch (org.apache.thrift.TException te) {
26599
        throw new java.io.IOException(te);
26600
      }
26601
    }
26602
 
26603
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26604
      try {
26605
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26606
      } catch (org.apache.thrift.TException te) {
26607
        throw new java.io.IOException(te);
26608
      }
26609
    }
26610
 
1221 chandransh 26611
  }
26612
 
3430 rajveer 26613
  public static class batchOrders_result implements org.apache.thrift.TBase<batchOrders_result, batchOrders_result._Fields>, java.io.Serializable, Cloneable   {
26614
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("batchOrders_result");
1221 chandransh 26615
 
3430 rajveer 26616
    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);
26617
    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 26618
 
3430 rajveer 26619
    private List<Order> success; // required
26620
    private TransactionServiceException ex; // required
1221 chandransh 26621
 
26622
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26623
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1221 chandransh 26624
      SUCCESS((short)0, "success"),
26625
      EX((short)1, "ex");
26626
 
26627
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26628
 
26629
      static {
26630
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26631
          byName.put(field.getFieldName(), field);
26632
        }
26633
      }
26634
 
26635
      /**
26636
       * Find the _Fields constant that matches fieldId, or null if its not found.
26637
       */
26638
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26639
        switch(fieldId) {
26640
          case 0: // SUCCESS
26641
            return SUCCESS;
26642
          case 1: // EX
26643
            return EX;
26644
          default:
26645
            return null;
26646
        }
1221 chandransh 26647
      }
26648
 
26649
      /**
26650
       * Find the _Fields constant that matches fieldId, throwing an exception
26651
       * if it is not found.
26652
       */
26653
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26654
        _Fields fields = findByThriftId(fieldId);
26655
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26656
        return fields;
26657
      }
26658
 
26659
      /**
26660
       * Find the _Fields constant that matches name, or null if its not found.
26661
       */
26662
      public static _Fields findByName(String name) {
26663
        return byName.get(name);
26664
      }
26665
 
26666
      private final short _thriftId;
26667
      private final String _fieldName;
26668
 
26669
      _Fields(short thriftId, String fieldName) {
26670
        _thriftId = thriftId;
26671
        _fieldName = fieldName;
26672
      }
26673
 
26674
      public short getThriftFieldId() {
26675
        return _thriftId;
26676
      }
26677
 
26678
      public String getFieldName() {
26679
        return _fieldName;
26680
      }
26681
    }
26682
 
26683
    // isset id assignments
26684
 
3430 rajveer 26685
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1221 chandransh 26686
    static {
3430 rajveer 26687
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26688
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26689
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
26690
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
26691
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26692
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26693
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26694
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(batchOrders_result.class, metaDataMap);
1221 chandransh 26695
    }
26696
 
26697
    public batchOrders_result() {
26698
    }
26699
 
26700
    public batchOrders_result(
26701
      List<Order> success,
26702
      TransactionServiceException ex)
26703
    {
26704
      this();
26705
      this.success = success;
26706
      this.ex = ex;
26707
    }
26708
 
26709
    /**
26710
     * Performs a deep copy on <i>other</i>.
26711
     */
26712
    public batchOrders_result(batchOrders_result other) {
26713
      if (other.isSetSuccess()) {
26714
        List<Order> __this__success = new ArrayList<Order>();
26715
        for (Order other_element : other.success) {
26716
          __this__success.add(new Order(other_element));
26717
        }
26718
        this.success = __this__success;
26719
      }
26720
      if (other.isSetEx()) {
26721
        this.ex = new TransactionServiceException(other.ex);
26722
      }
26723
    }
26724
 
26725
    public batchOrders_result deepCopy() {
26726
      return new batchOrders_result(this);
26727
    }
26728
 
3430 rajveer 26729
    @Override
26730
    public void clear() {
26731
      this.success = null;
26732
      this.ex = null;
1221 chandransh 26733
    }
26734
 
26735
    public int getSuccessSize() {
26736
      return (this.success == null) ? 0 : this.success.size();
26737
    }
26738
 
26739
    public java.util.Iterator<Order> getSuccessIterator() {
26740
      return (this.success == null) ? null : this.success.iterator();
26741
    }
26742
 
26743
    public void addToSuccess(Order elem) {
26744
      if (this.success == null) {
26745
        this.success = new ArrayList<Order>();
26746
      }
26747
      this.success.add(elem);
26748
    }
26749
 
26750
    public List<Order> getSuccess() {
26751
      return this.success;
26752
    }
26753
 
3430 rajveer 26754
    public void setSuccess(List<Order> success) {
1221 chandransh 26755
      this.success = success;
26756
    }
26757
 
26758
    public void unsetSuccess() {
26759
      this.success = null;
26760
    }
26761
 
3430 rajveer 26762
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1221 chandransh 26763
    public boolean isSetSuccess() {
26764
      return this.success != null;
26765
    }
26766
 
26767
    public void setSuccessIsSet(boolean value) {
26768
      if (!value) {
26769
        this.success = null;
26770
      }
26771
    }
26772
 
26773
    public TransactionServiceException getEx() {
26774
      return this.ex;
26775
    }
26776
 
3430 rajveer 26777
    public void setEx(TransactionServiceException ex) {
1221 chandransh 26778
      this.ex = ex;
26779
    }
26780
 
26781
    public void unsetEx() {
26782
      this.ex = null;
26783
    }
26784
 
3430 rajveer 26785
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1221 chandransh 26786
    public boolean isSetEx() {
26787
      return this.ex != null;
26788
    }
26789
 
26790
    public void setExIsSet(boolean value) {
26791
      if (!value) {
26792
        this.ex = null;
26793
      }
26794
    }
26795
 
26796
    public void setFieldValue(_Fields field, Object value) {
26797
      switch (field) {
26798
      case SUCCESS:
26799
        if (value == null) {
26800
          unsetSuccess();
26801
        } else {
26802
          setSuccess((List<Order>)value);
26803
        }
26804
        break;
26805
 
26806
      case EX:
26807
        if (value == null) {
26808
          unsetEx();
26809
        } else {
26810
          setEx((TransactionServiceException)value);
26811
        }
26812
        break;
26813
 
26814
      }
26815
    }
26816
 
26817
    public Object getFieldValue(_Fields field) {
26818
      switch (field) {
26819
      case SUCCESS:
26820
        return getSuccess();
26821
 
26822
      case EX:
26823
        return getEx();
26824
 
26825
      }
26826
      throw new IllegalStateException();
26827
    }
26828
 
3430 rajveer 26829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26830
    public boolean isSet(_Fields field) {
26831
      if (field == null) {
26832
        throw new IllegalArgumentException();
26833
      }
1221 chandransh 26834
 
26835
      switch (field) {
26836
      case SUCCESS:
26837
        return isSetSuccess();
26838
      case EX:
26839
        return isSetEx();
26840
      }
26841
      throw new IllegalStateException();
26842
    }
26843
 
26844
    @Override
26845
    public boolean equals(Object that) {
26846
      if (that == null)
26847
        return false;
26848
      if (that instanceof batchOrders_result)
26849
        return this.equals((batchOrders_result)that);
26850
      return false;
26851
    }
26852
 
26853
    public boolean equals(batchOrders_result that) {
26854
      if (that == null)
26855
        return false;
26856
 
26857
      boolean this_present_success = true && this.isSetSuccess();
26858
      boolean that_present_success = true && that.isSetSuccess();
26859
      if (this_present_success || that_present_success) {
26860
        if (!(this_present_success && that_present_success))
26861
          return false;
26862
        if (!this.success.equals(that.success))
26863
          return false;
26864
      }
26865
 
26866
      boolean this_present_ex = true && this.isSetEx();
26867
      boolean that_present_ex = true && that.isSetEx();
26868
      if (this_present_ex || that_present_ex) {
26869
        if (!(this_present_ex && that_present_ex))
26870
          return false;
26871
        if (!this.ex.equals(that.ex))
26872
          return false;
26873
      }
26874
 
26875
      return true;
26876
    }
26877
 
26878
    @Override
26879
    public int hashCode() {
26880
      return 0;
26881
    }
26882
 
26883
    public int compareTo(batchOrders_result other) {
26884
      if (!getClass().equals(other.getClass())) {
26885
        return getClass().getName().compareTo(other.getClass().getName());
26886
      }
26887
 
26888
      int lastComparison = 0;
26889
      batchOrders_result typedOther = (batchOrders_result)other;
26890
 
3430 rajveer 26891
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1221 chandransh 26892
      if (lastComparison != 0) {
26893
        return lastComparison;
26894
      }
3430 rajveer 26895
      if (isSetSuccess()) {
26896
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26897
        if (lastComparison != 0) {
26898
          return lastComparison;
26899
        }
1221 chandransh 26900
      }
3430 rajveer 26901
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1221 chandransh 26902
      if (lastComparison != 0) {
26903
        return lastComparison;
26904
      }
3430 rajveer 26905
      if (isSetEx()) {
26906
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
26907
        if (lastComparison != 0) {
26908
          return lastComparison;
26909
        }
1221 chandransh 26910
      }
26911
      return 0;
26912
    }
26913
 
3430 rajveer 26914
    public _Fields fieldForId(int fieldId) {
26915
      return _Fields.findByThriftId(fieldId);
26916
    }
26917
 
26918
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26919
      org.apache.thrift.protocol.TField field;
1221 chandransh 26920
      iprot.readStructBegin();
26921
      while (true)
26922
      {
26923
        field = iprot.readFieldBegin();
3430 rajveer 26924
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1221 chandransh 26925
          break;
26926
        }
3430 rajveer 26927
        switch (field.id) {
26928
          case 0: // SUCCESS
26929
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26930
              {
4133 chandransh 26931
                org.apache.thrift.protocol.TList _list76 = iprot.readListBegin();
26932
                this.success = new ArrayList<Order>(_list76.size);
26933
                for (int _i77 = 0; _i77 < _list76.size; ++_i77)
1221 chandransh 26934
                {
4133 chandransh 26935
                  Order _elem78; // required
26936
                  _elem78 = new Order();
26937
                  _elem78.read(iprot);
26938
                  this.success.add(_elem78);
1221 chandransh 26939
                }
3430 rajveer 26940
                iprot.readListEnd();
1221 chandransh 26941
              }
3430 rajveer 26942
            } else { 
26943
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26944
            }
26945
            break;
26946
          case 1: // EX
26947
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26948
              this.ex = new TransactionServiceException();
26949
              this.ex.read(iprot);
26950
            } else { 
26951
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26952
            }
26953
            break;
26954
          default:
26955
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1221 chandransh 26956
        }
3430 rajveer 26957
        iprot.readFieldEnd();
1221 chandransh 26958
      }
26959
      iprot.readStructEnd();
26960
      validate();
26961
    }
26962
 
3430 rajveer 26963
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1221 chandransh 26964
      oprot.writeStructBegin(STRUCT_DESC);
26965
 
26966
      if (this.isSetSuccess()) {
26967
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26968
        {
3430 rajveer 26969
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 26970
          for (Order _iter79 : this.success)
1221 chandransh 26971
          {
4133 chandransh 26972
            _iter79.write(oprot);
1221 chandransh 26973
          }
26974
          oprot.writeListEnd();
26975
        }
26976
        oprot.writeFieldEnd();
26977
      } else if (this.isSetEx()) {
26978
        oprot.writeFieldBegin(EX_FIELD_DESC);
26979
        this.ex.write(oprot);
26980
        oprot.writeFieldEnd();
26981
      }
26982
      oprot.writeFieldStop();
26983
      oprot.writeStructEnd();
26984
    }
26985
 
26986
    @Override
26987
    public String toString() {
26988
      StringBuilder sb = new StringBuilder("batchOrders_result(");
26989
      boolean first = true;
26990
 
26991
      sb.append("success:");
26992
      if (this.success == null) {
26993
        sb.append("null");
26994
      } else {
26995
        sb.append(this.success);
26996
      }
26997
      first = false;
26998
      if (!first) sb.append(", ");
26999
      sb.append("ex:");
27000
      if (this.ex == null) {
27001
        sb.append("null");
27002
      } else {
27003
        sb.append(this.ex);
27004
      }
27005
      first = false;
27006
      sb.append(")");
27007
      return sb.toString();
27008
    }
27009
 
3430 rajveer 27010
    public void validate() throws org.apache.thrift.TException {
1221 chandransh 27011
      // check for required fields
27012
    }
27013
 
3430 rajveer 27014
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27015
      try {
27016
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27017
      } catch (org.apache.thrift.TException te) {
27018
        throw new java.io.IOException(te);
27019
      }
27020
    }
27021
 
27022
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27023
      try {
27024
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27025
      } catch (org.apache.thrift.TException te) {
27026
        throw new java.io.IOException(te);
27027
      }
27028
    }
27029
 
1221 chandransh 27030
  }
27031
 
3430 rajveer 27032
  public static class markOrderAsOutOfStock_args implements org.apache.thrift.TBase<markOrderAsOutOfStock_args, markOrderAsOutOfStock_args._Fields>, java.io.Serializable, Cloneable   {
27033
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsOutOfStock_args");
1209 chandransh 27034
 
3430 rajveer 27035
    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 27036
 
3430 rajveer 27037
    private long orderId; // required
1209 chandransh 27038
 
27039
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 27040
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1209 chandransh 27041
      ORDER_ID((short)1, "orderId");
27042
 
27043
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27044
 
27045
      static {
27046
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27047
          byName.put(field.getFieldName(), field);
27048
        }
27049
      }
27050
 
27051
      /**
27052
       * Find the _Fields constant that matches fieldId, or null if its not found.
27053
       */
27054
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 27055
        switch(fieldId) {
27056
          case 1: // ORDER_ID
27057
            return ORDER_ID;
27058
          default:
27059
            return null;
27060
        }
1209 chandransh 27061
      }
27062
 
27063
      /**
27064
       * Find the _Fields constant that matches fieldId, throwing an exception
27065
       * if it is not found.
27066
       */
27067
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27068
        _Fields fields = findByThriftId(fieldId);
27069
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27070
        return fields;
27071
      }
27072
 
27073
      /**
27074
       * Find the _Fields constant that matches name, or null if its not found.
27075
       */
27076
      public static _Fields findByName(String name) {
27077
        return byName.get(name);
27078
      }
27079
 
27080
      private final short _thriftId;
27081
      private final String _fieldName;
27082
 
27083
      _Fields(short thriftId, String fieldName) {
27084
        _thriftId = thriftId;
27085
        _fieldName = fieldName;
27086
      }
27087
 
27088
      public short getThriftFieldId() {
27089
        return _thriftId;
27090
      }
27091
 
27092
      public String getFieldName() {
27093
        return _fieldName;
27094
      }
27095
    }
27096
 
27097
    // isset id assignments
27098
    private static final int __ORDERID_ISSET_ID = 0;
27099
    private BitSet __isset_bit_vector = new BitSet(1);
27100
 
3430 rajveer 27101
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1209 chandransh 27102
    static {
3430 rajveer 27103
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27104
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27105
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27106
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27107
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsOutOfStock_args.class, metaDataMap);
1209 chandransh 27108
    }
27109
 
27110
    public markOrderAsOutOfStock_args() {
27111
    }
27112
 
27113
    public markOrderAsOutOfStock_args(
27114
      long orderId)
27115
    {
27116
      this();
27117
      this.orderId = orderId;
27118
      setOrderIdIsSet(true);
27119
    }
27120
 
27121
    /**
27122
     * Performs a deep copy on <i>other</i>.
27123
     */
27124
    public markOrderAsOutOfStock_args(markOrderAsOutOfStock_args other) {
27125
      __isset_bit_vector.clear();
27126
      __isset_bit_vector.or(other.__isset_bit_vector);
27127
      this.orderId = other.orderId;
27128
    }
27129
 
27130
    public markOrderAsOutOfStock_args deepCopy() {
27131
      return new markOrderAsOutOfStock_args(this);
27132
    }
27133
 
3430 rajveer 27134
    @Override
27135
    public void clear() {
27136
      setOrderIdIsSet(false);
27137
      this.orderId = 0;
1209 chandransh 27138
    }
27139
 
27140
    public long getOrderId() {
27141
      return this.orderId;
27142
    }
27143
 
3430 rajveer 27144
    public void setOrderId(long orderId) {
1209 chandransh 27145
      this.orderId = orderId;
27146
      setOrderIdIsSet(true);
27147
    }
27148
 
27149
    public void unsetOrderId() {
27150
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
27151
    }
27152
 
3430 rajveer 27153
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
1209 chandransh 27154
    public boolean isSetOrderId() {
27155
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
27156
    }
27157
 
27158
    public void setOrderIdIsSet(boolean value) {
27159
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
27160
    }
27161
 
27162
    public void setFieldValue(_Fields field, Object value) {
27163
      switch (field) {
27164
      case ORDER_ID:
27165
        if (value == null) {
27166
          unsetOrderId();
27167
        } else {
27168
          setOrderId((Long)value);
27169
        }
27170
        break;
27171
 
27172
      }
27173
    }
27174
 
27175
    public Object getFieldValue(_Fields field) {
27176
      switch (field) {
27177
      case ORDER_ID:
3430 rajveer 27178
        return Long.valueOf(getOrderId());
1209 chandransh 27179
 
27180
      }
27181
      throw new IllegalStateException();
27182
    }
27183
 
3430 rajveer 27184
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27185
    public boolean isSet(_Fields field) {
27186
      if (field == null) {
27187
        throw new IllegalArgumentException();
27188
      }
1209 chandransh 27189
 
27190
      switch (field) {
27191
      case ORDER_ID:
27192
        return isSetOrderId();
27193
      }
27194
      throw new IllegalStateException();
27195
    }
27196
 
27197
    @Override
27198
    public boolean equals(Object that) {
27199
      if (that == null)
27200
        return false;
27201
      if (that instanceof markOrderAsOutOfStock_args)
27202
        return this.equals((markOrderAsOutOfStock_args)that);
27203
      return false;
27204
    }
27205
 
27206
    public boolean equals(markOrderAsOutOfStock_args that) {
27207
      if (that == null)
27208
        return false;
27209
 
27210
      boolean this_present_orderId = true;
27211
      boolean that_present_orderId = true;
27212
      if (this_present_orderId || that_present_orderId) {
27213
        if (!(this_present_orderId && that_present_orderId))
27214
          return false;
27215
        if (this.orderId != that.orderId)
27216
          return false;
27217
      }
27218
 
27219
      return true;
27220
    }
27221
 
27222
    @Override
27223
    public int hashCode() {
27224
      return 0;
27225
    }
27226
 
27227
    public int compareTo(markOrderAsOutOfStock_args other) {
27228
      if (!getClass().equals(other.getClass())) {
27229
        return getClass().getName().compareTo(other.getClass().getName());
27230
      }
27231
 
27232
      int lastComparison = 0;
27233
      markOrderAsOutOfStock_args typedOther = (markOrderAsOutOfStock_args)other;
27234
 
3430 rajveer 27235
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
1209 chandransh 27236
      if (lastComparison != 0) {
27237
        return lastComparison;
27238
      }
3430 rajveer 27239
      if (isSetOrderId()) {
27240
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
27241
        if (lastComparison != 0) {
27242
          return lastComparison;
27243
        }
1209 chandransh 27244
      }
27245
      return 0;
27246
    }
27247
 
3430 rajveer 27248
    public _Fields fieldForId(int fieldId) {
27249
      return _Fields.findByThriftId(fieldId);
27250
    }
27251
 
27252
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27253
      org.apache.thrift.protocol.TField field;
1209 chandransh 27254
      iprot.readStructBegin();
27255
      while (true)
27256
      {
27257
        field = iprot.readFieldBegin();
3430 rajveer 27258
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1209 chandransh 27259
          break;
27260
        }
3430 rajveer 27261
        switch (field.id) {
27262
          case 1: // ORDER_ID
27263
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27264
              this.orderId = iprot.readI64();
27265
              setOrderIdIsSet(true);
27266
            } else { 
27267
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27268
            }
27269
            break;
27270
          default:
27271
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1209 chandransh 27272
        }
3430 rajveer 27273
        iprot.readFieldEnd();
1209 chandransh 27274
      }
27275
      iprot.readStructEnd();
27276
      validate();
27277
    }
27278
 
3430 rajveer 27279
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1209 chandransh 27280
      validate();
27281
 
27282
      oprot.writeStructBegin(STRUCT_DESC);
27283
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
27284
      oprot.writeI64(this.orderId);
27285
      oprot.writeFieldEnd();
27286
      oprot.writeFieldStop();
27287
      oprot.writeStructEnd();
27288
    }
27289
 
27290
    @Override
27291
    public String toString() {
27292
      StringBuilder sb = new StringBuilder("markOrderAsOutOfStock_args(");
27293
      boolean first = true;
27294
 
27295
      sb.append("orderId:");
27296
      sb.append(this.orderId);
27297
      first = false;
27298
      sb.append(")");
27299
      return sb.toString();
27300
    }
27301
 
3430 rajveer 27302
    public void validate() throws org.apache.thrift.TException {
1209 chandransh 27303
      // check for required fields
27304
    }
27305
 
3430 rajveer 27306
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27307
      try {
27308
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27309
      } catch (org.apache.thrift.TException te) {
27310
        throw new java.io.IOException(te);
27311
      }
27312
    }
27313
 
27314
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27315
      try {
27316
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27317
      } catch (org.apache.thrift.TException te) {
27318
        throw new java.io.IOException(te);
27319
      }
27320
    }
27321
 
1209 chandransh 27322
  }
27323
 
3430 rajveer 27324
  public static class markOrderAsOutOfStock_result implements org.apache.thrift.TBase<markOrderAsOutOfStock_result, markOrderAsOutOfStock_result._Fields>, java.io.Serializable, Cloneable   {
27325
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsOutOfStock_result");
1209 chandransh 27326
 
3430 rajveer 27327
    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);
27328
    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 27329
 
3430 rajveer 27330
    private boolean success; // required
27331
    private TransactionServiceException ex; // required
1209 chandransh 27332
 
27333
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 27334
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1209 chandransh 27335
      SUCCESS((short)0, "success"),
27336
      EX((short)1, "ex");
27337
 
27338
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27339
 
27340
      static {
27341
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27342
          byName.put(field.getFieldName(), field);
27343
        }
27344
      }
27345
 
27346
      /**
27347
       * Find the _Fields constant that matches fieldId, or null if its not found.
27348
       */
27349
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 27350
        switch(fieldId) {
27351
          case 0: // SUCCESS
27352
            return SUCCESS;
27353
          case 1: // EX
27354
            return EX;
27355
          default:
27356
            return null;
27357
        }
1209 chandransh 27358
      }
27359
 
27360
      /**
27361
       * Find the _Fields constant that matches fieldId, throwing an exception
27362
       * if it is not found.
27363
       */
27364
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27365
        _Fields fields = findByThriftId(fieldId);
27366
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27367
        return fields;
27368
      }
27369
 
27370
      /**
27371
       * Find the _Fields constant that matches name, or null if its not found.
27372
       */
27373
      public static _Fields findByName(String name) {
27374
        return byName.get(name);
27375
      }
27376
 
27377
      private final short _thriftId;
27378
      private final String _fieldName;
27379
 
27380
      _Fields(short thriftId, String fieldName) {
27381
        _thriftId = thriftId;
27382
        _fieldName = fieldName;
27383
      }
27384
 
27385
      public short getThriftFieldId() {
27386
        return _thriftId;
27387
      }
27388
 
27389
      public String getFieldName() {
27390
        return _fieldName;
27391
      }
27392
    }
27393
 
27394
    // isset id assignments
27395
    private static final int __SUCCESS_ISSET_ID = 0;
27396
    private BitSet __isset_bit_vector = new BitSet(1);
27397
 
3430 rajveer 27398
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1209 chandransh 27399
    static {
3430 rajveer 27400
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27401
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27402
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
27403
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27404
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27405
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27406
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsOutOfStock_result.class, metaDataMap);
1209 chandransh 27407
    }
27408
 
27409
    public markOrderAsOutOfStock_result() {
27410
    }
27411
 
27412
    public markOrderAsOutOfStock_result(
27413
      boolean success,
27414
      TransactionServiceException ex)
27415
    {
27416
      this();
27417
      this.success = success;
27418
      setSuccessIsSet(true);
27419
      this.ex = ex;
27420
    }
27421
 
27422
    /**
27423
     * Performs a deep copy on <i>other</i>.
27424
     */
27425
    public markOrderAsOutOfStock_result(markOrderAsOutOfStock_result other) {
27426
      __isset_bit_vector.clear();
27427
      __isset_bit_vector.or(other.__isset_bit_vector);
27428
      this.success = other.success;
27429
      if (other.isSetEx()) {
27430
        this.ex = new TransactionServiceException(other.ex);
27431
      }
27432
    }
27433
 
27434
    public markOrderAsOutOfStock_result deepCopy() {
27435
      return new markOrderAsOutOfStock_result(this);
27436
    }
27437
 
3430 rajveer 27438
    @Override
27439
    public void clear() {
27440
      setSuccessIsSet(false);
27441
      this.success = false;
27442
      this.ex = null;
1209 chandransh 27443
    }
27444
 
27445
    public boolean isSuccess() {
27446
      return this.success;
27447
    }
27448
 
3430 rajveer 27449
    public void setSuccess(boolean success) {
1209 chandransh 27450
      this.success = success;
27451
      setSuccessIsSet(true);
27452
    }
27453
 
27454
    public void unsetSuccess() {
27455
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
27456
    }
27457
 
3430 rajveer 27458
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1209 chandransh 27459
    public boolean isSetSuccess() {
27460
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
27461
    }
27462
 
27463
    public void setSuccessIsSet(boolean value) {
27464
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
27465
    }
27466
 
27467
    public TransactionServiceException getEx() {
27468
      return this.ex;
27469
    }
27470
 
3430 rajveer 27471
    public void setEx(TransactionServiceException ex) {
1209 chandransh 27472
      this.ex = ex;
27473
    }
27474
 
27475
    public void unsetEx() {
27476
      this.ex = null;
27477
    }
27478
 
3430 rajveer 27479
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1209 chandransh 27480
    public boolean isSetEx() {
27481
      return this.ex != null;
27482
    }
27483
 
27484
    public void setExIsSet(boolean value) {
27485
      if (!value) {
27486
        this.ex = null;
27487
      }
27488
    }
27489
 
27490
    public void setFieldValue(_Fields field, Object value) {
27491
      switch (field) {
27492
      case SUCCESS:
27493
        if (value == null) {
27494
          unsetSuccess();
27495
        } else {
27496
          setSuccess((Boolean)value);
27497
        }
27498
        break;
27499
 
27500
      case EX:
27501
        if (value == null) {
27502
          unsetEx();
27503
        } else {
27504
          setEx((TransactionServiceException)value);
27505
        }
27506
        break;
27507
 
27508
      }
27509
    }
27510
 
27511
    public Object getFieldValue(_Fields field) {
27512
      switch (field) {
27513
      case SUCCESS:
3430 rajveer 27514
        return Boolean.valueOf(isSuccess());
1209 chandransh 27515
 
27516
      case EX:
27517
        return getEx();
27518
 
27519
      }
27520
      throw new IllegalStateException();
27521
    }
27522
 
3430 rajveer 27523
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27524
    public boolean isSet(_Fields field) {
27525
      if (field == null) {
27526
        throw new IllegalArgumentException();
27527
      }
1209 chandransh 27528
 
27529
      switch (field) {
27530
      case SUCCESS:
27531
        return isSetSuccess();
27532
      case EX:
27533
        return isSetEx();
27534
      }
27535
      throw new IllegalStateException();
27536
    }
27537
 
27538
    @Override
27539
    public boolean equals(Object that) {
27540
      if (that == null)
27541
        return false;
27542
      if (that instanceof markOrderAsOutOfStock_result)
27543
        return this.equals((markOrderAsOutOfStock_result)that);
27544
      return false;
27545
    }
27546
 
27547
    public boolean equals(markOrderAsOutOfStock_result that) {
27548
      if (that == null)
27549
        return false;
27550
 
27551
      boolean this_present_success = true;
27552
      boolean that_present_success = true;
27553
      if (this_present_success || that_present_success) {
27554
        if (!(this_present_success && that_present_success))
27555
          return false;
27556
        if (this.success != that.success)
27557
          return false;
27558
      }
27559
 
27560
      boolean this_present_ex = true && this.isSetEx();
27561
      boolean that_present_ex = true && that.isSetEx();
27562
      if (this_present_ex || that_present_ex) {
27563
        if (!(this_present_ex && that_present_ex))
27564
          return false;
27565
        if (!this.ex.equals(that.ex))
27566
          return false;
27567
      }
27568
 
27569
      return true;
27570
    }
27571
 
27572
    @Override
27573
    public int hashCode() {
27574
      return 0;
27575
    }
27576
 
27577
    public int compareTo(markOrderAsOutOfStock_result other) {
27578
      if (!getClass().equals(other.getClass())) {
27579
        return getClass().getName().compareTo(other.getClass().getName());
27580
      }
27581
 
27582
      int lastComparison = 0;
27583
      markOrderAsOutOfStock_result typedOther = (markOrderAsOutOfStock_result)other;
27584
 
3430 rajveer 27585
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1209 chandransh 27586
      if (lastComparison != 0) {
27587
        return lastComparison;
27588
      }
3430 rajveer 27589
      if (isSetSuccess()) {
27590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27591
        if (lastComparison != 0) {
27592
          return lastComparison;
27593
        }
1209 chandransh 27594
      }
3430 rajveer 27595
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1209 chandransh 27596
      if (lastComparison != 0) {
27597
        return lastComparison;
27598
      }
3430 rajveer 27599
      if (isSetEx()) {
27600
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
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 0: // SUCCESS
27623
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
27624
              this.success = iprot.readBool();
27625
              setSuccessIsSet(true);
27626
            } else { 
27627
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27628
            }
27629
            break;
27630
          case 1: // EX
27631
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27632
              this.ex = new TransactionServiceException();
27633
              this.ex.read(iprot);
27634
            } else { 
27635
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27636
            }
27637
            break;
27638
          default:
27639
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1209 chandransh 27640
        }
3430 rajveer 27641
        iprot.readFieldEnd();
1209 chandransh 27642
      }
27643
      iprot.readStructEnd();
27644
      validate();
27645
    }
27646
 
3430 rajveer 27647
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1209 chandransh 27648
      oprot.writeStructBegin(STRUCT_DESC);
27649
 
27650
      if (this.isSetSuccess()) {
27651
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27652
        oprot.writeBool(this.success);
27653
        oprot.writeFieldEnd();
27654
      } else if (this.isSetEx()) {
27655
        oprot.writeFieldBegin(EX_FIELD_DESC);
27656
        this.ex.write(oprot);
27657
        oprot.writeFieldEnd();
27658
      }
27659
      oprot.writeFieldStop();
27660
      oprot.writeStructEnd();
27661
    }
27662
 
27663
    @Override
27664
    public String toString() {
27665
      StringBuilder sb = new StringBuilder("markOrderAsOutOfStock_result(");
27666
      boolean first = true;
27667
 
27668
      sb.append("success:");
27669
      sb.append(this.success);
27670
      first = false;
27671
      if (!first) sb.append(", ");
27672
      sb.append("ex:");
27673
      if (this.ex == null) {
27674
        sb.append("null");
27675
      } else {
27676
        sb.append(this.ex);
27677
      }
27678
      first = false;
27679
      sb.append(")");
27680
      return sb.toString();
27681
    }
27682
 
3430 rajveer 27683
    public void validate() throws org.apache.thrift.TException {
1209 chandransh 27684
      // check for required fields
27685
    }
27686
 
3430 rajveer 27687
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27688
      try {
27689
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27690
      } catch (org.apache.thrift.TException te) {
27691
        throw new java.io.IOException(te);
27692
      }
27693
    }
27694
 
27695
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27696
      try {
27697
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27698
      } catch (org.apache.thrift.TException te) {
27699
        throw new java.io.IOException(te);
27700
      }
27701
    }
27702
 
1209 chandransh 27703
  }
27704
 
3430 rajveer 27705
  public static class verifyOrder_args implements org.apache.thrift.TBase<verifyOrder_args, verifyOrder_args._Fields>, java.io.Serializable, Cloneable   {
27706
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("verifyOrder_args");
758 chandransh 27707
 
3430 rajveer 27708
    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 27709
 
3430 rajveer 27710
    private long orderId; // required
758 chandransh 27711
 
27712
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 27713
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 27714
      ORDER_ID((short)1, "orderId");
758 chandransh 27715
 
27716
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27717
 
27718
      static {
27719
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27720
          byName.put(field.getFieldName(), field);
27721
        }
27722
      }
27723
 
27724
      /**
27725
       * Find the _Fields constant that matches fieldId, or null if its not found.
27726
       */
27727
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 27728
        switch(fieldId) {
27729
          case 1: // ORDER_ID
27730
            return ORDER_ID;
27731
          default:
27732
            return null;
27733
        }
758 chandransh 27734
      }
27735
 
27736
      /**
27737
       * Find the _Fields constant that matches fieldId, throwing an exception
27738
       * if it is not found.
27739
       */
27740
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27741
        _Fields fields = findByThriftId(fieldId);
27742
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27743
        return fields;
27744
      }
27745
 
27746
      /**
27747
       * Find the _Fields constant that matches name, or null if its not found.
27748
       */
27749
      public static _Fields findByName(String name) {
27750
        return byName.get(name);
27751
      }
27752
 
27753
      private final short _thriftId;
27754
      private final String _fieldName;
27755
 
27756
      _Fields(short thriftId, String fieldName) {
27757
        _thriftId = thriftId;
27758
        _fieldName = fieldName;
27759
      }
27760
 
27761
      public short getThriftFieldId() {
27762
        return _thriftId;
27763
      }
27764
 
27765
      public String getFieldName() {
27766
        return _fieldName;
27767
      }
27768
    }
27769
 
27770
    // isset id assignments
3061 chandransh 27771
    private static final int __ORDERID_ISSET_ID = 0;
27772
    private BitSet __isset_bit_vector = new BitSet(1);
758 chandransh 27773
 
3430 rajveer 27774
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
758 chandransh 27775
    static {
3430 rajveer 27776
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27777
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27778
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27779
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27780
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(verifyOrder_args.class, metaDataMap);
758 chandransh 27781
    }
27782
 
3061 chandransh 27783
    public verifyOrder_args() {
758 chandransh 27784
    }
27785
 
3061 chandransh 27786
    public verifyOrder_args(
27787
      long orderId)
758 chandransh 27788
    {
27789
      this();
3061 chandransh 27790
      this.orderId = orderId;
27791
      setOrderIdIsSet(true);
758 chandransh 27792
    }
27793
 
27794
    /**
27795
     * Performs a deep copy on <i>other</i>.
27796
     */
3061 chandransh 27797
    public verifyOrder_args(verifyOrder_args other) {
758 chandransh 27798
      __isset_bit_vector.clear();
27799
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 27800
      this.orderId = other.orderId;
758 chandransh 27801
    }
27802
 
3061 chandransh 27803
    public verifyOrder_args deepCopy() {
27804
      return new verifyOrder_args(this);
758 chandransh 27805
    }
27806
 
3430 rajveer 27807
    @Override
27808
    public void clear() {
27809
      setOrderIdIsSet(false);
27810
      this.orderId = 0;
758 chandransh 27811
    }
27812
 
3061 chandransh 27813
    public long getOrderId() {
27814
      return this.orderId;
758 chandransh 27815
    }
27816
 
3430 rajveer 27817
    public void setOrderId(long orderId) {
3061 chandransh 27818
      this.orderId = orderId;
27819
      setOrderIdIsSet(true);
758 chandransh 27820
    }
27821
 
3061 chandransh 27822
    public void unsetOrderId() {
27823
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
758 chandransh 27824
    }
27825
 
3430 rajveer 27826
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 27827
    public boolean isSetOrderId() {
27828
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
758 chandransh 27829
    }
27830
 
3061 chandransh 27831
    public void setOrderIdIsSet(boolean value) {
27832
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
758 chandransh 27833
    }
27834
 
27835
    public void setFieldValue(_Fields field, Object value) {
27836
      switch (field) {
3061 chandransh 27837
      case ORDER_ID:
758 chandransh 27838
        if (value == null) {
3061 chandransh 27839
          unsetOrderId();
758 chandransh 27840
        } else {
3061 chandransh 27841
          setOrderId((Long)value);
758 chandransh 27842
        }
27843
        break;
27844
 
27845
      }
27846
    }
27847
 
27848
    public Object getFieldValue(_Fields field) {
27849
      switch (field) {
3061 chandransh 27850
      case ORDER_ID:
3430 rajveer 27851
        return Long.valueOf(getOrderId());
758 chandransh 27852
 
27853
      }
27854
      throw new IllegalStateException();
27855
    }
27856
 
3430 rajveer 27857
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27858
    public boolean isSet(_Fields field) {
27859
      if (field == null) {
27860
        throw new IllegalArgumentException();
27861
      }
758 chandransh 27862
 
27863
      switch (field) {
3061 chandransh 27864
      case ORDER_ID:
27865
        return isSetOrderId();
758 chandransh 27866
      }
27867
      throw new IllegalStateException();
27868
    }
27869
 
27870
    @Override
27871
    public boolean equals(Object that) {
27872
      if (that == null)
27873
        return false;
3061 chandransh 27874
      if (that instanceof verifyOrder_args)
27875
        return this.equals((verifyOrder_args)that);
758 chandransh 27876
      return false;
27877
    }
27878
 
3061 chandransh 27879
    public boolean equals(verifyOrder_args that) {
758 chandransh 27880
      if (that == null)
27881
        return false;
27882
 
3061 chandransh 27883
      boolean this_present_orderId = true;
27884
      boolean that_present_orderId = true;
27885
      if (this_present_orderId || that_present_orderId) {
27886
        if (!(this_present_orderId && that_present_orderId))
758 chandransh 27887
          return false;
3061 chandransh 27888
        if (this.orderId != that.orderId)
758 chandransh 27889
          return false;
27890
      }
27891
 
27892
      return true;
27893
    }
27894
 
27895
    @Override
27896
    public int hashCode() {
27897
      return 0;
27898
    }
27899
 
3061 chandransh 27900
    public int compareTo(verifyOrder_args other) {
758 chandransh 27901
      if (!getClass().equals(other.getClass())) {
27902
        return getClass().getName().compareTo(other.getClass().getName());
27903
      }
27904
 
27905
      int lastComparison = 0;
3061 chandransh 27906
      verifyOrder_args typedOther = (verifyOrder_args)other;
758 chandransh 27907
 
3430 rajveer 27908
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
758 chandransh 27909
      if (lastComparison != 0) {
27910
        return lastComparison;
27911
      }
3430 rajveer 27912
      if (isSetOrderId()) {
27913
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
27914
        if (lastComparison != 0) {
27915
          return lastComparison;
27916
        }
758 chandransh 27917
      }
27918
      return 0;
27919
    }
27920
 
3430 rajveer 27921
    public _Fields fieldForId(int fieldId) {
27922
      return _Fields.findByThriftId(fieldId);
27923
    }
27924
 
27925
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27926
      org.apache.thrift.protocol.TField field;
758 chandransh 27927
      iprot.readStructBegin();
27928
      while (true)
27929
      {
27930
        field = iprot.readFieldBegin();
3430 rajveer 27931
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
758 chandransh 27932
          break;
27933
        }
3430 rajveer 27934
        switch (field.id) {
27935
          case 1: // ORDER_ID
27936
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27937
              this.orderId = iprot.readI64();
27938
              setOrderIdIsSet(true);
27939
            } else { 
27940
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27941
            }
27942
            break;
27943
          default:
27944
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
758 chandransh 27945
        }
3430 rajveer 27946
        iprot.readFieldEnd();
758 chandransh 27947
      }
27948
      iprot.readStructEnd();
27949
      validate();
27950
    }
27951
 
3430 rajveer 27952
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
758 chandransh 27953
      validate();
27954
 
27955
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 27956
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
27957
      oprot.writeI64(this.orderId);
758 chandransh 27958
      oprot.writeFieldEnd();
27959
      oprot.writeFieldStop();
27960
      oprot.writeStructEnd();
27961
    }
27962
 
27963
    @Override
27964
    public String toString() {
3061 chandransh 27965
      StringBuilder sb = new StringBuilder("verifyOrder_args(");
758 chandransh 27966
      boolean first = true;
27967
 
3061 chandransh 27968
      sb.append("orderId:");
27969
      sb.append(this.orderId);
758 chandransh 27970
      first = false;
27971
      sb.append(")");
27972
      return sb.toString();
27973
    }
27974
 
3430 rajveer 27975
    public void validate() throws org.apache.thrift.TException {
758 chandransh 27976
      // check for required fields
27977
    }
27978
 
3430 rajveer 27979
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27980
      try {
27981
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27982
      } catch (org.apache.thrift.TException te) {
27983
        throw new java.io.IOException(te);
27984
      }
27985
    }
27986
 
27987
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27988
      try {
27989
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27990
      } catch (org.apache.thrift.TException te) {
27991
        throw new java.io.IOException(te);
27992
      }
27993
    }
27994
 
758 chandransh 27995
  }
27996
 
3430 rajveer 27997
  public static class verifyOrder_result implements org.apache.thrift.TBase<verifyOrder_result, verifyOrder_result._Fields>, java.io.Serializable, Cloneable   {
27998
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("verifyOrder_result");
758 chandransh 27999
 
3430 rajveer 28000
    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);
28001
    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 28002
 
3430 rajveer 28003
    private boolean success; // required
28004
    private TransactionServiceException ex; // required
758 chandransh 28005
 
28006
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28007
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
758 chandransh 28008
      SUCCESS((short)0, "success"),
28009
      EX((short)1, "ex");
28010
 
28011
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28012
 
28013
      static {
28014
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28015
          byName.put(field.getFieldName(), field);
28016
        }
28017
      }
28018
 
28019
      /**
28020
       * Find the _Fields constant that matches fieldId, or null if its not found.
28021
       */
28022
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28023
        switch(fieldId) {
28024
          case 0: // SUCCESS
28025
            return SUCCESS;
28026
          case 1: // EX
28027
            return EX;
28028
          default:
28029
            return null;
28030
        }
758 chandransh 28031
      }
28032
 
28033
      /**
28034
       * Find the _Fields constant that matches fieldId, throwing an exception
28035
       * if it is not found.
28036
       */
28037
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28038
        _Fields fields = findByThriftId(fieldId);
28039
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28040
        return fields;
28041
      }
28042
 
28043
      /**
28044
       * Find the _Fields constant that matches name, or null if its not found.
28045
       */
28046
      public static _Fields findByName(String name) {
28047
        return byName.get(name);
28048
      }
28049
 
28050
      private final short _thriftId;
28051
      private final String _fieldName;
28052
 
28053
      _Fields(short thriftId, String fieldName) {
28054
        _thriftId = thriftId;
28055
        _fieldName = fieldName;
28056
      }
28057
 
28058
      public short getThriftFieldId() {
28059
        return _thriftId;
28060
      }
28061
 
28062
      public String getFieldName() {
28063
        return _fieldName;
28064
      }
28065
    }
28066
 
28067
    // isset id assignments
28068
    private static final int __SUCCESS_ISSET_ID = 0;
28069
    private BitSet __isset_bit_vector = new BitSet(1);
28070
 
3430 rajveer 28071
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
758 chandransh 28072
    static {
3430 rajveer 28073
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28074
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28075
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
28076
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28077
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28078
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28079
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(verifyOrder_result.class, metaDataMap);
758 chandransh 28080
    }
28081
 
3061 chandransh 28082
    public verifyOrder_result() {
758 chandransh 28083
    }
28084
 
3061 chandransh 28085
    public verifyOrder_result(
758 chandransh 28086
      boolean success,
28087
      TransactionServiceException ex)
28088
    {
28089
      this();
28090
      this.success = success;
28091
      setSuccessIsSet(true);
28092
      this.ex = ex;
28093
    }
28094
 
28095
    /**
28096
     * Performs a deep copy on <i>other</i>.
28097
     */
3061 chandransh 28098
    public verifyOrder_result(verifyOrder_result other) {
758 chandransh 28099
      __isset_bit_vector.clear();
28100
      __isset_bit_vector.or(other.__isset_bit_vector);
28101
      this.success = other.success;
28102
      if (other.isSetEx()) {
28103
        this.ex = new TransactionServiceException(other.ex);
28104
      }
28105
    }
28106
 
3061 chandransh 28107
    public verifyOrder_result deepCopy() {
28108
      return new verifyOrder_result(this);
758 chandransh 28109
    }
28110
 
3430 rajveer 28111
    @Override
28112
    public void clear() {
28113
      setSuccessIsSet(false);
28114
      this.success = false;
28115
      this.ex = null;
758 chandransh 28116
    }
28117
 
28118
    public boolean isSuccess() {
28119
      return this.success;
28120
    }
28121
 
3430 rajveer 28122
    public void setSuccess(boolean success) {
758 chandransh 28123
      this.success = success;
28124
      setSuccessIsSet(true);
28125
    }
28126
 
28127
    public void unsetSuccess() {
28128
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
28129
    }
28130
 
3430 rajveer 28131
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
758 chandransh 28132
    public boolean isSetSuccess() {
28133
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
28134
    }
28135
 
28136
    public void setSuccessIsSet(boolean value) {
28137
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
28138
    }
28139
 
28140
    public TransactionServiceException getEx() {
28141
      return this.ex;
28142
    }
28143
 
3430 rajveer 28144
    public void setEx(TransactionServiceException ex) {
758 chandransh 28145
      this.ex = ex;
28146
    }
28147
 
28148
    public void unsetEx() {
28149
      this.ex = null;
28150
    }
28151
 
3430 rajveer 28152
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
758 chandransh 28153
    public boolean isSetEx() {
28154
      return this.ex != null;
28155
    }
28156
 
28157
    public void setExIsSet(boolean value) {
28158
      if (!value) {
28159
        this.ex = null;
28160
      }
28161
    }
28162
 
28163
    public void setFieldValue(_Fields field, Object value) {
28164
      switch (field) {
28165
      case SUCCESS:
28166
        if (value == null) {
28167
          unsetSuccess();
28168
        } else {
28169
          setSuccess((Boolean)value);
28170
        }
28171
        break;
28172
 
28173
      case EX:
28174
        if (value == null) {
28175
          unsetEx();
28176
        } else {
28177
          setEx((TransactionServiceException)value);
28178
        }
28179
        break;
28180
 
28181
      }
28182
    }
28183
 
28184
    public Object getFieldValue(_Fields field) {
28185
      switch (field) {
28186
      case SUCCESS:
3430 rajveer 28187
        return Boolean.valueOf(isSuccess());
758 chandransh 28188
 
28189
      case EX:
28190
        return getEx();
28191
 
28192
      }
28193
      throw new IllegalStateException();
28194
    }
28195
 
3430 rajveer 28196
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28197
    public boolean isSet(_Fields field) {
28198
      if (field == null) {
28199
        throw new IllegalArgumentException();
28200
      }
758 chandransh 28201
 
28202
      switch (field) {
28203
      case SUCCESS:
28204
        return isSetSuccess();
28205
      case EX:
28206
        return isSetEx();
28207
      }
28208
      throw new IllegalStateException();
28209
    }
28210
 
28211
    @Override
28212
    public boolean equals(Object that) {
28213
      if (that == null)
28214
        return false;
3061 chandransh 28215
      if (that instanceof verifyOrder_result)
28216
        return this.equals((verifyOrder_result)that);
758 chandransh 28217
      return false;
28218
    }
28219
 
3061 chandransh 28220
    public boolean equals(verifyOrder_result that) {
758 chandransh 28221
      if (that == null)
28222
        return false;
28223
 
28224
      boolean this_present_success = true;
28225
      boolean that_present_success = true;
28226
      if (this_present_success || that_present_success) {
28227
        if (!(this_present_success && that_present_success))
28228
          return false;
28229
        if (this.success != that.success)
28230
          return false;
28231
      }
28232
 
28233
      boolean this_present_ex = true && this.isSetEx();
28234
      boolean that_present_ex = true && that.isSetEx();
28235
      if (this_present_ex || that_present_ex) {
28236
        if (!(this_present_ex && that_present_ex))
28237
          return false;
28238
        if (!this.ex.equals(that.ex))
28239
          return false;
28240
      }
28241
 
28242
      return true;
28243
    }
28244
 
28245
    @Override
28246
    public int hashCode() {
28247
      return 0;
28248
    }
28249
 
3061 chandransh 28250
    public int compareTo(verifyOrder_result other) {
758 chandransh 28251
      if (!getClass().equals(other.getClass())) {
28252
        return getClass().getName().compareTo(other.getClass().getName());
28253
      }
28254
 
28255
      int lastComparison = 0;
3061 chandransh 28256
      verifyOrder_result typedOther = (verifyOrder_result)other;
758 chandransh 28257
 
3430 rajveer 28258
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
758 chandransh 28259
      if (lastComparison != 0) {
28260
        return lastComparison;
28261
      }
3430 rajveer 28262
      if (isSetSuccess()) {
28263
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28264
        if (lastComparison != 0) {
28265
          return lastComparison;
28266
        }
758 chandransh 28267
      }
3430 rajveer 28268
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
758 chandransh 28269
      if (lastComparison != 0) {
28270
        return lastComparison;
28271
      }
3430 rajveer 28272
      if (isSetEx()) {
28273
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
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 0: // SUCCESS
28296
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
28297
              this.success = iprot.readBool();
28298
              setSuccessIsSet(true);
28299
            } else { 
28300
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28301
            }
28302
            break;
28303
          case 1: // EX
28304
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28305
              this.ex = new TransactionServiceException();
28306
              this.ex.read(iprot);
28307
            } else { 
28308
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28309
            }
28310
            break;
28311
          default:
28312
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
758 chandransh 28313
        }
3430 rajveer 28314
        iprot.readFieldEnd();
758 chandransh 28315
      }
28316
      iprot.readStructEnd();
28317
      validate();
28318
    }
28319
 
3430 rajveer 28320
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
758 chandransh 28321
      oprot.writeStructBegin(STRUCT_DESC);
28322
 
28323
      if (this.isSetSuccess()) {
28324
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28325
        oprot.writeBool(this.success);
28326
        oprot.writeFieldEnd();
28327
      } else if (this.isSetEx()) {
28328
        oprot.writeFieldBegin(EX_FIELD_DESC);
28329
        this.ex.write(oprot);
28330
        oprot.writeFieldEnd();
28331
      }
28332
      oprot.writeFieldStop();
28333
      oprot.writeStructEnd();
28334
    }
28335
 
28336
    @Override
28337
    public String toString() {
3061 chandransh 28338
      StringBuilder sb = new StringBuilder("verifyOrder_result(");
758 chandransh 28339
      boolean first = true;
28340
 
28341
      sb.append("success:");
28342
      sb.append(this.success);
28343
      first = false;
28344
      if (!first) sb.append(", ");
28345
      sb.append("ex:");
28346
      if (this.ex == null) {
28347
        sb.append("null");
28348
      } else {
28349
        sb.append(this.ex);
28350
      }
28351
      first = false;
28352
      sb.append(")");
28353
      return sb.toString();
28354
    }
28355
 
3430 rajveer 28356
    public void validate() throws org.apache.thrift.TException {
758 chandransh 28357
      // check for required fields
28358
    }
28359
 
3430 rajveer 28360
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28361
      try {
28362
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28363
      } catch (org.apache.thrift.TException te) {
28364
        throw new java.io.IOException(te);
28365
      }
28366
    }
28367
 
28368
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28369
      try {
28370
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28371
      } catch (org.apache.thrift.TException te) {
28372
        throw new java.io.IOException(te);
28373
      }
28374
    }
28375
 
758 chandransh 28376
  }
28377
 
3430 rajveer 28378
  public static class acceptOrder_args implements org.apache.thrift.TBase<acceptOrder_args, acceptOrder_args._Fields>, java.io.Serializable, Cloneable   {
28379
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrder_args");
1114 chandransh 28380
 
3430 rajveer 28381
    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 28382
 
3430 rajveer 28383
    private long orderId; // required
1114 chandransh 28384
 
28385
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28386
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 28387
      ORDER_ID((short)1, "orderId");
1114 chandransh 28388
 
28389
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28390
 
28391
      static {
28392
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28393
          byName.put(field.getFieldName(), field);
28394
        }
28395
      }
28396
 
28397
      /**
28398
       * Find the _Fields constant that matches fieldId, or null if its not found.
28399
       */
28400
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28401
        switch(fieldId) {
28402
          case 1: // ORDER_ID
28403
            return ORDER_ID;
28404
          default:
28405
            return null;
28406
        }
1114 chandransh 28407
      }
28408
 
28409
      /**
28410
       * Find the _Fields constant that matches fieldId, throwing an exception
28411
       * if it is not found.
28412
       */
28413
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28414
        _Fields fields = findByThriftId(fieldId);
28415
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28416
        return fields;
28417
      }
28418
 
28419
      /**
28420
       * Find the _Fields constant that matches name, or null if its not found.
28421
       */
28422
      public static _Fields findByName(String name) {
28423
        return byName.get(name);
28424
      }
28425
 
28426
      private final short _thriftId;
28427
      private final String _fieldName;
28428
 
28429
      _Fields(short thriftId, String fieldName) {
28430
        _thriftId = thriftId;
28431
        _fieldName = fieldName;
28432
      }
28433
 
28434
      public short getThriftFieldId() {
28435
        return _thriftId;
28436
      }
28437
 
28438
      public String getFieldName() {
28439
        return _fieldName;
28440
      }
28441
    }
28442
 
28443
    // isset id assignments
3061 chandransh 28444
    private static final int __ORDERID_ISSET_ID = 0;
1114 chandransh 28445
    private BitSet __isset_bit_vector = new BitSet(1);
28446
 
3430 rajveer 28447
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1114 chandransh 28448
    static {
3430 rajveer 28449
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28450
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28451
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28452
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28453
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrder_args.class, metaDataMap);
1114 chandransh 28454
    }
28455
 
3061 chandransh 28456
    public acceptOrder_args() {
1114 chandransh 28457
    }
28458
 
3061 chandransh 28459
    public acceptOrder_args(
28460
      long orderId)
1114 chandransh 28461
    {
28462
      this();
3061 chandransh 28463
      this.orderId = orderId;
28464
      setOrderIdIsSet(true);
1114 chandransh 28465
    }
28466
 
28467
    /**
28468
     * Performs a deep copy on <i>other</i>.
28469
     */
3061 chandransh 28470
    public acceptOrder_args(acceptOrder_args other) {
1114 chandransh 28471
      __isset_bit_vector.clear();
28472
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 28473
      this.orderId = other.orderId;
1114 chandransh 28474
    }
28475
 
3061 chandransh 28476
    public acceptOrder_args deepCopy() {
28477
      return new acceptOrder_args(this);
1114 chandransh 28478
    }
28479
 
3430 rajveer 28480
    @Override
28481
    public void clear() {
28482
      setOrderIdIsSet(false);
28483
      this.orderId = 0;
1114 chandransh 28484
    }
28485
 
3061 chandransh 28486
    public long getOrderId() {
28487
      return this.orderId;
1114 chandransh 28488
    }
28489
 
3430 rajveer 28490
    public void setOrderId(long orderId) {
3061 chandransh 28491
      this.orderId = orderId;
28492
      setOrderIdIsSet(true);
1114 chandransh 28493
    }
28494
 
3061 chandransh 28495
    public void unsetOrderId() {
28496
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
1114 chandransh 28497
    }
28498
 
3430 rajveer 28499
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 28500
    public boolean isSetOrderId() {
28501
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
1114 chandransh 28502
    }
28503
 
3061 chandransh 28504
    public void setOrderIdIsSet(boolean value) {
28505
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
1114 chandransh 28506
    }
28507
 
28508
    public void setFieldValue(_Fields field, Object value) {
28509
      switch (field) {
3061 chandransh 28510
      case ORDER_ID:
1114 chandransh 28511
        if (value == null) {
3061 chandransh 28512
          unsetOrderId();
1114 chandransh 28513
        } else {
3061 chandransh 28514
          setOrderId((Long)value);
1114 chandransh 28515
        }
28516
        break;
28517
 
28518
      }
28519
    }
28520
 
28521
    public Object getFieldValue(_Fields field) {
28522
      switch (field) {
3061 chandransh 28523
      case ORDER_ID:
3430 rajveer 28524
        return Long.valueOf(getOrderId());
1114 chandransh 28525
 
28526
      }
28527
      throw new IllegalStateException();
28528
    }
28529
 
3430 rajveer 28530
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28531
    public boolean isSet(_Fields field) {
28532
      if (field == null) {
28533
        throw new IllegalArgumentException();
28534
      }
1114 chandransh 28535
 
28536
      switch (field) {
3061 chandransh 28537
      case ORDER_ID:
28538
        return isSetOrderId();
1114 chandransh 28539
      }
28540
      throw new IllegalStateException();
28541
    }
28542
 
28543
    @Override
28544
    public boolean equals(Object that) {
28545
      if (that == null)
28546
        return false;
3061 chandransh 28547
      if (that instanceof acceptOrder_args)
28548
        return this.equals((acceptOrder_args)that);
1114 chandransh 28549
      return false;
28550
    }
28551
 
3061 chandransh 28552
    public boolean equals(acceptOrder_args that) {
1114 chandransh 28553
      if (that == null)
28554
        return false;
28555
 
3061 chandransh 28556
      boolean this_present_orderId = true;
28557
      boolean that_present_orderId = true;
28558
      if (this_present_orderId || that_present_orderId) {
28559
        if (!(this_present_orderId && that_present_orderId))
1114 chandransh 28560
          return false;
3061 chandransh 28561
        if (this.orderId != that.orderId)
1114 chandransh 28562
          return false;
28563
      }
28564
 
28565
      return true;
28566
    }
28567
 
28568
    @Override
28569
    public int hashCode() {
28570
      return 0;
28571
    }
28572
 
3061 chandransh 28573
    public int compareTo(acceptOrder_args other) {
28574
      if (!getClass().equals(other.getClass())) {
28575
        return getClass().getName().compareTo(other.getClass().getName());
28576
      }
28577
 
28578
      int lastComparison = 0;
28579
      acceptOrder_args typedOther = (acceptOrder_args)other;
28580
 
3430 rajveer 28581
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
3061 chandransh 28582
      if (lastComparison != 0) {
28583
        return lastComparison;
28584
      }
3430 rajveer 28585
      if (isSetOrderId()) {
28586
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
28587
        if (lastComparison != 0) {
28588
          return lastComparison;
28589
        }
3061 chandransh 28590
      }
28591
      return 0;
28592
    }
28593
 
3430 rajveer 28594
    public _Fields fieldForId(int fieldId) {
28595
      return _Fields.findByThriftId(fieldId);
28596
    }
28597
 
28598
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28599
      org.apache.thrift.protocol.TField field;
1114 chandransh 28600
      iprot.readStructBegin();
28601
      while (true)
28602
      {
28603
        field = iprot.readFieldBegin();
3430 rajveer 28604
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1114 chandransh 28605
          break;
28606
        }
3430 rajveer 28607
        switch (field.id) {
28608
          case 1: // ORDER_ID
28609
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28610
              this.orderId = iprot.readI64();
28611
              setOrderIdIsSet(true);
28612
            } else { 
28613
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28614
            }
28615
            break;
28616
          default:
28617
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1114 chandransh 28618
        }
3430 rajveer 28619
        iprot.readFieldEnd();
1114 chandransh 28620
      }
28621
      iprot.readStructEnd();
28622
      validate();
28623
    }
28624
 
3430 rajveer 28625
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1114 chandransh 28626
      validate();
28627
 
28628
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 28629
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
28630
      oprot.writeI64(this.orderId);
1114 chandransh 28631
      oprot.writeFieldEnd();
28632
      oprot.writeFieldStop();
28633
      oprot.writeStructEnd();
28634
    }
28635
 
28636
    @Override
28637
    public String toString() {
3061 chandransh 28638
      StringBuilder sb = new StringBuilder("acceptOrder_args(");
1114 chandransh 28639
      boolean first = true;
28640
 
3061 chandransh 28641
      sb.append("orderId:");
28642
      sb.append(this.orderId);
1114 chandransh 28643
      first = false;
28644
      sb.append(")");
28645
      return sb.toString();
28646
    }
28647
 
3430 rajveer 28648
    public void validate() throws org.apache.thrift.TException {
1114 chandransh 28649
      // check for required fields
28650
    }
28651
 
3430 rajveer 28652
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28653
      try {
28654
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28655
      } catch (org.apache.thrift.TException te) {
28656
        throw new java.io.IOException(te);
28657
      }
28658
    }
28659
 
28660
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28661
      try {
28662
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28663
      } catch (org.apache.thrift.TException te) {
28664
        throw new java.io.IOException(te);
28665
      }
28666
    }
28667
 
1114 chandransh 28668
  }
28669
 
3430 rajveer 28670
  public static class acceptOrder_result implements org.apache.thrift.TBase<acceptOrder_result, acceptOrder_result._Fields>, java.io.Serializable, Cloneable   {
28671
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrder_result");
1114 chandransh 28672
 
3430 rajveer 28673
    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);
28674
    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 28675
 
3430 rajveer 28676
    private boolean success; // required
28677
    private TransactionServiceException ex; // required
1114 chandransh 28678
 
28679
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28680
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1114 chandransh 28681
      SUCCESS((short)0, "success"),
28682
      EX((short)1, "ex");
28683
 
28684
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28685
 
28686
      static {
28687
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28688
          byName.put(field.getFieldName(), field);
28689
        }
28690
      }
28691
 
28692
      /**
28693
       * Find the _Fields constant that matches fieldId, or null if its not found.
28694
       */
28695
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28696
        switch(fieldId) {
28697
          case 0: // SUCCESS
28698
            return SUCCESS;
28699
          case 1: // EX
28700
            return EX;
28701
          default:
28702
            return null;
28703
        }
1114 chandransh 28704
      }
28705
 
28706
      /**
28707
       * Find the _Fields constant that matches fieldId, throwing an exception
28708
       * if it is not found.
28709
       */
28710
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28711
        _Fields fields = findByThriftId(fieldId);
28712
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28713
        return fields;
28714
      }
28715
 
28716
      /**
28717
       * Find the _Fields constant that matches name, or null if its not found.
28718
       */
28719
      public static _Fields findByName(String name) {
28720
        return byName.get(name);
28721
      }
28722
 
28723
      private final short _thriftId;
28724
      private final String _fieldName;
28725
 
28726
      _Fields(short thriftId, String fieldName) {
28727
        _thriftId = thriftId;
28728
        _fieldName = fieldName;
28729
      }
28730
 
28731
      public short getThriftFieldId() {
28732
        return _thriftId;
28733
      }
28734
 
28735
      public String getFieldName() {
28736
        return _fieldName;
28737
      }
28738
    }
28739
 
28740
    // isset id assignments
3061 chandransh 28741
    private static final int __SUCCESS_ISSET_ID = 0;
28742
    private BitSet __isset_bit_vector = new BitSet(1);
1114 chandransh 28743
 
3430 rajveer 28744
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1114 chandransh 28745
    static {
3430 rajveer 28746
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28747
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28748
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
28749
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28750
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28751
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28752
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrder_result.class, metaDataMap);
1114 chandransh 28753
    }
28754
 
3061 chandransh 28755
    public acceptOrder_result() {
1114 chandransh 28756
    }
28757
 
3061 chandransh 28758
    public acceptOrder_result(
28759
      boolean success,
1114 chandransh 28760
      TransactionServiceException ex)
28761
    {
28762
      this();
28763
      this.success = success;
3061 chandransh 28764
      setSuccessIsSet(true);
1114 chandransh 28765
      this.ex = ex;
28766
    }
28767
 
28768
    /**
28769
     * Performs a deep copy on <i>other</i>.
28770
     */
3061 chandransh 28771
    public acceptOrder_result(acceptOrder_result other) {
28772
      __isset_bit_vector.clear();
28773
      __isset_bit_vector.or(other.__isset_bit_vector);
28774
      this.success = other.success;
1114 chandransh 28775
      if (other.isSetEx()) {
28776
        this.ex = new TransactionServiceException(other.ex);
28777
      }
28778
    }
28779
 
3061 chandransh 28780
    public acceptOrder_result deepCopy() {
28781
      return new acceptOrder_result(this);
1114 chandransh 28782
    }
28783
 
3430 rajveer 28784
    @Override
28785
    public void clear() {
28786
      setSuccessIsSet(false);
28787
      this.success = false;
28788
      this.ex = null;
1114 chandransh 28789
    }
28790
 
3061 chandransh 28791
    public boolean isSuccess() {
1114 chandransh 28792
      return this.success;
28793
    }
28794
 
3430 rajveer 28795
    public void setSuccess(boolean success) {
1114 chandransh 28796
      this.success = success;
3061 chandransh 28797
      setSuccessIsSet(true);
1114 chandransh 28798
    }
28799
 
28800
    public void unsetSuccess() {
3061 chandransh 28801
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
1114 chandransh 28802
    }
28803
 
3430 rajveer 28804
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1114 chandransh 28805
    public boolean isSetSuccess() {
3061 chandransh 28806
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
1114 chandransh 28807
    }
28808
 
28809
    public void setSuccessIsSet(boolean value) {
3061 chandransh 28810
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
1114 chandransh 28811
    }
28812
 
28813
    public TransactionServiceException getEx() {
28814
      return this.ex;
28815
    }
28816
 
3430 rajveer 28817
    public void setEx(TransactionServiceException ex) {
1114 chandransh 28818
      this.ex = ex;
28819
    }
28820
 
28821
    public void unsetEx() {
28822
      this.ex = null;
28823
    }
28824
 
3430 rajveer 28825
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1114 chandransh 28826
    public boolean isSetEx() {
28827
      return this.ex != null;
28828
    }
28829
 
28830
    public void setExIsSet(boolean value) {
28831
      if (!value) {
28832
        this.ex = null;
28833
      }
28834
    }
28835
 
28836
    public void setFieldValue(_Fields field, Object value) {
28837
      switch (field) {
28838
      case SUCCESS:
28839
        if (value == null) {
28840
          unsetSuccess();
28841
        } else {
3061 chandransh 28842
          setSuccess((Boolean)value);
1114 chandransh 28843
        }
28844
        break;
28845
 
28846
      case EX:
28847
        if (value == null) {
28848
          unsetEx();
28849
        } else {
28850
          setEx((TransactionServiceException)value);
28851
        }
28852
        break;
28853
 
28854
      }
28855
    }
28856
 
28857
    public Object getFieldValue(_Fields field) {
28858
      switch (field) {
28859
      case SUCCESS:
3430 rajveer 28860
        return Boolean.valueOf(isSuccess());
1114 chandransh 28861
 
28862
      case EX:
28863
        return getEx();
28864
 
28865
      }
28866
      throw new IllegalStateException();
28867
    }
28868
 
3430 rajveer 28869
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28870
    public boolean isSet(_Fields field) {
28871
      if (field == null) {
28872
        throw new IllegalArgumentException();
28873
      }
1114 chandransh 28874
 
28875
      switch (field) {
28876
      case SUCCESS:
28877
        return isSetSuccess();
28878
      case EX:
28879
        return isSetEx();
28880
      }
28881
      throw new IllegalStateException();
28882
    }
28883
 
28884
    @Override
28885
    public boolean equals(Object that) {
28886
      if (that == null)
28887
        return false;
3061 chandransh 28888
      if (that instanceof acceptOrder_result)
28889
        return this.equals((acceptOrder_result)that);
1114 chandransh 28890
      return false;
28891
    }
28892
 
3061 chandransh 28893
    public boolean equals(acceptOrder_result that) {
1114 chandransh 28894
      if (that == null)
28895
        return false;
28896
 
3061 chandransh 28897
      boolean this_present_success = true;
28898
      boolean that_present_success = true;
1114 chandransh 28899
      if (this_present_success || that_present_success) {
28900
        if (!(this_present_success && that_present_success))
28901
          return false;
3061 chandransh 28902
        if (this.success != that.success)
1114 chandransh 28903
          return false;
28904
      }
28905
 
28906
      boolean this_present_ex = true && this.isSetEx();
28907
      boolean that_present_ex = true && that.isSetEx();
28908
      if (this_present_ex || that_present_ex) {
28909
        if (!(this_present_ex && that_present_ex))
28910
          return false;
28911
        if (!this.ex.equals(that.ex))
28912
          return false;
28913
      }
28914
 
28915
      return true;
28916
    }
28917
 
28918
    @Override
28919
    public int hashCode() {
28920
      return 0;
28921
    }
28922
 
3061 chandransh 28923
    public int compareTo(acceptOrder_result other) {
1114 chandransh 28924
      if (!getClass().equals(other.getClass())) {
28925
        return getClass().getName().compareTo(other.getClass().getName());
28926
      }
28927
 
28928
      int lastComparison = 0;
3061 chandransh 28929
      acceptOrder_result typedOther = (acceptOrder_result)other;
1114 chandransh 28930
 
3430 rajveer 28931
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1114 chandransh 28932
      if (lastComparison != 0) {
28933
        return lastComparison;
28934
      }
3430 rajveer 28935
      if (isSetSuccess()) {
28936
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28937
        if (lastComparison != 0) {
28938
          return lastComparison;
28939
        }
1114 chandransh 28940
      }
3430 rajveer 28941
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1114 chandransh 28942
      if (lastComparison != 0) {
28943
        return lastComparison;
28944
      }
3430 rajveer 28945
      if (isSetEx()) {
28946
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
28947
        if (lastComparison != 0) {
28948
          return lastComparison;
28949
        }
1114 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 0: // SUCCESS
28969
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
28970
              this.success = iprot.readBool();
28971
              setSuccessIsSet(true);
28972
            } else { 
28973
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28974
            }
28975
            break;
28976
          case 1: // EX
28977
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28978
              this.ex = new TransactionServiceException();
28979
              this.ex.read(iprot);
28980
            } else { 
28981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28982
            }
28983
            break;
28984
          default:
28985
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1114 chandransh 28986
        }
3430 rajveer 28987
        iprot.readFieldEnd();
1114 chandransh 28988
      }
28989
      iprot.readStructEnd();
28990
      validate();
28991
    }
28992
 
3430 rajveer 28993
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1114 chandransh 28994
      oprot.writeStructBegin(STRUCT_DESC);
28995
 
28996
      if (this.isSetSuccess()) {
28997
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 28998
        oprot.writeBool(this.success);
1114 chandransh 28999
        oprot.writeFieldEnd();
29000
      } else if (this.isSetEx()) {
29001
        oprot.writeFieldBegin(EX_FIELD_DESC);
29002
        this.ex.write(oprot);
29003
        oprot.writeFieldEnd();
29004
      }
29005
      oprot.writeFieldStop();
29006
      oprot.writeStructEnd();
29007
    }
29008
 
29009
    @Override
29010
    public String toString() {
3061 chandransh 29011
      StringBuilder sb = new StringBuilder("acceptOrder_result(");
1114 chandransh 29012
      boolean first = true;
29013
 
29014
      sb.append("success:");
3061 chandransh 29015
      sb.append(this.success);
1114 chandransh 29016
      first = false;
29017
      if (!first) sb.append(", ");
29018
      sb.append("ex:");
29019
      if (this.ex == null) {
29020
        sb.append("null");
29021
      } else {
29022
        sb.append(this.ex);
29023
      }
29024
      first = false;
29025
      sb.append(")");
29026
      return sb.toString();
29027
    }
29028
 
3430 rajveer 29029
    public void validate() throws org.apache.thrift.TException {
1114 chandransh 29030
      // check for required fields
29031
    }
29032
 
3430 rajveer 29033
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29034
      try {
29035
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29036
      } catch (org.apache.thrift.TException te) {
29037
        throw new java.io.IOException(te);
29038
      }
29039
    }
29040
 
29041
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29042
      try {
29043
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29044
      } catch (org.apache.thrift.TException te) {
29045
        throw new java.io.IOException(te);
29046
      }
29047
    }
29048
 
1114 chandransh 29049
  }
29050
 
3430 rajveer 29051
  public static class billOrder_args implements org.apache.thrift.TBase<billOrder_args, billOrder_args._Fields>, java.io.Serializable, Cloneable   {
29052
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("billOrder_args");
1133 chandransh 29053
 
3430 rajveer 29054
    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);
1133 chandransh 29055
 
3430 rajveer 29056
    private long orderId; // required
1133 chandransh 29057
 
29058
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29059
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 29060
      ORDER_ID((short)1, "orderId");
1133 chandransh 29061
 
29062
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29063
 
29064
      static {
29065
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29066
          byName.put(field.getFieldName(), field);
29067
        }
29068
      }
29069
 
29070
      /**
29071
       * Find the _Fields constant that matches fieldId, or null if its not found.
29072
       */
29073
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29074
        switch(fieldId) {
29075
          case 1: // ORDER_ID
29076
            return ORDER_ID;
29077
          default:
29078
            return null;
29079
        }
1133 chandransh 29080
      }
29081
 
29082
      /**
29083
       * Find the _Fields constant that matches fieldId, throwing an exception
29084
       * if it is not found.
29085
       */
29086
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29087
        _Fields fields = findByThriftId(fieldId);
29088
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29089
        return fields;
29090
      }
29091
 
29092
      /**
29093
       * Find the _Fields constant that matches name, or null if its not found.
29094
       */
29095
      public static _Fields findByName(String name) {
29096
        return byName.get(name);
29097
      }
29098
 
29099
      private final short _thriftId;
29100
      private final String _fieldName;
29101
 
29102
      _Fields(short thriftId, String fieldName) {
29103
        _thriftId = thriftId;
29104
        _fieldName = fieldName;
29105
      }
29106
 
29107
      public short getThriftFieldId() {
29108
        return _thriftId;
29109
      }
29110
 
29111
      public String getFieldName() {
29112
        return _fieldName;
29113
      }
29114
    }
29115
 
29116
    // isset id assignments
3061 chandransh 29117
    private static final int __ORDERID_ISSET_ID = 0;
1133 chandransh 29118
    private BitSet __isset_bit_vector = new BitSet(1);
29119
 
3430 rajveer 29120
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1133 chandransh 29121
    static {
3430 rajveer 29122
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29123
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29124
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29125
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29126
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(billOrder_args.class, metaDataMap);
1133 chandransh 29127
    }
29128
 
3061 chandransh 29129
    public billOrder_args() {
1133 chandransh 29130
    }
29131
 
3061 chandransh 29132
    public billOrder_args(
29133
      long orderId)
1133 chandransh 29134
    {
29135
      this();
3061 chandransh 29136
      this.orderId = orderId;
29137
      setOrderIdIsSet(true);
1133 chandransh 29138
    }
29139
 
29140
    /**
29141
     * Performs a deep copy on <i>other</i>.
29142
     */
3061 chandransh 29143
    public billOrder_args(billOrder_args other) {
1133 chandransh 29144
      __isset_bit_vector.clear();
29145
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 29146
      this.orderId = other.orderId;
1133 chandransh 29147
    }
29148
 
3061 chandransh 29149
    public billOrder_args deepCopy() {
29150
      return new billOrder_args(this);
1133 chandransh 29151
    }
29152
 
3430 rajveer 29153
    @Override
29154
    public void clear() {
29155
      setOrderIdIsSet(false);
29156
      this.orderId = 0;
1133 chandransh 29157
    }
29158
 
3061 chandransh 29159
    public long getOrderId() {
29160
      return this.orderId;
1133 chandransh 29161
    }
29162
 
3430 rajveer 29163
    public void setOrderId(long orderId) {
3061 chandransh 29164
      this.orderId = orderId;
29165
      setOrderIdIsSet(true);
1133 chandransh 29166
    }
29167
 
3061 chandransh 29168
    public void unsetOrderId() {
29169
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
1133 chandransh 29170
    }
29171
 
3430 rajveer 29172
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 29173
    public boolean isSetOrderId() {
29174
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
1133 chandransh 29175
    }
29176
 
3061 chandransh 29177
    public void setOrderIdIsSet(boolean value) {
29178
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
1133 chandransh 29179
    }
29180
 
29181
    public void setFieldValue(_Fields field, Object value) {
29182
      switch (field) {
3061 chandransh 29183
      case ORDER_ID:
1133 chandransh 29184
        if (value == null) {
3061 chandransh 29185
          unsetOrderId();
1133 chandransh 29186
        } else {
3061 chandransh 29187
          setOrderId((Long)value);
1133 chandransh 29188
        }
29189
        break;
29190
 
29191
      }
29192
    }
29193
 
29194
    public Object getFieldValue(_Fields field) {
29195
      switch (field) {
3061 chandransh 29196
      case ORDER_ID:
3430 rajveer 29197
        return Long.valueOf(getOrderId());
1133 chandransh 29198
 
29199
      }
29200
      throw new IllegalStateException();
29201
    }
29202
 
3430 rajveer 29203
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29204
    public boolean isSet(_Fields field) {
29205
      if (field == null) {
29206
        throw new IllegalArgumentException();
29207
      }
1133 chandransh 29208
 
29209
      switch (field) {
3061 chandransh 29210
      case ORDER_ID:
29211
        return isSetOrderId();
1133 chandransh 29212
      }
29213
      throw new IllegalStateException();
29214
    }
29215
 
29216
    @Override
29217
    public boolean equals(Object that) {
29218
      if (that == null)
29219
        return false;
3061 chandransh 29220
      if (that instanceof billOrder_args)
29221
        return this.equals((billOrder_args)that);
1133 chandransh 29222
      return false;
29223
    }
29224
 
3061 chandransh 29225
    public boolean equals(billOrder_args that) {
1133 chandransh 29226
      if (that == null)
29227
        return false;
29228
 
3061 chandransh 29229
      boolean this_present_orderId = true;
29230
      boolean that_present_orderId = true;
29231
      if (this_present_orderId || that_present_orderId) {
29232
        if (!(this_present_orderId && that_present_orderId))
1133 chandransh 29233
          return false;
3061 chandransh 29234
        if (this.orderId != that.orderId)
1133 chandransh 29235
          return false;
29236
      }
29237
 
29238
      return true;
29239
    }
29240
 
29241
    @Override
29242
    public int hashCode() {
29243
      return 0;
29244
    }
29245
 
3061 chandransh 29246
    public int compareTo(billOrder_args other) {
29247
      if (!getClass().equals(other.getClass())) {
29248
        return getClass().getName().compareTo(other.getClass().getName());
29249
      }
29250
 
29251
      int lastComparison = 0;
29252
      billOrder_args typedOther = (billOrder_args)other;
29253
 
3430 rajveer 29254
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
3061 chandransh 29255
      if (lastComparison != 0) {
29256
        return lastComparison;
29257
      }
3430 rajveer 29258
      if (isSetOrderId()) {
29259
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
29260
        if (lastComparison != 0) {
29261
          return lastComparison;
29262
        }
3061 chandransh 29263
      }
29264
      return 0;
29265
    }
29266
 
3430 rajveer 29267
    public _Fields fieldForId(int fieldId) {
29268
      return _Fields.findByThriftId(fieldId);
29269
    }
29270
 
29271
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29272
      org.apache.thrift.protocol.TField field;
1133 chandransh 29273
      iprot.readStructBegin();
29274
      while (true)
29275
      {
29276
        field = iprot.readFieldBegin();
3430 rajveer 29277
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1133 chandransh 29278
          break;
29279
        }
3430 rajveer 29280
        switch (field.id) {
29281
          case 1: // ORDER_ID
29282
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29283
              this.orderId = iprot.readI64();
29284
              setOrderIdIsSet(true);
29285
            } else { 
29286
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29287
            }
29288
            break;
29289
          default:
29290
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1133 chandransh 29291
        }
3430 rajveer 29292
        iprot.readFieldEnd();
1133 chandransh 29293
      }
29294
      iprot.readStructEnd();
29295
      validate();
29296
    }
29297
 
3430 rajveer 29298
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1133 chandransh 29299
      validate();
29300
 
29301
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 29302
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
29303
      oprot.writeI64(this.orderId);
1133 chandransh 29304
      oprot.writeFieldEnd();
29305
      oprot.writeFieldStop();
29306
      oprot.writeStructEnd();
29307
    }
29308
 
29309
    @Override
29310
    public String toString() {
3061 chandransh 29311
      StringBuilder sb = new StringBuilder("billOrder_args(");
1133 chandransh 29312
      boolean first = true;
29313
 
3061 chandransh 29314
      sb.append("orderId:");
29315
      sb.append(this.orderId);
1133 chandransh 29316
      first = false;
29317
      sb.append(")");
29318
      return sb.toString();
29319
    }
29320
 
3430 rajveer 29321
    public void validate() throws org.apache.thrift.TException {
1133 chandransh 29322
      // check for required fields
29323
    }
29324
 
3430 rajveer 29325
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29326
      try {
29327
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29328
      } catch (org.apache.thrift.TException te) {
29329
        throw new java.io.IOException(te);
29330
      }
29331
    }
29332
 
29333
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29334
      try {
29335
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29336
        __isset_bit_vector = new BitSet(1);
29337
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29338
      } catch (org.apache.thrift.TException te) {
29339
        throw new java.io.IOException(te);
29340
      }
29341
    }
29342
 
1133 chandransh 29343
  }
29344
 
3430 rajveer 29345
  public static class billOrder_result implements org.apache.thrift.TBase<billOrder_result, billOrder_result._Fields>, java.io.Serializable, Cloneable   {
29346
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("billOrder_result");
1133 chandransh 29347
 
3430 rajveer 29348
    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);
29349
    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);
1133 chandransh 29350
 
3430 rajveer 29351
    private boolean success; // required
29352
    private TransactionServiceException ex; // required
1133 chandransh 29353
 
29354
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29355
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 29356
      SUCCESS((short)0, "success"),
1133 chandransh 29357
      EX((short)1, "ex");
29358
 
29359
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29360
 
29361
      static {
29362
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29363
          byName.put(field.getFieldName(), field);
29364
        }
29365
      }
29366
 
29367
      /**
29368
       * Find the _Fields constant that matches fieldId, or null if its not found.
29369
       */
29370
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29371
        switch(fieldId) {
29372
          case 0: // SUCCESS
29373
            return SUCCESS;
29374
          case 1: // EX
29375
            return EX;
29376
          default:
29377
            return null;
29378
        }
1133 chandransh 29379
      }
29380
 
29381
      /**
29382
       * Find the _Fields constant that matches fieldId, throwing an exception
29383
       * if it is not found.
29384
       */
29385
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29386
        _Fields fields = findByThriftId(fieldId);
29387
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29388
        return fields;
29389
      }
29390
 
29391
      /**
29392
       * Find the _Fields constant that matches name, or null if its not found.
29393
       */
29394
      public static _Fields findByName(String name) {
29395
        return byName.get(name);
29396
      }
29397
 
29398
      private final short _thriftId;
29399
      private final String _fieldName;
29400
 
29401
      _Fields(short thriftId, String fieldName) {
29402
        _thriftId = thriftId;
29403
        _fieldName = fieldName;
29404
      }
29405
 
29406
      public short getThriftFieldId() {
29407
        return _thriftId;
29408
      }
29409
 
29410
      public String getFieldName() {
29411
        return _fieldName;
29412
      }
29413
    }
29414
 
29415
    // isset id assignments
3061 chandransh 29416
    private static final int __SUCCESS_ISSET_ID = 0;
29417
    private BitSet __isset_bit_vector = new BitSet(1);
1133 chandransh 29418
 
3430 rajveer 29419
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1133 chandransh 29420
    static {
3430 rajveer 29421
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29422
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29423
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
29424
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29425
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29426
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29427
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(billOrder_result.class, metaDataMap);
1133 chandransh 29428
    }
29429
 
3061 chandransh 29430
    public billOrder_result() {
1133 chandransh 29431
    }
29432
 
3061 chandransh 29433
    public billOrder_result(
29434
      boolean success,
1133 chandransh 29435
      TransactionServiceException ex)
29436
    {
29437
      this();
3061 chandransh 29438
      this.success = success;
29439
      setSuccessIsSet(true);
1133 chandransh 29440
      this.ex = ex;
29441
    }
29442
 
29443
    /**
29444
     * Performs a deep copy on <i>other</i>.
29445
     */
3061 chandransh 29446
    public billOrder_result(billOrder_result other) {
29447
      __isset_bit_vector.clear();
29448
      __isset_bit_vector.or(other.__isset_bit_vector);
29449
      this.success = other.success;
1133 chandransh 29450
      if (other.isSetEx()) {
29451
        this.ex = new TransactionServiceException(other.ex);
29452
      }
29453
    }
29454
 
3061 chandransh 29455
    public billOrder_result deepCopy() {
29456
      return new billOrder_result(this);
1133 chandransh 29457
    }
29458
 
3430 rajveer 29459
    @Override
29460
    public void clear() {
29461
      setSuccessIsSet(false);
29462
      this.success = false;
29463
      this.ex = null;
1133 chandransh 29464
    }
29465
 
3061 chandransh 29466
    public boolean isSuccess() {
29467
      return this.success;
29468
    }
29469
 
3430 rajveer 29470
    public void setSuccess(boolean success) {
3061 chandransh 29471
      this.success = success;
29472
      setSuccessIsSet(true);
29473
    }
29474
 
29475
    public void unsetSuccess() {
29476
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
29477
    }
29478
 
3430 rajveer 29479
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 29480
    public boolean isSetSuccess() {
29481
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
29482
    }
29483
 
29484
    public void setSuccessIsSet(boolean value) {
29485
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
29486
    }
29487
 
1133 chandransh 29488
    public TransactionServiceException getEx() {
29489
      return this.ex;
29490
    }
29491
 
3430 rajveer 29492
    public void setEx(TransactionServiceException ex) {
1133 chandransh 29493
      this.ex = ex;
29494
    }
29495
 
29496
    public void unsetEx() {
29497
      this.ex = null;
29498
    }
29499
 
3430 rajveer 29500
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1133 chandransh 29501
    public boolean isSetEx() {
29502
      return this.ex != null;
29503
    }
29504
 
29505
    public void setExIsSet(boolean value) {
29506
      if (!value) {
29507
        this.ex = null;
29508
      }
29509
    }
29510
 
29511
    public void setFieldValue(_Fields field, Object value) {
29512
      switch (field) {
3061 chandransh 29513
      case SUCCESS:
29514
        if (value == null) {
29515
          unsetSuccess();
29516
        } else {
29517
          setSuccess((Boolean)value);
29518
        }
29519
        break;
29520
 
1133 chandransh 29521
      case EX:
29522
        if (value == null) {
29523
          unsetEx();
29524
        } else {
29525
          setEx((TransactionServiceException)value);
29526
        }
29527
        break;
29528
 
29529
      }
29530
    }
29531
 
29532
    public Object getFieldValue(_Fields field) {
29533
      switch (field) {
3061 chandransh 29534
      case SUCCESS:
3430 rajveer 29535
        return Boolean.valueOf(isSuccess());
3061 chandransh 29536
 
1133 chandransh 29537
      case EX:
29538
        return getEx();
29539
 
29540
      }
29541
      throw new IllegalStateException();
29542
    }
29543
 
3430 rajveer 29544
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29545
    public boolean isSet(_Fields field) {
29546
      if (field == null) {
29547
        throw new IllegalArgumentException();
29548
      }
1133 chandransh 29549
 
29550
      switch (field) {
3061 chandransh 29551
      case SUCCESS:
29552
        return isSetSuccess();
1133 chandransh 29553
      case EX:
29554
        return isSetEx();
29555
      }
29556
      throw new IllegalStateException();
29557
    }
29558
 
29559
    @Override
29560
    public boolean equals(Object that) {
29561
      if (that == null)
29562
        return false;
3061 chandransh 29563
      if (that instanceof billOrder_result)
29564
        return this.equals((billOrder_result)that);
1133 chandransh 29565
      return false;
29566
    }
29567
 
3061 chandransh 29568
    public boolean equals(billOrder_result that) {
1133 chandransh 29569
      if (that == null)
29570
        return false;
29571
 
3061 chandransh 29572
      boolean this_present_success = true;
29573
      boolean that_present_success = true;
29574
      if (this_present_success || that_present_success) {
29575
        if (!(this_present_success && that_present_success))
29576
          return false;
29577
        if (this.success != that.success)
29578
          return false;
29579
      }
29580
 
1133 chandransh 29581
      boolean this_present_ex = true && this.isSetEx();
29582
      boolean that_present_ex = true && that.isSetEx();
29583
      if (this_present_ex || that_present_ex) {
29584
        if (!(this_present_ex && that_present_ex))
29585
          return false;
29586
        if (!this.ex.equals(that.ex))
29587
          return false;
29588
      }
29589
 
29590
      return true;
29591
    }
29592
 
29593
    @Override
29594
    public int hashCode() {
29595
      return 0;
29596
    }
29597
 
3061 chandransh 29598
    public int compareTo(billOrder_result other) {
1133 chandransh 29599
      if (!getClass().equals(other.getClass())) {
29600
        return getClass().getName().compareTo(other.getClass().getName());
29601
      }
29602
 
29603
      int lastComparison = 0;
3061 chandransh 29604
      billOrder_result typedOther = (billOrder_result)other;
1133 chandransh 29605
 
3430 rajveer 29606
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3061 chandransh 29607
      if (lastComparison != 0) {
29608
        return lastComparison;
29609
      }
3430 rajveer 29610
      if (isSetSuccess()) {
29611
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29612
        if (lastComparison != 0) {
29613
          return lastComparison;
29614
        }
3061 chandransh 29615
      }
3430 rajveer 29616
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1133 chandransh 29617
      if (lastComparison != 0) {
29618
        return lastComparison;
29619
      }
3430 rajveer 29620
      if (isSetEx()) {
29621
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
29622
        if (lastComparison != 0) {
29623
          return lastComparison;
29624
        }
1133 chandransh 29625
      }
29626
      return 0;
29627
    }
29628
 
3430 rajveer 29629
    public _Fields fieldForId(int fieldId) {
29630
      return _Fields.findByThriftId(fieldId);
29631
    }
29632
 
29633
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29634
      org.apache.thrift.protocol.TField field;
1133 chandransh 29635
      iprot.readStructBegin();
29636
      while (true)
29637
      {
29638
        field = iprot.readFieldBegin();
3430 rajveer 29639
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1133 chandransh 29640
          break;
29641
        }
3430 rajveer 29642
        switch (field.id) {
29643
          case 0: // SUCCESS
29644
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
29645
              this.success = iprot.readBool();
29646
              setSuccessIsSet(true);
29647
            } else { 
29648
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29649
            }
29650
            break;
29651
          case 1: // EX
29652
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29653
              this.ex = new TransactionServiceException();
29654
              this.ex.read(iprot);
29655
            } else { 
29656
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29657
            }
29658
            break;
29659
          default:
29660
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1133 chandransh 29661
        }
3430 rajveer 29662
        iprot.readFieldEnd();
1133 chandransh 29663
      }
29664
      iprot.readStructEnd();
29665
      validate();
29666
    }
29667
 
3430 rajveer 29668
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1133 chandransh 29669
      oprot.writeStructBegin(STRUCT_DESC);
29670
 
3061 chandransh 29671
      if (this.isSetSuccess()) {
29672
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29673
        oprot.writeBool(this.success);
29674
        oprot.writeFieldEnd();
29675
      } else if (this.isSetEx()) {
1133 chandransh 29676
        oprot.writeFieldBegin(EX_FIELD_DESC);
29677
        this.ex.write(oprot);
29678
        oprot.writeFieldEnd();
29679
      }
29680
      oprot.writeFieldStop();
29681
      oprot.writeStructEnd();
29682
    }
29683
 
29684
    @Override
29685
    public String toString() {
3061 chandransh 29686
      StringBuilder sb = new StringBuilder("billOrder_result(");
1133 chandransh 29687
      boolean first = true;
29688
 
3061 chandransh 29689
      sb.append("success:");
29690
      sb.append(this.success);
29691
      first = false;
29692
      if (!first) sb.append(", ");
1133 chandransh 29693
      sb.append("ex:");
29694
      if (this.ex == null) {
29695
        sb.append("null");
29696
      } else {
29697
        sb.append(this.ex);
29698
      }
29699
      first = false;
29700
      sb.append(")");
29701
      return sb.toString();
29702
    }
29703
 
3430 rajveer 29704
    public void validate() throws org.apache.thrift.TException {
1133 chandransh 29705
      // check for required fields
29706
    }
29707
 
3430 rajveer 29708
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29709
      try {
29710
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29711
      } catch (org.apache.thrift.TException te) {
29712
        throw new java.io.IOException(te);
29713
      }
29714
    }
29715
 
29716
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29717
      try {
29718
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29719
      } catch (org.apache.thrift.TException te) {
29720
        throw new java.io.IOException(te);
29721
      }
29722
    }
29723
 
1133 chandransh 29724
  }
29725
 
3430 rajveer 29726
  public static class addBillingDetails_args implements org.apache.thrift.TBase<addBillingDetails_args, addBillingDetails_args._Fields>, java.io.Serializable, Cloneable   {
29727
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_args");
1133 chandransh 29728
 
3430 rajveer 29729
    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);
29730
    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);
29731
    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)3);
1133 chandransh 29732
 
3430 rajveer 29733
    private long orderId; // required
29734
    private String invoice_number; // required
29735
    private String billed_by; // required
1133 chandransh 29736
 
29737
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29738
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 29739
      ORDER_ID((short)1, "orderId"),
29740
      INVOICE_NUMBER((short)2, "invoice_number"),
29741
      BILLED_BY((short)3, "billed_by");
1133 chandransh 29742
 
29743
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29744
 
29745
      static {
29746
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29747
          byName.put(field.getFieldName(), field);
29748
        }
29749
      }
29750
 
29751
      /**
29752
       * Find the _Fields constant that matches fieldId, or null if its not found.
29753
       */
29754
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29755
        switch(fieldId) {
29756
          case 1: // ORDER_ID
29757
            return ORDER_ID;
29758
          case 2: // INVOICE_NUMBER
29759
            return INVOICE_NUMBER;
29760
          case 3: // BILLED_BY
29761
            return BILLED_BY;
29762
          default:
29763
            return null;
29764
        }
1133 chandransh 29765
      }
29766
 
29767
      /**
29768
       * Find the _Fields constant that matches fieldId, throwing an exception
29769
       * if it is not found.
29770
       */
29771
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29772
        _Fields fields = findByThriftId(fieldId);
29773
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29774
        return fields;
29775
      }
29776
 
29777
      /**
29778
       * Find the _Fields constant that matches name, or null if its not found.
29779
       */
29780
      public static _Fields findByName(String name) {
29781
        return byName.get(name);
29782
      }
29783
 
29784
      private final short _thriftId;
29785
      private final String _fieldName;
29786
 
29787
      _Fields(short thriftId, String fieldName) {
29788
        _thriftId = thriftId;
29789
        _fieldName = fieldName;
29790
      }
29791
 
29792
      public short getThriftFieldId() {
29793
        return _thriftId;
29794
      }
29795
 
29796
      public String getFieldName() {
29797
        return _fieldName;
29798
      }
29799
    }
29800
 
29801
    // isset id assignments
3061 chandransh 29802
    private static final int __ORDERID_ISSET_ID = 0;
1133 chandransh 29803
    private BitSet __isset_bit_vector = new BitSet(1);
29804
 
3430 rajveer 29805
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1133 chandransh 29806
    static {
3430 rajveer 29807
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29808
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29809
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29810
      tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoice_number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29811
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
29812
      tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billed_by", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29813
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
29814
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29815
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_args.class, metaDataMap);
1133 chandransh 29816
    }
29817
 
3061 chandransh 29818
    public addBillingDetails_args() {
1133 chandransh 29819
    }
29820
 
3061 chandransh 29821
    public addBillingDetails_args(
29822
      long orderId,
29823
      String invoice_number,
29824
      String billed_by)
1133 chandransh 29825
    {
29826
      this();
3061 chandransh 29827
      this.orderId = orderId;
29828
      setOrderIdIsSet(true);
29829
      this.invoice_number = invoice_number;
29830
      this.billed_by = billed_by;
1133 chandransh 29831
    }
29832
 
29833
    /**
29834
     * Performs a deep copy on <i>other</i>.
29835
     */
3061 chandransh 29836
    public addBillingDetails_args(addBillingDetails_args other) {
1133 chandransh 29837
      __isset_bit_vector.clear();
29838
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 29839
      this.orderId = other.orderId;
29840
      if (other.isSetInvoice_number()) {
29841
        this.invoice_number = other.invoice_number;
1133 chandransh 29842
      }
3061 chandransh 29843
      if (other.isSetBilled_by()) {
29844
        this.billed_by = other.billed_by;
29845
      }
1133 chandransh 29846
    }
29847
 
3061 chandransh 29848
    public addBillingDetails_args deepCopy() {
29849
      return new addBillingDetails_args(this);
1133 chandransh 29850
    }
29851
 
3430 rajveer 29852
    @Override
29853
    public void clear() {
29854
      setOrderIdIsSet(false);
29855
      this.orderId = 0;
29856
      this.invoice_number = null;
29857
      this.billed_by = null;
1133 chandransh 29858
    }
29859
 
3061 chandransh 29860
    public long getOrderId() {
29861
      return this.orderId;
1133 chandransh 29862
    }
29863
 
3430 rajveer 29864
    public void setOrderId(long orderId) {
3061 chandransh 29865
      this.orderId = orderId;
29866
      setOrderIdIsSet(true);
1133 chandransh 29867
    }
29868
 
3061 chandransh 29869
    public void unsetOrderId() {
29870
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
1133 chandransh 29871
    }
29872
 
3430 rajveer 29873
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 29874
    public boolean isSetOrderId() {
29875
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
1133 chandransh 29876
    }
29877
 
3061 chandransh 29878
    public void setOrderIdIsSet(boolean value) {
29879
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
1133 chandransh 29880
    }
29881
 
3061 chandransh 29882
    public String getInvoice_number() {
29883
      return this.invoice_number;
1133 chandransh 29884
    }
29885
 
3430 rajveer 29886
    public void setInvoice_number(String invoice_number) {
3061 chandransh 29887
      this.invoice_number = invoice_number;
29888
    }
29889
 
29890
    public void unsetInvoice_number() {
29891
      this.invoice_number = null;
29892
    }
29893
 
3430 rajveer 29894
    /** Returns true if field invoice_number is set (has been assigned a value) and false otherwise */
3061 chandransh 29895
    public boolean isSetInvoice_number() {
29896
      return this.invoice_number != null;
29897
    }
29898
 
29899
    public void setInvoice_numberIsSet(boolean value) {
29900
      if (!value) {
29901
        this.invoice_number = null;
1133 chandransh 29902
      }
29903
    }
29904
 
3061 chandransh 29905
    public String getBilled_by() {
29906
      return this.billed_by;
1133 chandransh 29907
    }
29908
 
3430 rajveer 29909
    public void setBilled_by(String billed_by) {
3061 chandransh 29910
      this.billed_by = billed_by;
1133 chandransh 29911
    }
29912
 
3061 chandransh 29913
    public void unsetBilled_by() {
29914
      this.billed_by = null;
1133 chandransh 29915
    }
29916
 
3430 rajveer 29917
    /** Returns true if field billed_by is set (has been assigned a value) and false otherwise */
3061 chandransh 29918
    public boolean isSetBilled_by() {
29919
      return this.billed_by != null;
1133 chandransh 29920
    }
29921
 
3061 chandransh 29922
    public void setBilled_byIsSet(boolean value) {
1133 chandransh 29923
      if (!value) {
3061 chandransh 29924
        this.billed_by = null;
1133 chandransh 29925
      }
29926
    }
29927
 
29928
    public void setFieldValue(_Fields field, Object value) {
29929
      switch (field) {
3061 chandransh 29930
      case ORDER_ID:
1133 chandransh 29931
        if (value == null) {
3061 chandransh 29932
          unsetOrderId();
1133 chandransh 29933
        } else {
3061 chandransh 29934
          setOrderId((Long)value);
1133 chandransh 29935
        }
29936
        break;
29937
 
3061 chandransh 29938
      case INVOICE_NUMBER:
1133 chandransh 29939
        if (value == null) {
3061 chandransh 29940
          unsetInvoice_number();
1133 chandransh 29941
        } else {
3061 chandransh 29942
          setInvoice_number((String)value);
1133 chandransh 29943
        }
29944
        break;
29945
 
3061 chandransh 29946
      case BILLED_BY:
29947
        if (value == null) {
29948
          unsetBilled_by();
29949
        } else {
29950
          setBilled_by((String)value);
29951
        }
29952
        break;
29953
 
1133 chandransh 29954
      }
29955
    }
29956
 
29957
    public Object getFieldValue(_Fields field) {
29958
      switch (field) {
3061 chandransh 29959
      case ORDER_ID:
3430 rajveer 29960
        return Long.valueOf(getOrderId());
1133 chandransh 29961
 
3061 chandransh 29962
      case INVOICE_NUMBER:
29963
        return getInvoice_number();
1133 chandransh 29964
 
3061 chandransh 29965
      case BILLED_BY:
29966
        return getBilled_by();
29967
 
1133 chandransh 29968
      }
29969
      throw new IllegalStateException();
29970
    }
29971
 
3430 rajveer 29972
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29973
    public boolean isSet(_Fields field) {
29974
      if (field == null) {
29975
        throw new IllegalArgumentException();
29976
      }
1133 chandransh 29977
 
29978
      switch (field) {
3061 chandransh 29979
      case ORDER_ID:
29980
        return isSetOrderId();
29981
      case INVOICE_NUMBER:
29982
        return isSetInvoice_number();
29983
      case BILLED_BY:
29984
        return isSetBilled_by();
1133 chandransh 29985
      }
29986
      throw new IllegalStateException();
29987
    }
29988
 
29989
    @Override
29990
    public boolean equals(Object that) {
29991
      if (that == null)
29992
        return false;
3061 chandransh 29993
      if (that instanceof addBillingDetails_args)
29994
        return this.equals((addBillingDetails_args)that);
1133 chandransh 29995
      return false;
29996
    }
29997
 
3061 chandransh 29998
    public boolean equals(addBillingDetails_args that) {
1133 chandransh 29999
      if (that == null)
30000
        return false;
30001
 
3061 chandransh 30002
      boolean this_present_orderId = true;
30003
      boolean that_present_orderId = true;
30004
      if (this_present_orderId || that_present_orderId) {
30005
        if (!(this_present_orderId && that_present_orderId))
1133 chandransh 30006
          return false;
3061 chandransh 30007
        if (this.orderId != that.orderId)
1133 chandransh 30008
          return false;
30009
      }
30010
 
3061 chandransh 30011
      boolean this_present_invoice_number = true && this.isSetInvoice_number();
30012
      boolean that_present_invoice_number = true && that.isSetInvoice_number();
30013
      if (this_present_invoice_number || that_present_invoice_number) {
30014
        if (!(this_present_invoice_number && that_present_invoice_number))
1133 chandransh 30015
          return false;
3061 chandransh 30016
        if (!this.invoice_number.equals(that.invoice_number))
1133 chandransh 30017
          return false;
30018
      }
30019
 
3061 chandransh 30020
      boolean this_present_billed_by = true && this.isSetBilled_by();
30021
      boolean that_present_billed_by = true && that.isSetBilled_by();
30022
      if (this_present_billed_by || that_present_billed_by) {
30023
        if (!(this_present_billed_by && that_present_billed_by))
30024
          return false;
30025
        if (!this.billed_by.equals(that.billed_by))
30026
          return false;
30027
      }
30028
 
1133 chandransh 30029
      return true;
30030
    }
30031
 
30032
    @Override
30033
    public int hashCode() {
30034
      return 0;
30035
    }
30036
 
3061 chandransh 30037
    public int compareTo(addBillingDetails_args other) {
30038
      if (!getClass().equals(other.getClass())) {
30039
        return getClass().getName().compareTo(other.getClass().getName());
30040
      }
30041
 
30042
      int lastComparison = 0;
30043
      addBillingDetails_args typedOther = (addBillingDetails_args)other;
30044
 
3430 rajveer 30045
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
3061 chandransh 30046
      if (lastComparison != 0) {
30047
        return lastComparison;
30048
      }
3430 rajveer 30049
      if (isSetOrderId()) {
30050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
30051
        if (lastComparison != 0) {
30052
          return lastComparison;
30053
        }
3061 chandransh 30054
      }
3430 rajveer 30055
      lastComparison = Boolean.valueOf(isSetInvoice_number()).compareTo(typedOther.isSetInvoice_number());
3061 chandransh 30056
      if (lastComparison != 0) {
30057
        return lastComparison;
30058
      }
3430 rajveer 30059
      if (isSetInvoice_number()) {
30060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoice_number, typedOther.invoice_number);
30061
        if (lastComparison != 0) {
30062
          return lastComparison;
30063
        }
3061 chandransh 30064
      }
3430 rajveer 30065
      lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(typedOther.isSetBilled_by());
3061 chandransh 30066
      if (lastComparison != 0) {
30067
        return lastComparison;
30068
      }
3430 rajveer 30069
      if (isSetBilled_by()) {
30070
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billed_by, typedOther.billed_by);
30071
        if (lastComparison != 0) {
30072
          return lastComparison;
30073
        }
3061 chandransh 30074
      }
30075
      return 0;
30076
    }
30077
 
3430 rajveer 30078
    public _Fields fieldForId(int fieldId) {
30079
      return _Fields.findByThriftId(fieldId);
30080
    }
30081
 
30082
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30083
      org.apache.thrift.protocol.TField field;
1133 chandransh 30084
      iprot.readStructBegin();
30085
      while (true)
30086
      {
30087
        field = iprot.readFieldBegin();
3430 rajveer 30088
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1133 chandransh 30089
          break;
30090
        }
3430 rajveer 30091
        switch (field.id) {
30092
          case 1: // ORDER_ID
30093
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30094
              this.orderId = iprot.readI64();
30095
              setOrderIdIsSet(true);
30096
            } else { 
30097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30098
            }
30099
            break;
30100
          case 2: // INVOICE_NUMBER
30101
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
30102
              this.invoice_number = iprot.readString();
30103
            } else { 
30104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30105
            }
30106
            break;
30107
          case 3: // BILLED_BY
30108
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
30109
              this.billed_by = iprot.readString();
30110
            } else { 
30111
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30112
            }
30113
            break;
30114
          default:
30115
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1133 chandransh 30116
        }
3430 rajveer 30117
        iprot.readFieldEnd();
1133 chandransh 30118
      }
30119
      iprot.readStructEnd();
30120
      validate();
30121
    }
30122
 
3430 rajveer 30123
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1133 chandransh 30124
      validate();
30125
 
30126
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 30127
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
30128
      oprot.writeI64(this.orderId);
1133 chandransh 30129
      oprot.writeFieldEnd();
3061 chandransh 30130
      if (this.invoice_number != null) {
30131
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
30132
        oprot.writeString(this.invoice_number);
1133 chandransh 30133
        oprot.writeFieldEnd();
30134
      }
3061 chandransh 30135
      if (this.billed_by != null) {
30136
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
30137
        oprot.writeString(this.billed_by);
30138
        oprot.writeFieldEnd();
30139
      }
1133 chandransh 30140
      oprot.writeFieldStop();
30141
      oprot.writeStructEnd();
30142
    }
30143
 
30144
    @Override
30145
    public String toString() {
3061 chandransh 30146
      StringBuilder sb = new StringBuilder("addBillingDetails_args(");
1133 chandransh 30147
      boolean first = true;
30148
 
3061 chandransh 30149
      sb.append("orderId:");
30150
      sb.append(this.orderId);
1133 chandransh 30151
      first = false;
30152
      if (!first) sb.append(", ");
3061 chandransh 30153
      sb.append("invoice_number:");
30154
      if (this.invoice_number == null) {
1133 chandransh 30155
        sb.append("null");
30156
      } else {
3061 chandransh 30157
        sb.append(this.invoice_number);
1133 chandransh 30158
      }
30159
      first = false;
3061 chandransh 30160
      if (!first) sb.append(", ");
30161
      sb.append("billed_by:");
30162
      if (this.billed_by == null) {
30163
        sb.append("null");
30164
      } else {
30165
        sb.append(this.billed_by);
30166
      }
30167
      first = false;
1133 chandransh 30168
      sb.append(")");
30169
      return sb.toString();
30170
    }
30171
 
3430 rajveer 30172
    public void validate() throws org.apache.thrift.TException {
1133 chandransh 30173
      // check for required fields
30174
    }
30175
 
3430 rajveer 30176
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30177
      try {
30178
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30179
      } catch (org.apache.thrift.TException te) {
30180
        throw new java.io.IOException(te);
30181
      }
30182
    }
30183
 
30184
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30185
      try {
30186
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30187
        __isset_bit_vector = new BitSet(1);
30188
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30189
      } catch (org.apache.thrift.TException te) {
30190
        throw new java.io.IOException(te);
30191
      }
30192
    }
30193
 
1133 chandransh 30194
  }
30195
 
3430 rajveer 30196
  public static class addBillingDetails_result implements org.apache.thrift.TBase<addBillingDetails_result, addBillingDetails_result._Fields>, java.io.Serializable, Cloneable   {
30197
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_result");
1133 chandransh 30198
 
3430 rajveer 30199
    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);
30200
    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);
1133 chandransh 30201
 
3430 rajveer 30202
    private boolean success; // required
30203
    private TransactionServiceException ex; // required
1133 chandransh 30204
 
30205
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30206
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 30207
      SUCCESS((short)0, "success"),
1133 chandransh 30208
      EX((short)1, "ex");
30209
 
30210
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30211
 
30212
      static {
30213
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30214
          byName.put(field.getFieldName(), field);
30215
        }
30216
      }
30217
 
30218
      /**
30219
       * Find the _Fields constant that matches fieldId, or null if its not found.
30220
       */
30221
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30222
        switch(fieldId) {
30223
          case 0: // SUCCESS
30224
            return SUCCESS;
30225
          case 1: // EX
30226
            return EX;
30227
          default:
30228
            return null;
30229
        }
1133 chandransh 30230
      }
30231
 
30232
      /**
30233
       * Find the _Fields constant that matches fieldId, throwing an exception
30234
       * if it is not found.
30235
       */
30236
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30237
        _Fields fields = findByThriftId(fieldId);
30238
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30239
        return fields;
30240
      }
30241
 
30242
      /**
30243
       * Find the _Fields constant that matches name, or null if its not found.
30244
       */
30245
      public static _Fields findByName(String name) {
30246
        return byName.get(name);
30247
      }
30248
 
30249
      private final short _thriftId;
30250
      private final String _fieldName;
30251
 
30252
      _Fields(short thriftId, String fieldName) {
30253
        _thriftId = thriftId;
30254
        _fieldName = fieldName;
30255
      }
30256
 
30257
      public short getThriftFieldId() {
30258
        return _thriftId;
30259
      }
30260
 
30261
      public String getFieldName() {
30262
        return _fieldName;
30263
      }
30264
    }
30265
 
30266
    // isset id assignments
3061 chandransh 30267
    private static final int __SUCCESS_ISSET_ID = 0;
30268
    private BitSet __isset_bit_vector = new BitSet(1);
1133 chandransh 30269
 
3430 rajveer 30270
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1133 chandransh 30271
    static {
3430 rajveer 30272
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30273
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30274
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
30275
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30276
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30277
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30278
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_result.class, metaDataMap);
1133 chandransh 30279
    }
30280
 
3061 chandransh 30281
    public addBillingDetails_result() {
1133 chandransh 30282
    }
30283
 
3061 chandransh 30284
    public addBillingDetails_result(
30285
      boolean success,
1133 chandransh 30286
      TransactionServiceException ex)
30287
    {
30288
      this();
3061 chandransh 30289
      this.success = success;
30290
      setSuccessIsSet(true);
1133 chandransh 30291
      this.ex = ex;
30292
    }
30293
 
30294
    /**
30295
     * Performs a deep copy on <i>other</i>.
30296
     */
3061 chandransh 30297
    public addBillingDetails_result(addBillingDetails_result other) {
30298
      __isset_bit_vector.clear();
30299
      __isset_bit_vector.or(other.__isset_bit_vector);
30300
      this.success = other.success;
1133 chandransh 30301
      if (other.isSetEx()) {
30302
        this.ex = new TransactionServiceException(other.ex);
30303
      }
30304
    }
30305
 
3061 chandransh 30306
    public addBillingDetails_result deepCopy() {
30307
      return new addBillingDetails_result(this);
1133 chandransh 30308
    }
30309
 
3430 rajveer 30310
    @Override
30311
    public void clear() {
30312
      setSuccessIsSet(false);
30313
      this.success = false;
30314
      this.ex = null;
1133 chandransh 30315
    }
30316
 
3061 chandransh 30317
    public boolean isSuccess() {
30318
      return this.success;
30319
    }
30320
 
3430 rajveer 30321
    public void setSuccess(boolean success) {
3061 chandransh 30322
      this.success = success;
30323
      setSuccessIsSet(true);
30324
    }
30325
 
30326
    public void unsetSuccess() {
30327
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
30328
    }
30329
 
3430 rajveer 30330
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 30331
    public boolean isSetSuccess() {
30332
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
30333
    }
30334
 
30335
    public void setSuccessIsSet(boolean value) {
30336
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
30337
    }
30338
 
1133 chandransh 30339
    public TransactionServiceException getEx() {
30340
      return this.ex;
30341
    }
30342
 
3430 rajveer 30343
    public void setEx(TransactionServiceException ex) {
1133 chandransh 30344
      this.ex = ex;
30345
    }
30346
 
30347
    public void unsetEx() {
30348
      this.ex = null;
30349
    }
30350
 
3430 rajveer 30351
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1133 chandransh 30352
    public boolean isSetEx() {
30353
      return this.ex != null;
30354
    }
30355
 
30356
    public void setExIsSet(boolean value) {
30357
      if (!value) {
30358
        this.ex = null;
30359
      }
30360
    }
30361
 
30362
    public void setFieldValue(_Fields field, Object value) {
30363
      switch (field) {
3061 chandransh 30364
      case SUCCESS:
30365
        if (value == null) {
30366
          unsetSuccess();
30367
        } else {
30368
          setSuccess((Boolean)value);
30369
        }
30370
        break;
30371
 
1133 chandransh 30372
      case EX:
30373
        if (value == null) {
30374
          unsetEx();
30375
        } else {
30376
          setEx((TransactionServiceException)value);
30377
        }
30378
        break;
30379
 
30380
      }
30381
    }
30382
 
30383
    public Object getFieldValue(_Fields field) {
30384
      switch (field) {
3061 chandransh 30385
      case SUCCESS:
3430 rajveer 30386
        return Boolean.valueOf(isSuccess());
3061 chandransh 30387
 
1133 chandransh 30388
      case EX:
30389
        return getEx();
30390
 
30391
      }
30392
      throw new IllegalStateException();
30393
    }
30394
 
3430 rajveer 30395
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30396
    public boolean isSet(_Fields field) {
30397
      if (field == null) {
30398
        throw new IllegalArgumentException();
30399
      }
1133 chandransh 30400
 
30401
      switch (field) {
3061 chandransh 30402
      case SUCCESS:
30403
        return isSetSuccess();
1133 chandransh 30404
      case EX:
30405
        return isSetEx();
30406
      }
30407
      throw new IllegalStateException();
30408
    }
30409
 
30410
    @Override
30411
    public boolean equals(Object that) {
30412
      if (that == null)
30413
        return false;
3061 chandransh 30414
      if (that instanceof addBillingDetails_result)
30415
        return this.equals((addBillingDetails_result)that);
1133 chandransh 30416
      return false;
30417
    }
30418
 
3061 chandransh 30419
    public boolean equals(addBillingDetails_result that) {
1133 chandransh 30420
      if (that == null)
30421
        return false;
30422
 
3061 chandransh 30423
      boolean this_present_success = true;
30424
      boolean that_present_success = true;
30425
      if (this_present_success || that_present_success) {
30426
        if (!(this_present_success && that_present_success))
30427
          return false;
30428
        if (this.success != that.success)
30429
          return false;
30430
      }
30431
 
1133 chandransh 30432
      boolean this_present_ex = true && this.isSetEx();
30433
      boolean that_present_ex = true && that.isSetEx();
30434
      if (this_present_ex || that_present_ex) {
30435
        if (!(this_present_ex && that_present_ex))
30436
          return false;
30437
        if (!this.ex.equals(that.ex))
30438
          return false;
30439
      }
30440
 
30441
      return true;
30442
    }
30443
 
30444
    @Override
30445
    public int hashCode() {
30446
      return 0;
30447
    }
30448
 
3061 chandransh 30449
    public int compareTo(addBillingDetails_result other) {
1133 chandransh 30450
      if (!getClass().equals(other.getClass())) {
30451
        return getClass().getName().compareTo(other.getClass().getName());
30452
      }
30453
 
30454
      int lastComparison = 0;
3061 chandransh 30455
      addBillingDetails_result typedOther = (addBillingDetails_result)other;
1133 chandransh 30456
 
3430 rajveer 30457
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3061 chandransh 30458
      if (lastComparison != 0) {
30459
        return lastComparison;
30460
      }
3430 rajveer 30461
      if (isSetSuccess()) {
30462
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30463
        if (lastComparison != 0) {
30464
          return lastComparison;
30465
        }
3061 chandransh 30466
      }
3430 rajveer 30467
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1133 chandransh 30468
      if (lastComparison != 0) {
30469
        return lastComparison;
30470
      }
3430 rajveer 30471
      if (isSetEx()) {
30472
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
30473
        if (lastComparison != 0) {
30474
          return lastComparison;
30475
        }
1133 chandransh 30476
      }
30477
      return 0;
30478
    }
30479
 
3430 rajveer 30480
    public _Fields fieldForId(int fieldId) {
30481
      return _Fields.findByThriftId(fieldId);
30482
    }
30483
 
30484
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30485
      org.apache.thrift.protocol.TField field;
1133 chandransh 30486
      iprot.readStructBegin();
30487
      while (true)
30488
      {
30489
        field = iprot.readFieldBegin();
3430 rajveer 30490
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1133 chandransh 30491
          break;
30492
        }
3430 rajveer 30493
        switch (field.id) {
30494
          case 0: // SUCCESS
30495
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
30496
              this.success = iprot.readBool();
30497
              setSuccessIsSet(true);
30498
            } else { 
30499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30500
            }
30501
            break;
30502
          case 1: // EX
30503
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30504
              this.ex = new TransactionServiceException();
30505
              this.ex.read(iprot);
30506
            } else { 
30507
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30508
            }
30509
            break;
30510
          default:
30511
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1133 chandransh 30512
        }
3430 rajveer 30513
        iprot.readFieldEnd();
1133 chandransh 30514
      }
30515
      iprot.readStructEnd();
30516
      validate();
30517
    }
30518
 
3430 rajveer 30519
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1133 chandransh 30520
      oprot.writeStructBegin(STRUCT_DESC);
30521
 
3061 chandransh 30522
      if (this.isSetSuccess()) {
30523
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30524
        oprot.writeBool(this.success);
30525
        oprot.writeFieldEnd();
30526
      } else if (this.isSetEx()) {
1133 chandransh 30527
        oprot.writeFieldBegin(EX_FIELD_DESC);
30528
        this.ex.write(oprot);
30529
        oprot.writeFieldEnd();
30530
      }
30531
      oprot.writeFieldStop();
30532
      oprot.writeStructEnd();
30533
    }
30534
 
30535
    @Override
30536
    public String toString() {
3061 chandransh 30537
      StringBuilder sb = new StringBuilder("addBillingDetails_result(");
1133 chandransh 30538
      boolean first = true;
30539
 
3061 chandransh 30540
      sb.append("success:");
30541
      sb.append(this.success);
30542
      first = false;
30543
      if (!first) sb.append(", ");
1133 chandransh 30544
      sb.append("ex:");
30545
      if (this.ex == null) {
30546
        sb.append("null");
30547
      } else {
30548
        sb.append(this.ex);
30549
      }
30550
      first = false;
30551
      sb.append(")");
30552
      return sb.toString();
30553
    }
30554
 
3430 rajveer 30555
    public void validate() throws org.apache.thrift.TException {
1133 chandransh 30556
      // check for required fields
30557
    }
30558
 
3430 rajveer 30559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30560
      try {
30561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30562
      } catch (org.apache.thrift.TException te) {
30563
        throw new java.io.IOException(te);
30564
      }
30565
    }
30566
 
30567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30568
      try {
30569
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30570
      } catch (org.apache.thrift.TException te) {
30571
        throw new java.io.IOException(te);
30572
      }
30573
    }
30574
 
1133 chandransh 30575
  }
30576
 
3430 rajveer 30577
  public static class addJacketNumber_args implements org.apache.thrift.TBase<addJacketNumber_args, addJacketNumber_args._Fields>, java.io.Serializable, Cloneable   {
30578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addJacketNumber_args");
1245 chandransh 30579
 
3430 rajveer 30580
    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);
30581
    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)2);
30582
    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);
30583
    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);
30584
    private static final org.apache.thrift.protocol.TField BILLED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("billedBy", org.apache.thrift.protocol.TType.STRING, (short)5);
30585
    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)6);
1245 chandransh 30586
 
3430 rajveer 30587
    private long orderId; // required
30588
    private long jacketNumber; // required
30589
    private long imeiNumber; // required
30590
    private String itemNumber; // required
30591
    private String billedBy; // required
30592
    private long billingType; // required
1245 chandransh 30593
 
30594
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30595
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 30596
      ORDER_ID((short)1, "orderId"),
30597
      JACKET_NUMBER((short)2, "jacketNumber"),
30598
      IMEI_NUMBER((short)3, "imeiNumber"),
30599
      ITEM_NUMBER((short)4, "itemNumber"),
30600
      BILLED_BY((short)5, "billedBy"),
30601
      BILLING_TYPE((short)6, "billingType");
1245 chandransh 30602
 
30603
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30604
 
30605
      static {
30606
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30607
          byName.put(field.getFieldName(), field);
30608
        }
30609
      }
30610
 
30611
      /**
30612
       * Find the _Fields constant that matches fieldId, or null if its not found.
30613
       */
30614
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30615
        switch(fieldId) {
30616
          case 1: // ORDER_ID
30617
            return ORDER_ID;
30618
          case 2: // JACKET_NUMBER
30619
            return JACKET_NUMBER;
30620
          case 3: // IMEI_NUMBER
30621
            return IMEI_NUMBER;
30622
          case 4: // ITEM_NUMBER
30623
            return ITEM_NUMBER;
30624
          case 5: // BILLED_BY
30625
            return BILLED_BY;
30626
          case 6: // BILLING_TYPE
30627
            return BILLING_TYPE;
30628
          default:
30629
            return null;
30630
        }
1245 chandransh 30631
      }
30632
 
30633
      /**
30634
       * Find the _Fields constant that matches fieldId, throwing an exception
30635
       * if it is not found.
30636
       */
30637
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30638
        _Fields fields = findByThriftId(fieldId);
30639
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30640
        return fields;
30641
      }
30642
 
30643
      /**
30644
       * Find the _Fields constant that matches name, or null if its not found.
30645
       */
30646
      public static _Fields findByName(String name) {
30647
        return byName.get(name);
30648
      }
30649
 
30650
      private final short _thriftId;
30651
      private final String _fieldName;
30652
 
30653
      _Fields(short thriftId, String fieldName) {
30654
        _thriftId = thriftId;
30655
        _fieldName = fieldName;
30656
      }
30657
 
30658
      public short getThriftFieldId() {
30659
        return _thriftId;
30660
      }
30661
 
30662
      public String getFieldName() {
30663
        return _fieldName;
30664
      }
30665
    }
30666
 
30667
    // isset id assignments
3061 chandransh 30668
    private static final int __ORDERID_ISSET_ID = 0;
30669
    private static final int __JACKETNUMBER_ISSET_ID = 1;
30670
    private static final int __IMEINUMBER_ISSET_ID = 2;
30671
    private static final int __BILLINGTYPE_ISSET_ID = 3;
30672
    private BitSet __isset_bit_vector = new BitSet(4);
1245 chandransh 30673
 
3430 rajveer 30674
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1245 chandransh 30675
    static {
3430 rajveer 30676
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30677
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30678
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30679
      tmpMap.put(_Fields.JACKET_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("jacketNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30680
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30681
      tmpMap.put(_Fields.IMEI_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("imeiNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30682
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30683
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30684
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
30685
      tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30686
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
30687
      tmpMap.put(_Fields.BILLING_TYPE, new org.apache.thrift.meta_data.FieldMetaData("billingType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30688
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30689
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30690
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addJacketNumber_args.class, metaDataMap);
1245 chandransh 30691
    }
30692
 
3061 chandransh 30693
    public addJacketNumber_args() {
1245 chandransh 30694
    }
30695
 
3061 chandransh 30696
    public addJacketNumber_args(
30697
      long orderId,
30698
      long jacketNumber,
30699
      long imeiNumber,
30700
      String itemNumber,
30701
      String billedBy,
30702
      long billingType)
1245 chandransh 30703
    {
30704
      this();
3061 chandransh 30705
      this.orderId = orderId;
30706
      setOrderIdIsSet(true);
30707
      this.jacketNumber = jacketNumber;
30708
      setJacketNumberIsSet(true);
30709
      this.imeiNumber = imeiNumber;
30710
      setImeiNumberIsSet(true);
30711
      this.itemNumber = itemNumber;
30712
      this.billedBy = billedBy;
30713
      this.billingType = billingType;
30714
      setBillingTypeIsSet(true);
1245 chandransh 30715
    }
30716
 
30717
    /**
30718
     * Performs a deep copy on <i>other</i>.
30719
     */
3061 chandransh 30720
    public addJacketNumber_args(addJacketNumber_args other) {
1245 chandransh 30721
      __isset_bit_vector.clear();
30722
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 30723
      this.orderId = other.orderId;
30724
      this.jacketNumber = other.jacketNumber;
30725
      this.imeiNumber = other.imeiNumber;
30726
      if (other.isSetItemNumber()) {
30727
        this.itemNumber = other.itemNumber;
30728
      }
30729
      if (other.isSetBilledBy()) {
30730
        this.billedBy = other.billedBy;
30731
      }
30732
      this.billingType = other.billingType;
30733
    }
1245 chandransh 30734
 
3061 chandransh 30735
    public addJacketNumber_args deepCopy() {
30736
      return new addJacketNumber_args(this);
30737
    }
1245 chandransh 30738
 
3430 rajveer 30739
    @Override
30740
    public void clear() {
30741
      setOrderIdIsSet(false);
30742
      this.orderId = 0;
30743
      setJacketNumberIsSet(false);
30744
      this.jacketNumber = 0;
30745
      setImeiNumberIsSet(false);
30746
      this.imeiNumber = 0;
30747
      this.itemNumber = null;
30748
      this.billedBy = null;
30749
      setBillingTypeIsSet(false);
30750
      this.billingType = 0;
3061 chandransh 30751
    }
1245 chandransh 30752
 
3061 chandransh 30753
    public long getOrderId() {
30754
      return this.orderId;
30755
    }
1245 chandransh 30756
 
3430 rajveer 30757
    public void setOrderId(long orderId) {
3061 chandransh 30758
      this.orderId = orderId;
30759
      setOrderIdIsSet(true);
1245 chandransh 30760
    }
30761
 
3061 chandransh 30762
    public void unsetOrderId() {
30763
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
1245 chandransh 30764
    }
30765
 
3430 rajveer 30766
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 30767
    public boolean isSetOrderId() {
30768
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
1245 chandransh 30769
    }
30770
 
3061 chandransh 30771
    public void setOrderIdIsSet(boolean value) {
30772
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
1245 chandransh 30773
    }
30774
 
3061 chandransh 30775
    public long getJacketNumber() {
30776
      return this.jacketNumber;
30777
    }
30778
 
3430 rajveer 30779
    public void setJacketNumber(long jacketNumber) {
3061 chandransh 30780
      this.jacketNumber = jacketNumber;
30781
      setJacketNumberIsSet(true);
1245 chandransh 30782
    }
30783
 
3061 chandransh 30784
    public void unsetJacketNumber() {
30785
      __isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
1245 chandransh 30786
    }
30787
 
3430 rajveer 30788
    /** Returns true if field jacketNumber is set (has been assigned a value) and false otherwise */
3061 chandransh 30789
    public boolean isSetJacketNumber() {
30790
      return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
1245 chandransh 30791
    }
30792
 
3061 chandransh 30793
    public void setJacketNumberIsSet(boolean value) {
30794
      __isset_bit_vector.set(__JACKETNUMBER_ISSET_ID, value);
1245 chandransh 30795
    }
30796
 
3061 chandransh 30797
    public long getImeiNumber() {
30798
      return this.imeiNumber;
1245 chandransh 30799
    }
30800
 
3430 rajveer 30801
    public void setImeiNumber(long imeiNumber) {
3061 chandransh 30802
      this.imeiNumber = imeiNumber;
30803
      setImeiNumberIsSet(true);
30804
    }
30805
 
30806
    public void unsetImeiNumber() {
30807
      __isset_bit_vector.clear(__IMEINUMBER_ISSET_ID);
30808
    }
30809
 
3430 rajveer 30810
    /** Returns true if field imeiNumber is set (has been assigned a value) and false otherwise */
3061 chandransh 30811
    public boolean isSetImeiNumber() {
30812
      return __isset_bit_vector.get(__IMEINUMBER_ISSET_ID);
30813
    }
30814
 
30815
    public void setImeiNumberIsSet(boolean value) {
30816
      __isset_bit_vector.set(__IMEINUMBER_ISSET_ID, value);
30817
    }
30818
 
30819
    public String getItemNumber() {
30820
      return this.itemNumber;
30821
    }
30822
 
3430 rajveer 30823
    public void setItemNumber(String itemNumber) {
3061 chandransh 30824
      this.itemNumber = itemNumber;
30825
    }
30826
 
30827
    public void unsetItemNumber() {
30828
      this.itemNumber = null;
30829
    }
30830
 
3430 rajveer 30831
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
3061 chandransh 30832
    public boolean isSetItemNumber() {
30833
      return this.itemNumber != null;
30834
    }
30835
 
30836
    public void setItemNumberIsSet(boolean value) {
30837
      if (!value) {
30838
        this.itemNumber = null;
1245 chandransh 30839
      }
30840
    }
30841
 
3061 chandransh 30842
    public String getBilledBy() {
30843
      return this.billedBy;
1245 chandransh 30844
    }
30845
 
3430 rajveer 30846
    public void setBilledBy(String billedBy) {
3061 chandransh 30847
      this.billedBy = billedBy;
1245 chandransh 30848
    }
30849
 
3061 chandransh 30850
    public void unsetBilledBy() {
30851
      this.billedBy = null;
1245 chandransh 30852
    }
30853
 
3430 rajveer 30854
    /** Returns true if field billedBy is set (has been assigned a value) and false otherwise */
3061 chandransh 30855
    public boolean isSetBilledBy() {
30856
      return this.billedBy != null;
1245 chandransh 30857
    }
30858
 
3061 chandransh 30859
    public void setBilledByIsSet(boolean value) {
1245 chandransh 30860
      if (!value) {
3061 chandransh 30861
        this.billedBy = null;
1245 chandransh 30862
      }
30863
    }
30864
 
3061 chandransh 30865
    public long getBillingType() {
30866
      return this.billingType;
30867
    }
30868
 
3430 rajveer 30869
    public void setBillingType(long billingType) {
3061 chandransh 30870
      this.billingType = billingType;
30871
      setBillingTypeIsSet(true);
30872
    }
30873
 
30874
    public void unsetBillingType() {
30875
      __isset_bit_vector.clear(__BILLINGTYPE_ISSET_ID);
30876
    }
30877
 
3430 rajveer 30878
    /** Returns true if field billingType is set (has been assigned a value) and false otherwise */
3061 chandransh 30879
    public boolean isSetBillingType() {
30880
      return __isset_bit_vector.get(__BILLINGTYPE_ISSET_ID);
30881
    }
30882
 
30883
    public void setBillingTypeIsSet(boolean value) {
30884
      __isset_bit_vector.set(__BILLINGTYPE_ISSET_ID, value);
30885
    }
30886
 
1245 chandransh 30887
    public void setFieldValue(_Fields field, Object value) {
30888
      switch (field) {
3061 chandransh 30889
      case ORDER_ID:
1245 chandransh 30890
        if (value == null) {
3061 chandransh 30891
          unsetOrderId();
1245 chandransh 30892
        } else {
3061 chandransh 30893
          setOrderId((Long)value);
1245 chandransh 30894
        }
30895
        break;
30896
 
3061 chandransh 30897
      case JACKET_NUMBER:
1245 chandransh 30898
        if (value == null) {
3061 chandransh 30899
          unsetJacketNumber();
1245 chandransh 30900
        } else {
3061 chandransh 30901
          setJacketNumber((Long)value);
1245 chandransh 30902
        }
30903
        break;
30904
 
3061 chandransh 30905
      case IMEI_NUMBER:
30906
        if (value == null) {
30907
          unsetImeiNumber();
30908
        } else {
30909
          setImeiNumber((Long)value);
30910
        }
30911
        break;
30912
 
30913
      case ITEM_NUMBER:
30914
        if (value == null) {
30915
          unsetItemNumber();
30916
        } else {
30917
          setItemNumber((String)value);
30918
        }
30919
        break;
30920
 
30921
      case BILLED_BY:
30922
        if (value == null) {
30923
          unsetBilledBy();
30924
        } else {
30925
          setBilledBy((String)value);
30926
        }
30927
        break;
30928
 
30929
      case BILLING_TYPE:
30930
        if (value == null) {
30931
          unsetBillingType();
30932
        } else {
30933
          setBillingType((Long)value);
30934
        }
30935
        break;
30936
 
1245 chandransh 30937
      }
30938
    }
30939
 
30940
    public Object getFieldValue(_Fields field) {
30941
      switch (field) {
3061 chandransh 30942
      case ORDER_ID:
3430 rajveer 30943
        return Long.valueOf(getOrderId());
1245 chandransh 30944
 
3061 chandransh 30945
      case JACKET_NUMBER:
3430 rajveer 30946
        return Long.valueOf(getJacketNumber());
1245 chandransh 30947
 
3061 chandransh 30948
      case IMEI_NUMBER:
3430 rajveer 30949
        return Long.valueOf(getImeiNumber());
3061 chandransh 30950
 
30951
      case ITEM_NUMBER:
30952
        return getItemNumber();
30953
 
30954
      case BILLED_BY:
30955
        return getBilledBy();
30956
 
30957
      case BILLING_TYPE:
3430 rajveer 30958
        return Long.valueOf(getBillingType());
3061 chandransh 30959
 
1245 chandransh 30960
      }
30961
      throw new IllegalStateException();
30962
    }
30963
 
3430 rajveer 30964
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30965
    public boolean isSet(_Fields field) {
30966
      if (field == null) {
30967
        throw new IllegalArgumentException();
30968
      }
1245 chandransh 30969
 
30970
      switch (field) {
3061 chandransh 30971
      case ORDER_ID:
30972
        return isSetOrderId();
30973
      case JACKET_NUMBER:
30974
        return isSetJacketNumber();
30975
      case IMEI_NUMBER:
30976
        return isSetImeiNumber();
30977
      case ITEM_NUMBER:
30978
        return isSetItemNumber();
30979
      case BILLED_BY:
30980
        return isSetBilledBy();
30981
      case BILLING_TYPE:
30982
        return isSetBillingType();
1245 chandransh 30983
      }
30984
      throw new IllegalStateException();
30985
    }
30986
 
30987
    @Override
30988
    public boolean equals(Object that) {
30989
      if (that == null)
30990
        return false;
3061 chandransh 30991
      if (that instanceof addJacketNumber_args)
30992
        return this.equals((addJacketNumber_args)that);
1245 chandransh 30993
      return false;
30994
    }
30995
 
3061 chandransh 30996
    public boolean equals(addJacketNumber_args that) {
1245 chandransh 30997
      if (that == null)
30998
        return false;
30999
 
3061 chandransh 31000
      boolean this_present_orderId = true;
31001
      boolean that_present_orderId = true;
31002
      if (this_present_orderId || that_present_orderId) {
31003
        if (!(this_present_orderId && that_present_orderId))
1245 chandransh 31004
          return false;
3061 chandransh 31005
        if (this.orderId != that.orderId)
1245 chandransh 31006
          return false;
31007
      }
31008
 
3061 chandransh 31009
      boolean this_present_jacketNumber = true;
31010
      boolean that_present_jacketNumber = true;
31011
      if (this_present_jacketNumber || that_present_jacketNumber) {
31012
        if (!(this_present_jacketNumber && that_present_jacketNumber))
1245 chandransh 31013
          return false;
3061 chandransh 31014
        if (this.jacketNumber != that.jacketNumber)
1245 chandransh 31015
          return false;
31016
      }
31017
 
3061 chandransh 31018
      boolean this_present_imeiNumber = true;
31019
      boolean that_present_imeiNumber = true;
31020
      if (this_present_imeiNumber || that_present_imeiNumber) {
31021
        if (!(this_present_imeiNumber && that_present_imeiNumber))
31022
          return false;
31023
        if (this.imeiNumber != that.imeiNumber)
31024
          return false;
31025
      }
31026
 
31027
      boolean this_present_itemNumber = true && this.isSetItemNumber();
31028
      boolean that_present_itemNumber = true && that.isSetItemNumber();
31029
      if (this_present_itemNumber || that_present_itemNumber) {
31030
        if (!(this_present_itemNumber && that_present_itemNumber))
31031
          return false;
31032
        if (!this.itemNumber.equals(that.itemNumber))
31033
          return false;
31034
      }
31035
 
31036
      boolean this_present_billedBy = true && this.isSetBilledBy();
31037
      boolean that_present_billedBy = true && that.isSetBilledBy();
31038
      if (this_present_billedBy || that_present_billedBy) {
31039
        if (!(this_present_billedBy && that_present_billedBy))
31040
          return false;
31041
        if (!this.billedBy.equals(that.billedBy))
31042
          return false;
31043
      }
31044
 
31045
      boolean this_present_billingType = true;
31046
      boolean that_present_billingType = true;
31047
      if (this_present_billingType || that_present_billingType) {
31048
        if (!(this_present_billingType && that_present_billingType))
31049
          return false;
31050
        if (this.billingType != that.billingType)
31051
          return false;
31052
      }
31053
 
1245 chandransh 31054
      return true;
31055
    }
31056
 
31057
    @Override
31058
    public int hashCode() {
31059
      return 0;
31060
    }
31061
 
3061 chandransh 31062
    public int compareTo(addJacketNumber_args other) {
31063
      if (!getClass().equals(other.getClass())) {
31064
        return getClass().getName().compareTo(other.getClass().getName());
31065
      }
31066
 
31067
      int lastComparison = 0;
31068
      addJacketNumber_args typedOther = (addJacketNumber_args)other;
31069
 
3430 rajveer 31070
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
3061 chandransh 31071
      if (lastComparison != 0) {
31072
        return lastComparison;
31073
      }
3430 rajveer 31074
      if (isSetOrderId()) {
31075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
31076
        if (lastComparison != 0) {
31077
          return lastComparison;
31078
        }
3061 chandransh 31079
      }
3430 rajveer 31080
      lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(typedOther.isSetJacketNumber());
3061 chandransh 31081
      if (lastComparison != 0) {
31082
        return lastComparison;
31083
      }
3430 rajveer 31084
      if (isSetJacketNumber()) {
31085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jacketNumber, typedOther.jacketNumber);
31086
        if (lastComparison != 0) {
31087
          return lastComparison;
31088
        }
3061 chandransh 31089
      }
3430 rajveer 31090
      lastComparison = Boolean.valueOf(isSetImeiNumber()).compareTo(typedOther.isSetImeiNumber());
3061 chandransh 31091
      if (lastComparison != 0) {
31092
        return lastComparison;
31093
      }
3430 rajveer 31094
      if (isSetImeiNumber()) {
31095
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imeiNumber, typedOther.imeiNumber);
31096
        if (lastComparison != 0) {
31097
          return lastComparison;
31098
        }
3061 chandransh 31099
      }
3430 rajveer 31100
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
3061 chandransh 31101
      if (lastComparison != 0) {
31102
        return lastComparison;
31103
      }
3430 rajveer 31104
      if (isSetItemNumber()) {
31105
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
31106
        if (lastComparison != 0) {
31107
          return lastComparison;
31108
        }
3061 chandransh 31109
      }
3430 rajveer 31110
      lastComparison = Boolean.valueOf(isSetBilledBy()).compareTo(typedOther.isSetBilledBy());
3061 chandransh 31111
      if (lastComparison != 0) {
31112
        return lastComparison;
31113
      }
3430 rajveer 31114
      if (isSetBilledBy()) {
31115
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billedBy, typedOther.billedBy);
31116
        if (lastComparison != 0) {
31117
          return lastComparison;
31118
        }
3061 chandransh 31119
      }
3430 rajveer 31120
      lastComparison = Boolean.valueOf(isSetBillingType()).compareTo(typedOther.isSetBillingType());
3061 chandransh 31121
      if (lastComparison != 0) {
31122
        return lastComparison;
31123
      }
3430 rajveer 31124
      if (isSetBillingType()) {
31125
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingType, typedOther.billingType);
31126
        if (lastComparison != 0) {
31127
          return lastComparison;
31128
        }
3061 chandransh 31129
      }
31130
      return 0;
31131
    }
31132
 
3430 rajveer 31133
    public _Fields fieldForId(int fieldId) {
31134
      return _Fields.findByThriftId(fieldId);
31135
    }
31136
 
31137
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31138
      org.apache.thrift.protocol.TField field;
1245 chandransh 31139
      iprot.readStructBegin();
31140
      while (true)
31141
      {
31142
        field = iprot.readFieldBegin();
3430 rajveer 31143
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1245 chandransh 31144
          break;
31145
        }
3430 rajveer 31146
        switch (field.id) {
31147
          case 1: // ORDER_ID
31148
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31149
              this.orderId = iprot.readI64();
31150
              setOrderIdIsSet(true);
31151
            } else { 
31152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31153
            }
31154
            break;
31155
          case 2: // JACKET_NUMBER
31156
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31157
              this.jacketNumber = iprot.readI64();
31158
              setJacketNumberIsSet(true);
31159
            } else { 
31160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31161
            }
31162
            break;
31163
          case 3: // IMEI_NUMBER
31164
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31165
              this.imeiNumber = iprot.readI64();
31166
              setImeiNumberIsSet(true);
31167
            } else { 
31168
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31169
            }
31170
            break;
31171
          case 4: // ITEM_NUMBER
31172
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
31173
              this.itemNumber = iprot.readString();
31174
            } else { 
31175
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31176
            }
31177
            break;
31178
          case 5: // BILLED_BY
31179
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
31180
              this.billedBy = iprot.readString();
31181
            } else { 
31182
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31183
            }
31184
            break;
31185
          case 6: // BILLING_TYPE
31186
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31187
              this.billingType = iprot.readI64();
31188
              setBillingTypeIsSet(true);
31189
            } else { 
31190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31191
            }
31192
            break;
31193
          default:
31194
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1245 chandransh 31195
        }
3430 rajveer 31196
        iprot.readFieldEnd();
1245 chandransh 31197
      }
31198
      iprot.readStructEnd();
31199
      validate();
31200
    }
31201
 
3430 rajveer 31202
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1245 chandransh 31203
      validate();
31204
 
31205
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 31206
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
31207
      oprot.writeI64(this.orderId);
1245 chandransh 31208
      oprot.writeFieldEnd();
3061 chandransh 31209
      oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
31210
      oprot.writeI64(this.jacketNumber);
31211
      oprot.writeFieldEnd();
31212
      oprot.writeFieldBegin(IMEI_NUMBER_FIELD_DESC);
31213
      oprot.writeI64(this.imeiNumber);
31214
      oprot.writeFieldEnd();
31215
      if (this.itemNumber != null) {
31216
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
31217
        oprot.writeString(this.itemNumber);
1245 chandransh 31218
        oprot.writeFieldEnd();
31219
      }
3061 chandransh 31220
      if (this.billedBy != null) {
31221
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
31222
        oprot.writeString(this.billedBy);
31223
        oprot.writeFieldEnd();
31224
      }
31225
      oprot.writeFieldBegin(BILLING_TYPE_FIELD_DESC);
31226
      oprot.writeI64(this.billingType);
31227
      oprot.writeFieldEnd();
1245 chandransh 31228
      oprot.writeFieldStop();
31229
      oprot.writeStructEnd();
31230
    }
31231
 
31232
    @Override
31233
    public String toString() {
3061 chandransh 31234
      StringBuilder sb = new StringBuilder("addJacketNumber_args(");
1245 chandransh 31235
      boolean first = true;
31236
 
3061 chandransh 31237
      sb.append("orderId:");
31238
      sb.append(this.orderId);
1245 chandransh 31239
      first = false;
31240
      if (!first) sb.append(", ");
3061 chandransh 31241
      sb.append("jacketNumber:");
31242
      sb.append(this.jacketNumber);
31243
      first = false;
31244
      if (!first) sb.append(", ");
31245
      sb.append("imeiNumber:");
31246
      sb.append(this.imeiNumber);
31247
      first = false;
31248
      if (!first) sb.append(", ");
31249
      sb.append("itemNumber:");
31250
      if (this.itemNumber == null) {
1245 chandransh 31251
        sb.append("null");
31252
      } else {
3061 chandransh 31253
        sb.append(this.itemNumber);
1245 chandransh 31254
      }
31255
      first = false;
3061 chandransh 31256
      if (!first) sb.append(", ");
31257
      sb.append("billedBy:");
31258
      if (this.billedBy == null) {
31259
        sb.append("null");
31260
      } else {
31261
        sb.append(this.billedBy);
31262
      }
31263
      first = false;
31264
      if (!first) sb.append(", ");
31265
      sb.append("billingType:");
31266
      sb.append(this.billingType);
31267
      first = false;
1245 chandransh 31268
      sb.append(")");
31269
      return sb.toString();
31270
    }
31271
 
3430 rajveer 31272
    public void validate() throws org.apache.thrift.TException {
1245 chandransh 31273
      // check for required fields
31274
    }
31275
 
3430 rajveer 31276
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31277
      try {
31278
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31279
      } catch (org.apache.thrift.TException te) {
31280
        throw new java.io.IOException(te);
31281
      }
31282
    }
31283
 
31284
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31285
      try {
3469 chandransh 31286
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31287
        __isset_bit_vector = new BitSet(1);
3430 rajveer 31288
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31289
      } catch (org.apache.thrift.TException te) {
31290
        throw new java.io.IOException(te);
31291
      }
31292
    }
31293
 
1245 chandransh 31294
  }
31295
 
3430 rajveer 31296
  public static class addJacketNumber_result implements org.apache.thrift.TBase<addJacketNumber_result, addJacketNumber_result._Fields>, java.io.Serializable, Cloneable   {
31297
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addJacketNumber_result");
1245 chandransh 31298
 
3430 rajveer 31299
    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);
31300
    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 31301
 
3430 rajveer 31302
    private boolean success; // required
31303
    private TransactionServiceException ex; // required
1245 chandransh 31304
 
31305
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 31306
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 31307
      SUCCESS((short)0, "success"),
1245 chandransh 31308
      EX((short)1, "ex");
31309
 
31310
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31311
 
31312
      static {
31313
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31314
          byName.put(field.getFieldName(), field);
31315
        }
31316
      }
31317
 
31318
      /**
31319
       * Find the _Fields constant that matches fieldId, or null if its not found.
31320
       */
31321
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 31322
        switch(fieldId) {
31323
          case 0: // SUCCESS
31324
            return SUCCESS;
31325
          case 1: // EX
31326
            return EX;
31327
          default:
31328
            return null;
31329
        }
1245 chandransh 31330
      }
31331
 
31332
      /**
31333
       * Find the _Fields constant that matches fieldId, throwing an exception
31334
       * if it is not found.
31335
       */
31336
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31337
        _Fields fields = findByThriftId(fieldId);
31338
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31339
        return fields;
31340
      }
31341
 
31342
      /**
31343
       * Find the _Fields constant that matches name, or null if its not found.
31344
       */
31345
      public static _Fields findByName(String name) {
31346
        return byName.get(name);
31347
      }
31348
 
31349
      private final short _thriftId;
31350
      private final String _fieldName;
31351
 
31352
      _Fields(short thriftId, String fieldName) {
31353
        _thriftId = thriftId;
31354
        _fieldName = fieldName;
31355
      }
31356
 
31357
      public short getThriftFieldId() {
31358
        return _thriftId;
31359
      }
31360
 
31361
      public String getFieldName() {
31362
        return _fieldName;
31363
      }
31364
    }
31365
 
31366
    // isset id assignments
3061 chandransh 31367
    private static final int __SUCCESS_ISSET_ID = 0;
31368
    private BitSet __isset_bit_vector = new BitSet(1);
1245 chandransh 31369
 
3430 rajveer 31370
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1245 chandransh 31371
    static {
3430 rajveer 31372
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31373
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31374
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
31375
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31376
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31377
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31378
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addJacketNumber_result.class, metaDataMap);
1245 chandransh 31379
    }
31380
 
3061 chandransh 31381
    public addJacketNumber_result() {
1245 chandransh 31382
    }
31383
 
3061 chandransh 31384
    public addJacketNumber_result(
31385
      boolean success,
1245 chandransh 31386
      TransactionServiceException ex)
31387
    {
31388
      this();
3061 chandransh 31389
      this.success = success;
31390
      setSuccessIsSet(true);
1245 chandransh 31391
      this.ex = ex;
31392
    }
31393
 
31394
    /**
31395
     * Performs a deep copy on <i>other</i>.
31396
     */
3061 chandransh 31397
    public addJacketNumber_result(addJacketNumber_result other) {
31398
      __isset_bit_vector.clear();
31399
      __isset_bit_vector.or(other.__isset_bit_vector);
31400
      this.success = other.success;
1245 chandransh 31401
      if (other.isSetEx()) {
31402
        this.ex = new TransactionServiceException(other.ex);
31403
      }
31404
    }
31405
 
3061 chandransh 31406
    public addJacketNumber_result deepCopy() {
31407
      return new addJacketNumber_result(this);
1245 chandransh 31408
    }
31409
 
3430 rajveer 31410
    @Override
31411
    public void clear() {
31412
      setSuccessIsSet(false);
31413
      this.success = false;
31414
      this.ex = null;
1245 chandransh 31415
    }
31416
 
3061 chandransh 31417
    public boolean isSuccess() {
31418
      return this.success;
31419
    }
31420
 
3430 rajveer 31421
    public void setSuccess(boolean success) {
3061 chandransh 31422
      this.success = success;
31423
      setSuccessIsSet(true);
31424
    }
31425
 
31426
    public void unsetSuccess() {
31427
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
31428
    }
31429
 
3430 rajveer 31430
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 31431
    public boolean isSetSuccess() {
31432
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
31433
    }
31434
 
31435
    public void setSuccessIsSet(boolean value) {
31436
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31437
    }
31438
 
1245 chandransh 31439
    public TransactionServiceException getEx() {
31440
      return this.ex;
31441
    }
31442
 
3430 rajveer 31443
    public void setEx(TransactionServiceException ex) {
1245 chandransh 31444
      this.ex = ex;
31445
    }
31446
 
31447
    public void unsetEx() {
31448
      this.ex = null;
31449
    }
31450
 
3430 rajveer 31451
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1245 chandransh 31452
    public boolean isSetEx() {
31453
      return this.ex != null;
31454
    }
31455
 
31456
    public void setExIsSet(boolean value) {
31457
      if (!value) {
31458
        this.ex = null;
31459
      }
31460
    }
31461
 
31462
    public void setFieldValue(_Fields field, Object value) {
31463
      switch (field) {
3061 chandransh 31464
      case SUCCESS:
31465
        if (value == null) {
31466
          unsetSuccess();
31467
        } else {
31468
          setSuccess((Boolean)value);
31469
        }
31470
        break;
31471
 
1245 chandransh 31472
      case EX:
31473
        if (value == null) {
31474
          unsetEx();
31475
        } else {
31476
          setEx((TransactionServiceException)value);
31477
        }
31478
        break;
31479
 
31480
      }
31481
    }
31482
 
31483
    public Object getFieldValue(_Fields field) {
31484
      switch (field) {
3061 chandransh 31485
      case SUCCESS:
3430 rajveer 31486
        return Boolean.valueOf(isSuccess());
3061 chandransh 31487
 
1245 chandransh 31488
      case EX:
31489
        return getEx();
31490
 
31491
      }
31492
      throw new IllegalStateException();
31493
    }
31494
 
3430 rajveer 31495
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31496
    public boolean isSet(_Fields field) {
31497
      if (field == null) {
31498
        throw new IllegalArgumentException();
31499
      }
1245 chandransh 31500
 
31501
      switch (field) {
3061 chandransh 31502
      case SUCCESS:
31503
        return isSetSuccess();
1245 chandransh 31504
      case EX:
31505
        return isSetEx();
31506
      }
31507
      throw new IllegalStateException();
31508
    }
31509
 
31510
    @Override
31511
    public boolean equals(Object that) {
31512
      if (that == null)
31513
        return false;
3061 chandransh 31514
      if (that instanceof addJacketNumber_result)
31515
        return this.equals((addJacketNumber_result)that);
1245 chandransh 31516
      return false;
31517
    }
31518
 
3061 chandransh 31519
    public boolean equals(addJacketNumber_result that) {
1245 chandransh 31520
      if (that == null)
31521
        return false;
31522
 
3061 chandransh 31523
      boolean this_present_success = true;
31524
      boolean that_present_success = true;
31525
      if (this_present_success || that_present_success) {
31526
        if (!(this_present_success && that_present_success))
31527
          return false;
31528
        if (this.success != that.success)
31529
          return false;
31530
      }
31531
 
1245 chandransh 31532
      boolean this_present_ex = true && this.isSetEx();
31533
      boolean that_present_ex = true && that.isSetEx();
31534
      if (this_present_ex || that_present_ex) {
31535
        if (!(this_present_ex && that_present_ex))
31536
          return false;
31537
        if (!this.ex.equals(that.ex))
31538
          return false;
31539
      }
31540
 
31541
      return true;
31542
    }
31543
 
31544
    @Override
31545
    public int hashCode() {
31546
      return 0;
31547
    }
31548
 
3061 chandransh 31549
    public int compareTo(addJacketNumber_result other) {
1245 chandransh 31550
      if (!getClass().equals(other.getClass())) {
31551
        return getClass().getName().compareTo(other.getClass().getName());
31552
      }
31553
 
31554
      int lastComparison = 0;
3061 chandransh 31555
      addJacketNumber_result typedOther = (addJacketNumber_result)other;
1245 chandransh 31556
 
3430 rajveer 31557
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3061 chandransh 31558
      if (lastComparison != 0) {
31559
        return lastComparison;
31560
      }
3430 rajveer 31561
      if (isSetSuccess()) {
31562
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31563
        if (lastComparison != 0) {
31564
          return lastComparison;
31565
        }
3061 chandransh 31566
      }
3430 rajveer 31567
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1245 chandransh 31568
      if (lastComparison != 0) {
31569
        return lastComparison;
31570
      }
3430 rajveer 31571
      if (isSetEx()) {
31572
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
31573
        if (lastComparison != 0) {
31574
          return lastComparison;
31575
        }
1245 chandransh 31576
      }
31577
      return 0;
31578
    }
31579
 
3430 rajveer 31580
    public _Fields fieldForId(int fieldId) {
31581
      return _Fields.findByThriftId(fieldId);
31582
    }
31583
 
31584
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31585
      org.apache.thrift.protocol.TField field;
1245 chandransh 31586
      iprot.readStructBegin();
31587
      while (true)
31588
      {
31589
        field = iprot.readFieldBegin();
3430 rajveer 31590
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1245 chandransh 31591
          break;
31592
        }
3430 rajveer 31593
        switch (field.id) {
31594
          case 0: // SUCCESS
31595
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
31596
              this.success = iprot.readBool();
31597
              setSuccessIsSet(true);
31598
            } else { 
31599
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31600
            }
31601
            break;
31602
          case 1: // EX
31603
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
31604
              this.ex = new TransactionServiceException();
31605
              this.ex.read(iprot);
31606
            } else { 
31607
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31608
            }
31609
            break;
31610
          default:
31611
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1245 chandransh 31612
        }
3430 rajveer 31613
        iprot.readFieldEnd();
1245 chandransh 31614
      }
31615
      iprot.readStructEnd();
31616
      validate();
31617
    }
31618
 
3430 rajveer 31619
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1245 chandransh 31620
      oprot.writeStructBegin(STRUCT_DESC);
31621
 
3061 chandransh 31622
      if (this.isSetSuccess()) {
31623
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31624
        oprot.writeBool(this.success);
31625
        oprot.writeFieldEnd();
31626
      } else if (this.isSetEx()) {
1245 chandransh 31627
        oprot.writeFieldBegin(EX_FIELD_DESC);
31628
        this.ex.write(oprot);
31629
        oprot.writeFieldEnd();
31630
      }
31631
      oprot.writeFieldStop();
31632
      oprot.writeStructEnd();
31633
    }
31634
 
31635
    @Override
31636
    public String toString() {
3061 chandransh 31637
      StringBuilder sb = new StringBuilder("addJacketNumber_result(");
1245 chandransh 31638
      boolean first = true;
31639
 
3061 chandransh 31640
      sb.append("success:");
31641
      sb.append(this.success);
31642
      first = false;
31643
      if (!first) sb.append(", ");
1245 chandransh 31644
      sb.append("ex:");
31645
      if (this.ex == null) {
31646
        sb.append("null");
31647
      } else {
31648
        sb.append(this.ex);
31649
      }
31650
      first = false;
31651
      sb.append(")");
31652
      return sb.toString();
31653
    }
31654
 
3430 rajveer 31655
    public void validate() throws org.apache.thrift.TException {
1245 chandransh 31656
      // check for required fields
31657
    }
31658
 
3430 rajveer 31659
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31660
      try {
31661
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31662
      } catch (org.apache.thrift.TException te) {
31663
        throw new java.io.IOException(te);
31664
      }
31665
    }
31666
 
31667
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31668
      try {
31669
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31670
      } catch (org.apache.thrift.TException te) {
31671
        throw new java.io.IOException(te);
31672
      }
31673
    }
31674
 
1245 chandransh 31675
  }
31676
 
3430 rajveer 31677
  public static class markOrdersAsManifested_args implements org.apache.thrift.TBase<markOrdersAsManifested_args, markOrdersAsManifested_args._Fields>, java.io.Serializable, Cloneable   {
31678
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsManifested_args");
1406 ankur.sing 31679
 
3430 rajveer 31680
    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);
31681
    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);
31682
    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 31683
 
3430 rajveer 31684
    private long warehouseId; // required
31685
    private long providerId; // required
31686
    private boolean cod; // required
1406 ankur.sing 31687
 
31688
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 31689
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 31690
      WAREHOUSE_ID((short)1, "warehouseId"),
31691
      PROVIDER_ID((short)2, "providerId"),
31692
      COD((short)3, "cod");
1406 ankur.sing 31693
 
31694
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31695
 
31696
      static {
31697
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31698
          byName.put(field.getFieldName(), field);
31699
        }
31700
      }
31701
 
31702
      /**
31703
       * Find the _Fields constant that matches fieldId, or null if its not found.
31704
       */
31705
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 31706
        switch(fieldId) {
31707
          case 1: // WAREHOUSE_ID
31708
            return WAREHOUSE_ID;
31709
          case 2: // PROVIDER_ID
31710
            return PROVIDER_ID;
31711
          case 3: // COD
31712
            return COD;
31713
          default:
31714
            return null;
31715
        }
1406 ankur.sing 31716
      }
31717
 
31718
      /**
31719
       * Find the _Fields constant that matches fieldId, throwing an exception
31720
       * if it is not found.
31721
       */
31722
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31723
        _Fields fields = findByThriftId(fieldId);
31724
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31725
        return fields;
31726
      }
31727
 
31728
      /**
31729
       * Find the _Fields constant that matches name, or null if its not found.
31730
       */
31731
      public static _Fields findByName(String name) {
31732
        return byName.get(name);
31733
      }
31734
 
31735
      private final short _thriftId;
31736
      private final String _fieldName;
31737
 
31738
      _Fields(short thriftId, String fieldName) {
31739
        _thriftId = thriftId;
31740
        _fieldName = fieldName;
31741
      }
31742
 
31743
      public short getThriftFieldId() {
31744
        return _thriftId;
31745
      }
31746
 
31747
      public String getFieldName() {
31748
        return _fieldName;
31749
      }
31750
    }
31751
 
31752
    // isset id assignments
3061 chandransh 31753
    private static final int __WAREHOUSEID_ISSET_ID = 0;
31754
    private static final int __PROVIDERID_ISSET_ID = 1;
31755
    private static final int __COD_ISSET_ID = 2;
31756
    private BitSet __isset_bit_vector = new BitSet(3);
1406 ankur.sing 31757
 
3430 rajveer 31758
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1406 ankur.sing 31759
    static {
3430 rajveer 31760
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31761
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31762
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31763
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31764
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31765
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31766
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
31767
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31768
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsManifested_args.class, metaDataMap);
1406 ankur.sing 31769
    }
31770
 
3061 chandransh 31771
    public markOrdersAsManifested_args() {
1406 ankur.sing 31772
    }
31773
 
3061 chandransh 31774
    public markOrdersAsManifested_args(
31775
      long warehouseId,
1406 ankur.sing 31776
      long providerId,
3061 chandransh 31777
      boolean cod)
1406 ankur.sing 31778
    {
31779
      this();
3061 chandransh 31780
      this.warehouseId = warehouseId;
31781
      setWarehouseIdIsSet(true);
1406 ankur.sing 31782
      this.providerId = providerId;
31783
      setProviderIdIsSet(true);
3061 chandransh 31784
      this.cod = cod;
31785
      setCodIsSet(true);
1406 ankur.sing 31786
    }
31787
 
31788
    /**
31789
     * Performs a deep copy on <i>other</i>.
31790
     */
3061 chandransh 31791
    public markOrdersAsManifested_args(markOrdersAsManifested_args other) {
1406 ankur.sing 31792
      __isset_bit_vector.clear();
31793
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 31794
      this.warehouseId = other.warehouseId;
1406 ankur.sing 31795
      this.providerId = other.providerId;
3061 chandransh 31796
      this.cod = other.cod;
1406 ankur.sing 31797
    }
31798
 
3061 chandransh 31799
    public markOrdersAsManifested_args deepCopy() {
31800
      return new markOrdersAsManifested_args(this);
1406 ankur.sing 31801
    }
31802
 
3430 rajveer 31803
    @Override
31804
    public void clear() {
31805
      setWarehouseIdIsSet(false);
31806
      this.warehouseId = 0;
31807
      setProviderIdIsSet(false);
31808
      this.providerId = 0;
31809
      setCodIsSet(false);
31810
      this.cod = false;
1406 ankur.sing 31811
    }
31812
 
3061 chandransh 31813
    public long getWarehouseId() {
31814
      return this.warehouseId;
31815
    }
31816
 
3430 rajveer 31817
    public void setWarehouseId(long warehouseId) {
3061 chandransh 31818
      this.warehouseId = warehouseId;
31819
      setWarehouseIdIsSet(true);
31820
    }
31821
 
31822
    public void unsetWarehouseId() {
31823
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
31824
    }
31825
 
3430 rajveer 31826
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
3061 chandransh 31827
    public boolean isSetWarehouseId() {
31828
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
31829
    }
31830
 
31831
    public void setWarehouseIdIsSet(boolean value) {
31832
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
31833
    }
31834
 
1406 ankur.sing 31835
    public long getProviderId() {
31836
      return this.providerId;
31837
    }
31838
 
3430 rajveer 31839
    public void setProviderId(long providerId) {
1406 ankur.sing 31840
      this.providerId = providerId;
31841
      setProviderIdIsSet(true);
31842
    }
31843
 
31844
    public void unsetProviderId() {
31845
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
31846
    }
31847
 
3430 rajveer 31848
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1406 ankur.sing 31849
    public boolean isSetProviderId() {
31850
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
31851
    }
31852
 
31853
    public void setProviderIdIsSet(boolean value) {
31854
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
31855
    }
31856
 
3061 chandransh 31857
    public boolean isCod() {
31858
      return this.cod;
1406 ankur.sing 31859
    }
31860
 
3430 rajveer 31861
    public void setCod(boolean cod) {
3061 chandransh 31862
      this.cod = cod;
31863
      setCodIsSet(true);
1406 ankur.sing 31864
    }
31865
 
3061 chandransh 31866
    public void unsetCod() {
31867
      __isset_bit_vector.clear(__COD_ISSET_ID);
1406 ankur.sing 31868
    }
31869
 
3430 rajveer 31870
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
3061 chandransh 31871
    public boolean isSetCod() {
31872
      return __isset_bit_vector.get(__COD_ISSET_ID);
1406 ankur.sing 31873
    }
31874
 
3061 chandransh 31875
    public void setCodIsSet(boolean value) {
31876
      __isset_bit_vector.set(__COD_ISSET_ID, value);
1406 ankur.sing 31877
    }
31878
 
31879
    public void setFieldValue(_Fields field, Object value) {
31880
      switch (field) {
3061 chandransh 31881
      case WAREHOUSE_ID:
31882
        if (value == null) {
31883
          unsetWarehouseId();
31884
        } else {
31885
          setWarehouseId((Long)value);
31886
        }
31887
        break;
31888
 
1406 ankur.sing 31889
      case PROVIDER_ID:
31890
        if (value == null) {
31891
          unsetProviderId();
31892
        } else {
31893
          setProviderId((Long)value);
31894
        }
31895
        break;
31896
 
3061 chandransh 31897
      case COD:
1406 ankur.sing 31898
        if (value == null) {
3061 chandransh 31899
          unsetCod();
1406 ankur.sing 31900
        } else {
3061 chandransh 31901
          setCod((Boolean)value);
1406 ankur.sing 31902
        }
31903
        break;
31904
 
31905
      }
31906
    }
31907
 
31908
    public Object getFieldValue(_Fields field) {
31909
      switch (field) {
3061 chandransh 31910
      case WAREHOUSE_ID:
3430 rajveer 31911
        return Long.valueOf(getWarehouseId());
3061 chandransh 31912
 
1406 ankur.sing 31913
      case PROVIDER_ID:
3430 rajveer 31914
        return Long.valueOf(getProviderId());
1406 ankur.sing 31915
 
3061 chandransh 31916
      case COD:
3430 rajveer 31917
        return Boolean.valueOf(isCod());
1406 ankur.sing 31918
 
31919
      }
31920
      throw new IllegalStateException();
31921
    }
31922
 
3430 rajveer 31923
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31924
    public boolean isSet(_Fields field) {
31925
      if (field == null) {
31926
        throw new IllegalArgumentException();
31927
      }
1406 ankur.sing 31928
 
31929
      switch (field) {
3061 chandransh 31930
      case WAREHOUSE_ID:
31931
        return isSetWarehouseId();
1406 ankur.sing 31932
      case PROVIDER_ID:
31933
        return isSetProviderId();
3061 chandransh 31934
      case COD:
31935
        return isSetCod();
1406 ankur.sing 31936
      }
31937
      throw new IllegalStateException();
31938
    }
31939
 
31940
    @Override
31941
    public boolean equals(Object that) {
31942
      if (that == null)
31943
        return false;
3061 chandransh 31944
      if (that instanceof markOrdersAsManifested_args)
31945
        return this.equals((markOrdersAsManifested_args)that);
1406 ankur.sing 31946
      return false;
31947
    }
31948
 
3061 chandransh 31949
    public boolean equals(markOrdersAsManifested_args that) {
1406 ankur.sing 31950
      if (that == null)
31951
        return false;
31952
 
3061 chandransh 31953
      boolean this_present_warehouseId = true;
31954
      boolean that_present_warehouseId = true;
31955
      if (this_present_warehouseId || that_present_warehouseId) {
31956
        if (!(this_present_warehouseId && that_present_warehouseId))
31957
          return false;
31958
        if (this.warehouseId != that.warehouseId)
31959
          return false;
31960
      }
31961
 
1406 ankur.sing 31962
      boolean this_present_providerId = true;
31963
      boolean that_present_providerId = true;
31964
      if (this_present_providerId || that_present_providerId) {
31965
        if (!(this_present_providerId && that_present_providerId))
31966
          return false;
31967
        if (this.providerId != that.providerId)
31968
          return false;
31969
      }
31970
 
3061 chandransh 31971
      boolean this_present_cod = true;
31972
      boolean that_present_cod = true;
31973
      if (this_present_cod || that_present_cod) {
31974
        if (!(this_present_cod && that_present_cod))
1406 ankur.sing 31975
          return false;
3061 chandransh 31976
        if (this.cod != that.cod)
1406 ankur.sing 31977
          return false;
31978
      }
31979
 
31980
      return true;
31981
    }
31982
 
31983
    @Override
31984
    public int hashCode() {
31985
      return 0;
31986
    }
31987
 
3061 chandransh 31988
    public int compareTo(markOrdersAsManifested_args other) {
1406 ankur.sing 31989
      if (!getClass().equals(other.getClass())) {
31990
        return getClass().getName().compareTo(other.getClass().getName());
31991
      }
31992
 
31993
      int lastComparison = 0;
3061 chandransh 31994
      markOrdersAsManifested_args typedOther = (markOrdersAsManifested_args)other;
1406 ankur.sing 31995
 
3430 rajveer 31996
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
3061 chandransh 31997
      if (lastComparison != 0) {
31998
        return lastComparison;
31999
      }
3430 rajveer 32000
      if (isSetWarehouseId()) {
32001
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
32002
        if (lastComparison != 0) {
32003
          return lastComparison;
32004
        }
3061 chandransh 32005
      }
3430 rajveer 32006
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1406 ankur.sing 32007
      if (lastComparison != 0) {
32008
        return lastComparison;
32009
      }
3430 rajveer 32010
      if (isSetProviderId()) {
32011
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
32012
        if (lastComparison != 0) {
32013
          return lastComparison;
32014
        }
1406 ankur.sing 32015
      }
3430 rajveer 32016
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
1406 ankur.sing 32017
      if (lastComparison != 0) {
32018
        return lastComparison;
32019
      }
3430 rajveer 32020
      if (isSetCod()) {
32021
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
32022
        if (lastComparison != 0) {
32023
          return lastComparison;
32024
        }
1406 ankur.sing 32025
      }
32026
      return 0;
32027
    }
32028
 
3430 rajveer 32029
    public _Fields fieldForId(int fieldId) {
32030
      return _Fields.findByThriftId(fieldId);
32031
    }
32032
 
32033
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32034
      org.apache.thrift.protocol.TField field;
1406 ankur.sing 32035
      iprot.readStructBegin();
32036
      while (true)
32037
      {
32038
        field = iprot.readFieldBegin();
3430 rajveer 32039
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1406 ankur.sing 32040
          break;
32041
        }
3430 rajveer 32042
        switch (field.id) {
32043
          case 1: // WAREHOUSE_ID
32044
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32045
              this.warehouseId = iprot.readI64();
32046
              setWarehouseIdIsSet(true);
32047
            } else { 
32048
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32049
            }
32050
            break;
32051
          case 2: // PROVIDER_ID
32052
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32053
              this.providerId = iprot.readI64();
32054
              setProviderIdIsSet(true);
32055
            } else { 
32056
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32057
            }
32058
            break;
32059
          case 3: // COD
32060
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32061
              this.cod = iprot.readBool();
32062
              setCodIsSet(true);
32063
            } else { 
32064
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32065
            }
32066
            break;
32067
          default:
32068
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1406 ankur.sing 32069
        }
3430 rajveer 32070
        iprot.readFieldEnd();
1406 ankur.sing 32071
      }
32072
      iprot.readStructEnd();
32073
      validate();
32074
    }
32075
 
3430 rajveer 32076
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1406 ankur.sing 32077
      validate();
32078
 
32079
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 32080
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
32081
      oprot.writeI64(this.warehouseId);
32082
      oprot.writeFieldEnd();
1406 ankur.sing 32083
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
32084
      oprot.writeI64(this.providerId);
32085
      oprot.writeFieldEnd();
3061 chandransh 32086
      oprot.writeFieldBegin(COD_FIELD_DESC);
32087
      oprot.writeBool(this.cod);
1406 ankur.sing 32088
      oprot.writeFieldEnd();
32089
      oprot.writeFieldStop();
32090
      oprot.writeStructEnd();
32091
    }
32092
 
32093
    @Override
32094
    public String toString() {
3061 chandransh 32095
      StringBuilder sb = new StringBuilder("markOrdersAsManifested_args(");
1406 ankur.sing 32096
      boolean first = true;
32097
 
3061 chandransh 32098
      sb.append("warehouseId:");
32099
      sb.append(this.warehouseId);
32100
      first = false;
32101
      if (!first) sb.append(", ");
1406 ankur.sing 32102
      sb.append("providerId:");
32103
      sb.append(this.providerId);
32104
      first = false;
32105
      if (!first) sb.append(", ");
3061 chandransh 32106
      sb.append("cod:");
32107
      sb.append(this.cod);
1406 ankur.sing 32108
      first = false;
32109
      sb.append(")");
32110
      return sb.toString();
32111
    }
32112
 
3430 rajveer 32113
    public void validate() throws org.apache.thrift.TException {
1406 ankur.sing 32114
      // check for required fields
32115
    }
32116
 
3430 rajveer 32117
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32118
      try {
32119
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32120
      } catch (org.apache.thrift.TException te) {
32121
        throw new java.io.IOException(te);
32122
      }
32123
    }
32124
 
32125
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32126
      try {
32127
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32128
      } catch (org.apache.thrift.TException te) {
32129
        throw new java.io.IOException(te);
32130
      }
32131
    }
32132
 
1406 ankur.sing 32133
  }
32134
 
3430 rajveer 32135
  public static class markOrdersAsManifested_result implements org.apache.thrift.TBase<markOrdersAsManifested_result, markOrdersAsManifested_result._Fields>, java.io.Serializable, Cloneable   {
32136
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsManifested_result");
1406 ankur.sing 32137
 
3430 rajveer 32138
    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);
32139
    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 32140
 
3430 rajveer 32141
    private boolean success; // required
32142
    private TransactionServiceException ex; // required
1406 ankur.sing 32143
 
32144
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32145
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 32146
      SUCCESS((short)0, "success"),
32147
      EX((short)1, "ex");
1406 ankur.sing 32148
 
32149
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32150
 
32151
      static {
32152
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32153
          byName.put(field.getFieldName(), field);
32154
        }
32155
      }
32156
 
32157
      /**
32158
       * Find the _Fields constant that matches fieldId, or null if its not found.
32159
       */
32160
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32161
        switch(fieldId) {
32162
          case 0: // SUCCESS
32163
            return SUCCESS;
32164
          case 1: // EX
32165
            return EX;
32166
          default:
32167
            return null;
32168
        }
1406 ankur.sing 32169
      }
32170
 
32171
      /**
32172
       * Find the _Fields constant that matches fieldId, throwing an exception
32173
       * if it is not found.
32174
       */
32175
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32176
        _Fields fields = findByThriftId(fieldId);
32177
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32178
        return fields;
32179
      }
32180
 
32181
      /**
32182
       * Find the _Fields constant that matches name, or null if its not found.
32183
       */
32184
      public static _Fields findByName(String name) {
32185
        return byName.get(name);
32186
      }
32187
 
32188
      private final short _thriftId;
32189
      private final String _fieldName;
32190
 
32191
      _Fields(short thriftId, String fieldName) {
32192
        _thriftId = thriftId;
32193
        _fieldName = fieldName;
32194
      }
32195
 
32196
      public short getThriftFieldId() {
32197
        return _thriftId;
32198
      }
32199
 
32200
      public String getFieldName() {
32201
        return _fieldName;
32202
      }
32203
    }
32204
 
32205
    // isset id assignments
3061 chandransh 32206
    private static final int __SUCCESS_ISSET_ID = 0;
32207
    private BitSet __isset_bit_vector = new BitSet(1);
1406 ankur.sing 32208
 
3430 rajveer 32209
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1406 ankur.sing 32210
    static {
3430 rajveer 32211
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32212
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32213
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
32214
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32215
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32216
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32217
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsManifested_result.class, metaDataMap);
1406 ankur.sing 32218
    }
32219
 
3061 chandransh 32220
    public markOrdersAsManifested_result() {
1406 ankur.sing 32221
    }
32222
 
3061 chandransh 32223
    public markOrdersAsManifested_result(
32224
      boolean success,
32225
      TransactionServiceException ex)
1406 ankur.sing 32226
    {
32227
      this();
32228
      this.success = success;
3061 chandransh 32229
      setSuccessIsSet(true);
32230
      this.ex = ex;
1406 ankur.sing 32231
    }
32232
 
32233
    /**
32234
     * Performs a deep copy on <i>other</i>.
32235
     */
3061 chandransh 32236
    public markOrdersAsManifested_result(markOrdersAsManifested_result other) {
32237
      __isset_bit_vector.clear();
32238
      __isset_bit_vector.or(other.__isset_bit_vector);
32239
      this.success = other.success;
32240
      if (other.isSetEx()) {
32241
        this.ex = new TransactionServiceException(other.ex);
1406 ankur.sing 32242
      }
32243
    }
32244
 
3061 chandransh 32245
    public markOrdersAsManifested_result deepCopy() {
32246
      return new markOrdersAsManifested_result(this);
1406 ankur.sing 32247
    }
32248
 
3430 rajveer 32249
    @Override
32250
    public void clear() {
32251
      setSuccessIsSet(false);
32252
      this.success = false;
32253
      this.ex = null;
1406 ankur.sing 32254
    }
32255
 
3061 chandransh 32256
    public boolean isSuccess() {
32257
      return this.success;
1406 ankur.sing 32258
    }
32259
 
3430 rajveer 32260
    public void setSuccess(boolean success) {
3061 chandransh 32261
      this.success = success;
32262
      setSuccessIsSet(true);
1406 ankur.sing 32263
    }
32264
 
3061 chandransh 32265
    public void unsetSuccess() {
32266
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
1406 ankur.sing 32267
    }
32268
 
3430 rajveer 32269
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 32270
    public boolean isSetSuccess() {
32271
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
1406 ankur.sing 32272
    }
32273
 
3061 chandransh 32274
    public void setSuccessIsSet(boolean value) {
32275
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32276
    }
32277
 
32278
    public TransactionServiceException getEx() {
32279
      return this.ex;
32280
    }
32281
 
3430 rajveer 32282
    public void setEx(TransactionServiceException ex) {
3061 chandransh 32283
      this.ex = ex;
1406 ankur.sing 32284
    }
32285
 
3061 chandransh 32286
    public void unsetEx() {
32287
      this.ex = null;
1406 ankur.sing 32288
    }
32289
 
3430 rajveer 32290
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 32291
    public boolean isSetEx() {
32292
      return this.ex != null;
1406 ankur.sing 32293
    }
32294
 
3061 chandransh 32295
    public void setExIsSet(boolean value) {
1406 ankur.sing 32296
      if (!value) {
3061 chandransh 32297
        this.ex = null;
1406 ankur.sing 32298
      }
32299
    }
32300
 
32301
    public void setFieldValue(_Fields field, Object value) {
32302
      switch (field) {
32303
      case SUCCESS:
32304
        if (value == null) {
32305
          unsetSuccess();
32306
        } else {
3061 chandransh 32307
          setSuccess((Boolean)value);
1406 ankur.sing 32308
        }
32309
        break;
32310
 
3061 chandransh 32311
      case EX:
32312
        if (value == null) {
32313
          unsetEx();
32314
        } else {
32315
          setEx((TransactionServiceException)value);
32316
        }
32317
        break;
32318
 
1406 ankur.sing 32319
      }
32320
    }
32321
 
32322
    public Object getFieldValue(_Fields field) {
32323
      switch (field) {
32324
      case SUCCESS:
3430 rajveer 32325
        return Boolean.valueOf(isSuccess());
1406 ankur.sing 32326
 
3061 chandransh 32327
      case EX:
32328
        return getEx();
32329
 
1406 ankur.sing 32330
      }
32331
      throw new IllegalStateException();
32332
    }
32333
 
3430 rajveer 32334
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32335
    public boolean isSet(_Fields field) {
32336
      if (field == null) {
32337
        throw new IllegalArgumentException();
32338
      }
1406 ankur.sing 32339
 
32340
      switch (field) {
32341
      case SUCCESS:
32342
        return isSetSuccess();
3061 chandransh 32343
      case EX:
32344
        return isSetEx();
1406 ankur.sing 32345
      }
32346
      throw new IllegalStateException();
32347
    }
32348
 
32349
    @Override
32350
    public boolean equals(Object that) {
32351
      if (that == null)
32352
        return false;
3061 chandransh 32353
      if (that instanceof markOrdersAsManifested_result)
32354
        return this.equals((markOrdersAsManifested_result)that);
1406 ankur.sing 32355
      return false;
32356
    }
32357
 
3061 chandransh 32358
    public boolean equals(markOrdersAsManifested_result that) {
1406 ankur.sing 32359
      if (that == null)
32360
        return false;
32361
 
3061 chandransh 32362
      boolean this_present_success = true;
32363
      boolean that_present_success = true;
1406 ankur.sing 32364
      if (this_present_success || that_present_success) {
32365
        if (!(this_present_success && that_present_success))
32366
          return false;
3061 chandransh 32367
        if (this.success != that.success)
1406 ankur.sing 32368
          return false;
32369
      }
32370
 
3061 chandransh 32371
      boolean this_present_ex = true && this.isSetEx();
32372
      boolean that_present_ex = true && that.isSetEx();
32373
      if (this_present_ex || that_present_ex) {
32374
        if (!(this_present_ex && that_present_ex))
32375
          return false;
32376
        if (!this.ex.equals(that.ex))
32377
          return false;
32378
      }
32379
 
1406 ankur.sing 32380
      return true;
32381
    }
32382
 
32383
    @Override
32384
    public int hashCode() {
32385
      return 0;
32386
    }
32387
 
3061 chandransh 32388
    public int compareTo(markOrdersAsManifested_result other) {
1406 ankur.sing 32389
      if (!getClass().equals(other.getClass())) {
32390
        return getClass().getName().compareTo(other.getClass().getName());
32391
      }
32392
 
32393
      int lastComparison = 0;
3061 chandransh 32394
      markOrdersAsManifested_result typedOther = (markOrdersAsManifested_result)other;
1406 ankur.sing 32395
 
3430 rajveer 32396
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1406 ankur.sing 32397
      if (lastComparison != 0) {
32398
        return lastComparison;
32399
      }
3430 rajveer 32400
      if (isSetSuccess()) {
32401
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32402
        if (lastComparison != 0) {
32403
          return lastComparison;
32404
        }
1406 ankur.sing 32405
      }
3430 rajveer 32406
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
3061 chandransh 32407
      if (lastComparison != 0) {
32408
        return lastComparison;
32409
      }
3430 rajveer 32410
      if (isSetEx()) {
32411
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
32412
        if (lastComparison != 0) {
32413
          return lastComparison;
32414
        }
3061 chandransh 32415
      }
1406 ankur.sing 32416
      return 0;
32417
    }
32418
 
3430 rajveer 32419
    public _Fields fieldForId(int fieldId) {
32420
      return _Fields.findByThriftId(fieldId);
32421
    }
32422
 
32423
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32424
      org.apache.thrift.protocol.TField field;
1406 ankur.sing 32425
      iprot.readStructBegin();
32426
      while (true)
32427
      {
32428
        field = iprot.readFieldBegin();
3430 rajveer 32429
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1406 ankur.sing 32430
          break;
32431
        }
3430 rajveer 32432
        switch (field.id) {
32433
          case 0: // SUCCESS
32434
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32435
              this.success = iprot.readBool();
32436
              setSuccessIsSet(true);
32437
            } else { 
32438
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32439
            }
32440
            break;
32441
          case 1: // EX
32442
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32443
              this.ex = new TransactionServiceException();
32444
              this.ex.read(iprot);
32445
            } else { 
32446
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32447
            }
32448
            break;
32449
          default:
32450
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1406 ankur.sing 32451
        }
3430 rajveer 32452
        iprot.readFieldEnd();
1406 ankur.sing 32453
      }
32454
      iprot.readStructEnd();
32455
      validate();
32456
    }
32457
 
3430 rajveer 32458
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1406 ankur.sing 32459
      oprot.writeStructBegin(STRUCT_DESC);
32460
 
32461
      if (this.isSetSuccess()) {
32462
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 32463
        oprot.writeBool(this.success);
1406 ankur.sing 32464
        oprot.writeFieldEnd();
3061 chandransh 32465
      } else if (this.isSetEx()) {
32466
        oprot.writeFieldBegin(EX_FIELD_DESC);
32467
        this.ex.write(oprot);
32468
        oprot.writeFieldEnd();
1406 ankur.sing 32469
      }
32470
      oprot.writeFieldStop();
32471
      oprot.writeStructEnd();
32472
    }
32473
 
32474
    @Override
32475
    public String toString() {
3061 chandransh 32476
      StringBuilder sb = new StringBuilder("markOrdersAsManifested_result(");
1406 ankur.sing 32477
      boolean first = true;
32478
 
32479
      sb.append("success:");
3061 chandransh 32480
      sb.append(this.success);
32481
      first = false;
32482
      if (!first) sb.append(", ");
32483
      sb.append("ex:");
32484
      if (this.ex == null) {
1406 ankur.sing 32485
        sb.append("null");
32486
      } else {
3061 chandransh 32487
        sb.append(this.ex);
1406 ankur.sing 32488
      }
32489
      first = false;
32490
      sb.append(")");
32491
      return sb.toString();
32492
    }
32493
 
3430 rajveer 32494
    public void validate() throws org.apache.thrift.TException {
1406 ankur.sing 32495
      // check for required fields
32496
    }
32497
 
3430 rajveer 32498
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32499
      try {
32500
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32501
      } catch (org.apache.thrift.TException te) {
32502
        throw new java.io.IOException(te);
32503
      }
32504
    }
32505
 
32506
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32507
      try {
32508
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32509
      } catch (org.apache.thrift.TException te) {
32510
        throw new java.io.IOException(te);
32511
      }
32512
    }
32513
 
1406 ankur.sing 32514
  }
32515
 
3430 rajveer 32516
  public static class markOrdersAsPickedUp_args implements org.apache.thrift.TBase<markOrdersAsPickedUp_args, markOrdersAsPickedUp_args._Fields>, java.io.Serializable, Cloneable   {
32517
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsPickedUp_args");
305 ashish 32518
 
3430 rajveer 32519
    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);
32520
    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 32521
 
3430 rajveer 32522
    private long providerId; // required
32523
    private Map<String,String> pickupDetails; // required
305 ashish 32524
 
32525
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32526
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 32527
      PROVIDER_ID((short)1, "providerId"),
32528
      PICKUP_DETAILS((short)2, "pickupDetails");
305 ashish 32529
 
32530
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32531
 
32532
      static {
32533
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32534
          byName.put(field.getFieldName(), field);
32535
        }
32536
      }
32537
 
32538
      /**
32539
       * Find the _Fields constant that matches fieldId, or null if its not found.
32540
       */
32541
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32542
        switch(fieldId) {
32543
          case 1: // PROVIDER_ID
32544
            return PROVIDER_ID;
32545
          case 2: // PICKUP_DETAILS
32546
            return PICKUP_DETAILS;
32547
          default:
32548
            return null;
32549
        }
305 ashish 32550
      }
32551
 
32552
      /**
32553
       * Find the _Fields constant that matches fieldId, throwing an exception
32554
       * if it is not found.
32555
       */
32556
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32557
        _Fields fields = findByThriftId(fieldId);
32558
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32559
        return fields;
32560
      }
32561
 
32562
      /**
32563
       * Find the _Fields constant that matches name, or null if its not found.
32564
       */
32565
      public static _Fields findByName(String name) {
32566
        return byName.get(name);
32567
      }
32568
 
32569
      private final short _thriftId;
32570
      private final String _fieldName;
32571
 
32572
      _Fields(short thriftId, String fieldName) {
32573
        _thriftId = thriftId;
32574
        _fieldName = fieldName;
32575
      }
32576
 
32577
      public short getThriftFieldId() {
32578
        return _thriftId;
32579
      }
32580
 
32581
      public String getFieldName() {
32582
        return _fieldName;
32583
      }
32584
    }
32585
 
32586
    // isset id assignments
3061 chandransh 32587
    private static final int __PROVIDERID_ISSET_ID = 0;
32588
    private BitSet __isset_bit_vector = new BitSet(1);
305 ashish 32589
 
3430 rajveer 32590
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
305 ashish 32591
    static {
3430 rajveer 32592
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32593
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32594
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32595
      tmpMap.put(_Fields.PICKUP_DETAILS, new org.apache.thrift.meta_data.FieldMetaData("pickupDetails", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32596
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
32597
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
32598
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
32599
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32600
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsPickedUp_args.class, metaDataMap);
305 ashish 32601
    }
32602
 
3061 chandransh 32603
    public markOrdersAsPickedUp_args() {
305 ashish 32604
    }
32605
 
3061 chandransh 32606
    public markOrdersAsPickedUp_args(
32607
      long providerId,
32608
      Map<String,String> pickupDetails)
305 ashish 32609
    {
32610
      this();
3061 chandransh 32611
      this.providerId = providerId;
32612
      setProviderIdIsSet(true);
32613
      this.pickupDetails = pickupDetails;
305 ashish 32614
    }
32615
 
32616
    /**
32617
     * Performs a deep copy on <i>other</i>.
32618
     */
3061 chandransh 32619
    public markOrdersAsPickedUp_args(markOrdersAsPickedUp_args other) {
305 ashish 32620
      __isset_bit_vector.clear();
32621
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 32622
      this.providerId = other.providerId;
32623
      if (other.isSetPickupDetails()) {
32624
        Map<String,String> __this__pickupDetails = new HashMap<String,String>();
32625
        for (Map.Entry<String, String> other_element : other.pickupDetails.entrySet()) {
32626
 
32627
          String other_element_key = other_element.getKey();
32628
          String other_element_value = other_element.getValue();
32629
 
32630
          String __this__pickupDetails_copy_key = other_element_key;
32631
 
32632
          String __this__pickupDetails_copy_value = other_element_value;
32633
 
32634
          __this__pickupDetails.put(__this__pickupDetails_copy_key, __this__pickupDetails_copy_value);
32635
        }
32636
        this.pickupDetails = __this__pickupDetails;
32637
      }
305 ashish 32638
    }
32639
 
3061 chandransh 32640
    public markOrdersAsPickedUp_args deepCopy() {
32641
      return new markOrdersAsPickedUp_args(this);
305 ashish 32642
    }
32643
 
3430 rajveer 32644
    @Override
32645
    public void clear() {
32646
      setProviderIdIsSet(false);
32647
      this.providerId = 0;
32648
      this.pickupDetails = null;
305 ashish 32649
    }
32650
 
3061 chandransh 32651
    public long getProviderId() {
32652
      return this.providerId;
305 ashish 32653
    }
32654
 
3430 rajveer 32655
    public void setProviderId(long providerId) {
3061 chandransh 32656
      this.providerId = providerId;
32657
      setProviderIdIsSet(true);
305 ashish 32658
    }
32659
 
3061 chandransh 32660
    public void unsetProviderId() {
32661
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
305 ashish 32662
    }
32663
 
3430 rajveer 32664
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 32665
    public boolean isSetProviderId() {
32666
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
305 ashish 32667
    }
32668
 
3061 chandransh 32669
    public void setProviderIdIsSet(boolean value) {
32670
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
305 ashish 32671
    }
32672
 
3061 chandransh 32673
    public int getPickupDetailsSize() {
32674
      return (this.pickupDetails == null) ? 0 : this.pickupDetails.size();
305 ashish 32675
    }
32676
 
3061 chandransh 32677
    public void putToPickupDetails(String key, String val) {
32678
      if (this.pickupDetails == null) {
32679
        this.pickupDetails = new HashMap<String,String>();
32680
      }
32681
      this.pickupDetails.put(key, val);
32682
    }
32683
 
32684
    public Map<String,String> getPickupDetails() {
32685
      return this.pickupDetails;
32686
    }
32687
 
3430 rajveer 32688
    public void setPickupDetails(Map<String,String> pickupDetails) {
3061 chandransh 32689
      this.pickupDetails = pickupDetails;
305 ashish 32690
    }
32691
 
3061 chandransh 32692
    public void unsetPickupDetails() {
32693
      this.pickupDetails = null;
305 ashish 32694
    }
32695
 
3430 rajveer 32696
    /** Returns true if field pickupDetails is set (has been assigned a value) and false otherwise */
3061 chandransh 32697
    public boolean isSetPickupDetails() {
32698
      return this.pickupDetails != null;
305 ashish 32699
    }
32700
 
3061 chandransh 32701
    public void setPickupDetailsIsSet(boolean value) {
32702
      if (!value) {
32703
        this.pickupDetails = null;
32704
      }
305 ashish 32705
    }
32706
 
32707
    public void setFieldValue(_Fields field, Object value) {
32708
      switch (field) {
3061 chandransh 32709
      case PROVIDER_ID:
305 ashish 32710
        if (value == null) {
3061 chandransh 32711
          unsetProviderId();
305 ashish 32712
        } else {
3061 chandransh 32713
          setProviderId((Long)value);
305 ashish 32714
        }
32715
        break;
32716
 
3061 chandransh 32717
      case PICKUP_DETAILS:
305 ashish 32718
        if (value == null) {
3061 chandransh 32719
          unsetPickupDetails();
305 ashish 32720
        } else {
3061 chandransh 32721
          setPickupDetails((Map<String,String>)value);
305 ashish 32722
        }
32723
        break;
32724
 
32725
      }
32726
    }
32727
 
32728
    public Object getFieldValue(_Fields field) {
32729
      switch (field) {
3061 chandransh 32730
      case PROVIDER_ID:
3430 rajveer 32731
        return Long.valueOf(getProviderId());
305 ashish 32732
 
3061 chandransh 32733
      case PICKUP_DETAILS:
32734
        return getPickupDetails();
305 ashish 32735
 
32736
      }
32737
      throw new IllegalStateException();
32738
    }
32739
 
3430 rajveer 32740
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32741
    public boolean isSet(_Fields field) {
32742
      if (field == null) {
32743
        throw new IllegalArgumentException();
32744
      }
305 ashish 32745
 
32746
      switch (field) {
3061 chandransh 32747
      case PROVIDER_ID:
32748
        return isSetProviderId();
32749
      case PICKUP_DETAILS:
32750
        return isSetPickupDetails();
305 ashish 32751
      }
32752
      throw new IllegalStateException();
32753
    }
32754
 
32755
    @Override
32756
    public boolean equals(Object that) {
32757
      if (that == null)
32758
        return false;
3061 chandransh 32759
      if (that instanceof markOrdersAsPickedUp_args)
32760
        return this.equals((markOrdersAsPickedUp_args)that);
305 ashish 32761
      return false;
32762
    }
32763
 
3061 chandransh 32764
    public boolean equals(markOrdersAsPickedUp_args that) {
305 ashish 32765
      if (that == null)
32766
        return false;
32767
 
3061 chandransh 32768
      boolean this_present_providerId = true;
32769
      boolean that_present_providerId = true;
32770
      if (this_present_providerId || that_present_providerId) {
32771
        if (!(this_present_providerId && that_present_providerId))
305 ashish 32772
          return false;
3061 chandransh 32773
        if (this.providerId != that.providerId)
305 ashish 32774
          return false;
32775
      }
32776
 
3061 chandransh 32777
      boolean this_present_pickupDetails = true && this.isSetPickupDetails();
32778
      boolean that_present_pickupDetails = true && that.isSetPickupDetails();
32779
      if (this_present_pickupDetails || that_present_pickupDetails) {
32780
        if (!(this_present_pickupDetails && that_present_pickupDetails))
305 ashish 32781
          return false;
3061 chandransh 32782
        if (!this.pickupDetails.equals(that.pickupDetails))
305 ashish 32783
          return false;
32784
      }
32785
 
32786
      return true;
32787
    }
32788
 
32789
    @Override
32790
    public int hashCode() {
32791
      return 0;
32792
    }
32793
 
3430 rajveer 32794
    public int compareTo(markOrdersAsPickedUp_args other) {
32795
      if (!getClass().equals(other.getClass())) {
32796
        return getClass().getName().compareTo(other.getClass().getName());
32797
      }
32798
 
32799
      int lastComparison = 0;
32800
      markOrdersAsPickedUp_args typedOther = (markOrdersAsPickedUp_args)other;
32801
 
32802
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
32803
      if (lastComparison != 0) {
32804
        return lastComparison;
32805
      }
32806
      if (isSetProviderId()) {
32807
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
32808
        if (lastComparison != 0) {
32809
          return lastComparison;
32810
        }
32811
      }
32812
      lastComparison = Boolean.valueOf(isSetPickupDetails()).compareTo(typedOther.isSetPickupDetails());
32813
      if (lastComparison != 0) {
32814
        return lastComparison;
32815
      }
32816
      if (isSetPickupDetails()) {
32817
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupDetails, typedOther.pickupDetails);
32818
        if (lastComparison != 0) {
32819
          return lastComparison;
32820
        }
32821
      }
32822
      return 0;
32823
    }
32824
 
32825
    public _Fields fieldForId(int fieldId) {
32826
      return _Fields.findByThriftId(fieldId);
32827
    }
32828
 
32829
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32830
      org.apache.thrift.protocol.TField field;
305 ashish 32831
      iprot.readStructBegin();
32832
      while (true)
32833
      {
32834
        field = iprot.readFieldBegin();
3430 rajveer 32835
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
305 ashish 32836
          break;
32837
        }
3430 rajveer 32838
        switch (field.id) {
32839
          case 1: // PROVIDER_ID
32840
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32841
              this.providerId = iprot.readI64();
32842
              setProviderIdIsSet(true);
32843
            } else { 
32844
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32845
            }
32846
            break;
32847
          case 2: // PICKUP_DETAILS
32848
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
32849
              {
4133 chandransh 32850
                org.apache.thrift.protocol.TMap _map80 = iprot.readMapBegin();
32851
                this.pickupDetails = new HashMap<String,String>(2*_map80.size);
32852
                for (int _i81 = 0; _i81 < _map80.size; ++_i81)
3061 chandransh 32853
                {
4133 chandransh 32854
                  String _key82; // required
32855
                  String _val83; // required
32856
                  _key82 = iprot.readString();
32857
                  _val83 = iprot.readString();
32858
                  this.pickupDetails.put(_key82, _val83);
3061 chandransh 32859
                }
3430 rajveer 32860
                iprot.readMapEnd();
305 ashish 32861
              }
3430 rajveer 32862
            } else { 
32863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32864
            }
32865
            break;
32866
          default:
32867
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
305 ashish 32868
        }
3430 rajveer 32869
        iprot.readFieldEnd();
305 ashish 32870
      }
32871
      iprot.readStructEnd();
32872
      validate();
32873
    }
32874
 
3430 rajveer 32875
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
305 ashish 32876
      validate();
32877
 
32878
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 32879
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
32880
      oprot.writeI64(this.providerId);
305 ashish 32881
      oprot.writeFieldEnd();
3061 chandransh 32882
      if (this.pickupDetails != null) {
32883
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
32884
        {
3430 rajveer 32885
          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 32886
          for (Map.Entry<String, String> _iter84 : this.pickupDetails.entrySet())
3061 chandransh 32887
          {
4133 chandransh 32888
            oprot.writeString(_iter84.getKey());
32889
            oprot.writeString(_iter84.getValue());
3061 chandransh 32890
          }
32891
          oprot.writeMapEnd();
32892
        }
32893
        oprot.writeFieldEnd();
32894
      }
305 ashish 32895
      oprot.writeFieldStop();
32896
      oprot.writeStructEnd();
32897
    }
32898
 
32899
    @Override
32900
    public String toString() {
3061 chandransh 32901
      StringBuilder sb = new StringBuilder("markOrdersAsPickedUp_args(");
305 ashish 32902
      boolean first = true;
32903
 
3061 chandransh 32904
      sb.append("providerId:");
32905
      sb.append(this.providerId);
305 ashish 32906
      first = false;
32907
      if (!first) sb.append(", ");
3061 chandransh 32908
      sb.append("pickupDetails:");
32909
      if (this.pickupDetails == null) {
32910
        sb.append("null");
32911
      } else {
32912
        sb.append(this.pickupDetails);
32913
      }
305 ashish 32914
      first = false;
32915
      sb.append(")");
32916
      return sb.toString();
32917
    }
32918
 
3430 rajveer 32919
    public void validate() throws org.apache.thrift.TException {
305 ashish 32920
      // check for required fields
32921
    }
32922
 
3430 rajveer 32923
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32924
      try {
32925
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32926
      } catch (org.apache.thrift.TException te) {
32927
        throw new java.io.IOException(te);
32928
      }
32929
    }
32930
 
32931
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32932
      try {
32933
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32934
      } catch (org.apache.thrift.TException te) {
32935
        throw new java.io.IOException(te);
32936
      }
32937
    }
32938
 
305 ashish 32939
  }
32940
 
3430 rajveer 32941
  public static class markOrdersAsPickedUp_result implements org.apache.thrift.TBase<markOrdersAsPickedUp_result, markOrdersAsPickedUp_result._Fields>, java.io.Serializable, Cloneable   {
32942
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsPickedUp_result");
305 ashish 32943
 
3430 rajveer 32944
    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);
32945
    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 32946
 
3430 rajveer 32947
    private List<Order> success; // required
32948
    private TransactionServiceException ex; // required
305 ashish 32949
 
32950
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32951
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 32952
      SUCCESS((short)0, "success"),
32953
      EX((short)1, "ex");
305 ashish 32954
 
32955
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32956
 
32957
      static {
32958
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32959
          byName.put(field.getFieldName(), field);
32960
        }
32961
      }
32962
 
32963
      /**
32964
       * Find the _Fields constant that matches fieldId, or null if its not found.
32965
       */
32966
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32967
        switch(fieldId) {
32968
          case 0: // SUCCESS
32969
            return SUCCESS;
32970
          case 1: // EX
32971
            return EX;
32972
          default:
32973
            return null;
32974
        }
305 ashish 32975
      }
32976
 
32977
      /**
32978
       * Find the _Fields constant that matches fieldId, throwing an exception
32979
       * if it is not found.
32980
       */
32981
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32982
        _Fields fields = findByThriftId(fieldId);
32983
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32984
        return fields;
32985
      }
32986
 
32987
      /**
32988
       * Find the _Fields constant that matches name, or null if its not found.
32989
       */
32990
      public static _Fields findByName(String name) {
32991
        return byName.get(name);
32992
      }
32993
 
32994
      private final short _thriftId;
32995
      private final String _fieldName;
32996
 
32997
      _Fields(short thriftId, String fieldName) {
32998
        _thriftId = thriftId;
32999
        _fieldName = fieldName;
33000
      }
33001
 
33002
      public short getThriftFieldId() {
33003
        return _thriftId;
33004
      }
33005
 
33006
      public String getFieldName() {
33007
        return _fieldName;
33008
      }
33009
    }
33010
 
33011
    // isset id assignments
33012
 
3430 rajveer 33013
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
305 ashish 33014
    static {
3430 rajveer 33015
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33016
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33017
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33018
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
33019
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33020
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33021
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33022
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsPickedUp_result.class, metaDataMap);
305 ashish 33023
    }
33024
 
3061 chandransh 33025
    public markOrdersAsPickedUp_result() {
305 ashish 33026
    }
33027
 
3061 chandransh 33028
    public markOrdersAsPickedUp_result(
33029
      List<Order> success,
33030
      TransactionServiceException ex)
305 ashish 33031
    {
33032
      this();
33033
      this.success = success;
3061 chandransh 33034
      this.ex = ex;
305 ashish 33035
    }
33036
 
33037
    /**
33038
     * Performs a deep copy on <i>other</i>.
33039
     */
3061 chandransh 33040
    public markOrdersAsPickedUp_result(markOrdersAsPickedUp_result other) {
305 ashish 33041
      if (other.isSetSuccess()) {
3061 chandransh 33042
        List<Order> __this__success = new ArrayList<Order>();
33043
        for (Order other_element : other.success) {
33044
          __this__success.add(new Order(other_element));
305 ashish 33045
        }
33046
        this.success = __this__success;
33047
      }
3061 chandransh 33048
      if (other.isSetEx()) {
33049
        this.ex = new TransactionServiceException(other.ex);
33050
      }
305 ashish 33051
    }
33052
 
3061 chandransh 33053
    public markOrdersAsPickedUp_result deepCopy() {
33054
      return new markOrdersAsPickedUp_result(this);
305 ashish 33055
    }
33056
 
3430 rajveer 33057
    @Override
33058
    public void clear() {
33059
      this.success = null;
33060
      this.ex = null;
305 ashish 33061
    }
33062
 
33063
    public int getSuccessSize() {
33064
      return (this.success == null) ? 0 : this.success.size();
33065
    }
33066
 
3061 chandransh 33067
    public java.util.Iterator<Order> getSuccessIterator() {
305 ashish 33068
      return (this.success == null) ? null : this.success.iterator();
33069
    }
33070
 
3061 chandransh 33071
    public void addToSuccess(Order elem) {
305 ashish 33072
      if (this.success == null) {
3061 chandransh 33073
        this.success = new ArrayList<Order>();
305 ashish 33074
      }
33075
      this.success.add(elem);
33076
    }
33077
 
3061 chandransh 33078
    public List<Order> getSuccess() {
305 ashish 33079
      return this.success;
33080
    }
33081
 
3430 rajveer 33082
    public void setSuccess(List<Order> success) {
305 ashish 33083
      this.success = success;
33084
    }
33085
 
33086
    public void unsetSuccess() {
33087
      this.success = null;
33088
    }
33089
 
3430 rajveer 33090
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
305 ashish 33091
    public boolean isSetSuccess() {
33092
      return this.success != null;
33093
    }
33094
 
33095
    public void setSuccessIsSet(boolean value) {
33096
      if (!value) {
33097
        this.success = null;
33098
      }
33099
    }
33100
 
3061 chandransh 33101
    public TransactionServiceException getEx() {
33102
      return this.ex;
33103
    }
33104
 
3430 rajveer 33105
    public void setEx(TransactionServiceException ex) {
3061 chandransh 33106
      this.ex = ex;
33107
    }
33108
 
33109
    public void unsetEx() {
33110
      this.ex = null;
33111
    }
33112
 
3430 rajveer 33113
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 33114
    public boolean isSetEx() {
33115
      return this.ex != null;
33116
    }
33117
 
33118
    public void setExIsSet(boolean value) {
33119
      if (!value) {
33120
        this.ex = null;
33121
      }
33122
    }
33123
 
305 ashish 33124
    public void setFieldValue(_Fields field, Object value) {
33125
      switch (field) {
33126
      case SUCCESS:
33127
        if (value == null) {
33128
          unsetSuccess();
33129
        } else {
3061 chandransh 33130
          setSuccess((List<Order>)value);
305 ashish 33131
        }
33132
        break;
33133
 
3061 chandransh 33134
      case EX:
33135
        if (value == null) {
33136
          unsetEx();
33137
        } else {
33138
          setEx((TransactionServiceException)value);
33139
        }
33140
        break;
33141
 
305 ashish 33142
      }
33143
    }
33144
 
33145
    public Object getFieldValue(_Fields field) {
33146
      switch (field) {
33147
      case SUCCESS:
33148
        return getSuccess();
33149
 
3061 chandransh 33150
      case EX:
33151
        return getEx();
33152
 
305 ashish 33153
      }
33154
      throw new IllegalStateException();
33155
    }
33156
 
3430 rajveer 33157
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33158
    public boolean isSet(_Fields field) {
33159
      if (field == null) {
33160
        throw new IllegalArgumentException();
33161
      }
305 ashish 33162
 
33163
      switch (field) {
33164
      case SUCCESS:
33165
        return isSetSuccess();
3061 chandransh 33166
      case EX:
33167
        return isSetEx();
305 ashish 33168
      }
33169
      throw new IllegalStateException();
33170
    }
33171
 
33172
    @Override
33173
    public boolean equals(Object that) {
33174
      if (that == null)
33175
        return false;
3061 chandransh 33176
      if (that instanceof markOrdersAsPickedUp_result)
33177
        return this.equals((markOrdersAsPickedUp_result)that);
305 ashish 33178
      return false;
33179
    }
33180
 
3061 chandransh 33181
    public boolean equals(markOrdersAsPickedUp_result that) {
305 ashish 33182
      if (that == null)
33183
        return false;
33184
 
33185
      boolean this_present_success = true && this.isSetSuccess();
33186
      boolean that_present_success = true && that.isSetSuccess();
33187
      if (this_present_success || that_present_success) {
33188
        if (!(this_present_success && that_present_success))
33189
          return false;
33190
        if (!this.success.equals(that.success))
33191
          return false;
33192
      }
33193
 
3061 chandransh 33194
      boolean this_present_ex = true && this.isSetEx();
33195
      boolean that_present_ex = true && that.isSetEx();
33196
      if (this_present_ex || that_present_ex) {
33197
        if (!(this_present_ex && that_present_ex))
33198
          return false;
33199
        if (!this.ex.equals(that.ex))
33200
          return false;
33201
      }
33202
 
305 ashish 33203
      return true;
33204
    }
33205
 
33206
    @Override
33207
    public int hashCode() {
33208
      return 0;
33209
    }
33210
 
3061 chandransh 33211
    public int compareTo(markOrdersAsPickedUp_result other) {
305 ashish 33212
      if (!getClass().equals(other.getClass())) {
33213
        return getClass().getName().compareTo(other.getClass().getName());
33214
      }
33215
 
33216
      int lastComparison = 0;
3061 chandransh 33217
      markOrdersAsPickedUp_result typedOther = (markOrdersAsPickedUp_result)other;
305 ashish 33218
 
3430 rajveer 33219
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
305 ashish 33220
      if (lastComparison != 0) {
33221
        return lastComparison;
33222
      }
3430 rajveer 33223
      if (isSetSuccess()) {
33224
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33225
        if (lastComparison != 0) {
33226
          return lastComparison;
33227
        }
305 ashish 33228
      }
3430 rajveer 33229
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
3061 chandransh 33230
      if (lastComparison != 0) {
33231
        return lastComparison;
33232
      }
3430 rajveer 33233
      if (isSetEx()) {
33234
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
33235
        if (lastComparison != 0) {
33236
          return lastComparison;
33237
        }
3061 chandransh 33238
      }
305 ashish 33239
      return 0;
33240
    }
33241
 
3430 rajveer 33242
    public _Fields fieldForId(int fieldId) {
33243
      return _Fields.findByThriftId(fieldId);
33244
    }
33245
 
33246
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33247
      org.apache.thrift.protocol.TField field;
305 ashish 33248
      iprot.readStructBegin();
33249
      while (true)
33250
      {
33251
        field = iprot.readFieldBegin();
3430 rajveer 33252
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
305 ashish 33253
          break;
33254
        }
3430 rajveer 33255
        switch (field.id) {
33256
          case 0: // SUCCESS
33257
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33258
              {
4133 chandransh 33259
                org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();
33260
                this.success = new ArrayList<Order>(_list85.size);
33261
                for (int _i86 = 0; _i86 < _list85.size; ++_i86)
305 ashish 33262
                {
4133 chandransh 33263
                  Order _elem87; // required
33264
                  _elem87 = new Order();
33265
                  _elem87.read(iprot);
33266
                  this.success.add(_elem87);
305 ashish 33267
                }
3430 rajveer 33268
                iprot.readListEnd();
305 ashish 33269
              }
3430 rajveer 33270
            } else { 
33271
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33272
            }
33273
            break;
33274
          case 1: // EX
33275
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33276
              this.ex = new TransactionServiceException();
33277
              this.ex.read(iprot);
33278
            } else { 
33279
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33280
            }
33281
            break;
33282
          default:
33283
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
305 ashish 33284
        }
3430 rajveer 33285
        iprot.readFieldEnd();
305 ashish 33286
      }
33287
      iprot.readStructEnd();
33288
      validate();
33289
    }
33290
 
3430 rajveer 33291
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
305 ashish 33292
      oprot.writeStructBegin(STRUCT_DESC);
33293
 
33294
      if (this.isSetSuccess()) {
33295
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33296
        {
3430 rajveer 33297
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 33298
          for (Order _iter88 : this.success)
305 ashish 33299
          {
4133 chandransh 33300
            _iter88.write(oprot);
305 ashish 33301
          }
33302
          oprot.writeListEnd();
33303
        }
33304
        oprot.writeFieldEnd();
3061 chandransh 33305
      } else if (this.isSetEx()) {
33306
        oprot.writeFieldBegin(EX_FIELD_DESC);
33307
        this.ex.write(oprot);
33308
        oprot.writeFieldEnd();
305 ashish 33309
      }
33310
      oprot.writeFieldStop();
33311
      oprot.writeStructEnd();
33312
    }
33313
 
33314
    @Override
33315
    public String toString() {
3061 chandransh 33316
      StringBuilder sb = new StringBuilder("markOrdersAsPickedUp_result(");
305 ashish 33317
      boolean first = true;
33318
 
33319
      sb.append("success:");
33320
      if (this.success == null) {
33321
        sb.append("null");
33322
      } else {
33323
        sb.append(this.success);
33324
      }
33325
      first = false;
3061 chandransh 33326
      if (!first) sb.append(", ");
33327
      sb.append("ex:");
33328
      if (this.ex == null) {
33329
        sb.append("null");
33330
      } else {
33331
        sb.append(this.ex);
33332
      }
33333
      first = false;
305 ashish 33334
      sb.append(")");
33335
      return sb.toString();
33336
    }
33337
 
3430 rajveer 33338
    public void validate() throws org.apache.thrift.TException {
305 ashish 33339
      // check for required fields
33340
    }
33341
 
3430 rajveer 33342
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33343
      try {
33344
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33345
      } catch (org.apache.thrift.TException te) {
33346
        throw new java.io.IOException(te);
33347
      }
33348
    }
33349
 
33350
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33351
      try {
33352
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33353
      } catch (org.apache.thrift.TException te) {
33354
        throw new java.io.IOException(te);
33355
      }
33356
    }
33357
 
305 ashish 33358
  }
33359
 
3430 rajveer 33360
  public static class markOrdersAsDelivered_args implements org.apache.thrift.TBase<markOrdersAsDelivered_args, markOrdersAsDelivered_args._Fields>, java.io.Serializable, Cloneable   {
33361
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsDelivered_args");
305 ashish 33362
 
3430 rajveer 33363
    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);
33364
    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 33365
 
3430 rajveer 33366
    private long providerId; // required
33367
    private Map<String,String> deliveredOrders; // required
305 ashish 33368
 
33369
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33370
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 33371
      PROVIDER_ID((short)1, "providerId"),
33372
      DELIVERED_ORDERS((short)2, "deliveredOrders");
305 ashish 33373
 
33374
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33375
 
33376
      static {
33377
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33378
          byName.put(field.getFieldName(), field);
33379
        }
33380
      }
33381
 
33382
      /**
33383
       * Find the _Fields constant that matches fieldId, or null if its not found.
33384
       */
33385
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33386
        switch(fieldId) {
33387
          case 1: // PROVIDER_ID
33388
            return PROVIDER_ID;
33389
          case 2: // DELIVERED_ORDERS
33390
            return DELIVERED_ORDERS;
33391
          default:
33392
            return null;
33393
        }
305 ashish 33394
      }
33395
 
33396
      /**
33397
       * Find the _Fields constant that matches fieldId, throwing an exception
33398
       * if it is not found.
33399
       */
33400
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33401
        _Fields fields = findByThriftId(fieldId);
33402
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33403
        return fields;
33404
      }
33405
 
33406
      /**
33407
       * Find the _Fields constant that matches name, or null if its not found.
33408
       */
33409
      public static _Fields findByName(String name) {
33410
        return byName.get(name);
33411
      }
33412
 
33413
      private final short _thriftId;
33414
      private final String _fieldName;
33415
 
33416
      _Fields(short thriftId, String fieldName) {
33417
        _thriftId = thriftId;
33418
        _fieldName = fieldName;
33419
      }
33420
 
33421
      public short getThriftFieldId() {
33422
        return _thriftId;
33423
      }
33424
 
33425
      public String getFieldName() {
33426
        return _fieldName;
33427
      }
33428
    }
33429
 
33430
    // isset id assignments
3061 chandransh 33431
    private static final int __PROVIDERID_ISSET_ID = 0;
33432
    private BitSet __isset_bit_vector = new BitSet(1);
305 ashish 33433
 
3430 rajveer 33434
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
305 ashish 33435
    static {
3430 rajveer 33436
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33437
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33438
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33439
      tmpMap.put(_Fields.DELIVERED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("deliveredOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33440
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
33441
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
33442
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
33443
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33444
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_args.class, metaDataMap);
305 ashish 33445
    }
33446
 
3061 chandransh 33447
    public markOrdersAsDelivered_args() {
305 ashish 33448
    }
33449
 
3061 chandransh 33450
    public markOrdersAsDelivered_args(
33451
      long providerId,
33452
      Map<String,String> deliveredOrders)
305 ashish 33453
    {
33454
      this();
3061 chandransh 33455
      this.providerId = providerId;
33456
      setProviderIdIsSet(true);
33457
      this.deliveredOrders = deliveredOrders;
305 ashish 33458
    }
33459
 
33460
    /**
33461
     * Performs a deep copy on <i>other</i>.
33462
     */
3061 chandransh 33463
    public markOrdersAsDelivered_args(markOrdersAsDelivered_args other) {
305 ashish 33464
      __isset_bit_vector.clear();
33465
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 33466
      this.providerId = other.providerId;
33467
      if (other.isSetDeliveredOrders()) {
33468
        Map<String,String> __this__deliveredOrders = new HashMap<String,String>();
33469
        for (Map.Entry<String, String> other_element : other.deliveredOrders.entrySet()) {
305 ashish 33470
 
3061 chandransh 33471
          String other_element_key = other_element.getKey();
33472
          String other_element_value = other_element.getValue();
305 ashish 33473
 
3061 chandransh 33474
          String __this__deliveredOrders_copy_key = other_element_key;
305 ashish 33475
 
3061 chandransh 33476
          String __this__deliveredOrders_copy_value = other_element_value;
305 ashish 33477
 
3061 chandransh 33478
          __this__deliveredOrders.put(__this__deliveredOrders_copy_key, __this__deliveredOrders_copy_value);
33479
        }
33480
        this.deliveredOrders = __this__deliveredOrders;
33481
      }
305 ashish 33482
    }
33483
 
3061 chandransh 33484
    public markOrdersAsDelivered_args deepCopy() {
33485
      return new markOrdersAsDelivered_args(this);
305 ashish 33486
    }
33487
 
3430 rajveer 33488
    @Override
33489
    public void clear() {
33490
      setProviderIdIsSet(false);
33491
      this.providerId = 0;
33492
      this.deliveredOrders = null;
305 ashish 33493
    }
33494
 
3061 chandransh 33495
    public long getProviderId() {
33496
      return this.providerId;
305 ashish 33497
    }
33498
 
3430 rajveer 33499
    public void setProviderId(long providerId) {
3061 chandransh 33500
      this.providerId = providerId;
33501
      setProviderIdIsSet(true);
305 ashish 33502
    }
33503
 
3061 chandransh 33504
    public void unsetProviderId() {
33505
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
305 ashish 33506
    }
33507
 
3430 rajveer 33508
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 33509
    public boolean isSetProviderId() {
33510
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
305 ashish 33511
    }
33512
 
3061 chandransh 33513
    public void setProviderIdIsSet(boolean value) {
33514
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
305 ashish 33515
    }
33516
 
3061 chandransh 33517
    public int getDeliveredOrdersSize() {
33518
      return (this.deliveredOrders == null) ? 0 : this.deliveredOrders.size();
305 ashish 33519
    }
33520
 
3061 chandransh 33521
    public void putToDeliveredOrders(String key, String val) {
33522
      if (this.deliveredOrders == null) {
33523
        this.deliveredOrders = new HashMap<String,String>();
33524
      }
33525
      this.deliveredOrders.put(key, val);
305 ashish 33526
    }
33527
 
3061 chandransh 33528
    public Map<String,String> getDeliveredOrders() {
33529
      return this.deliveredOrders;
305 ashish 33530
    }
33531
 
3430 rajveer 33532
    public void setDeliveredOrders(Map<String,String> deliveredOrders) {
3061 chandransh 33533
      this.deliveredOrders = deliveredOrders;
305 ashish 33534
    }
33535
 
3061 chandransh 33536
    public void unsetDeliveredOrders() {
33537
      this.deliveredOrders = null;
305 ashish 33538
    }
33539
 
3430 rajveer 33540
    /** Returns true if field deliveredOrders is set (has been assigned a value) and false otherwise */
3061 chandransh 33541
    public boolean isSetDeliveredOrders() {
33542
      return this.deliveredOrders != null;
305 ashish 33543
    }
33544
 
3061 chandransh 33545
    public void setDeliveredOrdersIsSet(boolean value) {
305 ashish 33546
      if (!value) {
3061 chandransh 33547
        this.deliveredOrders = null;
305 ashish 33548
      }
33549
    }
33550
 
33551
    public void setFieldValue(_Fields field, Object value) {
33552
      switch (field) {
3061 chandransh 33553
      case PROVIDER_ID:
305 ashish 33554
        if (value == null) {
3061 chandransh 33555
          unsetProviderId();
305 ashish 33556
        } else {
3061 chandransh 33557
          setProviderId((Long)value);
305 ashish 33558
        }
33559
        break;
33560
 
3061 chandransh 33561
      case DELIVERED_ORDERS:
305 ashish 33562
        if (value == null) {
3061 chandransh 33563
          unsetDeliveredOrders();
305 ashish 33564
        } else {
3061 chandransh 33565
          setDeliveredOrders((Map<String,String>)value);
305 ashish 33566
        }
33567
        break;
33568
 
33569
      }
33570
    }
33571
 
33572
    public Object getFieldValue(_Fields field) {
33573
      switch (field) {
3061 chandransh 33574
      case PROVIDER_ID:
3430 rajveer 33575
        return Long.valueOf(getProviderId());
305 ashish 33576
 
3061 chandransh 33577
      case DELIVERED_ORDERS:
33578
        return getDeliveredOrders();
305 ashish 33579
 
33580
      }
33581
      throw new IllegalStateException();
33582
    }
33583
 
3430 rajveer 33584
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33585
    public boolean isSet(_Fields field) {
33586
      if (field == null) {
33587
        throw new IllegalArgumentException();
33588
      }
305 ashish 33589
 
33590
      switch (field) {
3061 chandransh 33591
      case PROVIDER_ID:
33592
        return isSetProviderId();
33593
      case DELIVERED_ORDERS:
33594
        return isSetDeliveredOrders();
305 ashish 33595
      }
33596
      throw new IllegalStateException();
33597
    }
33598
 
33599
    @Override
33600
    public boolean equals(Object that) {
33601
      if (that == null)
33602
        return false;
3061 chandransh 33603
      if (that instanceof markOrdersAsDelivered_args)
33604
        return this.equals((markOrdersAsDelivered_args)that);
305 ashish 33605
      return false;
33606
    }
33607
 
3061 chandransh 33608
    public boolean equals(markOrdersAsDelivered_args that) {
305 ashish 33609
      if (that == null)
33610
        return false;
33611
 
3061 chandransh 33612
      boolean this_present_providerId = true;
33613
      boolean that_present_providerId = true;
33614
      if (this_present_providerId || that_present_providerId) {
33615
        if (!(this_present_providerId && that_present_providerId))
305 ashish 33616
          return false;
3061 chandransh 33617
        if (this.providerId != that.providerId)
305 ashish 33618
          return false;
33619
      }
33620
 
3061 chandransh 33621
      boolean this_present_deliveredOrders = true && this.isSetDeliveredOrders();
33622
      boolean that_present_deliveredOrders = true && that.isSetDeliveredOrders();
33623
      if (this_present_deliveredOrders || that_present_deliveredOrders) {
33624
        if (!(this_present_deliveredOrders && that_present_deliveredOrders))
305 ashish 33625
          return false;
3061 chandransh 33626
        if (!this.deliveredOrders.equals(that.deliveredOrders))
305 ashish 33627
          return false;
33628
      }
33629
 
33630
      return true;
33631
    }
33632
 
33633
    @Override
33634
    public int hashCode() {
33635
      return 0;
33636
    }
33637
 
3430 rajveer 33638
    public int compareTo(markOrdersAsDelivered_args other) {
33639
      if (!getClass().equals(other.getClass())) {
33640
        return getClass().getName().compareTo(other.getClass().getName());
33641
      }
33642
 
33643
      int lastComparison = 0;
33644
      markOrdersAsDelivered_args typedOther = (markOrdersAsDelivered_args)other;
33645
 
33646
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
33647
      if (lastComparison != 0) {
33648
        return lastComparison;
33649
      }
33650
      if (isSetProviderId()) {
33651
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
33652
        if (lastComparison != 0) {
33653
          return lastComparison;
33654
        }
33655
      }
33656
      lastComparison = Boolean.valueOf(isSetDeliveredOrders()).compareTo(typedOther.isSetDeliveredOrders());
33657
      if (lastComparison != 0) {
33658
        return lastComparison;
33659
      }
33660
      if (isSetDeliveredOrders()) {
33661
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveredOrders, typedOther.deliveredOrders);
33662
        if (lastComparison != 0) {
33663
          return lastComparison;
33664
        }
33665
      }
33666
      return 0;
33667
    }
33668
 
33669
    public _Fields fieldForId(int fieldId) {
33670
      return _Fields.findByThriftId(fieldId);
33671
    }
33672
 
33673
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33674
      org.apache.thrift.protocol.TField field;
305 ashish 33675
      iprot.readStructBegin();
33676
      while (true)
33677
      {
33678
        field = iprot.readFieldBegin();
3430 rajveer 33679
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
305 ashish 33680
          break;
33681
        }
3430 rajveer 33682
        switch (field.id) {
33683
          case 1: // PROVIDER_ID
33684
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33685
              this.providerId = iprot.readI64();
33686
              setProviderIdIsSet(true);
33687
            } else { 
33688
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33689
            }
33690
            break;
33691
          case 2: // DELIVERED_ORDERS
33692
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
33693
              {
4133 chandransh 33694
                org.apache.thrift.protocol.TMap _map89 = iprot.readMapBegin();
33695
                this.deliveredOrders = new HashMap<String,String>(2*_map89.size);
33696
                for (int _i90 = 0; _i90 < _map89.size; ++_i90)
3061 chandransh 33697
                {
4133 chandransh 33698
                  String _key91; // required
33699
                  String _val92; // required
33700
                  _key91 = iprot.readString();
33701
                  _val92 = iprot.readString();
33702
                  this.deliveredOrders.put(_key91, _val92);
3061 chandransh 33703
                }
3430 rajveer 33704
                iprot.readMapEnd();
305 ashish 33705
              }
3430 rajveer 33706
            } else { 
33707
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33708
            }
33709
            break;
33710
          default:
33711
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
305 ashish 33712
        }
3430 rajveer 33713
        iprot.readFieldEnd();
305 ashish 33714
      }
33715
      iprot.readStructEnd();
33716
      validate();
33717
    }
33718
 
3430 rajveer 33719
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
305 ashish 33720
      validate();
33721
 
33722
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 33723
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
33724
      oprot.writeI64(this.providerId);
305 ashish 33725
      oprot.writeFieldEnd();
3061 chandransh 33726
      if (this.deliveredOrders != null) {
33727
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
33728
        {
3430 rajveer 33729
          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 33730
          for (Map.Entry<String, String> _iter93 : this.deliveredOrders.entrySet())
3061 chandransh 33731
          {
4133 chandransh 33732
            oprot.writeString(_iter93.getKey());
33733
            oprot.writeString(_iter93.getValue());
3061 chandransh 33734
          }
33735
          oprot.writeMapEnd();
33736
        }
305 ashish 33737
        oprot.writeFieldEnd();
33738
      }
33739
      oprot.writeFieldStop();
33740
      oprot.writeStructEnd();
33741
    }
33742
 
33743
    @Override
33744
    public String toString() {
3061 chandransh 33745
      StringBuilder sb = new StringBuilder("markOrdersAsDelivered_args(");
305 ashish 33746
      boolean first = true;
33747
 
3061 chandransh 33748
      sb.append("providerId:");
33749
      sb.append(this.providerId);
305 ashish 33750
      first = false;
33751
      if (!first) sb.append(", ");
3061 chandransh 33752
      sb.append("deliveredOrders:");
33753
      if (this.deliveredOrders == null) {
305 ashish 33754
        sb.append("null");
33755
      } else {
3061 chandransh 33756
        sb.append(this.deliveredOrders);
305 ashish 33757
      }
33758
      first = false;
33759
      sb.append(")");
33760
      return sb.toString();
33761
    }
33762
 
3430 rajveer 33763
    public void validate() throws org.apache.thrift.TException {
305 ashish 33764
      // check for required fields
33765
    }
33766
 
3430 rajveer 33767
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33768
      try {
33769
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33770
      } catch (org.apache.thrift.TException te) {
33771
        throw new java.io.IOException(te);
33772
      }
33773
    }
33774
 
33775
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33776
      try {
33777
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33778
      } catch (org.apache.thrift.TException te) {
33779
        throw new java.io.IOException(te);
33780
      }
33781
    }
33782
 
305 ashish 33783
  }
33784
 
3430 rajveer 33785
  public static class markOrdersAsDelivered_result implements org.apache.thrift.TBase<markOrdersAsDelivered_result, markOrdersAsDelivered_result._Fields>, java.io.Serializable, Cloneable   {
33786
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsDelivered_result");
305 ashish 33787
 
3430 rajveer 33788
    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 33789
 
3430 rajveer 33790
    private TransactionServiceException ex; // required
305 ashish 33791
 
33792
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33793
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 33794
      EX((short)1, "ex");
305 ashish 33795
 
33796
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33797
 
33798
      static {
33799
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33800
          byName.put(field.getFieldName(), field);
33801
        }
33802
      }
33803
 
33804
      /**
33805
       * Find the _Fields constant that matches fieldId, or null if its not found.
33806
       */
33807
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33808
        switch(fieldId) {
33809
          case 1: // EX
33810
            return EX;
33811
          default:
33812
            return null;
33813
        }
305 ashish 33814
      }
33815
 
33816
      /**
33817
       * Find the _Fields constant that matches fieldId, throwing an exception
33818
       * if it is not found.
33819
       */
33820
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33821
        _Fields fields = findByThriftId(fieldId);
33822
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33823
        return fields;
33824
      }
33825
 
33826
      /**
33827
       * Find the _Fields constant that matches name, or null if its not found.
33828
       */
33829
      public static _Fields findByName(String name) {
33830
        return byName.get(name);
33831
      }
33832
 
33833
      private final short _thriftId;
33834
      private final String _fieldName;
33835
 
33836
      _Fields(short thriftId, String fieldName) {
33837
        _thriftId = thriftId;
33838
        _fieldName = fieldName;
33839
      }
33840
 
33841
      public short getThriftFieldId() {
33842
        return _thriftId;
33843
      }
33844
 
33845
      public String getFieldName() {
33846
        return _fieldName;
33847
      }
33848
    }
3061 chandransh 33849
 
33850
    // isset id assignments
33851
 
3430 rajveer 33852
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
305 ashish 33853
    static {
3430 rajveer 33854
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33855
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33856
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33857
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33858
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_result.class, metaDataMap);
305 ashish 33859
    }
33860
 
3061 chandransh 33861
    public markOrdersAsDelivered_result() {
305 ashish 33862
    }
33863
 
3061 chandransh 33864
    public markOrdersAsDelivered_result(
33865
      TransactionServiceException ex)
33866
    {
33867
      this();
33868
      this.ex = ex;
33869
    }
33870
 
305 ashish 33871
    /**
33872
     * Performs a deep copy on <i>other</i>.
33873
     */
3061 chandransh 33874
    public markOrdersAsDelivered_result(markOrdersAsDelivered_result other) {
33875
      if (other.isSetEx()) {
33876
        this.ex = new TransactionServiceException(other.ex);
33877
      }
305 ashish 33878
    }
33879
 
3061 chandransh 33880
    public markOrdersAsDelivered_result deepCopy() {
33881
      return new markOrdersAsDelivered_result(this);
305 ashish 33882
    }
33883
 
3430 rajveer 33884
    @Override
33885
    public void clear() {
33886
      this.ex = null;
305 ashish 33887
    }
33888
 
3061 chandransh 33889
    public TransactionServiceException getEx() {
33890
      return this.ex;
305 ashish 33891
    }
33892
 
3430 rajveer 33893
    public void setEx(TransactionServiceException ex) {
3061 chandransh 33894
      this.ex = ex;
305 ashish 33895
    }
33896
 
3061 chandransh 33897
    public void unsetEx() {
33898
      this.ex = null;
305 ashish 33899
    }
33900
 
3430 rajveer 33901
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 33902
    public boolean isSetEx() {
33903
      return this.ex != null;
305 ashish 33904
    }
33905
 
3061 chandransh 33906
    public void setExIsSet(boolean value) {
33907
      if (!value) {
33908
        this.ex = null;
305 ashish 33909
      }
33910
    }
33911
 
3061 chandransh 33912
    public void setFieldValue(_Fields field, Object value) {
33913
      switch (field) {
33914
      case EX:
33915
        if (value == null) {
33916
          unsetEx();
305 ashish 33917
        } else {
3061 chandransh 33918
          setEx((TransactionServiceException)value);
305 ashish 33919
        }
3061 chandransh 33920
        break;
305 ashish 33921
 
1598 ankur.sing 33922
      }
33923
    }
33924
 
33925
    public Object getFieldValue(_Fields field) {
33926
      switch (field) {
3061 chandransh 33927
      case EX:
33928
        return getEx();
33929
 
1598 ankur.sing 33930
      }
33931
      throw new IllegalStateException();
33932
    }
33933
 
3430 rajveer 33934
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33935
    public boolean isSet(_Fields field) {
33936
      if (field == null) {
33937
        throw new IllegalArgumentException();
33938
      }
1598 ankur.sing 33939
 
33940
      switch (field) {
3061 chandransh 33941
      case EX:
33942
        return isSetEx();
1598 ankur.sing 33943
      }
33944
      throw new IllegalStateException();
33945
    }
33946
 
33947
    @Override
33948
    public boolean equals(Object that) {
33949
      if (that == null)
33950
        return false;
3061 chandransh 33951
      if (that instanceof markOrdersAsDelivered_result)
33952
        return this.equals((markOrdersAsDelivered_result)that);
1598 ankur.sing 33953
      return false;
33954
    }
33955
 
3061 chandransh 33956
    public boolean equals(markOrdersAsDelivered_result that) {
1598 ankur.sing 33957
      if (that == null)
33958
        return false;
33959
 
3061 chandransh 33960
      boolean this_present_ex = true && this.isSetEx();
33961
      boolean that_present_ex = true && that.isSetEx();
33962
      if (this_present_ex || that_present_ex) {
33963
        if (!(this_present_ex && that_present_ex))
33964
          return false;
33965
        if (!this.ex.equals(that.ex))
33966
          return false;
33967
      }
33968
 
1598 ankur.sing 33969
      return true;
33970
    }
33971
 
33972
    @Override
33973
    public int hashCode() {
33974
      return 0;
33975
    }
33976
 
3061 chandransh 33977
    public int compareTo(markOrdersAsDelivered_result other) {
1598 ankur.sing 33978
      if (!getClass().equals(other.getClass())) {
33979
        return getClass().getName().compareTo(other.getClass().getName());
33980
      }
33981
 
33982
      int lastComparison = 0;
3061 chandransh 33983
      markOrdersAsDelivered_result typedOther = (markOrdersAsDelivered_result)other;
1598 ankur.sing 33984
 
3430 rajveer 33985
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
3061 chandransh 33986
      if (lastComparison != 0) {
33987
        return lastComparison;
33988
      }
3430 rajveer 33989
      if (isSetEx()) {
33990
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
33991
        if (lastComparison != 0) {
33992
          return lastComparison;
33993
        }
3061 chandransh 33994
      }
1598 ankur.sing 33995
      return 0;
33996
    }
33997
 
3430 rajveer 33998
    public _Fields fieldForId(int fieldId) {
33999
      return _Fields.findByThriftId(fieldId);
34000
    }
34001
 
34002
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34003
      org.apache.thrift.protocol.TField field;
1598 ankur.sing 34004
      iprot.readStructBegin();
34005
      while (true)
34006
      {
34007
        field = iprot.readFieldBegin();
3430 rajveer 34008
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1598 ankur.sing 34009
          break;
34010
        }
3430 rajveer 34011
        switch (field.id) {
34012
          case 1: // EX
34013
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
34014
              this.ex = new TransactionServiceException();
34015
              this.ex.read(iprot);
34016
            } else { 
34017
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34018
            }
34019
            break;
34020
          default:
34021
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1598 ankur.sing 34022
        }
3430 rajveer 34023
        iprot.readFieldEnd();
1598 ankur.sing 34024
      }
34025
      iprot.readStructEnd();
34026
      validate();
34027
    }
34028
 
3430 rajveer 34029
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 34030
      oprot.writeStructBegin(STRUCT_DESC);
1598 ankur.sing 34031
 
3061 chandransh 34032
      if (this.isSetEx()) {
34033
        oprot.writeFieldBegin(EX_FIELD_DESC);
34034
        this.ex.write(oprot);
34035
        oprot.writeFieldEnd();
34036
      }
1598 ankur.sing 34037
      oprot.writeFieldStop();
34038
      oprot.writeStructEnd();
34039
    }
34040
 
34041
    @Override
34042
    public String toString() {
3061 chandransh 34043
      StringBuilder sb = new StringBuilder("markOrdersAsDelivered_result(");
1598 ankur.sing 34044
      boolean first = true;
34045
 
3061 chandransh 34046
      sb.append("ex:");
34047
      if (this.ex == null) {
34048
        sb.append("null");
34049
      } else {
34050
        sb.append(this.ex);
34051
      }
34052
      first = false;
1598 ankur.sing 34053
      sb.append(")");
34054
      return sb.toString();
34055
    }
34056
 
3430 rajveer 34057
    public void validate() throws org.apache.thrift.TException {
1598 ankur.sing 34058
      // check for required fields
34059
    }
34060
 
3430 rajveer 34061
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34062
      try {
34063
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34064
      } catch (org.apache.thrift.TException te) {
34065
        throw new java.io.IOException(te);
34066
      }
34067
    }
34068
 
34069
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34070
      try {
34071
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34072
      } catch (org.apache.thrift.TException te) {
34073
        throw new java.io.IOException(te);
34074
      }
34075
    }
34076
 
1598 ankur.sing 34077
  }
34078
 
3430 rajveer 34079
  public static class markOrdersAsFailed_args implements org.apache.thrift.TBase<markOrdersAsFailed_args, markOrdersAsFailed_args._Fields>, java.io.Serializable, Cloneable   {
34080
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsFailed_args");
1598 ankur.sing 34081
 
3430 rajveer 34082
    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);
34083
    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 34084
 
3430 rajveer 34085
    private long providerId; // required
34086
    private Map<String,String> returnedOrders; // required
1598 ankur.sing 34087
 
34088
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34089
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 34090
      PROVIDER_ID((short)1, "providerId"),
34091
      RETURNED_ORDERS((short)2, "returnedOrders");
1598 ankur.sing 34092
 
34093
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34094
 
34095
      static {
34096
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34097
          byName.put(field.getFieldName(), field);
34098
        }
34099
      }
34100
 
34101
      /**
34102
       * Find the _Fields constant that matches fieldId, or null if its not found.
34103
       */
34104
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34105
        switch(fieldId) {
34106
          case 1: // PROVIDER_ID
34107
            return PROVIDER_ID;
34108
          case 2: // RETURNED_ORDERS
34109
            return RETURNED_ORDERS;
34110
          default:
34111
            return null;
34112
        }
1598 ankur.sing 34113
      }
34114
 
34115
      /**
34116
       * Find the _Fields constant that matches fieldId, throwing an exception
34117
       * if it is not found.
34118
       */
34119
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34120
        _Fields fields = findByThriftId(fieldId);
34121
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34122
        return fields;
34123
      }
34124
 
34125
      /**
34126
       * Find the _Fields constant that matches name, or null if its not found.
34127
       */
34128
      public static _Fields findByName(String name) {
34129
        return byName.get(name);
34130
      }
34131
 
34132
      private final short _thriftId;
34133
      private final String _fieldName;
34134
 
34135
      _Fields(short thriftId, String fieldName) {
34136
        _thriftId = thriftId;
34137
        _fieldName = fieldName;
34138
      }
34139
 
34140
      public short getThriftFieldId() {
34141
        return _thriftId;
34142
      }
34143
 
34144
      public String getFieldName() {
34145
        return _fieldName;
34146
      }
34147
    }
34148
 
34149
    // isset id assignments
3061 chandransh 34150
    private static final int __PROVIDERID_ISSET_ID = 0;
1598 ankur.sing 34151
    private BitSet __isset_bit_vector = new BitSet(1);
34152
 
3430 rajveer 34153
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1598 ankur.sing 34154
    static {
3430 rajveer 34155
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34156
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34157
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34158
      tmpMap.put(_Fields.RETURNED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("returnedOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34159
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
34160
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
34161
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
34162
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34163
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsFailed_args.class, metaDataMap);
1598 ankur.sing 34164
    }
34165
 
3061 chandransh 34166
    public markOrdersAsFailed_args() {
1598 ankur.sing 34167
    }
34168
 
3061 chandransh 34169
    public markOrdersAsFailed_args(
34170
      long providerId,
34171
      Map<String,String> returnedOrders)
1598 ankur.sing 34172
    {
34173
      this();
3061 chandransh 34174
      this.providerId = providerId;
34175
      setProviderIdIsSet(true);
34176
      this.returnedOrders = returnedOrders;
1598 ankur.sing 34177
    }
34178
 
34179
    /**
34180
     * Performs a deep copy on <i>other</i>.
34181
     */
3061 chandransh 34182
    public markOrdersAsFailed_args(markOrdersAsFailed_args other) {
1598 ankur.sing 34183
      __isset_bit_vector.clear();
34184
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 34185
      this.providerId = other.providerId;
34186
      if (other.isSetReturnedOrders()) {
34187
        Map<String,String> __this__returnedOrders = new HashMap<String,String>();
34188
        for (Map.Entry<String, String> other_element : other.returnedOrders.entrySet()) {
1598 ankur.sing 34189
 
3061 chandransh 34190
          String other_element_key = other_element.getKey();
34191
          String other_element_value = other_element.getValue();
1598 ankur.sing 34192
 
3061 chandransh 34193
          String __this__returnedOrders_copy_key = other_element_key;
1598 ankur.sing 34194
 
3061 chandransh 34195
          String __this__returnedOrders_copy_value = other_element_value;
34196
 
34197
          __this__returnedOrders.put(__this__returnedOrders_copy_key, __this__returnedOrders_copy_value);
34198
        }
34199
        this.returnedOrders = __this__returnedOrders;
34200
      }
1598 ankur.sing 34201
    }
34202
 
3061 chandransh 34203
    public markOrdersAsFailed_args deepCopy() {
34204
      return new markOrdersAsFailed_args(this);
1598 ankur.sing 34205
    }
34206
 
3430 rajveer 34207
    @Override
34208
    public void clear() {
34209
      setProviderIdIsSet(false);
34210
      this.providerId = 0;
34211
      this.returnedOrders = null;
1598 ankur.sing 34212
    }
34213
 
3061 chandransh 34214
    public long getProviderId() {
34215
      return this.providerId;
1598 ankur.sing 34216
    }
34217
 
3430 rajveer 34218
    public void setProviderId(long providerId) {
3061 chandransh 34219
      this.providerId = providerId;
34220
      setProviderIdIsSet(true);
1598 ankur.sing 34221
    }
34222
 
3061 chandransh 34223
    public void unsetProviderId() {
34224
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1598 ankur.sing 34225
    }
34226
 
3430 rajveer 34227
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 34228
    public boolean isSetProviderId() {
34229
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1598 ankur.sing 34230
    }
34231
 
3061 chandransh 34232
    public void setProviderIdIsSet(boolean value) {
34233
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
1598 ankur.sing 34234
    }
34235
 
3061 chandransh 34236
    public int getReturnedOrdersSize() {
34237
      return (this.returnedOrders == null) ? 0 : this.returnedOrders.size();
1598 ankur.sing 34238
    }
34239
 
3061 chandransh 34240
    public void putToReturnedOrders(String key, String val) {
34241
      if (this.returnedOrders == null) {
34242
        this.returnedOrders = new HashMap<String,String>();
1598 ankur.sing 34243
      }
3061 chandransh 34244
      this.returnedOrders.put(key, val);
1598 ankur.sing 34245
    }
34246
 
3061 chandransh 34247
    public Map<String,String> getReturnedOrders() {
34248
      return this.returnedOrders;
1598 ankur.sing 34249
    }
34250
 
3430 rajveer 34251
    public void setReturnedOrders(Map<String,String> returnedOrders) {
3061 chandransh 34252
      this.returnedOrders = returnedOrders;
1598 ankur.sing 34253
    }
34254
 
3061 chandransh 34255
    public void unsetReturnedOrders() {
34256
      this.returnedOrders = null;
1598 ankur.sing 34257
    }
34258
 
3430 rajveer 34259
    /** Returns true if field returnedOrders is set (has been assigned a value) and false otherwise */
3061 chandransh 34260
    public boolean isSetReturnedOrders() {
34261
      return this.returnedOrders != null;
1598 ankur.sing 34262
    }
34263
 
3061 chandransh 34264
    public void setReturnedOrdersIsSet(boolean value) {
34265
      if (!value) {
34266
        this.returnedOrders = null;
1598 ankur.sing 34267
      }
34268
    }
34269
 
3061 chandransh 34270
    public void setFieldValue(_Fields field, Object value) {
34271
      switch (field) {
34272
      case PROVIDER_ID:
34273
        if (value == null) {
34274
          unsetProviderId();
1598 ankur.sing 34275
        } else {
3061 chandransh 34276
          setProviderId((Long)value);
1598 ankur.sing 34277
        }
3061 chandransh 34278
        break;
1598 ankur.sing 34279
 
3061 chandransh 34280
      case RETURNED_ORDERS:
34281
        if (value == null) {
34282
          unsetReturnedOrders();
34283
        } else {
34284
          setReturnedOrders((Map<String,String>)value);
1629 ankur.sing 34285
        }
3061 chandransh 34286
        break;
1629 ankur.sing 34287
 
34288
      }
34289
    }
34290
 
34291
    public Object getFieldValue(_Fields field) {
34292
      switch (field) {
3061 chandransh 34293
      case PROVIDER_ID:
3430 rajveer 34294
        return Long.valueOf(getProviderId());
3061 chandransh 34295
 
34296
      case RETURNED_ORDERS:
34297
        return getReturnedOrders();
34298
 
1629 ankur.sing 34299
      }
34300
      throw new IllegalStateException();
34301
    }
34302
 
3430 rajveer 34303
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34304
    public boolean isSet(_Fields field) {
34305
      if (field == null) {
34306
        throw new IllegalArgumentException();
34307
      }
1629 ankur.sing 34308
 
34309
      switch (field) {
3061 chandransh 34310
      case PROVIDER_ID:
34311
        return isSetProviderId();
34312
      case RETURNED_ORDERS:
34313
        return isSetReturnedOrders();
1629 ankur.sing 34314
      }
34315
      throw new IllegalStateException();
34316
    }
34317
 
34318
    @Override
34319
    public boolean equals(Object that) {
34320
      if (that == null)
34321
        return false;
3061 chandransh 34322
      if (that instanceof markOrdersAsFailed_args)
34323
        return this.equals((markOrdersAsFailed_args)that);
1629 ankur.sing 34324
      return false;
34325
    }
34326
 
3061 chandransh 34327
    public boolean equals(markOrdersAsFailed_args that) {
1629 ankur.sing 34328
      if (that == null)
34329
        return false;
34330
 
3061 chandransh 34331
      boolean this_present_providerId = true;
34332
      boolean that_present_providerId = true;
34333
      if (this_present_providerId || that_present_providerId) {
34334
        if (!(this_present_providerId && that_present_providerId))
34335
          return false;
34336
        if (this.providerId != that.providerId)
34337
          return false;
34338
      }
34339
 
34340
      boolean this_present_returnedOrders = true && this.isSetReturnedOrders();
34341
      boolean that_present_returnedOrders = true && that.isSetReturnedOrders();
34342
      if (this_present_returnedOrders || that_present_returnedOrders) {
34343
        if (!(this_present_returnedOrders && that_present_returnedOrders))
34344
          return false;
34345
        if (!this.returnedOrders.equals(that.returnedOrders))
34346
          return false;
34347
      }
34348
 
1629 ankur.sing 34349
      return true;
34350
    }
34351
 
34352
    @Override
34353
    public int hashCode() {
34354
      return 0;
34355
    }
34356
 
3430 rajveer 34357
    public int compareTo(markOrdersAsFailed_args other) {
34358
      if (!getClass().equals(other.getClass())) {
34359
        return getClass().getName().compareTo(other.getClass().getName());
34360
      }
34361
 
34362
      int lastComparison = 0;
34363
      markOrdersAsFailed_args typedOther = (markOrdersAsFailed_args)other;
34364
 
34365
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
34366
      if (lastComparison != 0) {
34367
        return lastComparison;
34368
      }
34369
      if (isSetProviderId()) {
34370
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
34371
        if (lastComparison != 0) {
34372
          return lastComparison;
34373
        }
34374
      }
34375
      lastComparison = Boolean.valueOf(isSetReturnedOrders()).compareTo(typedOther.isSetReturnedOrders());
34376
      if (lastComparison != 0) {
34377
        return lastComparison;
34378
      }
34379
      if (isSetReturnedOrders()) {
34380
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnedOrders, typedOther.returnedOrders);
34381
        if (lastComparison != 0) {
34382
          return lastComparison;
34383
        }
34384
      }
34385
      return 0;
34386
    }
34387
 
34388
    public _Fields fieldForId(int fieldId) {
34389
      return _Fields.findByThriftId(fieldId);
34390
    }
34391
 
34392
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34393
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 34394
      iprot.readStructBegin();
34395
      while (true)
34396
      {
34397
        field = iprot.readFieldBegin();
3430 rajveer 34398
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 34399
          break;
34400
        }
3430 rajveer 34401
        switch (field.id) {
34402
          case 1: // PROVIDER_ID
34403
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34404
              this.providerId = iprot.readI64();
34405
              setProviderIdIsSet(true);
34406
            } else { 
34407
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34408
            }
34409
            break;
34410
          case 2: // RETURNED_ORDERS
34411
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
34412
              {
4133 chandransh 34413
                org.apache.thrift.protocol.TMap _map94 = iprot.readMapBegin();
34414
                this.returnedOrders = new HashMap<String,String>(2*_map94.size);
34415
                for (int _i95 = 0; _i95 < _map94.size; ++_i95)
3061 chandransh 34416
                {
4133 chandransh 34417
                  String _key96; // required
34418
                  String _val97; // required
34419
                  _key96 = iprot.readString();
34420
                  _val97 = iprot.readString();
34421
                  this.returnedOrders.put(_key96, _val97);
3061 chandransh 34422
                }
3430 rajveer 34423
                iprot.readMapEnd();
3061 chandransh 34424
              }
3430 rajveer 34425
            } else { 
34426
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34427
            }
34428
            break;
34429
          default:
34430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 34431
        }
3430 rajveer 34432
        iprot.readFieldEnd();
1629 ankur.sing 34433
      }
34434
      iprot.readStructEnd();
34435
      validate();
34436
    }
34437
 
3430 rajveer 34438
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 34439
      validate();
34440
 
34441
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 34442
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
34443
      oprot.writeI64(this.providerId);
34444
      oprot.writeFieldEnd();
34445
      if (this.returnedOrders != null) {
34446
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
34447
        {
3430 rajveer 34448
          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 34449
          for (Map.Entry<String, String> _iter98 : this.returnedOrders.entrySet())
3061 chandransh 34450
          {
4133 chandransh 34451
            oprot.writeString(_iter98.getKey());
34452
            oprot.writeString(_iter98.getValue());
3061 chandransh 34453
          }
34454
          oprot.writeMapEnd();
34455
        }
34456
        oprot.writeFieldEnd();
34457
      }
1629 ankur.sing 34458
      oprot.writeFieldStop();
34459
      oprot.writeStructEnd();
34460
    }
34461
 
34462
    @Override
34463
    public String toString() {
3061 chandransh 34464
      StringBuilder sb = new StringBuilder("markOrdersAsFailed_args(");
1629 ankur.sing 34465
      boolean first = true;
34466
 
3061 chandransh 34467
      sb.append("providerId:");
34468
      sb.append(this.providerId);
34469
      first = false;
34470
      if (!first) sb.append(", ");
34471
      sb.append("returnedOrders:");
34472
      if (this.returnedOrders == null) {
34473
        sb.append("null");
34474
      } else {
34475
        sb.append(this.returnedOrders);
34476
      }
34477
      first = false;
1629 ankur.sing 34478
      sb.append(")");
34479
      return sb.toString();
34480
    }
34481
 
3430 rajveer 34482
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 34483
      // check for required fields
34484
    }
34485
 
3430 rajveer 34486
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34487
      try {
34488
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34489
      } catch (org.apache.thrift.TException te) {
34490
        throw new java.io.IOException(te);
34491
      }
34492
    }
34493
 
34494
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34495
      try {
34496
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34497
      } catch (org.apache.thrift.TException te) {
34498
        throw new java.io.IOException(te);
34499
      }
34500
    }
34501
 
1629 ankur.sing 34502
  }
34503
 
3430 rajveer 34504
  public static class markOrdersAsFailed_result implements org.apache.thrift.TBase<markOrdersAsFailed_result, markOrdersAsFailed_result._Fields>, java.io.Serializable, Cloneable   {
34505
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsFailed_result");
1629 ankur.sing 34506
 
3430 rajveer 34507
    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 34508
 
3430 rajveer 34509
    private TransactionServiceException ex; // required
1629 ankur.sing 34510
 
34511
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34512
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 34513
      EX((short)1, "ex");
1629 ankur.sing 34514
 
34515
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34516
 
34517
      static {
34518
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34519
          byName.put(field.getFieldName(), field);
34520
        }
34521
      }
34522
 
34523
      /**
34524
       * Find the _Fields constant that matches fieldId, or null if its not found.
34525
       */
34526
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34527
        switch(fieldId) {
34528
          case 1: // EX
34529
            return EX;
34530
          default:
34531
            return null;
34532
        }
1629 ankur.sing 34533
      }
34534
 
34535
      /**
34536
       * Find the _Fields constant that matches fieldId, throwing an exception
34537
       * if it is not found.
34538
       */
34539
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34540
        _Fields fields = findByThriftId(fieldId);
34541
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34542
        return fields;
34543
      }
34544
 
34545
      /**
34546
       * Find the _Fields constant that matches name, or null if its not found.
34547
       */
34548
      public static _Fields findByName(String name) {
34549
        return byName.get(name);
34550
      }
34551
 
34552
      private final short _thriftId;
34553
      private final String _fieldName;
34554
 
34555
      _Fields(short thriftId, String fieldName) {
34556
        _thriftId = thriftId;
34557
        _fieldName = fieldName;
34558
      }
34559
 
34560
      public short getThriftFieldId() {
34561
        return _thriftId;
34562
      }
34563
 
34564
      public String getFieldName() {
34565
        return _fieldName;
34566
      }
34567
    }
34568
 
34569
    // isset id assignments
34570
 
3430 rajveer 34571
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 34572
    static {
3430 rajveer 34573
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34574
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34575
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34576
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34577
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsFailed_result.class, metaDataMap);
1629 ankur.sing 34578
    }
34579
 
3061 chandransh 34580
    public markOrdersAsFailed_result() {
1629 ankur.sing 34581
    }
34582
 
3061 chandransh 34583
    public markOrdersAsFailed_result(
34584
      TransactionServiceException ex)
1629 ankur.sing 34585
    {
34586
      this();
3061 chandransh 34587
      this.ex = ex;
1629 ankur.sing 34588
    }
34589
 
34590
    /**
34591
     * Performs a deep copy on <i>other</i>.
34592
     */
3061 chandransh 34593
    public markOrdersAsFailed_result(markOrdersAsFailed_result other) {
34594
      if (other.isSetEx()) {
34595
        this.ex = new TransactionServiceException(other.ex);
34596
      }
1629 ankur.sing 34597
    }
34598
 
3061 chandransh 34599
    public markOrdersAsFailed_result deepCopy() {
34600
      return new markOrdersAsFailed_result(this);
1629 ankur.sing 34601
    }
34602
 
3430 rajveer 34603
    @Override
34604
    public void clear() {
34605
      this.ex = null;
1629 ankur.sing 34606
    }
34607
 
3061 chandransh 34608
    public TransactionServiceException getEx() {
34609
      return this.ex;
1629 ankur.sing 34610
    }
34611
 
3430 rajveer 34612
    public void setEx(TransactionServiceException ex) {
3061 chandransh 34613
      this.ex = ex;
1629 ankur.sing 34614
    }
34615
 
3061 chandransh 34616
    public void unsetEx() {
34617
      this.ex = null;
1629 ankur.sing 34618
    }
34619
 
3430 rajveer 34620
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 34621
    public boolean isSetEx() {
34622
      return this.ex != null;
1629 ankur.sing 34623
    }
34624
 
3061 chandransh 34625
    public void setExIsSet(boolean value) {
34626
      if (!value) {
34627
        this.ex = null;
34628
      }
1629 ankur.sing 34629
    }
34630
 
34631
    public void setFieldValue(_Fields field, Object value) {
34632
      switch (field) {
3061 chandransh 34633
      case EX:
1629 ankur.sing 34634
        if (value == null) {
3061 chandransh 34635
          unsetEx();
1629 ankur.sing 34636
        } else {
3061 chandransh 34637
          setEx((TransactionServiceException)value);
1629 ankur.sing 34638
        }
34639
        break;
34640
 
34641
      }
34642
    }
34643
 
34644
    public Object getFieldValue(_Fields field) {
34645
      switch (field) {
3061 chandransh 34646
      case EX:
34647
        return getEx();
1629 ankur.sing 34648
 
34649
      }
34650
      throw new IllegalStateException();
34651
    }
34652
 
3430 rajveer 34653
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34654
    public boolean isSet(_Fields field) {
34655
      if (field == null) {
34656
        throw new IllegalArgumentException();
34657
      }
1629 ankur.sing 34658
 
34659
      switch (field) {
3061 chandransh 34660
      case EX:
34661
        return isSetEx();
1629 ankur.sing 34662
      }
34663
      throw new IllegalStateException();
34664
    }
34665
 
34666
    @Override
34667
    public boolean equals(Object that) {
34668
      if (that == null)
34669
        return false;
3061 chandransh 34670
      if (that instanceof markOrdersAsFailed_result)
34671
        return this.equals((markOrdersAsFailed_result)that);
1629 ankur.sing 34672
      return false;
34673
    }
34674
 
3061 chandransh 34675
    public boolean equals(markOrdersAsFailed_result that) {
1629 ankur.sing 34676
      if (that == null)
34677
        return false;
34678
 
3061 chandransh 34679
      boolean this_present_ex = true && this.isSetEx();
34680
      boolean that_present_ex = true && that.isSetEx();
34681
      if (this_present_ex || that_present_ex) {
34682
        if (!(this_present_ex && that_present_ex))
1629 ankur.sing 34683
          return false;
3061 chandransh 34684
        if (!this.ex.equals(that.ex))
1629 ankur.sing 34685
          return false;
34686
      }
34687
 
34688
      return true;
34689
    }
34690
 
34691
    @Override
34692
    public int hashCode() {
34693
      return 0;
34694
    }
34695
 
3061 chandransh 34696
    public int compareTo(markOrdersAsFailed_result other) {
1629 ankur.sing 34697
      if (!getClass().equals(other.getClass())) {
34698
        return getClass().getName().compareTo(other.getClass().getName());
34699
      }
34700
 
34701
      int lastComparison = 0;
3061 chandransh 34702
      markOrdersAsFailed_result typedOther = (markOrdersAsFailed_result)other;
1629 ankur.sing 34703
 
3430 rajveer 34704
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1629 ankur.sing 34705
      if (lastComparison != 0) {
34706
        return lastComparison;
34707
      }
3430 rajveer 34708
      if (isSetEx()) {
34709
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
34710
        if (lastComparison != 0) {
34711
          return lastComparison;
34712
        }
1629 ankur.sing 34713
      }
34714
      return 0;
34715
    }
34716
 
3430 rajveer 34717
    public _Fields fieldForId(int fieldId) {
34718
      return _Fields.findByThriftId(fieldId);
34719
    }
34720
 
34721
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34722
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 34723
      iprot.readStructBegin();
34724
      while (true)
34725
      {
34726
        field = iprot.readFieldBegin();
3430 rajveer 34727
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 34728
          break;
34729
        }
3430 rajveer 34730
        switch (field.id) {
34731
          case 1: // EX
34732
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
34733
              this.ex = new TransactionServiceException();
34734
              this.ex.read(iprot);
34735
            } else { 
34736
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34737
            }
34738
            break;
34739
          default:
34740
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 34741
        }
3430 rajveer 34742
        iprot.readFieldEnd();
1629 ankur.sing 34743
      }
34744
      iprot.readStructEnd();
34745
      validate();
34746
    }
34747
 
3430 rajveer 34748
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 34749
      oprot.writeStructBegin(STRUCT_DESC);
34750
 
3061 chandransh 34751
      if (this.isSetEx()) {
34752
        oprot.writeFieldBegin(EX_FIELD_DESC);
34753
        this.ex.write(oprot);
1629 ankur.sing 34754
        oprot.writeFieldEnd();
34755
      }
34756
      oprot.writeFieldStop();
34757
      oprot.writeStructEnd();
34758
    }
34759
 
34760
    @Override
34761
    public String toString() {
3061 chandransh 34762
      StringBuilder sb = new StringBuilder("markOrdersAsFailed_result(");
1629 ankur.sing 34763
      boolean first = true;
34764
 
3061 chandransh 34765
      sb.append("ex:");
34766
      if (this.ex == null) {
34767
        sb.append("null");
34768
      } else {
34769
        sb.append(this.ex);
34770
      }
1629 ankur.sing 34771
      first = false;
34772
      sb.append(")");
34773
      return sb.toString();
34774
    }
34775
 
3430 rajveer 34776
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 34777
      // check for required fields
34778
    }
34779
 
3430 rajveer 34780
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34781
      try {
34782
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34783
      } catch (org.apache.thrift.TException te) {
34784
        throw new java.io.IOException(te);
34785
      }
34786
    }
34787
 
34788
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34789
      try {
34790
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34791
      } catch (org.apache.thrift.TException te) {
34792
        throw new java.io.IOException(te);
34793
      }
34794
    }
34795
 
1629 ankur.sing 34796
  }
34797
 
3430 rajveer 34798
  public static class updateNonDeliveryReason_args implements org.apache.thrift.TBase<updateNonDeliveryReason_args, updateNonDeliveryReason_args._Fields>, java.io.Serializable, Cloneable   {
34799
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNonDeliveryReason_args");
1629 ankur.sing 34800
 
3430 rajveer 34801
    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);
34802
    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 34803
 
3430 rajveer 34804
    private long providerId; // required
34805
    private Map<String,String> undeliveredOrders; // required
1629 ankur.sing 34806
 
34807
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34808
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 34809
      PROVIDER_ID((short)1, "providerId"),
34810
      UNDELIVERED_ORDERS((short)2, "undeliveredOrders");
1629 ankur.sing 34811
 
34812
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34813
 
34814
      static {
34815
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34816
          byName.put(field.getFieldName(), field);
34817
        }
34818
      }
34819
 
34820
      /**
34821
       * Find the _Fields constant that matches fieldId, or null if its not found.
34822
       */
34823
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34824
        switch(fieldId) {
34825
          case 1: // PROVIDER_ID
34826
            return PROVIDER_ID;
34827
          case 2: // UNDELIVERED_ORDERS
34828
            return UNDELIVERED_ORDERS;
34829
          default:
34830
            return null;
34831
        }
1629 ankur.sing 34832
      }
34833
 
34834
      /**
34835
       * Find the _Fields constant that matches fieldId, throwing an exception
34836
       * if it is not found.
34837
       */
34838
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34839
        _Fields fields = findByThriftId(fieldId);
34840
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34841
        return fields;
34842
      }
34843
 
34844
      /**
34845
       * Find the _Fields constant that matches name, or null if its not found.
34846
       */
34847
      public static _Fields findByName(String name) {
34848
        return byName.get(name);
34849
      }
34850
 
34851
      private final short _thriftId;
34852
      private final String _fieldName;
34853
 
34854
      _Fields(short thriftId, String fieldName) {
34855
        _thriftId = thriftId;
34856
        _fieldName = fieldName;
34857
      }
34858
 
34859
      public short getThriftFieldId() {
34860
        return _thriftId;
34861
      }
34862
 
34863
      public String getFieldName() {
34864
        return _fieldName;
34865
      }
34866
    }
3061 chandransh 34867
 
34868
    // isset id assignments
34869
    private static final int __PROVIDERID_ISSET_ID = 0;
34870
    private BitSet __isset_bit_vector = new BitSet(1);
34871
 
3430 rajveer 34872
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 34873
    static {
3430 rajveer 34874
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34875
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34876
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34877
      tmpMap.put(_Fields.UNDELIVERED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("undeliveredOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34878
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
34879
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
34880
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
34881
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34882
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_args.class, metaDataMap);
1629 ankur.sing 34883
    }
34884
 
3061 chandransh 34885
    public updateNonDeliveryReason_args() {
1629 ankur.sing 34886
    }
34887
 
3061 chandransh 34888
    public updateNonDeliveryReason_args(
34889
      long providerId,
34890
      Map<String,String> undeliveredOrders)
34891
    {
34892
      this();
34893
      this.providerId = providerId;
34894
      setProviderIdIsSet(true);
34895
      this.undeliveredOrders = undeliveredOrders;
34896
    }
34897
 
1629 ankur.sing 34898
    /**
34899
     * Performs a deep copy on <i>other</i>.
34900
     */
3061 chandransh 34901
    public updateNonDeliveryReason_args(updateNonDeliveryReason_args other) {
34902
      __isset_bit_vector.clear();
34903
      __isset_bit_vector.or(other.__isset_bit_vector);
34904
      this.providerId = other.providerId;
34905
      if (other.isSetUndeliveredOrders()) {
34906
        Map<String,String> __this__undeliveredOrders = new HashMap<String,String>();
34907
        for (Map.Entry<String, String> other_element : other.undeliveredOrders.entrySet()) {
34908
 
34909
          String other_element_key = other_element.getKey();
34910
          String other_element_value = other_element.getValue();
34911
 
34912
          String __this__undeliveredOrders_copy_key = other_element_key;
34913
 
34914
          String __this__undeliveredOrders_copy_value = other_element_value;
34915
 
34916
          __this__undeliveredOrders.put(__this__undeliveredOrders_copy_key, __this__undeliveredOrders_copy_value);
34917
        }
34918
        this.undeliveredOrders = __this__undeliveredOrders;
34919
      }
1629 ankur.sing 34920
    }
34921
 
3061 chandransh 34922
    public updateNonDeliveryReason_args deepCopy() {
34923
      return new updateNonDeliveryReason_args(this);
1629 ankur.sing 34924
    }
34925
 
3430 rajveer 34926
    @Override
34927
    public void clear() {
34928
      setProviderIdIsSet(false);
34929
      this.providerId = 0;
34930
      this.undeliveredOrders = null;
1629 ankur.sing 34931
    }
34932
 
3061 chandransh 34933
    public long getProviderId() {
34934
      return this.providerId;
34935
    }
34936
 
3430 rajveer 34937
    public void setProviderId(long providerId) {
3061 chandransh 34938
      this.providerId = providerId;
34939
      setProviderIdIsSet(true);
34940
    }
34941
 
34942
    public void unsetProviderId() {
34943
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
34944
    }
34945
 
3430 rajveer 34946
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 34947
    public boolean isSetProviderId() {
34948
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
34949
    }
34950
 
34951
    public void setProviderIdIsSet(boolean value) {
34952
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
34953
    }
34954
 
34955
    public int getUndeliveredOrdersSize() {
34956
      return (this.undeliveredOrders == null) ? 0 : this.undeliveredOrders.size();
34957
    }
34958
 
34959
    public void putToUndeliveredOrders(String key, String val) {
34960
      if (this.undeliveredOrders == null) {
34961
        this.undeliveredOrders = new HashMap<String,String>();
34962
      }
34963
      this.undeliveredOrders.put(key, val);
34964
    }
34965
 
34966
    public Map<String,String> getUndeliveredOrders() {
34967
      return this.undeliveredOrders;
34968
    }
34969
 
3430 rajveer 34970
    public void setUndeliveredOrders(Map<String,String> undeliveredOrders) {
3061 chandransh 34971
      this.undeliveredOrders = undeliveredOrders;
34972
    }
34973
 
34974
    public void unsetUndeliveredOrders() {
34975
      this.undeliveredOrders = null;
34976
    }
34977
 
3430 rajveer 34978
    /** Returns true if field undeliveredOrders is set (has been assigned a value) and false otherwise */
3061 chandransh 34979
    public boolean isSetUndeliveredOrders() {
34980
      return this.undeliveredOrders != null;
34981
    }
34982
 
34983
    public void setUndeliveredOrdersIsSet(boolean value) {
34984
      if (!value) {
34985
        this.undeliveredOrders = null;
34986
      }
34987
    }
34988
 
1629 ankur.sing 34989
    public void setFieldValue(_Fields field, Object value) {
34990
      switch (field) {
3061 chandransh 34991
      case PROVIDER_ID:
34992
        if (value == null) {
34993
          unsetProviderId();
34994
        } else {
34995
          setProviderId((Long)value);
34996
        }
34997
        break;
34998
 
34999
      case UNDELIVERED_ORDERS:
35000
        if (value == null) {
35001
          unsetUndeliveredOrders();
35002
        } else {
35003
          setUndeliveredOrders((Map<String,String>)value);
35004
        }
35005
        break;
35006
 
1629 ankur.sing 35007
      }
35008
    }
35009
 
35010
    public Object getFieldValue(_Fields field) {
35011
      switch (field) {
3061 chandransh 35012
      case PROVIDER_ID:
3430 rajveer 35013
        return Long.valueOf(getProviderId());
3061 chandransh 35014
 
35015
      case UNDELIVERED_ORDERS:
35016
        return getUndeliveredOrders();
35017
 
1629 ankur.sing 35018
      }
35019
      throw new IllegalStateException();
35020
    }
35021
 
3430 rajveer 35022
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35023
    public boolean isSet(_Fields field) {
35024
      if (field == null) {
35025
        throw new IllegalArgumentException();
35026
      }
1629 ankur.sing 35027
 
35028
      switch (field) {
3061 chandransh 35029
      case PROVIDER_ID:
35030
        return isSetProviderId();
35031
      case UNDELIVERED_ORDERS:
35032
        return isSetUndeliveredOrders();
1629 ankur.sing 35033
      }
35034
      throw new IllegalStateException();
35035
    }
35036
 
35037
    @Override
35038
    public boolean equals(Object that) {
35039
      if (that == null)
35040
        return false;
3061 chandransh 35041
      if (that instanceof updateNonDeliveryReason_args)
35042
        return this.equals((updateNonDeliveryReason_args)that);
1629 ankur.sing 35043
      return false;
35044
    }
35045
 
3061 chandransh 35046
    public boolean equals(updateNonDeliveryReason_args that) {
1629 ankur.sing 35047
      if (that == null)
35048
        return false;
35049
 
3061 chandransh 35050
      boolean this_present_providerId = true;
35051
      boolean that_present_providerId = true;
35052
      if (this_present_providerId || that_present_providerId) {
35053
        if (!(this_present_providerId && that_present_providerId))
35054
          return false;
35055
        if (this.providerId != that.providerId)
35056
          return false;
35057
      }
35058
 
35059
      boolean this_present_undeliveredOrders = true && this.isSetUndeliveredOrders();
35060
      boolean that_present_undeliveredOrders = true && that.isSetUndeliveredOrders();
35061
      if (this_present_undeliveredOrders || that_present_undeliveredOrders) {
35062
        if (!(this_present_undeliveredOrders && that_present_undeliveredOrders))
35063
          return false;
35064
        if (!this.undeliveredOrders.equals(that.undeliveredOrders))
35065
          return false;
35066
      }
35067
 
1629 ankur.sing 35068
      return true;
35069
    }
35070
 
35071
    @Override
35072
    public int hashCode() {
35073
      return 0;
35074
    }
35075
 
3430 rajveer 35076
    public int compareTo(updateNonDeliveryReason_args other) {
35077
      if (!getClass().equals(other.getClass())) {
35078
        return getClass().getName().compareTo(other.getClass().getName());
35079
      }
35080
 
35081
      int lastComparison = 0;
35082
      updateNonDeliveryReason_args typedOther = (updateNonDeliveryReason_args)other;
35083
 
35084
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
35085
      if (lastComparison != 0) {
35086
        return lastComparison;
35087
      }
35088
      if (isSetProviderId()) {
35089
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
35090
        if (lastComparison != 0) {
35091
          return lastComparison;
35092
        }
35093
      }
35094
      lastComparison = Boolean.valueOf(isSetUndeliveredOrders()).compareTo(typedOther.isSetUndeliveredOrders());
35095
      if (lastComparison != 0) {
35096
        return lastComparison;
35097
      }
35098
      if (isSetUndeliveredOrders()) {
35099
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.undeliveredOrders, typedOther.undeliveredOrders);
35100
        if (lastComparison != 0) {
35101
          return lastComparison;
35102
        }
35103
      }
35104
      return 0;
35105
    }
35106
 
35107
    public _Fields fieldForId(int fieldId) {
35108
      return _Fields.findByThriftId(fieldId);
35109
    }
35110
 
35111
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35112
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 35113
      iprot.readStructBegin();
35114
      while (true)
35115
      {
35116
        field = iprot.readFieldBegin();
3430 rajveer 35117
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 35118
          break;
35119
        }
3430 rajveer 35120
        switch (field.id) {
35121
          case 1: // PROVIDER_ID
35122
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35123
              this.providerId = iprot.readI64();
35124
              setProviderIdIsSet(true);
35125
            } else { 
35126
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35127
            }
35128
            break;
35129
          case 2: // UNDELIVERED_ORDERS
35130
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
35131
              {
4133 chandransh 35132
                org.apache.thrift.protocol.TMap _map99 = iprot.readMapBegin();
35133
                this.undeliveredOrders = new HashMap<String,String>(2*_map99.size);
35134
                for (int _i100 = 0; _i100 < _map99.size; ++_i100)
3061 chandransh 35135
                {
4133 chandransh 35136
                  String _key101; // required
35137
                  String _val102; // required
35138
                  _key101 = iprot.readString();
35139
                  _val102 = iprot.readString();
35140
                  this.undeliveredOrders.put(_key101, _val102);
3061 chandransh 35141
                }
3430 rajveer 35142
                iprot.readMapEnd();
3061 chandransh 35143
              }
3430 rajveer 35144
            } else { 
35145
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35146
            }
35147
            break;
35148
          default:
35149
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 35150
        }
3430 rajveer 35151
        iprot.readFieldEnd();
1629 ankur.sing 35152
      }
35153
      iprot.readStructEnd();
35154
      validate();
35155
    }
35156
 
3430 rajveer 35157
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 35158
      validate();
35159
 
35160
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 35161
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
35162
      oprot.writeI64(this.providerId);
35163
      oprot.writeFieldEnd();
35164
      if (this.undeliveredOrders != null) {
35165
        oprot.writeFieldBegin(UNDELIVERED_ORDERS_FIELD_DESC);
35166
        {
3430 rajveer 35167
          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 35168
          for (Map.Entry<String, String> _iter103 : this.undeliveredOrders.entrySet())
3061 chandransh 35169
          {
4133 chandransh 35170
            oprot.writeString(_iter103.getKey());
35171
            oprot.writeString(_iter103.getValue());
3061 chandransh 35172
          }
35173
          oprot.writeMapEnd();
35174
        }
35175
        oprot.writeFieldEnd();
35176
      }
1629 ankur.sing 35177
      oprot.writeFieldStop();
35178
      oprot.writeStructEnd();
35179
    }
35180
 
35181
    @Override
35182
    public String toString() {
3061 chandransh 35183
      StringBuilder sb = new StringBuilder("updateNonDeliveryReason_args(");
1629 ankur.sing 35184
      boolean first = true;
35185
 
3061 chandransh 35186
      sb.append("providerId:");
35187
      sb.append(this.providerId);
35188
      first = false;
35189
      if (!first) sb.append(", ");
35190
      sb.append("undeliveredOrders:");
35191
      if (this.undeliveredOrders == null) {
35192
        sb.append("null");
35193
      } else {
35194
        sb.append(this.undeliveredOrders);
35195
      }
35196
      first = false;
1629 ankur.sing 35197
      sb.append(")");
35198
      return sb.toString();
35199
    }
35200
 
3430 rajveer 35201
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 35202
      // check for required fields
35203
    }
35204
 
3430 rajveer 35205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35206
      try {
35207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35208
      } catch (org.apache.thrift.TException te) {
35209
        throw new java.io.IOException(te);
35210
      }
35211
    }
35212
 
35213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35214
      try {
35215
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35216
      } catch (org.apache.thrift.TException te) {
35217
        throw new java.io.IOException(te);
35218
      }
35219
    }
35220
 
1629 ankur.sing 35221
  }
35222
 
3430 rajveer 35223
  public static class updateNonDeliveryReason_result implements org.apache.thrift.TBase<updateNonDeliveryReason_result, updateNonDeliveryReason_result._Fields>, java.io.Serializable, Cloneable   {
35224
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNonDeliveryReason_result");
1629 ankur.sing 35225
 
3430 rajveer 35226
    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 35227
 
3430 rajveer 35228
    private TransactionServiceException ex; // required
1629 ankur.sing 35229
 
35230
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35231
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 35232
      EX((short)1, "ex");
1629 ankur.sing 35233
 
35234
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35235
 
35236
      static {
35237
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35238
          byName.put(field.getFieldName(), field);
35239
        }
35240
      }
35241
 
35242
      /**
35243
       * Find the _Fields constant that matches fieldId, or null if its not found.
35244
       */
35245
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35246
        switch(fieldId) {
35247
          case 1: // EX
35248
            return EX;
35249
          default:
35250
            return null;
35251
        }
1629 ankur.sing 35252
      }
35253
 
35254
      /**
35255
       * Find the _Fields constant that matches fieldId, throwing an exception
35256
       * if it is not found.
35257
       */
35258
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35259
        _Fields fields = findByThriftId(fieldId);
35260
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35261
        return fields;
35262
      }
35263
 
35264
      /**
35265
       * Find the _Fields constant that matches name, or null if its not found.
35266
       */
35267
      public static _Fields findByName(String name) {
35268
        return byName.get(name);
35269
      }
35270
 
35271
      private final short _thriftId;
35272
      private final String _fieldName;
35273
 
35274
      _Fields(short thriftId, String fieldName) {
35275
        _thriftId = thriftId;
35276
        _fieldName = fieldName;
35277
      }
35278
 
35279
      public short getThriftFieldId() {
35280
        return _thriftId;
35281
      }
35282
 
35283
      public String getFieldName() {
35284
        return _fieldName;
35285
      }
35286
    }
35287
 
35288
    // isset id assignments
35289
 
3430 rajveer 35290
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 35291
    static {
3430 rajveer 35292
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35293
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35294
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
35295
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35296
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_result.class, metaDataMap);
1629 ankur.sing 35297
    }
35298
 
3061 chandransh 35299
    public updateNonDeliveryReason_result() {
1629 ankur.sing 35300
    }
35301
 
3061 chandransh 35302
    public updateNonDeliveryReason_result(
35303
      TransactionServiceException ex)
1629 ankur.sing 35304
    {
35305
      this();
3061 chandransh 35306
      this.ex = ex;
1629 ankur.sing 35307
    }
35308
 
35309
    /**
35310
     * Performs a deep copy on <i>other</i>.
35311
     */
3061 chandransh 35312
    public updateNonDeliveryReason_result(updateNonDeliveryReason_result other) {
35313
      if (other.isSetEx()) {
35314
        this.ex = new TransactionServiceException(other.ex);
1629 ankur.sing 35315
      }
35316
    }
35317
 
3061 chandransh 35318
    public updateNonDeliveryReason_result deepCopy() {
35319
      return new updateNonDeliveryReason_result(this);
1629 ankur.sing 35320
    }
35321
 
3430 rajveer 35322
    @Override
35323
    public void clear() {
35324
      this.ex = null;
1629 ankur.sing 35325
    }
35326
 
3061 chandransh 35327
    public TransactionServiceException getEx() {
35328
      return this.ex;
1629 ankur.sing 35329
    }
35330
 
3430 rajveer 35331
    public void setEx(TransactionServiceException ex) {
3061 chandransh 35332
      this.ex = ex;
1629 ankur.sing 35333
    }
35334
 
3061 chandransh 35335
    public void unsetEx() {
35336
      this.ex = null;
1629 ankur.sing 35337
    }
35338
 
3430 rajveer 35339
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 35340
    public boolean isSetEx() {
35341
      return this.ex != null;
1629 ankur.sing 35342
    }
35343
 
3061 chandransh 35344
    public void setExIsSet(boolean value) {
1731 ankur.sing 35345
      if (!value) {
3061 chandransh 35346
        this.ex = null;
1731 ankur.sing 35347
      }
1629 ankur.sing 35348
    }
35349
 
35350
    public void setFieldValue(_Fields field, Object value) {
35351
      switch (field) {
3061 chandransh 35352
      case EX:
1629 ankur.sing 35353
        if (value == null) {
3061 chandransh 35354
          unsetEx();
1629 ankur.sing 35355
        } else {
3061 chandransh 35356
          setEx((TransactionServiceException)value);
1629 ankur.sing 35357
        }
35358
        break;
35359
 
35360
      }
35361
    }
35362
 
35363
    public Object getFieldValue(_Fields field) {
35364
      switch (field) {
3061 chandransh 35365
      case EX:
35366
        return getEx();
1629 ankur.sing 35367
 
35368
      }
35369
      throw new IllegalStateException();
35370
    }
35371
 
3430 rajveer 35372
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35373
    public boolean isSet(_Fields field) {
35374
      if (field == null) {
35375
        throw new IllegalArgumentException();
35376
      }
1629 ankur.sing 35377
 
35378
      switch (field) {
3061 chandransh 35379
      case EX:
35380
        return isSetEx();
1629 ankur.sing 35381
      }
35382
      throw new IllegalStateException();
35383
    }
35384
 
35385
    @Override
35386
    public boolean equals(Object that) {
35387
      if (that == null)
35388
        return false;
3061 chandransh 35389
      if (that instanceof updateNonDeliveryReason_result)
35390
        return this.equals((updateNonDeliveryReason_result)that);
1629 ankur.sing 35391
      return false;
35392
    }
35393
 
3061 chandransh 35394
    public boolean equals(updateNonDeliveryReason_result that) {
1629 ankur.sing 35395
      if (that == null)
35396
        return false;
35397
 
3061 chandransh 35398
      boolean this_present_ex = true && this.isSetEx();
35399
      boolean that_present_ex = true && that.isSetEx();
35400
      if (this_present_ex || that_present_ex) {
35401
        if (!(this_present_ex && that_present_ex))
1629 ankur.sing 35402
          return false;
3061 chandransh 35403
        if (!this.ex.equals(that.ex))
1629 ankur.sing 35404
          return false;
35405
      }
35406
 
35407
      return true;
35408
    }
35409
 
35410
    @Override
35411
    public int hashCode() {
35412
      return 0;
35413
    }
35414
 
3061 chandransh 35415
    public int compareTo(updateNonDeliveryReason_result other) {
1629 ankur.sing 35416
      if (!getClass().equals(other.getClass())) {
35417
        return getClass().getName().compareTo(other.getClass().getName());
35418
      }
35419
 
35420
      int lastComparison = 0;
3061 chandransh 35421
      updateNonDeliveryReason_result typedOther = (updateNonDeliveryReason_result)other;
1629 ankur.sing 35422
 
3430 rajveer 35423
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1629 ankur.sing 35424
      if (lastComparison != 0) {
35425
        return lastComparison;
35426
      }
3430 rajveer 35427
      if (isSetEx()) {
35428
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
35429
        if (lastComparison != 0) {
35430
          return lastComparison;
35431
        }
1629 ankur.sing 35432
      }
35433
      return 0;
35434
    }
35435
 
3430 rajveer 35436
    public _Fields fieldForId(int fieldId) {
35437
      return _Fields.findByThriftId(fieldId);
35438
    }
35439
 
35440
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35441
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 35442
      iprot.readStructBegin();
35443
      while (true)
35444
      {
35445
        field = iprot.readFieldBegin();
3430 rajveer 35446
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 35447
          break;
35448
        }
3430 rajveer 35449
        switch (field.id) {
35450
          case 1: // EX
35451
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35452
              this.ex = new TransactionServiceException();
35453
              this.ex.read(iprot);
35454
            } else { 
35455
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35456
            }
35457
            break;
35458
          default:
35459
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 35460
        }
3430 rajveer 35461
        iprot.readFieldEnd();
1629 ankur.sing 35462
      }
35463
      iprot.readStructEnd();
35464
      validate();
35465
    }
35466
 
3430 rajveer 35467
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 35468
      oprot.writeStructBegin(STRUCT_DESC);
35469
 
3061 chandransh 35470
      if (this.isSetEx()) {
35471
        oprot.writeFieldBegin(EX_FIELD_DESC);
35472
        this.ex.write(oprot);
1629 ankur.sing 35473
        oprot.writeFieldEnd();
35474
      }
35475
      oprot.writeFieldStop();
35476
      oprot.writeStructEnd();
35477
    }
35478
 
35479
    @Override
35480
    public String toString() {
3061 chandransh 35481
      StringBuilder sb = new StringBuilder("updateNonDeliveryReason_result(");
1629 ankur.sing 35482
      boolean first = true;
35483
 
3061 chandransh 35484
      sb.append("ex:");
35485
      if (this.ex == null) {
1731 ankur.sing 35486
        sb.append("null");
35487
      } else {
3061 chandransh 35488
        sb.append(this.ex);
1731 ankur.sing 35489
      }
1629 ankur.sing 35490
      first = false;
35491
      sb.append(")");
35492
      return sb.toString();
35493
    }
35494
 
3430 rajveer 35495
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 35496
      // check for required fields
35497
    }
35498
 
3430 rajveer 35499
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35500
      try {
35501
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35502
      } catch (org.apache.thrift.TException te) {
35503
        throw new java.io.IOException(te);
35504
      }
35505
    }
35506
 
35507
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35508
      try {
35509
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35510
      } catch (org.apache.thrift.TException te) {
35511
        throw new java.io.IOException(te);
35512
      }
35513
    }
35514
 
1629 ankur.sing 35515
  }
35516
 
3430 rajveer 35517
  public static class getUndeliveredOrders_args implements org.apache.thrift.TBase<getUndeliveredOrders_args, getUndeliveredOrders_args._Fields>, java.io.Serializable, Cloneable   {
35518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUndeliveredOrders_args");
1886 ankur.sing 35519
 
3430 rajveer 35520
    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);
35521
    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 35522
 
3430 rajveer 35523
    private long providerId; // required
35524
    private long warehouseId; // required
1886 ankur.sing 35525
 
35526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 35528
      PROVIDER_ID((short)1, "providerId"),
35529
      WAREHOUSE_ID((short)2, "warehouseId");
1886 ankur.sing 35530
 
35531
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35532
 
35533
      static {
35534
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35535
          byName.put(field.getFieldName(), field);
35536
        }
35537
      }
35538
 
35539
      /**
35540
       * Find the _Fields constant that matches fieldId, or null if its not found.
35541
       */
35542
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35543
        switch(fieldId) {
35544
          case 1: // PROVIDER_ID
35545
            return PROVIDER_ID;
35546
          case 2: // WAREHOUSE_ID
35547
            return WAREHOUSE_ID;
35548
          default:
35549
            return null;
35550
        }
1886 ankur.sing 35551
      }
35552
 
35553
      /**
35554
       * Find the _Fields constant that matches fieldId, throwing an exception
35555
       * if it is not found.
35556
       */
35557
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35558
        _Fields fields = findByThriftId(fieldId);
35559
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35560
        return fields;
35561
      }
35562
 
35563
      /**
35564
       * Find the _Fields constant that matches name, or null if its not found.
35565
       */
35566
      public static _Fields findByName(String name) {
35567
        return byName.get(name);
35568
      }
35569
 
35570
      private final short _thriftId;
35571
      private final String _fieldName;
35572
 
35573
      _Fields(short thriftId, String fieldName) {
35574
        _thriftId = thriftId;
35575
        _fieldName = fieldName;
35576
      }
35577
 
35578
      public short getThriftFieldId() {
35579
        return _thriftId;
35580
      }
35581
 
35582
      public String getFieldName() {
35583
        return _fieldName;
35584
      }
35585
    }
35586
 
35587
    // isset id assignments
3061 chandransh 35588
    private static final int __PROVIDERID_ISSET_ID = 0;
35589
    private static final int __WAREHOUSEID_ISSET_ID = 1;
35590
    private BitSet __isset_bit_vector = new BitSet(2);
1886 ankur.sing 35591
 
3430 rajveer 35592
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1886 ankur.sing 35593
    static {
3430 rajveer 35594
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35595
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35596
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35597
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35598
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35599
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35600
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUndeliveredOrders_args.class, metaDataMap);
1886 ankur.sing 35601
    }
35602
 
3061 chandransh 35603
    public getUndeliveredOrders_args() {
1886 ankur.sing 35604
    }
35605
 
3061 chandransh 35606
    public getUndeliveredOrders_args(
35607
      long providerId,
35608
      long warehouseId)
1886 ankur.sing 35609
    {
35610
      this();
3061 chandransh 35611
      this.providerId = providerId;
35612
      setProviderIdIsSet(true);
35613
      this.warehouseId = warehouseId;
35614
      setWarehouseIdIsSet(true);
1886 ankur.sing 35615
    }
35616
 
35617
    /**
35618
     * Performs a deep copy on <i>other</i>.
35619
     */
3061 chandransh 35620
    public getUndeliveredOrders_args(getUndeliveredOrders_args other) {
1886 ankur.sing 35621
      __isset_bit_vector.clear();
35622
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 35623
      this.providerId = other.providerId;
35624
      this.warehouseId = other.warehouseId;
1886 ankur.sing 35625
    }
35626
 
3061 chandransh 35627
    public getUndeliveredOrders_args deepCopy() {
35628
      return new getUndeliveredOrders_args(this);
1886 ankur.sing 35629
    }
35630
 
3430 rajveer 35631
    @Override
35632
    public void clear() {
35633
      setProviderIdIsSet(false);
35634
      this.providerId = 0;
35635
      setWarehouseIdIsSet(false);
35636
      this.warehouseId = 0;
1886 ankur.sing 35637
    }
35638
 
3061 chandransh 35639
    public long getProviderId() {
35640
      return this.providerId;
1886 ankur.sing 35641
    }
35642
 
3430 rajveer 35643
    public void setProviderId(long providerId) {
3061 chandransh 35644
      this.providerId = providerId;
35645
      setProviderIdIsSet(true);
1886 ankur.sing 35646
    }
35647
 
3061 chandransh 35648
    public void unsetProviderId() {
35649
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1886 ankur.sing 35650
    }
35651
 
3430 rajveer 35652
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 35653
    public boolean isSetProviderId() {
35654
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1886 ankur.sing 35655
    }
35656
 
3061 chandransh 35657
    public void setProviderIdIsSet(boolean value) {
35658
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
1886 ankur.sing 35659
    }
35660
 
3061 chandransh 35661
    public long getWarehouseId() {
35662
      return this.warehouseId;
35663
    }
35664
 
3430 rajveer 35665
    public void setWarehouseId(long warehouseId) {
3061 chandransh 35666
      this.warehouseId = warehouseId;
35667
      setWarehouseIdIsSet(true);
35668
    }
35669
 
35670
    public void unsetWarehouseId() {
35671
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
35672
    }
35673
 
3430 rajveer 35674
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
3061 chandransh 35675
    public boolean isSetWarehouseId() {
35676
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
35677
    }
35678
 
35679
    public void setWarehouseIdIsSet(boolean value) {
35680
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
35681
    }
35682
 
1886 ankur.sing 35683
    public void setFieldValue(_Fields field, Object value) {
35684
      switch (field) {
3061 chandransh 35685
      case PROVIDER_ID:
1886 ankur.sing 35686
        if (value == null) {
3061 chandransh 35687
          unsetProviderId();
1886 ankur.sing 35688
        } else {
3061 chandransh 35689
          setProviderId((Long)value);
1886 ankur.sing 35690
        }
35691
        break;
35692
 
3061 chandransh 35693
      case WAREHOUSE_ID:
35694
        if (value == null) {
35695
          unsetWarehouseId();
35696
        } else {
35697
          setWarehouseId((Long)value);
35698
        }
35699
        break;
35700
 
1886 ankur.sing 35701
      }
35702
    }
35703
 
35704
    public Object getFieldValue(_Fields field) {
35705
      switch (field) {
3061 chandransh 35706
      case PROVIDER_ID:
3430 rajveer 35707
        return Long.valueOf(getProviderId());
1886 ankur.sing 35708
 
3061 chandransh 35709
      case WAREHOUSE_ID:
3430 rajveer 35710
        return Long.valueOf(getWarehouseId());
3061 chandransh 35711
 
1886 ankur.sing 35712
      }
35713
      throw new IllegalStateException();
35714
    }
35715
 
3430 rajveer 35716
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35717
    public boolean isSet(_Fields field) {
35718
      if (field == null) {
35719
        throw new IllegalArgumentException();
35720
      }
1886 ankur.sing 35721
 
35722
      switch (field) {
3061 chandransh 35723
      case PROVIDER_ID:
35724
        return isSetProviderId();
35725
      case WAREHOUSE_ID:
35726
        return isSetWarehouseId();
1886 ankur.sing 35727
      }
35728
      throw new IllegalStateException();
35729
    }
35730
 
35731
    @Override
35732
    public boolean equals(Object that) {
35733
      if (that == null)
35734
        return false;
3061 chandransh 35735
      if (that instanceof getUndeliveredOrders_args)
35736
        return this.equals((getUndeliveredOrders_args)that);
1886 ankur.sing 35737
      return false;
35738
    }
35739
 
3061 chandransh 35740
    public boolean equals(getUndeliveredOrders_args that) {
1886 ankur.sing 35741
      if (that == null)
35742
        return false;
35743
 
3061 chandransh 35744
      boolean this_present_providerId = true;
35745
      boolean that_present_providerId = true;
35746
      if (this_present_providerId || that_present_providerId) {
35747
        if (!(this_present_providerId && that_present_providerId))
1886 ankur.sing 35748
          return false;
3061 chandransh 35749
        if (this.providerId != that.providerId)
1886 ankur.sing 35750
          return false;
35751
      }
35752
 
3061 chandransh 35753
      boolean this_present_warehouseId = true;
35754
      boolean that_present_warehouseId = true;
35755
      if (this_present_warehouseId || that_present_warehouseId) {
35756
        if (!(this_present_warehouseId && that_present_warehouseId))
35757
          return false;
35758
        if (this.warehouseId != that.warehouseId)
35759
          return false;
35760
      }
35761
 
1886 ankur.sing 35762
      return true;
35763
    }
35764
 
35765
    @Override
35766
    public int hashCode() {
35767
      return 0;
35768
    }
35769
 
3061 chandransh 35770
    public int compareTo(getUndeliveredOrders_args other) {
1886 ankur.sing 35771
      if (!getClass().equals(other.getClass())) {
35772
        return getClass().getName().compareTo(other.getClass().getName());
35773
      }
35774
 
35775
      int lastComparison = 0;
3061 chandransh 35776
      getUndeliveredOrders_args typedOther = (getUndeliveredOrders_args)other;
1886 ankur.sing 35777
 
3430 rajveer 35778
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1886 ankur.sing 35779
      if (lastComparison != 0) {
35780
        return lastComparison;
35781
      }
3430 rajveer 35782
      if (isSetProviderId()) {
35783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
35784
        if (lastComparison != 0) {
35785
          return lastComparison;
35786
        }
1886 ankur.sing 35787
      }
3430 rajveer 35788
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
3061 chandransh 35789
      if (lastComparison != 0) {
35790
        return lastComparison;
35791
      }
3430 rajveer 35792
      if (isSetWarehouseId()) {
35793
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
35794
        if (lastComparison != 0) {
35795
          return lastComparison;
35796
        }
3061 chandransh 35797
      }
1886 ankur.sing 35798
      return 0;
35799
    }
35800
 
3430 rajveer 35801
    public _Fields fieldForId(int fieldId) {
35802
      return _Fields.findByThriftId(fieldId);
35803
    }
35804
 
35805
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35806
      org.apache.thrift.protocol.TField field;
1886 ankur.sing 35807
      iprot.readStructBegin();
35808
      while (true)
35809
      {
35810
        field = iprot.readFieldBegin();
3430 rajveer 35811
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1886 ankur.sing 35812
          break;
35813
        }
3430 rajveer 35814
        switch (field.id) {
35815
          case 1: // PROVIDER_ID
35816
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35817
              this.providerId = iprot.readI64();
35818
              setProviderIdIsSet(true);
35819
            } else { 
35820
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35821
            }
35822
            break;
35823
          case 2: // WAREHOUSE_ID
35824
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35825
              this.warehouseId = iprot.readI64();
35826
              setWarehouseIdIsSet(true);
35827
            } else { 
35828
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35829
            }
35830
            break;
35831
          default:
35832
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1886 ankur.sing 35833
        }
3430 rajveer 35834
        iprot.readFieldEnd();
1886 ankur.sing 35835
      }
35836
      iprot.readStructEnd();
35837
      validate();
35838
    }
35839
 
3430 rajveer 35840
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1886 ankur.sing 35841
      validate();
35842
 
35843
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 35844
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
35845
      oprot.writeI64(this.providerId);
1886 ankur.sing 35846
      oprot.writeFieldEnd();
3061 chandransh 35847
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
35848
      oprot.writeI64(this.warehouseId);
35849
      oprot.writeFieldEnd();
1886 ankur.sing 35850
      oprot.writeFieldStop();
35851
      oprot.writeStructEnd();
35852
    }
35853
 
35854
    @Override
35855
    public String toString() {
3061 chandransh 35856
      StringBuilder sb = new StringBuilder("getUndeliveredOrders_args(");
1886 ankur.sing 35857
      boolean first = true;
35858
 
3061 chandransh 35859
      sb.append("providerId:");
35860
      sb.append(this.providerId);
1886 ankur.sing 35861
      first = false;
3061 chandransh 35862
      if (!first) sb.append(", ");
35863
      sb.append("warehouseId:");
35864
      sb.append(this.warehouseId);
35865
      first = false;
1886 ankur.sing 35866
      sb.append(")");
35867
      return sb.toString();
35868
    }
35869
 
3430 rajveer 35870
    public void validate() throws org.apache.thrift.TException {
1886 ankur.sing 35871
      // check for required fields
35872
    }
35873
 
3430 rajveer 35874
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35875
      try {
35876
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35877
      } catch (org.apache.thrift.TException te) {
35878
        throw new java.io.IOException(te);
35879
      }
35880
    }
35881
 
35882
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35883
      try {
35884
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35885
      } catch (org.apache.thrift.TException te) {
35886
        throw new java.io.IOException(te);
35887
      }
35888
    }
35889
 
1886 ankur.sing 35890
  }
35891
 
3430 rajveer 35892
  public static class getUndeliveredOrders_result implements org.apache.thrift.TBase<getUndeliveredOrders_result, getUndeliveredOrders_result._Fields>, java.io.Serializable, Cloneable   {
35893
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUndeliveredOrders_result");
1886 ankur.sing 35894
 
3430 rajveer 35895
    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 35896
 
3430 rajveer 35897
    private List<Order> success; // required
1886 ankur.sing 35898
 
35899
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35900
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1886 ankur.sing 35901
      SUCCESS((short)0, "success");
35902
 
35903
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35904
 
35905
      static {
35906
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35907
          byName.put(field.getFieldName(), field);
35908
        }
35909
      }
35910
 
35911
      /**
35912
       * Find the _Fields constant that matches fieldId, or null if its not found.
35913
       */
35914
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35915
        switch(fieldId) {
35916
          case 0: // SUCCESS
35917
            return SUCCESS;
35918
          default:
35919
            return null;
35920
        }
1886 ankur.sing 35921
      }
35922
 
35923
      /**
35924
       * Find the _Fields constant that matches fieldId, throwing an exception
35925
       * if it is not found.
35926
       */
35927
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35928
        _Fields fields = findByThriftId(fieldId);
35929
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35930
        return fields;
35931
      }
35932
 
35933
      /**
35934
       * Find the _Fields constant that matches name, or null if its not found.
35935
       */
35936
      public static _Fields findByName(String name) {
35937
        return byName.get(name);
35938
      }
35939
 
35940
      private final short _thriftId;
35941
      private final String _fieldName;
35942
 
35943
      _Fields(short thriftId, String fieldName) {
35944
        _thriftId = thriftId;
35945
        _fieldName = fieldName;
35946
      }
35947
 
35948
      public short getThriftFieldId() {
35949
        return _thriftId;
35950
      }
35951
 
35952
      public String getFieldName() {
35953
        return _fieldName;
35954
      }
35955
    }
35956
 
35957
    // isset id assignments
35958
 
3430 rajveer 35959
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1886 ankur.sing 35960
    static {
3430 rajveer 35961
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35962
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35963
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
35964
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
35965
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35966
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUndeliveredOrders_result.class, metaDataMap);
1886 ankur.sing 35967
    }
35968
 
3061 chandransh 35969
    public getUndeliveredOrders_result() {
1886 ankur.sing 35970
    }
35971
 
3061 chandransh 35972
    public getUndeliveredOrders_result(
1886 ankur.sing 35973
      List<Order> success)
35974
    {
35975
      this();
35976
      this.success = success;
35977
    }
35978
 
35979
    /**
35980
     * Performs a deep copy on <i>other</i>.
35981
     */
3061 chandransh 35982
    public getUndeliveredOrders_result(getUndeliveredOrders_result other) {
1886 ankur.sing 35983
      if (other.isSetSuccess()) {
35984
        List<Order> __this__success = new ArrayList<Order>();
35985
        for (Order other_element : other.success) {
35986
          __this__success.add(new Order(other_element));
35987
        }
35988
        this.success = __this__success;
35989
      }
35990
    }
35991
 
3061 chandransh 35992
    public getUndeliveredOrders_result deepCopy() {
35993
      return new getUndeliveredOrders_result(this);
1886 ankur.sing 35994
    }
35995
 
3430 rajveer 35996
    @Override
35997
    public void clear() {
35998
      this.success = null;
1886 ankur.sing 35999
    }
36000
 
36001
    public int getSuccessSize() {
36002
      return (this.success == null) ? 0 : this.success.size();
36003
    }
36004
 
36005
    public java.util.Iterator<Order> getSuccessIterator() {
36006
      return (this.success == null) ? null : this.success.iterator();
36007
    }
36008
 
36009
    public void addToSuccess(Order elem) {
36010
      if (this.success == null) {
36011
        this.success = new ArrayList<Order>();
36012
      }
36013
      this.success.add(elem);
36014
    }
36015
 
36016
    public List<Order> getSuccess() {
36017
      return this.success;
36018
    }
36019
 
3430 rajveer 36020
    public void setSuccess(List<Order> success) {
1886 ankur.sing 36021
      this.success = success;
36022
    }
36023
 
36024
    public void unsetSuccess() {
36025
      this.success = null;
36026
    }
36027
 
3430 rajveer 36028
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1886 ankur.sing 36029
    public boolean isSetSuccess() {
36030
      return this.success != null;
36031
    }
36032
 
36033
    public void setSuccessIsSet(boolean value) {
36034
      if (!value) {
36035
        this.success = null;
36036
      }
36037
    }
36038
 
36039
    public void setFieldValue(_Fields field, Object value) {
36040
      switch (field) {
36041
      case SUCCESS:
36042
        if (value == null) {
36043
          unsetSuccess();
36044
        } else {
36045
          setSuccess((List<Order>)value);
36046
        }
36047
        break;
36048
 
36049
      }
36050
    }
36051
 
36052
    public Object getFieldValue(_Fields field) {
36053
      switch (field) {
36054
      case SUCCESS:
36055
        return getSuccess();
36056
 
36057
      }
36058
      throw new IllegalStateException();
36059
    }
36060
 
3430 rajveer 36061
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36062
    public boolean isSet(_Fields field) {
36063
      if (field == null) {
36064
        throw new IllegalArgumentException();
36065
      }
1886 ankur.sing 36066
 
36067
      switch (field) {
36068
      case SUCCESS:
36069
        return isSetSuccess();
36070
      }
36071
      throw new IllegalStateException();
36072
    }
36073
 
36074
    @Override
36075
    public boolean equals(Object that) {
36076
      if (that == null)
36077
        return false;
3061 chandransh 36078
      if (that instanceof getUndeliveredOrders_result)
36079
        return this.equals((getUndeliveredOrders_result)that);
1886 ankur.sing 36080
      return false;
36081
    }
36082
 
3061 chandransh 36083
    public boolean equals(getUndeliveredOrders_result that) {
1886 ankur.sing 36084
      if (that == null)
36085
        return false;
36086
 
36087
      boolean this_present_success = true && this.isSetSuccess();
36088
      boolean that_present_success = true && that.isSetSuccess();
36089
      if (this_present_success || that_present_success) {
36090
        if (!(this_present_success && that_present_success))
36091
          return false;
36092
        if (!this.success.equals(that.success))
36093
          return false;
36094
      }
36095
 
36096
      return true;
36097
    }
36098
 
36099
    @Override
36100
    public int hashCode() {
36101
      return 0;
36102
    }
36103
 
3061 chandransh 36104
    public int compareTo(getUndeliveredOrders_result other) {
1886 ankur.sing 36105
      if (!getClass().equals(other.getClass())) {
36106
        return getClass().getName().compareTo(other.getClass().getName());
36107
      }
36108
 
36109
      int lastComparison = 0;
3061 chandransh 36110
      getUndeliveredOrders_result typedOther = (getUndeliveredOrders_result)other;
1886 ankur.sing 36111
 
3430 rajveer 36112
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1886 ankur.sing 36113
      if (lastComparison != 0) {
36114
        return lastComparison;
36115
      }
3430 rajveer 36116
      if (isSetSuccess()) {
36117
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36118
        if (lastComparison != 0) {
36119
          return lastComparison;
36120
        }
1886 ankur.sing 36121
      }
36122
      return 0;
36123
    }
36124
 
3430 rajveer 36125
    public _Fields fieldForId(int fieldId) {
36126
      return _Fields.findByThriftId(fieldId);
36127
    }
36128
 
36129
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36130
      org.apache.thrift.protocol.TField field;
1886 ankur.sing 36131
      iprot.readStructBegin();
36132
      while (true)
36133
      {
36134
        field = iprot.readFieldBegin();
3430 rajveer 36135
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1886 ankur.sing 36136
          break;
36137
        }
3430 rajveer 36138
        switch (field.id) {
36139
          case 0: // SUCCESS
36140
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
36141
              {
4133 chandransh 36142
                org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();
36143
                this.success = new ArrayList<Order>(_list104.size);
36144
                for (int _i105 = 0; _i105 < _list104.size; ++_i105)
1886 ankur.sing 36145
                {
4133 chandransh 36146
                  Order _elem106; // required
36147
                  _elem106 = new Order();
36148
                  _elem106.read(iprot);
36149
                  this.success.add(_elem106);
1886 ankur.sing 36150
                }
3430 rajveer 36151
                iprot.readListEnd();
1886 ankur.sing 36152
              }
3430 rajveer 36153
            } else { 
36154
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36155
            }
36156
            break;
36157
          default:
36158
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1886 ankur.sing 36159
        }
3430 rajveer 36160
        iprot.readFieldEnd();
1886 ankur.sing 36161
      }
36162
      iprot.readStructEnd();
36163
      validate();
36164
    }
36165
 
3430 rajveer 36166
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1886 ankur.sing 36167
      oprot.writeStructBegin(STRUCT_DESC);
36168
 
36169
      if (this.isSetSuccess()) {
36170
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36171
        {
3430 rajveer 36172
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 36173
          for (Order _iter107 : this.success)
1886 ankur.sing 36174
          {
4133 chandransh 36175
            _iter107.write(oprot);
1886 ankur.sing 36176
          }
36177
          oprot.writeListEnd();
36178
        }
36179
        oprot.writeFieldEnd();
36180
      }
36181
      oprot.writeFieldStop();
36182
      oprot.writeStructEnd();
36183
    }
36184
 
36185
    @Override
36186
    public String toString() {
3061 chandransh 36187
      StringBuilder sb = new StringBuilder("getUndeliveredOrders_result(");
1886 ankur.sing 36188
      boolean first = true;
36189
 
36190
      sb.append("success:");
36191
      if (this.success == null) {
36192
        sb.append("null");
36193
      } else {
36194
        sb.append(this.success);
36195
      }
36196
      first = false;
36197
      sb.append(")");
36198
      return sb.toString();
36199
    }
36200
 
3430 rajveer 36201
    public void validate() throws org.apache.thrift.TException {
1886 ankur.sing 36202
      // check for required fields
36203
    }
36204
 
3430 rajveer 36205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36206
      try {
36207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36208
      } catch (org.apache.thrift.TException te) {
36209
        throw new java.io.IOException(te);
36210
      }
36211
    }
36212
 
36213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36214
      try {
36215
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36216
      } catch (org.apache.thrift.TException te) {
36217
        throw new java.io.IOException(te);
36218
      }
36219
    }
36220
 
1886 ankur.sing 36221
  }
36222
 
3430 rajveer 36223
  public static class toggleDOAFlag_args implements org.apache.thrift.TBase<toggleDOAFlag_args, toggleDOAFlag_args._Fields>, java.io.Serializable, Cloneable   {
36224
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("toggleDOAFlag_args");
2538 chandransh 36225
 
3430 rajveer 36226
    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 36227
 
3430 rajveer 36228
    private long orderId; // required
2538 chandransh 36229
 
36230
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36231
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 36232
      ORDER_ID((short)1, "orderId");
36233
 
36234
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36235
 
36236
      static {
36237
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36238
          byName.put(field.getFieldName(), field);
36239
        }
36240
      }
36241
 
36242
      /**
36243
       * Find the _Fields constant that matches fieldId, or null if its not found.
36244
       */
36245
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36246
        switch(fieldId) {
36247
          case 1: // ORDER_ID
36248
            return ORDER_ID;
36249
          default:
36250
            return null;
36251
        }
2538 chandransh 36252
      }
36253
 
36254
      /**
36255
       * Find the _Fields constant that matches fieldId, throwing an exception
36256
       * if it is not found.
36257
       */
36258
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36259
        _Fields fields = findByThriftId(fieldId);
36260
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36261
        return fields;
36262
      }
36263
 
36264
      /**
36265
       * Find the _Fields constant that matches name, or null if its not found.
36266
       */
36267
      public static _Fields findByName(String name) {
36268
        return byName.get(name);
36269
      }
36270
 
36271
      private final short _thriftId;
36272
      private final String _fieldName;
36273
 
36274
      _Fields(short thriftId, String fieldName) {
36275
        _thriftId = thriftId;
36276
        _fieldName = fieldName;
36277
      }
36278
 
36279
      public short getThriftFieldId() {
36280
        return _thriftId;
36281
      }
36282
 
36283
      public String getFieldName() {
36284
        return _fieldName;
36285
      }
36286
    }
36287
 
36288
    // isset id assignments
36289
    private static final int __ORDERID_ISSET_ID = 0;
36290
    private BitSet __isset_bit_vector = new BitSet(1);
36291
 
3430 rajveer 36292
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 36293
    static {
3430 rajveer 36294
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36295
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36296
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36297
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36298
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(toggleDOAFlag_args.class, metaDataMap);
2538 chandransh 36299
    }
36300
 
36301
    public toggleDOAFlag_args() {
36302
    }
36303
 
36304
    public toggleDOAFlag_args(
36305
      long orderId)
36306
    {
36307
      this();
36308
      this.orderId = orderId;
36309
      setOrderIdIsSet(true);
36310
    }
36311
 
36312
    /**
36313
     * Performs a deep copy on <i>other</i>.
36314
     */
36315
    public toggleDOAFlag_args(toggleDOAFlag_args other) {
36316
      __isset_bit_vector.clear();
36317
      __isset_bit_vector.or(other.__isset_bit_vector);
36318
      this.orderId = other.orderId;
36319
    }
36320
 
36321
    public toggleDOAFlag_args deepCopy() {
36322
      return new toggleDOAFlag_args(this);
36323
    }
36324
 
3430 rajveer 36325
    @Override
36326
    public void clear() {
36327
      setOrderIdIsSet(false);
36328
      this.orderId = 0;
2538 chandransh 36329
    }
36330
 
36331
    public long getOrderId() {
36332
      return this.orderId;
36333
    }
36334
 
3430 rajveer 36335
    public void setOrderId(long orderId) {
2538 chandransh 36336
      this.orderId = orderId;
36337
      setOrderIdIsSet(true);
36338
    }
36339
 
36340
    public void unsetOrderId() {
36341
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
36342
    }
36343
 
3430 rajveer 36344
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2538 chandransh 36345
    public boolean isSetOrderId() {
36346
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
36347
    }
36348
 
36349
    public void setOrderIdIsSet(boolean value) {
36350
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
36351
    }
36352
 
36353
    public void setFieldValue(_Fields field, Object value) {
36354
      switch (field) {
36355
      case ORDER_ID:
36356
        if (value == null) {
36357
          unsetOrderId();
36358
        } else {
36359
          setOrderId((Long)value);
36360
        }
36361
        break;
36362
 
36363
      }
36364
    }
36365
 
36366
    public Object getFieldValue(_Fields field) {
36367
      switch (field) {
36368
      case ORDER_ID:
3430 rajveer 36369
        return Long.valueOf(getOrderId());
2538 chandransh 36370
 
36371
      }
36372
      throw new IllegalStateException();
36373
    }
36374
 
3430 rajveer 36375
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36376
    public boolean isSet(_Fields field) {
36377
      if (field == null) {
36378
        throw new IllegalArgumentException();
36379
      }
2538 chandransh 36380
 
36381
      switch (field) {
36382
      case ORDER_ID:
36383
        return isSetOrderId();
36384
      }
36385
      throw new IllegalStateException();
36386
    }
36387
 
36388
    @Override
36389
    public boolean equals(Object that) {
36390
      if (that == null)
36391
        return false;
36392
      if (that instanceof toggleDOAFlag_args)
36393
        return this.equals((toggleDOAFlag_args)that);
36394
      return false;
36395
    }
36396
 
36397
    public boolean equals(toggleDOAFlag_args that) {
36398
      if (that == null)
36399
        return false;
36400
 
36401
      boolean this_present_orderId = true;
36402
      boolean that_present_orderId = true;
36403
      if (this_present_orderId || that_present_orderId) {
36404
        if (!(this_present_orderId && that_present_orderId))
36405
          return false;
36406
        if (this.orderId != that.orderId)
36407
          return false;
36408
      }
36409
 
36410
      return true;
36411
    }
36412
 
36413
    @Override
36414
    public int hashCode() {
36415
      return 0;
36416
    }
36417
 
36418
    public int compareTo(toggleDOAFlag_args other) {
36419
      if (!getClass().equals(other.getClass())) {
36420
        return getClass().getName().compareTo(other.getClass().getName());
36421
      }
36422
 
36423
      int lastComparison = 0;
36424
      toggleDOAFlag_args typedOther = (toggleDOAFlag_args)other;
36425
 
3430 rajveer 36426
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2538 chandransh 36427
      if (lastComparison != 0) {
36428
        return lastComparison;
36429
      }
3430 rajveer 36430
      if (isSetOrderId()) {
36431
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
36432
        if (lastComparison != 0) {
36433
          return lastComparison;
36434
        }
2538 chandransh 36435
      }
36436
      return 0;
36437
    }
36438
 
3430 rajveer 36439
    public _Fields fieldForId(int fieldId) {
36440
      return _Fields.findByThriftId(fieldId);
36441
    }
36442
 
36443
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36444
      org.apache.thrift.protocol.TField field;
2538 chandransh 36445
      iprot.readStructBegin();
36446
      while (true)
36447
      {
36448
        field = iprot.readFieldBegin();
3430 rajveer 36449
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 36450
          break;
36451
        }
3430 rajveer 36452
        switch (field.id) {
36453
          case 1: // ORDER_ID
36454
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36455
              this.orderId = iprot.readI64();
36456
              setOrderIdIsSet(true);
36457
            } else { 
36458
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36459
            }
36460
            break;
36461
          default:
36462
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 36463
        }
3430 rajveer 36464
        iprot.readFieldEnd();
2538 chandransh 36465
      }
36466
      iprot.readStructEnd();
36467
      validate();
36468
    }
36469
 
3430 rajveer 36470
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 36471
      validate();
36472
 
36473
      oprot.writeStructBegin(STRUCT_DESC);
36474
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
36475
      oprot.writeI64(this.orderId);
36476
      oprot.writeFieldEnd();
36477
      oprot.writeFieldStop();
36478
      oprot.writeStructEnd();
36479
    }
36480
 
36481
    @Override
36482
    public String toString() {
36483
      StringBuilder sb = new StringBuilder("toggleDOAFlag_args(");
36484
      boolean first = true;
36485
 
36486
      sb.append("orderId:");
36487
      sb.append(this.orderId);
36488
      first = false;
36489
      sb.append(")");
36490
      return sb.toString();
36491
    }
36492
 
3430 rajveer 36493
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 36494
      // check for required fields
36495
    }
36496
 
3430 rajveer 36497
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36498
      try {
36499
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36500
      } catch (org.apache.thrift.TException te) {
36501
        throw new java.io.IOException(te);
36502
      }
36503
    }
36504
 
36505
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36506
      try {
36507
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36508
      } catch (org.apache.thrift.TException te) {
36509
        throw new java.io.IOException(te);
36510
      }
36511
    }
36512
 
2538 chandransh 36513
  }
36514
 
3430 rajveer 36515
  public static class toggleDOAFlag_result implements org.apache.thrift.TBase<toggleDOAFlag_result, toggleDOAFlag_result._Fields>, java.io.Serializable, Cloneable   {
36516
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("toggleDOAFlag_result");
2538 chandransh 36517
 
3430 rajveer 36518
    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);
36519
    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 36520
 
3430 rajveer 36521
    private boolean success; // required
36522
    private TransactionServiceException ex; // required
2538 chandransh 36523
 
36524
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36525
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 36526
      SUCCESS((short)0, "success"),
36527
      EX((short)1, "ex");
36528
 
36529
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36530
 
36531
      static {
36532
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36533
          byName.put(field.getFieldName(), field);
36534
        }
36535
      }
36536
 
36537
      /**
36538
       * Find the _Fields constant that matches fieldId, or null if its not found.
36539
       */
36540
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36541
        switch(fieldId) {
36542
          case 0: // SUCCESS
36543
            return SUCCESS;
36544
          case 1: // EX
36545
            return EX;
36546
          default:
36547
            return null;
36548
        }
2538 chandransh 36549
      }
36550
 
36551
      /**
36552
       * Find the _Fields constant that matches fieldId, throwing an exception
36553
       * if it is not found.
36554
       */
36555
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36556
        _Fields fields = findByThriftId(fieldId);
36557
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36558
        return fields;
36559
      }
36560
 
36561
      /**
36562
       * Find the _Fields constant that matches name, or null if its not found.
36563
       */
36564
      public static _Fields findByName(String name) {
36565
        return byName.get(name);
36566
      }
36567
 
36568
      private final short _thriftId;
36569
      private final String _fieldName;
36570
 
36571
      _Fields(short thriftId, String fieldName) {
36572
        _thriftId = thriftId;
36573
        _fieldName = fieldName;
36574
      }
36575
 
36576
      public short getThriftFieldId() {
36577
        return _thriftId;
36578
      }
36579
 
36580
      public String getFieldName() {
36581
        return _fieldName;
36582
      }
36583
    }
36584
 
36585
    // isset id assignments
36586
    private static final int __SUCCESS_ISSET_ID = 0;
36587
    private BitSet __isset_bit_vector = new BitSet(1);
36588
 
3430 rajveer 36589
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 36590
    static {
3430 rajveer 36591
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36592
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36593
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
36594
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36595
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
36596
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36597
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(toggleDOAFlag_result.class, metaDataMap);
2538 chandransh 36598
    }
36599
 
36600
    public toggleDOAFlag_result() {
36601
    }
36602
 
36603
    public toggleDOAFlag_result(
36604
      boolean success,
36605
      TransactionServiceException ex)
36606
    {
36607
      this();
36608
      this.success = success;
36609
      setSuccessIsSet(true);
36610
      this.ex = ex;
36611
    }
36612
 
36613
    /**
36614
     * Performs a deep copy on <i>other</i>.
36615
     */
36616
    public toggleDOAFlag_result(toggleDOAFlag_result other) {
36617
      __isset_bit_vector.clear();
36618
      __isset_bit_vector.or(other.__isset_bit_vector);
36619
      this.success = other.success;
36620
      if (other.isSetEx()) {
36621
        this.ex = new TransactionServiceException(other.ex);
36622
      }
36623
    }
36624
 
36625
    public toggleDOAFlag_result deepCopy() {
36626
      return new toggleDOAFlag_result(this);
36627
    }
36628
 
3430 rajveer 36629
    @Override
36630
    public void clear() {
36631
      setSuccessIsSet(false);
36632
      this.success = false;
36633
      this.ex = null;
2538 chandransh 36634
    }
36635
 
36636
    public boolean isSuccess() {
36637
      return this.success;
36638
    }
36639
 
3430 rajveer 36640
    public void setSuccess(boolean success) {
2538 chandransh 36641
      this.success = success;
36642
      setSuccessIsSet(true);
36643
    }
36644
 
36645
    public void unsetSuccess() {
36646
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
36647
    }
36648
 
3430 rajveer 36649
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2538 chandransh 36650
    public boolean isSetSuccess() {
36651
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
36652
    }
36653
 
36654
    public void setSuccessIsSet(boolean value) {
36655
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
36656
    }
36657
 
36658
    public TransactionServiceException getEx() {
36659
      return this.ex;
36660
    }
36661
 
3430 rajveer 36662
    public void setEx(TransactionServiceException ex) {
2538 chandransh 36663
      this.ex = ex;
36664
    }
36665
 
36666
    public void unsetEx() {
36667
      this.ex = null;
36668
    }
36669
 
3430 rajveer 36670
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2538 chandransh 36671
    public boolean isSetEx() {
36672
      return this.ex != null;
36673
    }
36674
 
36675
    public void setExIsSet(boolean value) {
36676
      if (!value) {
36677
        this.ex = null;
36678
      }
36679
    }
36680
 
36681
    public void setFieldValue(_Fields field, Object value) {
36682
      switch (field) {
36683
      case SUCCESS:
36684
        if (value == null) {
36685
          unsetSuccess();
36686
        } else {
36687
          setSuccess((Boolean)value);
36688
        }
36689
        break;
36690
 
36691
      case EX:
36692
        if (value == null) {
36693
          unsetEx();
36694
        } else {
36695
          setEx((TransactionServiceException)value);
36696
        }
36697
        break;
36698
 
36699
      }
36700
    }
36701
 
36702
    public Object getFieldValue(_Fields field) {
36703
      switch (field) {
36704
      case SUCCESS:
3430 rajveer 36705
        return Boolean.valueOf(isSuccess());
2538 chandransh 36706
 
36707
      case EX:
36708
        return getEx();
36709
 
36710
      }
36711
      throw new IllegalStateException();
36712
    }
36713
 
3430 rajveer 36714
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36715
    public boolean isSet(_Fields field) {
36716
      if (field == null) {
36717
        throw new IllegalArgumentException();
36718
      }
2538 chandransh 36719
 
36720
      switch (field) {
36721
      case SUCCESS:
36722
        return isSetSuccess();
36723
      case EX:
36724
        return isSetEx();
36725
      }
36726
      throw new IllegalStateException();
36727
    }
36728
 
36729
    @Override
36730
    public boolean equals(Object that) {
36731
      if (that == null)
36732
        return false;
36733
      if (that instanceof toggleDOAFlag_result)
36734
        return this.equals((toggleDOAFlag_result)that);
36735
      return false;
36736
    }
36737
 
36738
    public boolean equals(toggleDOAFlag_result that) {
36739
      if (that == null)
36740
        return false;
36741
 
36742
      boolean this_present_success = true;
36743
      boolean that_present_success = true;
36744
      if (this_present_success || that_present_success) {
36745
        if (!(this_present_success && that_present_success))
36746
          return false;
36747
        if (this.success != that.success)
36748
          return false;
36749
      }
36750
 
36751
      boolean this_present_ex = true && this.isSetEx();
36752
      boolean that_present_ex = true && that.isSetEx();
36753
      if (this_present_ex || that_present_ex) {
36754
        if (!(this_present_ex && that_present_ex))
36755
          return false;
36756
        if (!this.ex.equals(that.ex))
36757
          return false;
36758
      }
36759
 
36760
      return true;
36761
    }
36762
 
36763
    @Override
36764
    public int hashCode() {
36765
      return 0;
36766
    }
36767
 
36768
    public int compareTo(toggleDOAFlag_result other) {
36769
      if (!getClass().equals(other.getClass())) {
36770
        return getClass().getName().compareTo(other.getClass().getName());
36771
      }
36772
 
36773
      int lastComparison = 0;
36774
      toggleDOAFlag_result typedOther = (toggleDOAFlag_result)other;
36775
 
3430 rajveer 36776
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2538 chandransh 36777
      if (lastComparison != 0) {
36778
        return lastComparison;
36779
      }
3430 rajveer 36780
      if (isSetSuccess()) {
36781
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36782
        if (lastComparison != 0) {
36783
          return lastComparison;
36784
        }
2538 chandransh 36785
      }
3430 rajveer 36786
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2538 chandransh 36787
      if (lastComparison != 0) {
36788
        return lastComparison;
36789
      }
3430 rajveer 36790
      if (isSetEx()) {
36791
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
36792
        if (lastComparison != 0) {
36793
          return lastComparison;
36794
        }
2538 chandransh 36795
      }
36796
      return 0;
36797
    }
36798
 
3430 rajveer 36799
    public _Fields fieldForId(int fieldId) {
36800
      return _Fields.findByThriftId(fieldId);
36801
    }
36802
 
36803
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36804
      org.apache.thrift.protocol.TField field;
2538 chandransh 36805
      iprot.readStructBegin();
36806
      while (true)
36807
      {
36808
        field = iprot.readFieldBegin();
3430 rajveer 36809
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 36810
          break;
36811
        }
3430 rajveer 36812
        switch (field.id) {
36813
          case 0: // SUCCESS
36814
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
36815
              this.success = iprot.readBool();
36816
              setSuccessIsSet(true);
36817
            } else { 
36818
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36819
            }
36820
            break;
36821
          case 1: // EX
36822
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
36823
              this.ex = new TransactionServiceException();
36824
              this.ex.read(iprot);
36825
            } else { 
36826
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36827
            }
36828
            break;
36829
          default:
36830
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 36831
        }
3430 rajveer 36832
        iprot.readFieldEnd();
2538 chandransh 36833
      }
36834
      iprot.readStructEnd();
36835
      validate();
36836
    }
36837
 
3430 rajveer 36838
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 36839
      oprot.writeStructBegin(STRUCT_DESC);
36840
 
36841
      if (this.isSetSuccess()) {
36842
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36843
        oprot.writeBool(this.success);
36844
        oprot.writeFieldEnd();
36845
      } else if (this.isSetEx()) {
36846
        oprot.writeFieldBegin(EX_FIELD_DESC);
36847
        this.ex.write(oprot);
36848
        oprot.writeFieldEnd();
36849
      }
36850
      oprot.writeFieldStop();
36851
      oprot.writeStructEnd();
36852
    }
36853
 
36854
    @Override
36855
    public String toString() {
36856
      StringBuilder sb = new StringBuilder("toggleDOAFlag_result(");
36857
      boolean first = true;
36858
 
36859
      sb.append("success:");
36860
      sb.append(this.success);
36861
      first = false;
36862
      if (!first) sb.append(", ");
36863
      sb.append("ex:");
36864
      if (this.ex == null) {
36865
        sb.append("null");
36866
      } else {
36867
        sb.append(this.ex);
36868
      }
36869
      first = false;
36870
      sb.append(")");
36871
      return sb.toString();
36872
    }
36873
 
3430 rajveer 36874
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 36875
      // check for required fields
36876
    }
36877
 
3430 rajveer 36878
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36879
      try {
36880
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36881
      } catch (org.apache.thrift.TException te) {
36882
        throw new java.io.IOException(te);
36883
      }
36884
    }
36885
 
36886
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36887
      try {
36888
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36889
      } catch (org.apache.thrift.TException te) {
36890
        throw new java.io.IOException(te);
36891
      }
36892
    }
36893
 
2538 chandransh 36894
  }
36895
 
3430 rajveer 36896
  public static class requestPickupNumber_args implements org.apache.thrift.TBase<requestPickupNumber_args, requestPickupNumber_args._Fields>, java.io.Serializable, Cloneable   {
36897
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestPickupNumber_args");
2538 chandransh 36898
 
3430 rajveer 36899
    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 36900
 
3430 rajveer 36901
    private long orderId; // required
2538 chandransh 36902
 
36903
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36904
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 36905
      ORDER_ID((short)1, "orderId");
36906
 
36907
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36908
 
36909
      static {
36910
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36911
          byName.put(field.getFieldName(), field);
36912
        }
36913
      }
36914
 
36915
      /**
36916
       * Find the _Fields constant that matches fieldId, or null if its not found.
36917
       */
36918
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36919
        switch(fieldId) {
36920
          case 1: // ORDER_ID
36921
            return ORDER_ID;
36922
          default:
36923
            return null;
36924
        }
2538 chandransh 36925
      }
36926
 
36927
      /**
36928
       * Find the _Fields constant that matches fieldId, throwing an exception
36929
       * if it is not found.
36930
       */
36931
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36932
        _Fields fields = findByThriftId(fieldId);
36933
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36934
        return fields;
36935
      }
36936
 
36937
      /**
36938
       * Find the _Fields constant that matches name, or null if its not found.
36939
       */
36940
      public static _Fields findByName(String name) {
36941
        return byName.get(name);
36942
      }
36943
 
36944
      private final short _thriftId;
36945
      private final String _fieldName;
36946
 
36947
      _Fields(short thriftId, String fieldName) {
36948
        _thriftId = thriftId;
36949
        _fieldName = fieldName;
36950
      }
36951
 
36952
      public short getThriftFieldId() {
36953
        return _thriftId;
36954
      }
36955
 
36956
      public String getFieldName() {
36957
        return _fieldName;
36958
      }
36959
    }
36960
 
36961
    // isset id assignments
36962
    private static final int __ORDERID_ISSET_ID = 0;
36963
    private BitSet __isset_bit_vector = new BitSet(1);
36964
 
3430 rajveer 36965
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 36966
    static {
3430 rajveer 36967
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36968
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36969
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36970
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36971
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestPickupNumber_args.class, metaDataMap);
2538 chandransh 36972
    }
36973
 
36974
    public requestPickupNumber_args() {
36975
    }
36976
 
36977
    public requestPickupNumber_args(
36978
      long orderId)
36979
    {
36980
      this();
36981
      this.orderId = orderId;
36982
      setOrderIdIsSet(true);
36983
    }
36984
 
36985
    /**
36986
     * Performs a deep copy on <i>other</i>.
36987
     */
36988
    public requestPickupNumber_args(requestPickupNumber_args other) {
36989
      __isset_bit_vector.clear();
36990
      __isset_bit_vector.or(other.__isset_bit_vector);
36991
      this.orderId = other.orderId;
36992
    }
36993
 
36994
    public requestPickupNumber_args deepCopy() {
36995
      return new requestPickupNumber_args(this);
36996
    }
36997
 
3430 rajveer 36998
    @Override
36999
    public void clear() {
37000
      setOrderIdIsSet(false);
37001
      this.orderId = 0;
2538 chandransh 37002
    }
37003
 
37004
    public long getOrderId() {
37005
      return this.orderId;
37006
    }
37007
 
3430 rajveer 37008
    public void setOrderId(long orderId) {
2538 chandransh 37009
      this.orderId = orderId;
37010
      setOrderIdIsSet(true);
37011
    }
37012
 
37013
    public void unsetOrderId() {
37014
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
37015
    }
37016
 
3430 rajveer 37017
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2538 chandransh 37018
    public boolean isSetOrderId() {
37019
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
37020
    }
37021
 
37022
    public void setOrderIdIsSet(boolean value) {
37023
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
37024
    }
37025
 
37026
    public void setFieldValue(_Fields field, Object value) {
37027
      switch (field) {
37028
      case ORDER_ID:
37029
        if (value == null) {
37030
          unsetOrderId();
37031
        } else {
37032
          setOrderId((Long)value);
37033
        }
37034
        break;
37035
 
37036
      }
37037
    }
37038
 
37039
    public Object getFieldValue(_Fields field) {
37040
      switch (field) {
37041
      case ORDER_ID:
3430 rajveer 37042
        return Long.valueOf(getOrderId());
2538 chandransh 37043
 
37044
      }
37045
      throw new IllegalStateException();
37046
    }
37047
 
3430 rajveer 37048
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37049
    public boolean isSet(_Fields field) {
37050
      if (field == null) {
37051
        throw new IllegalArgumentException();
37052
      }
2538 chandransh 37053
 
37054
      switch (field) {
37055
      case ORDER_ID:
37056
        return isSetOrderId();
37057
      }
37058
      throw new IllegalStateException();
37059
    }
37060
 
37061
    @Override
37062
    public boolean equals(Object that) {
37063
      if (that == null)
37064
        return false;
37065
      if (that instanceof requestPickupNumber_args)
37066
        return this.equals((requestPickupNumber_args)that);
37067
      return false;
37068
    }
37069
 
37070
    public boolean equals(requestPickupNumber_args that) {
37071
      if (that == null)
37072
        return false;
37073
 
37074
      boolean this_present_orderId = true;
37075
      boolean that_present_orderId = true;
37076
      if (this_present_orderId || that_present_orderId) {
37077
        if (!(this_present_orderId && that_present_orderId))
37078
          return false;
37079
        if (this.orderId != that.orderId)
37080
          return false;
37081
      }
37082
 
37083
      return true;
37084
    }
37085
 
37086
    @Override
37087
    public int hashCode() {
37088
      return 0;
37089
    }
37090
 
37091
    public int compareTo(requestPickupNumber_args other) {
37092
      if (!getClass().equals(other.getClass())) {
37093
        return getClass().getName().compareTo(other.getClass().getName());
37094
      }
37095
 
37096
      int lastComparison = 0;
37097
      requestPickupNumber_args typedOther = (requestPickupNumber_args)other;
37098
 
3430 rajveer 37099
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2538 chandransh 37100
      if (lastComparison != 0) {
37101
        return lastComparison;
37102
      }
3430 rajveer 37103
      if (isSetOrderId()) {
37104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
37105
        if (lastComparison != 0) {
37106
          return lastComparison;
37107
        }
2538 chandransh 37108
      }
37109
      return 0;
37110
    }
37111
 
3430 rajveer 37112
    public _Fields fieldForId(int fieldId) {
37113
      return _Fields.findByThriftId(fieldId);
37114
    }
37115
 
37116
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37117
      org.apache.thrift.protocol.TField field;
2538 chandransh 37118
      iprot.readStructBegin();
37119
      while (true)
37120
      {
37121
        field = iprot.readFieldBegin();
3430 rajveer 37122
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 37123
          break;
37124
        }
3430 rajveer 37125
        switch (field.id) {
37126
          case 1: // ORDER_ID
37127
            if (field.type == org.apache.thrift.protocol.TType.I64) {
37128
              this.orderId = iprot.readI64();
37129
              setOrderIdIsSet(true);
37130
            } else { 
37131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37132
            }
37133
            break;
37134
          default:
37135
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 37136
        }
3430 rajveer 37137
        iprot.readFieldEnd();
2538 chandransh 37138
      }
37139
      iprot.readStructEnd();
37140
      validate();
37141
    }
37142
 
3430 rajveer 37143
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 37144
      validate();
37145
 
37146
      oprot.writeStructBegin(STRUCT_DESC);
37147
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
37148
      oprot.writeI64(this.orderId);
37149
      oprot.writeFieldEnd();
37150
      oprot.writeFieldStop();
37151
      oprot.writeStructEnd();
37152
    }
37153
 
37154
    @Override
37155
    public String toString() {
37156
      StringBuilder sb = new StringBuilder("requestPickupNumber_args(");
37157
      boolean first = true;
37158
 
37159
      sb.append("orderId:");
37160
      sb.append(this.orderId);
37161
      first = false;
37162
      sb.append(")");
37163
      return sb.toString();
37164
    }
37165
 
3430 rajveer 37166
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 37167
      // check for required fields
37168
    }
37169
 
3430 rajveer 37170
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37171
      try {
37172
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37173
      } catch (org.apache.thrift.TException te) {
37174
        throw new java.io.IOException(te);
37175
      }
37176
    }
37177
 
37178
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37179
      try {
37180
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37181
      } catch (org.apache.thrift.TException te) {
37182
        throw new java.io.IOException(te);
37183
      }
37184
    }
37185
 
2538 chandransh 37186
  }
37187
 
3430 rajveer 37188
  public static class requestPickupNumber_result implements org.apache.thrift.TBase<requestPickupNumber_result, requestPickupNumber_result._Fields>, java.io.Serializable, Cloneable   {
37189
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestPickupNumber_result");
2538 chandransh 37190
 
3430 rajveer 37191
    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);
37192
    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 37193
 
3430 rajveer 37194
    private boolean success; // required
37195
    private TransactionServiceException ex; // required
2538 chandransh 37196
 
37197
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37198
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 37199
      SUCCESS((short)0, "success"),
37200
      EX((short)1, "ex");
37201
 
37202
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37203
 
37204
      static {
37205
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37206
          byName.put(field.getFieldName(), field);
37207
        }
37208
      }
37209
 
37210
      /**
37211
       * Find the _Fields constant that matches fieldId, or null if its not found.
37212
       */
37213
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37214
        switch(fieldId) {
37215
          case 0: // SUCCESS
37216
            return SUCCESS;
37217
          case 1: // EX
37218
            return EX;
37219
          default:
37220
            return null;
37221
        }
2538 chandransh 37222
      }
37223
 
37224
      /**
37225
       * Find the _Fields constant that matches fieldId, throwing an exception
37226
       * if it is not found.
37227
       */
37228
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37229
        _Fields fields = findByThriftId(fieldId);
37230
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37231
        return fields;
37232
      }
37233
 
37234
      /**
37235
       * Find the _Fields constant that matches name, or null if its not found.
37236
       */
37237
      public static _Fields findByName(String name) {
37238
        return byName.get(name);
37239
      }
37240
 
37241
      private final short _thriftId;
37242
      private final String _fieldName;
37243
 
37244
      _Fields(short thriftId, String fieldName) {
37245
        _thriftId = thriftId;
37246
        _fieldName = fieldName;
37247
      }
37248
 
37249
      public short getThriftFieldId() {
37250
        return _thriftId;
37251
      }
37252
 
37253
      public String getFieldName() {
37254
        return _fieldName;
37255
      }
37256
    }
37257
 
37258
    // isset id assignments
37259
    private static final int __SUCCESS_ISSET_ID = 0;
37260
    private BitSet __isset_bit_vector = new BitSet(1);
37261
 
3430 rajveer 37262
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 37263
    static {
3430 rajveer 37264
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37265
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37266
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
37267
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37268
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37269
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37270
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestPickupNumber_result.class, metaDataMap);
2538 chandransh 37271
    }
37272
 
37273
    public requestPickupNumber_result() {
37274
    }
37275
 
37276
    public requestPickupNumber_result(
37277
      boolean success,
37278
      TransactionServiceException ex)
37279
    {
37280
      this();
37281
      this.success = success;
37282
      setSuccessIsSet(true);
37283
      this.ex = ex;
37284
    }
37285
 
37286
    /**
37287
     * Performs a deep copy on <i>other</i>.
37288
     */
37289
    public requestPickupNumber_result(requestPickupNumber_result other) {
37290
      __isset_bit_vector.clear();
37291
      __isset_bit_vector.or(other.__isset_bit_vector);
37292
      this.success = other.success;
37293
      if (other.isSetEx()) {
37294
        this.ex = new TransactionServiceException(other.ex);
37295
      }
37296
    }
37297
 
37298
    public requestPickupNumber_result deepCopy() {
37299
      return new requestPickupNumber_result(this);
37300
    }
37301
 
3430 rajveer 37302
    @Override
37303
    public void clear() {
37304
      setSuccessIsSet(false);
37305
      this.success = false;
37306
      this.ex = null;
2538 chandransh 37307
    }
37308
 
37309
    public boolean isSuccess() {
37310
      return this.success;
37311
    }
37312
 
3430 rajveer 37313
    public void setSuccess(boolean success) {
2538 chandransh 37314
      this.success = success;
37315
      setSuccessIsSet(true);
37316
    }
37317
 
37318
    public void unsetSuccess() {
37319
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
37320
    }
37321
 
3430 rajveer 37322
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2538 chandransh 37323
    public boolean isSetSuccess() {
37324
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
37325
    }
37326
 
37327
    public void setSuccessIsSet(boolean value) {
37328
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
37329
    }
37330
 
37331
    public TransactionServiceException getEx() {
37332
      return this.ex;
37333
    }
37334
 
3430 rajveer 37335
    public void setEx(TransactionServiceException ex) {
2538 chandransh 37336
      this.ex = ex;
37337
    }
37338
 
37339
    public void unsetEx() {
37340
      this.ex = null;
37341
    }
37342
 
3430 rajveer 37343
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2538 chandransh 37344
    public boolean isSetEx() {
37345
      return this.ex != null;
37346
    }
37347
 
37348
    public void setExIsSet(boolean value) {
37349
      if (!value) {
37350
        this.ex = null;
37351
      }
37352
    }
37353
 
37354
    public void setFieldValue(_Fields field, Object value) {
37355
      switch (field) {
37356
      case SUCCESS:
37357
        if (value == null) {
37358
          unsetSuccess();
37359
        } else {
37360
          setSuccess((Boolean)value);
37361
        }
37362
        break;
37363
 
37364
      case EX:
37365
        if (value == null) {
37366
          unsetEx();
37367
        } else {
37368
          setEx((TransactionServiceException)value);
37369
        }
37370
        break;
37371
 
37372
      }
37373
    }
37374
 
37375
    public Object getFieldValue(_Fields field) {
37376
      switch (field) {
37377
      case SUCCESS:
3430 rajveer 37378
        return Boolean.valueOf(isSuccess());
2538 chandransh 37379
 
37380
      case EX:
37381
        return getEx();
37382
 
37383
      }
37384
      throw new IllegalStateException();
37385
    }
37386
 
3430 rajveer 37387
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37388
    public boolean isSet(_Fields field) {
37389
      if (field == null) {
37390
        throw new IllegalArgumentException();
37391
      }
2538 chandransh 37392
 
37393
      switch (field) {
37394
      case SUCCESS:
37395
        return isSetSuccess();
37396
      case EX:
37397
        return isSetEx();
37398
      }
37399
      throw new IllegalStateException();
37400
    }
37401
 
37402
    @Override
37403
    public boolean equals(Object that) {
37404
      if (that == null)
37405
        return false;
37406
      if (that instanceof requestPickupNumber_result)
37407
        return this.equals((requestPickupNumber_result)that);
37408
      return false;
37409
    }
37410
 
37411
    public boolean equals(requestPickupNumber_result that) {
37412
      if (that == null)
37413
        return false;
37414
 
37415
      boolean this_present_success = true;
37416
      boolean that_present_success = true;
37417
      if (this_present_success || that_present_success) {
37418
        if (!(this_present_success && that_present_success))
37419
          return false;
37420
        if (this.success != that.success)
37421
          return false;
37422
      }
37423
 
37424
      boolean this_present_ex = true && this.isSetEx();
37425
      boolean that_present_ex = true && that.isSetEx();
37426
      if (this_present_ex || that_present_ex) {
37427
        if (!(this_present_ex && that_present_ex))
37428
          return false;
37429
        if (!this.ex.equals(that.ex))
37430
          return false;
37431
      }
37432
 
37433
      return true;
37434
    }
37435
 
37436
    @Override
37437
    public int hashCode() {
37438
      return 0;
37439
    }
37440
 
37441
    public int compareTo(requestPickupNumber_result other) {
37442
      if (!getClass().equals(other.getClass())) {
37443
        return getClass().getName().compareTo(other.getClass().getName());
37444
      }
37445
 
37446
      int lastComparison = 0;
37447
      requestPickupNumber_result typedOther = (requestPickupNumber_result)other;
37448
 
3430 rajveer 37449
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2538 chandransh 37450
      if (lastComparison != 0) {
37451
        return lastComparison;
37452
      }
3430 rajveer 37453
      if (isSetSuccess()) {
37454
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37455
        if (lastComparison != 0) {
37456
          return lastComparison;
37457
        }
2538 chandransh 37458
      }
3430 rajveer 37459
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2538 chandransh 37460
      if (lastComparison != 0) {
37461
        return lastComparison;
37462
      }
3430 rajveer 37463
      if (isSetEx()) {
37464
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
37465
        if (lastComparison != 0) {
37466
          return lastComparison;
37467
        }
2538 chandransh 37468
      }
37469
      return 0;
37470
    }
37471
 
3430 rajveer 37472
    public _Fields fieldForId(int fieldId) {
37473
      return _Fields.findByThriftId(fieldId);
37474
    }
37475
 
37476
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37477
      org.apache.thrift.protocol.TField field;
2538 chandransh 37478
      iprot.readStructBegin();
37479
      while (true)
37480
      {
37481
        field = iprot.readFieldBegin();
3430 rajveer 37482
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 37483
          break;
37484
        }
3430 rajveer 37485
        switch (field.id) {
37486
          case 0: // SUCCESS
37487
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
37488
              this.success = iprot.readBool();
37489
              setSuccessIsSet(true);
37490
            } else { 
37491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37492
            }
37493
            break;
37494
          case 1: // EX
37495
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
37496
              this.ex = new TransactionServiceException();
37497
              this.ex.read(iprot);
37498
            } else { 
37499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37500
            }
37501
            break;
37502
          default:
37503
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 37504
        }
3430 rajveer 37505
        iprot.readFieldEnd();
2538 chandransh 37506
      }
37507
      iprot.readStructEnd();
37508
      validate();
37509
    }
37510
 
3430 rajveer 37511
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 37512
      oprot.writeStructBegin(STRUCT_DESC);
37513
 
37514
      if (this.isSetSuccess()) {
37515
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37516
        oprot.writeBool(this.success);
37517
        oprot.writeFieldEnd();
37518
      } else if (this.isSetEx()) {
37519
        oprot.writeFieldBegin(EX_FIELD_DESC);
37520
        this.ex.write(oprot);
37521
        oprot.writeFieldEnd();
37522
      }
37523
      oprot.writeFieldStop();
37524
      oprot.writeStructEnd();
37525
    }
37526
 
37527
    @Override
37528
    public String toString() {
37529
      StringBuilder sb = new StringBuilder("requestPickupNumber_result(");
37530
      boolean first = true;
37531
 
37532
      sb.append("success:");
37533
      sb.append(this.success);
37534
      first = false;
37535
      if (!first) sb.append(", ");
37536
      sb.append("ex:");
37537
      if (this.ex == null) {
37538
        sb.append("null");
37539
      } else {
37540
        sb.append(this.ex);
37541
      }
37542
      first = false;
37543
      sb.append(")");
37544
      return sb.toString();
37545
    }
37546
 
3430 rajveer 37547
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 37548
      // check for required fields
37549
    }
37550
 
3430 rajveer 37551
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37552
      try {
37553
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37554
      } catch (org.apache.thrift.TException te) {
37555
        throw new java.io.IOException(te);
37556
      }
37557
    }
37558
 
37559
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37560
      try {
37561
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37562
      } catch (org.apache.thrift.TException te) {
37563
        throw new java.io.IOException(te);
37564
      }
37565
    }
37566
 
2538 chandransh 37567
  }
37568
 
3430 rajveer 37569
  public static class authorizePickup_args implements org.apache.thrift.TBase<authorizePickup_args, authorizePickup_args._Fields>, java.io.Serializable, Cloneable   {
37570
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authorizePickup_args");
2538 chandransh 37571
 
3430 rajveer 37572
    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);
37573
    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 37574
 
3430 rajveer 37575
    private long orderId; // required
37576
    private String pickupNumber; // required
2538 chandransh 37577
 
37578
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37579
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 37580
      ORDER_ID((short)1, "orderId"),
37581
      PICKUP_NUMBER((short)2, "pickupNumber");
37582
 
37583
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37584
 
37585
      static {
37586
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37587
          byName.put(field.getFieldName(), field);
37588
        }
37589
      }
37590
 
37591
      /**
37592
       * Find the _Fields constant that matches fieldId, or null if its not found.
37593
       */
37594
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37595
        switch(fieldId) {
37596
          case 1: // ORDER_ID
37597
            return ORDER_ID;
37598
          case 2: // PICKUP_NUMBER
37599
            return PICKUP_NUMBER;
37600
          default:
37601
            return null;
37602
        }
2538 chandransh 37603
      }
37604
 
37605
      /**
37606
       * Find the _Fields constant that matches fieldId, throwing an exception
37607
       * if it is not found.
37608
       */
37609
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37610
        _Fields fields = findByThriftId(fieldId);
37611
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37612
        return fields;
37613
      }
37614
 
37615
      /**
37616
       * Find the _Fields constant that matches name, or null if its not found.
37617
       */
37618
      public static _Fields findByName(String name) {
37619
        return byName.get(name);
37620
      }
37621
 
37622
      private final short _thriftId;
37623
      private final String _fieldName;
37624
 
37625
      _Fields(short thriftId, String fieldName) {
37626
        _thriftId = thriftId;
37627
        _fieldName = fieldName;
37628
      }
37629
 
37630
      public short getThriftFieldId() {
37631
        return _thriftId;
37632
      }
37633
 
37634
      public String getFieldName() {
37635
        return _fieldName;
37636
      }
37637
    }
37638
 
37639
    // isset id assignments
37640
    private static final int __ORDERID_ISSET_ID = 0;
37641
    private BitSet __isset_bit_vector = new BitSet(1);
37642
 
3430 rajveer 37643
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 37644
    static {
3430 rajveer 37645
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37646
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37647
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
37648
      tmpMap.put(_Fields.PICKUP_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("pickupNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37649
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
37650
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37651
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authorizePickup_args.class, metaDataMap);
2538 chandransh 37652
    }
37653
 
37654
    public authorizePickup_args() {
37655
    }
37656
 
37657
    public authorizePickup_args(
37658
      long orderId,
37659
      String pickupNumber)
37660
    {
37661
      this();
37662
      this.orderId = orderId;
37663
      setOrderIdIsSet(true);
37664
      this.pickupNumber = pickupNumber;
37665
    }
37666
 
37667
    /**
37668
     * Performs a deep copy on <i>other</i>.
37669
     */
37670
    public authorizePickup_args(authorizePickup_args other) {
37671
      __isset_bit_vector.clear();
37672
      __isset_bit_vector.or(other.__isset_bit_vector);
37673
      this.orderId = other.orderId;
37674
      if (other.isSetPickupNumber()) {
37675
        this.pickupNumber = other.pickupNumber;
37676
      }
37677
    }
37678
 
37679
    public authorizePickup_args deepCopy() {
37680
      return new authorizePickup_args(this);
37681
    }
37682
 
3430 rajveer 37683
    @Override
37684
    public void clear() {
37685
      setOrderIdIsSet(false);
37686
      this.orderId = 0;
37687
      this.pickupNumber = null;
2538 chandransh 37688
    }
37689
 
37690
    public long getOrderId() {
37691
      return this.orderId;
37692
    }
37693
 
3430 rajveer 37694
    public void setOrderId(long orderId) {
2538 chandransh 37695
      this.orderId = orderId;
37696
      setOrderIdIsSet(true);
37697
    }
37698
 
37699
    public void unsetOrderId() {
37700
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
37701
    }
37702
 
3430 rajveer 37703
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2538 chandransh 37704
    public boolean isSetOrderId() {
37705
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
37706
    }
37707
 
37708
    public void setOrderIdIsSet(boolean value) {
37709
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
37710
    }
37711
 
37712
    public String getPickupNumber() {
37713
      return this.pickupNumber;
37714
    }
37715
 
3430 rajveer 37716
    public void setPickupNumber(String pickupNumber) {
2538 chandransh 37717
      this.pickupNumber = pickupNumber;
37718
    }
37719
 
37720
    public void unsetPickupNumber() {
37721
      this.pickupNumber = null;
37722
    }
37723
 
3430 rajveer 37724
    /** Returns true if field pickupNumber is set (has been assigned a value) and false otherwise */
2538 chandransh 37725
    public boolean isSetPickupNumber() {
37726
      return this.pickupNumber != null;
37727
    }
37728
 
37729
    public void setPickupNumberIsSet(boolean value) {
37730
      if (!value) {
37731
        this.pickupNumber = null;
37732
      }
37733
    }
37734
 
37735
    public void setFieldValue(_Fields field, Object value) {
37736
      switch (field) {
37737
      case ORDER_ID:
37738
        if (value == null) {
37739
          unsetOrderId();
37740
        } else {
37741
          setOrderId((Long)value);
37742
        }
37743
        break;
37744
 
37745
      case PICKUP_NUMBER:
37746
        if (value == null) {
37747
          unsetPickupNumber();
37748
        } else {
37749
          setPickupNumber((String)value);
37750
        }
37751
        break;
37752
 
37753
      }
37754
    }
37755
 
37756
    public Object getFieldValue(_Fields field) {
37757
      switch (field) {
37758
      case ORDER_ID:
3430 rajveer 37759
        return Long.valueOf(getOrderId());
2538 chandransh 37760
 
37761
      case PICKUP_NUMBER:
37762
        return getPickupNumber();
37763
 
37764
      }
37765
      throw new IllegalStateException();
37766
    }
37767
 
3430 rajveer 37768
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37769
    public boolean isSet(_Fields field) {
37770
      if (field == null) {
37771
        throw new IllegalArgumentException();
37772
      }
2538 chandransh 37773
 
37774
      switch (field) {
37775
      case ORDER_ID:
37776
        return isSetOrderId();
37777
      case PICKUP_NUMBER:
37778
        return isSetPickupNumber();
37779
      }
37780
      throw new IllegalStateException();
37781
    }
37782
 
37783
    @Override
37784
    public boolean equals(Object that) {
37785
      if (that == null)
37786
        return false;
37787
      if (that instanceof authorizePickup_args)
37788
        return this.equals((authorizePickup_args)that);
37789
      return false;
37790
    }
37791
 
37792
    public boolean equals(authorizePickup_args that) {
37793
      if (that == null)
37794
        return false;
37795
 
37796
      boolean this_present_orderId = true;
37797
      boolean that_present_orderId = true;
37798
      if (this_present_orderId || that_present_orderId) {
37799
        if (!(this_present_orderId && that_present_orderId))
37800
          return false;
37801
        if (this.orderId != that.orderId)
37802
          return false;
37803
      }
37804
 
37805
      boolean this_present_pickupNumber = true && this.isSetPickupNumber();
37806
      boolean that_present_pickupNumber = true && that.isSetPickupNumber();
37807
      if (this_present_pickupNumber || that_present_pickupNumber) {
37808
        if (!(this_present_pickupNumber && that_present_pickupNumber))
37809
          return false;
37810
        if (!this.pickupNumber.equals(that.pickupNumber))
37811
          return false;
37812
      }
37813
 
37814
      return true;
37815
    }
37816
 
37817
    @Override
37818
    public int hashCode() {
37819
      return 0;
37820
    }
37821
 
37822
    public int compareTo(authorizePickup_args other) {
37823
      if (!getClass().equals(other.getClass())) {
37824
        return getClass().getName().compareTo(other.getClass().getName());
37825
      }
37826
 
37827
      int lastComparison = 0;
37828
      authorizePickup_args typedOther = (authorizePickup_args)other;
37829
 
3430 rajveer 37830
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2538 chandransh 37831
      if (lastComparison != 0) {
37832
        return lastComparison;
37833
      }
3430 rajveer 37834
      if (isSetOrderId()) {
37835
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
37836
        if (lastComparison != 0) {
37837
          return lastComparison;
37838
        }
2538 chandransh 37839
      }
3430 rajveer 37840
      lastComparison = Boolean.valueOf(isSetPickupNumber()).compareTo(typedOther.isSetPickupNumber());
2538 chandransh 37841
      if (lastComparison != 0) {
37842
        return lastComparison;
37843
      }
3430 rajveer 37844
      if (isSetPickupNumber()) {
37845
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupNumber, typedOther.pickupNumber);
37846
        if (lastComparison != 0) {
37847
          return lastComparison;
37848
        }
2538 chandransh 37849
      }
37850
      return 0;
37851
    }
37852
 
3430 rajveer 37853
    public _Fields fieldForId(int fieldId) {
37854
      return _Fields.findByThriftId(fieldId);
37855
    }
37856
 
37857
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37858
      org.apache.thrift.protocol.TField field;
2538 chandransh 37859
      iprot.readStructBegin();
37860
      while (true)
37861
      {
37862
        field = iprot.readFieldBegin();
3430 rajveer 37863
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 37864
          break;
37865
        }
3430 rajveer 37866
        switch (field.id) {
37867
          case 1: // ORDER_ID
37868
            if (field.type == org.apache.thrift.protocol.TType.I64) {
37869
              this.orderId = iprot.readI64();
37870
              setOrderIdIsSet(true);
37871
            } else { 
37872
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37873
            }
37874
            break;
37875
          case 2: // PICKUP_NUMBER
37876
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
37877
              this.pickupNumber = iprot.readString();
37878
            } else { 
37879
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37880
            }
37881
            break;
37882
          default:
37883
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 37884
        }
3430 rajveer 37885
        iprot.readFieldEnd();
2538 chandransh 37886
      }
37887
      iprot.readStructEnd();
37888
      validate();
37889
    }
37890
 
3430 rajveer 37891
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 37892
      validate();
37893
 
37894
      oprot.writeStructBegin(STRUCT_DESC);
37895
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
37896
      oprot.writeI64(this.orderId);
37897
      oprot.writeFieldEnd();
37898
      if (this.pickupNumber != null) {
37899
        oprot.writeFieldBegin(PICKUP_NUMBER_FIELD_DESC);
37900
        oprot.writeString(this.pickupNumber);
37901
        oprot.writeFieldEnd();
37902
      }
37903
      oprot.writeFieldStop();
37904
      oprot.writeStructEnd();
37905
    }
37906
 
37907
    @Override
37908
    public String toString() {
37909
      StringBuilder sb = new StringBuilder("authorizePickup_args(");
37910
      boolean first = true;
37911
 
37912
      sb.append("orderId:");
37913
      sb.append(this.orderId);
37914
      first = false;
37915
      if (!first) sb.append(", ");
37916
      sb.append("pickupNumber:");
37917
      if (this.pickupNumber == null) {
37918
        sb.append("null");
37919
      } else {
37920
        sb.append(this.pickupNumber);
37921
      }
37922
      first = false;
37923
      sb.append(")");
37924
      return sb.toString();
37925
    }
37926
 
3430 rajveer 37927
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 37928
      // check for required fields
37929
    }
37930
 
3430 rajveer 37931
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37932
      try {
37933
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37934
      } catch (org.apache.thrift.TException te) {
37935
        throw new java.io.IOException(te);
37936
      }
37937
    }
37938
 
37939
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37940
      try {
37941
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37942
      } catch (org.apache.thrift.TException te) {
37943
        throw new java.io.IOException(te);
37944
      }
37945
    }
37946
 
2538 chandransh 37947
  }
37948
 
3430 rajveer 37949
  public static class authorizePickup_result implements org.apache.thrift.TBase<authorizePickup_result, authorizePickup_result._Fields>, java.io.Serializable, Cloneable   {
37950
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authorizePickup_result");
2538 chandransh 37951
 
3430 rajveer 37952
    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);
37953
    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 37954
 
3430 rajveer 37955
    private boolean success; // required
37956
    private TransactionServiceException ex; // required
2538 chandransh 37957
 
37958
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37959
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 37960
      SUCCESS((short)0, "success"),
37961
      EX((short)1, "ex");
37962
 
37963
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37964
 
37965
      static {
37966
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37967
          byName.put(field.getFieldName(), field);
37968
        }
37969
      }
37970
 
37971
      /**
37972
       * Find the _Fields constant that matches fieldId, or null if its not found.
37973
       */
37974
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37975
        switch(fieldId) {
37976
          case 0: // SUCCESS
37977
            return SUCCESS;
37978
          case 1: // EX
37979
            return EX;
37980
          default:
37981
            return null;
37982
        }
2538 chandransh 37983
      }
37984
 
37985
      /**
37986
       * Find the _Fields constant that matches fieldId, throwing an exception
37987
       * if it is not found.
37988
       */
37989
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37990
        _Fields fields = findByThriftId(fieldId);
37991
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37992
        return fields;
37993
      }
37994
 
37995
      /**
37996
       * Find the _Fields constant that matches name, or null if its not found.
37997
       */
37998
      public static _Fields findByName(String name) {
37999
        return byName.get(name);
38000
      }
38001
 
38002
      private final short _thriftId;
38003
      private final String _fieldName;
38004
 
38005
      _Fields(short thriftId, String fieldName) {
38006
        _thriftId = thriftId;
38007
        _fieldName = fieldName;
38008
      }
38009
 
38010
      public short getThriftFieldId() {
38011
        return _thriftId;
38012
      }
38013
 
38014
      public String getFieldName() {
38015
        return _fieldName;
38016
      }
38017
    }
38018
 
38019
    // isset id assignments
38020
    private static final int __SUCCESS_ISSET_ID = 0;
38021
    private BitSet __isset_bit_vector = new BitSet(1);
38022
 
3430 rajveer 38023
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 38024
    static {
3430 rajveer 38025
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38026
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38027
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
38028
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38029
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
38030
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38031
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authorizePickup_result.class, metaDataMap);
2538 chandransh 38032
    }
38033
 
38034
    public authorizePickup_result() {
38035
    }
38036
 
38037
    public authorizePickup_result(
38038
      boolean success,
38039
      TransactionServiceException ex)
38040
    {
38041
      this();
38042
      this.success = success;
38043
      setSuccessIsSet(true);
38044
      this.ex = ex;
38045
    }
38046
 
38047
    /**
38048
     * Performs a deep copy on <i>other</i>.
38049
     */
38050
    public authorizePickup_result(authorizePickup_result other) {
38051
      __isset_bit_vector.clear();
38052
      __isset_bit_vector.or(other.__isset_bit_vector);
38053
      this.success = other.success;
38054
      if (other.isSetEx()) {
38055
        this.ex = new TransactionServiceException(other.ex);
38056
      }
38057
    }
38058
 
38059
    public authorizePickup_result deepCopy() {
38060
      return new authorizePickup_result(this);
38061
    }
38062
 
3430 rajveer 38063
    @Override
38064
    public void clear() {
38065
      setSuccessIsSet(false);
38066
      this.success = false;
38067
      this.ex = null;
2538 chandransh 38068
    }
38069
 
38070
    public boolean isSuccess() {
38071
      return this.success;
38072
    }
38073
 
3430 rajveer 38074
    public void setSuccess(boolean success) {
2538 chandransh 38075
      this.success = success;
38076
      setSuccessIsSet(true);
38077
    }
38078
 
38079
    public void unsetSuccess() {
38080
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
38081
    }
38082
 
3430 rajveer 38083
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2538 chandransh 38084
    public boolean isSetSuccess() {
38085
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
38086
    }
38087
 
38088
    public void setSuccessIsSet(boolean value) {
38089
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
38090
    }
38091
 
38092
    public TransactionServiceException getEx() {
38093
      return this.ex;
38094
    }
38095
 
3430 rajveer 38096
    public void setEx(TransactionServiceException ex) {
2538 chandransh 38097
      this.ex = ex;
38098
    }
38099
 
38100
    public void unsetEx() {
38101
      this.ex = null;
38102
    }
38103
 
3430 rajveer 38104
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2538 chandransh 38105
    public boolean isSetEx() {
38106
      return this.ex != null;
38107
    }
38108
 
38109
    public void setExIsSet(boolean value) {
38110
      if (!value) {
38111
        this.ex = null;
38112
      }
38113
    }
38114
 
38115
    public void setFieldValue(_Fields field, Object value) {
38116
      switch (field) {
38117
      case SUCCESS:
38118
        if (value == null) {
38119
          unsetSuccess();
38120
        } else {
38121
          setSuccess((Boolean)value);
38122
        }
38123
        break;
38124
 
38125
      case EX:
38126
        if (value == null) {
38127
          unsetEx();
38128
        } else {
38129
          setEx((TransactionServiceException)value);
38130
        }
38131
        break;
38132
 
38133
      }
38134
    }
38135
 
38136
    public Object getFieldValue(_Fields field) {
38137
      switch (field) {
38138
      case SUCCESS:
3430 rajveer 38139
        return Boolean.valueOf(isSuccess());
2538 chandransh 38140
 
38141
      case EX:
38142
        return getEx();
38143
 
38144
      }
38145
      throw new IllegalStateException();
38146
    }
38147
 
3430 rajveer 38148
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38149
    public boolean isSet(_Fields field) {
38150
      if (field == null) {
38151
        throw new IllegalArgumentException();
38152
      }
2538 chandransh 38153
 
38154
      switch (field) {
38155
      case SUCCESS:
38156
        return isSetSuccess();
38157
      case EX:
38158
        return isSetEx();
38159
      }
38160
      throw new IllegalStateException();
38161
    }
38162
 
38163
    @Override
38164
    public boolean equals(Object that) {
38165
      if (that == null)
38166
        return false;
38167
      if (that instanceof authorizePickup_result)
38168
        return this.equals((authorizePickup_result)that);
38169
      return false;
38170
    }
38171
 
38172
    public boolean equals(authorizePickup_result that) {
38173
      if (that == null)
38174
        return false;
38175
 
38176
      boolean this_present_success = true;
38177
      boolean that_present_success = true;
38178
      if (this_present_success || that_present_success) {
38179
        if (!(this_present_success && that_present_success))
38180
          return false;
38181
        if (this.success != that.success)
38182
          return false;
38183
      }
38184
 
38185
      boolean this_present_ex = true && this.isSetEx();
38186
      boolean that_present_ex = true && that.isSetEx();
38187
      if (this_present_ex || that_present_ex) {
38188
        if (!(this_present_ex && that_present_ex))
38189
          return false;
38190
        if (!this.ex.equals(that.ex))
38191
          return false;
38192
      }
38193
 
38194
      return true;
38195
    }
38196
 
38197
    @Override
38198
    public int hashCode() {
38199
      return 0;
38200
    }
38201
 
38202
    public int compareTo(authorizePickup_result other) {
38203
      if (!getClass().equals(other.getClass())) {
38204
        return getClass().getName().compareTo(other.getClass().getName());
38205
      }
38206
 
38207
      int lastComparison = 0;
38208
      authorizePickup_result typedOther = (authorizePickup_result)other;
38209
 
3430 rajveer 38210
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2538 chandransh 38211
      if (lastComparison != 0) {
38212
        return lastComparison;
38213
      }
3430 rajveer 38214
      if (isSetSuccess()) {
38215
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
38216
        if (lastComparison != 0) {
38217
          return lastComparison;
38218
        }
2538 chandransh 38219
      }
3430 rajveer 38220
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2538 chandransh 38221
      if (lastComparison != 0) {
38222
        return lastComparison;
38223
      }
3430 rajveer 38224
      if (isSetEx()) {
38225
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
38226
        if (lastComparison != 0) {
38227
          return lastComparison;
38228
        }
2538 chandransh 38229
      }
38230
      return 0;
38231
    }
38232
 
3430 rajveer 38233
    public _Fields fieldForId(int fieldId) {
38234
      return _Fields.findByThriftId(fieldId);
38235
    }
38236
 
38237
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38238
      org.apache.thrift.protocol.TField field;
2538 chandransh 38239
      iprot.readStructBegin();
38240
      while (true)
38241
      {
38242
        field = iprot.readFieldBegin();
3430 rajveer 38243
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 38244
          break;
38245
        }
3430 rajveer 38246
        switch (field.id) {
38247
          case 0: // SUCCESS
38248
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
38249
              this.success = iprot.readBool();
38250
              setSuccessIsSet(true);
38251
            } else { 
38252
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38253
            }
38254
            break;
38255
          case 1: // EX
38256
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
38257
              this.ex = new TransactionServiceException();
38258
              this.ex.read(iprot);
38259
            } else { 
38260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38261
            }
38262
            break;
38263
          default:
38264
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 38265
        }
3430 rajveer 38266
        iprot.readFieldEnd();
2538 chandransh 38267
      }
38268
      iprot.readStructEnd();
38269
      validate();
38270
    }
38271
 
3430 rajveer 38272
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 38273
      oprot.writeStructBegin(STRUCT_DESC);
38274
 
38275
      if (this.isSetSuccess()) {
38276
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38277
        oprot.writeBool(this.success);
38278
        oprot.writeFieldEnd();
38279
      } else if (this.isSetEx()) {
38280
        oprot.writeFieldBegin(EX_FIELD_DESC);
38281
        this.ex.write(oprot);
38282
        oprot.writeFieldEnd();
38283
      }
38284
      oprot.writeFieldStop();
38285
      oprot.writeStructEnd();
38286
    }
38287
 
38288
    @Override
38289
    public String toString() {
38290
      StringBuilder sb = new StringBuilder("authorizePickup_result(");
38291
      boolean first = true;
38292
 
38293
      sb.append("success:");
38294
      sb.append(this.success);
38295
      first = false;
38296
      if (!first) sb.append(", ");
38297
      sb.append("ex:");
38298
      if (this.ex == null) {
38299
        sb.append("null");
38300
      } else {
38301
        sb.append(this.ex);
38302
      }
38303
      first = false;
38304
      sb.append(")");
38305
      return sb.toString();
38306
    }
38307
 
3430 rajveer 38308
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 38309
      // check for required fields
38310
    }
38311
 
3430 rajveer 38312
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38313
      try {
38314
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38315
      } catch (org.apache.thrift.TException te) {
38316
        throw new java.io.IOException(te);
38317
      }
38318
    }
38319
 
38320
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38321
      try {
38322
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38323
      } catch (org.apache.thrift.TException te) {
38324
        throw new java.io.IOException(te);
38325
      }
38326
    }
38327
 
2538 chandransh 38328
  }
38329
 
3430 rajveer 38330
  public static class markDoasAsPickedUp_args implements org.apache.thrift.TBase<markDoasAsPickedUp_args, markDoasAsPickedUp_args._Fields>, java.io.Serializable, Cloneable   {
38331
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markDoasAsPickedUp_args");
2765 chandransh 38332
 
3430 rajveer 38333
    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);
38334
    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 38335
 
3430 rajveer 38336
    private long providerId; // required
38337
    private Map<String,String> pickupDetails; // required
2765 chandransh 38338
 
38339
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38340
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2765 chandransh 38341
      PROVIDER_ID((short)1, "providerId"),
38342
      PICKUP_DETAILS((short)2, "pickupDetails");
38343
 
38344
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38345
 
38346
      static {
38347
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38348
          byName.put(field.getFieldName(), field);
38349
        }
38350
      }
38351
 
38352
      /**
38353
       * Find the _Fields constant that matches fieldId, or null if its not found.
38354
       */
38355
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38356
        switch(fieldId) {
38357
          case 1: // PROVIDER_ID
38358
            return PROVIDER_ID;
38359
          case 2: // PICKUP_DETAILS
38360
            return PICKUP_DETAILS;
38361
          default:
38362
            return null;
38363
        }
2765 chandransh 38364
      }
38365
 
38366
      /**
38367
       * Find the _Fields constant that matches fieldId, throwing an exception
38368
       * if it is not found.
38369
       */
38370
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38371
        _Fields fields = findByThriftId(fieldId);
38372
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38373
        return fields;
38374
      }
38375
 
38376
      /**
38377
       * Find the _Fields constant that matches name, or null if its not found.
38378
       */
38379
      public static _Fields findByName(String name) {
38380
        return byName.get(name);
38381
      }
38382
 
38383
      private final short _thriftId;
38384
      private final String _fieldName;
38385
 
38386
      _Fields(short thriftId, String fieldName) {
38387
        _thriftId = thriftId;
38388
        _fieldName = fieldName;
38389
      }
38390
 
38391
      public short getThriftFieldId() {
38392
        return _thriftId;
38393
      }
38394
 
38395
      public String getFieldName() {
38396
        return _fieldName;
38397
      }
38398
    }
38399
 
38400
    // isset id assignments
38401
    private static final int __PROVIDERID_ISSET_ID = 0;
38402
    private BitSet __isset_bit_vector = new BitSet(1);
38403
 
3430 rajveer 38404
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2765 chandransh 38405
    static {
3430 rajveer 38406
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38407
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38408
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38409
      tmpMap.put(_Fields.PICKUP_DETAILS, new org.apache.thrift.meta_data.FieldMetaData("pickupDetails", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38410
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
38411
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
38412
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
38413
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38414
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markDoasAsPickedUp_args.class, metaDataMap);
2765 chandransh 38415
    }
38416
 
38417
    public markDoasAsPickedUp_args() {
38418
    }
38419
 
38420
    public markDoasAsPickedUp_args(
38421
      long providerId,
38422
      Map<String,String> pickupDetails)
38423
    {
38424
      this();
38425
      this.providerId = providerId;
38426
      setProviderIdIsSet(true);
38427
      this.pickupDetails = pickupDetails;
38428
    }
38429
 
38430
    /**
38431
     * Performs a deep copy on <i>other</i>.
38432
     */
38433
    public markDoasAsPickedUp_args(markDoasAsPickedUp_args other) {
38434
      __isset_bit_vector.clear();
38435
      __isset_bit_vector.or(other.__isset_bit_vector);
38436
      this.providerId = other.providerId;
38437
      if (other.isSetPickupDetails()) {
38438
        Map<String,String> __this__pickupDetails = new HashMap<String,String>();
38439
        for (Map.Entry<String, String> other_element : other.pickupDetails.entrySet()) {
38440
 
38441
          String other_element_key = other_element.getKey();
38442
          String other_element_value = other_element.getValue();
38443
 
38444
          String __this__pickupDetails_copy_key = other_element_key;
38445
 
38446
          String __this__pickupDetails_copy_value = other_element_value;
38447
 
38448
          __this__pickupDetails.put(__this__pickupDetails_copy_key, __this__pickupDetails_copy_value);
38449
        }
38450
        this.pickupDetails = __this__pickupDetails;
38451
      }
38452
    }
38453
 
38454
    public markDoasAsPickedUp_args deepCopy() {
38455
      return new markDoasAsPickedUp_args(this);
38456
    }
38457
 
3430 rajveer 38458
    @Override
38459
    public void clear() {
38460
      setProviderIdIsSet(false);
38461
      this.providerId = 0;
38462
      this.pickupDetails = null;
2765 chandransh 38463
    }
38464
 
38465
    public long getProviderId() {
38466
      return this.providerId;
38467
    }
38468
 
3430 rajveer 38469
    public void setProviderId(long providerId) {
2765 chandransh 38470
      this.providerId = providerId;
38471
      setProviderIdIsSet(true);
38472
    }
38473
 
38474
    public void unsetProviderId() {
38475
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
38476
    }
38477
 
3430 rajveer 38478
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
2765 chandransh 38479
    public boolean isSetProviderId() {
38480
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
38481
    }
38482
 
38483
    public void setProviderIdIsSet(boolean value) {
38484
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
38485
    }
38486
 
38487
    public int getPickupDetailsSize() {
38488
      return (this.pickupDetails == null) ? 0 : this.pickupDetails.size();
38489
    }
38490
 
38491
    public void putToPickupDetails(String key, String val) {
38492
      if (this.pickupDetails == null) {
38493
        this.pickupDetails = new HashMap<String,String>();
38494
      }
38495
      this.pickupDetails.put(key, val);
38496
    }
38497
 
38498
    public Map<String,String> getPickupDetails() {
38499
      return this.pickupDetails;
38500
    }
38501
 
3430 rajveer 38502
    public void setPickupDetails(Map<String,String> pickupDetails) {
2765 chandransh 38503
      this.pickupDetails = pickupDetails;
38504
    }
38505
 
38506
    public void unsetPickupDetails() {
38507
      this.pickupDetails = null;
38508
    }
38509
 
3430 rajveer 38510
    /** Returns true if field pickupDetails is set (has been assigned a value) and false otherwise */
2765 chandransh 38511
    public boolean isSetPickupDetails() {
38512
      return this.pickupDetails != null;
38513
    }
38514
 
38515
    public void setPickupDetailsIsSet(boolean value) {
38516
      if (!value) {
38517
        this.pickupDetails = null;
38518
      }
38519
    }
38520
 
38521
    public void setFieldValue(_Fields field, Object value) {
38522
      switch (field) {
38523
      case PROVIDER_ID:
38524
        if (value == null) {
38525
          unsetProviderId();
38526
        } else {
38527
          setProviderId((Long)value);
38528
        }
38529
        break;
38530
 
38531
      case PICKUP_DETAILS:
38532
        if (value == null) {
38533
          unsetPickupDetails();
38534
        } else {
38535
          setPickupDetails((Map<String,String>)value);
38536
        }
38537
        break;
38538
 
38539
      }
38540
    }
38541
 
38542
    public Object getFieldValue(_Fields field) {
38543
      switch (field) {
38544
      case PROVIDER_ID:
3430 rajveer 38545
        return Long.valueOf(getProviderId());
2765 chandransh 38546
 
38547
      case PICKUP_DETAILS:
38548
        return getPickupDetails();
38549
 
38550
      }
38551
      throw new IllegalStateException();
38552
    }
38553
 
3430 rajveer 38554
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38555
    public boolean isSet(_Fields field) {
38556
      if (field == null) {
38557
        throw new IllegalArgumentException();
38558
      }
2765 chandransh 38559
 
38560
      switch (field) {
38561
      case PROVIDER_ID:
38562
        return isSetProviderId();
38563
      case PICKUP_DETAILS:
38564
        return isSetPickupDetails();
38565
      }
38566
      throw new IllegalStateException();
38567
    }
38568
 
38569
    @Override
38570
    public boolean equals(Object that) {
38571
      if (that == null)
38572
        return false;
38573
      if (that instanceof markDoasAsPickedUp_args)
38574
        return this.equals((markDoasAsPickedUp_args)that);
38575
      return false;
38576
    }
38577
 
38578
    public boolean equals(markDoasAsPickedUp_args that) {
38579
      if (that == null)
38580
        return false;
38581
 
38582
      boolean this_present_providerId = true;
38583
      boolean that_present_providerId = true;
38584
      if (this_present_providerId || that_present_providerId) {
38585
        if (!(this_present_providerId && that_present_providerId))
38586
          return false;
38587
        if (this.providerId != that.providerId)
38588
          return false;
38589
      }
38590
 
38591
      boolean this_present_pickupDetails = true && this.isSetPickupDetails();
38592
      boolean that_present_pickupDetails = true && that.isSetPickupDetails();
38593
      if (this_present_pickupDetails || that_present_pickupDetails) {
38594
        if (!(this_present_pickupDetails && that_present_pickupDetails))
38595
          return false;
38596
        if (!this.pickupDetails.equals(that.pickupDetails))
38597
          return false;
38598
      }
38599
 
38600
      return true;
38601
    }
38602
 
38603
    @Override
38604
    public int hashCode() {
38605
      return 0;
38606
    }
38607
 
3430 rajveer 38608
    public int compareTo(markDoasAsPickedUp_args other) {
38609
      if (!getClass().equals(other.getClass())) {
38610
        return getClass().getName().compareTo(other.getClass().getName());
38611
      }
38612
 
38613
      int lastComparison = 0;
38614
      markDoasAsPickedUp_args typedOther = (markDoasAsPickedUp_args)other;
38615
 
38616
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
38617
      if (lastComparison != 0) {
38618
        return lastComparison;
38619
      }
38620
      if (isSetProviderId()) {
38621
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
38622
        if (lastComparison != 0) {
38623
          return lastComparison;
38624
        }
38625
      }
38626
      lastComparison = Boolean.valueOf(isSetPickupDetails()).compareTo(typedOther.isSetPickupDetails());
38627
      if (lastComparison != 0) {
38628
        return lastComparison;
38629
      }
38630
      if (isSetPickupDetails()) {
38631
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupDetails, typedOther.pickupDetails);
38632
        if (lastComparison != 0) {
38633
          return lastComparison;
38634
        }
38635
      }
38636
      return 0;
38637
    }
38638
 
38639
    public _Fields fieldForId(int fieldId) {
38640
      return _Fields.findByThriftId(fieldId);
38641
    }
38642
 
38643
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38644
      org.apache.thrift.protocol.TField field;
2765 chandransh 38645
      iprot.readStructBegin();
38646
      while (true)
38647
      {
38648
        field = iprot.readFieldBegin();
3430 rajveer 38649
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2765 chandransh 38650
          break;
38651
        }
3430 rajveer 38652
        switch (field.id) {
38653
          case 1: // PROVIDER_ID
38654
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38655
              this.providerId = iprot.readI64();
38656
              setProviderIdIsSet(true);
38657
            } else { 
38658
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38659
            }
38660
            break;
38661
          case 2: // PICKUP_DETAILS
38662
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
38663
              {
4133 chandransh 38664
                org.apache.thrift.protocol.TMap _map108 = iprot.readMapBegin();
38665
                this.pickupDetails = new HashMap<String,String>(2*_map108.size);
38666
                for (int _i109 = 0; _i109 < _map108.size; ++_i109)
2765 chandransh 38667
                {
4133 chandransh 38668
                  String _key110; // required
38669
                  String _val111; // required
38670
                  _key110 = iprot.readString();
38671
                  _val111 = iprot.readString();
38672
                  this.pickupDetails.put(_key110, _val111);
2765 chandransh 38673
                }
3430 rajveer 38674
                iprot.readMapEnd();
2765 chandransh 38675
              }
3430 rajveer 38676
            } else { 
38677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38678
            }
38679
            break;
38680
          default:
38681
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2765 chandransh 38682
        }
3430 rajveer 38683
        iprot.readFieldEnd();
2765 chandransh 38684
      }
38685
      iprot.readStructEnd();
38686
      validate();
38687
    }
38688
 
3430 rajveer 38689
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2765 chandransh 38690
      validate();
38691
 
38692
      oprot.writeStructBegin(STRUCT_DESC);
38693
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
38694
      oprot.writeI64(this.providerId);
38695
      oprot.writeFieldEnd();
38696
      if (this.pickupDetails != null) {
38697
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
38698
        {
3430 rajveer 38699
          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 38700
          for (Map.Entry<String, String> _iter112 : this.pickupDetails.entrySet())
2765 chandransh 38701
          {
4133 chandransh 38702
            oprot.writeString(_iter112.getKey());
38703
            oprot.writeString(_iter112.getValue());
2765 chandransh 38704
          }
38705
          oprot.writeMapEnd();
38706
        }
38707
        oprot.writeFieldEnd();
38708
      }
38709
      oprot.writeFieldStop();
38710
      oprot.writeStructEnd();
38711
    }
38712
 
38713
    @Override
38714
    public String toString() {
38715
      StringBuilder sb = new StringBuilder("markDoasAsPickedUp_args(");
38716
      boolean first = true;
38717
 
38718
      sb.append("providerId:");
38719
      sb.append(this.providerId);
38720
      first = false;
38721
      if (!first) sb.append(", ");
38722
      sb.append("pickupDetails:");
38723
      if (this.pickupDetails == null) {
38724
        sb.append("null");
38725
      } else {
38726
        sb.append(this.pickupDetails);
38727
      }
38728
      first = false;
38729
      sb.append(")");
38730
      return sb.toString();
38731
    }
38732
 
3430 rajveer 38733
    public void validate() throws org.apache.thrift.TException {
2765 chandransh 38734
      // check for required fields
38735
    }
38736
 
3430 rajveer 38737
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38738
      try {
38739
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38740
      } catch (org.apache.thrift.TException te) {
38741
        throw new java.io.IOException(te);
38742
      }
38743
    }
38744
 
38745
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38746
      try {
38747
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38748
      } catch (org.apache.thrift.TException te) {
38749
        throw new java.io.IOException(te);
38750
      }
38751
    }
38752
 
2765 chandransh 38753
  }
38754
 
3430 rajveer 38755
  public static class markDoasAsPickedUp_result implements org.apache.thrift.TBase<markDoasAsPickedUp_result, markDoasAsPickedUp_result._Fields>, java.io.Serializable, Cloneable   {
38756
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markDoasAsPickedUp_result");
2765 chandransh 38757
 
3430 rajveer 38758
    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 38759
 
3430 rajveer 38760
    private List<Order> success; // required
2765 chandransh 38761
 
38762
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38763
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2765 chandransh 38764
      SUCCESS((short)0, "success");
38765
 
38766
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38767
 
38768
      static {
38769
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38770
          byName.put(field.getFieldName(), field);
38771
        }
38772
      }
38773
 
38774
      /**
38775
       * Find the _Fields constant that matches fieldId, or null if its not found.
38776
       */
38777
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38778
        switch(fieldId) {
38779
          case 0: // SUCCESS
38780
            return SUCCESS;
38781
          default:
38782
            return null;
38783
        }
2765 chandransh 38784
      }
38785
 
38786
      /**
38787
       * Find the _Fields constant that matches fieldId, throwing an exception
38788
       * if it is not found.
38789
       */
38790
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38791
        _Fields fields = findByThriftId(fieldId);
38792
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38793
        return fields;
38794
      }
38795
 
38796
      /**
38797
       * Find the _Fields constant that matches name, or null if its not found.
38798
       */
38799
      public static _Fields findByName(String name) {
38800
        return byName.get(name);
38801
      }
38802
 
38803
      private final short _thriftId;
38804
      private final String _fieldName;
38805
 
38806
      _Fields(short thriftId, String fieldName) {
38807
        _thriftId = thriftId;
38808
        _fieldName = fieldName;
38809
      }
38810
 
38811
      public short getThriftFieldId() {
38812
        return _thriftId;
38813
      }
38814
 
38815
      public String getFieldName() {
38816
        return _fieldName;
38817
      }
38818
    }
38819
 
38820
    // isset id assignments
38821
 
3430 rajveer 38822
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2765 chandransh 38823
    static {
3430 rajveer 38824
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38825
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38826
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
38827
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
38828
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38829
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markDoasAsPickedUp_result.class, metaDataMap);
2765 chandransh 38830
    }
38831
 
38832
    public markDoasAsPickedUp_result() {
38833
    }
38834
 
38835
    public markDoasAsPickedUp_result(
38836
      List<Order> success)
38837
    {
38838
      this();
38839
      this.success = success;
38840
    }
38841
 
38842
    /**
38843
     * Performs a deep copy on <i>other</i>.
38844
     */
38845
    public markDoasAsPickedUp_result(markDoasAsPickedUp_result other) {
38846
      if (other.isSetSuccess()) {
38847
        List<Order> __this__success = new ArrayList<Order>();
38848
        for (Order other_element : other.success) {
38849
          __this__success.add(new Order(other_element));
38850
        }
38851
        this.success = __this__success;
38852
      }
38853
    }
38854
 
38855
    public markDoasAsPickedUp_result deepCopy() {
38856
      return new markDoasAsPickedUp_result(this);
38857
    }
38858
 
3430 rajveer 38859
    @Override
38860
    public void clear() {
38861
      this.success = null;
2765 chandransh 38862
    }
38863
 
38864
    public int getSuccessSize() {
38865
      return (this.success == null) ? 0 : this.success.size();
38866
    }
38867
 
38868
    public java.util.Iterator<Order> getSuccessIterator() {
38869
      return (this.success == null) ? null : this.success.iterator();
38870
    }
38871
 
38872
    public void addToSuccess(Order elem) {
38873
      if (this.success == null) {
38874
        this.success = new ArrayList<Order>();
38875
      }
38876
      this.success.add(elem);
38877
    }
38878
 
38879
    public List<Order> getSuccess() {
38880
      return this.success;
38881
    }
38882
 
3430 rajveer 38883
    public void setSuccess(List<Order> success) {
2765 chandransh 38884
      this.success = success;
38885
    }
38886
 
38887
    public void unsetSuccess() {
38888
      this.success = null;
38889
    }
38890
 
3430 rajveer 38891
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2765 chandransh 38892
    public boolean isSetSuccess() {
38893
      return this.success != null;
38894
    }
38895
 
38896
    public void setSuccessIsSet(boolean value) {
38897
      if (!value) {
38898
        this.success = null;
38899
      }
38900
    }
38901
 
38902
    public void setFieldValue(_Fields field, Object value) {
38903
      switch (field) {
38904
      case SUCCESS:
38905
        if (value == null) {
38906
          unsetSuccess();
38907
        } else {
38908
          setSuccess((List<Order>)value);
38909
        }
38910
        break;
38911
 
38912
      }
38913
    }
38914
 
38915
    public Object getFieldValue(_Fields field) {
38916
      switch (field) {
38917
      case SUCCESS:
38918
        return getSuccess();
38919
 
38920
      }
38921
      throw new IllegalStateException();
38922
    }
38923
 
3430 rajveer 38924
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38925
    public boolean isSet(_Fields field) {
38926
      if (field == null) {
38927
        throw new IllegalArgumentException();
38928
      }
2765 chandransh 38929
 
38930
      switch (field) {
38931
      case SUCCESS:
38932
        return isSetSuccess();
38933
      }
38934
      throw new IllegalStateException();
38935
    }
38936
 
38937
    @Override
38938
    public boolean equals(Object that) {
38939
      if (that == null)
38940
        return false;
38941
      if (that instanceof markDoasAsPickedUp_result)
38942
        return this.equals((markDoasAsPickedUp_result)that);
38943
      return false;
38944
    }
38945
 
38946
    public boolean equals(markDoasAsPickedUp_result that) {
38947
      if (that == null)
38948
        return false;
38949
 
38950
      boolean this_present_success = true && this.isSetSuccess();
38951
      boolean that_present_success = true && that.isSetSuccess();
38952
      if (this_present_success || that_present_success) {
38953
        if (!(this_present_success && that_present_success))
38954
          return false;
38955
        if (!this.success.equals(that.success))
38956
          return false;
38957
      }
38958
 
38959
      return true;
38960
    }
38961
 
38962
    @Override
38963
    public int hashCode() {
38964
      return 0;
38965
    }
38966
 
38967
    public int compareTo(markDoasAsPickedUp_result other) {
38968
      if (!getClass().equals(other.getClass())) {
38969
        return getClass().getName().compareTo(other.getClass().getName());
38970
      }
38971
 
38972
      int lastComparison = 0;
38973
      markDoasAsPickedUp_result typedOther = (markDoasAsPickedUp_result)other;
38974
 
3430 rajveer 38975
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2765 chandransh 38976
      if (lastComparison != 0) {
38977
        return lastComparison;
38978
      }
3430 rajveer 38979
      if (isSetSuccess()) {
38980
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
38981
        if (lastComparison != 0) {
38982
          return lastComparison;
38983
        }
2765 chandransh 38984
      }
38985
      return 0;
38986
    }
38987
 
3430 rajveer 38988
    public _Fields fieldForId(int fieldId) {
38989
      return _Fields.findByThriftId(fieldId);
38990
    }
38991
 
38992
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38993
      org.apache.thrift.protocol.TField field;
2765 chandransh 38994
      iprot.readStructBegin();
38995
      while (true)
38996
      {
38997
        field = iprot.readFieldBegin();
3430 rajveer 38998
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2765 chandransh 38999
          break;
39000
        }
3430 rajveer 39001
        switch (field.id) {
39002
          case 0: // SUCCESS
39003
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39004
              {
4133 chandransh 39005
                org.apache.thrift.protocol.TList _list113 = iprot.readListBegin();
39006
                this.success = new ArrayList<Order>(_list113.size);
39007
                for (int _i114 = 0; _i114 < _list113.size; ++_i114)
2765 chandransh 39008
                {
4133 chandransh 39009
                  Order _elem115; // required
39010
                  _elem115 = new Order();
39011
                  _elem115.read(iprot);
39012
                  this.success.add(_elem115);
2765 chandransh 39013
                }
3430 rajveer 39014
                iprot.readListEnd();
2765 chandransh 39015
              }
3430 rajveer 39016
            } else { 
39017
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39018
            }
39019
            break;
39020
          default:
39021
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2765 chandransh 39022
        }
3430 rajveer 39023
        iprot.readFieldEnd();
2765 chandransh 39024
      }
39025
      iprot.readStructEnd();
39026
      validate();
39027
    }
39028
 
3430 rajveer 39029
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2765 chandransh 39030
      oprot.writeStructBegin(STRUCT_DESC);
39031
 
39032
      if (this.isSetSuccess()) {
39033
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39034
        {
3430 rajveer 39035
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 39036
          for (Order _iter116 : this.success)
2765 chandransh 39037
          {
4133 chandransh 39038
            _iter116.write(oprot);
2765 chandransh 39039
          }
39040
          oprot.writeListEnd();
39041
        }
39042
        oprot.writeFieldEnd();
39043
      }
39044
      oprot.writeFieldStop();
39045
      oprot.writeStructEnd();
39046
    }
39047
 
39048
    @Override
39049
    public String toString() {
39050
      StringBuilder sb = new StringBuilder("markDoasAsPickedUp_result(");
39051
      boolean first = true;
39052
 
39053
      sb.append("success:");
39054
      if (this.success == null) {
39055
        sb.append("null");
39056
      } else {
39057
        sb.append(this.success);
39058
      }
39059
      first = false;
39060
      sb.append(")");
39061
      return sb.toString();
39062
    }
39063
 
3430 rajveer 39064
    public void validate() throws org.apache.thrift.TException {
2765 chandransh 39065
      // check for required fields
39066
    }
39067
 
3430 rajveer 39068
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39069
      try {
39070
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39071
      } catch (org.apache.thrift.TException te) {
39072
        throw new java.io.IOException(te);
39073
      }
39074
    }
39075
 
39076
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39077
      try {
39078
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39079
      } catch (org.apache.thrift.TException te) {
39080
        throw new java.io.IOException(te);
39081
      }
39082
    }
39083
 
2765 chandransh 39084
  }
39085
 
3430 rajveer 39086
  public static class receiveReturn_args implements org.apache.thrift.TBase<receiveReturn_args, receiveReturn_args._Fields>, java.io.Serializable, Cloneable   {
39087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("receiveReturn_args");
2590 chandransh 39088
 
3430 rajveer 39089
    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 39090
 
3430 rajveer 39091
    private long orderId; // required
2590 chandransh 39092
 
39093
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39094
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2590 chandransh 39095
      ORDER_ID((short)1, "orderId");
39096
 
39097
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39098
 
39099
      static {
39100
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39101
          byName.put(field.getFieldName(), field);
39102
        }
39103
      }
39104
 
39105
      /**
39106
       * Find the _Fields constant that matches fieldId, or null if its not found.
39107
       */
39108
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39109
        switch(fieldId) {
39110
          case 1: // ORDER_ID
39111
            return ORDER_ID;
39112
          default:
39113
            return null;
39114
        }
2590 chandransh 39115
      }
39116
 
39117
      /**
39118
       * Find the _Fields constant that matches fieldId, throwing an exception
39119
       * if it is not found.
39120
       */
39121
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39122
        _Fields fields = findByThriftId(fieldId);
39123
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39124
        return fields;
39125
      }
39126
 
39127
      /**
39128
       * Find the _Fields constant that matches name, or null if its not found.
39129
       */
39130
      public static _Fields findByName(String name) {
39131
        return byName.get(name);
39132
      }
39133
 
39134
      private final short _thriftId;
39135
      private final String _fieldName;
39136
 
39137
      _Fields(short thriftId, String fieldName) {
39138
        _thriftId = thriftId;
39139
        _fieldName = fieldName;
39140
      }
39141
 
39142
      public short getThriftFieldId() {
39143
        return _thriftId;
39144
      }
39145
 
39146
      public String getFieldName() {
39147
        return _fieldName;
39148
      }
39149
    }
39150
 
39151
    // isset id assignments
39152
    private static final int __ORDERID_ISSET_ID = 0;
39153
    private BitSet __isset_bit_vector = new BitSet(1);
39154
 
3430 rajveer 39155
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2590 chandransh 39156
    static {
3430 rajveer 39157
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39158
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39159
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39160
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39161
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(receiveReturn_args.class, metaDataMap);
2590 chandransh 39162
    }
39163
 
2615 chandransh 39164
    public receiveReturn_args() {
2590 chandransh 39165
    }
39166
 
2615 chandransh 39167
    public receiveReturn_args(
2590 chandransh 39168
      long orderId)
39169
    {
39170
      this();
39171
      this.orderId = orderId;
39172
      setOrderIdIsSet(true);
39173
    }
39174
 
39175
    /**
39176
     * Performs a deep copy on <i>other</i>.
39177
     */
2615 chandransh 39178
    public receiveReturn_args(receiveReturn_args other) {
2590 chandransh 39179
      __isset_bit_vector.clear();
39180
      __isset_bit_vector.or(other.__isset_bit_vector);
39181
      this.orderId = other.orderId;
39182
    }
39183
 
2615 chandransh 39184
    public receiveReturn_args deepCopy() {
39185
      return new receiveReturn_args(this);
2590 chandransh 39186
    }
39187
 
3430 rajveer 39188
    @Override
39189
    public void clear() {
39190
      setOrderIdIsSet(false);
39191
      this.orderId = 0;
2590 chandransh 39192
    }
39193
 
39194
    public long getOrderId() {
39195
      return this.orderId;
39196
    }
39197
 
3430 rajveer 39198
    public void setOrderId(long orderId) {
2590 chandransh 39199
      this.orderId = orderId;
39200
      setOrderIdIsSet(true);
39201
    }
39202
 
39203
    public void unsetOrderId() {
39204
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
39205
    }
39206
 
3430 rajveer 39207
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2590 chandransh 39208
    public boolean isSetOrderId() {
39209
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
39210
    }
39211
 
39212
    public void setOrderIdIsSet(boolean value) {
39213
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
39214
    }
39215
 
39216
    public void setFieldValue(_Fields field, Object value) {
39217
      switch (field) {
39218
      case ORDER_ID:
39219
        if (value == null) {
39220
          unsetOrderId();
39221
        } else {
39222
          setOrderId((Long)value);
39223
        }
39224
        break;
39225
 
39226
      }
39227
    }
39228
 
39229
    public Object getFieldValue(_Fields field) {
39230
      switch (field) {
39231
      case ORDER_ID:
3430 rajveer 39232
        return Long.valueOf(getOrderId());
2590 chandransh 39233
 
39234
      }
39235
      throw new IllegalStateException();
39236
    }
39237
 
3430 rajveer 39238
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39239
    public boolean isSet(_Fields field) {
39240
      if (field == null) {
39241
        throw new IllegalArgumentException();
39242
      }
2590 chandransh 39243
 
39244
      switch (field) {
39245
      case ORDER_ID:
39246
        return isSetOrderId();
39247
      }
39248
      throw new IllegalStateException();
39249
    }
39250
 
39251
    @Override
39252
    public boolean equals(Object that) {
39253
      if (that == null)
39254
        return false;
2615 chandransh 39255
      if (that instanceof receiveReturn_args)
39256
        return this.equals((receiveReturn_args)that);
2590 chandransh 39257
      return false;
39258
    }
39259
 
2615 chandransh 39260
    public boolean equals(receiveReturn_args that) {
2590 chandransh 39261
      if (that == null)
39262
        return false;
39263
 
39264
      boolean this_present_orderId = true;
39265
      boolean that_present_orderId = true;
39266
      if (this_present_orderId || that_present_orderId) {
39267
        if (!(this_present_orderId && that_present_orderId))
39268
          return false;
39269
        if (this.orderId != that.orderId)
39270
          return false;
39271
      }
39272
 
39273
      return true;
39274
    }
39275
 
39276
    @Override
39277
    public int hashCode() {
39278
      return 0;
39279
    }
39280
 
2615 chandransh 39281
    public int compareTo(receiveReturn_args other) {
2590 chandransh 39282
      if (!getClass().equals(other.getClass())) {
39283
        return getClass().getName().compareTo(other.getClass().getName());
39284
      }
39285
 
39286
      int lastComparison = 0;
2615 chandransh 39287
      receiveReturn_args typedOther = (receiveReturn_args)other;
2590 chandransh 39288
 
3430 rajveer 39289
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2590 chandransh 39290
      if (lastComparison != 0) {
39291
        return lastComparison;
39292
      }
3430 rajveer 39293
      if (isSetOrderId()) {
39294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
39295
        if (lastComparison != 0) {
39296
          return lastComparison;
39297
        }
2590 chandransh 39298
      }
39299
      return 0;
39300
    }
39301
 
3430 rajveer 39302
    public _Fields fieldForId(int fieldId) {
39303
      return _Fields.findByThriftId(fieldId);
39304
    }
39305
 
39306
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39307
      org.apache.thrift.protocol.TField field;
2590 chandransh 39308
      iprot.readStructBegin();
39309
      while (true)
39310
      {
39311
        field = iprot.readFieldBegin();
3430 rajveer 39312
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2590 chandransh 39313
          break;
39314
        }
3430 rajveer 39315
        switch (field.id) {
39316
          case 1: // ORDER_ID
39317
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39318
              this.orderId = iprot.readI64();
39319
              setOrderIdIsSet(true);
39320
            } else { 
39321
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39322
            }
39323
            break;
39324
          default:
39325
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2590 chandransh 39326
        }
3430 rajveer 39327
        iprot.readFieldEnd();
2590 chandransh 39328
      }
39329
      iprot.readStructEnd();
39330
      validate();
39331
    }
39332
 
3430 rajveer 39333
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2590 chandransh 39334
      validate();
39335
 
39336
      oprot.writeStructBegin(STRUCT_DESC);
39337
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
39338
      oprot.writeI64(this.orderId);
39339
      oprot.writeFieldEnd();
39340
      oprot.writeFieldStop();
39341
      oprot.writeStructEnd();
39342
    }
39343
 
39344
    @Override
39345
    public String toString() {
2615 chandransh 39346
      StringBuilder sb = new StringBuilder("receiveReturn_args(");
2590 chandransh 39347
      boolean first = true;
39348
 
39349
      sb.append("orderId:");
39350
      sb.append(this.orderId);
39351
      first = false;
39352
      sb.append(")");
39353
      return sb.toString();
39354
    }
39355
 
3430 rajveer 39356
    public void validate() throws org.apache.thrift.TException {
2590 chandransh 39357
      // check for required fields
39358
    }
39359
 
3430 rajveer 39360
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39361
      try {
39362
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39363
      } catch (org.apache.thrift.TException te) {
39364
        throw new java.io.IOException(te);
39365
      }
39366
    }
39367
 
39368
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39369
      try {
39370
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39371
      } catch (org.apache.thrift.TException te) {
39372
        throw new java.io.IOException(te);
39373
      }
39374
    }
39375
 
2590 chandransh 39376
  }
39377
 
3430 rajveer 39378
  public static class receiveReturn_result implements org.apache.thrift.TBase<receiveReturn_result, receiveReturn_result._Fields>, java.io.Serializable, Cloneable   {
39379
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("receiveReturn_result");
2590 chandransh 39380
 
3430 rajveer 39381
    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);
39382
    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 39383
 
3430 rajveer 39384
    private boolean success; // required
39385
    private TransactionServiceException ex; // required
2590 chandransh 39386
 
39387
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39388
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2590 chandransh 39389
      SUCCESS((short)0, "success"),
39390
      EX((short)1, "ex");
39391
 
39392
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39393
 
39394
      static {
39395
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39396
          byName.put(field.getFieldName(), field);
39397
        }
39398
      }
39399
 
39400
      /**
39401
       * Find the _Fields constant that matches fieldId, or null if its not found.
39402
       */
39403
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39404
        switch(fieldId) {
39405
          case 0: // SUCCESS
39406
            return SUCCESS;
39407
          case 1: // EX
39408
            return EX;
39409
          default:
39410
            return null;
39411
        }
2590 chandransh 39412
      }
39413
 
39414
      /**
39415
       * Find the _Fields constant that matches fieldId, throwing an exception
39416
       * if it is not found.
39417
       */
39418
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39419
        _Fields fields = findByThriftId(fieldId);
39420
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39421
        return fields;
39422
      }
39423
 
39424
      /**
39425
       * Find the _Fields constant that matches name, or null if its not found.
39426
       */
39427
      public static _Fields findByName(String name) {
39428
        return byName.get(name);
39429
      }
39430
 
39431
      private final short _thriftId;
39432
      private final String _fieldName;
39433
 
39434
      _Fields(short thriftId, String fieldName) {
39435
        _thriftId = thriftId;
39436
        _fieldName = fieldName;
39437
      }
39438
 
39439
      public short getThriftFieldId() {
39440
        return _thriftId;
39441
      }
39442
 
39443
      public String getFieldName() {
39444
        return _fieldName;
39445
      }
39446
    }
39447
 
39448
    // isset id assignments
39449
    private static final int __SUCCESS_ISSET_ID = 0;
39450
    private BitSet __isset_bit_vector = new BitSet(1);
39451
 
3430 rajveer 39452
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2590 chandransh 39453
    static {
3430 rajveer 39454
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39455
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39456
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
39457
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39458
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39459
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39460
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(receiveReturn_result.class, metaDataMap);
2590 chandransh 39461
    }
39462
 
2615 chandransh 39463
    public receiveReturn_result() {
2590 chandransh 39464
    }
39465
 
2615 chandransh 39466
    public receiveReturn_result(
2590 chandransh 39467
      boolean success,
39468
      TransactionServiceException ex)
39469
    {
39470
      this();
39471
      this.success = success;
39472
      setSuccessIsSet(true);
39473
      this.ex = ex;
39474
    }
39475
 
39476
    /**
39477
     * Performs a deep copy on <i>other</i>.
39478
     */
2615 chandransh 39479
    public receiveReturn_result(receiveReturn_result other) {
2590 chandransh 39480
      __isset_bit_vector.clear();
39481
      __isset_bit_vector.or(other.__isset_bit_vector);
39482
      this.success = other.success;
39483
      if (other.isSetEx()) {
39484
        this.ex = new TransactionServiceException(other.ex);
39485
      }
39486
    }
39487
 
2615 chandransh 39488
    public receiveReturn_result deepCopy() {
39489
      return new receiveReturn_result(this);
2590 chandransh 39490
    }
39491
 
3430 rajveer 39492
    @Override
39493
    public void clear() {
39494
      setSuccessIsSet(false);
39495
      this.success = false;
39496
      this.ex = null;
2590 chandransh 39497
    }
39498
 
39499
    public boolean isSuccess() {
39500
      return this.success;
39501
    }
39502
 
3430 rajveer 39503
    public void setSuccess(boolean success) {
2590 chandransh 39504
      this.success = success;
39505
      setSuccessIsSet(true);
39506
    }
39507
 
39508
    public void unsetSuccess() {
39509
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
39510
    }
39511
 
3430 rajveer 39512
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2590 chandransh 39513
    public boolean isSetSuccess() {
39514
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
39515
    }
39516
 
39517
    public void setSuccessIsSet(boolean value) {
39518
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
39519
    }
39520
 
39521
    public TransactionServiceException getEx() {
39522
      return this.ex;
39523
    }
39524
 
3430 rajveer 39525
    public void setEx(TransactionServiceException ex) {
2590 chandransh 39526
      this.ex = ex;
39527
    }
39528
 
39529
    public void unsetEx() {
39530
      this.ex = null;
39531
    }
39532
 
3430 rajveer 39533
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2590 chandransh 39534
    public boolean isSetEx() {
39535
      return this.ex != null;
39536
    }
39537
 
39538
    public void setExIsSet(boolean value) {
39539
      if (!value) {
39540
        this.ex = null;
39541
      }
39542
    }
39543
 
39544
    public void setFieldValue(_Fields field, Object value) {
39545
      switch (field) {
39546
      case SUCCESS:
39547
        if (value == null) {
39548
          unsetSuccess();
39549
        } else {
39550
          setSuccess((Boolean)value);
39551
        }
39552
        break;
39553
 
39554
      case EX:
39555
        if (value == null) {
39556
          unsetEx();
39557
        } else {
39558
          setEx((TransactionServiceException)value);
39559
        }
39560
        break;
39561
 
39562
      }
39563
    }
39564
 
39565
    public Object getFieldValue(_Fields field) {
39566
      switch (field) {
39567
      case SUCCESS:
3430 rajveer 39568
        return Boolean.valueOf(isSuccess());
2590 chandransh 39569
 
39570
      case EX:
39571
        return getEx();
39572
 
39573
      }
39574
      throw new IllegalStateException();
39575
    }
39576
 
3430 rajveer 39577
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39578
    public boolean isSet(_Fields field) {
39579
      if (field == null) {
39580
        throw new IllegalArgumentException();
39581
      }
2590 chandransh 39582
 
39583
      switch (field) {
39584
      case SUCCESS:
39585
        return isSetSuccess();
39586
      case EX:
39587
        return isSetEx();
39588
      }
39589
      throw new IllegalStateException();
39590
    }
39591
 
39592
    @Override
39593
    public boolean equals(Object that) {
39594
      if (that == null)
39595
        return false;
2615 chandransh 39596
      if (that instanceof receiveReturn_result)
39597
        return this.equals((receiveReturn_result)that);
2590 chandransh 39598
      return false;
39599
    }
39600
 
2615 chandransh 39601
    public boolean equals(receiveReturn_result that) {
2590 chandransh 39602
      if (that == null)
39603
        return false;
39604
 
39605
      boolean this_present_success = true;
39606
      boolean that_present_success = true;
39607
      if (this_present_success || that_present_success) {
39608
        if (!(this_present_success && that_present_success))
39609
          return false;
39610
        if (this.success != that.success)
39611
          return false;
39612
      }
39613
 
39614
      boolean this_present_ex = true && this.isSetEx();
39615
      boolean that_present_ex = true && that.isSetEx();
39616
      if (this_present_ex || that_present_ex) {
39617
        if (!(this_present_ex && that_present_ex))
39618
          return false;
39619
        if (!this.ex.equals(that.ex))
39620
          return false;
39621
      }
39622
 
39623
      return true;
39624
    }
39625
 
39626
    @Override
39627
    public int hashCode() {
39628
      return 0;
39629
    }
39630
 
2615 chandransh 39631
    public int compareTo(receiveReturn_result other) {
2590 chandransh 39632
      if (!getClass().equals(other.getClass())) {
39633
        return getClass().getName().compareTo(other.getClass().getName());
39634
      }
39635
 
39636
      int lastComparison = 0;
2615 chandransh 39637
      receiveReturn_result typedOther = (receiveReturn_result)other;
2590 chandransh 39638
 
3430 rajveer 39639
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2590 chandransh 39640
      if (lastComparison != 0) {
39641
        return lastComparison;
39642
      }
3430 rajveer 39643
      if (isSetSuccess()) {
39644
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
39645
        if (lastComparison != 0) {
39646
          return lastComparison;
39647
        }
2590 chandransh 39648
      }
3430 rajveer 39649
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2590 chandransh 39650
      if (lastComparison != 0) {
39651
        return lastComparison;
39652
      }
3430 rajveer 39653
      if (isSetEx()) {
39654
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
39655
        if (lastComparison != 0) {
39656
          return lastComparison;
39657
        }
2590 chandransh 39658
      }
39659
      return 0;
39660
    }
39661
 
3430 rajveer 39662
    public _Fields fieldForId(int fieldId) {
39663
      return _Fields.findByThriftId(fieldId);
39664
    }
39665
 
39666
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39667
      org.apache.thrift.protocol.TField field;
2590 chandransh 39668
      iprot.readStructBegin();
39669
      while (true)
39670
      {
39671
        field = iprot.readFieldBegin();
3430 rajveer 39672
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2590 chandransh 39673
          break;
39674
        }
3430 rajveer 39675
        switch (field.id) {
39676
          case 0: // SUCCESS
39677
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
39678
              this.success = iprot.readBool();
39679
              setSuccessIsSet(true);
39680
            } else { 
39681
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39682
            }
39683
            break;
39684
          case 1: // EX
39685
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
39686
              this.ex = new TransactionServiceException();
39687
              this.ex.read(iprot);
39688
            } else { 
39689
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39690
            }
39691
            break;
39692
          default:
39693
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2590 chandransh 39694
        }
3430 rajveer 39695
        iprot.readFieldEnd();
2590 chandransh 39696
      }
39697
      iprot.readStructEnd();
39698
      validate();
39699
    }
39700
 
3430 rajveer 39701
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2590 chandransh 39702
      oprot.writeStructBegin(STRUCT_DESC);
39703
 
39704
      if (this.isSetSuccess()) {
39705
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39706
        oprot.writeBool(this.success);
39707
        oprot.writeFieldEnd();
39708
      } else if (this.isSetEx()) {
39709
        oprot.writeFieldBegin(EX_FIELD_DESC);
39710
        this.ex.write(oprot);
39711
        oprot.writeFieldEnd();
39712
      }
39713
      oprot.writeFieldStop();
39714
      oprot.writeStructEnd();
39715
    }
39716
 
39717
    @Override
39718
    public String toString() {
2615 chandransh 39719
      StringBuilder sb = new StringBuilder("receiveReturn_result(");
2590 chandransh 39720
      boolean first = true;
39721
 
39722
      sb.append("success:");
39723
      sb.append(this.success);
39724
      first = false;
39725
      if (!first) sb.append(", ");
39726
      sb.append("ex:");
39727
      if (this.ex == null) {
39728
        sb.append("null");
39729
      } else {
39730
        sb.append(this.ex);
39731
      }
39732
      first = false;
39733
      sb.append(")");
39734
      return sb.toString();
39735
    }
39736
 
3430 rajveer 39737
    public void validate() throws org.apache.thrift.TException {
2590 chandransh 39738
      // check for required fields
39739
    }
39740
 
3430 rajveer 39741
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39742
      try {
39743
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39744
      } catch (org.apache.thrift.TException te) {
39745
        throw new java.io.IOException(te);
39746
      }
39747
    }
39748
 
39749
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39750
      try {
39751
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39752
      } catch (org.apache.thrift.TException te) {
39753
        throw new java.io.IOException(te);
39754
      }
39755
    }
39756
 
2590 chandransh 39757
  }
39758
 
3430 rajveer 39759
  public static class validateDoa_args implements org.apache.thrift.TBase<validateDoa_args, validateDoa_args._Fields>, java.io.Serializable, Cloneable   {
39760
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateDoa_args");
2590 chandransh 39761
 
3430 rajveer 39762
    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);
39763
    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 39764
 
3430 rajveer 39765
    private long orderId; // required
39766
    private boolean isValid; // required
2590 chandransh 39767
 
39768
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39769
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2590 chandransh 39770
      ORDER_ID((short)1, "orderId"),
39771
      IS_VALID((short)2, "isValid");
39772
 
39773
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39774
 
39775
      static {
39776
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39777
          byName.put(field.getFieldName(), field);
39778
        }
39779
      }
39780
 
39781
      /**
39782
       * Find the _Fields constant that matches fieldId, or null if its not found.
39783
       */
39784
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39785
        switch(fieldId) {
39786
          case 1: // ORDER_ID
39787
            return ORDER_ID;
39788
          case 2: // IS_VALID
39789
            return IS_VALID;
39790
          default:
39791
            return null;
39792
        }
2590 chandransh 39793
      }
39794
 
39795
      /**
39796
       * Find the _Fields constant that matches fieldId, throwing an exception
39797
       * if it is not found.
39798
       */
39799
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39800
        _Fields fields = findByThriftId(fieldId);
39801
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39802
        return fields;
39803
      }
39804
 
39805
      /**
39806
       * Find the _Fields constant that matches name, or null if its not found.
39807
       */
39808
      public static _Fields findByName(String name) {
39809
        return byName.get(name);
39810
      }
39811
 
39812
      private final short _thriftId;
39813
      private final String _fieldName;
39814
 
39815
      _Fields(short thriftId, String fieldName) {
39816
        _thriftId = thriftId;
39817
        _fieldName = fieldName;
39818
      }
39819
 
39820
      public short getThriftFieldId() {
39821
        return _thriftId;
39822
      }
39823
 
39824
      public String getFieldName() {
39825
        return _fieldName;
39826
      }
39827
    }
39828
 
39829
    // isset id assignments
39830
    private static final int __ORDERID_ISSET_ID = 0;
39831
    private static final int __ISVALID_ISSET_ID = 1;
39832
    private BitSet __isset_bit_vector = new BitSet(2);
39833
 
3430 rajveer 39834
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2590 chandransh 39835
    static {
3430 rajveer 39836
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39837
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39838
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39839
      tmpMap.put(_Fields.IS_VALID, new org.apache.thrift.meta_data.FieldMetaData("isValid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39840
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
39841
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39842
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateDoa_args.class, metaDataMap);
2590 chandransh 39843
    }
39844
 
39845
    public validateDoa_args() {
39846
    }
39847
 
39848
    public validateDoa_args(
39849
      long orderId,
39850
      boolean isValid)
39851
    {
39852
      this();
39853
      this.orderId = orderId;
39854
      setOrderIdIsSet(true);
39855
      this.isValid = isValid;
39856
      setIsValidIsSet(true);
39857
    }
39858
 
39859
    /**
39860
     * Performs a deep copy on <i>other</i>.
39861
     */
39862
    public validateDoa_args(validateDoa_args other) {
39863
      __isset_bit_vector.clear();
39864
      __isset_bit_vector.or(other.__isset_bit_vector);
39865
      this.orderId = other.orderId;
39866
      this.isValid = other.isValid;
39867
    }
39868
 
39869
    public validateDoa_args deepCopy() {
39870
      return new validateDoa_args(this);
39871
    }
39872
 
3430 rajveer 39873
    @Override
39874
    public void clear() {
39875
      setOrderIdIsSet(false);
39876
      this.orderId = 0;
39877
      setIsValidIsSet(false);
39878
      this.isValid = false;
2590 chandransh 39879
    }
39880
 
39881
    public long getOrderId() {
39882
      return this.orderId;
39883
    }
39884
 
3430 rajveer 39885
    public void setOrderId(long orderId) {
2590 chandransh 39886
      this.orderId = orderId;
39887
      setOrderIdIsSet(true);
39888
    }
39889
 
39890
    public void unsetOrderId() {
39891
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
39892
    }
39893
 
3430 rajveer 39894
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2590 chandransh 39895
    public boolean isSetOrderId() {
39896
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
39897
    }
39898
 
39899
    public void setOrderIdIsSet(boolean value) {
39900
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
39901
    }
39902
 
39903
    public boolean isIsValid() {
39904
      return this.isValid;
39905
    }
39906
 
3430 rajveer 39907
    public void setIsValid(boolean isValid) {
2590 chandransh 39908
      this.isValid = isValid;
39909
      setIsValidIsSet(true);
39910
    }
39911
 
39912
    public void unsetIsValid() {
39913
      __isset_bit_vector.clear(__ISVALID_ISSET_ID);
39914
    }
39915
 
3430 rajveer 39916
    /** Returns true if field isValid is set (has been assigned a value) and false otherwise */
2590 chandransh 39917
    public boolean isSetIsValid() {
39918
      return __isset_bit_vector.get(__ISVALID_ISSET_ID);
39919
    }
39920
 
39921
    public void setIsValidIsSet(boolean value) {
39922
      __isset_bit_vector.set(__ISVALID_ISSET_ID, value);
39923
    }
39924
 
39925
    public void setFieldValue(_Fields field, Object value) {
39926
      switch (field) {
39927
      case ORDER_ID:
39928
        if (value == null) {
39929
          unsetOrderId();
39930
        } else {
39931
          setOrderId((Long)value);
39932
        }
39933
        break;
39934
 
39935
      case IS_VALID:
39936
        if (value == null) {
39937
          unsetIsValid();
39938
        } else {
39939
          setIsValid((Boolean)value);
39940
        }
39941
        break;
39942
 
39943
      }
39944
    }
39945
 
39946
    public Object getFieldValue(_Fields field) {
39947
      switch (field) {
39948
      case ORDER_ID:
3430 rajveer 39949
        return Long.valueOf(getOrderId());
2590 chandransh 39950
 
39951
      case IS_VALID:
3430 rajveer 39952
        return Boolean.valueOf(isIsValid());
2590 chandransh 39953
 
39954
      }
39955
      throw new IllegalStateException();
39956
    }
39957
 
3430 rajveer 39958
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39959
    public boolean isSet(_Fields field) {
39960
      if (field == null) {
39961
        throw new IllegalArgumentException();
39962
      }
2590 chandransh 39963
 
39964
      switch (field) {
39965
      case ORDER_ID:
39966
        return isSetOrderId();
39967
      case IS_VALID:
39968
        return isSetIsValid();
39969
      }
39970
      throw new IllegalStateException();
39971
    }
39972
 
39973
    @Override
39974
    public boolean equals(Object that) {
39975
      if (that == null)
39976
        return false;
39977
      if (that instanceof validateDoa_args)
39978
        return this.equals((validateDoa_args)that);
39979
      return false;
39980
    }
39981
 
39982
    public boolean equals(validateDoa_args that) {
39983
      if (that == null)
39984
        return false;
39985
 
39986
      boolean this_present_orderId = true;
39987
      boolean that_present_orderId = true;
39988
      if (this_present_orderId || that_present_orderId) {
39989
        if (!(this_present_orderId && that_present_orderId))
39990
          return false;
39991
        if (this.orderId != that.orderId)
39992
          return false;
39993
      }
39994
 
39995
      boolean this_present_isValid = true;
39996
      boolean that_present_isValid = true;
39997
      if (this_present_isValid || that_present_isValid) {
39998
        if (!(this_present_isValid && that_present_isValid))
39999
          return false;
40000
        if (this.isValid != that.isValid)
40001
          return false;
40002
      }
40003
 
40004
      return true;
40005
    }
40006
 
40007
    @Override
40008
    public int hashCode() {
40009
      return 0;
40010
    }
40011
 
40012
    public int compareTo(validateDoa_args other) {
40013
      if (!getClass().equals(other.getClass())) {
40014
        return getClass().getName().compareTo(other.getClass().getName());
40015
      }
40016
 
40017
      int lastComparison = 0;
40018
      validateDoa_args typedOther = (validateDoa_args)other;
40019
 
3430 rajveer 40020
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2590 chandransh 40021
      if (lastComparison != 0) {
40022
        return lastComparison;
40023
      }
3430 rajveer 40024
      if (isSetOrderId()) {
40025
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
40026
        if (lastComparison != 0) {
40027
          return lastComparison;
40028
        }
2590 chandransh 40029
      }
3430 rajveer 40030
      lastComparison = Boolean.valueOf(isSetIsValid()).compareTo(typedOther.isSetIsValid());
2590 chandransh 40031
      if (lastComparison != 0) {
40032
        return lastComparison;
40033
      }
3430 rajveer 40034
      if (isSetIsValid()) {
40035
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isValid, typedOther.isValid);
40036
        if (lastComparison != 0) {
40037
          return lastComparison;
40038
        }
2590 chandransh 40039
      }
40040
      return 0;
40041
    }
40042
 
3430 rajveer 40043
    public _Fields fieldForId(int fieldId) {
40044
      return _Fields.findByThriftId(fieldId);
40045
    }
40046
 
40047
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40048
      org.apache.thrift.protocol.TField field;
2590 chandransh 40049
      iprot.readStructBegin();
40050
      while (true)
40051
      {
40052
        field = iprot.readFieldBegin();
3430 rajveer 40053
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2590 chandransh 40054
          break;
40055
        }
3430 rajveer 40056
        switch (field.id) {
40057
          case 1: // ORDER_ID
40058
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40059
              this.orderId = iprot.readI64();
40060
              setOrderIdIsSet(true);
40061
            } else { 
40062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40063
            }
40064
            break;
40065
          case 2: // IS_VALID
40066
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
40067
              this.isValid = iprot.readBool();
40068
              setIsValidIsSet(true);
40069
            } else { 
40070
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40071
            }
40072
            break;
40073
          default:
40074
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2590 chandransh 40075
        }
3430 rajveer 40076
        iprot.readFieldEnd();
2590 chandransh 40077
      }
40078
      iprot.readStructEnd();
40079
      validate();
40080
    }
40081
 
3430 rajveer 40082
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2590 chandransh 40083
      validate();
40084
 
40085
      oprot.writeStructBegin(STRUCT_DESC);
40086
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
40087
      oprot.writeI64(this.orderId);
40088
      oprot.writeFieldEnd();
40089
      oprot.writeFieldBegin(IS_VALID_FIELD_DESC);
40090
      oprot.writeBool(this.isValid);
40091
      oprot.writeFieldEnd();
40092
      oprot.writeFieldStop();
40093
      oprot.writeStructEnd();
40094
    }
40095
 
40096
    @Override
40097
    public String toString() {
40098
      StringBuilder sb = new StringBuilder("validateDoa_args(");
40099
      boolean first = true;
40100
 
40101
      sb.append("orderId:");
40102
      sb.append(this.orderId);
40103
      first = false;
40104
      if (!first) sb.append(", ");
40105
      sb.append("isValid:");
40106
      sb.append(this.isValid);
40107
      first = false;
40108
      sb.append(")");
40109
      return sb.toString();
40110
    }
40111
 
3430 rajveer 40112
    public void validate() throws org.apache.thrift.TException {
2590 chandransh 40113
      // check for required fields
40114
    }
40115
 
3430 rajveer 40116
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40117
      try {
40118
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40119
      } catch (org.apache.thrift.TException te) {
40120
        throw new java.io.IOException(te);
40121
      }
40122
    }
40123
 
40124
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40125
      try {
40126
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40127
      } catch (org.apache.thrift.TException te) {
40128
        throw new java.io.IOException(te);
40129
      }
40130
    }
40131
 
2590 chandransh 40132
  }
40133
 
3430 rajveer 40134
  public static class validateDoa_result implements org.apache.thrift.TBase<validateDoa_result, validateDoa_result._Fields>, java.io.Serializable, Cloneable   {
40135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateDoa_result");
2590 chandransh 40136
 
3430 rajveer 40137
    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);
40138
    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 40139
 
3430 rajveer 40140
    private boolean success; // required
40141
    private TransactionServiceException ex; // required
2590 chandransh 40142
 
40143
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40144
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2590 chandransh 40145
      SUCCESS((short)0, "success"),
40146
      EX((short)1, "ex");
40147
 
40148
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40149
 
40150
      static {
40151
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40152
          byName.put(field.getFieldName(), field);
40153
        }
40154
      }
40155
 
40156
      /**
40157
       * Find the _Fields constant that matches fieldId, or null if its not found.
40158
       */
40159
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40160
        switch(fieldId) {
40161
          case 0: // SUCCESS
40162
            return SUCCESS;
40163
          case 1: // EX
40164
            return EX;
40165
          default:
40166
            return null;
40167
        }
2590 chandransh 40168
      }
40169
 
40170
      /**
40171
       * Find the _Fields constant that matches fieldId, throwing an exception
40172
       * if it is not found.
40173
       */
40174
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40175
        _Fields fields = findByThriftId(fieldId);
40176
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40177
        return fields;
40178
      }
40179
 
40180
      /**
40181
       * Find the _Fields constant that matches name, or null if its not found.
40182
       */
40183
      public static _Fields findByName(String name) {
40184
        return byName.get(name);
40185
      }
40186
 
40187
      private final short _thriftId;
40188
      private final String _fieldName;
40189
 
40190
      _Fields(short thriftId, String fieldName) {
40191
        _thriftId = thriftId;
40192
        _fieldName = fieldName;
40193
      }
40194
 
40195
      public short getThriftFieldId() {
40196
        return _thriftId;
40197
      }
40198
 
40199
      public String getFieldName() {
40200
        return _fieldName;
40201
      }
40202
    }
40203
 
40204
    // isset id assignments
40205
    private static final int __SUCCESS_ISSET_ID = 0;
40206
    private BitSet __isset_bit_vector = new BitSet(1);
40207
 
3430 rajveer 40208
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2590 chandransh 40209
    static {
3430 rajveer 40210
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40211
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40212
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
40213
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40214
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
40215
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40216
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateDoa_result.class, metaDataMap);
2590 chandransh 40217
    }
40218
 
40219
    public validateDoa_result() {
40220
    }
40221
 
40222
    public validateDoa_result(
40223
      boolean success,
40224
      TransactionServiceException ex)
40225
    {
40226
      this();
40227
      this.success = success;
40228
      setSuccessIsSet(true);
40229
      this.ex = ex;
40230
    }
40231
 
40232
    /**
40233
     * Performs a deep copy on <i>other</i>.
40234
     */
40235
    public validateDoa_result(validateDoa_result other) {
40236
      __isset_bit_vector.clear();
40237
      __isset_bit_vector.or(other.__isset_bit_vector);
40238
      this.success = other.success;
40239
      if (other.isSetEx()) {
40240
        this.ex = new TransactionServiceException(other.ex);
40241
      }
40242
    }
40243
 
40244
    public validateDoa_result deepCopy() {
40245
      return new validateDoa_result(this);
40246
    }
40247
 
3430 rajveer 40248
    @Override
40249
    public void clear() {
40250
      setSuccessIsSet(false);
40251
      this.success = false;
40252
      this.ex = null;
2590 chandransh 40253
    }
40254
 
40255
    public boolean isSuccess() {
40256
      return this.success;
40257
    }
40258
 
3430 rajveer 40259
    public void setSuccess(boolean success) {
2590 chandransh 40260
      this.success = success;
40261
      setSuccessIsSet(true);
40262
    }
40263
 
40264
    public void unsetSuccess() {
40265
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
40266
    }
40267
 
3430 rajveer 40268
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2590 chandransh 40269
    public boolean isSetSuccess() {
40270
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
40271
    }
40272
 
40273
    public void setSuccessIsSet(boolean value) {
40274
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
40275
    }
40276
 
40277
    public TransactionServiceException getEx() {
40278
      return this.ex;
40279
    }
40280
 
3430 rajveer 40281
    public void setEx(TransactionServiceException ex) {
2590 chandransh 40282
      this.ex = ex;
40283
    }
40284
 
40285
    public void unsetEx() {
40286
      this.ex = null;
40287
    }
40288
 
3430 rajveer 40289
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2590 chandransh 40290
    public boolean isSetEx() {
40291
      return this.ex != null;
40292
    }
40293
 
40294
    public void setExIsSet(boolean value) {
40295
      if (!value) {
40296
        this.ex = null;
40297
      }
40298
    }
40299
 
40300
    public void setFieldValue(_Fields field, Object value) {
40301
      switch (field) {
40302
      case SUCCESS:
40303
        if (value == null) {
40304
          unsetSuccess();
40305
        } else {
40306
          setSuccess((Boolean)value);
40307
        }
40308
        break;
40309
 
40310
      case EX:
40311
        if (value == null) {
40312
          unsetEx();
40313
        } else {
40314
          setEx((TransactionServiceException)value);
40315
        }
40316
        break;
40317
 
40318
      }
40319
    }
40320
 
40321
    public Object getFieldValue(_Fields field) {
40322
      switch (field) {
40323
      case SUCCESS:
3430 rajveer 40324
        return Boolean.valueOf(isSuccess());
2590 chandransh 40325
 
40326
      case EX:
40327
        return getEx();
40328
 
40329
      }
40330
      throw new IllegalStateException();
40331
    }
40332
 
3430 rajveer 40333
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40334
    public boolean isSet(_Fields field) {
40335
      if (field == null) {
40336
        throw new IllegalArgumentException();
40337
      }
2590 chandransh 40338
 
40339
      switch (field) {
40340
      case SUCCESS:
40341
        return isSetSuccess();
40342
      case EX:
40343
        return isSetEx();
40344
      }
40345
      throw new IllegalStateException();
40346
    }
40347
 
40348
    @Override
40349
    public boolean equals(Object that) {
40350
      if (that == null)
40351
        return false;
40352
      if (that instanceof validateDoa_result)
40353
        return this.equals((validateDoa_result)that);
40354
      return false;
40355
    }
40356
 
40357
    public boolean equals(validateDoa_result that) {
40358
      if (that == null)
40359
        return false;
40360
 
40361
      boolean this_present_success = true;
40362
      boolean that_present_success = true;
40363
      if (this_present_success || that_present_success) {
40364
        if (!(this_present_success && that_present_success))
40365
          return false;
40366
        if (this.success != that.success)
40367
          return false;
40368
      }
40369
 
40370
      boolean this_present_ex = true && this.isSetEx();
40371
      boolean that_present_ex = true && that.isSetEx();
40372
      if (this_present_ex || that_present_ex) {
40373
        if (!(this_present_ex && that_present_ex))
40374
          return false;
40375
        if (!this.ex.equals(that.ex))
40376
          return false;
40377
      }
40378
 
40379
      return true;
40380
    }
40381
 
40382
    @Override
40383
    public int hashCode() {
40384
      return 0;
40385
    }
40386
 
40387
    public int compareTo(validateDoa_result other) {
40388
      if (!getClass().equals(other.getClass())) {
40389
        return getClass().getName().compareTo(other.getClass().getName());
40390
      }
40391
 
40392
      int lastComparison = 0;
40393
      validateDoa_result typedOther = (validateDoa_result)other;
40394
 
3430 rajveer 40395
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2590 chandransh 40396
      if (lastComparison != 0) {
40397
        return lastComparison;
40398
      }
3430 rajveer 40399
      if (isSetSuccess()) {
40400
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
40401
        if (lastComparison != 0) {
40402
          return lastComparison;
40403
        }
2590 chandransh 40404
      }
3430 rajveer 40405
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2590 chandransh 40406
      if (lastComparison != 0) {
40407
        return lastComparison;
40408
      }
3430 rajveer 40409
      if (isSetEx()) {
40410
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
40411
        if (lastComparison != 0) {
40412
          return lastComparison;
40413
        }
2590 chandransh 40414
      }
40415
      return 0;
40416
    }
40417
 
3430 rajveer 40418
    public _Fields fieldForId(int fieldId) {
40419
      return _Fields.findByThriftId(fieldId);
40420
    }
40421
 
40422
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40423
      org.apache.thrift.protocol.TField field;
2590 chandransh 40424
      iprot.readStructBegin();
40425
      while (true)
40426
      {
40427
        field = iprot.readFieldBegin();
3430 rajveer 40428
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2590 chandransh 40429
          break;
40430
        }
3430 rajveer 40431
        switch (field.id) {
40432
          case 0: // SUCCESS
40433
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
40434
              this.success = iprot.readBool();
40435
              setSuccessIsSet(true);
40436
            } else { 
40437
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40438
            }
40439
            break;
40440
          case 1: // EX
40441
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
40442
              this.ex = new TransactionServiceException();
40443
              this.ex.read(iprot);
40444
            } else { 
40445
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40446
            }
40447
            break;
40448
          default:
40449
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2590 chandransh 40450
        }
3430 rajveer 40451
        iprot.readFieldEnd();
2590 chandransh 40452
      }
40453
      iprot.readStructEnd();
40454
      validate();
40455
    }
40456
 
3430 rajveer 40457
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2590 chandransh 40458
      oprot.writeStructBegin(STRUCT_DESC);
40459
 
40460
      if (this.isSetSuccess()) {
40461
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40462
        oprot.writeBool(this.success);
40463
        oprot.writeFieldEnd();
40464
      } else if (this.isSetEx()) {
40465
        oprot.writeFieldBegin(EX_FIELD_DESC);
40466
        this.ex.write(oprot);
40467
        oprot.writeFieldEnd();
40468
      }
40469
      oprot.writeFieldStop();
40470
      oprot.writeStructEnd();
40471
    }
40472
 
40473
    @Override
40474
    public String toString() {
40475
      StringBuilder sb = new StringBuilder("validateDoa_result(");
40476
      boolean first = true;
40477
 
40478
      sb.append("success:");
40479
      sb.append(this.success);
40480
      first = false;
40481
      if (!first) sb.append(", ");
40482
      sb.append("ex:");
40483
      if (this.ex == null) {
40484
        sb.append("null");
40485
      } else {
40486
        sb.append(this.ex);
40487
      }
40488
      first = false;
40489
      sb.append(")");
40490
      return sb.toString();
40491
    }
40492
 
3430 rajveer 40493
    public void validate() throws org.apache.thrift.TException {
2590 chandransh 40494
      // check for required fields
40495
    }
40496
 
3430 rajveer 40497
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40498
      try {
40499
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40500
      } catch (org.apache.thrift.TException te) {
40501
        throw new java.io.IOException(te);
40502
      }
40503
    }
40504
 
40505
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40506
      try {
40507
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40508
      } catch (org.apache.thrift.TException te) {
40509
        throw new java.io.IOException(te);
40510
      }
40511
    }
40512
 
2590 chandransh 40513
  }
40514
 
3430 rajveer 40515
  public static class reshipOrder_args implements org.apache.thrift.TBase<reshipOrder_args, reshipOrder_args._Fields>, java.io.Serializable, Cloneable   {
40516
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipOrder_args");
2615 chandransh 40517
 
3430 rajveer 40518
    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 40519
 
3430 rajveer 40520
    private long orderId; // required
2615 chandransh 40521
 
40522
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40523
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2615 chandransh 40524
      ORDER_ID((short)1, "orderId");
40525
 
40526
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40527
 
40528
      static {
40529
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40530
          byName.put(field.getFieldName(), field);
40531
        }
40532
      }
40533
 
40534
      /**
40535
       * Find the _Fields constant that matches fieldId, or null if its not found.
40536
       */
40537
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40538
        switch(fieldId) {
40539
          case 1: // ORDER_ID
40540
            return ORDER_ID;
40541
          default:
40542
            return null;
40543
        }
2615 chandransh 40544
      }
40545
 
40546
      /**
40547
       * Find the _Fields constant that matches fieldId, throwing an exception
40548
       * if it is not found.
40549
       */
40550
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40551
        _Fields fields = findByThriftId(fieldId);
40552
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40553
        return fields;
40554
      }
40555
 
40556
      /**
40557
       * Find the _Fields constant that matches name, or null if its not found.
40558
       */
40559
      public static _Fields findByName(String name) {
40560
        return byName.get(name);
40561
      }
40562
 
40563
      private final short _thriftId;
40564
      private final String _fieldName;
40565
 
40566
      _Fields(short thriftId, String fieldName) {
40567
        _thriftId = thriftId;
40568
        _fieldName = fieldName;
40569
      }
40570
 
40571
      public short getThriftFieldId() {
40572
        return _thriftId;
40573
      }
40574
 
40575
      public String getFieldName() {
40576
        return _fieldName;
40577
      }
40578
    }
40579
 
40580
    // isset id assignments
40581
    private static final int __ORDERID_ISSET_ID = 0;
40582
    private BitSet __isset_bit_vector = new BitSet(1);
40583
 
3430 rajveer 40584
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2615 chandransh 40585
    static {
3430 rajveer 40586
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40587
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40588
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40589
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40590
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipOrder_args.class, metaDataMap);
2615 chandransh 40591
    }
40592
 
40593
    public reshipOrder_args() {
40594
    }
40595
 
40596
    public reshipOrder_args(
40597
      long orderId)
40598
    {
40599
      this();
40600
      this.orderId = orderId;
40601
      setOrderIdIsSet(true);
40602
    }
40603
 
40604
    /**
40605
     * Performs a deep copy on <i>other</i>.
40606
     */
40607
    public reshipOrder_args(reshipOrder_args other) {
40608
      __isset_bit_vector.clear();
40609
      __isset_bit_vector.or(other.__isset_bit_vector);
40610
      this.orderId = other.orderId;
40611
    }
40612
 
40613
    public reshipOrder_args deepCopy() {
40614
      return new reshipOrder_args(this);
40615
    }
40616
 
3430 rajveer 40617
    @Override
40618
    public void clear() {
40619
      setOrderIdIsSet(false);
40620
      this.orderId = 0;
2615 chandransh 40621
    }
40622
 
40623
    public long getOrderId() {
40624
      return this.orderId;
40625
    }
40626
 
3430 rajveer 40627
    public void setOrderId(long orderId) {
2615 chandransh 40628
      this.orderId = orderId;
40629
      setOrderIdIsSet(true);
40630
    }
40631
 
40632
    public void unsetOrderId() {
40633
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
40634
    }
40635
 
3430 rajveer 40636
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2615 chandransh 40637
    public boolean isSetOrderId() {
40638
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
40639
    }
40640
 
40641
    public void setOrderIdIsSet(boolean value) {
40642
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
40643
    }
40644
 
40645
    public void setFieldValue(_Fields field, Object value) {
40646
      switch (field) {
40647
      case ORDER_ID:
40648
        if (value == null) {
40649
          unsetOrderId();
40650
        } else {
40651
          setOrderId((Long)value);
40652
        }
40653
        break;
40654
 
40655
      }
40656
    }
40657
 
40658
    public Object getFieldValue(_Fields field) {
40659
      switch (field) {
40660
      case ORDER_ID:
3430 rajveer 40661
        return Long.valueOf(getOrderId());
2615 chandransh 40662
 
40663
      }
40664
      throw new IllegalStateException();
40665
    }
40666
 
3430 rajveer 40667
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40668
    public boolean isSet(_Fields field) {
40669
      if (field == null) {
40670
        throw new IllegalArgumentException();
40671
      }
2615 chandransh 40672
 
40673
      switch (field) {
40674
      case ORDER_ID:
40675
        return isSetOrderId();
40676
      }
40677
      throw new IllegalStateException();
40678
    }
40679
 
40680
    @Override
40681
    public boolean equals(Object that) {
40682
      if (that == null)
40683
        return false;
40684
      if (that instanceof reshipOrder_args)
40685
        return this.equals((reshipOrder_args)that);
40686
      return false;
40687
    }
40688
 
40689
    public boolean equals(reshipOrder_args that) {
40690
      if (that == null)
40691
        return false;
40692
 
40693
      boolean this_present_orderId = true;
40694
      boolean that_present_orderId = true;
40695
      if (this_present_orderId || that_present_orderId) {
40696
        if (!(this_present_orderId && that_present_orderId))
40697
          return false;
40698
        if (this.orderId != that.orderId)
40699
          return false;
40700
      }
40701
 
40702
      return true;
40703
    }
40704
 
40705
    @Override
40706
    public int hashCode() {
40707
      return 0;
40708
    }
40709
 
40710
    public int compareTo(reshipOrder_args other) {
40711
      if (!getClass().equals(other.getClass())) {
40712
        return getClass().getName().compareTo(other.getClass().getName());
40713
      }
40714
 
40715
      int lastComparison = 0;
40716
      reshipOrder_args typedOther = (reshipOrder_args)other;
40717
 
3430 rajveer 40718
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2615 chandransh 40719
      if (lastComparison != 0) {
40720
        return lastComparison;
40721
      }
3430 rajveer 40722
      if (isSetOrderId()) {
40723
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
40724
        if (lastComparison != 0) {
40725
          return lastComparison;
40726
        }
2615 chandransh 40727
      }
40728
      return 0;
40729
    }
40730
 
3430 rajveer 40731
    public _Fields fieldForId(int fieldId) {
40732
      return _Fields.findByThriftId(fieldId);
40733
    }
40734
 
40735
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40736
      org.apache.thrift.protocol.TField field;
2615 chandransh 40737
      iprot.readStructBegin();
40738
      while (true)
40739
      {
40740
        field = iprot.readFieldBegin();
3430 rajveer 40741
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2615 chandransh 40742
          break;
40743
        }
3430 rajveer 40744
        switch (field.id) {
40745
          case 1: // ORDER_ID
40746
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40747
              this.orderId = iprot.readI64();
40748
              setOrderIdIsSet(true);
40749
            } else { 
40750
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40751
            }
40752
            break;
40753
          default:
40754
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2615 chandransh 40755
        }
3430 rajveer 40756
        iprot.readFieldEnd();
2615 chandransh 40757
      }
40758
      iprot.readStructEnd();
40759
      validate();
40760
    }
40761
 
3430 rajveer 40762
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2615 chandransh 40763
      validate();
40764
 
40765
      oprot.writeStructBegin(STRUCT_DESC);
40766
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
40767
      oprot.writeI64(this.orderId);
40768
      oprot.writeFieldEnd();
40769
      oprot.writeFieldStop();
40770
      oprot.writeStructEnd();
40771
    }
40772
 
40773
    @Override
40774
    public String toString() {
40775
      StringBuilder sb = new StringBuilder("reshipOrder_args(");
40776
      boolean first = true;
40777
 
40778
      sb.append("orderId:");
40779
      sb.append(this.orderId);
40780
      first = false;
40781
      sb.append(")");
40782
      return sb.toString();
40783
    }
40784
 
3430 rajveer 40785
    public void validate() throws org.apache.thrift.TException {
2615 chandransh 40786
      // check for required fields
40787
    }
40788
 
3430 rajveer 40789
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40790
      try {
40791
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40792
      } catch (org.apache.thrift.TException te) {
40793
        throw new java.io.IOException(te);
40794
      }
40795
    }
40796
 
40797
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40798
      try {
40799
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40800
      } catch (org.apache.thrift.TException te) {
40801
        throw new java.io.IOException(te);
40802
      }
40803
    }
40804
 
2615 chandransh 40805
  }
40806
 
3430 rajveer 40807
  public static class reshipOrder_result implements org.apache.thrift.TBase<reshipOrder_result, reshipOrder_result._Fields>, java.io.Serializable, Cloneable   {
40808
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipOrder_result");
2615 chandransh 40809
 
3430 rajveer 40810
    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);
40811
    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 40812
 
3430 rajveer 40813
    private long success; // required
40814
    private TransactionServiceException ex; // required
2615 chandransh 40815
 
40816
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40817
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2615 chandransh 40818
      SUCCESS((short)0, "success"),
40819
      EX((short)1, "ex");
40820
 
40821
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40822
 
40823
      static {
40824
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40825
          byName.put(field.getFieldName(), field);
40826
        }
40827
      }
40828
 
40829
      /**
40830
       * Find the _Fields constant that matches fieldId, or null if its not found.
40831
       */
40832
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40833
        switch(fieldId) {
40834
          case 0: // SUCCESS
40835
            return SUCCESS;
40836
          case 1: // EX
40837
            return EX;
40838
          default:
40839
            return null;
40840
        }
2615 chandransh 40841
      }
40842
 
40843
      /**
40844
       * Find the _Fields constant that matches fieldId, throwing an exception
40845
       * if it is not found.
40846
       */
40847
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40848
        _Fields fields = findByThriftId(fieldId);
40849
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40850
        return fields;
40851
      }
40852
 
40853
      /**
40854
       * Find the _Fields constant that matches name, or null if its not found.
40855
       */
40856
      public static _Fields findByName(String name) {
40857
        return byName.get(name);
40858
      }
40859
 
40860
      private final short _thriftId;
40861
      private final String _fieldName;
40862
 
40863
      _Fields(short thriftId, String fieldName) {
40864
        _thriftId = thriftId;
40865
        _fieldName = fieldName;
40866
      }
40867
 
40868
      public short getThriftFieldId() {
40869
        return _thriftId;
40870
      }
40871
 
40872
      public String getFieldName() {
40873
        return _fieldName;
40874
      }
40875
    }
40876
 
40877
    // isset id assignments
40878
    private static final int __SUCCESS_ISSET_ID = 0;
40879
    private BitSet __isset_bit_vector = new BitSet(1);
40880
 
3430 rajveer 40881
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2615 chandransh 40882
    static {
3430 rajveer 40883
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40884
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40885
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40886
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40887
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
40888
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40889
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipOrder_result.class, metaDataMap);
2615 chandransh 40890
    }
40891
 
40892
    public reshipOrder_result() {
40893
    }
40894
 
40895
    public reshipOrder_result(
40896
      long success,
40897
      TransactionServiceException ex)
40898
    {
40899
      this();
40900
      this.success = success;
40901
      setSuccessIsSet(true);
40902
      this.ex = ex;
40903
    }
40904
 
40905
    /**
40906
     * Performs a deep copy on <i>other</i>.
40907
     */
40908
    public reshipOrder_result(reshipOrder_result other) {
40909
      __isset_bit_vector.clear();
40910
      __isset_bit_vector.or(other.__isset_bit_vector);
40911
      this.success = other.success;
40912
      if (other.isSetEx()) {
40913
        this.ex = new TransactionServiceException(other.ex);
40914
      }
40915
    }
40916
 
40917
    public reshipOrder_result deepCopy() {
40918
      return new reshipOrder_result(this);
40919
    }
40920
 
3430 rajveer 40921
    @Override
40922
    public void clear() {
40923
      setSuccessIsSet(false);
40924
      this.success = 0;
40925
      this.ex = null;
2615 chandransh 40926
    }
40927
 
40928
    public long getSuccess() {
40929
      return this.success;
40930
    }
40931
 
3430 rajveer 40932
    public void setSuccess(long success) {
2615 chandransh 40933
      this.success = success;
40934
      setSuccessIsSet(true);
40935
    }
40936
 
40937
    public void unsetSuccess() {
40938
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
40939
    }
40940
 
3430 rajveer 40941
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2615 chandransh 40942
    public boolean isSetSuccess() {
40943
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
40944
    }
40945
 
40946
    public void setSuccessIsSet(boolean value) {
40947
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
40948
    }
40949
 
40950
    public TransactionServiceException getEx() {
40951
      return this.ex;
40952
    }
40953
 
3430 rajveer 40954
    public void setEx(TransactionServiceException ex) {
2615 chandransh 40955
      this.ex = ex;
40956
    }
40957
 
40958
    public void unsetEx() {
40959
      this.ex = null;
40960
    }
40961
 
3430 rajveer 40962
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2615 chandransh 40963
    public boolean isSetEx() {
40964
      return this.ex != null;
40965
    }
40966
 
40967
    public void setExIsSet(boolean value) {
40968
      if (!value) {
40969
        this.ex = null;
40970
      }
40971
    }
40972
 
40973
    public void setFieldValue(_Fields field, Object value) {
40974
      switch (field) {
40975
      case SUCCESS:
40976
        if (value == null) {
40977
          unsetSuccess();
40978
        } else {
40979
          setSuccess((Long)value);
40980
        }
40981
        break;
40982
 
40983
      case EX:
40984
        if (value == null) {
40985
          unsetEx();
40986
        } else {
40987
          setEx((TransactionServiceException)value);
40988
        }
40989
        break;
40990
 
40991
      }
40992
    }
40993
 
40994
    public Object getFieldValue(_Fields field) {
40995
      switch (field) {
40996
      case SUCCESS:
3430 rajveer 40997
        return Long.valueOf(getSuccess());
2615 chandransh 40998
 
40999
      case EX:
41000
        return getEx();
41001
 
41002
      }
41003
      throw new IllegalStateException();
41004
    }
41005
 
3430 rajveer 41006
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41007
    public boolean isSet(_Fields field) {
41008
      if (field == null) {
41009
        throw new IllegalArgumentException();
41010
      }
2615 chandransh 41011
 
41012
      switch (field) {
41013
      case SUCCESS:
41014
        return isSetSuccess();
41015
      case EX:
41016
        return isSetEx();
41017
      }
41018
      throw new IllegalStateException();
41019
    }
41020
 
41021
    @Override
41022
    public boolean equals(Object that) {
41023
      if (that == null)
41024
        return false;
41025
      if (that instanceof reshipOrder_result)
41026
        return this.equals((reshipOrder_result)that);
41027
      return false;
41028
    }
41029
 
41030
    public boolean equals(reshipOrder_result that) {
41031
      if (that == null)
41032
        return false;
41033
 
41034
      boolean this_present_success = true;
41035
      boolean that_present_success = true;
41036
      if (this_present_success || that_present_success) {
41037
        if (!(this_present_success && that_present_success))
41038
          return false;
41039
        if (this.success != that.success)
41040
          return false;
41041
      }
41042
 
41043
      boolean this_present_ex = true && this.isSetEx();
41044
      boolean that_present_ex = true && that.isSetEx();
41045
      if (this_present_ex || that_present_ex) {
41046
        if (!(this_present_ex && that_present_ex))
41047
          return false;
41048
        if (!this.ex.equals(that.ex))
41049
          return false;
41050
      }
41051
 
41052
      return true;
41053
    }
41054
 
41055
    @Override
41056
    public int hashCode() {
41057
      return 0;
41058
    }
41059
 
41060
    public int compareTo(reshipOrder_result other) {
41061
      if (!getClass().equals(other.getClass())) {
41062
        return getClass().getName().compareTo(other.getClass().getName());
41063
      }
41064
 
41065
      int lastComparison = 0;
41066
      reshipOrder_result typedOther = (reshipOrder_result)other;
41067
 
3430 rajveer 41068
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2615 chandransh 41069
      if (lastComparison != 0) {
41070
        return lastComparison;
41071
      }
3430 rajveer 41072
      if (isSetSuccess()) {
41073
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
41074
        if (lastComparison != 0) {
41075
          return lastComparison;
41076
        }
2615 chandransh 41077
      }
3430 rajveer 41078
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2615 chandransh 41079
      if (lastComparison != 0) {
41080
        return lastComparison;
41081
      }
3430 rajveer 41082
      if (isSetEx()) {
41083
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
41084
        if (lastComparison != 0) {
41085
          return lastComparison;
41086
        }
2615 chandransh 41087
      }
41088
      return 0;
41089
    }
41090
 
3430 rajveer 41091
    public _Fields fieldForId(int fieldId) {
41092
      return _Fields.findByThriftId(fieldId);
41093
    }
41094
 
41095
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41096
      org.apache.thrift.protocol.TField field;
2615 chandransh 41097
      iprot.readStructBegin();
41098
      while (true)
41099
      {
41100
        field = iprot.readFieldBegin();
3430 rajveer 41101
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2615 chandransh 41102
          break;
41103
        }
3430 rajveer 41104
        switch (field.id) {
41105
          case 0: // SUCCESS
41106
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41107
              this.success = iprot.readI64();
41108
              setSuccessIsSet(true);
41109
            } else { 
41110
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41111
            }
41112
            break;
41113
          case 1: // EX
41114
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
41115
              this.ex = new TransactionServiceException();
41116
              this.ex.read(iprot);
41117
            } else { 
41118
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41119
            }
41120
            break;
41121
          default:
41122
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2615 chandransh 41123
        }
3430 rajveer 41124
        iprot.readFieldEnd();
2615 chandransh 41125
      }
41126
      iprot.readStructEnd();
41127
      validate();
41128
    }
41129
 
3430 rajveer 41130
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2615 chandransh 41131
      oprot.writeStructBegin(STRUCT_DESC);
41132
 
41133
      if (this.isSetSuccess()) {
41134
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41135
        oprot.writeI64(this.success);
41136
        oprot.writeFieldEnd();
41137
      } else if (this.isSetEx()) {
41138
        oprot.writeFieldBegin(EX_FIELD_DESC);
41139
        this.ex.write(oprot);
41140
        oprot.writeFieldEnd();
41141
      }
41142
      oprot.writeFieldStop();
41143
      oprot.writeStructEnd();
41144
    }
41145
 
41146
    @Override
41147
    public String toString() {
41148
      StringBuilder sb = new StringBuilder("reshipOrder_result(");
41149
      boolean first = true;
41150
 
41151
      sb.append("success:");
41152
      sb.append(this.success);
41153
      first = false;
41154
      if (!first) sb.append(", ");
41155
      sb.append("ex:");
41156
      if (this.ex == null) {
41157
        sb.append("null");
41158
      } else {
41159
        sb.append(this.ex);
41160
      }
41161
      first = false;
41162
      sb.append(")");
41163
      return sb.toString();
41164
    }
41165
 
3430 rajveer 41166
    public void validate() throws org.apache.thrift.TException {
2615 chandransh 41167
      // check for required fields
41168
    }
41169
 
3430 rajveer 41170
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41171
      try {
41172
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41173
      } catch (org.apache.thrift.TException te) {
41174
        throw new java.io.IOException(te);
41175
      }
41176
    }
41177
 
41178
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41179
      try {
41180
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41181
      } catch (org.apache.thrift.TException te) {
41182
        throw new java.io.IOException(te);
41183
      }
41184
    }
41185
 
2615 chandransh 41186
  }
41187
 
3430 rajveer 41188
  public static class refundOrder_args implements org.apache.thrift.TBase<refundOrder_args, refundOrder_args._Fields>, java.io.Serializable, Cloneable   {
41189
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundOrder_args");
2615 chandransh 41190
 
3430 rajveer 41191
    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);
41192
    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);
41193
    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 41194
 
3430 rajveer 41195
    private long orderId; // required
41196
    private String refundedBy; // required
41197
    private String reason; // required
2615 chandransh 41198
 
41199
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41200
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3226 chandransh 41201
      ORDER_ID((short)1, "orderId"),
41202
      REFUNDED_BY((short)2, "refundedBy"),
41203
      REASON((short)3, "reason");
2615 chandransh 41204
 
41205
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41206
 
41207
      static {
41208
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41209
          byName.put(field.getFieldName(), field);
41210
        }
41211
      }
41212
 
41213
      /**
41214
       * Find the _Fields constant that matches fieldId, or null if its not found.
41215
       */
41216
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41217
        switch(fieldId) {
41218
          case 1: // ORDER_ID
41219
            return ORDER_ID;
41220
          case 2: // REFUNDED_BY
41221
            return REFUNDED_BY;
41222
          case 3: // REASON
41223
            return REASON;
41224
          default:
41225
            return null;
41226
        }
2615 chandransh 41227
      }
41228
 
41229
      /**
41230
       * Find the _Fields constant that matches fieldId, throwing an exception
41231
       * if it is not found.
41232
       */
41233
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41234
        _Fields fields = findByThriftId(fieldId);
41235
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41236
        return fields;
41237
      }
41238
 
41239
      /**
41240
       * Find the _Fields constant that matches name, or null if its not found.
41241
       */
41242
      public static _Fields findByName(String name) {
41243
        return byName.get(name);
41244
      }
41245
 
41246
      private final short _thriftId;
41247
      private final String _fieldName;
41248
 
41249
      _Fields(short thriftId, String fieldName) {
41250
        _thriftId = thriftId;
41251
        _fieldName = fieldName;
41252
      }
41253
 
41254
      public short getThriftFieldId() {
41255
        return _thriftId;
41256
      }
41257
 
41258
      public String getFieldName() {
41259
        return _fieldName;
41260
      }
41261
    }
41262
 
41263
    // isset id assignments
41264
    private static final int __ORDERID_ISSET_ID = 0;
41265
    private BitSet __isset_bit_vector = new BitSet(1);
41266
 
3430 rajveer 41267
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2615 chandransh 41268
    static {
3430 rajveer 41269
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41270
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41271
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41272
      tmpMap.put(_Fields.REFUNDED_BY, new org.apache.thrift.meta_data.FieldMetaData("refundedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41273
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
41274
      tmpMap.put(_Fields.REASON, new org.apache.thrift.meta_data.FieldMetaData("reason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41275
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
41276
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41277
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundOrder_args.class, metaDataMap);
2615 chandransh 41278
    }
41279
 
41280
    public refundOrder_args() {
41281
    }
41282
 
41283
    public refundOrder_args(
3226 chandransh 41284
      long orderId,
41285
      String refundedBy,
41286
      String reason)
2615 chandransh 41287
    {
41288
      this();
41289
      this.orderId = orderId;
41290
      setOrderIdIsSet(true);
3226 chandransh 41291
      this.refundedBy = refundedBy;
41292
      this.reason = reason;
2615 chandransh 41293
    }
41294
 
41295
    /**
41296
     * Performs a deep copy on <i>other</i>.
41297
     */
41298
    public refundOrder_args(refundOrder_args other) {
41299
      __isset_bit_vector.clear();
41300
      __isset_bit_vector.or(other.__isset_bit_vector);
41301
      this.orderId = other.orderId;
3226 chandransh 41302
      if (other.isSetRefundedBy()) {
41303
        this.refundedBy = other.refundedBy;
41304
      }
41305
      if (other.isSetReason()) {
41306
        this.reason = other.reason;
41307
      }
2615 chandransh 41308
    }
41309
 
41310
    public refundOrder_args deepCopy() {
41311
      return new refundOrder_args(this);
41312
    }
41313
 
3430 rajveer 41314
    @Override
41315
    public void clear() {
41316
      setOrderIdIsSet(false);
41317
      this.orderId = 0;
41318
      this.refundedBy = null;
41319
      this.reason = null;
2615 chandransh 41320
    }
41321
 
41322
    public long getOrderId() {
41323
      return this.orderId;
41324
    }
41325
 
3430 rajveer 41326
    public void setOrderId(long orderId) {
2615 chandransh 41327
      this.orderId = orderId;
41328
      setOrderIdIsSet(true);
41329
    }
41330
 
41331
    public void unsetOrderId() {
41332
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
41333
    }
41334
 
3430 rajveer 41335
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2615 chandransh 41336
    public boolean isSetOrderId() {
41337
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
41338
    }
41339
 
41340
    public void setOrderIdIsSet(boolean value) {
41341
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
41342
    }
41343
 
3226 chandransh 41344
    public String getRefundedBy() {
41345
      return this.refundedBy;
41346
    }
41347
 
3430 rajveer 41348
    public void setRefundedBy(String refundedBy) {
3226 chandransh 41349
      this.refundedBy = refundedBy;
41350
    }
41351
 
41352
    public void unsetRefundedBy() {
41353
      this.refundedBy = null;
41354
    }
41355
 
3430 rajveer 41356
    /** Returns true if field refundedBy is set (has been assigned a value) and false otherwise */
3226 chandransh 41357
    public boolean isSetRefundedBy() {
41358
      return this.refundedBy != null;
41359
    }
41360
 
41361
    public void setRefundedByIsSet(boolean value) {
41362
      if (!value) {
41363
        this.refundedBy = null;
41364
      }
41365
    }
41366
 
41367
    public String getReason() {
41368
      return this.reason;
41369
    }
41370
 
3430 rajveer 41371
    public void setReason(String reason) {
3226 chandransh 41372
      this.reason = reason;
41373
    }
41374
 
41375
    public void unsetReason() {
41376
      this.reason = null;
41377
    }
41378
 
3430 rajveer 41379
    /** Returns true if field reason is set (has been assigned a value) and false otherwise */
3226 chandransh 41380
    public boolean isSetReason() {
41381
      return this.reason != null;
41382
    }
41383
 
41384
    public void setReasonIsSet(boolean value) {
41385
      if (!value) {
41386
        this.reason = null;
41387
      }
41388
    }
41389
 
2615 chandransh 41390
    public void setFieldValue(_Fields field, Object value) {
41391
      switch (field) {
41392
      case ORDER_ID:
41393
        if (value == null) {
41394
          unsetOrderId();
41395
        } else {
41396
          setOrderId((Long)value);
41397
        }
41398
        break;
41399
 
3226 chandransh 41400
      case REFUNDED_BY:
41401
        if (value == null) {
41402
          unsetRefundedBy();
41403
        } else {
41404
          setRefundedBy((String)value);
41405
        }
41406
        break;
41407
 
41408
      case REASON:
41409
        if (value == null) {
41410
          unsetReason();
41411
        } else {
41412
          setReason((String)value);
41413
        }
41414
        break;
41415
 
2615 chandransh 41416
      }
41417
    }
41418
 
41419
    public Object getFieldValue(_Fields field) {
41420
      switch (field) {
41421
      case ORDER_ID:
3430 rajveer 41422
        return Long.valueOf(getOrderId());
2615 chandransh 41423
 
3226 chandransh 41424
      case REFUNDED_BY:
41425
        return getRefundedBy();
41426
 
41427
      case REASON:
41428
        return getReason();
41429
 
2615 chandransh 41430
      }
41431
      throw new IllegalStateException();
41432
    }
41433
 
3430 rajveer 41434
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41435
    public boolean isSet(_Fields field) {
41436
      if (field == null) {
41437
        throw new IllegalArgumentException();
41438
      }
2615 chandransh 41439
 
41440
      switch (field) {
41441
      case ORDER_ID:
41442
        return isSetOrderId();
3226 chandransh 41443
      case REFUNDED_BY:
41444
        return isSetRefundedBy();
41445
      case REASON:
41446
        return isSetReason();
2615 chandransh 41447
      }
41448
      throw new IllegalStateException();
41449
    }
41450
 
41451
    @Override
41452
    public boolean equals(Object that) {
41453
      if (that == null)
41454
        return false;
41455
      if (that instanceof refundOrder_args)
41456
        return this.equals((refundOrder_args)that);
41457
      return false;
41458
    }
41459
 
41460
    public boolean equals(refundOrder_args that) {
41461
      if (that == null)
41462
        return false;
41463
 
41464
      boolean this_present_orderId = true;
41465
      boolean that_present_orderId = true;
41466
      if (this_present_orderId || that_present_orderId) {
41467
        if (!(this_present_orderId && that_present_orderId))
41468
          return false;
41469
        if (this.orderId != that.orderId)
41470
          return false;
41471
      }
41472
 
3226 chandransh 41473
      boolean this_present_refundedBy = true && this.isSetRefundedBy();
41474
      boolean that_present_refundedBy = true && that.isSetRefundedBy();
41475
      if (this_present_refundedBy || that_present_refundedBy) {
41476
        if (!(this_present_refundedBy && that_present_refundedBy))
41477
          return false;
41478
        if (!this.refundedBy.equals(that.refundedBy))
41479
          return false;
41480
      }
41481
 
41482
      boolean this_present_reason = true && this.isSetReason();
41483
      boolean that_present_reason = true && that.isSetReason();
41484
      if (this_present_reason || that_present_reason) {
41485
        if (!(this_present_reason && that_present_reason))
41486
          return false;
41487
        if (!this.reason.equals(that.reason))
41488
          return false;
41489
      }
41490
 
2615 chandransh 41491
      return true;
41492
    }
41493
 
41494
    @Override
41495
    public int hashCode() {
41496
      return 0;
41497
    }
41498
 
41499
    public int compareTo(refundOrder_args other) {
41500
      if (!getClass().equals(other.getClass())) {
41501
        return getClass().getName().compareTo(other.getClass().getName());
41502
      }
41503
 
41504
      int lastComparison = 0;
41505
      refundOrder_args typedOther = (refundOrder_args)other;
41506
 
3430 rajveer 41507
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2615 chandransh 41508
      if (lastComparison != 0) {
41509
        return lastComparison;
41510
      }
3430 rajveer 41511
      if (isSetOrderId()) {
41512
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
41513
        if (lastComparison != 0) {
41514
          return lastComparison;
41515
        }
2615 chandransh 41516
      }
3430 rajveer 41517
      lastComparison = Boolean.valueOf(isSetRefundedBy()).compareTo(typedOther.isSetRefundedBy());
3226 chandransh 41518
      if (lastComparison != 0) {
41519
        return lastComparison;
41520
      }
3430 rajveer 41521
      if (isSetRefundedBy()) {
41522
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundedBy, typedOther.refundedBy);
41523
        if (lastComparison != 0) {
41524
          return lastComparison;
41525
        }
3226 chandransh 41526
      }
3430 rajveer 41527
      lastComparison = Boolean.valueOf(isSetReason()).compareTo(typedOther.isSetReason());
3226 chandransh 41528
      if (lastComparison != 0) {
41529
        return lastComparison;
41530
      }
3430 rajveer 41531
      if (isSetReason()) {
41532
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reason, typedOther.reason);
41533
        if (lastComparison != 0) {
41534
          return lastComparison;
41535
        }
3226 chandransh 41536
      }
2615 chandransh 41537
      return 0;
41538
    }
41539
 
3430 rajveer 41540
    public _Fields fieldForId(int fieldId) {
41541
      return _Fields.findByThriftId(fieldId);
41542
    }
41543
 
41544
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41545
      org.apache.thrift.protocol.TField field;
2615 chandransh 41546
      iprot.readStructBegin();
41547
      while (true)
41548
      {
41549
        field = iprot.readFieldBegin();
3430 rajveer 41550
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2615 chandransh 41551
          break;
41552
        }
3430 rajveer 41553
        switch (field.id) {
41554
          case 1: // ORDER_ID
41555
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41556
              this.orderId = iprot.readI64();
41557
              setOrderIdIsSet(true);
41558
            } else { 
41559
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41560
            }
41561
            break;
41562
          case 2: // REFUNDED_BY
41563
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
41564
              this.refundedBy = iprot.readString();
41565
            } else { 
41566
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41567
            }
41568
            break;
41569
          case 3: // REASON
41570
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
41571
              this.reason = iprot.readString();
41572
            } else { 
41573
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41574
            }
41575
            break;
41576
          default:
41577
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2615 chandransh 41578
        }
3430 rajveer 41579
        iprot.readFieldEnd();
2615 chandransh 41580
      }
41581
      iprot.readStructEnd();
41582
      validate();
41583
    }
41584
 
3430 rajveer 41585
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2615 chandransh 41586
      validate();
41587
 
41588
      oprot.writeStructBegin(STRUCT_DESC);
41589
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
41590
      oprot.writeI64(this.orderId);
41591
      oprot.writeFieldEnd();
3226 chandransh 41592
      if (this.refundedBy != null) {
41593
        oprot.writeFieldBegin(REFUNDED_BY_FIELD_DESC);
41594
        oprot.writeString(this.refundedBy);
41595
        oprot.writeFieldEnd();
41596
      }
41597
      if (this.reason != null) {
41598
        oprot.writeFieldBegin(REASON_FIELD_DESC);
41599
        oprot.writeString(this.reason);
41600
        oprot.writeFieldEnd();
41601
      }
2615 chandransh 41602
      oprot.writeFieldStop();
41603
      oprot.writeStructEnd();
41604
    }
41605
 
41606
    @Override
41607
    public String toString() {
41608
      StringBuilder sb = new StringBuilder("refundOrder_args(");
41609
      boolean first = true;
41610
 
41611
      sb.append("orderId:");
41612
      sb.append(this.orderId);
41613
      first = false;
3226 chandransh 41614
      if (!first) sb.append(", ");
41615
      sb.append("refundedBy:");
41616
      if (this.refundedBy == null) {
41617
        sb.append("null");
41618
      } else {
41619
        sb.append(this.refundedBy);
41620
      }
41621
      first = false;
41622
      if (!first) sb.append(", ");
41623
      sb.append("reason:");
41624
      if (this.reason == null) {
41625
        sb.append("null");
41626
      } else {
41627
        sb.append(this.reason);
41628
      }
41629
      first = false;
2615 chandransh 41630
      sb.append(")");
41631
      return sb.toString();
41632
    }
41633
 
3430 rajveer 41634
    public void validate() throws org.apache.thrift.TException {
2615 chandransh 41635
      // check for required fields
41636
    }
41637
 
3430 rajveer 41638
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41639
      try {
41640
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41641
      } catch (org.apache.thrift.TException te) {
41642
        throw new java.io.IOException(te);
41643
      }
41644
    }
41645
 
41646
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41647
      try {
41648
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41649
      } catch (org.apache.thrift.TException te) {
41650
        throw new java.io.IOException(te);
41651
      }
41652
    }
41653
 
2615 chandransh 41654
  }
41655
 
3430 rajveer 41656
  public static class refundOrder_result implements org.apache.thrift.TBase<refundOrder_result, refundOrder_result._Fields>, java.io.Serializable, Cloneable   {
41657
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundOrder_result");
2615 chandransh 41658
 
3430 rajveer 41659
    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);
41660
    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 41661
 
3430 rajveer 41662
    private boolean success; // required
41663
    private TransactionServiceException ex; // required
2615 chandransh 41664
 
41665
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41666
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2615 chandransh 41667
      SUCCESS((short)0, "success"),
41668
      EX((short)1, "ex");
41669
 
41670
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41671
 
41672
      static {
41673
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41674
          byName.put(field.getFieldName(), field);
41675
        }
41676
      }
41677
 
41678
      /**
41679
       * Find the _Fields constant that matches fieldId, or null if its not found.
41680
       */
41681
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41682
        switch(fieldId) {
41683
          case 0: // SUCCESS
41684
            return SUCCESS;
41685
          case 1: // EX
41686
            return EX;
41687
          default:
41688
            return null;
41689
        }
2615 chandransh 41690
      }
41691
 
41692
      /**
41693
       * Find the _Fields constant that matches fieldId, throwing an exception
41694
       * if it is not found.
41695
       */
41696
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41697
        _Fields fields = findByThriftId(fieldId);
41698
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41699
        return fields;
41700
      }
41701
 
41702
      /**
41703
       * Find the _Fields constant that matches name, or null if its not found.
41704
       */
41705
      public static _Fields findByName(String name) {
41706
        return byName.get(name);
41707
      }
41708
 
41709
      private final short _thriftId;
41710
      private final String _fieldName;
41711
 
41712
      _Fields(short thriftId, String fieldName) {
41713
        _thriftId = thriftId;
41714
        _fieldName = fieldName;
41715
      }
41716
 
41717
      public short getThriftFieldId() {
41718
        return _thriftId;
41719
      }
41720
 
41721
      public String getFieldName() {
41722
        return _fieldName;
41723
      }
41724
    }
41725
 
41726
    // isset id assignments
41727
    private static final int __SUCCESS_ISSET_ID = 0;
41728
    private BitSet __isset_bit_vector = new BitSet(1);
41729
 
3430 rajveer 41730
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2615 chandransh 41731
    static {
3430 rajveer 41732
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41733
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41734
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
41735
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41736
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
41737
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41738
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundOrder_result.class, metaDataMap);
2615 chandransh 41739
    }
41740
 
41741
    public refundOrder_result() {
41742
    }
41743
 
41744
    public refundOrder_result(
41745
      boolean success,
41746
      TransactionServiceException ex)
41747
    {
41748
      this();
41749
      this.success = success;
41750
      setSuccessIsSet(true);
41751
      this.ex = ex;
41752
    }
41753
 
41754
    /**
41755
     * Performs a deep copy on <i>other</i>.
41756
     */
41757
    public refundOrder_result(refundOrder_result other) {
41758
      __isset_bit_vector.clear();
41759
      __isset_bit_vector.or(other.__isset_bit_vector);
41760
      this.success = other.success;
41761
      if (other.isSetEx()) {
41762
        this.ex = new TransactionServiceException(other.ex);
41763
      }
41764
    }
41765
 
41766
    public refundOrder_result deepCopy() {
41767
      return new refundOrder_result(this);
41768
    }
41769
 
3430 rajveer 41770
    @Override
41771
    public void clear() {
41772
      setSuccessIsSet(false);
41773
      this.success = false;
41774
      this.ex = null;
2615 chandransh 41775
    }
41776
 
41777
    public boolean isSuccess() {
41778
      return this.success;
41779
    }
41780
 
3430 rajveer 41781
    public void setSuccess(boolean success) {
2615 chandransh 41782
      this.success = success;
41783
      setSuccessIsSet(true);
41784
    }
41785
 
41786
    public void unsetSuccess() {
41787
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
41788
    }
41789
 
3430 rajveer 41790
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2615 chandransh 41791
    public boolean isSetSuccess() {
41792
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
41793
    }
41794
 
41795
    public void setSuccessIsSet(boolean value) {
41796
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
41797
    }
41798
 
41799
    public TransactionServiceException getEx() {
41800
      return this.ex;
41801
    }
41802
 
3430 rajveer 41803
    public void setEx(TransactionServiceException ex) {
2615 chandransh 41804
      this.ex = ex;
41805
    }
41806
 
41807
    public void unsetEx() {
41808
      this.ex = null;
41809
    }
41810
 
3430 rajveer 41811
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2615 chandransh 41812
    public boolean isSetEx() {
41813
      return this.ex != null;
41814
    }
41815
 
41816
    public void setExIsSet(boolean value) {
41817
      if (!value) {
41818
        this.ex = null;
41819
      }
41820
    }
41821
 
41822
    public void setFieldValue(_Fields field, Object value) {
41823
      switch (field) {
41824
      case SUCCESS:
41825
        if (value == null) {
41826
          unsetSuccess();
41827
        } else {
41828
          setSuccess((Boolean)value);
41829
        }
41830
        break;
41831
 
41832
      case EX:
41833
        if (value == null) {
41834
          unsetEx();
41835
        } else {
41836
          setEx((TransactionServiceException)value);
41837
        }
41838
        break;
41839
 
41840
      }
41841
    }
41842
 
41843
    public Object getFieldValue(_Fields field) {
41844
      switch (field) {
41845
      case SUCCESS:
3430 rajveer 41846
        return Boolean.valueOf(isSuccess());
2615 chandransh 41847
 
41848
      case EX:
41849
        return getEx();
41850
 
41851
      }
41852
      throw new IllegalStateException();
41853
    }
41854
 
3430 rajveer 41855
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41856
    public boolean isSet(_Fields field) {
41857
      if (field == null) {
41858
        throw new IllegalArgumentException();
41859
      }
2615 chandransh 41860
 
41861
      switch (field) {
41862
      case SUCCESS:
41863
        return isSetSuccess();
41864
      case EX:
41865
        return isSetEx();
41866
      }
41867
      throw new IllegalStateException();
41868
    }
41869
 
41870
    @Override
41871
    public boolean equals(Object that) {
41872
      if (that == null)
41873
        return false;
41874
      if (that instanceof refundOrder_result)
41875
        return this.equals((refundOrder_result)that);
41876
      return false;
41877
    }
41878
 
41879
    public boolean equals(refundOrder_result that) {
41880
      if (that == null)
41881
        return false;
41882
 
41883
      boolean this_present_success = true;
41884
      boolean that_present_success = true;
41885
      if (this_present_success || that_present_success) {
41886
        if (!(this_present_success && that_present_success))
41887
          return false;
41888
        if (this.success != that.success)
41889
          return false;
41890
      }
41891
 
41892
      boolean this_present_ex = true && this.isSetEx();
41893
      boolean that_present_ex = true && that.isSetEx();
41894
      if (this_present_ex || that_present_ex) {
41895
        if (!(this_present_ex && that_present_ex))
41896
          return false;
41897
        if (!this.ex.equals(that.ex))
41898
          return false;
41899
      }
41900
 
41901
      return true;
41902
    }
41903
 
41904
    @Override
41905
    public int hashCode() {
41906
      return 0;
41907
    }
41908
 
41909
    public int compareTo(refundOrder_result other) {
41910
      if (!getClass().equals(other.getClass())) {
41911
        return getClass().getName().compareTo(other.getClass().getName());
41912
      }
41913
 
41914
      int lastComparison = 0;
41915
      refundOrder_result typedOther = (refundOrder_result)other;
41916
 
3430 rajveer 41917
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2615 chandransh 41918
      if (lastComparison != 0) {
41919
        return lastComparison;
41920
      }
3430 rajveer 41921
      if (isSetSuccess()) {
41922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
41923
        if (lastComparison != 0) {
41924
          return lastComparison;
41925
        }
2615 chandransh 41926
      }
3430 rajveer 41927
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2615 chandransh 41928
      if (lastComparison != 0) {
41929
        return lastComparison;
41930
      }
3430 rajveer 41931
      if (isSetEx()) {
41932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
41933
        if (lastComparison != 0) {
41934
          return lastComparison;
41935
        }
2615 chandransh 41936
      }
41937
      return 0;
41938
    }
41939
 
3430 rajveer 41940
    public _Fields fieldForId(int fieldId) {
41941
      return _Fields.findByThriftId(fieldId);
41942
    }
41943
 
41944
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41945
      org.apache.thrift.protocol.TField field;
2615 chandransh 41946
      iprot.readStructBegin();
41947
      while (true)
41948
      {
41949
        field = iprot.readFieldBegin();
3430 rajveer 41950
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2615 chandransh 41951
          break;
41952
        }
3430 rajveer 41953
        switch (field.id) {
41954
          case 0: // SUCCESS
41955
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
41956
              this.success = iprot.readBool();
41957
              setSuccessIsSet(true);
41958
            } else { 
41959
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41960
            }
41961
            break;
41962
          case 1: // EX
41963
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
41964
              this.ex = new TransactionServiceException();
41965
              this.ex.read(iprot);
41966
            } else { 
41967
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41968
            }
41969
            break;
41970
          default:
41971
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2615 chandransh 41972
        }
3430 rajveer 41973
        iprot.readFieldEnd();
2615 chandransh 41974
      }
41975
      iprot.readStructEnd();
41976
      validate();
41977
    }
41978
 
3430 rajveer 41979
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2615 chandransh 41980
      oprot.writeStructBegin(STRUCT_DESC);
41981
 
41982
      if (this.isSetSuccess()) {
41983
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41984
        oprot.writeBool(this.success);
41985
        oprot.writeFieldEnd();
41986
      } else if (this.isSetEx()) {
41987
        oprot.writeFieldBegin(EX_FIELD_DESC);
41988
        this.ex.write(oprot);
41989
        oprot.writeFieldEnd();
41990
      }
41991
      oprot.writeFieldStop();
41992
      oprot.writeStructEnd();
41993
    }
41994
 
41995
    @Override
41996
    public String toString() {
41997
      StringBuilder sb = new StringBuilder("refundOrder_result(");
41998
      boolean first = true;
41999
 
42000
      sb.append("success:");
42001
      sb.append(this.success);
42002
      first = false;
42003
      if (!first) sb.append(", ");
42004
      sb.append("ex:");
42005
      if (this.ex == null) {
42006
        sb.append("null");
42007
      } else {
42008
        sb.append(this.ex);
42009
      }
42010
      first = false;
42011
      sb.append(")");
42012
      return sb.toString();
42013
    }
42014
 
3430 rajveer 42015
    public void validate() throws org.apache.thrift.TException {
2615 chandransh 42016
      // check for required fields
42017
    }
42018
 
3430 rajveer 42019
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42020
      try {
42021
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42022
      } catch (org.apache.thrift.TException te) {
42023
        throw new java.io.IOException(te);
42024
      }
42025
    }
42026
 
42027
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42028
      try {
42029
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42030
      } catch (org.apache.thrift.TException te) {
42031
        throw new java.io.IOException(te);
42032
      }
42033
    }
42034
 
2615 chandransh 42035
  }
42036
 
3430 rajveer 42037
  public static class getReturnOrders_args implements org.apache.thrift.TBase<getReturnOrders_args, getReturnOrders_args._Fields>, java.io.Serializable, Cloneable   {
42038
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrders_args");
2690 chandransh 42039
 
3430 rajveer 42040
    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);
42041
    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);
42042
    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 42043
 
3430 rajveer 42044
    private long warehouseId; // required
42045
    private long fromDate; // required
42046
    private long toDate; // required
2690 chandransh 42047
 
42048
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 42049
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 42050
      WAREHOUSE_ID((short)1, "warehouseId"),
42051
      FROM_DATE((short)2, "fromDate"),
42052
      TO_DATE((short)3, "toDate");
42053
 
42054
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42055
 
42056
      static {
42057
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42058
          byName.put(field.getFieldName(), field);
42059
        }
42060
      }
42061
 
42062
      /**
42063
       * Find the _Fields constant that matches fieldId, or null if its not found.
42064
       */
42065
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 42066
        switch(fieldId) {
42067
          case 1: // WAREHOUSE_ID
42068
            return WAREHOUSE_ID;
42069
          case 2: // FROM_DATE
42070
            return FROM_DATE;
42071
          case 3: // TO_DATE
42072
            return TO_DATE;
42073
          default:
42074
            return null;
42075
        }
2690 chandransh 42076
      }
42077
 
42078
      /**
42079
       * Find the _Fields constant that matches fieldId, throwing an exception
42080
       * if it is not found.
42081
       */
42082
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42083
        _Fields fields = findByThriftId(fieldId);
42084
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42085
        return fields;
42086
      }
42087
 
42088
      /**
42089
       * Find the _Fields constant that matches name, or null if its not found.
42090
       */
42091
      public static _Fields findByName(String name) {
42092
        return byName.get(name);
42093
      }
42094
 
42095
      private final short _thriftId;
42096
      private final String _fieldName;
42097
 
42098
      _Fields(short thriftId, String fieldName) {
42099
        _thriftId = thriftId;
42100
        _fieldName = fieldName;
42101
      }
42102
 
42103
      public short getThriftFieldId() {
42104
        return _thriftId;
42105
      }
42106
 
42107
      public String getFieldName() {
42108
        return _fieldName;
42109
      }
42110
    }
42111
 
42112
    // isset id assignments
42113
    private static final int __WAREHOUSEID_ISSET_ID = 0;
42114
    private static final int __FROMDATE_ISSET_ID = 1;
42115
    private static final int __TODATE_ISSET_ID = 2;
42116
    private BitSet __isset_bit_vector = new BitSet(3);
42117
 
3430 rajveer 42118
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 42119
    static {
3430 rajveer 42120
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42121
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42122
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42123
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42124
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42125
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42126
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42127
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42128
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrders_args.class, metaDataMap);
2690 chandransh 42129
    }
42130
 
42131
    public getReturnOrders_args() {
42132
    }
42133
 
42134
    public getReturnOrders_args(
42135
      long warehouseId,
42136
      long fromDate,
42137
      long toDate)
42138
    {
42139
      this();
42140
      this.warehouseId = warehouseId;
42141
      setWarehouseIdIsSet(true);
42142
      this.fromDate = fromDate;
42143
      setFromDateIsSet(true);
42144
      this.toDate = toDate;
42145
      setToDateIsSet(true);
42146
    }
42147
 
42148
    /**
42149
     * Performs a deep copy on <i>other</i>.
42150
     */
42151
    public getReturnOrders_args(getReturnOrders_args other) {
42152
      __isset_bit_vector.clear();
42153
      __isset_bit_vector.or(other.__isset_bit_vector);
42154
      this.warehouseId = other.warehouseId;
42155
      this.fromDate = other.fromDate;
42156
      this.toDate = other.toDate;
42157
    }
42158
 
42159
    public getReturnOrders_args deepCopy() {
42160
      return new getReturnOrders_args(this);
42161
    }
42162
 
3430 rajveer 42163
    @Override
42164
    public void clear() {
42165
      setWarehouseIdIsSet(false);
42166
      this.warehouseId = 0;
42167
      setFromDateIsSet(false);
42168
      this.fromDate = 0;
42169
      setToDateIsSet(false);
42170
      this.toDate = 0;
2690 chandransh 42171
    }
42172
 
42173
    public long getWarehouseId() {
42174
      return this.warehouseId;
42175
    }
42176
 
3430 rajveer 42177
    public void setWarehouseId(long warehouseId) {
2690 chandransh 42178
      this.warehouseId = warehouseId;
42179
      setWarehouseIdIsSet(true);
42180
    }
42181
 
42182
    public void unsetWarehouseId() {
42183
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
42184
    }
42185
 
3430 rajveer 42186
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
2690 chandransh 42187
    public boolean isSetWarehouseId() {
42188
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
42189
    }
42190
 
42191
    public void setWarehouseIdIsSet(boolean value) {
42192
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
42193
    }
42194
 
42195
    public long getFromDate() {
42196
      return this.fromDate;
42197
    }
42198
 
3430 rajveer 42199
    public void setFromDate(long fromDate) {
2690 chandransh 42200
      this.fromDate = fromDate;
42201
      setFromDateIsSet(true);
42202
    }
42203
 
42204
    public void unsetFromDate() {
42205
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
42206
    }
42207
 
3430 rajveer 42208
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
2690 chandransh 42209
    public boolean isSetFromDate() {
42210
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
42211
    }
42212
 
42213
    public void setFromDateIsSet(boolean value) {
42214
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
42215
    }
42216
 
42217
    public long getToDate() {
42218
      return this.toDate;
42219
    }
42220
 
3430 rajveer 42221
    public void setToDate(long toDate) {
2690 chandransh 42222
      this.toDate = toDate;
42223
      setToDateIsSet(true);
42224
    }
42225
 
42226
    public void unsetToDate() {
42227
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
42228
    }
42229
 
3430 rajveer 42230
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
2690 chandransh 42231
    public boolean isSetToDate() {
42232
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
42233
    }
42234
 
42235
    public void setToDateIsSet(boolean value) {
42236
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
42237
    }
42238
 
42239
    public void setFieldValue(_Fields field, Object value) {
42240
      switch (field) {
42241
      case WAREHOUSE_ID:
42242
        if (value == null) {
42243
          unsetWarehouseId();
42244
        } else {
42245
          setWarehouseId((Long)value);
42246
        }
42247
        break;
42248
 
42249
      case FROM_DATE:
42250
        if (value == null) {
42251
          unsetFromDate();
42252
        } else {
42253
          setFromDate((Long)value);
42254
        }
42255
        break;
42256
 
42257
      case TO_DATE:
42258
        if (value == null) {
42259
          unsetToDate();
42260
        } else {
42261
          setToDate((Long)value);
42262
        }
42263
        break;
42264
 
42265
      }
42266
    }
42267
 
42268
    public Object getFieldValue(_Fields field) {
42269
      switch (field) {
42270
      case WAREHOUSE_ID:
3430 rajveer 42271
        return Long.valueOf(getWarehouseId());
2690 chandransh 42272
 
42273
      case FROM_DATE:
3430 rajveer 42274
        return Long.valueOf(getFromDate());
2690 chandransh 42275
 
42276
      case TO_DATE:
3430 rajveer 42277
        return Long.valueOf(getToDate());
2690 chandransh 42278
 
42279
      }
42280
      throw new IllegalStateException();
42281
    }
42282
 
3430 rajveer 42283
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42284
    public boolean isSet(_Fields field) {
42285
      if (field == null) {
42286
        throw new IllegalArgumentException();
42287
      }
2690 chandransh 42288
 
42289
      switch (field) {
42290
      case WAREHOUSE_ID:
42291
        return isSetWarehouseId();
42292
      case FROM_DATE:
42293
        return isSetFromDate();
42294
      case TO_DATE:
42295
        return isSetToDate();
42296
      }
42297
      throw new IllegalStateException();
42298
    }
42299
 
42300
    @Override
42301
    public boolean equals(Object that) {
42302
      if (that == null)
42303
        return false;
42304
      if (that instanceof getReturnOrders_args)
42305
        return this.equals((getReturnOrders_args)that);
42306
      return false;
42307
    }
42308
 
42309
    public boolean equals(getReturnOrders_args that) {
42310
      if (that == null)
42311
        return false;
42312
 
42313
      boolean this_present_warehouseId = true;
42314
      boolean that_present_warehouseId = true;
42315
      if (this_present_warehouseId || that_present_warehouseId) {
42316
        if (!(this_present_warehouseId && that_present_warehouseId))
42317
          return false;
42318
        if (this.warehouseId != that.warehouseId)
42319
          return false;
42320
      }
42321
 
42322
      boolean this_present_fromDate = true;
42323
      boolean that_present_fromDate = true;
42324
      if (this_present_fromDate || that_present_fromDate) {
42325
        if (!(this_present_fromDate && that_present_fromDate))
42326
          return false;
42327
        if (this.fromDate != that.fromDate)
42328
          return false;
42329
      }
42330
 
42331
      boolean this_present_toDate = true;
42332
      boolean that_present_toDate = true;
42333
      if (this_present_toDate || that_present_toDate) {
42334
        if (!(this_present_toDate && that_present_toDate))
42335
          return false;
42336
        if (this.toDate != that.toDate)
42337
          return false;
42338
      }
42339
 
42340
      return true;
42341
    }
42342
 
42343
    @Override
42344
    public int hashCode() {
42345
      return 0;
42346
    }
42347
 
42348
    public int compareTo(getReturnOrders_args other) {
42349
      if (!getClass().equals(other.getClass())) {
42350
        return getClass().getName().compareTo(other.getClass().getName());
42351
      }
42352
 
42353
      int lastComparison = 0;
42354
      getReturnOrders_args typedOther = (getReturnOrders_args)other;
42355
 
3430 rajveer 42356
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
2690 chandransh 42357
      if (lastComparison != 0) {
42358
        return lastComparison;
42359
      }
3430 rajveer 42360
      if (isSetWarehouseId()) {
42361
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
42362
        if (lastComparison != 0) {
42363
          return lastComparison;
42364
        }
2690 chandransh 42365
      }
3430 rajveer 42366
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
2690 chandransh 42367
      if (lastComparison != 0) {
42368
        return lastComparison;
42369
      }
3430 rajveer 42370
      if (isSetFromDate()) {
42371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
42372
        if (lastComparison != 0) {
42373
          return lastComparison;
42374
        }
2690 chandransh 42375
      }
3430 rajveer 42376
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
2690 chandransh 42377
      if (lastComparison != 0) {
42378
        return lastComparison;
42379
      }
3430 rajveer 42380
      if (isSetToDate()) {
42381
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
42382
        if (lastComparison != 0) {
42383
          return lastComparison;
42384
        }
2690 chandransh 42385
      }
42386
      return 0;
42387
    }
42388
 
3430 rajveer 42389
    public _Fields fieldForId(int fieldId) {
42390
      return _Fields.findByThriftId(fieldId);
42391
    }
42392
 
42393
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42394
      org.apache.thrift.protocol.TField field;
2690 chandransh 42395
      iprot.readStructBegin();
42396
      while (true)
42397
      {
42398
        field = iprot.readFieldBegin();
3430 rajveer 42399
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 42400
          break;
42401
        }
3430 rajveer 42402
        switch (field.id) {
42403
          case 1: // WAREHOUSE_ID
42404
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42405
              this.warehouseId = iprot.readI64();
42406
              setWarehouseIdIsSet(true);
42407
            } else { 
42408
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42409
            }
42410
            break;
42411
          case 2: // FROM_DATE
42412
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42413
              this.fromDate = iprot.readI64();
42414
              setFromDateIsSet(true);
42415
            } else { 
42416
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42417
            }
42418
            break;
42419
          case 3: // TO_DATE
42420
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42421
              this.toDate = iprot.readI64();
42422
              setToDateIsSet(true);
42423
            } else { 
42424
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42425
            }
42426
            break;
42427
          default:
42428
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 42429
        }
3430 rajveer 42430
        iprot.readFieldEnd();
2690 chandransh 42431
      }
42432
      iprot.readStructEnd();
42433
      validate();
42434
    }
42435
 
3430 rajveer 42436
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 42437
      validate();
42438
 
42439
      oprot.writeStructBegin(STRUCT_DESC);
42440
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
42441
      oprot.writeI64(this.warehouseId);
42442
      oprot.writeFieldEnd();
42443
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
42444
      oprot.writeI64(this.fromDate);
42445
      oprot.writeFieldEnd();
42446
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
42447
      oprot.writeI64(this.toDate);
42448
      oprot.writeFieldEnd();
42449
      oprot.writeFieldStop();
42450
      oprot.writeStructEnd();
42451
    }
42452
 
42453
    @Override
42454
    public String toString() {
42455
      StringBuilder sb = new StringBuilder("getReturnOrders_args(");
42456
      boolean first = true;
42457
 
42458
      sb.append("warehouseId:");
42459
      sb.append(this.warehouseId);
42460
      first = false;
42461
      if (!first) sb.append(", ");
42462
      sb.append("fromDate:");
42463
      sb.append(this.fromDate);
42464
      first = false;
42465
      if (!first) sb.append(", ");
42466
      sb.append("toDate:");
42467
      sb.append(this.toDate);
42468
      first = false;
42469
      sb.append(")");
42470
      return sb.toString();
42471
    }
42472
 
3430 rajveer 42473
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 42474
      // check for required fields
42475
    }
42476
 
3430 rajveer 42477
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42478
      try {
42479
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42480
      } catch (org.apache.thrift.TException te) {
42481
        throw new java.io.IOException(te);
42482
      }
42483
    }
42484
 
42485
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42486
      try {
42487
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42488
      } catch (org.apache.thrift.TException te) {
42489
        throw new java.io.IOException(te);
42490
      }
42491
    }
42492
 
2690 chandransh 42493
  }
42494
 
3430 rajveer 42495
  public static class getReturnOrders_result implements org.apache.thrift.TBase<getReturnOrders_result, getReturnOrders_result._Fields>, java.io.Serializable, Cloneable   {
42496
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrders_result");
2690 chandransh 42497
 
3430 rajveer 42498
    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 42499
 
3430 rajveer 42500
    private List<ReturnOrder> success; // required
2690 chandransh 42501
 
42502
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 42503
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 42504
      SUCCESS((short)0, "success");
42505
 
42506
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42507
 
42508
      static {
42509
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42510
          byName.put(field.getFieldName(), field);
42511
        }
42512
      }
42513
 
42514
      /**
42515
       * Find the _Fields constant that matches fieldId, or null if its not found.
42516
       */
42517
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 42518
        switch(fieldId) {
42519
          case 0: // SUCCESS
42520
            return SUCCESS;
42521
          default:
42522
            return null;
42523
        }
2690 chandransh 42524
      }
42525
 
42526
      /**
42527
       * Find the _Fields constant that matches fieldId, throwing an exception
42528
       * if it is not found.
42529
       */
42530
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42531
        _Fields fields = findByThriftId(fieldId);
42532
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42533
        return fields;
42534
      }
42535
 
42536
      /**
42537
       * Find the _Fields constant that matches name, or null if its not found.
42538
       */
42539
      public static _Fields findByName(String name) {
42540
        return byName.get(name);
42541
      }
42542
 
42543
      private final short _thriftId;
42544
      private final String _fieldName;
42545
 
42546
      _Fields(short thriftId, String fieldName) {
42547
        _thriftId = thriftId;
42548
        _fieldName = fieldName;
42549
      }
42550
 
42551
      public short getThriftFieldId() {
42552
        return _thriftId;
42553
      }
42554
 
42555
      public String getFieldName() {
42556
        return _fieldName;
42557
      }
42558
    }
42559
 
42560
    // isset id assignments
42561
 
3430 rajveer 42562
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 42563
    static {
3430 rajveer 42564
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42565
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42566
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
42567
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnOrder.class))));
42568
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42569
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrders_result.class, metaDataMap);
2690 chandransh 42570
    }
42571
 
42572
    public getReturnOrders_result() {
42573
    }
42574
 
42575
    public getReturnOrders_result(
42576
      List<ReturnOrder> success)
42577
    {
42578
      this();
42579
      this.success = success;
42580
    }
42581
 
42582
    /**
42583
     * Performs a deep copy on <i>other</i>.
42584
     */
42585
    public getReturnOrders_result(getReturnOrders_result other) {
42586
      if (other.isSetSuccess()) {
42587
        List<ReturnOrder> __this__success = new ArrayList<ReturnOrder>();
42588
        for (ReturnOrder other_element : other.success) {
42589
          __this__success.add(new ReturnOrder(other_element));
42590
        }
42591
        this.success = __this__success;
42592
      }
42593
    }
42594
 
42595
    public getReturnOrders_result deepCopy() {
42596
      return new getReturnOrders_result(this);
42597
    }
42598
 
3430 rajveer 42599
    @Override
42600
    public void clear() {
42601
      this.success = null;
2690 chandransh 42602
    }
42603
 
42604
    public int getSuccessSize() {
42605
      return (this.success == null) ? 0 : this.success.size();
42606
    }
42607
 
42608
    public java.util.Iterator<ReturnOrder> getSuccessIterator() {
42609
      return (this.success == null) ? null : this.success.iterator();
42610
    }
42611
 
42612
    public void addToSuccess(ReturnOrder elem) {
42613
      if (this.success == null) {
42614
        this.success = new ArrayList<ReturnOrder>();
42615
      }
42616
      this.success.add(elem);
42617
    }
42618
 
42619
    public List<ReturnOrder> getSuccess() {
42620
      return this.success;
42621
    }
42622
 
3430 rajveer 42623
    public void setSuccess(List<ReturnOrder> success) {
2690 chandransh 42624
      this.success = success;
42625
    }
42626
 
42627
    public void unsetSuccess() {
42628
      this.success = null;
42629
    }
42630
 
3430 rajveer 42631
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2690 chandransh 42632
    public boolean isSetSuccess() {
42633
      return this.success != null;
42634
    }
42635
 
42636
    public void setSuccessIsSet(boolean value) {
42637
      if (!value) {
42638
        this.success = null;
42639
      }
42640
    }
42641
 
42642
    public void setFieldValue(_Fields field, Object value) {
42643
      switch (field) {
42644
      case SUCCESS:
42645
        if (value == null) {
42646
          unsetSuccess();
42647
        } else {
42648
          setSuccess((List<ReturnOrder>)value);
42649
        }
42650
        break;
42651
 
42652
      }
42653
    }
42654
 
42655
    public Object getFieldValue(_Fields field) {
42656
      switch (field) {
42657
      case SUCCESS:
42658
        return getSuccess();
42659
 
42660
      }
42661
      throw new IllegalStateException();
42662
    }
42663
 
3430 rajveer 42664
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42665
    public boolean isSet(_Fields field) {
42666
      if (field == null) {
42667
        throw new IllegalArgumentException();
42668
      }
2690 chandransh 42669
 
42670
      switch (field) {
42671
      case SUCCESS:
42672
        return isSetSuccess();
42673
      }
42674
      throw new IllegalStateException();
42675
    }
42676
 
42677
    @Override
42678
    public boolean equals(Object that) {
42679
      if (that == null)
42680
        return false;
42681
      if (that instanceof getReturnOrders_result)
42682
        return this.equals((getReturnOrders_result)that);
42683
      return false;
42684
    }
42685
 
42686
    public boolean equals(getReturnOrders_result that) {
42687
      if (that == null)
42688
        return false;
42689
 
42690
      boolean this_present_success = true && this.isSetSuccess();
42691
      boolean that_present_success = true && that.isSetSuccess();
42692
      if (this_present_success || that_present_success) {
42693
        if (!(this_present_success && that_present_success))
42694
          return false;
42695
        if (!this.success.equals(that.success))
42696
          return false;
42697
      }
42698
 
42699
      return true;
42700
    }
42701
 
42702
    @Override
42703
    public int hashCode() {
42704
      return 0;
42705
    }
42706
 
42707
    public int compareTo(getReturnOrders_result other) {
42708
      if (!getClass().equals(other.getClass())) {
42709
        return getClass().getName().compareTo(other.getClass().getName());
42710
      }
42711
 
42712
      int lastComparison = 0;
42713
      getReturnOrders_result typedOther = (getReturnOrders_result)other;
42714
 
3430 rajveer 42715
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2690 chandransh 42716
      if (lastComparison != 0) {
42717
        return lastComparison;
42718
      }
3430 rajveer 42719
      if (isSetSuccess()) {
42720
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
42721
        if (lastComparison != 0) {
42722
          return lastComparison;
42723
        }
2690 chandransh 42724
      }
42725
      return 0;
42726
    }
42727
 
3430 rajveer 42728
    public _Fields fieldForId(int fieldId) {
42729
      return _Fields.findByThriftId(fieldId);
42730
    }
42731
 
42732
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42733
      org.apache.thrift.protocol.TField field;
2690 chandransh 42734
      iprot.readStructBegin();
42735
      while (true)
42736
      {
42737
        field = iprot.readFieldBegin();
3430 rajveer 42738
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 42739
          break;
42740
        }
3430 rajveer 42741
        switch (field.id) {
42742
          case 0: // SUCCESS
42743
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
42744
              {
4133 chandransh 42745
                org.apache.thrift.protocol.TList _list117 = iprot.readListBegin();
42746
                this.success = new ArrayList<ReturnOrder>(_list117.size);
42747
                for (int _i118 = 0; _i118 < _list117.size; ++_i118)
2690 chandransh 42748
                {
4133 chandransh 42749
                  ReturnOrder _elem119; // required
42750
                  _elem119 = new ReturnOrder();
42751
                  _elem119.read(iprot);
42752
                  this.success.add(_elem119);
2690 chandransh 42753
                }
3430 rajveer 42754
                iprot.readListEnd();
2690 chandransh 42755
              }
3430 rajveer 42756
            } else { 
42757
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42758
            }
42759
            break;
42760
          default:
42761
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 42762
        }
3430 rajveer 42763
        iprot.readFieldEnd();
2690 chandransh 42764
      }
42765
      iprot.readStructEnd();
42766
      validate();
42767
    }
42768
 
3430 rajveer 42769
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 42770
      oprot.writeStructBegin(STRUCT_DESC);
42771
 
42772
      if (this.isSetSuccess()) {
42773
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42774
        {
3430 rajveer 42775
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4133 chandransh 42776
          for (ReturnOrder _iter120 : this.success)
2690 chandransh 42777
          {
4133 chandransh 42778
            _iter120.write(oprot);
2690 chandransh 42779
          }
42780
          oprot.writeListEnd();
42781
        }
42782
        oprot.writeFieldEnd();
42783
      }
42784
      oprot.writeFieldStop();
42785
      oprot.writeStructEnd();
42786
    }
42787
 
42788
    @Override
42789
    public String toString() {
42790
      StringBuilder sb = new StringBuilder("getReturnOrders_result(");
42791
      boolean first = true;
42792
 
42793
      sb.append("success:");
42794
      if (this.success == null) {
42795
        sb.append("null");
42796
      } else {
42797
        sb.append(this.success);
42798
      }
42799
      first = false;
42800
      sb.append(")");
42801
      return sb.toString();
42802
    }
42803
 
3430 rajveer 42804
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 42805
      // check for required fields
42806
    }
42807
 
3430 rajveer 42808
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42809
      try {
42810
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42811
      } catch (org.apache.thrift.TException te) {
42812
        throw new java.io.IOException(te);
42813
      }
42814
    }
42815
 
42816
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42817
      try {
42818
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42819
      } catch (org.apache.thrift.TException te) {
42820
        throw new java.io.IOException(te);
42821
      }
42822
    }
42823
 
2690 chandransh 42824
  }
42825
 
3430 rajveer 42826
  public static class getReturnOrder_args implements org.apache.thrift.TBase<getReturnOrder_args, getReturnOrder_args._Fields>, java.io.Serializable, Cloneable   {
42827
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrder_args");
2700 chandransh 42828
 
3430 rajveer 42829
    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 42830
 
3430 rajveer 42831
    private long id; // required
2700 chandransh 42832
 
42833
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 42834
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2700 chandransh 42835
      ID((short)1, "id");
42836
 
42837
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42838
 
42839
      static {
42840
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42841
          byName.put(field.getFieldName(), field);
42842
        }
42843
      }
42844
 
42845
      /**
42846
       * Find the _Fields constant that matches fieldId, or null if its not found.
42847
       */
42848
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 42849
        switch(fieldId) {
42850
          case 1: // ID
42851
            return ID;
42852
          default:
42853
            return null;
42854
        }
2700 chandransh 42855
      }
42856
 
42857
      /**
42858
       * Find the _Fields constant that matches fieldId, throwing an exception
42859
       * if it is not found.
42860
       */
42861
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42862
        _Fields fields = findByThriftId(fieldId);
42863
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42864
        return fields;
42865
      }
42866
 
42867
      /**
42868
       * Find the _Fields constant that matches name, or null if its not found.
42869
       */
42870
      public static _Fields findByName(String name) {
42871
        return byName.get(name);
42872
      }
42873
 
42874
      private final short _thriftId;
42875
      private final String _fieldName;
42876
 
42877
      _Fields(short thriftId, String fieldName) {
42878
        _thriftId = thriftId;
42879
        _fieldName = fieldName;
42880
      }
42881
 
42882
      public short getThriftFieldId() {
42883
        return _thriftId;
42884
      }
42885
 
42886
      public String getFieldName() {
42887
        return _fieldName;
42888
      }
42889
    }
42890
 
42891
    // isset id assignments
42892
    private static final int __ID_ISSET_ID = 0;
42893
    private BitSet __isset_bit_vector = new BitSet(1);
42894
 
3430 rajveer 42895
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2700 chandransh 42896
    static {
3430 rajveer 42897
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42898
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42899
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42900
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42901
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrder_args.class, metaDataMap);
2700 chandransh 42902
    }
42903
 
42904
    public getReturnOrder_args() {
42905
    }
42906
 
42907
    public getReturnOrder_args(
42908
      long id)
42909
    {
42910
      this();
42911
      this.id = id;
42912
      setIdIsSet(true);
42913
    }
42914
 
42915
    /**
42916
     * Performs a deep copy on <i>other</i>.
42917
     */
42918
    public getReturnOrder_args(getReturnOrder_args other) {
42919
      __isset_bit_vector.clear();
42920
      __isset_bit_vector.or(other.__isset_bit_vector);
42921
      this.id = other.id;
42922
    }
42923
 
42924
    public getReturnOrder_args deepCopy() {
42925
      return new getReturnOrder_args(this);
42926
    }
42927
 
3430 rajveer 42928
    @Override
42929
    public void clear() {
42930
      setIdIsSet(false);
42931
      this.id = 0;
2700 chandransh 42932
    }
42933
 
42934
    public long getId() {
42935
      return this.id;
42936
    }
42937
 
3430 rajveer 42938
    public void setId(long id) {
2700 chandransh 42939
      this.id = id;
42940
      setIdIsSet(true);
42941
    }
42942
 
42943
    public void unsetId() {
42944
      __isset_bit_vector.clear(__ID_ISSET_ID);
42945
    }
42946
 
3430 rajveer 42947
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
2700 chandransh 42948
    public boolean isSetId() {
42949
      return __isset_bit_vector.get(__ID_ISSET_ID);
42950
    }
42951
 
42952
    public void setIdIsSet(boolean value) {
42953
      __isset_bit_vector.set(__ID_ISSET_ID, value);
42954
    }
42955
 
42956
    public void setFieldValue(_Fields field, Object value) {
42957
      switch (field) {
42958
      case ID:
42959
        if (value == null) {
42960
          unsetId();
42961
        } else {
42962
          setId((Long)value);
42963
        }
42964
        break;
42965
 
42966
      }
42967
    }
42968
 
42969
    public Object getFieldValue(_Fields field) {
42970
      switch (field) {
42971
      case ID:
3430 rajveer 42972
        return Long.valueOf(getId());
2700 chandransh 42973
 
42974
      }
42975
      throw new IllegalStateException();
42976
    }
42977
 
3430 rajveer 42978
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42979
    public boolean isSet(_Fields field) {
42980
      if (field == null) {
42981
        throw new IllegalArgumentException();
42982
      }
2700 chandransh 42983
 
42984
      switch (field) {
42985
      case ID:
42986
        return isSetId();
42987
      }
42988
      throw new IllegalStateException();
42989
    }
42990
 
42991
    @Override
42992
    public boolean equals(Object that) {
42993
      if (that == null)
42994
        return false;
42995
      if (that instanceof getReturnOrder_args)
42996
        return this.equals((getReturnOrder_args)that);
42997
      return false;
42998
    }
42999
 
43000
    public boolean equals(getReturnOrder_args that) {
43001
      if (that == null)
43002
        return false;
43003
 
43004
      boolean this_present_id = true;
43005
      boolean that_present_id = true;
43006
      if (this_present_id || that_present_id) {
43007
        if (!(this_present_id && that_present_id))
43008
          return false;
43009
        if (this.id != that.id)
43010
          return false;
43011
      }
43012
 
43013
      return true;
43014
    }
43015
 
43016
    @Override
43017
    public int hashCode() {
43018
      return 0;
43019
    }
43020
 
43021
    public int compareTo(getReturnOrder_args other) {
43022
      if (!getClass().equals(other.getClass())) {
43023
        return getClass().getName().compareTo(other.getClass().getName());
43024
      }
43025
 
43026
      int lastComparison = 0;
43027
      getReturnOrder_args typedOther = (getReturnOrder_args)other;
43028
 
3430 rajveer 43029
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
2700 chandransh 43030
      if (lastComparison != 0) {
43031
        return lastComparison;
43032
      }
3430 rajveer 43033
      if (isSetId()) {
43034
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
43035
        if (lastComparison != 0) {
43036
          return lastComparison;
43037
        }
2700 chandransh 43038
      }
43039
      return 0;
43040
    }
43041
 
3430 rajveer 43042
    public _Fields fieldForId(int fieldId) {
43043
      return _Fields.findByThriftId(fieldId);
43044
    }
43045
 
43046
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43047
      org.apache.thrift.protocol.TField field;
2700 chandransh 43048
      iprot.readStructBegin();
43049
      while (true)
43050
      {
43051
        field = iprot.readFieldBegin();
3430 rajveer 43052
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2700 chandransh 43053
          break;
43054
        }
3430 rajveer 43055
        switch (field.id) {
43056
          case 1: // ID
43057
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43058
              this.id = iprot.readI64();
43059
              setIdIsSet(true);
43060
            } else { 
43061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43062
            }
43063
            break;
43064
          default:
43065
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2700 chandransh 43066
        }
3430 rajveer 43067
        iprot.readFieldEnd();
2700 chandransh 43068
      }
43069
      iprot.readStructEnd();
43070
      validate();
43071
    }
43072
 
3430 rajveer 43073
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2700 chandransh 43074
      validate();
43075
 
43076
      oprot.writeStructBegin(STRUCT_DESC);
43077
      oprot.writeFieldBegin(ID_FIELD_DESC);
43078
      oprot.writeI64(this.id);
43079
      oprot.writeFieldEnd();
43080
      oprot.writeFieldStop();
43081
      oprot.writeStructEnd();
43082
    }
43083
 
43084
    @Override
43085
    public String toString() {
43086
      StringBuilder sb = new StringBuilder("getReturnOrder_args(");
43087
      boolean first = true;
43088
 
43089
      sb.append("id:");
43090
      sb.append(this.id);
43091
      first = false;
43092
      sb.append(")");
43093
      return sb.toString();
43094
    }
43095
 
3430 rajveer 43096
    public void validate() throws org.apache.thrift.TException {
2700 chandransh 43097
      // check for required fields
43098
    }
43099
 
3430 rajveer 43100
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43101
      try {
43102
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43103
      } catch (org.apache.thrift.TException te) {
43104
        throw new java.io.IOException(te);
43105
      }
43106
    }
43107
 
43108
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43109
      try {
43110
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43111
      } catch (org.apache.thrift.TException te) {
43112
        throw new java.io.IOException(te);
43113
      }
43114
    }
43115
 
2700 chandransh 43116
  }
43117
 
3430 rajveer 43118
  public static class getReturnOrder_result implements org.apache.thrift.TBase<getReturnOrder_result, getReturnOrder_result._Fields>, java.io.Serializable, Cloneable   {
43119
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrder_result");
2700 chandransh 43120
 
3430 rajveer 43121
    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);
43122
    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 43123
 
3430 rajveer 43124
    private ReturnOrder success; // required
43125
    private TransactionServiceException ex; // required
2700 chandransh 43126
 
43127
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43128
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2700 chandransh 43129
      SUCCESS((short)0, "success"),
43130
      EX((short)1, "ex");
43131
 
43132
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43133
 
43134
      static {
43135
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43136
          byName.put(field.getFieldName(), field);
43137
        }
43138
      }
43139
 
43140
      /**
43141
       * Find the _Fields constant that matches fieldId, or null if its not found.
43142
       */
43143
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43144
        switch(fieldId) {
43145
          case 0: // SUCCESS
43146
            return SUCCESS;
43147
          case 1: // EX
43148
            return EX;
43149
          default:
43150
            return null;
43151
        }
2700 chandransh 43152
      }
43153
 
43154
      /**
43155
       * Find the _Fields constant that matches fieldId, throwing an exception
43156
       * if it is not found.
43157
       */
43158
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43159
        _Fields fields = findByThriftId(fieldId);
43160
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43161
        return fields;
43162
      }
43163
 
43164
      /**
43165
       * Find the _Fields constant that matches name, or null if its not found.
43166
       */
43167
      public static _Fields findByName(String name) {
43168
        return byName.get(name);
43169
      }
43170
 
43171
      private final short _thriftId;
43172
      private final String _fieldName;
43173
 
43174
      _Fields(short thriftId, String fieldName) {
43175
        _thriftId = thriftId;
43176
        _fieldName = fieldName;
43177
      }
43178
 
43179
      public short getThriftFieldId() {
43180
        return _thriftId;
43181
      }
43182
 
43183
      public String getFieldName() {
43184
        return _fieldName;
43185
      }
43186
    }
43187
 
43188
    // isset id assignments
43189
 
3430 rajveer 43190
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2700 chandransh 43191
    static {
3430 rajveer 43192
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43193
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43194
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnOrder.class)));
43195
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43196
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
43197
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43198
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrder_result.class, metaDataMap);
2700 chandransh 43199
    }
43200
 
43201
    public getReturnOrder_result() {
43202
    }
43203
 
43204
    public getReturnOrder_result(
43205
      ReturnOrder success,
43206
      TransactionServiceException ex)
43207
    {
43208
      this();
43209
      this.success = success;
43210
      this.ex = ex;
43211
    }
43212
 
43213
    /**
43214
     * Performs a deep copy on <i>other</i>.
43215
     */
43216
    public getReturnOrder_result(getReturnOrder_result other) {
43217
      if (other.isSetSuccess()) {
43218
        this.success = new ReturnOrder(other.success);
43219
      }
43220
      if (other.isSetEx()) {
43221
        this.ex = new TransactionServiceException(other.ex);
43222
      }
43223
    }
43224
 
43225
    public getReturnOrder_result deepCopy() {
43226
      return new getReturnOrder_result(this);
43227
    }
43228
 
3430 rajveer 43229
    @Override
43230
    public void clear() {
43231
      this.success = null;
43232
      this.ex = null;
2700 chandransh 43233
    }
43234
 
43235
    public ReturnOrder getSuccess() {
43236
      return this.success;
43237
    }
43238
 
3430 rajveer 43239
    public void setSuccess(ReturnOrder success) {
2700 chandransh 43240
      this.success = success;
43241
    }
43242
 
43243
    public void unsetSuccess() {
43244
      this.success = null;
43245
    }
43246
 
3430 rajveer 43247
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2700 chandransh 43248
    public boolean isSetSuccess() {
43249
      return this.success != null;
43250
    }
43251
 
43252
    public void setSuccessIsSet(boolean value) {
43253
      if (!value) {
43254
        this.success = null;
43255
      }
43256
    }
43257
 
43258
    public TransactionServiceException getEx() {
43259
      return this.ex;
43260
    }
43261
 
3430 rajveer 43262
    public void setEx(TransactionServiceException ex) {
2700 chandransh 43263
      this.ex = ex;
43264
    }
43265
 
43266
    public void unsetEx() {
43267
      this.ex = null;
43268
    }
43269
 
3430 rajveer 43270
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2700 chandransh 43271
    public boolean isSetEx() {
43272
      return this.ex != null;
43273
    }
43274
 
43275
    public void setExIsSet(boolean value) {
43276
      if (!value) {
43277
        this.ex = null;
43278
      }
43279
    }
43280
 
43281
    public void setFieldValue(_Fields field, Object value) {
43282
      switch (field) {
43283
      case SUCCESS:
43284
        if (value == null) {
43285
          unsetSuccess();
43286
        } else {
43287
          setSuccess((ReturnOrder)value);
43288
        }
43289
        break;
43290
 
43291
      case EX:
43292
        if (value == null) {
43293
          unsetEx();
43294
        } else {
43295
          setEx((TransactionServiceException)value);
43296
        }
43297
        break;
43298
 
43299
      }
43300
    }
43301
 
43302
    public Object getFieldValue(_Fields field) {
43303
      switch (field) {
43304
      case SUCCESS:
43305
        return getSuccess();
43306
 
43307
      case EX:
43308
        return getEx();
43309
 
43310
      }
43311
      throw new IllegalStateException();
43312
    }
43313
 
3430 rajveer 43314
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43315
    public boolean isSet(_Fields field) {
43316
      if (field == null) {
43317
        throw new IllegalArgumentException();
43318
      }
2700 chandransh 43319
 
43320
      switch (field) {
43321
      case SUCCESS:
43322
        return isSetSuccess();
43323
      case EX:
43324
        return isSetEx();
43325
      }
43326
      throw new IllegalStateException();
43327
    }
43328
 
43329
    @Override
43330
    public boolean equals(Object that) {
43331
      if (that == null)
43332
        return false;
43333
      if (that instanceof getReturnOrder_result)
43334
        return this.equals((getReturnOrder_result)that);
43335
      return false;
43336
    }
43337
 
43338
    public boolean equals(getReturnOrder_result that) {
43339
      if (that == null)
43340
        return false;
43341
 
43342
      boolean this_present_success = true && this.isSetSuccess();
43343
      boolean that_present_success = true && that.isSetSuccess();
43344
      if (this_present_success || that_present_success) {
43345
        if (!(this_present_success && that_present_success))
43346
          return false;
43347
        if (!this.success.equals(that.success))
43348
          return false;
43349
      }
43350
 
43351
      boolean this_present_ex = true && this.isSetEx();
43352
      boolean that_present_ex = true && that.isSetEx();
43353
      if (this_present_ex || that_present_ex) {
43354
        if (!(this_present_ex && that_present_ex))
43355
          return false;
43356
        if (!this.ex.equals(that.ex))
43357
          return false;
43358
      }
43359
 
43360
      return true;
43361
    }
43362
 
43363
    @Override
43364
    public int hashCode() {
43365
      return 0;
43366
    }
43367
 
43368
    public int compareTo(getReturnOrder_result other) {
43369
      if (!getClass().equals(other.getClass())) {
43370
        return getClass().getName().compareTo(other.getClass().getName());
43371
      }
43372
 
43373
      int lastComparison = 0;
43374
      getReturnOrder_result typedOther = (getReturnOrder_result)other;
43375
 
3430 rajveer 43376
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2700 chandransh 43377
      if (lastComparison != 0) {
43378
        return lastComparison;
43379
      }
3430 rajveer 43380
      if (isSetSuccess()) {
43381
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
43382
        if (lastComparison != 0) {
43383
          return lastComparison;
43384
        }
2700 chandransh 43385
      }
3430 rajveer 43386
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2700 chandransh 43387
      if (lastComparison != 0) {
43388
        return lastComparison;
43389
      }
3430 rajveer 43390
      if (isSetEx()) {
43391
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
43392
        if (lastComparison != 0) {
43393
          return lastComparison;
43394
        }
2700 chandransh 43395
      }
43396
      return 0;
43397
    }
43398
 
3430 rajveer 43399
    public _Fields fieldForId(int fieldId) {
43400
      return _Fields.findByThriftId(fieldId);
43401
    }
43402
 
43403
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43404
      org.apache.thrift.protocol.TField field;
2700 chandransh 43405
      iprot.readStructBegin();
43406
      while (true)
43407
      {
43408
        field = iprot.readFieldBegin();
3430 rajveer 43409
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2700 chandransh 43410
          break;
43411
        }
3430 rajveer 43412
        switch (field.id) {
43413
          case 0: // SUCCESS
43414
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
43415
              this.success = new ReturnOrder();
43416
              this.success.read(iprot);
43417
            } else { 
43418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43419
            }
43420
            break;
43421
          case 1: // EX
43422
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
43423
              this.ex = new TransactionServiceException();
43424
              this.ex.read(iprot);
43425
            } else { 
43426
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43427
            }
43428
            break;
43429
          default:
43430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2700 chandransh 43431
        }
3430 rajveer 43432
        iprot.readFieldEnd();
2700 chandransh 43433
      }
43434
      iprot.readStructEnd();
43435
      validate();
43436
    }
43437
 
3430 rajveer 43438
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2700 chandransh 43439
      oprot.writeStructBegin(STRUCT_DESC);
43440
 
43441
      if (this.isSetSuccess()) {
43442
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43443
        this.success.write(oprot);
43444
        oprot.writeFieldEnd();
43445
      } else if (this.isSetEx()) {
43446
        oprot.writeFieldBegin(EX_FIELD_DESC);
43447
        this.ex.write(oprot);
43448
        oprot.writeFieldEnd();
43449
      }
43450
      oprot.writeFieldStop();
43451
      oprot.writeStructEnd();
43452
    }
43453
 
43454
    @Override
43455
    public String toString() {
43456
      StringBuilder sb = new StringBuilder("getReturnOrder_result(");
43457
      boolean first = true;
43458
 
43459
      sb.append("success:");
43460
      if (this.success == null) {
43461
        sb.append("null");
43462
      } else {
43463
        sb.append(this.success);
43464
      }
43465
      first = false;
43466
      if (!first) sb.append(", ");
43467
      sb.append("ex:");
43468
      if (this.ex == null) {
43469
        sb.append("null");
43470
      } else {
43471
        sb.append(this.ex);
43472
      }
43473
      first = false;
43474
      sb.append(")");
43475
      return sb.toString();
43476
    }
43477
 
3430 rajveer 43478
    public void validate() throws org.apache.thrift.TException {
2700 chandransh 43479
      // check for required fields
43480
    }
43481
 
3430 rajveer 43482
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43483
      try {
43484
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43485
      } catch (org.apache.thrift.TException te) {
43486
        throw new java.io.IOException(te);
43487
      }
43488
    }
43489
 
43490
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43491
      try {
43492
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43493
      } catch (org.apache.thrift.TException te) {
43494
        throw new java.io.IOException(te);
43495
      }
43496
    }
43497
 
2700 chandransh 43498
  }
43499
 
3430 rajveer 43500
  public static class processReturn_args implements org.apache.thrift.TBase<processReturn_args, processReturn_args._Fields>, java.io.Serializable, Cloneable   {
43501
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processReturn_args");
2690 chandransh 43502
 
3430 rajveer 43503
    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 43504
 
3430 rajveer 43505
    private long returnOrderId; // required
2690 chandransh 43506
 
43507
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43508
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 43509
      RETURN_ORDER_ID((short)1, "returnOrderId");
43510
 
43511
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43512
 
43513
      static {
43514
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43515
          byName.put(field.getFieldName(), field);
43516
        }
43517
      }
43518
 
43519
      /**
43520
       * Find the _Fields constant that matches fieldId, or null if its not found.
43521
       */
43522
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43523
        switch(fieldId) {
43524
          case 1: // RETURN_ORDER_ID
43525
            return RETURN_ORDER_ID;
43526
          default:
43527
            return null;
43528
        }
2690 chandransh 43529
      }
43530
 
43531
      /**
43532
       * Find the _Fields constant that matches fieldId, throwing an exception
43533
       * if it is not found.
43534
       */
43535
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43536
        _Fields fields = findByThriftId(fieldId);
43537
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43538
        return fields;
43539
      }
43540
 
43541
      /**
43542
       * Find the _Fields constant that matches name, or null if its not found.
43543
       */
43544
      public static _Fields findByName(String name) {
43545
        return byName.get(name);
43546
      }
43547
 
43548
      private final short _thriftId;
43549
      private final String _fieldName;
43550
 
43551
      _Fields(short thriftId, String fieldName) {
43552
        _thriftId = thriftId;
43553
        _fieldName = fieldName;
43554
      }
43555
 
43556
      public short getThriftFieldId() {
43557
        return _thriftId;
43558
      }
43559
 
43560
      public String getFieldName() {
43561
        return _fieldName;
43562
      }
43563
    }
43564
 
43565
    // isset id assignments
43566
    private static final int __RETURNORDERID_ISSET_ID = 0;
43567
    private BitSet __isset_bit_vector = new BitSet(1);
43568
 
3430 rajveer 43569
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 43570
    static {
3430 rajveer 43571
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43572
      tmpMap.put(_Fields.RETURN_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("returnOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43573
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43574
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43575
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processReturn_args.class, metaDataMap);
2690 chandransh 43576
    }
43577
 
43578
    public processReturn_args() {
43579
    }
43580
 
43581
    public processReturn_args(
43582
      long returnOrderId)
43583
    {
43584
      this();
43585
      this.returnOrderId = returnOrderId;
43586
      setReturnOrderIdIsSet(true);
43587
    }
43588
 
43589
    /**
43590
     * Performs a deep copy on <i>other</i>.
43591
     */
43592
    public processReturn_args(processReturn_args other) {
43593
      __isset_bit_vector.clear();
43594
      __isset_bit_vector.or(other.__isset_bit_vector);
43595
      this.returnOrderId = other.returnOrderId;
43596
    }
43597
 
43598
    public processReturn_args deepCopy() {
43599
      return new processReturn_args(this);
43600
    }
43601
 
3430 rajveer 43602
    @Override
43603
    public void clear() {
43604
      setReturnOrderIdIsSet(false);
43605
      this.returnOrderId = 0;
2690 chandransh 43606
    }
43607
 
43608
    public long getReturnOrderId() {
43609
      return this.returnOrderId;
43610
    }
43611
 
3430 rajveer 43612
    public void setReturnOrderId(long returnOrderId) {
2690 chandransh 43613
      this.returnOrderId = returnOrderId;
43614
      setReturnOrderIdIsSet(true);
43615
    }
43616
 
43617
    public void unsetReturnOrderId() {
43618
      __isset_bit_vector.clear(__RETURNORDERID_ISSET_ID);
43619
    }
43620
 
3430 rajveer 43621
    /** Returns true if field returnOrderId is set (has been assigned a value) and false otherwise */
2690 chandransh 43622
    public boolean isSetReturnOrderId() {
43623
      return __isset_bit_vector.get(__RETURNORDERID_ISSET_ID);
43624
    }
43625
 
43626
    public void setReturnOrderIdIsSet(boolean value) {
43627
      __isset_bit_vector.set(__RETURNORDERID_ISSET_ID, value);
43628
    }
43629
 
43630
    public void setFieldValue(_Fields field, Object value) {
43631
      switch (field) {
43632
      case RETURN_ORDER_ID:
43633
        if (value == null) {
43634
          unsetReturnOrderId();
43635
        } else {
43636
          setReturnOrderId((Long)value);
43637
        }
43638
        break;
43639
 
43640
      }
43641
    }
43642
 
43643
    public Object getFieldValue(_Fields field) {
43644
      switch (field) {
43645
      case RETURN_ORDER_ID:
3430 rajveer 43646
        return Long.valueOf(getReturnOrderId());
2690 chandransh 43647
 
43648
      }
43649
      throw new IllegalStateException();
43650
    }
43651
 
3430 rajveer 43652
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43653
    public boolean isSet(_Fields field) {
43654
      if (field == null) {
43655
        throw new IllegalArgumentException();
43656
      }
2690 chandransh 43657
 
43658
      switch (field) {
43659
      case RETURN_ORDER_ID:
43660
        return isSetReturnOrderId();
43661
      }
43662
      throw new IllegalStateException();
43663
    }
43664
 
43665
    @Override
43666
    public boolean equals(Object that) {
43667
      if (that == null)
43668
        return false;
43669
      if (that instanceof processReturn_args)
43670
        return this.equals((processReturn_args)that);
43671
      return false;
43672
    }
43673
 
43674
    public boolean equals(processReturn_args that) {
43675
      if (that == null)
43676
        return false;
43677
 
43678
      boolean this_present_returnOrderId = true;
43679
      boolean that_present_returnOrderId = true;
43680
      if (this_present_returnOrderId || that_present_returnOrderId) {
43681
        if (!(this_present_returnOrderId && that_present_returnOrderId))
43682
          return false;
43683
        if (this.returnOrderId != that.returnOrderId)
43684
          return false;
43685
      }
43686
 
43687
      return true;
43688
    }
43689
 
43690
    @Override
43691
    public int hashCode() {
43692
      return 0;
43693
    }
43694
 
43695
    public int compareTo(processReturn_args other) {
43696
      if (!getClass().equals(other.getClass())) {
43697
        return getClass().getName().compareTo(other.getClass().getName());
43698
      }
43699
 
43700
      int lastComparison = 0;
43701
      processReturn_args typedOther = (processReturn_args)other;
43702
 
3430 rajveer 43703
      lastComparison = Boolean.valueOf(isSetReturnOrderId()).compareTo(typedOther.isSetReturnOrderId());
2690 chandransh 43704
      if (lastComparison != 0) {
43705
        return lastComparison;
43706
      }
3430 rajveer 43707
      if (isSetReturnOrderId()) {
43708
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnOrderId, typedOther.returnOrderId);
43709
        if (lastComparison != 0) {
43710
          return lastComparison;
43711
        }
2690 chandransh 43712
      }
43713
      return 0;
43714
    }
43715
 
3430 rajveer 43716
    public _Fields fieldForId(int fieldId) {
43717
      return _Fields.findByThriftId(fieldId);
43718
    }
43719
 
43720
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43721
      org.apache.thrift.protocol.TField field;
2690 chandransh 43722
      iprot.readStructBegin();
43723
      while (true)
43724
      {
43725
        field = iprot.readFieldBegin();
3430 rajveer 43726
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 43727
          break;
43728
        }
3430 rajveer 43729
        switch (field.id) {
43730
          case 1: // RETURN_ORDER_ID
43731
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43732
              this.returnOrderId = iprot.readI64();
43733
              setReturnOrderIdIsSet(true);
43734
            } else { 
43735
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43736
            }
43737
            break;
43738
          default:
43739
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 43740
        }
3430 rajveer 43741
        iprot.readFieldEnd();
2690 chandransh 43742
      }
43743
      iprot.readStructEnd();
43744
      validate();
43745
    }
43746
 
3430 rajveer 43747
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 43748
      validate();
43749
 
43750
      oprot.writeStructBegin(STRUCT_DESC);
43751
      oprot.writeFieldBegin(RETURN_ORDER_ID_FIELD_DESC);
43752
      oprot.writeI64(this.returnOrderId);
43753
      oprot.writeFieldEnd();
43754
      oprot.writeFieldStop();
43755
      oprot.writeStructEnd();
43756
    }
43757
 
43758
    @Override
43759
    public String toString() {
43760
      StringBuilder sb = new StringBuilder("processReturn_args(");
43761
      boolean first = true;
43762
 
43763
      sb.append("returnOrderId:");
43764
      sb.append(this.returnOrderId);
43765
      first = false;
43766
      sb.append(")");
43767
      return sb.toString();
43768
    }
43769
 
3430 rajveer 43770
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 43771
      // check for required fields
43772
    }
43773
 
3430 rajveer 43774
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43775
      try {
43776
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43777
      } catch (org.apache.thrift.TException te) {
43778
        throw new java.io.IOException(te);
43779
      }
43780
    }
43781
 
43782
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43783
      try {
43784
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43785
      } catch (org.apache.thrift.TException te) {
43786
        throw new java.io.IOException(te);
43787
      }
43788
    }
43789
 
2690 chandransh 43790
  }
43791
 
3430 rajveer 43792
  public static class processReturn_result implements org.apache.thrift.TBase<processReturn_result, processReturn_result._Fields>, java.io.Serializable, Cloneable   {
43793
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processReturn_result");
2690 chandransh 43794
 
3430 rajveer 43795
    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 43796
 
3430 rajveer 43797
    private TransactionServiceException ex; // required
2690 chandransh 43798
 
43799
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43800
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 43801
      EX((short)1, "ex");
43802
 
43803
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43804
 
43805
      static {
43806
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43807
          byName.put(field.getFieldName(), field);
43808
        }
43809
      }
43810
 
43811
      /**
43812
       * Find the _Fields constant that matches fieldId, or null if its not found.
43813
       */
43814
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43815
        switch(fieldId) {
43816
          case 1: // EX
43817
            return EX;
43818
          default:
43819
            return null;
43820
        }
2690 chandransh 43821
      }
43822
 
43823
      /**
43824
       * Find the _Fields constant that matches fieldId, throwing an exception
43825
       * if it is not found.
43826
       */
43827
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43828
        _Fields fields = findByThriftId(fieldId);
43829
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43830
        return fields;
43831
      }
43832
 
43833
      /**
43834
       * Find the _Fields constant that matches name, or null if its not found.
43835
       */
43836
      public static _Fields findByName(String name) {
43837
        return byName.get(name);
43838
      }
43839
 
43840
      private final short _thriftId;
43841
      private final String _fieldName;
43842
 
43843
      _Fields(short thriftId, String fieldName) {
43844
        _thriftId = thriftId;
43845
        _fieldName = fieldName;
43846
      }
43847
 
43848
      public short getThriftFieldId() {
43849
        return _thriftId;
43850
      }
43851
 
43852
      public String getFieldName() {
43853
        return _fieldName;
43854
      }
43855
    }
43856
 
43857
    // isset id assignments
43858
 
3430 rajveer 43859
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 43860
    static {
3430 rajveer 43861
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43862
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43863
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
43864
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43865
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processReturn_result.class, metaDataMap);
2690 chandransh 43866
    }
43867
 
43868
    public processReturn_result() {
43869
    }
43870
 
43871
    public processReturn_result(
43872
      TransactionServiceException ex)
43873
    {
43874
      this();
43875
      this.ex = ex;
43876
    }
43877
 
43878
    /**
43879
     * Performs a deep copy on <i>other</i>.
43880
     */
43881
    public processReturn_result(processReturn_result other) {
43882
      if (other.isSetEx()) {
43883
        this.ex = new TransactionServiceException(other.ex);
43884
      }
43885
    }
43886
 
43887
    public processReturn_result deepCopy() {
43888
      return new processReturn_result(this);
43889
    }
43890
 
3430 rajveer 43891
    @Override
43892
    public void clear() {
43893
      this.ex = null;
2690 chandransh 43894
    }
43895
 
43896
    public TransactionServiceException getEx() {
43897
      return this.ex;
43898
    }
43899
 
3430 rajveer 43900
    public void setEx(TransactionServiceException ex) {
2690 chandransh 43901
      this.ex = ex;
43902
    }
43903
 
43904
    public void unsetEx() {
43905
      this.ex = null;
43906
    }
43907
 
3430 rajveer 43908
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2690 chandransh 43909
    public boolean isSetEx() {
43910
      return this.ex != null;
43911
    }
43912
 
43913
    public void setExIsSet(boolean value) {
43914
      if (!value) {
43915
        this.ex = null;
43916
      }
43917
    }
43918
 
43919
    public void setFieldValue(_Fields field, Object value) {
43920
      switch (field) {
43921
      case EX:
43922
        if (value == null) {
43923
          unsetEx();
43924
        } else {
43925
          setEx((TransactionServiceException)value);
43926
        }
43927
        break;
43928
 
43929
      }
43930
    }
43931
 
43932
    public Object getFieldValue(_Fields field) {
43933
      switch (field) {
43934
      case EX:
43935
        return getEx();
43936
 
43937
      }
43938
      throw new IllegalStateException();
43939
    }
43940
 
3430 rajveer 43941
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43942
    public boolean isSet(_Fields field) {
43943
      if (field == null) {
43944
        throw new IllegalArgumentException();
43945
      }
2690 chandransh 43946
 
43947
      switch (field) {
43948
      case EX:
43949
        return isSetEx();
43950
      }
43951
      throw new IllegalStateException();
43952
    }
43953
 
43954
    @Override
43955
    public boolean equals(Object that) {
43956
      if (that == null)
43957
        return false;
43958
      if (that instanceof processReturn_result)
43959
        return this.equals((processReturn_result)that);
43960
      return false;
43961
    }
43962
 
43963
    public boolean equals(processReturn_result that) {
43964
      if (that == null)
43965
        return false;
43966
 
43967
      boolean this_present_ex = true && this.isSetEx();
43968
      boolean that_present_ex = true && that.isSetEx();
43969
      if (this_present_ex || that_present_ex) {
43970
        if (!(this_present_ex && that_present_ex))
43971
          return false;
43972
        if (!this.ex.equals(that.ex))
43973
          return false;
43974
      }
43975
 
43976
      return true;
43977
    }
43978
 
43979
    @Override
43980
    public int hashCode() {
43981
      return 0;
43982
    }
43983
 
43984
    public int compareTo(processReturn_result other) {
43985
      if (!getClass().equals(other.getClass())) {
43986
        return getClass().getName().compareTo(other.getClass().getName());
43987
      }
43988
 
43989
      int lastComparison = 0;
43990
      processReturn_result typedOther = (processReturn_result)other;
43991
 
3430 rajveer 43992
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2690 chandransh 43993
      if (lastComparison != 0) {
43994
        return lastComparison;
43995
      }
3430 rajveer 43996
      if (isSetEx()) {
43997
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
43998
        if (lastComparison != 0) {
43999
          return lastComparison;
44000
        }
2690 chandransh 44001
      }
44002
      return 0;
44003
    }
44004
 
3430 rajveer 44005
    public _Fields fieldForId(int fieldId) {
44006
      return _Fields.findByThriftId(fieldId);
44007
    }
44008
 
44009
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44010
      org.apache.thrift.protocol.TField field;
2690 chandransh 44011
      iprot.readStructBegin();
44012
      while (true)
44013
      {
44014
        field = iprot.readFieldBegin();
3430 rajveer 44015
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 44016
          break;
44017
        }
3430 rajveer 44018
        switch (field.id) {
44019
          case 1: // EX
44020
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
44021
              this.ex = new TransactionServiceException();
44022
              this.ex.read(iprot);
44023
            } else { 
44024
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44025
            }
44026
            break;
44027
          default:
44028
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 44029
        }
3430 rajveer 44030
        iprot.readFieldEnd();
2690 chandransh 44031
      }
44032
      iprot.readStructEnd();
44033
      validate();
44034
    }
44035
 
3430 rajveer 44036
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 44037
      oprot.writeStructBegin(STRUCT_DESC);
44038
 
44039
      if (this.isSetEx()) {
44040
        oprot.writeFieldBegin(EX_FIELD_DESC);
44041
        this.ex.write(oprot);
44042
        oprot.writeFieldEnd();
44043
      }
44044
      oprot.writeFieldStop();
44045
      oprot.writeStructEnd();
44046
    }
44047
 
44048
    @Override
44049
    public String toString() {
44050
      StringBuilder sb = new StringBuilder("processReturn_result(");
44051
      boolean first = true;
44052
 
44053
      sb.append("ex:");
44054
      if (this.ex == null) {
44055
        sb.append("null");
44056
      } else {
44057
        sb.append(this.ex);
44058
      }
44059
      first = false;
44060
      sb.append(")");
44061
      return sb.toString();
44062
    }
44063
 
3430 rajveer 44064
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 44065
      // check for required fields
44066
    }
44067
 
3430 rajveer 44068
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44069
      try {
44070
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44071
      } catch (org.apache.thrift.TException te) {
44072
        throw new java.io.IOException(te);
44073
      }
44074
    }
44075
 
44076
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44077
      try {
44078
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44079
      } catch (org.apache.thrift.TException te) {
44080
        throw new java.io.IOException(te);
44081
      }
44082
    }
44083
 
2690 chandransh 44084
  }
44085
 
3430 rajveer 44086
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
44087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
2819 chandransh 44088
 
3430 rajveer 44089
    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 44090
 
3430 rajveer 44091
    private long warehouseId; // required
2819 chandransh 44092
 
44093
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 44094
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2819 chandransh 44095
      WAREHOUSE_ID((short)1, "warehouseId");
44096
 
44097
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44098
 
44099
      static {
44100
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44101
          byName.put(field.getFieldName(), field);
44102
        }
44103
      }
44104
 
44105
      /**
44106
       * Find the _Fields constant that matches fieldId, or null if its not found.
44107
       */
44108
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 44109
        switch(fieldId) {
44110
          case 1: // WAREHOUSE_ID
44111
            return WAREHOUSE_ID;
44112
          default:
44113
            return null;
44114
        }
2819 chandransh 44115
      }
44116
 
44117
      /**
44118
       * Find the _Fields constant that matches fieldId, throwing an exception
44119
       * if it is not found.
44120
       */
44121
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44122
        _Fields fields = findByThriftId(fieldId);
44123
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44124
        return fields;
44125
      }
44126
 
44127
      /**
44128
       * Find the _Fields constant that matches name, or null if its not found.
44129
       */
44130
      public static _Fields findByName(String name) {
44131
        return byName.get(name);
44132
      }
44133
 
44134
      private final short _thriftId;
44135
      private final String _fieldName;
44136
 
44137
      _Fields(short thriftId, String fieldName) {
44138
        _thriftId = thriftId;
44139
        _fieldName = fieldName;
44140
      }
44141
 
44142
      public short getThriftFieldId() {
44143
        return _thriftId;
44144
      }
44145
 
44146
      public String getFieldName() {
44147
        return _fieldName;
44148
      }
44149
    }
44150
 
44151
    // isset id assignments
44152
    private static final int __WAREHOUSEID_ISSET_ID = 0;
44153
    private BitSet __isset_bit_vector = new BitSet(1);
44154
 
3430 rajveer 44155
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2819 chandransh 44156
    static {
3430 rajveer 44157
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44158
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44159
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
44160
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44161
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_args.class, metaDataMap);
2819 chandransh 44162
    }
44163
 
44164
    public createPurchaseOrder_args() {
44165
    }
44166
 
44167
    public createPurchaseOrder_args(
44168
      long warehouseId)
44169
    {
44170
      this();
44171
      this.warehouseId = warehouseId;
44172
      setWarehouseIdIsSet(true);
44173
    }
44174
 
44175
    /**
44176
     * Performs a deep copy on <i>other</i>.
44177
     */
44178
    public createPurchaseOrder_args(createPurchaseOrder_args other) {
44179
      __isset_bit_vector.clear();
44180
      __isset_bit_vector.or(other.__isset_bit_vector);
44181
      this.warehouseId = other.warehouseId;
44182
    }
44183
 
44184
    public createPurchaseOrder_args deepCopy() {
44185
      return new createPurchaseOrder_args(this);
44186
    }
44187
 
3430 rajveer 44188
    @Override
44189
    public void clear() {
44190
      setWarehouseIdIsSet(false);
44191
      this.warehouseId = 0;
2819 chandransh 44192
    }
44193
 
44194
    public long getWarehouseId() {
44195
      return this.warehouseId;
44196
    }
44197
 
3430 rajveer 44198
    public void setWarehouseId(long warehouseId) {
2819 chandransh 44199
      this.warehouseId = warehouseId;
44200
      setWarehouseIdIsSet(true);
44201
    }
44202
 
44203
    public void unsetWarehouseId() {
44204
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
44205
    }
44206
 
3430 rajveer 44207
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
2819 chandransh 44208
    public boolean isSetWarehouseId() {
44209
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
44210
    }
44211
 
44212
    public void setWarehouseIdIsSet(boolean value) {
44213
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
44214
    }
44215
 
44216
    public void setFieldValue(_Fields field, Object value) {
44217
      switch (field) {
44218
      case WAREHOUSE_ID:
44219
        if (value == null) {
44220
          unsetWarehouseId();
44221
        } else {
44222
          setWarehouseId((Long)value);
44223
        }
44224
        break;
44225
 
44226
      }
44227
    }
44228
 
44229
    public Object getFieldValue(_Fields field) {
44230
      switch (field) {
44231
      case WAREHOUSE_ID:
3430 rajveer 44232
        return Long.valueOf(getWarehouseId());
2819 chandransh 44233
 
44234
      }
44235
      throw new IllegalStateException();
44236
    }
44237
 
3430 rajveer 44238
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44239
    public boolean isSet(_Fields field) {
44240
      if (field == null) {
44241
        throw new IllegalArgumentException();
44242
      }
2819 chandransh 44243
 
44244
      switch (field) {
44245
      case WAREHOUSE_ID:
44246
        return isSetWarehouseId();
44247
      }
44248
      throw new IllegalStateException();
44249
    }
44250
 
44251
    @Override
44252
    public boolean equals(Object that) {
44253
      if (that == null)
44254
        return false;
44255
      if (that instanceof createPurchaseOrder_args)
44256
        return this.equals((createPurchaseOrder_args)that);
44257
      return false;
44258
    }
44259
 
44260
    public boolean equals(createPurchaseOrder_args that) {
44261
      if (that == null)
44262
        return false;
44263
 
44264
      boolean this_present_warehouseId = true;
44265
      boolean that_present_warehouseId = true;
44266
      if (this_present_warehouseId || that_present_warehouseId) {
44267
        if (!(this_present_warehouseId && that_present_warehouseId))
44268
          return false;
44269
        if (this.warehouseId != that.warehouseId)
44270
          return false;
44271
      }
44272
 
44273
      return true;
44274
    }
44275
 
44276
    @Override
44277
    public int hashCode() {
44278
      return 0;
44279
    }
44280
 
44281
    public int compareTo(createPurchaseOrder_args other) {
44282
      if (!getClass().equals(other.getClass())) {
44283
        return getClass().getName().compareTo(other.getClass().getName());
44284
      }
44285
 
44286
      int lastComparison = 0;
44287
      createPurchaseOrder_args typedOther = (createPurchaseOrder_args)other;
44288
 
3430 rajveer 44289
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
2819 chandransh 44290
      if (lastComparison != 0) {
44291
        return lastComparison;
44292
      }
3430 rajveer 44293
      if (isSetWarehouseId()) {
44294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
44295
        if (lastComparison != 0) {
44296
          return lastComparison;
44297
        }
2819 chandransh 44298
      }
44299
      return 0;
44300
    }
44301
 
3430 rajveer 44302
    public _Fields fieldForId(int fieldId) {
44303
      return _Fields.findByThriftId(fieldId);
44304
    }
44305
 
44306
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44307
      org.apache.thrift.protocol.TField field;
2819 chandransh 44308
      iprot.readStructBegin();
44309
      while (true)
44310
      {
44311
        field = iprot.readFieldBegin();
3430 rajveer 44312
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2819 chandransh 44313
          break;
44314
        }
3430 rajveer 44315
        switch (field.id) {
44316
          case 1: // WAREHOUSE_ID
44317
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44318
              this.warehouseId = iprot.readI64();
44319
              setWarehouseIdIsSet(true);
44320
            } else { 
44321
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44322
            }
44323
            break;
44324
          default:
44325
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2819 chandransh 44326
        }
3430 rajveer 44327
        iprot.readFieldEnd();
2819 chandransh 44328
      }
44329
      iprot.readStructEnd();
44330
      validate();
44331
    }
44332
 
3430 rajveer 44333
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2819 chandransh 44334
      validate();
44335
 
44336
      oprot.writeStructBegin(STRUCT_DESC);
44337
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
44338
      oprot.writeI64(this.warehouseId);
44339
      oprot.writeFieldEnd();
44340
      oprot.writeFieldStop();
44341
      oprot.writeStructEnd();
44342
    }
44343
 
44344
    @Override
44345
    public String toString() {
44346
      StringBuilder sb = new StringBuilder("createPurchaseOrder_args(");
44347
      boolean first = true;
44348
 
44349
      sb.append("warehouseId:");
44350
      sb.append(this.warehouseId);
44351
      first = false;
44352
      sb.append(")");
44353
      return sb.toString();
44354
    }
44355
 
3430 rajveer 44356
    public void validate() throws org.apache.thrift.TException {
2819 chandransh 44357
      // check for required fields
44358
    }
44359
 
3430 rajveer 44360
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44361
      try {
44362
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44363
      } catch (org.apache.thrift.TException te) {
44364
        throw new java.io.IOException(te);
44365
      }
44366
    }
44367
 
44368
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44369
      try {
44370
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44371
      } catch (org.apache.thrift.TException te) {
44372
        throw new java.io.IOException(te);
44373
      }
44374
    }
44375
 
2819 chandransh 44376
  }
44377
 
3430 rajveer 44378
  public static class createPurchaseOrder_result implements org.apache.thrift.TBase<createPurchaseOrder_result, createPurchaseOrder_result._Fields>, java.io.Serializable, Cloneable   {
44379
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_result");
2819 chandransh 44380
 
3430 rajveer 44381
    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);
44382
    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 44383
 
3430 rajveer 44384
    private long success; // required
44385
    private TransactionServiceException ex; // required
2819 chandransh 44386
 
44387
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 44388
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2819 chandransh 44389
      SUCCESS((short)0, "success"),
44390
      EX((short)1, "ex");
44391
 
44392
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44393
 
44394
      static {
44395
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44396
          byName.put(field.getFieldName(), field);
44397
        }
44398
      }
44399
 
44400
      /**
44401
       * Find the _Fields constant that matches fieldId, or null if its not found.
44402
       */
44403
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 44404
        switch(fieldId) {
44405
          case 0: // SUCCESS
44406
            return SUCCESS;
44407
          case 1: // EX
44408
            return EX;
44409
          default:
44410
            return null;
44411
        }
2819 chandransh 44412
      }
44413
 
44414
      /**
44415
       * Find the _Fields constant that matches fieldId, throwing an exception
44416
       * if it is not found.
44417
       */
44418
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44419
        _Fields fields = findByThriftId(fieldId);
44420
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44421
        return fields;
44422
      }
44423
 
44424
      /**
44425
       * Find the _Fields constant that matches name, or null if its not found.
44426
       */
44427
      public static _Fields findByName(String name) {
44428
        return byName.get(name);
44429
      }
44430
 
44431
      private final short _thriftId;
44432
      private final String _fieldName;
44433
 
44434
      _Fields(short thriftId, String fieldName) {
44435
        _thriftId = thriftId;
44436
        _fieldName = fieldName;
44437
      }
44438
 
44439
      public short getThriftFieldId() {
44440
        return _thriftId;
44441
      }
44442
 
44443
      public String getFieldName() {
44444
        return _fieldName;
44445
      }
44446
    }
44447
 
44448
    // isset id assignments
44449
    private static final int __SUCCESS_ISSET_ID = 0;
44450
    private BitSet __isset_bit_vector = new BitSet(1);
44451
 
3430 rajveer 44452
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2819 chandransh 44453
    static {
3430 rajveer 44454
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44455
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44456
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
44457
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44458
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
44459
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44460
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_result.class, metaDataMap);
2819 chandransh 44461
    }
44462
 
44463
    public createPurchaseOrder_result() {
44464
    }
44465
 
44466
    public createPurchaseOrder_result(
44467
      long success,
44468
      TransactionServiceException ex)
44469
    {
44470
      this();
44471
      this.success = success;
44472
      setSuccessIsSet(true);
44473
      this.ex = ex;
44474
    }
44475
 
44476
    /**
44477
     * Performs a deep copy on <i>other</i>.
44478
     */
44479
    public createPurchaseOrder_result(createPurchaseOrder_result other) {
44480
      __isset_bit_vector.clear();
44481
      __isset_bit_vector.or(other.__isset_bit_vector);
44482
      this.success = other.success;
44483
      if (other.isSetEx()) {
44484
        this.ex = new TransactionServiceException(other.ex);
44485
      }
44486
    }
44487
 
44488
    public createPurchaseOrder_result deepCopy() {
44489
      return new createPurchaseOrder_result(this);
44490
    }
44491
 
3430 rajveer 44492
    @Override
44493
    public void clear() {
44494
      setSuccessIsSet(false);
44495
      this.success = 0;
44496
      this.ex = null;
2819 chandransh 44497
    }
44498
 
44499
    public long getSuccess() {
44500
      return this.success;
44501
    }
44502
 
3430 rajveer 44503
    public void setSuccess(long success) {
2819 chandransh 44504
      this.success = success;
44505
      setSuccessIsSet(true);
44506
    }
44507
 
44508
    public void unsetSuccess() {
44509
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
44510
    }
44511
 
3430 rajveer 44512
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2819 chandransh 44513
    public boolean isSetSuccess() {
44514
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
44515
    }
44516
 
44517
    public void setSuccessIsSet(boolean value) {
44518
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
44519
    }
44520
 
44521
    public TransactionServiceException getEx() {
44522
      return this.ex;
44523
    }
44524
 
3430 rajveer 44525
    public void setEx(TransactionServiceException ex) {
2819 chandransh 44526
      this.ex = ex;
44527
    }
44528
 
44529
    public void unsetEx() {
44530
      this.ex = null;
44531
    }
44532
 
3430 rajveer 44533
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2819 chandransh 44534
    public boolean isSetEx() {
44535
      return this.ex != null;
44536
    }
44537
 
44538
    public void setExIsSet(boolean value) {
44539
      if (!value) {
44540
        this.ex = null;
44541
      }
44542
    }
44543
 
44544
    public void setFieldValue(_Fields field, Object value) {
44545
      switch (field) {
44546
      case SUCCESS:
44547
        if (value == null) {
44548
          unsetSuccess();
44549
        } else {
44550
          setSuccess((Long)value);
44551
        }
44552
        break;
44553
 
44554
      case EX:
44555
        if (value == null) {
44556
          unsetEx();
44557
        } else {
44558
          setEx((TransactionServiceException)value);
44559
        }
44560
        break;
44561
 
44562
      }
44563
    }
44564
 
44565
    public Object getFieldValue(_Fields field) {
44566
      switch (field) {
44567
      case SUCCESS:
3430 rajveer 44568
        return Long.valueOf(getSuccess());
2819 chandransh 44569
 
44570
      case EX:
44571
        return getEx();
44572
 
44573
      }
44574
      throw new IllegalStateException();
44575
    }
44576
 
3430 rajveer 44577
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44578
    public boolean isSet(_Fields field) {
44579
      if (field == null) {
44580
        throw new IllegalArgumentException();
44581
      }
2819 chandransh 44582
 
44583
      switch (field) {
44584
      case SUCCESS:
44585
        return isSetSuccess();
44586
      case EX:
44587
        return isSetEx();
44588
      }
44589
      throw new IllegalStateException();
44590
    }
44591
 
44592
    @Override
44593
    public boolean equals(Object that) {
44594
      if (that == null)
44595
        return false;
44596
      if (that instanceof createPurchaseOrder_result)
44597
        return this.equals((createPurchaseOrder_result)that);
44598
      return false;
44599
    }
44600
 
44601
    public boolean equals(createPurchaseOrder_result that) {
44602
      if (that == null)
44603
        return false;
44604
 
44605
      boolean this_present_success = true;
44606
      boolean that_present_success = true;
44607
      if (this_present_success || that_present_success) {
44608
        if (!(this_present_success && that_present_success))
44609
          return false;
44610
        if (this.success != that.success)
44611
          return false;
44612
      }
44613
 
44614
      boolean this_present_ex = true && this.isSetEx();
44615
      boolean that_present_ex = true && that.isSetEx();
44616
      if (this_present_ex || that_present_ex) {
44617
        if (!(this_present_ex && that_present_ex))
44618
          return false;
44619
        if (!this.ex.equals(that.ex))
44620
          return false;
44621
      }
44622
 
44623
      return true;
44624
    }
44625
 
44626
    @Override
44627
    public int hashCode() {
44628
      return 0;
44629
    }
44630
 
44631
    public int compareTo(createPurchaseOrder_result other) {
44632
      if (!getClass().equals(other.getClass())) {
44633
        return getClass().getName().compareTo(other.getClass().getName());
44634
      }
44635
 
44636
      int lastComparison = 0;
44637
      createPurchaseOrder_result typedOther = (createPurchaseOrder_result)other;
44638
 
3430 rajveer 44639
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2819 chandransh 44640
      if (lastComparison != 0) {
44641
        return lastComparison;
44642
      }
3430 rajveer 44643
      if (isSetSuccess()) {
44644
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
44645
        if (lastComparison != 0) {
44646
          return lastComparison;
44647
        }
2819 chandransh 44648
      }
3430 rajveer 44649
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2819 chandransh 44650
      if (lastComparison != 0) {
44651
        return lastComparison;
44652
      }
3430 rajveer 44653
      if (isSetEx()) {
44654
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
44655
        if (lastComparison != 0) {
44656
          return lastComparison;
44657
        }
2819 chandransh 44658
      }
44659
      return 0;
44660
    }
44661
 
3430 rajveer 44662
    public _Fields fieldForId(int fieldId) {
44663
      return _Fields.findByThriftId(fieldId);
44664
    }
44665
 
44666
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44667
      org.apache.thrift.protocol.TField field;
2819 chandransh 44668
      iprot.readStructBegin();
44669
      while (true)
44670
      {
44671
        field = iprot.readFieldBegin();
3430 rajveer 44672
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2819 chandransh 44673
          break;
44674
        }
3430 rajveer 44675
        switch (field.id) {
44676
          case 0: // SUCCESS
44677
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44678
              this.success = iprot.readI64();
44679
              setSuccessIsSet(true);
44680
            } else { 
44681
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44682
            }
44683
            break;
44684
          case 1: // EX
44685
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
44686
              this.ex = new TransactionServiceException();
44687
              this.ex.read(iprot);
44688
            } else { 
44689
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44690
            }
44691
            break;
44692
          default:
44693
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2819 chandransh 44694
        }
3430 rajveer 44695
        iprot.readFieldEnd();
2819 chandransh 44696
      }
44697
      iprot.readStructEnd();
44698
      validate();
44699
    }
44700
 
3430 rajveer 44701
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2819 chandransh 44702
      oprot.writeStructBegin(STRUCT_DESC);
44703
 
44704
      if (this.isSetSuccess()) {
44705
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
44706
        oprot.writeI64(this.success);
44707
        oprot.writeFieldEnd();
44708
      } else if (this.isSetEx()) {
44709
        oprot.writeFieldBegin(EX_FIELD_DESC);
44710
        this.ex.write(oprot);
44711
        oprot.writeFieldEnd();
44712
      }
44713
      oprot.writeFieldStop();
44714
      oprot.writeStructEnd();
44715
    }
44716
 
44717
    @Override
44718
    public String toString() {
44719
      StringBuilder sb = new StringBuilder("createPurchaseOrder_result(");
44720
      boolean first = true;
44721
 
44722
      sb.append("success:");
44723
      sb.append(this.success);
44724
      first = false;
44725
      if (!first) sb.append(", ");
44726
      sb.append("ex:");
44727
      if (this.ex == null) {
44728
        sb.append("null");
44729
      } else {
44730
        sb.append(this.ex);
44731
      }
44732
      first = false;
44733
      sb.append(")");
44734
      return sb.toString();
44735
    }
44736
 
3430 rajveer 44737
    public void validate() throws org.apache.thrift.TException {
2819 chandransh 44738
      // check for required fields
44739
    }
44740
 
3430 rajveer 44741
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44742
      try {
44743
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44744
      } catch (org.apache.thrift.TException te) {
44745
        throw new java.io.IOException(te);
44746
      }
44747
    }
44748
 
44749
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44750
      try {
44751
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44752
      } catch (org.apache.thrift.TException te) {
44753
        throw new java.io.IOException(te);
44754
      }
44755
    }
44756
 
2819 chandransh 44757
  }
44758
 
3451 chandransh 44759
  public static class updateWeight_args implements org.apache.thrift.TBase<updateWeight_args, updateWeight_args._Fields>, java.io.Serializable, Cloneable   {
44760
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateWeight_args");
44761
 
44762
    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);
44763
    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);
44764
 
44765
    private long orderId; // required
44766
    private double weight; // required
44767
 
44768
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44769
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44770
      ORDER_ID((short)1, "orderId"),
44771
      WEIGHT((short)2, "weight");
44772
 
44773
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44774
 
44775
      static {
44776
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44777
          byName.put(field.getFieldName(), field);
44778
        }
44779
      }
44780
 
44781
      /**
44782
       * Find the _Fields constant that matches fieldId, or null if its not found.
44783
       */
44784
      public static _Fields findByThriftId(int fieldId) {
44785
        switch(fieldId) {
44786
          case 1: // ORDER_ID
44787
            return ORDER_ID;
44788
          case 2: // WEIGHT
44789
            return WEIGHT;
44790
          default:
44791
            return null;
44792
        }
44793
      }
44794
 
44795
      /**
44796
       * Find the _Fields constant that matches fieldId, throwing an exception
44797
       * if it is not found.
44798
       */
44799
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44800
        _Fields fields = findByThriftId(fieldId);
44801
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44802
        return fields;
44803
      }
44804
 
44805
      /**
44806
       * Find the _Fields constant that matches name, or null if its not found.
44807
       */
44808
      public static _Fields findByName(String name) {
44809
        return byName.get(name);
44810
      }
44811
 
44812
      private final short _thriftId;
44813
      private final String _fieldName;
44814
 
44815
      _Fields(short thriftId, String fieldName) {
44816
        _thriftId = thriftId;
44817
        _fieldName = fieldName;
44818
      }
44819
 
44820
      public short getThriftFieldId() {
44821
        return _thriftId;
44822
      }
44823
 
44824
      public String getFieldName() {
44825
        return _fieldName;
44826
      }
44827
    }
44828
 
44829
    // isset id assignments
44830
    private static final int __ORDERID_ISSET_ID = 0;
44831
    private static final int __WEIGHT_ISSET_ID = 1;
44832
    private BitSet __isset_bit_vector = new BitSet(2);
44833
 
44834
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44835
    static {
44836
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44837
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44838
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
44839
      tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44840
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
44841
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44842
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateWeight_args.class, metaDataMap);
44843
    }
44844
 
44845
    public updateWeight_args() {
44846
    }
44847
 
44848
    public updateWeight_args(
44849
      long orderId,
44850
      double weight)
44851
    {
44852
      this();
44853
      this.orderId = orderId;
44854
      setOrderIdIsSet(true);
44855
      this.weight = weight;
44856
      setWeightIsSet(true);
44857
    }
44858
 
44859
    /**
44860
     * Performs a deep copy on <i>other</i>.
44861
     */
44862
    public updateWeight_args(updateWeight_args other) {
44863
      __isset_bit_vector.clear();
44864
      __isset_bit_vector.or(other.__isset_bit_vector);
44865
      this.orderId = other.orderId;
44866
      this.weight = other.weight;
44867
    }
44868
 
44869
    public updateWeight_args deepCopy() {
44870
      return new updateWeight_args(this);
44871
    }
44872
 
44873
    @Override
44874
    public void clear() {
44875
      setOrderIdIsSet(false);
44876
      this.orderId = 0;
44877
      setWeightIsSet(false);
44878
      this.weight = 0.0;
44879
    }
44880
 
44881
    public long getOrderId() {
44882
      return this.orderId;
44883
    }
44884
 
44885
    public void setOrderId(long orderId) {
44886
      this.orderId = orderId;
44887
      setOrderIdIsSet(true);
44888
    }
44889
 
44890
    public void unsetOrderId() {
44891
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
44892
    }
44893
 
44894
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
44895
    public boolean isSetOrderId() {
44896
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
44897
    }
44898
 
44899
    public void setOrderIdIsSet(boolean value) {
44900
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
44901
    }
44902
 
44903
    public double getWeight() {
44904
      return this.weight;
44905
    }
44906
 
44907
    public void setWeight(double weight) {
44908
      this.weight = weight;
44909
      setWeightIsSet(true);
44910
    }
44911
 
44912
    public void unsetWeight() {
44913
      __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
44914
    }
44915
 
44916
    /** Returns true if field weight is set (has been assigned a value) and false otherwise */
44917
    public boolean isSetWeight() {
44918
      return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
44919
    }
44920
 
44921
    public void setWeightIsSet(boolean value) {
44922
      __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
44923
    }
44924
 
44925
    public void setFieldValue(_Fields field, Object value) {
44926
      switch (field) {
44927
      case ORDER_ID:
44928
        if (value == null) {
44929
          unsetOrderId();
44930
        } else {
44931
          setOrderId((Long)value);
44932
        }
44933
        break;
44934
 
44935
      case WEIGHT:
44936
        if (value == null) {
44937
          unsetWeight();
44938
        } else {
44939
          setWeight((Double)value);
44940
        }
44941
        break;
44942
 
44943
      }
44944
    }
44945
 
44946
    public Object getFieldValue(_Fields field) {
44947
      switch (field) {
44948
      case ORDER_ID:
44949
        return Long.valueOf(getOrderId());
44950
 
44951
      case WEIGHT:
44952
        return Double.valueOf(getWeight());
44953
 
44954
      }
44955
      throw new IllegalStateException();
44956
    }
44957
 
44958
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44959
    public boolean isSet(_Fields field) {
44960
      if (field == null) {
44961
        throw new IllegalArgumentException();
44962
      }
44963
 
44964
      switch (field) {
44965
      case ORDER_ID:
44966
        return isSetOrderId();
44967
      case WEIGHT:
44968
        return isSetWeight();
44969
      }
44970
      throw new IllegalStateException();
44971
    }
44972
 
44973
    @Override
44974
    public boolean equals(Object that) {
44975
      if (that == null)
44976
        return false;
44977
      if (that instanceof updateWeight_args)
44978
        return this.equals((updateWeight_args)that);
44979
      return false;
44980
    }
44981
 
44982
    public boolean equals(updateWeight_args that) {
44983
      if (that == null)
44984
        return false;
44985
 
44986
      boolean this_present_orderId = true;
44987
      boolean that_present_orderId = true;
44988
      if (this_present_orderId || that_present_orderId) {
44989
        if (!(this_present_orderId && that_present_orderId))
44990
          return false;
44991
        if (this.orderId != that.orderId)
44992
          return false;
44993
      }
44994
 
44995
      boolean this_present_weight = true;
44996
      boolean that_present_weight = true;
44997
      if (this_present_weight || that_present_weight) {
44998
        if (!(this_present_weight && that_present_weight))
44999
          return false;
45000
        if (this.weight != that.weight)
45001
          return false;
45002
      }
45003
 
45004
      return true;
45005
    }
45006
 
45007
    @Override
45008
    public int hashCode() {
45009
      return 0;
45010
    }
45011
 
45012
    public int compareTo(updateWeight_args other) {
45013
      if (!getClass().equals(other.getClass())) {
45014
        return getClass().getName().compareTo(other.getClass().getName());
45015
      }
45016
 
45017
      int lastComparison = 0;
45018
      updateWeight_args typedOther = (updateWeight_args)other;
45019
 
45020
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
45021
      if (lastComparison != 0) {
45022
        return lastComparison;
45023
      }
45024
      if (isSetOrderId()) {
45025
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
45026
        if (lastComparison != 0) {
45027
          return lastComparison;
45028
        }
45029
      }
45030
      lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
45031
      if (lastComparison != 0) {
45032
        return lastComparison;
45033
      }
45034
      if (isSetWeight()) {
45035
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
45036
        if (lastComparison != 0) {
45037
          return lastComparison;
45038
        }
45039
      }
45040
      return 0;
45041
    }
45042
 
45043
    public _Fields fieldForId(int fieldId) {
45044
      return _Fields.findByThriftId(fieldId);
45045
    }
45046
 
45047
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45048
      org.apache.thrift.protocol.TField field;
45049
      iprot.readStructBegin();
45050
      while (true)
45051
      {
45052
        field = iprot.readFieldBegin();
45053
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45054
          break;
45055
        }
45056
        switch (field.id) {
45057
          case 1: // ORDER_ID
45058
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45059
              this.orderId = iprot.readI64();
45060
              setOrderIdIsSet(true);
45061
            } else { 
45062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45063
            }
45064
            break;
45065
          case 2: // WEIGHT
45066
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
45067
              this.weight = iprot.readDouble();
45068
              setWeightIsSet(true);
45069
            } else { 
45070
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45071
            }
45072
            break;
45073
          default:
45074
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45075
        }
45076
        iprot.readFieldEnd();
45077
      }
45078
      iprot.readStructEnd();
45079
      validate();
45080
    }
45081
 
45082
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45083
      validate();
45084
 
45085
      oprot.writeStructBegin(STRUCT_DESC);
45086
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
45087
      oprot.writeI64(this.orderId);
45088
      oprot.writeFieldEnd();
45089
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
45090
      oprot.writeDouble(this.weight);
45091
      oprot.writeFieldEnd();
45092
      oprot.writeFieldStop();
45093
      oprot.writeStructEnd();
45094
    }
45095
 
45096
    @Override
45097
    public String toString() {
45098
      StringBuilder sb = new StringBuilder("updateWeight_args(");
45099
      boolean first = true;
45100
 
45101
      sb.append("orderId:");
45102
      sb.append(this.orderId);
45103
      first = false;
45104
      if (!first) sb.append(", ");
45105
      sb.append("weight:");
45106
      sb.append(this.weight);
45107
      first = false;
45108
      sb.append(")");
45109
      return sb.toString();
45110
    }
45111
 
45112
    public void validate() throws org.apache.thrift.TException {
45113
      // check for required fields
45114
    }
45115
 
45116
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45117
      try {
45118
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45119
      } catch (org.apache.thrift.TException te) {
45120
        throw new java.io.IOException(te);
45121
      }
45122
    }
45123
 
45124
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45125
      try {
45126
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45127
      } catch (org.apache.thrift.TException te) {
45128
        throw new java.io.IOException(te);
45129
      }
45130
    }
45131
 
45132
  }
45133
 
45134
  public static class updateWeight_result implements org.apache.thrift.TBase<updateWeight_result, updateWeight_result._Fields>, java.io.Serializable, Cloneable   {
45135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateWeight_result");
45136
 
45137
    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);
45138
    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);
45139
 
45140
    private Order success; // required
45141
    private TransactionServiceException ex; // required
45142
 
45143
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45144
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45145
      SUCCESS((short)0, "success"),
45146
      EX((short)1, "ex");
45147
 
45148
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45149
 
45150
      static {
45151
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45152
          byName.put(field.getFieldName(), field);
45153
        }
45154
      }
45155
 
45156
      /**
45157
       * Find the _Fields constant that matches fieldId, or null if its not found.
45158
       */
45159
      public static _Fields findByThriftId(int fieldId) {
45160
        switch(fieldId) {
45161
          case 0: // SUCCESS
45162
            return SUCCESS;
45163
          case 1: // EX
45164
            return EX;
45165
          default:
45166
            return null;
45167
        }
45168
      }
45169
 
45170
      /**
45171
       * Find the _Fields constant that matches fieldId, throwing an exception
45172
       * if it is not found.
45173
       */
45174
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45175
        _Fields fields = findByThriftId(fieldId);
45176
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45177
        return fields;
45178
      }
45179
 
45180
      /**
45181
       * Find the _Fields constant that matches name, or null if its not found.
45182
       */
45183
      public static _Fields findByName(String name) {
45184
        return byName.get(name);
45185
      }
45186
 
45187
      private final short _thriftId;
45188
      private final String _fieldName;
45189
 
45190
      _Fields(short thriftId, String fieldName) {
45191
        _thriftId = thriftId;
45192
        _fieldName = fieldName;
45193
      }
45194
 
45195
      public short getThriftFieldId() {
45196
        return _thriftId;
45197
      }
45198
 
45199
      public String getFieldName() {
45200
        return _fieldName;
45201
      }
45202
    }
45203
 
45204
    // isset id assignments
45205
 
45206
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45207
    static {
45208
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45209
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45210
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
45211
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45212
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
45213
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45214
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateWeight_result.class, metaDataMap);
45215
    }
45216
 
45217
    public updateWeight_result() {
45218
    }
45219
 
45220
    public updateWeight_result(
45221
      Order success,
45222
      TransactionServiceException ex)
45223
    {
45224
      this();
45225
      this.success = success;
45226
      this.ex = ex;
45227
    }
45228
 
45229
    /**
45230
     * Performs a deep copy on <i>other</i>.
45231
     */
45232
    public updateWeight_result(updateWeight_result other) {
45233
      if (other.isSetSuccess()) {
45234
        this.success = new Order(other.success);
45235
      }
45236
      if (other.isSetEx()) {
45237
        this.ex = new TransactionServiceException(other.ex);
45238
      }
45239
    }
45240
 
45241
    public updateWeight_result deepCopy() {
45242
      return new updateWeight_result(this);
45243
    }
45244
 
45245
    @Override
45246
    public void clear() {
45247
      this.success = null;
45248
      this.ex = null;
45249
    }
45250
 
45251
    public Order getSuccess() {
45252
      return this.success;
45253
    }
45254
 
45255
    public void setSuccess(Order success) {
45256
      this.success = success;
45257
    }
45258
 
45259
    public void unsetSuccess() {
45260
      this.success = null;
45261
    }
45262
 
45263
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
45264
    public boolean isSetSuccess() {
45265
      return this.success != null;
45266
    }
45267
 
45268
    public void setSuccessIsSet(boolean value) {
45269
      if (!value) {
45270
        this.success = null;
45271
      }
45272
    }
45273
 
45274
    public TransactionServiceException getEx() {
45275
      return this.ex;
45276
    }
45277
 
45278
    public void setEx(TransactionServiceException ex) {
45279
      this.ex = ex;
45280
    }
45281
 
45282
    public void unsetEx() {
45283
      this.ex = null;
45284
    }
45285
 
45286
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
45287
    public boolean isSetEx() {
45288
      return this.ex != null;
45289
    }
45290
 
45291
    public void setExIsSet(boolean value) {
45292
      if (!value) {
45293
        this.ex = null;
45294
      }
45295
    }
45296
 
45297
    public void setFieldValue(_Fields field, Object value) {
45298
      switch (field) {
45299
      case SUCCESS:
45300
        if (value == null) {
45301
          unsetSuccess();
45302
        } else {
45303
          setSuccess((Order)value);
45304
        }
45305
        break;
45306
 
45307
      case EX:
45308
        if (value == null) {
45309
          unsetEx();
45310
        } else {
45311
          setEx((TransactionServiceException)value);
45312
        }
45313
        break;
45314
 
45315
      }
45316
    }
45317
 
45318
    public Object getFieldValue(_Fields field) {
45319
      switch (field) {
45320
      case SUCCESS:
45321
        return getSuccess();
45322
 
45323
      case EX:
45324
        return getEx();
45325
 
45326
      }
45327
      throw new IllegalStateException();
45328
    }
45329
 
45330
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45331
    public boolean isSet(_Fields field) {
45332
      if (field == null) {
45333
        throw new IllegalArgumentException();
45334
      }
45335
 
45336
      switch (field) {
45337
      case SUCCESS:
45338
        return isSetSuccess();
45339
      case EX:
45340
        return isSetEx();
45341
      }
45342
      throw new IllegalStateException();
45343
    }
45344
 
45345
    @Override
45346
    public boolean equals(Object that) {
45347
      if (that == null)
45348
        return false;
45349
      if (that instanceof updateWeight_result)
45350
        return this.equals((updateWeight_result)that);
45351
      return false;
45352
    }
45353
 
45354
    public boolean equals(updateWeight_result that) {
45355
      if (that == null)
45356
        return false;
45357
 
45358
      boolean this_present_success = true && this.isSetSuccess();
45359
      boolean that_present_success = true && that.isSetSuccess();
45360
      if (this_present_success || that_present_success) {
45361
        if (!(this_present_success && that_present_success))
45362
          return false;
45363
        if (!this.success.equals(that.success))
45364
          return false;
45365
      }
45366
 
45367
      boolean this_present_ex = true && this.isSetEx();
45368
      boolean that_present_ex = true && that.isSetEx();
45369
      if (this_present_ex || that_present_ex) {
45370
        if (!(this_present_ex && that_present_ex))
45371
          return false;
45372
        if (!this.ex.equals(that.ex))
45373
          return false;
45374
      }
45375
 
45376
      return true;
45377
    }
45378
 
45379
    @Override
45380
    public int hashCode() {
45381
      return 0;
45382
    }
45383
 
45384
    public int compareTo(updateWeight_result other) {
45385
      if (!getClass().equals(other.getClass())) {
45386
        return getClass().getName().compareTo(other.getClass().getName());
45387
      }
45388
 
45389
      int lastComparison = 0;
45390
      updateWeight_result typedOther = (updateWeight_result)other;
45391
 
45392
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
45393
      if (lastComparison != 0) {
45394
        return lastComparison;
45395
      }
45396
      if (isSetSuccess()) {
45397
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
45398
        if (lastComparison != 0) {
45399
          return lastComparison;
45400
        }
45401
      }
45402
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
45403
      if (lastComparison != 0) {
45404
        return lastComparison;
45405
      }
45406
      if (isSetEx()) {
45407
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
45408
        if (lastComparison != 0) {
45409
          return lastComparison;
45410
        }
45411
      }
45412
      return 0;
45413
    }
45414
 
45415
    public _Fields fieldForId(int fieldId) {
45416
      return _Fields.findByThriftId(fieldId);
45417
    }
45418
 
45419
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45420
      org.apache.thrift.protocol.TField field;
45421
      iprot.readStructBegin();
45422
      while (true)
45423
      {
45424
        field = iprot.readFieldBegin();
45425
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45426
          break;
45427
        }
45428
        switch (field.id) {
45429
          case 0: // SUCCESS
45430
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
45431
              this.success = new Order();
45432
              this.success.read(iprot);
45433
            } else { 
45434
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45435
            }
45436
            break;
45437
          case 1: // EX
45438
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
45439
              this.ex = new TransactionServiceException();
45440
              this.ex.read(iprot);
45441
            } else { 
45442
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45443
            }
45444
            break;
45445
          default:
45446
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45447
        }
45448
        iprot.readFieldEnd();
45449
      }
45450
      iprot.readStructEnd();
45451
      validate();
45452
    }
45453
 
45454
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45455
      oprot.writeStructBegin(STRUCT_DESC);
45456
 
45457
      if (this.isSetSuccess()) {
45458
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
45459
        this.success.write(oprot);
45460
        oprot.writeFieldEnd();
45461
      } else if (this.isSetEx()) {
45462
        oprot.writeFieldBegin(EX_FIELD_DESC);
45463
        this.ex.write(oprot);
45464
        oprot.writeFieldEnd();
45465
      }
45466
      oprot.writeFieldStop();
45467
      oprot.writeStructEnd();
45468
    }
45469
 
45470
    @Override
45471
    public String toString() {
45472
      StringBuilder sb = new StringBuilder("updateWeight_result(");
45473
      boolean first = true;
45474
 
45475
      sb.append("success:");
45476
      if (this.success == null) {
45477
        sb.append("null");
45478
      } else {
45479
        sb.append(this.success);
45480
      }
45481
      first = false;
45482
      if (!first) sb.append(", ");
45483
      sb.append("ex:");
45484
      if (this.ex == null) {
45485
        sb.append("null");
45486
      } else {
45487
        sb.append(this.ex);
45488
      }
45489
      first = false;
45490
      sb.append(")");
45491
      return sb.toString();
45492
    }
45493
 
45494
    public void validate() throws org.apache.thrift.TException {
45495
      // check for required fields
45496
    }
45497
 
45498
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45499
      try {
45500
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45501
      } catch (org.apache.thrift.TException te) {
45502
        throw new java.io.IOException(te);
45503
      }
45504
    }
45505
 
45506
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45507
      try {
45508
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45509
      } catch (org.apache.thrift.TException te) {
45510
        throw new java.io.IOException(te);
45511
      }
45512
    }
45513
 
45514
  }
45515
 
3469 chandransh 45516
  public static class changeItem_args implements org.apache.thrift.TBase<changeItem_args, changeItem_args._Fields>, java.io.Serializable, Cloneable   {
45517
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItem_args");
45518
 
45519
    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);
45520
    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);
45521
 
45522
    private long orderId; // required
45523
    private long itemId; // required
45524
 
45525
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45526
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45527
      ORDER_ID((short)1, "orderId"),
45528
      ITEM_ID((short)2, "itemId");
45529
 
45530
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45531
 
45532
      static {
45533
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45534
          byName.put(field.getFieldName(), field);
45535
        }
45536
      }
45537
 
45538
      /**
45539
       * Find the _Fields constant that matches fieldId, or null if its not found.
45540
       */
45541
      public static _Fields findByThriftId(int fieldId) {
45542
        switch(fieldId) {
45543
          case 1: // ORDER_ID
45544
            return ORDER_ID;
45545
          case 2: // ITEM_ID
45546
            return ITEM_ID;
45547
          default:
45548
            return null;
45549
        }
45550
      }
45551
 
45552
      /**
45553
       * Find the _Fields constant that matches fieldId, throwing an exception
45554
       * if it is not found.
45555
       */
45556
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45557
        _Fields fields = findByThriftId(fieldId);
45558
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45559
        return fields;
45560
      }
45561
 
45562
      /**
45563
       * Find the _Fields constant that matches name, or null if its not found.
45564
       */
45565
      public static _Fields findByName(String name) {
45566
        return byName.get(name);
45567
      }
45568
 
45569
      private final short _thriftId;
45570
      private final String _fieldName;
45571
 
45572
      _Fields(short thriftId, String fieldName) {
45573
        _thriftId = thriftId;
45574
        _fieldName = fieldName;
45575
      }
45576
 
45577
      public short getThriftFieldId() {
45578
        return _thriftId;
45579
      }
45580
 
45581
      public String getFieldName() {
45582
        return _fieldName;
45583
      }
45584
    }
45585
 
45586
    // isset id assignments
45587
    private static final int __ORDERID_ISSET_ID = 0;
45588
    private static final int __ITEMID_ISSET_ID = 1;
45589
    private BitSet __isset_bit_vector = new BitSet(2);
45590
 
45591
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45592
    static {
45593
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45594
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45595
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45596
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45597
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45598
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45599
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItem_args.class, metaDataMap);
45600
    }
45601
 
45602
    public changeItem_args() {
45603
    }
45604
 
45605
    public changeItem_args(
45606
      long orderId,
45607
      long itemId)
45608
    {
45609
      this();
45610
      this.orderId = orderId;
45611
      setOrderIdIsSet(true);
45612
      this.itemId = itemId;
45613
      setItemIdIsSet(true);
45614
    }
45615
 
45616
    /**
45617
     * Performs a deep copy on <i>other</i>.
45618
     */
45619
    public changeItem_args(changeItem_args other) {
45620
      __isset_bit_vector.clear();
45621
      __isset_bit_vector.or(other.__isset_bit_vector);
45622
      this.orderId = other.orderId;
45623
      this.itemId = other.itemId;
45624
    }
45625
 
45626
    public changeItem_args deepCopy() {
45627
      return new changeItem_args(this);
45628
    }
45629
 
45630
    @Override
45631
    public void clear() {
45632
      setOrderIdIsSet(false);
45633
      this.orderId = 0;
45634
      setItemIdIsSet(false);
45635
      this.itemId = 0;
45636
    }
45637
 
45638
    public long getOrderId() {
45639
      return this.orderId;
45640
    }
45641
 
45642
    public void setOrderId(long orderId) {
45643
      this.orderId = orderId;
45644
      setOrderIdIsSet(true);
45645
    }
45646
 
45647
    public void unsetOrderId() {
45648
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
45649
    }
45650
 
45651
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
45652
    public boolean isSetOrderId() {
45653
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
45654
    }
45655
 
45656
    public void setOrderIdIsSet(boolean value) {
45657
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
45658
    }
45659
 
45660
    public long getItemId() {
45661
      return this.itemId;
45662
    }
45663
 
45664
    public void setItemId(long itemId) {
45665
      this.itemId = itemId;
45666
      setItemIdIsSet(true);
45667
    }
45668
 
45669
    public void unsetItemId() {
45670
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
45671
    }
45672
 
45673
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
45674
    public boolean isSetItemId() {
45675
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
45676
    }
45677
 
45678
    public void setItemIdIsSet(boolean value) {
45679
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
45680
    }
45681
 
45682
    public void setFieldValue(_Fields field, Object value) {
45683
      switch (field) {
45684
      case ORDER_ID:
45685
        if (value == null) {
45686
          unsetOrderId();
45687
        } else {
45688
          setOrderId((Long)value);
45689
        }
45690
        break;
45691
 
45692
      case ITEM_ID:
45693
        if (value == null) {
45694
          unsetItemId();
45695
        } else {
45696
          setItemId((Long)value);
45697
        }
45698
        break;
45699
 
45700
      }
45701
    }
45702
 
45703
    public Object getFieldValue(_Fields field) {
45704
      switch (field) {
45705
      case ORDER_ID:
45706
        return Long.valueOf(getOrderId());
45707
 
45708
      case ITEM_ID:
45709
        return Long.valueOf(getItemId());
45710
 
45711
      }
45712
      throw new IllegalStateException();
45713
    }
45714
 
45715
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45716
    public boolean isSet(_Fields field) {
45717
      if (field == null) {
45718
        throw new IllegalArgumentException();
45719
      }
45720
 
45721
      switch (field) {
45722
      case ORDER_ID:
45723
        return isSetOrderId();
45724
      case ITEM_ID:
45725
        return isSetItemId();
45726
      }
45727
      throw new IllegalStateException();
45728
    }
45729
 
45730
    @Override
45731
    public boolean equals(Object that) {
45732
      if (that == null)
45733
        return false;
45734
      if (that instanceof changeItem_args)
45735
        return this.equals((changeItem_args)that);
45736
      return false;
45737
    }
45738
 
45739
    public boolean equals(changeItem_args that) {
45740
      if (that == null)
45741
        return false;
45742
 
45743
      boolean this_present_orderId = true;
45744
      boolean that_present_orderId = true;
45745
      if (this_present_orderId || that_present_orderId) {
45746
        if (!(this_present_orderId && that_present_orderId))
45747
          return false;
45748
        if (this.orderId != that.orderId)
45749
          return false;
45750
      }
45751
 
45752
      boolean this_present_itemId = true;
45753
      boolean that_present_itemId = true;
45754
      if (this_present_itemId || that_present_itemId) {
45755
        if (!(this_present_itemId && that_present_itemId))
45756
          return false;
45757
        if (this.itemId != that.itemId)
45758
          return false;
45759
      }
45760
 
45761
      return true;
45762
    }
45763
 
45764
    @Override
45765
    public int hashCode() {
45766
      return 0;
45767
    }
45768
 
45769
    public int compareTo(changeItem_args other) {
45770
      if (!getClass().equals(other.getClass())) {
45771
        return getClass().getName().compareTo(other.getClass().getName());
45772
      }
45773
 
45774
      int lastComparison = 0;
45775
      changeItem_args typedOther = (changeItem_args)other;
45776
 
45777
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
45778
      if (lastComparison != 0) {
45779
        return lastComparison;
45780
      }
45781
      if (isSetOrderId()) {
45782
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
45783
        if (lastComparison != 0) {
45784
          return lastComparison;
45785
        }
45786
      }
45787
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
45788
      if (lastComparison != 0) {
45789
        return lastComparison;
45790
      }
45791
      if (isSetItemId()) {
45792
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
45793
        if (lastComparison != 0) {
45794
          return lastComparison;
45795
        }
45796
      }
45797
      return 0;
45798
    }
45799
 
45800
    public _Fields fieldForId(int fieldId) {
45801
      return _Fields.findByThriftId(fieldId);
45802
    }
45803
 
45804
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45805
      org.apache.thrift.protocol.TField field;
45806
      iprot.readStructBegin();
45807
      while (true)
45808
      {
45809
        field = iprot.readFieldBegin();
45810
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45811
          break;
45812
        }
45813
        switch (field.id) {
45814
          case 1: // ORDER_ID
45815
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45816
              this.orderId = iprot.readI64();
45817
              setOrderIdIsSet(true);
45818
            } else { 
45819
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45820
            }
45821
            break;
45822
          case 2: // ITEM_ID
45823
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45824
              this.itemId = iprot.readI64();
45825
              setItemIdIsSet(true);
45826
            } else { 
45827
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45828
            }
45829
            break;
45830
          default:
45831
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45832
        }
45833
        iprot.readFieldEnd();
45834
      }
45835
      iprot.readStructEnd();
45836
      validate();
45837
    }
45838
 
45839
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45840
      validate();
45841
 
45842
      oprot.writeStructBegin(STRUCT_DESC);
45843
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
45844
      oprot.writeI64(this.orderId);
45845
      oprot.writeFieldEnd();
45846
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
45847
      oprot.writeI64(this.itemId);
45848
      oprot.writeFieldEnd();
45849
      oprot.writeFieldStop();
45850
      oprot.writeStructEnd();
45851
    }
45852
 
45853
    @Override
45854
    public String toString() {
45855
      StringBuilder sb = new StringBuilder("changeItem_args(");
45856
      boolean first = true;
45857
 
45858
      sb.append("orderId:");
45859
      sb.append(this.orderId);
45860
      first = false;
45861
      if (!first) sb.append(", ");
45862
      sb.append("itemId:");
45863
      sb.append(this.itemId);
45864
      first = false;
45865
      sb.append(")");
45866
      return sb.toString();
45867
    }
45868
 
45869
    public void validate() throws org.apache.thrift.TException {
45870
      // check for required fields
45871
    }
45872
 
45873
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45874
      try {
45875
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45876
      } catch (org.apache.thrift.TException te) {
45877
        throw new java.io.IOException(te);
45878
      }
45879
    }
45880
 
45881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45882
      try {
45883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45884
      } catch (org.apache.thrift.TException te) {
45885
        throw new java.io.IOException(te);
45886
      }
45887
    }
45888
 
45889
  }
45890
 
45891
  public static class changeItem_result implements org.apache.thrift.TBase<changeItem_result, changeItem_result._Fields>, java.io.Serializable, Cloneable   {
45892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItem_result");
45893
 
45894
    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);
45895
    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);
45896
 
45897
    private Order success; // required
45898
    private TransactionServiceException ex; // required
45899
 
45900
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45901
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45902
      SUCCESS((short)0, "success"),
45903
      EX((short)1, "ex");
45904
 
45905
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45906
 
45907
      static {
45908
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45909
          byName.put(field.getFieldName(), field);
45910
        }
45911
      }
45912
 
45913
      /**
45914
       * Find the _Fields constant that matches fieldId, or null if its not found.
45915
       */
45916
      public static _Fields findByThriftId(int fieldId) {
45917
        switch(fieldId) {
45918
          case 0: // SUCCESS
45919
            return SUCCESS;
45920
          case 1: // EX
45921
            return EX;
45922
          default:
45923
            return null;
45924
        }
45925
      }
45926
 
45927
      /**
45928
       * Find the _Fields constant that matches fieldId, throwing an exception
45929
       * if it is not found.
45930
       */
45931
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45932
        _Fields fields = findByThriftId(fieldId);
45933
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45934
        return fields;
45935
      }
45936
 
45937
      /**
45938
       * Find the _Fields constant that matches name, or null if its not found.
45939
       */
45940
      public static _Fields findByName(String name) {
45941
        return byName.get(name);
45942
      }
45943
 
45944
      private final short _thriftId;
45945
      private final String _fieldName;
45946
 
45947
      _Fields(short thriftId, String fieldName) {
45948
        _thriftId = thriftId;
45949
        _fieldName = fieldName;
45950
      }
45951
 
45952
      public short getThriftFieldId() {
45953
        return _thriftId;
45954
      }
45955
 
45956
      public String getFieldName() {
45957
        return _fieldName;
45958
      }
45959
    }
45960
 
45961
    // isset id assignments
45962
 
45963
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45964
    static {
45965
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45966
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45967
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
45968
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45969
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
45970
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45971
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItem_result.class, metaDataMap);
45972
    }
45973
 
45974
    public changeItem_result() {
45975
    }
45976
 
45977
    public changeItem_result(
45978
      Order success,
45979
      TransactionServiceException ex)
45980
    {
45981
      this();
45982
      this.success = success;
45983
      this.ex = ex;
45984
    }
45985
 
45986
    /**
45987
     * Performs a deep copy on <i>other</i>.
45988
     */
45989
    public changeItem_result(changeItem_result other) {
45990
      if (other.isSetSuccess()) {
45991
        this.success = new Order(other.success);
45992
      }
45993
      if (other.isSetEx()) {
45994
        this.ex = new TransactionServiceException(other.ex);
45995
      }
45996
    }
45997
 
45998
    public changeItem_result deepCopy() {
45999
      return new changeItem_result(this);
46000
    }
46001
 
46002
    @Override
46003
    public void clear() {
46004
      this.success = null;
46005
      this.ex = null;
46006
    }
46007
 
46008
    public Order getSuccess() {
46009
      return this.success;
46010
    }
46011
 
46012
    public void setSuccess(Order success) {
46013
      this.success = success;
46014
    }
46015
 
46016
    public void unsetSuccess() {
46017
      this.success = null;
46018
    }
46019
 
46020
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
46021
    public boolean isSetSuccess() {
46022
      return this.success != null;
46023
    }
46024
 
46025
    public void setSuccessIsSet(boolean value) {
46026
      if (!value) {
46027
        this.success = null;
46028
      }
46029
    }
46030
 
46031
    public TransactionServiceException getEx() {
46032
      return this.ex;
46033
    }
46034
 
46035
    public void setEx(TransactionServiceException ex) {
46036
      this.ex = ex;
46037
    }
46038
 
46039
    public void unsetEx() {
46040
      this.ex = null;
46041
    }
46042
 
46043
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
46044
    public boolean isSetEx() {
46045
      return this.ex != null;
46046
    }
46047
 
46048
    public void setExIsSet(boolean value) {
46049
      if (!value) {
46050
        this.ex = null;
46051
      }
46052
    }
46053
 
46054
    public void setFieldValue(_Fields field, Object value) {
46055
      switch (field) {
46056
      case SUCCESS:
46057
        if (value == null) {
46058
          unsetSuccess();
46059
        } else {
46060
          setSuccess((Order)value);
46061
        }
46062
        break;
46063
 
46064
      case EX:
46065
        if (value == null) {
46066
          unsetEx();
46067
        } else {
46068
          setEx((TransactionServiceException)value);
46069
        }
46070
        break;
46071
 
46072
      }
46073
    }
46074
 
46075
    public Object getFieldValue(_Fields field) {
46076
      switch (field) {
46077
      case SUCCESS:
46078
        return getSuccess();
46079
 
46080
      case EX:
46081
        return getEx();
46082
 
46083
      }
46084
      throw new IllegalStateException();
46085
    }
46086
 
46087
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46088
    public boolean isSet(_Fields field) {
46089
      if (field == null) {
46090
        throw new IllegalArgumentException();
46091
      }
46092
 
46093
      switch (field) {
46094
      case SUCCESS:
46095
        return isSetSuccess();
46096
      case EX:
46097
        return isSetEx();
46098
      }
46099
      throw new IllegalStateException();
46100
    }
46101
 
46102
    @Override
46103
    public boolean equals(Object that) {
46104
      if (that == null)
46105
        return false;
46106
      if (that instanceof changeItem_result)
46107
        return this.equals((changeItem_result)that);
46108
      return false;
46109
    }
46110
 
46111
    public boolean equals(changeItem_result that) {
46112
      if (that == null)
46113
        return false;
46114
 
46115
      boolean this_present_success = true && this.isSetSuccess();
46116
      boolean that_present_success = true && that.isSetSuccess();
46117
      if (this_present_success || that_present_success) {
46118
        if (!(this_present_success && that_present_success))
46119
          return false;
46120
        if (!this.success.equals(that.success))
46121
          return false;
46122
      }
46123
 
46124
      boolean this_present_ex = true && this.isSetEx();
46125
      boolean that_present_ex = true && that.isSetEx();
46126
      if (this_present_ex || that_present_ex) {
46127
        if (!(this_present_ex && that_present_ex))
46128
          return false;
46129
        if (!this.ex.equals(that.ex))
46130
          return false;
46131
      }
46132
 
46133
      return true;
46134
    }
46135
 
46136
    @Override
46137
    public int hashCode() {
46138
      return 0;
46139
    }
46140
 
46141
    public int compareTo(changeItem_result other) {
46142
      if (!getClass().equals(other.getClass())) {
46143
        return getClass().getName().compareTo(other.getClass().getName());
46144
      }
46145
 
46146
      int lastComparison = 0;
46147
      changeItem_result typedOther = (changeItem_result)other;
46148
 
46149
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
46150
      if (lastComparison != 0) {
46151
        return lastComparison;
46152
      }
46153
      if (isSetSuccess()) {
46154
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
46155
        if (lastComparison != 0) {
46156
          return lastComparison;
46157
        }
46158
      }
46159
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
46160
      if (lastComparison != 0) {
46161
        return lastComparison;
46162
      }
46163
      if (isSetEx()) {
46164
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
46165
        if (lastComparison != 0) {
46166
          return lastComparison;
46167
        }
46168
      }
46169
      return 0;
46170
    }
46171
 
46172
    public _Fields fieldForId(int fieldId) {
46173
      return _Fields.findByThriftId(fieldId);
46174
    }
46175
 
46176
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46177
      org.apache.thrift.protocol.TField field;
46178
      iprot.readStructBegin();
46179
      while (true)
46180
      {
46181
        field = iprot.readFieldBegin();
46182
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46183
          break;
46184
        }
46185
        switch (field.id) {
46186
          case 0: // SUCCESS
46187
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
46188
              this.success = new Order();
46189
              this.success.read(iprot);
46190
            } else { 
46191
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46192
            }
46193
            break;
46194
          case 1: // EX
46195
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
46196
              this.ex = new TransactionServiceException();
46197
              this.ex.read(iprot);
46198
            } else { 
46199
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46200
            }
46201
            break;
46202
          default:
46203
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46204
        }
46205
        iprot.readFieldEnd();
46206
      }
46207
      iprot.readStructEnd();
46208
      validate();
46209
    }
46210
 
46211
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46212
      oprot.writeStructBegin(STRUCT_DESC);
46213
 
46214
      if (this.isSetSuccess()) {
46215
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46216
        this.success.write(oprot);
46217
        oprot.writeFieldEnd();
46218
      } else if (this.isSetEx()) {
46219
        oprot.writeFieldBegin(EX_FIELD_DESC);
46220
        this.ex.write(oprot);
46221
        oprot.writeFieldEnd();
46222
      }
46223
      oprot.writeFieldStop();
46224
      oprot.writeStructEnd();
46225
    }
46226
 
46227
    @Override
46228
    public String toString() {
46229
      StringBuilder sb = new StringBuilder("changeItem_result(");
46230
      boolean first = true;
46231
 
46232
      sb.append("success:");
46233
      if (this.success == null) {
46234
        sb.append("null");
46235
      } else {
46236
        sb.append(this.success);
46237
      }
46238
      first = false;
46239
      if (!first) sb.append(", ");
46240
      sb.append("ex:");
46241
      if (this.ex == null) {
46242
        sb.append("null");
46243
      } else {
46244
        sb.append(this.ex);
46245
      }
46246
      first = false;
46247
      sb.append(")");
46248
      return sb.toString();
46249
    }
46250
 
46251
    public void validate() throws org.apache.thrift.TException {
46252
      // check for required fields
46253
    }
46254
 
46255
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46256
      try {
46257
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46258
      } catch (org.apache.thrift.TException te) {
46259
        throw new java.io.IOException(te);
46260
      }
46261
    }
46262
 
46263
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46264
      try {
46265
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46266
      } catch (org.apache.thrift.TException te) {
46267
        throw new java.io.IOException(te);
46268
      }
46269
    }
46270
 
46271
  }
46272
 
46273
  public static class shiftToWarehouse_args implements org.apache.thrift.TBase<shiftToWarehouse_args, shiftToWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
46274
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shiftToWarehouse_args");
46275
 
46276
    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);
46277
    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);
46278
 
46279
    private long orderId; // required
46280
    private long warehouseId; // required
46281
 
46282
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46283
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46284
      ORDER_ID((short)1, "orderId"),
46285
      WAREHOUSE_ID((short)2, "warehouseId");
46286
 
46287
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46288
 
46289
      static {
46290
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46291
          byName.put(field.getFieldName(), field);
46292
        }
46293
      }
46294
 
46295
      /**
46296
       * Find the _Fields constant that matches fieldId, or null if its not found.
46297
       */
46298
      public static _Fields findByThriftId(int fieldId) {
46299
        switch(fieldId) {
46300
          case 1: // ORDER_ID
46301
            return ORDER_ID;
46302
          case 2: // WAREHOUSE_ID
46303
            return WAREHOUSE_ID;
46304
          default:
46305
            return null;
46306
        }
46307
      }
46308
 
46309
      /**
46310
       * Find the _Fields constant that matches fieldId, throwing an exception
46311
       * if it is not found.
46312
       */
46313
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46314
        _Fields fields = findByThriftId(fieldId);
46315
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46316
        return fields;
46317
      }
46318
 
46319
      /**
46320
       * Find the _Fields constant that matches name, or null if its not found.
46321
       */
46322
      public static _Fields findByName(String name) {
46323
        return byName.get(name);
46324
      }
46325
 
46326
      private final short _thriftId;
46327
      private final String _fieldName;
46328
 
46329
      _Fields(short thriftId, String fieldName) {
46330
        _thriftId = thriftId;
46331
        _fieldName = fieldName;
46332
      }
46333
 
46334
      public short getThriftFieldId() {
46335
        return _thriftId;
46336
      }
46337
 
46338
      public String getFieldName() {
46339
        return _fieldName;
46340
      }
46341
    }
46342
 
46343
    // isset id assignments
46344
    private static final int __ORDERID_ISSET_ID = 0;
46345
    private static final int __WAREHOUSEID_ISSET_ID = 1;
46346
    private BitSet __isset_bit_vector = new BitSet(2);
46347
 
46348
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46349
    static {
46350
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46351
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46352
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46353
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46354
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46355
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46356
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shiftToWarehouse_args.class, metaDataMap);
46357
    }
46358
 
46359
    public shiftToWarehouse_args() {
46360
    }
46361
 
46362
    public shiftToWarehouse_args(
46363
      long orderId,
46364
      long warehouseId)
46365
    {
46366
      this();
46367
      this.orderId = orderId;
46368
      setOrderIdIsSet(true);
46369
      this.warehouseId = warehouseId;
46370
      setWarehouseIdIsSet(true);
46371
    }
46372
 
46373
    /**
46374
     * Performs a deep copy on <i>other</i>.
46375
     */
46376
    public shiftToWarehouse_args(shiftToWarehouse_args other) {
46377
      __isset_bit_vector.clear();
46378
      __isset_bit_vector.or(other.__isset_bit_vector);
46379
      this.orderId = other.orderId;
46380
      this.warehouseId = other.warehouseId;
46381
    }
46382
 
46383
    public shiftToWarehouse_args deepCopy() {
46384
      return new shiftToWarehouse_args(this);
46385
    }
46386
 
46387
    @Override
46388
    public void clear() {
46389
      setOrderIdIsSet(false);
46390
      this.orderId = 0;
46391
      setWarehouseIdIsSet(false);
46392
      this.warehouseId = 0;
46393
    }
46394
 
46395
    public long getOrderId() {
46396
      return this.orderId;
46397
    }
46398
 
46399
    public void setOrderId(long orderId) {
46400
      this.orderId = orderId;
46401
      setOrderIdIsSet(true);
46402
    }
46403
 
46404
    public void unsetOrderId() {
46405
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
46406
    }
46407
 
46408
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
46409
    public boolean isSetOrderId() {
46410
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
46411
    }
46412
 
46413
    public void setOrderIdIsSet(boolean value) {
46414
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
46415
    }
46416
 
46417
    public long getWarehouseId() {
46418
      return this.warehouseId;
46419
    }
46420
 
46421
    public void setWarehouseId(long warehouseId) {
46422
      this.warehouseId = warehouseId;
46423
      setWarehouseIdIsSet(true);
46424
    }
46425
 
46426
    public void unsetWarehouseId() {
46427
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
46428
    }
46429
 
46430
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
46431
    public boolean isSetWarehouseId() {
46432
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
46433
    }
46434
 
46435
    public void setWarehouseIdIsSet(boolean value) {
46436
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
46437
    }
46438
 
46439
    public void setFieldValue(_Fields field, Object value) {
46440
      switch (field) {
46441
      case ORDER_ID:
46442
        if (value == null) {
46443
          unsetOrderId();
46444
        } else {
46445
          setOrderId((Long)value);
46446
        }
46447
        break;
46448
 
46449
      case WAREHOUSE_ID:
46450
        if (value == null) {
46451
          unsetWarehouseId();
46452
        } else {
46453
          setWarehouseId((Long)value);
46454
        }
46455
        break;
46456
 
46457
      }
46458
    }
46459
 
46460
    public Object getFieldValue(_Fields field) {
46461
      switch (field) {
46462
      case ORDER_ID:
46463
        return Long.valueOf(getOrderId());
46464
 
46465
      case WAREHOUSE_ID:
46466
        return Long.valueOf(getWarehouseId());
46467
 
46468
      }
46469
      throw new IllegalStateException();
46470
    }
46471
 
46472
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46473
    public boolean isSet(_Fields field) {
46474
      if (field == null) {
46475
        throw new IllegalArgumentException();
46476
      }
46477
 
46478
      switch (field) {
46479
      case ORDER_ID:
46480
        return isSetOrderId();
46481
      case WAREHOUSE_ID:
46482
        return isSetWarehouseId();
46483
      }
46484
      throw new IllegalStateException();
46485
    }
46486
 
46487
    @Override
46488
    public boolean equals(Object that) {
46489
      if (that == null)
46490
        return false;
46491
      if (that instanceof shiftToWarehouse_args)
46492
        return this.equals((shiftToWarehouse_args)that);
46493
      return false;
46494
    }
46495
 
46496
    public boolean equals(shiftToWarehouse_args that) {
46497
      if (that == null)
46498
        return false;
46499
 
46500
      boolean this_present_orderId = true;
46501
      boolean that_present_orderId = true;
46502
      if (this_present_orderId || that_present_orderId) {
46503
        if (!(this_present_orderId && that_present_orderId))
46504
          return false;
46505
        if (this.orderId != that.orderId)
46506
          return false;
46507
      }
46508
 
46509
      boolean this_present_warehouseId = true;
46510
      boolean that_present_warehouseId = true;
46511
      if (this_present_warehouseId || that_present_warehouseId) {
46512
        if (!(this_present_warehouseId && that_present_warehouseId))
46513
          return false;
46514
        if (this.warehouseId != that.warehouseId)
46515
          return false;
46516
      }
46517
 
46518
      return true;
46519
    }
46520
 
46521
    @Override
46522
    public int hashCode() {
46523
      return 0;
46524
    }
46525
 
46526
    public int compareTo(shiftToWarehouse_args other) {
46527
      if (!getClass().equals(other.getClass())) {
46528
        return getClass().getName().compareTo(other.getClass().getName());
46529
      }
46530
 
46531
      int lastComparison = 0;
46532
      shiftToWarehouse_args typedOther = (shiftToWarehouse_args)other;
46533
 
46534
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
46535
      if (lastComparison != 0) {
46536
        return lastComparison;
46537
      }
46538
      if (isSetOrderId()) {
46539
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
46540
        if (lastComparison != 0) {
46541
          return lastComparison;
46542
        }
46543
      }
46544
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
46545
      if (lastComparison != 0) {
46546
        return lastComparison;
46547
      }
46548
      if (isSetWarehouseId()) {
46549
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
46550
        if (lastComparison != 0) {
46551
          return lastComparison;
46552
        }
46553
      }
46554
      return 0;
46555
    }
46556
 
46557
    public _Fields fieldForId(int fieldId) {
46558
      return _Fields.findByThriftId(fieldId);
46559
    }
46560
 
46561
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46562
      org.apache.thrift.protocol.TField field;
46563
      iprot.readStructBegin();
46564
      while (true)
46565
      {
46566
        field = iprot.readFieldBegin();
46567
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46568
          break;
46569
        }
46570
        switch (field.id) {
46571
          case 1: // ORDER_ID
46572
            if (field.type == org.apache.thrift.protocol.TType.I64) {
46573
              this.orderId = iprot.readI64();
46574
              setOrderIdIsSet(true);
46575
            } else { 
46576
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46577
            }
46578
            break;
46579
          case 2: // WAREHOUSE_ID
46580
            if (field.type == org.apache.thrift.protocol.TType.I64) {
46581
              this.warehouseId = iprot.readI64();
46582
              setWarehouseIdIsSet(true);
46583
            } else { 
46584
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46585
            }
46586
            break;
46587
          default:
46588
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46589
        }
46590
        iprot.readFieldEnd();
46591
      }
46592
      iprot.readStructEnd();
46593
      validate();
46594
    }
46595
 
46596
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46597
      validate();
46598
 
46599
      oprot.writeStructBegin(STRUCT_DESC);
46600
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
46601
      oprot.writeI64(this.orderId);
46602
      oprot.writeFieldEnd();
46603
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
46604
      oprot.writeI64(this.warehouseId);
46605
      oprot.writeFieldEnd();
46606
      oprot.writeFieldStop();
46607
      oprot.writeStructEnd();
46608
    }
46609
 
46610
    @Override
46611
    public String toString() {
46612
      StringBuilder sb = new StringBuilder("shiftToWarehouse_args(");
46613
      boolean first = true;
46614
 
46615
      sb.append("orderId:");
46616
      sb.append(this.orderId);
46617
      first = false;
46618
      if (!first) sb.append(", ");
46619
      sb.append("warehouseId:");
46620
      sb.append(this.warehouseId);
46621
      first = false;
46622
      sb.append(")");
46623
      return sb.toString();
46624
    }
46625
 
46626
    public void validate() throws org.apache.thrift.TException {
46627
      // check for required fields
46628
    }
46629
 
46630
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46631
      try {
46632
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46633
      } catch (org.apache.thrift.TException te) {
46634
        throw new java.io.IOException(te);
46635
      }
46636
    }
46637
 
46638
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46639
      try {
46640
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46641
      } catch (org.apache.thrift.TException te) {
46642
        throw new java.io.IOException(te);
46643
      }
46644
    }
46645
 
46646
  }
46647
 
46648
  public static class shiftToWarehouse_result implements org.apache.thrift.TBase<shiftToWarehouse_result, shiftToWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
46649
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shiftToWarehouse_result");
46650
 
46651
    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);
46652
    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);
46653
 
46654
    private Order success; // required
46655
    private TransactionServiceException ex; // required
46656
 
46657
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46658
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46659
      SUCCESS((short)0, "success"),
46660
      EX((short)1, "ex");
46661
 
46662
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46663
 
46664
      static {
46665
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46666
          byName.put(field.getFieldName(), field);
46667
        }
46668
      }
46669
 
46670
      /**
46671
       * Find the _Fields constant that matches fieldId, or null if its not found.
46672
       */
46673
      public static _Fields findByThriftId(int fieldId) {
46674
        switch(fieldId) {
46675
          case 0: // SUCCESS
46676
            return SUCCESS;
46677
          case 1: // EX
46678
            return EX;
46679
          default:
46680
            return null;
46681
        }
46682
      }
46683
 
46684
      /**
46685
       * Find the _Fields constant that matches fieldId, throwing an exception
46686
       * if it is not found.
46687
       */
46688
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46689
        _Fields fields = findByThriftId(fieldId);
46690
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46691
        return fields;
46692
      }
46693
 
46694
      /**
46695
       * Find the _Fields constant that matches name, or null if its not found.
46696
       */
46697
      public static _Fields findByName(String name) {
46698
        return byName.get(name);
46699
      }
46700
 
46701
      private final short _thriftId;
46702
      private final String _fieldName;
46703
 
46704
      _Fields(short thriftId, String fieldName) {
46705
        _thriftId = thriftId;
46706
        _fieldName = fieldName;
46707
      }
46708
 
46709
      public short getThriftFieldId() {
46710
        return _thriftId;
46711
      }
46712
 
46713
      public String getFieldName() {
46714
        return _fieldName;
46715
      }
46716
    }
46717
 
46718
    // isset id assignments
46719
 
46720
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46721
    static {
46722
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46723
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46724
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
46725
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46726
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
46727
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46728
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shiftToWarehouse_result.class, metaDataMap);
46729
    }
46730
 
46731
    public shiftToWarehouse_result() {
46732
    }
46733
 
46734
    public shiftToWarehouse_result(
46735
      Order success,
46736
      TransactionServiceException ex)
46737
    {
46738
      this();
46739
      this.success = success;
46740
      this.ex = ex;
46741
    }
46742
 
46743
    /**
46744
     * Performs a deep copy on <i>other</i>.
46745
     */
46746
    public shiftToWarehouse_result(shiftToWarehouse_result other) {
46747
      if (other.isSetSuccess()) {
46748
        this.success = new Order(other.success);
46749
      }
46750
      if (other.isSetEx()) {
46751
        this.ex = new TransactionServiceException(other.ex);
46752
      }
46753
    }
46754
 
46755
    public shiftToWarehouse_result deepCopy() {
46756
      return new shiftToWarehouse_result(this);
46757
    }
46758
 
46759
    @Override
46760
    public void clear() {
46761
      this.success = null;
46762
      this.ex = null;
46763
    }
46764
 
46765
    public Order getSuccess() {
46766
      return this.success;
46767
    }
46768
 
46769
    public void setSuccess(Order success) {
46770
      this.success = success;
46771
    }
46772
 
46773
    public void unsetSuccess() {
46774
      this.success = null;
46775
    }
46776
 
46777
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
46778
    public boolean isSetSuccess() {
46779
      return this.success != null;
46780
    }
46781
 
46782
    public void setSuccessIsSet(boolean value) {
46783
      if (!value) {
46784
        this.success = null;
46785
      }
46786
    }
46787
 
46788
    public TransactionServiceException getEx() {
46789
      return this.ex;
46790
    }
46791
 
46792
    public void setEx(TransactionServiceException ex) {
46793
      this.ex = ex;
46794
    }
46795
 
46796
    public void unsetEx() {
46797
      this.ex = null;
46798
    }
46799
 
46800
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
46801
    public boolean isSetEx() {
46802
      return this.ex != null;
46803
    }
46804
 
46805
    public void setExIsSet(boolean value) {
46806
      if (!value) {
46807
        this.ex = null;
46808
      }
46809
    }
46810
 
46811
    public void setFieldValue(_Fields field, Object value) {
46812
      switch (field) {
46813
      case SUCCESS:
46814
        if (value == null) {
46815
          unsetSuccess();
46816
        } else {
46817
          setSuccess((Order)value);
46818
        }
46819
        break;
46820
 
46821
      case EX:
46822
        if (value == null) {
46823
          unsetEx();
46824
        } else {
46825
          setEx((TransactionServiceException)value);
46826
        }
46827
        break;
46828
 
46829
      }
46830
    }
46831
 
46832
    public Object getFieldValue(_Fields field) {
46833
      switch (field) {
46834
      case SUCCESS:
46835
        return getSuccess();
46836
 
46837
      case EX:
46838
        return getEx();
46839
 
46840
      }
46841
      throw new IllegalStateException();
46842
    }
46843
 
46844
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46845
    public boolean isSet(_Fields field) {
46846
      if (field == null) {
46847
        throw new IllegalArgumentException();
46848
      }
46849
 
46850
      switch (field) {
46851
      case SUCCESS:
46852
        return isSetSuccess();
46853
      case EX:
46854
        return isSetEx();
46855
      }
46856
      throw new IllegalStateException();
46857
    }
46858
 
46859
    @Override
46860
    public boolean equals(Object that) {
46861
      if (that == null)
46862
        return false;
46863
      if (that instanceof shiftToWarehouse_result)
46864
        return this.equals((shiftToWarehouse_result)that);
46865
      return false;
46866
    }
46867
 
46868
    public boolean equals(shiftToWarehouse_result that) {
46869
      if (that == null)
46870
        return false;
46871
 
46872
      boolean this_present_success = true && this.isSetSuccess();
46873
      boolean that_present_success = true && that.isSetSuccess();
46874
      if (this_present_success || that_present_success) {
46875
        if (!(this_present_success && that_present_success))
46876
          return false;
46877
        if (!this.success.equals(that.success))
46878
          return false;
46879
      }
46880
 
46881
      boolean this_present_ex = true && this.isSetEx();
46882
      boolean that_present_ex = true && that.isSetEx();
46883
      if (this_present_ex || that_present_ex) {
46884
        if (!(this_present_ex && that_present_ex))
46885
          return false;
46886
        if (!this.ex.equals(that.ex))
46887
          return false;
46888
      }
46889
 
46890
      return true;
46891
    }
46892
 
46893
    @Override
46894
    public int hashCode() {
46895
      return 0;
46896
    }
46897
 
46898
    public int compareTo(shiftToWarehouse_result other) {
46899
      if (!getClass().equals(other.getClass())) {
46900
        return getClass().getName().compareTo(other.getClass().getName());
46901
      }
46902
 
46903
      int lastComparison = 0;
46904
      shiftToWarehouse_result typedOther = (shiftToWarehouse_result)other;
46905
 
46906
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
46907
      if (lastComparison != 0) {
46908
        return lastComparison;
46909
      }
46910
      if (isSetSuccess()) {
46911
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
46912
        if (lastComparison != 0) {
46913
          return lastComparison;
46914
        }
46915
      }
46916
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
46917
      if (lastComparison != 0) {
46918
        return lastComparison;
46919
      }
46920
      if (isSetEx()) {
46921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
46922
        if (lastComparison != 0) {
46923
          return lastComparison;
46924
        }
46925
      }
46926
      return 0;
46927
    }
46928
 
46929
    public _Fields fieldForId(int fieldId) {
46930
      return _Fields.findByThriftId(fieldId);
46931
    }
46932
 
46933
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46934
      org.apache.thrift.protocol.TField field;
46935
      iprot.readStructBegin();
46936
      while (true)
46937
      {
46938
        field = iprot.readFieldBegin();
46939
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46940
          break;
46941
        }
46942
        switch (field.id) {
46943
          case 0: // SUCCESS
46944
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
46945
              this.success = new Order();
46946
              this.success.read(iprot);
46947
            } else { 
46948
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46949
            }
46950
            break;
46951
          case 1: // EX
46952
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
46953
              this.ex = new TransactionServiceException();
46954
              this.ex.read(iprot);
46955
            } else { 
46956
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46957
            }
46958
            break;
46959
          default:
46960
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46961
        }
46962
        iprot.readFieldEnd();
46963
      }
46964
      iprot.readStructEnd();
46965
      validate();
46966
    }
46967
 
46968
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46969
      oprot.writeStructBegin(STRUCT_DESC);
46970
 
46971
      if (this.isSetSuccess()) {
46972
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46973
        this.success.write(oprot);
46974
        oprot.writeFieldEnd();
46975
      } else if (this.isSetEx()) {
46976
        oprot.writeFieldBegin(EX_FIELD_DESC);
46977
        this.ex.write(oprot);
46978
        oprot.writeFieldEnd();
46979
      }
46980
      oprot.writeFieldStop();
46981
      oprot.writeStructEnd();
46982
    }
46983
 
46984
    @Override
46985
    public String toString() {
46986
      StringBuilder sb = new StringBuilder("shiftToWarehouse_result(");
46987
      boolean first = true;
46988
 
46989
      sb.append("success:");
46990
      if (this.success == null) {
46991
        sb.append("null");
46992
      } else {
46993
        sb.append(this.success);
46994
      }
46995
      first = false;
46996
      if (!first) sb.append(", ");
46997
      sb.append("ex:");
46998
      if (this.ex == null) {
46999
        sb.append("null");
47000
      } else {
47001
        sb.append(this.ex);
47002
      }
47003
      first = false;
47004
      sb.append(")");
47005
      return sb.toString();
47006
    }
47007
 
47008
    public void validate() throws org.apache.thrift.TException {
47009
      // check for required fields
47010
    }
47011
 
47012
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47013
      try {
47014
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47015
      } catch (org.apache.thrift.TException te) {
47016
        throw new java.io.IOException(te);
47017
      }
47018
    }
47019
 
47020
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47021
      try {
47022
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47023
      } catch (org.apache.thrift.TException te) {
47024
        throw new java.io.IOException(te);
47025
      }
47026
    }
47027
 
47028
  }
47029
 
3553 chandransh 47030
  public static class addDelayReason_args implements org.apache.thrift.TBase<addDelayReason_args, addDelayReason_args._Fields>, java.io.Serializable, Cloneable   {
47031
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addDelayReason_args");
47032
 
47033
    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);
47034
    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 47035
    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 47036
 
47037
    private long orderId; // required
47038
    private DelayReason delayReason; // required
3986 chandransh 47039
    private long furtherDelay; // required
3553 chandransh 47040
 
47041
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47042
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47043
      ORDER_ID((short)1, "orderId"),
47044
      /**
47045
       * 
47046
       * @see DelayReason
47047
       */
3986 chandransh 47048
      DELAY_REASON((short)2, "delayReason"),
47049
      FURTHER_DELAY((short)3, "furtherDelay");
3553 chandransh 47050
 
47051
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47052
 
47053
      static {
47054
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47055
          byName.put(field.getFieldName(), field);
47056
        }
47057
      }
47058
 
47059
      /**
47060
       * Find the _Fields constant that matches fieldId, or null if its not found.
47061
       */
47062
      public static _Fields findByThriftId(int fieldId) {
47063
        switch(fieldId) {
47064
          case 1: // ORDER_ID
47065
            return ORDER_ID;
47066
          case 2: // DELAY_REASON
47067
            return DELAY_REASON;
3986 chandransh 47068
          case 3: // FURTHER_DELAY
47069
            return FURTHER_DELAY;
3553 chandransh 47070
          default:
47071
            return null;
47072
        }
47073
      }
47074
 
47075
      /**
47076
       * Find the _Fields constant that matches fieldId, throwing an exception
47077
       * if it is not found.
47078
       */
47079
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47080
        _Fields fields = findByThriftId(fieldId);
47081
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47082
        return fields;
47083
      }
47084
 
47085
      /**
47086
       * Find the _Fields constant that matches name, or null if its not found.
47087
       */
47088
      public static _Fields findByName(String name) {
47089
        return byName.get(name);
47090
      }
47091
 
47092
      private final short _thriftId;
47093
      private final String _fieldName;
47094
 
47095
      _Fields(short thriftId, String fieldName) {
47096
        _thriftId = thriftId;
47097
        _fieldName = fieldName;
47098
      }
47099
 
47100
      public short getThriftFieldId() {
47101
        return _thriftId;
47102
      }
47103
 
47104
      public String getFieldName() {
47105
        return _fieldName;
47106
      }
47107
    }
47108
 
47109
    // isset id assignments
47110
    private static final int __ORDERID_ISSET_ID = 0;
3986 chandransh 47111
    private static final int __FURTHERDELAY_ISSET_ID = 1;
47112
    private BitSet __isset_bit_vector = new BitSet(2);
3553 chandransh 47113
 
47114
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47115
    static {
47116
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47117
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47118
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
47119
      tmpMap.put(_Fields.DELAY_REASON, new org.apache.thrift.meta_data.FieldMetaData("delayReason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47120
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DelayReason.class)));
3986 chandransh 47121
      tmpMap.put(_Fields.FURTHER_DELAY, new org.apache.thrift.meta_data.FieldMetaData("furtherDelay", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47122
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3553 chandransh 47123
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47124
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addDelayReason_args.class, metaDataMap);
47125
    }
47126
 
47127
    public addDelayReason_args() {
47128
    }
47129
 
47130
    public addDelayReason_args(
47131
      long orderId,
3986 chandransh 47132
      DelayReason delayReason,
47133
      long furtherDelay)
3553 chandransh 47134
    {
47135
      this();
47136
      this.orderId = orderId;
47137
      setOrderIdIsSet(true);
47138
      this.delayReason = delayReason;
3986 chandransh 47139
      this.furtherDelay = furtherDelay;
47140
      setFurtherDelayIsSet(true);
3553 chandransh 47141
    }
47142
 
47143
    /**
47144
     * Performs a deep copy on <i>other</i>.
47145
     */
47146
    public addDelayReason_args(addDelayReason_args other) {
47147
      __isset_bit_vector.clear();
47148
      __isset_bit_vector.or(other.__isset_bit_vector);
47149
      this.orderId = other.orderId;
47150
      if (other.isSetDelayReason()) {
47151
        this.delayReason = other.delayReason;
47152
      }
3986 chandransh 47153
      this.furtherDelay = other.furtherDelay;
3553 chandransh 47154
    }
47155
 
47156
    public addDelayReason_args deepCopy() {
47157
      return new addDelayReason_args(this);
47158
    }
47159
 
47160
    @Override
47161
    public void clear() {
47162
      setOrderIdIsSet(false);
47163
      this.orderId = 0;
47164
      this.delayReason = null;
3986 chandransh 47165
      setFurtherDelayIsSet(false);
47166
      this.furtherDelay = 0;
3553 chandransh 47167
    }
47168
 
47169
    public long getOrderId() {
47170
      return this.orderId;
47171
    }
47172
 
47173
    public void setOrderId(long orderId) {
47174
      this.orderId = orderId;
47175
      setOrderIdIsSet(true);
47176
    }
47177
 
47178
    public void unsetOrderId() {
47179
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
47180
    }
47181
 
47182
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
47183
    public boolean isSetOrderId() {
47184
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
47185
    }
47186
 
47187
    public void setOrderIdIsSet(boolean value) {
47188
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
47189
    }
47190
 
47191
    /**
47192
     * 
47193
     * @see DelayReason
47194
     */
47195
    public DelayReason getDelayReason() {
47196
      return this.delayReason;
47197
    }
47198
 
47199
    /**
47200
     * 
47201
     * @see DelayReason
47202
     */
47203
    public void setDelayReason(DelayReason delayReason) {
47204
      this.delayReason = delayReason;
47205
    }
47206
 
47207
    public void unsetDelayReason() {
47208
      this.delayReason = null;
47209
    }
47210
 
47211
    /** Returns true if field delayReason is set (has been assigned a value) and false otherwise */
47212
    public boolean isSetDelayReason() {
47213
      return this.delayReason != null;
47214
    }
47215
 
47216
    public void setDelayReasonIsSet(boolean value) {
47217
      if (!value) {
47218
        this.delayReason = null;
47219
      }
47220
    }
47221
 
3986 chandransh 47222
    public long getFurtherDelay() {
47223
      return this.furtherDelay;
47224
    }
47225
 
47226
    public void setFurtherDelay(long furtherDelay) {
47227
      this.furtherDelay = furtherDelay;
47228
      setFurtherDelayIsSet(true);
47229
    }
47230
 
47231
    public void unsetFurtherDelay() {
47232
      __isset_bit_vector.clear(__FURTHERDELAY_ISSET_ID);
47233
    }
47234
 
47235
    /** Returns true if field furtherDelay is set (has been assigned a value) and false otherwise */
47236
    public boolean isSetFurtherDelay() {
47237
      return __isset_bit_vector.get(__FURTHERDELAY_ISSET_ID);
47238
    }
47239
 
47240
    public void setFurtherDelayIsSet(boolean value) {
47241
      __isset_bit_vector.set(__FURTHERDELAY_ISSET_ID, value);
47242
    }
47243
 
3553 chandransh 47244
    public void setFieldValue(_Fields field, Object value) {
47245
      switch (field) {
47246
      case ORDER_ID:
47247
        if (value == null) {
47248
          unsetOrderId();
47249
        } else {
47250
          setOrderId((Long)value);
47251
        }
47252
        break;
47253
 
47254
      case DELAY_REASON:
47255
        if (value == null) {
47256
          unsetDelayReason();
47257
        } else {
47258
          setDelayReason((DelayReason)value);
47259
        }
47260
        break;
47261
 
3986 chandransh 47262
      case FURTHER_DELAY:
47263
        if (value == null) {
47264
          unsetFurtherDelay();
47265
        } else {
47266
          setFurtherDelay((Long)value);
47267
        }
47268
        break;
47269
 
3553 chandransh 47270
      }
47271
    }
47272
 
47273
    public Object getFieldValue(_Fields field) {
47274
      switch (field) {
47275
      case ORDER_ID:
47276
        return Long.valueOf(getOrderId());
47277
 
47278
      case DELAY_REASON:
47279
        return getDelayReason();
47280
 
3986 chandransh 47281
      case FURTHER_DELAY:
47282
        return Long.valueOf(getFurtherDelay());
47283
 
3553 chandransh 47284
      }
47285
      throw new IllegalStateException();
47286
    }
47287
 
47288
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47289
    public boolean isSet(_Fields field) {
47290
      if (field == null) {
47291
        throw new IllegalArgumentException();
47292
      }
47293
 
47294
      switch (field) {
47295
      case ORDER_ID:
47296
        return isSetOrderId();
47297
      case DELAY_REASON:
47298
        return isSetDelayReason();
3986 chandransh 47299
      case FURTHER_DELAY:
47300
        return isSetFurtherDelay();
3553 chandransh 47301
      }
47302
      throw new IllegalStateException();
47303
    }
47304
 
47305
    @Override
47306
    public boolean equals(Object that) {
47307
      if (that == null)
47308
        return false;
47309
      if (that instanceof addDelayReason_args)
47310
        return this.equals((addDelayReason_args)that);
47311
      return false;
47312
    }
47313
 
47314
    public boolean equals(addDelayReason_args that) {
47315
      if (that == null)
47316
        return false;
47317
 
47318
      boolean this_present_orderId = true;
47319
      boolean that_present_orderId = true;
47320
      if (this_present_orderId || that_present_orderId) {
47321
        if (!(this_present_orderId && that_present_orderId))
47322
          return false;
47323
        if (this.orderId != that.orderId)
47324
          return false;
47325
      }
47326
 
47327
      boolean this_present_delayReason = true && this.isSetDelayReason();
47328
      boolean that_present_delayReason = true && that.isSetDelayReason();
47329
      if (this_present_delayReason || that_present_delayReason) {
47330
        if (!(this_present_delayReason && that_present_delayReason))
47331
          return false;
47332
        if (!this.delayReason.equals(that.delayReason))
47333
          return false;
47334
      }
47335
 
3986 chandransh 47336
      boolean this_present_furtherDelay = true;
47337
      boolean that_present_furtherDelay = true;
47338
      if (this_present_furtherDelay || that_present_furtherDelay) {
47339
        if (!(this_present_furtherDelay && that_present_furtherDelay))
47340
          return false;
47341
        if (this.furtherDelay != that.furtherDelay)
47342
          return false;
47343
      }
47344
 
3553 chandransh 47345
      return true;
47346
    }
47347
 
47348
    @Override
47349
    public int hashCode() {
47350
      return 0;
47351
    }
47352
 
47353
    public int compareTo(addDelayReason_args other) {
47354
      if (!getClass().equals(other.getClass())) {
47355
        return getClass().getName().compareTo(other.getClass().getName());
47356
      }
47357
 
47358
      int lastComparison = 0;
47359
      addDelayReason_args typedOther = (addDelayReason_args)other;
47360
 
47361
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
47362
      if (lastComparison != 0) {
47363
        return lastComparison;
47364
      }
47365
      if (isSetOrderId()) {
47366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
47367
        if (lastComparison != 0) {
47368
          return lastComparison;
47369
        }
47370
      }
47371
      lastComparison = Boolean.valueOf(isSetDelayReason()).compareTo(typedOther.isSetDelayReason());
47372
      if (lastComparison != 0) {
47373
        return lastComparison;
47374
      }
47375
      if (isSetDelayReason()) {
47376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delayReason, typedOther.delayReason);
47377
        if (lastComparison != 0) {
47378
          return lastComparison;
47379
        }
47380
      }
3986 chandransh 47381
      lastComparison = Boolean.valueOf(isSetFurtherDelay()).compareTo(typedOther.isSetFurtherDelay());
47382
      if (lastComparison != 0) {
47383
        return lastComparison;
47384
      }
47385
      if (isSetFurtherDelay()) {
47386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.furtherDelay, typedOther.furtherDelay);
47387
        if (lastComparison != 0) {
47388
          return lastComparison;
47389
        }
47390
      }
3553 chandransh 47391
      return 0;
47392
    }
47393
 
47394
    public _Fields fieldForId(int fieldId) {
47395
      return _Fields.findByThriftId(fieldId);
47396
    }
47397
 
47398
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47399
      org.apache.thrift.protocol.TField field;
47400
      iprot.readStructBegin();
47401
      while (true)
47402
      {
47403
        field = iprot.readFieldBegin();
47404
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47405
          break;
47406
        }
47407
        switch (field.id) {
47408
          case 1: // ORDER_ID
47409
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47410
              this.orderId = iprot.readI64();
47411
              setOrderIdIsSet(true);
47412
            } else { 
47413
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47414
            }
47415
            break;
47416
          case 2: // DELAY_REASON
47417
            if (field.type == org.apache.thrift.protocol.TType.I32) {
47418
              this.delayReason = DelayReason.findByValue(iprot.readI32());
47419
            } else { 
47420
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47421
            }
47422
            break;
3986 chandransh 47423
          case 3: // FURTHER_DELAY
47424
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47425
              this.furtherDelay = iprot.readI64();
47426
              setFurtherDelayIsSet(true);
47427
            } else { 
47428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47429
            }
47430
            break;
3553 chandransh 47431
          default:
47432
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47433
        }
47434
        iprot.readFieldEnd();
47435
      }
47436
      iprot.readStructEnd();
47437
      validate();
47438
    }
47439
 
47440
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47441
      validate();
47442
 
47443
      oprot.writeStructBegin(STRUCT_DESC);
47444
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
47445
      oprot.writeI64(this.orderId);
47446
      oprot.writeFieldEnd();
47447
      if (this.delayReason != null) {
47448
        oprot.writeFieldBegin(DELAY_REASON_FIELD_DESC);
47449
        oprot.writeI32(this.delayReason.getValue());
47450
        oprot.writeFieldEnd();
47451
      }
3986 chandransh 47452
      oprot.writeFieldBegin(FURTHER_DELAY_FIELD_DESC);
47453
      oprot.writeI64(this.furtherDelay);
47454
      oprot.writeFieldEnd();
3553 chandransh 47455
      oprot.writeFieldStop();
47456
      oprot.writeStructEnd();
47457
    }
47458
 
47459
    @Override
47460
    public String toString() {
47461
      StringBuilder sb = new StringBuilder("addDelayReason_args(");
47462
      boolean first = true;
47463
 
47464
      sb.append("orderId:");
47465
      sb.append(this.orderId);
47466
      first = false;
47467
      if (!first) sb.append(", ");
47468
      sb.append("delayReason:");
47469
      if (this.delayReason == null) {
47470
        sb.append("null");
47471
      } else {
47472
        sb.append(this.delayReason);
47473
      }
47474
      first = false;
3986 chandransh 47475
      if (!first) sb.append(", ");
47476
      sb.append("furtherDelay:");
47477
      sb.append(this.furtherDelay);
47478
      first = false;
3553 chandransh 47479
      sb.append(")");
47480
      return sb.toString();
47481
    }
47482
 
47483
    public void validate() throws org.apache.thrift.TException {
47484
      // check for required fields
47485
    }
47486
 
47487
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47488
      try {
47489
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47490
      } catch (org.apache.thrift.TException te) {
47491
        throw new java.io.IOException(te);
47492
      }
47493
    }
47494
 
47495
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47496
      try {
47497
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47498
      } catch (org.apache.thrift.TException te) {
47499
        throw new java.io.IOException(te);
47500
      }
47501
    }
47502
 
47503
  }
47504
 
47505
  public static class addDelayReason_result implements org.apache.thrift.TBase<addDelayReason_result, addDelayReason_result._Fields>, java.io.Serializable, Cloneable   {
47506
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addDelayReason_result");
47507
 
47508
    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);
47509
    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);
47510
 
47511
    private boolean success; // required
47512
    private TransactionServiceException ex; // required
47513
 
47514
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47515
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47516
      SUCCESS((short)0, "success"),
47517
      EX((short)1, "ex");
47518
 
47519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47520
 
47521
      static {
47522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47523
          byName.put(field.getFieldName(), field);
47524
        }
47525
      }
47526
 
47527
      /**
47528
       * Find the _Fields constant that matches fieldId, or null if its not found.
47529
       */
47530
      public static _Fields findByThriftId(int fieldId) {
47531
        switch(fieldId) {
47532
          case 0: // SUCCESS
47533
            return SUCCESS;
47534
          case 1: // EX
47535
            return EX;
47536
          default:
47537
            return null;
47538
        }
47539
      }
47540
 
47541
      /**
47542
       * Find the _Fields constant that matches fieldId, throwing an exception
47543
       * if it is not found.
47544
       */
47545
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47546
        _Fields fields = findByThriftId(fieldId);
47547
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47548
        return fields;
47549
      }
47550
 
47551
      /**
47552
       * Find the _Fields constant that matches name, or null if its not found.
47553
       */
47554
      public static _Fields findByName(String name) {
47555
        return byName.get(name);
47556
      }
47557
 
47558
      private final short _thriftId;
47559
      private final String _fieldName;
47560
 
47561
      _Fields(short thriftId, String fieldName) {
47562
        _thriftId = thriftId;
47563
        _fieldName = fieldName;
47564
      }
47565
 
47566
      public short getThriftFieldId() {
47567
        return _thriftId;
47568
      }
47569
 
47570
      public String getFieldName() {
47571
        return _fieldName;
47572
      }
47573
    }
47574
 
47575
    // isset id assignments
47576
    private static final int __SUCCESS_ISSET_ID = 0;
47577
    private BitSet __isset_bit_vector = new BitSet(1);
47578
 
47579
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47580
    static {
47581
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47582
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47583
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
47584
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47585
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
47586
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47587
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addDelayReason_result.class, metaDataMap);
47588
    }
47589
 
47590
    public addDelayReason_result() {
47591
    }
47592
 
47593
    public addDelayReason_result(
47594
      boolean success,
47595
      TransactionServiceException ex)
47596
    {
47597
      this();
47598
      this.success = success;
47599
      setSuccessIsSet(true);
47600
      this.ex = ex;
47601
    }
47602
 
47603
    /**
47604
     * Performs a deep copy on <i>other</i>.
47605
     */
47606
    public addDelayReason_result(addDelayReason_result other) {
47607
      __isset_bit_vector.clear();
47608
      __isset_bit_vector.or(other.__isset_bit_vector);
47609
      this.success = other.success;
47610
      if (other.isSetEx()) {
47611
        this.ex = new TransactionServiceException(other.ex);
47612
      }
47613
    }
47614
 
47615
    public addDelayReason_result deepCopy() {
47616
      return new addDelayReason_result(this);
47617
    }
47618
 
47619
    @Override
47620
    public void clear() {
47621
      setSuccessIsSet(false);
47622
      this.success = false;
47623
      this.ex = null;
47624
    }
47625
 
47626
    public boolean isSuccess() {
47627
      return this.success;
47628
    }
47629
 
47630
    public void setSuccess(boolean success) {
47631
      this.success = success;
47632
      setSuccessIsSet(true);
47633
    }
47634
 
47635
    public void unsetSuccess() {
47636
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
47637
    }
47638
 
47639
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
47640
    public boolean isSetSuccess() {
47641
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
47642
    }
47643
 
47644
    public void setSuccessIsSet(boolean value) {
47645
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
47646
    }
47647
 
47648
    public TransactionServiceException getEx() {
47649
      return this.ex;
47650
    }
47651
 
47652
    public void setEx(TransactionServiceException ex) {
47653
      this.ex = ex;
47654
    }
47655
 
47656
    public void unsetEx() {
47657
      this.ex = null;
47658
    }
47659
 
47660
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
47661
    public boolean isSetEx() {
47662
      return this.ex != null;
47663
    }
47664
 
47665
    public void setExIsSet(boolean value) {
47666
      if (!value) {
47667
        this.ex = null;
47668
      }
47669
    }
47670
 
47671
    public void setFieldValue(_Fields field, Object value) {
47672
      switch (field) {
47673
      case SUCCESS:
47674
        if (value == null) {
47675
          unsetSuccess();
47676
        } else {
47677
          setSuccess((Boolean)value);
47678
        }
47679
        break;
47680
 
47681
      case EX:
47682
        if (value == null) {
47683
          unsetEx();
47684
        } else {
47685
          setEx((TransactionServiceException)value);
47686
        }
47687
        break;
47688
 
47689
      }
47690
    }
47691
 
47692
    public Object getFieldValue(_Fields field) {
47693
      switch (field) {
47694
      case SUCCESS:
47695
        return Boolean.valueOf(isSuccess());
47696
 
47697
      case EX:
47698
        return getEx();
47699
 
47700
      }
47701
      throw new IllegalStateException();
47702
    }
47703
 
47704
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47705
    public boolean isSet(_Fields field) {
47706
      if (field == null) {
47707
        throw new IllegalArgumentException();
47708
      }
47709
 
47710
      switch (field) {
47711
      case SUCCESS:
47712
        return isSetSuccess();
47713
      case EX:
47714
        return isSetEx();
47715
      }
47716
      throw new IllegalStateException();
47717
    }
47718
 
47719
    @Override
47720
    public boolean equals(Object that) {
47721
      if (that == null)
47722
        return false;
47723
      if (that instanceof addDelayReason_result)
47724
        return this.equals((addDelayReason_result)that);
47725
      return false;
47726
    }
47727
 
47728
    public boolean equals(addDelayReason_result that) {
47729
      if (that == null)
47730
        return false;
47731
 
47732
      boolean this_present_success = true;
47733
      boolean that_present_success = true;
47734
      if (this_present_success || that_present_success) {
47735
        if (!(this_present_success && that_present_success))
47736
          return false;
47737
        if (this.success != that.success)
47738
          return false;
47739
      }
47740
 
47741
      boolean this_present_ex = true && this.isSetEx();
47742
      boolean that_present_ex = true && that.isSetEx();
47743
      if (this_present_ex || that_present_ex) {
47744
        if (!(this_present_ex && that_present_ex))
47745
          return false;
47746
        if (!this.ex.equals(that.ex))
47747
          return false;
47748
      }
47749
 
47750
      return true;
47751
    }
47752
 
47753
    @Override
47754
    public int hashCode() {
47755
      return 0;
47756
    }
47757
 
47758
    public int compareTo(addDelayReason_result other) {
47759
      if (!getClass().equals(other.getClass())) {
47760
        return getClass().getName().compareTo(other.getClass().getName());
47761
      }
47762
 
47763
      int lastComparison = 0;
47764
      addDelayReason_result typedOther = (addDelayReason_result)other;
47765
 
47766
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
47767
      if (lastComparison != 0) {
47768
        return lastComparison;
47769
      }
47770
      if (isSetSuccess()) {
47771
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
47772
        if (lastComparison != 0) {
47773
          return lastComparison;
47774
        }
47775
      }
47776
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
47777
      if (lastComparison != 0) {
47778
        return lastComparison;
47779
      }
47780
      if (isSetEx()) {
47781
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
47782
        if (lastComparison != 0) {
47783
          return lastComparison;
47784
        }
47785
      }
47786
      return 0;
47787
    }
47788
 
47789
    public _Fields fieldForId(int fieldId) {
47790
      return _Fields.findByThriftId(fieldId);
47791
    }
47792
 
47793
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47794
      org.apache.thrift.protocol.TField field;
47795
      iprot.readStructBegin();
47796
      while (true)
47797
      {
47798
        field = iprot.readFieldBegin();
47799
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47800
          break;
47801
        }
47802
        switch (field.id) {
47803
          case 0: // SUCCESS
47804
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
47805
              this.success = iprot.readBool();
47806
              setSuccessIsSet(true);
47807
            } else { 
47808
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47809
            }
47810
            break;
47811
          case 1: // EX
47812
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
47813
              this.ex = new TransactionServiceException();
47814
              this.ex.read(iprot);
47815
            } else { 
47816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47817
            }
47818
            break;
47819
          default:
47820
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47821
        }
47822
        iprot.readFieldEnd();
47823
      }
47824
      iprot.readStructEnd();
47825
      validate();
47826
    }
47827
 
47828
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47829
      oprot.writeStructBegin(STRUCT_DESC);
47830
 
47831
      if (this.isSetSuccess()) {
47832
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
47833
        oprot.writeBool(this.success);
47834
        oprot.writeFieldEnd();
47835
      } else if (this.isSetEx()) {
47836
        oprot.writeFieldBegin(EX_FIELD_DESC);
47837
        this.ex.write(oprot);
47838
        oprot.writeFieldEnd();
47839
      }
47840
      oprot.writeFieldStop();
47841
      oprot.writeStructEnd();
47842
    }
47843
 
47844
    @Override
47845
    public String toString() {
47846
      StringBuilder sb = new StringBuilder("addDelayReason_result(");
47847
      boolean first = true;
47848
 
47849
      sb.append("success:");
47850
      sb.append(this.success);
47851
      first = false;
47852
      if (!first) sb.append(", ");
47853
      sb.append("ex:");
47854
      if (this.ex == null) {
47855
        sb.append("null");
47856
      } else {
47857
        sb.append(this.ex);
47858
      }
47859
      first = false;
47860
      sb.append(")");
47861
      return sb.toString();
47862
    }
47863
 
47864
    public void validate() throws org.apache.thrift.TException {
47865
      // check for required fields
47866
    }
47867
 
47868
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47869
      try {
47870
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47871
      } catch (org.apache.thrift.TException te) {
47872
        throw new java.io.IOException(te);
47873
      }
47874
    }
47875
 
47876
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47877
      try {
47878
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47879
      } catch (org.apache.thrift.TException te) {
47880
        throw new java.io.IOException(te);
47881
      }
47882
    }
47883
 
47884
  }
47885
 
3956 chandransh 47886
  public static class reconcileCodCollection_args implements org.apache.thrift.TBase<reconcileCodCollection_args, reconcileCodCollection_args._Fields>, java.io.Serializable, Cloneable   {
47887
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reconcileCodCollection_args");
47888
 
47889
    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);
47890
    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);
47891
    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);
47892
    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);
47893
 
47894
    private Map<String,Double> collectedAmountMap; // required
47895
    private String xferBy; // required
47896
    private String xferTxnId; // required
47897
    private long xferDate; // required
47898
 
47899
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47900
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47901
      COLLECTED_AMOUNT_MAP((short)1, "collectedAmountMap"),
47902
      XFER_BY((short)2, "xferBy"),
47903
      XFER_TXN_ID((short)3, "xferTxnId"),
47904
      XFER_DATE((short)4, "xferDate");
47905
 
47906
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47907
 
47908
      static {
47909
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47910
          byName.put(field.getFieldName(), field);
47911
        }
47912
      }
47913
 
47914
      /**
47915
       * Find the _Fields constant that matches fieldId, or null if its not found.
47916
       */
47917
      public static _Fields findByThriftId(int fieldId) {
47918
        switch(fieldId) {
47919
          case 1: // COLLECTED_AMOUNT_MAP
47920
            return COLLECTED_AMOUNT_MAP;
47921
          case 2: // XFER_BY
47922
            return XFER_BY;
47923
          case 3: // XFER_TXN_ID
47924
            return XFER_TXN_ID;
47925
          case 4: // XFER_DATE
47926
            return XFER_DATE;
47927
          default:
47928
            return null;
47929
        }
47930
      }
47931
 
47932
      /**
47933
       * Find the _Fields constant that matches fieldId, throwing an exception
47934
       * if it is not found.
47935
       */
47936
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47937
        _Fields fields = findByThriftId(fieldId);
47938
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47939
        return fields;
47940
      }
47941
 
47942
      /**
47943
       * Find the _Fields constant that matches name, or null if its not found.
47944
       */
47945
      public static _Fields findByName(String name) {
47946
        return byName.get(name);
47947
      }
47948
 
47949
      private final short _thriftId;
47950
      private final String _fieldName;
47951
 
47952
      _Fields(short thriftId, String fieldName) {
47953
        _thriftId = thriftId;
47954
        _fieldName = fieldName;
47955
      }
47956
 
47957
      public short getThriftFieldId() {
47958
        return _thriftId;
47959
      }
47960
 
47961
      public String getFieldName() {
47962
        return _fieldName;
47963
      }
47964
    }
47965
 
47966
    // isset id assignments
47967
    private static final int __XFERDATE_ISSET_ID = 0;
47968
    private BitSet __isset_bit_vector = new BitSet(1);
47969
 
47970
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47971
    static {
47972
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47973
      tmpMap.put(_Fields.COLLECTED_AMOUNT_MAP, new org.apache.thrift.meta_data.FieldMetaData("collectedAmountMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47974
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
47975
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
47976
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
47977
      tmpMap.put(_Fields.XFER_BY, new org.apache.thrift.meta_data.FieldMetaData("xferBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47978
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
47979
      tmpMap.put(_Fields.XFER_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("xferTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47980
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
47981
      tmpMap.put(_Fields.XFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("xferDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47982
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
47983
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47984
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reconcileCodCollection_args.class, metaDataMap);
47985
    }
47986
 
47987
    public reconcileCodCollection_args() {
47988
    }
47989
 
47990
    public reconcileCodCollection_args(
47991
      Map<String,Double> collectedAmountMap,
47992
      String xferBy,
47993
      String xferTxnId,
47994
      long xferDate)
47995
    {
47996
      this();
47997
      this.collectedAmountMap = collectedAmountMap;
47998
      this.xferBy = xferBy;
47999
      this.xferTxnId = xferTxnId;
48000
      this.xferDate = xferDate;
48001
      setXferDateIsSet(true);
48002
    }
48003
 
48004
    /**
48005
     * Performs a deep copy on <i>other</i>.
48006
     */
48007
    public reconcileCodCollection_args(reconcileCodCollection_args other) {
48008
      __isset_bit_vector.clear();
48009
      __isset_bit_vector.or(other.__isset_bit_vector);
48010
      if (other.isSetCollectedAmountMap()) {
48011
        Map<String,Double> __this__collectedAmountMap = new HashMap<String,Double>();
48012
        for (Map.Entry<String, Double> other_element : other.collectedAmountMap.entrySet()) {
48013
 
48014
          String other_element_key = other_element.getKey();
48015
          Double other_element_value = other_element.getValue();
48016
 
48017
          String __this__collectedAmountMap_copy_key = other_element_key;
48018
 
48019
          Double __this__collectedAmountMap_copy_value = other_element_value;
48020
 
48021
          __this__collectedAmountMap.put(__this__collectedAmountMap_copy_key, __this__collectedAmountMap_copy_value);
48022
        }
48023
        this.collectedAmountMap = __this__collectedAmountMap;
48024
      }
48025
      if (other.isSetXferBy()) {
48026
        this.xferBy = other.xferBy;
48027
      }
48028
      if (other.isSetXferTxnId()) {
48029
        this.xferTxnId = other.xferTxnId;
48030
      }
48031
      this.xferDate = other.xferDate;
48032
    }
48033
 
48034
    public reconcileCodCollection_args deepCopy() {
48035
      return new reconcileCodCollection_args(this);
48036
    }
48037
 
48038
    @Override
48039
    public void clear() {
48040
      this.collectedAmountMap = null;
48041
      this.xferBy = null;
48042
      this.xferTxnId = null;
48043
      setXferDateIsSet(false);
48044
      this.xferDate = 0;
48045
    }
48046
 
48047
    public int getCollectedAmountMapSize() {
48048
      return (this.collectedAmountMap == null) ? 0 : this.collectedAmountMap.size();
48049
    }
48050
 
48051
    public void putToCollectedAmountMap(String key, double val) {
48052
      if (this.collectedAmountMap == null) {
48053
        this.collectedAmountMap = new HashMap<String,Double>();
48054
      }
48055
      this.collectedAmountMap.put(key, val);
48056
    }
48057
 
48058
    public Map<String,Double> getCollectedAmountMap() {
48059
      return this.collectedAmountMap;
48060
    }
48061
 
48062
    public void setCollectedAmountMap(Map<String,Double> collectedAmountMap) {
48063
      this.collectedAmountMap = collectedAmountMap;
48064
    }
48065
 
48066
    public void unsetCollectedAmountMap() {
48067
      this.collectedAmountMap = null;
48068
    }
48069
 
48070
    /** Returns true if field collectedAmountMap is set (has been assigned a value) and false otherwise */
48071
    public boolean isSetCollectedAmountMap() {
48072
      return this.collectedAmountMap != null;
48073
    }
48074
 
48075
    public void setCollectedAmountMapIsSet(boolean value) {
48076
      if (!value) {
48077
        this.collectedAmountMap = null;
48078
      }
48079
    }
48080
 
48081
    public String getXferBy() {
48082
      return this.xferBy;
48083
    }
48084
 
48085
    public void setXferBy(String xferBy) {
48086
      this.xferBy = xferBy;
48087
    }
48088
 
48089
    public void unsetXferBy() {
48090
      this.xferBy = null;
48091
    }
48092
 
48093
    /** Returns true if field xferBy is set (has been assigned a value) and false otherwise */
48094
    public boolean isSetXferBy() {
48095
      return this.xferBy != null;
48096
    }
48097
 
48098
    public void setXferByIsSet(boolean value) {
48099
      if (!value) {
48100
        this.xferBy = null;
48101
      }
48102
    }
48103
 
48104
    public String getXferTxnId() {
48105
      return this.xferTxnId;
48106
    }
48107
 
48108
    public void setXferTxnId(String xferTxnId) {
48109
      this.xferTxnId = xferTxnId;
48110
    }
48111
 
48112
    public void unsetXferTxnId() {
48113
      this.xferTxnId = null;
48114
    }
48115
 
48116
    /** Returns true if field xferTxnId is set (has been assigned a value) and false otherwise */
48117
    public boolean isSetXferTxnId() {
48118
      return this.xferTxnId != null;
48119
    }
48120
 
48121
    public void setXferTxnIdIsSet(boolean value) {
48122
      if (!value) {
48123
        this.xferTxnId = null;
48124
      }
48125
    }
48126
 
48127
    public long getXferDate() {
48128
      return this.xferDate;
48129
    }
48130
 
48131
    public void setXferDate(long xferDate) {
48132
      this.xferDate = xferDate;
48133
      setXferDateIsSet(true);
48134
    }
48135
 
48136
    public void unsetXferDate() {
48137
      __isset_bit_vector.clear(__XFERDATE_ISSET_ID);
48138
    }
48139
 
48140
    /** Returns true if field xferDate is set (has been assigned a value) and false otherwise */
48141
    public boolean isSetXferDate() {
48142
      return __isset_bit_vector.get(__XFERDATE_ISSET_ID);
48143
    }
48144
 
48145
    public void setXferDateIsSet(boolean value) {
48146
      __isset_bit_vector.set(__XFERDATE_ISSET_ID, value);
48147
    }
48148
 
48149
    public void setFieldValue(_Fields field, Object value) {
48150
      switch (field) {
48151
      case COLLECTED_AMOUNT_MAP:
48152
        if (value == null) {
48153
          unsetCollectedAmountMap();
48154
        } else {
48155
          setCollectedAmountMap((Map<String,Double>)value);
48156
        }
48157
        break;
48158
 
48159
      case XFER_BY:
48160
        if (value == null) {
48161
          unsetXferBy();
48162
        } else {
48163
          setXferBy((String)value);
48164
        }
48165
        break;
48166
 
48167
      case XFER_TXN_ID:
48168
        if (value == null) {
48169
          unsetXferTxnId();
48170
        } else {
48171
          setXferTxnId((String)value);
48172
        }
48173
        break;
48174
 
48175
      case XFER_DATE:
48176
        if (value == null) {
48177
          unsetXferDate();
48178
        } else {
48179
          setXferDate((Long)value);
48180
        }
48181
        break;
48182
 
48183
      }
48184
    }
48185
 
48186
    public Object getFieldValue(_Fields field) {
48187
      switch (field) {
48188
      case COLLECTED_AMOUNT_MAP:
48189
        return getCollectedAmountMap();
48190
 
48191
      case XFER_BY:
48192
        return getXferBy();
48193
 
48194
      case XFER_TXN_ID:
48195
        return getXferTxnId();
48196
 
48197
      case XFER_DATE:
48198
        return Long.valueOf(getXferDate());
48199
 
48200
      }
48201
      throw new IllegalStateException();
48202
    }
48203
 
48204
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48205
    public boolean isSet(_Fields field) {
48206
      if (field == null) {
48207
        throw new IllegalArgumentException();
48208
      }
48209
 
48210
      switch (field) {
48211
      case COLLECTED_AMOUNT_MAP:
48212
        return isSetCollectedAmountMap();
48213
      case XFER_BY:
48214
        return isSetXferBy();
48215
      case XFER_TXN_ID:
48216
        return isSetXferTxnId();
48217
      case XFER_DATE:
48218
        return isSetXferDate();
48219
      }
48220
      throw new IllegalStateException();
48221
    }
48222
 
48223
    @Override
48224
    public boolean equals(Object that) {
48225
      if (that == null)
48226
        return false;
48227
      if (that instanceof reconcileCodCollection_args)
48228
        return this.equals((reconcileCodCollection_args)that);
48229
      return false;
48230
    }
48231
 
48232
    public boolean equals(reconcileCodCollection_args that) {
48233
      if (that == null)
48234
        return false;
48235
 
48236
      boolean this_present_collectedAmountMap = true && this.isSetCollectedAmountMap();
48237
      boolean that_present_collectedAmountMap = true && that.isSetCollectedAmountMap();
48238
      if (this_present_collectedAmountMap || that_present_collectedAmountMap) {
48239
        if (!(this_present_collectedAmountMap && that_present_collectedAmountMap))
48240
          return false;
48241
        if (!this.collectedAmountMap.equals(that.collectedAmountMap))
48242
          return false;
48243
      }
48244
 
48245
      boolean this_present_xferBy = true && this.isSetXferBy();
48246
      boolean that_present_xferBy = true && that.isSetXferBy();
48247
      if (this_present_xferBy || that_present_xferBy) {
48248
        if (!(this_present_xferBy && that_present_xferBy))
48249
          return false;
48250
        if (!this.xferBy.equals(that.xferBy))
48251
          return false;
48252
      }
48253
 
48254
      boolean this_present_xferTxnId = true && this.isSetXferTxnId();
48255
      boolean that_present_xferTxnId = true && that.isSetXferTxnId();
48256
      if (this_present_xferTxnId || that_present_xferTxnId) {
48257
        if (!(this_present_xferTxnId && that_present_xferTxnId))
48258
          return false;
48259
        if (!this.xferTxnId.equals(that.xferTxnId))
48260
          return false;
48261
      }
48262
 
48263
      boolean this_present_xferDate = true;
48264
      boolean that_present_xferDate = true;
48265
      if (this_present_xferDate || that_present_xferDate) {
48266
        if (!(this_present_xferDate && that_present_xferDate))
48267
          return false;
48268
        if (this.xferDate != that.xferDate)
48269
          return false;
48270
      }
48271
 
48272
      return true;
48273
    }
48274
 
48275
    @Override
48276
    public int hashCode() {
48277
      return 0;
48278
    }
48279
 
48280
    public int compareTo(reconcileCodCollection_args other) {
48281
      if (!getClass().equals(other.getClass())) {
48282
        return getClass().getName().compareTo(other.getClass().getName());
48283
      }
48284
 
48285
      int lastComparison = 0;
48286
      reconcileCodCollection_args typedOther = (reconcileCodCollection_args)other;
48287
 
48288
      lastComparison = Boolean.valueOf(isSetCollectedAmountMap()).compareTo(typedOther.isSetCollectedAmountMap());
48289
      if (lastComparison != 0) {
48290
        return lastComparison;
48291
      }
48292
      if (isSetCollectedAmountMap()) {
48293
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.collectedAmountMap, typedOther.collectedAmountMap);
48294
        if (lastComparison != 0) {
48295
          return lastComparison;
48296
        }
48297
      }
48298
      lastComparison = Boolean.valueOf(isSetXferBy()).compareTo(typedOther.isSetXferBy());
48299
      if (lastComparison != 0) {
48300
        return lastComparison;
48301
      }
48302
      if (isSetXferBy()) {
48303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferBy, typedOther.xferBy);
48304
        if (lastComparison != 0) {
48305
          return lastComparison;
48306
        }
48307
      }
48308
      lastComparison = Boolean.valueOf(isSetXferTxnId()).compareTo(typedOther.isSetXferTxnId());
48309
      if (lastComparison != 0) {
48310
        return lastComparison;
48311
      }
48312
      if (isSetXferTxnId()) {
48313
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferTxnId, typedOther.xferTxnId);
48314
        if (lastComparison != 0) {
48315
          return lastComparison;
48316
        }
48317
      }
48318
      lastComparison = Boolean.valueOf(isSetXferDate()).compareTo(typedOther.isSetXferDate());
48319
      if (lastComparison != 0) {
48320
        return lastComparison;
48321
      }
48322
      if (isSetXferDate()) {
48323
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferDate, typedOther.xferDate);
48324
        if (lastComparison != 0) {
48325
          return lastComparison;
48326
        }
48327
      }
48328
      return 0;
48329
    }
48330
 
48331
    public _Fields fieldForId(int fieldId) {
48332
      return _Fields.findByThriftId(fieldId);
48333
    }
48334
 
48335
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48336
      org.apache.thrift.protocol.TField field;
48337
      iprot.readStructBegin();
48338
      while (true)
48339
      {
48340
        field = iprot.readFieldBegin();
48341
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48342
          break;
48343
        }
48344
        switch (field.id) {
48345
          case 1: // COLLECTED_AMOUNT_MAP
48346
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
48347
              {
4133 chandransh 48348
                org.apache.thrift.protocol.TMap _map121 = iprot.readMapBegin();
48349
                this.collectedAmountMap = new HashMap<String,Double>(2*_map121.size);
48350
                for (int _i122 = 0; _i122 < _map121.size; ++_i122)
3956 chandransh 48351
                {
4133 chandransh 48352
                  String _key123; // required
48353
                  double _val124; // required
48354
                  _key123 = iprot.readString();
48355
                  _val124 = iprot.readDouble();
48356
                  this.collectedAmountMap.put(_key123, _val124);
3956 chandransh 48357
                }
48358
                iprot.readMapEnd();
48359
              }
48360
            } else { 
48361
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48362
            }
48363
            break;
48364
          case 2: // XFER_BY
48365
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
48366
              this.xferBy = iprot.readString();
48367
            } else { 
48368
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48369
            }
48370
            break;
48371
          case 3: // XFER_TXN_ID
48372
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
48373
              this.xferTxnId = iprot.readString();
48374
            } else { 
48375
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48376
            }
48377
            break;
48378
          case 4: // XFER_DATE
48379
            if (field.type == org.apache.thrift.protocol.TType.I64) {
48380
              this.xferDate = iprot.readI64();
48381
              setXferDateIsSet(true);
48382
            } else { 
48383
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48384
            }
48385
            break;
48386
          default:
48387
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48388
        }
48389
        iprot.readFieldEnd();
48390
      }
48391
      iprot.readStructEnd();
48392
      validate();
48393
    }
48394
 
48395
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48396
      validate();
48397
 
48398
      oprot.writeStructBegin(STRUCT_DESC);
48399
      if (this.collectedAmountMap != null) {
48400
        oprot.writeFieldBegin(COLLECTED_AMOUNT_MAP_FIELD_DESC);
48401
        {
48402
          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 48403
          for (Map.Entry<String, Double> _iter125 : this.collectedAmountMap.entrySet())
3956 chandransh 48404
          {
4133 chandransh 48405
            oprot.writeString(_iter125.getKey());
48406
            oprot.writeDouble(_iter125.getValue());
3956 chandransh 48407
          }
48408
          oprot.writeMapEnd();
48409
        }
48410
        oprot.writeFieldEnd();
48411
      }
48412
      if (this.xferBy != null) {
48413
        oprot.writeFieldBegin(XFER_BY_FIELD_DESC);
48414
        oprot.writeString(this.xferBy);
48415
        oprot.writeFieldEnd();
48416
      }
48417
      if (this.xferTxnId != null) {
48418
        oprot.writeFieldBegin(XFER_TXN_ID_FIELD_DESC);
48419
        oprot.writeString(this.xferTxnId);
48420
        oprot.writeFieldEnd();
48421
      }
48422
      oprot.writeFieldBegin(XFER_DATE_FIELD_DESC);
48423
      oprot.writeI64(this.xferDate);
48424
      oprot.writeFieldEnd();
48425
      oprot.writeFieldStop();
48426
      oprot.writeStructEnd();
48427
    }
48428
 
48429
    @Override
48430
    public String toString() {
48431
      StringBuilder sb = new StringBuilder("reconcileCodCollection_args(");
48432
      boolean first = true;
48433
 
48434
      sb.append("collectedAmountMap:");
48435
      if (this.collectedAmountMap == null) {
48436
        sb.append("null");
48437
      } else {
48438
        sb.append(this.collectedAmountMap);
48439
      }
48440
      first = false;
48441
      if (!first) sb.append(", ");
48442
      sb.append("xferBy:");
48443
      if (this.xferBy == null) {
48444
        sb.append("null");
48445
      } else {
48446
        sb.append(this.xferBy);
48447
      }
48448
      first = false;
48449
      if (!first) sb.append(", ");
48450
      sb.append("xferTxnId:");
48451
      if (this.xferTxnId == null) {
48452
        sb.append("null");
48453
      } else {
48454
        sb.append(this.xferTxnId);
48455
      }
48456
      first = false;
48457
      if (!first) sb.append(", ");
48458
      sb.append("xferDate:");
48459
      sb.append(this.xferDate);
48460
      first = false;
48461
      sb.append(")");
48462
      return sb.toString();
48463
    }
48464
 
48465
    public void validate() throws org.apache.thrift.TException {
48466
      // check for required fields
48467
    }
48468
 
48469
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48470
      try {
48471
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48472
      } catch (org.apache.thrift.TException te) {
48473
        throw new java.io.IOException(te);
48474
      }
48475
    }
48476
 
48477
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48478
      try {
48479
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48480
      } catch (org.apache.thrift.TException te) {
48481
        throw new java.io.IOException(te);
48482
      }
48483
    }
48484
 
48485
  }
48486
 
48487
  public static class reconcileCodCollection_result implements org.apache.thrift.TBase<reconcileCodCollection_result, reconcileCodCollection_result._Fields>, java.io.Serializable, Cloneable   {
48488
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reconcileCodCollection_result");
48489
 
48490
    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);
48491
    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);
48492
 
48493
    private Map<String,String> success; // required
48494
    private TransactionServiceException ex; // required
48495
 
48496
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48497
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48498
      SUCCESS((short)0, "success"),
48499
      EX((short)1, "ex");
48500
 
48501
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48502
 
48503
      static {
48504
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48505
          byName.put(field.getFieldName(), field);
48506
        }
48507
      }
48508
 
48509
      /**
48510
       * Find the _Fields constant that matches fieldId, or null if its not found.
48511
       */
48512
      public static _Fields findByThriftId(int fieldId) {
48513
        switch(fieldId) {
48514
          case 0: // SUCCESS
48515
            return SUCCESS;
48516
          case 1: // EX
48517
            return EX;
48518
          default:
48519
            return null;
48520
        }
48521
      }
48522
 
48523
      /**
48524
       * Find the _Fields constant that matches fieldId, throwing an exception
48525
       * if it is not found.
48526
       */
48527
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48528
        _Fields fields = findByThriftId(fieldId);
48529
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48530
        return fields;
48531
      }
48532
 
48533
      /**
48534
       * Find the _Fields constant that matches name, or null if its not found.
48535
       */
48536
      public static _Fields findByName(String name) {
48537
        return byName.get(name);
48538
      }
48539
 
48540
      private final short _thriftId;
48541
      private final String _fieldName;
48542
 
48543
      _Fields(short thriftId, String fieldName) {
48544
        _thriftId = thriftId;
48545
        _fieldName = fieldName;
48546
      }
48547
 
48548
      public short getThriftFieldId() {
48549
        return _thriftId;
48550
      }
48551
 
48552
      public String getFieldName() {
48553
        return _fieldName;
48554
      }
48555
    }
48556
 
48557
    // isset id assignments
48558
 
48559
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48560
    static {
48561
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48562
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48563
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
48564
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
48565
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
48566
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48567
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
48568
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48569
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reconcileCodCollection_result.class, metaDataMap);
48570
    }
48571
 
48572
    public reconcileCodCollection_result() {
48573
    }
48574
 
48575
    public reconcileCodCollection_result(
48576
      Map<String,String> success,
48577
      TransactionServiceException ex)
48578
    {
48579
      this();
48580
      this.success = success;
48581
      this.ex = ex;
48582
    }
48583
 
48584
    /**
48585
     * Performs a deep copy on <i>other</i>.
48586
     */
48587
    public reconcileCodCollection_result(reconcileCodCollection_result other) {
48588
      if (other.isSetSuccess()) {
48589
        Map<String,String> __this__success = new HashMap<String,String>();
48590
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
48591
 
48592
          String other_element_key = other_element.getKey();
48593
          String other_element_value = other_element.getValue();
48594
 
48595
          String __this__success_copy_key = other_element_key;
48596
 
48597
          String __this__success_copy_value = other_element_value;
48598
 
48599
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
48600
        }
48601
        this.success = __this__success;
48602
      }
48603
      if (other.isSetEx()) {
48604
        this.ex = new TransactionServiceException(other.ex);
48605
      }
48606
    }
48607
 
48608
    public reconcileCodCollection_result deepCopy() {
48609
      return new reconcileCodCollection_result(this);
48610
    }
48611
 
48612
    @Override
48613
    public void clear() {
48614
      this.success = null;
48615
      this.ex = null;
48616
    }
48617
 
48618
    public int getSuccessSize() {
48619
      return (this.success == null) ? 0 : this.success.size();
48620
    }
48621
 
48622
    public void putToSuccess(String key, String val) {
48623
      if (this.success == null) {
48624
        this.success = new HashMap<String,String>();
48625
      }
48626
      this.success.put(key, val);
48627
    }
48628
 
48629
    public Map<String,String> getSuccess() {
48630
      return this.success;
48631
    }
48632
 
48633
    public void setSuccess(Map<String,String> success) {
48634
      this.success = success;
48635
    }
48636
 
48637
    public void unsetSuccess() {
48638
      this.success = null;
48639
    }
48640
 
48641
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48642
    public boolean isSetSuccess() {
48643
      return this.success != null;
48644
    }
48645
 
48646
    public void setSuccessIsSet(boolean value) {
48647
      if (!value) {
48648
        this.success = null;
48649
      }
48650
    }
48651
 
48652
    public TransactionServiceException getEx() {
48653
      return this.ex;
48654
    }
48655
 
48656
    public void setEx(TransactionServiceException ex) {
48657
      this.ex = ex;
48658
    }
48659
 
48660
    public void unsetEx() {
48661
      this.ex = null;
48662
    }
48663
 
48664
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
48665
    public boolean isSetEx() {
48666
      return this.ex != null;
48667
    }
48668
 
48669
    public void setExIsSet(boolean value) {
48670
      if (!value) {
48671
        this.ex = null;
48672
      }
48673
    }
48674
 
48675
    public void setFieldValue(_Fields field, Object value) {
48676
      switch (field) {
48677
      case SUCCESS:
48678
        if (value == null) {
48679
          unsetSuccess();
48680
        } else {
48681
          setSuccess((Map<String,String>)value);
48682
        }
48683
        break;
48684
 
48685
      case EX:
48686
        if (value == null) {
48687
          unsetEx();
48688
        } else {
48689
          setEx((TransactionServiceException)value);
48690
        }
48691
        break;
48692
 
48693
      }
48694
    }
48695
 
48696
    public Object getFieldValue(_Fields field) {
48697
      switch (field) {
48698
      case SUCCESS:
48699
        return getSuccess();
48700
 
48701
      case EX:
48702
        return getEx();
48703
 
48704
      }
48705
      throw new IllegalStateException();
48706
    }
48707
 
48708
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48709
    public boolean isSet(_Fields field) {
48710
      if (field == null) {
48711
        throw new IllegalArgumentException();
48712
      }
48713
 
48714
      switch (field) {
48715
      case SUCCESS:
48716
        return isSetSuccess();
48717
      case EX:
48718
        return isSetEx();
48719
      }
48720
      throw new IllegalStateException();
48721
    }
48722
 
48723
    @Override
48724
    public boolean equals(Object that) {
48725
      if (that == null)
48726
        return false;
48727
      if (that instanceof reconcileCodCollection_result)
48728
        return this.equals((reconcileCodCollection_result)that);
48729
      return false;
48730
    }
48731
 
48732
    public boolean equals(reconcileCodCollection_result that) {
48733
      if (that == null)
48734
        return false;
48735
 
48736
      boolean this_present_success = true && this.isSetSuccess();
48737
      boolean that_present_success = true && that.isSetSuccess();
48738
      if (this_present_success || that_present_success) {
48739
        if (!(this_present_success && that_present_success))
48740
          return false;
48741
        if (!this.success.equals(that.success))
48742
          return false;
48743
      }
48744
 
48745
      boolean this_present_ex = true && this.isSetEx();
48746
      boolean that_present_ex = true && that.isSetEx();
48747
      if (this_present_ex || that_present_ex) {
48748
        if (!(this_present_ex && that_present_ex))
48749
          return false;
48750
        if (!this.ex.equals(that.ex))
48751
          return false;
48752
      }
48753
 
48754
      return true;
48755
    }
48756
 
48757
    @Override
48758
    public int hashCode() {
48759
      return 0;
48760
    }
48761
 
48762
    public int compareTo(reconcileCodCollection_result other) {
48763
      if (!getClass().equals(other.getClass())) {
48764
        return getClass().getName().compareTo(other.getClass().getName());
48765
      }
48766
 
48767
      int lastComparison = 0;
48768
      reconcileCodCollection_result typedOther = (reconcileCodCollection_result)other;
48769
 
48770
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48771
      if (lastComparison != 0) {
48772
        return lastComparison;
48773
      }
48774
      if (isSetSuccess()) {
48775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
48776
        if (lastComparison != 0) {
48777
          return lastComparison;
48778
        }
48779
      }
48780
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
48781
      if (lastComparison != 0) {
48782
        return lastComparison;
48783
      }
48784
      if (isSetEx()) {
48785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
48786
        if (lastComparison != 0) {
48787
          return lastComparison;
48788
        }
48789
      }
48790
      return 0;
48791
    }
48792
 
48793
    public _Fields fieldForId(int fieldId) {
48794
      return _Fields.findByThriftId(fieldId);
48795
    }
48796
 
48797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48798
      org.apache.thrift.protocol.TField field;
48799
      iprot.readStructBegin();
48800
      while (true)
48801
      {
48802
        field = iprot.readFieldBegin();
48803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48804
          break;
48805
        }
48806
        switch (field.id) {
48807
          case 0: // SUCCESS
48808
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
48809
              {
4133 chandransh 48810
                org.apache.thrift.protocol.TMap _map126 = iprot.readMapBegin();
48811
                this.success = new HashMap<String,String>(2*_map126.size);
48812
                for (int _i127 = 0; _i127 < _map126.size; ++_i127)
3956 chandransh 48813
                {
4133 chandransh 48814
                  String _key128; // required
48815
                  String _val129; // required
48816
                  _key128 = iprot.readString();
48817
                  _val129 = iprot.readString();
48818
                  this.success.put(_key128, _val129);
3956 chandransh 48819
                }
48820
                iprot.readMapEnd();
48821
              }
48822
            } else { 
48823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48824
            }
48825
            break;
48826
          case 1: // EX
48827
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
48828
              this.ex = new TransactionServiceException();
48829
              this.ex.read(iprot);
48830
            } else { 
48831
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48832
            }
48833
            break;
48834
          default:
48835
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48836
        }
48837
        iprot.readFieldEnd();
48838
      }
48839
      iprot.readStructEnd();
48840
      validate();
48841
    }
48842
 
48843
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48844
      oprot.writeStructBegin(STRUCT_DESC);
48845
 
48846
      if (this.isSetSuccess()) {
48847
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48848
        {
48849
          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 48850
          for (Map.Entry<String, String> _iter130 : this.success.entrySet())
3956 chandransh 48851
          {
4133 chandransh 48852
            oprot.writeString(_iter130.getKey());
48853
            oprot.writeString(_iter130.getValue());
3956 chandransh 48854
          }
48855
          oprot.writeMapEnd();
48856
        }
48857
        oprot.writeFieldEnd();
48858
      } else if (this.isSetEx()) {
48859
        oprot.writeFieldBegin(EX_FIELD_DESC);
48860
        this.ex.write(oprot);
48861
        oprot.writeFieldEnd();
48862
      }
48863
      oprot.writeFieldStop();
48864
      oprot.writeStructEnd();
48865
    }
48866
 
48867
    @Override
48868
    public String toString() {
48869
      StringBuilder sb = new StringBuilder("reconcileCodCollection_result(");
48870
      boolean first = true;
48871
 
48872
      sb.append("success:");
48873
      if (this.success == null) {
48874
        sb.append("null");
48875
      } else {
48876
        sb.append(this.success);
48877
      }
48878
      first = false;
48879
      if (!first) sb.append(", ");
48880
      sb.append("ex:");
48881
      if (this.ex == null) {
48882
        sb.append("null");
48883
      } else {
48884
        sb.append(this.ex);
48885
      }
48886
      first = false;
48887
      sb.append(")");
48888
      return sb.toString();
48889
    }
48890
 
48891
    public void validate() throws org.apache.thrift.TException {
48892
      // check for required fields
48893
    }
48894
 
48895
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48896
      try {
48897
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48898
      } catch (org.apache.thrift.TException te) {
48899
        throw new java.io.IOException(te);
48900
      }
48901
    }
48902
 
48903
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48904
      try {
48905
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48906
      } catch (org.apache.thrift.TException te) {
48907
        throw new java.io.IOException(te);
48908
      }
48909
    }
48910
 
48911
  }
48912
 
4008 mandeep.dh 48913
  public static class getTransactionsRequiringExtraProcessing_args implements org.apache.thrift.TBase<getTransactionsRequiringExtraProcessing_args, getTransactionsRequiringExtraProcessing_args._Fields>, java.io.Serializable, Cloneable   {
48914
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsRequiringExtraProcessing_args");
48915
 
48916
    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);
48917
 
48918
    private ExtraTransactionProcessingType category; // required
48919
 
48920
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48921
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48922
      /**
48923
       * 
48924
       * @see ExtraTransactionProcessingType
48925
       */
48926
      CATEGORY((short)1, "category");
48927
 
48928
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48929
 
48930
      static {
48931
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48932
          byName.put(field.getFieldName(), field);
48933
        }
48934
      }
48935
 
48936
      /**
48937
       * Find the _Fields constant that matches fieldId, or null if its not found.
48938
       */
48939
      public static _Fields findByThriftId(int fieldId) {
48940
        switch(fieldId) {
48941
          case 1: // CATEGORY
48942
            return CATEGORY;
48943
          default:
48944
            return null;
48945
        }
48946
      }
48947
 
48948
      /**
48949
       * Find the _Fields constant that matches fieldId, throwing an exception
48950
       * if it is not found.
48951
       */
48952
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48953
        _Fields fields = findByThriftId(fieldId);
48954
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48955
        return fields;
48956
      }
48957
 
48958
      /**
48959
       * Find the _Fields constant that matches name, or null if its not found.
48960
       */
48961
      public static _Fields findByName(String name) {
48962
        return byName.get(name);
48963
      }
48964
 
48965
      private final short _thriftId;
48966
      private final String _fieldName;
48967
 
48968
      _Fields(short thriftId, String fieldName) {
48969
        _thriftId = thriftId;
48970
        _fieldName = fieldName;
48971
      }
48972
 
48973
      public short getThriftFieldId() {
48974
        return _thriftId;
48975
      }
48976
 
48977
      public String getFieldName() {
48978
        return _fieldName;
48979
      }
48980
    }
48981
 
48982
    // isset id assignments
48983
 
48984
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48985
    static {
48986
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48987
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48988
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraTransactionProcessingType.class)));
48989
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48990
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsRequiringExtraProcessing_args.class, metaDataMap);
48991
    }
48992
 
48993
    public getTransactionsRequiringExtraProcessing_args() {
48994
    }
48995
 
48996
    public getTransactionsRequiringExtraProcessing_args(
48997
      ExtraTransactionProcessingType category)
48998
    {
48999
      this();
49000
      this.category = category;
49001
    }
49002
 
49003
    /**
49004
     * Performs a deep copy on <i>other</i>.
49005
     */
49006
    public getTransactionsRequiringExtraProcessing_args(getTransactionsRequiringExtraProcessing_args other) {
49007
      if (other.isSetCategory()) {
49008
        this.category = other.category;
49009
      }
49010
    }
49011
 
49012
    public getTransactionsRequiringExtraProcessing_args deepCopy() {
49013
      return new getTransactionsRequiringExtraProcessing_args(this);
49014
    }
49015
 
49016
    @Override
49017
    public void clear() {
49018
      this.category = null;
49019
    }
49020
 
49021
    /**
49022
     * 
49023
     * @see ExtraTransactionProcessingType
49024
     */
49025
    public ExtraTransactionProcessingType getCategory() {
49026
      return this.category;
49027
    }
49028
 
49029
    /**
49030
     * 
49031
     * @see ExtraTransactionProcessingType
49032
     */
49033
    public void setCategory(ExtraTransactionProcessingType category) {
49034
      this.category = category;
49035
    }
49036
 
49037
    public void unsetCategory() {
49038
      this.category = null;
49039
    }
49040
 
49041
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
49042
    public boolean isSetCategory() {
49043
      return this.category != null;
49044
    }
49045
 
49046
    public void setCategoryIsSet(boolean value) {
49047
      if (!value) {
49048
        this.category = null;
49049
      }
49050
    }
49051
 
49052
    public void setFieldValue(_Fields field, Object value) {
49053
      switch (field) {
49054
      case CATEGORY:
49055
        if (value == null) {
49056
          unsetCategory();
49057
        } else {
49058
          setCategory((ExtraTransactionProcessingType)value);
49059
        }
49060
        break;
49061
 
49062
      }
49063
    }
49064
 
49065
    public Object getFieldValue(_Fields field) {
49066
      switch (field) {
49067
      case CATEGORY:
49068
        return getCategory();
49069
 
49070
      }
49071
      throw new IllegalStateException();
49072
    }
49073
 
49074
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49075
    public boolean isSet(_Fields field) {
49076
      if (field == null) {
49077
        throw new IllegalArgumentException();
49078
      }
49079
 
49080
      switch (field) {
49081
      case CATEGORY:
49082
        return isSetCategory();
49083
      }
49084
      throw new IllegalStateException();
49085
    }
49086
 
49087
    @Override
49088
    public boolean equals(Object that) {
49089
      if (that == null)
49090
        return false;
49091
      if (that instanceof getTransactionsRequiringExtraProcessing_args)
49092
        return this.equals((getTransactionsRequiringExtraProcessing_args)that);
49093
      return false;
49094
    }
49095
 
49096
    public boolean equals(getTransactionsRequiringExtraProcessing_args that) {
49097
      if (that == null)
49098
        return false;
49099
 
49100
      boolean this_present_category = true && this.isSetCategory();
49101
      boolean that_present_category = true && that.isSetCategory();
49102
      if (this_present_category || that_present_category) {
49103
        if (!(this_present_category && that_present_category))
49104
          return false;
49105
        if (!this.category.equals(that.category))
49106
          return false;
49107
      }
49108
 
49109
      return true;
49110
    }
49111
 
49112
    @Override
49113
    public int hashCode() {
49114
      return 0;
49115
    }
49116
 
49117
    public int compareTo(getTransactionsRequiringExtraProcessing_args other) {
49118
      if (!getClass().equals(other.getClass())) {
49119
        return getClass().getName().compareTo(other.getClass().getName());
49120
      }
49121
 
49122
      int lastComparison = 0;
49123
      getTransactionsRequiringExtraProcessing_args typedOther = (getTransactionsRequiringExtraProcessing_args)other;
49124
 
49125
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
49126
      if (lastComparison != 0) {
49127
        return lastComparison;
49128
      }
49129
      if (isSetCategory()) {
49130
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
49131
        if (lastComparison != 0) {
49132
          return lastComparison;
49133
        }
49134
      }
49135
      return 0;
49136
    }
49137
 
49138
    public _Fields fieldForId(int fieldId) {
49139
      return _Fields.findByThriftId(fieldId);
49140
    }
49141
 
49142
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49143
      org.apache.thrift.protocol.TField field;
49144
      iprot.readStructBegin();
49145
      while (true)
49146
      {
49147
        field = iprot.readFieldBegin();
49148
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49149
          break;
49150
        }
49151
        switch (field.id) {
49152
          case 1: // CATEGORY
49153
            if (field.type == org.apache.thrift.protocol.TType.I32) {
49154
              this.category = ExtraTransactionProcessingType.findByValue(iprot.readI32());
49155
            } else { 
49156
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49157
            }
49158
            break;
49159
          default:
49160
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49161
        }
49162
        iprot.readFieldEnd();
49163
      }
49164
      iprot.readStructEnd();
49165
      validate();
49166
    }
49167
 
49168
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49169
      validate();
49170
 
49171
      oprot.writeStructBegin(STRUCT_DESC);
49172
      if (this.category != null) {
49173
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
49174
        oprot.writeI32(this.category.getValue());
49175
        oprot.writeFieldEnd();
49176
      }
49177
      oprot.writeFieldStop();
49178
      oprot.writeStructEnd();
49179
    }
49180
 
49181
    @Override
49182
    public String toString() {
49183
      StringBuilder sb = new StringBuilder("getTransactionsRequiringExtraProcessing_args(");
49184
      boolean first = true;
49185
 
49186
      sb.append("category:");
49187
      if (this.category == null) {
49188
        sb.append("null");
49189
      } else {
49190
        sb.append(this.category);
49191
      }
49192
      first = false;
49193
      sb.append(")");
49194
      return sb.toString();
49195
    }
49196
 
49197
    public void validate() throws org.apache.thrift.TException {
49198
      // check for required fields
49199
    }
49200
 
49201
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49202
      try {
49203
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49204
      } catch (org.apache.thrift.TException te) {
49205
        throw new java.io.IOException(te);
49206
      }
49207
    }
49208
 
49209
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49210
      try {
49211
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49212
      } catch (org.apache.thrift.TException te) {
49213
        throw new java.io.IOException(te);
49214
      }
49215
    }
49216
 
49217
  }
49218
 
49219
  public static class getTransactionsRequiringExtraProcessing_result implements org.apache.thrift.TBase<getTransactionsRequiringExtraProcessing_result, getTransactionsRequiringExtraProcessing_result._Fields>, java.io.Serializable, Cloneable   {
49220
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsRequiringExtraProcessing_result");
49221
 
49222
    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);
49223
 
49224
    private List<Long> success; // required
49225
 
49226
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49227
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49228
      SUCCESS((short)0, "success");
49229
 
49230
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49231
 
49232
      static {
49233
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49234
          byName.put(field.getFieldName(), field);
49235
        }
49236
      }
49237
 
49238
      /**
49239
       * Find the _Fields constant that matches fieldId, or null if its not found.
49240
       */
49241
      public static _Fields findByThriftId(int fieldId) {
49242
        switch(fieldId) {
49243
          case 0: // SUCCESS
49244
            return SUCCESS;
49245
          default:
49246
            return null;
49247
        }
49248
      }
49249
 
49250
      /**
49251
       * Find the _Fields constant that matches fieldId, throwing an exception
49252
       * if it is not found.
49253
       */
49254
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49255
        _Fields fields = findByThriftId(fieldId);
49256
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49257
        return fields;
49258
      }
49259
 
49260
      /**
49261
       * Find the _Fields constant that matches name, or null if its not found.
49262
       */
49263
      public static _Fields findByName(String name) {
49264
        return byName.get(name);
49265
      }
49266
 
49267
      private final short _thriftId;
49268
      private final String _fieldName;
49269
 
49270
      _Fields(short thriftId, String fieldName) {
49271
        _thriftId = thriftId;
49272
        _fieldName = fieldName;
49273
      }
49274
 
49275
      public short getThriftFieldId() {
49276
        return _thriftId;
49277
      }
49278
 
49279
      public String getFieldName() {
49280
        return _fieldName;
49281
      }
49282
    }
49283
 
49284
    // isset id assignments
49285
 
49286
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49287
    static {
49288
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49289
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49290
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
49291
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
49292
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49293
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsRequiringExtraProcessing_result.class, metaDataMap);
49294
    }
49295
 
49296
    public getTransactionsRequiringExtraProcessing_result() {
49297
    }
49298
 
49299
    public getTransactionsRequiringExtraProcessing_result(
49300
      List<Long> success)
49301
    {
49302
      this();
49303
      this.success = success;
49304
    }
49305
 
49306
    /**
49307
     * Performs a deep copy on <i>other</i>.
49308
     */
49309
    public getTransactionsRequiringExtraProcessing_result(getTransactionsRequiringExtraProcessing_result other) {
49310
      if (other.isSetSuccess()) {
49311
        List<Long> __this__success = new ArrayList<Long>();
49312
        for (Long other_element : other.success) {
49313
          __this__success.add(other_element);
49314
        }
49315
        this.success = __this__success;
49316
      }
49317
    }
49318
 
49319
    public getTransactionsRequiringExtraProcessing_result deepCopy() {
49320
      return new getTransactionsRequiringExtraProcessing_result(this);
49321
    }
49322
 
49323
    @Override
49324
    public void clear() {
49325
      this.success = null;
49326
    }
49327
 
49328
    public int getSuccessSize() {
49329
      return (this.success == null) ? 0 : this.success.size();
49330
    }
49331
 
49332
    public java.util.Iterator<Long> getSuccessIterator() {
49333
      return (this.success == null) ? null : this.success.iterator();
49334
    }
49335
 
49336
    public void addToSuccess(long elem) {
49337
      if (this.success == null) {
49338
        this.success = new ArrayList<Long>();
49339
      }
49340
      this.success.add(elem);
49341
    }
49342
 
49343
    public List<Long> getSuccess() {
49344
      return this.success;
49345
    }
49346
 
49347
    public void setSuccess(List<Long> success) {
49348
      this.success = success;
49349
    }
49350
 
49351
    public void unsetSuccess() {
49352
      this.success = null;
49353
    }
49354
 
49355
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
49356
    public boolean isSetSuccess() {
49357
      return this.success != null;
49358
    }
49359
 
49360
    public void setSuccessIsSet(boolean value) {
49361
      if (!value) {
49362
        this.success = null;
49363
      }
49364
    }
49365
 
49366
    public void setFieldValue(_Fields field, Object value) {
49367
      switch (field) {
49368
      case SUCCESS:
49369
        if (value == null) {
49370
          unsetSuccess();
49371
        } else {
49372
          setSuccess((List<Long>)value);
49373
        }
49374
        break;
49375
 
49376
      }
49377
    }
49378
 
49379
    public Object getFieldValue(_Fields field) {
49380
      switch (field) {
49381
      case SUCCESS:
49382
        return getSuccess();
49383
 
49384
      }
49385
      throw new IllegalStateException();
49386
    }
49387
 
49388
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49389
    public boolean isSet(_Fields field) {
49390
      if (field == null) {
49391
        throw new IllegalArgumentException();
49392
      }
49393
 
49394
      switch (field) {
49395
      case SUCCESS:
49396
        return isSetSuccess();
49397
      }
49398
      throw new IllegalStateException();
49399
    }
49400
 
49401
    @Override
49402
    public boolean equals(Object that) {
49403
      if (that == null)
49404
        return false;
49405
      if (that instanceof getTransactionsRequiringExtraProcessing_result)
49406
        return this.equals((getTransactionsRequiringExtraProcessing_result)that);
49407
      return false;
49408
    }
49409
 
49410
    public boolean equals(getTransactionsRequiringExtraProcessing_result that) {
49411
      if (that == null)
49412
        return false;
49413
 
49414
      boolean this_present_success = true && this.isSetSuccess();
49415
      boolean that_present_success = true && that.isSetSuccess();
49416
      if (this_present_success || that_present_success) {
49417
        if (!(this_present_success && that_present_success))
49418
          return false;
49419
        if (!this.success.equals(that.success))
49420
          return false;
49421
      }
49422
 
49423
      return true;
49424
    }
49425
 
49426
    @Override
49427
    public int hashCode() {
49428
      return 0;
49429
    }
49430
 
49431
    public int compareTo(getTransactionsRequiringExtraProcessing_result other) {
49432
      if (!getClass().equals(other.getClass())) {
49433
        return getClass().getName().compareTo(other.getClass().getName());
49434
      }
49435
 
49436
      int lastComparison = 0;
49437
      getTransactionsRequiringExtraProcessing_result typedOther = (getTransactionsRequiringExtraProcessing_result)other;
49438
 
49439
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
49440
      if (lastComparison != 0) {
49441
        return lastComparison;
49442
      }
49443
      if (isSetSuccess()) {
49444
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
49445
        if (lastComparison != 0) {
49446
          return lastComparison;
49447
        }
49448
      }
49449
      return 0;
49450
    }
49451
 
49452
    public _Fields fieldForId(int fieldId) {
49453
      return _Fields.findByThriftId(fieldId);
49454
    }
49455
 
49456
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49457
      org.apache.thrift.protocol.TField field;
49458
      iprot.readStructBegin();
49459
      while (true)
49460
      {
49461
        field = iprot.readFieldBegin();
49462
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49463
          break;
49464
        }
49465
        switch (field.id) {
49466
          case 0: // SUCCESS
49467
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49468
              {
4133 chandransh 49469
                org.apache.thrift.protocol.TList _list131 = iprot.readListBegin();
49470
                this.success = new ArrayList<Long>(_list131.size);
49471
                for (int _i132 = 0; _i132 < _list131.size; ++_i132)
4008 mandeep.dh 49472
                {
4133 chandransh 49473
                  long _elem133; // required
49474
                  _elem133 = iprot.readI64();
49475
                  this.success.add(_elem133);
4008 mandeep.dh 49476
                }
49477
                iprot.readListEnd();
49478
              }
49479
            } else { 
49480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49481
            }
49482
            break;
49483
          default:
49484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49485
        }
49486
        iprot.readFieldEnd();
49487
      }
49488
      iprot.readStructEnd();
49489
      validate();
49490
    }
49491
 
49492
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49493
      oprot.writeStructBegin(STRUCT_DESC);
49494
 
49495
      if (this.isSetSuccess()) {
49496
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49497
        {
49498
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
4133 chandransh 49499
          for (long _iter134 : this.success)
4008 mandeep.dh 49500
          {
4133 chandransh 49501
            oprot.writeI64(_iter134);
4008 mandeep.dh 49502
          }
49503
          oprot.writeListEnd();
49504
        }
49505
        oprot.writeFieldEnd();
49506
      }
49507
      oprot.writeFieldStop();
49508
      oprot.writeStructEnd();
49509
    }
49510
 
49511
    @Override
49512
    public String toString() {
49513
      StringBuilder sb = new StringBuilder("getTransactionsRequiringExtraProcessing_result(");
49514
      boolean first = true;
49515
 
49516
      sb.append("success:");
49517
      if (this.success == null) {
49518
        sb.append("null");
49519
      } else {
49520
        sb.append(this.success);
49521
      }
49522
      first = false;
49523
      sb.append(")");
49524
      return sb.toString();
49525
    }
49526
 
49527
    public void validate() throws org.apache.thrift.TException {
49528
      // check for required fields
49529
    }
49530
 
49531
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49532
      try {
49533
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49534
      } catch (org.apache.thrift.TException te) {
49535
        throw new java.io.IOException(te);
49536
      }
49537
    }
49538
 
49539
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49540
      try {
49541
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49542
      } catch (org.apache.thrift.TException te) {
49543
        throw new java.io.IOException(te);
49544
      }
49545
    }
49546
 
49547
  }
49548
 
49549
  public static class markTransactionAsProcessed_args implements org.apache.thrift.TBase<markTransactionAsProcessed_args, markTransactionAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
49550
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransactionAsProcessed_args");
49551
 
49552
    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);
49553
    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);
49554
 
49555
    private long transactionId; // required
49556
    private ExtraTransactionProcessingType category; // required
49557
 
49558
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49559
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49560
      TRANSACTION_ID((short)1, "transactionId"),
49561
      /**
49562
       * 
49563
       * @see ExtraTransactionProcessingType
49564
       */
49565
      CATEGORY((short)2, "category");
49566
 
49567
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49568
 
49569
      static {
49570
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49571
          byName.put(field.getFieldName(), field);
49572
        }
49573
      }
49574
 
49575
      /**
49576
       * Find the _Fields constant that matches fieldId, or null if its not found.
49577
       */
49578
      public static _Fields findByThriftId(int fieldId) {
49579
        switch(fieldId) {
49580
          case 1: // TRANSACTION_ID
49581
            return TRANSACTION_ID;
49582
          case 2: // CATEGORY
49583
            return CATEGORY;
49584
          default:
49585
            return null;
49586
        }
49587
      }
49588
 
49589
      /**
49590
       * Find the _Fields constant that matches fieldId, throwing an exception
49591
       * if it is not found.
49592
       */
49593
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49594
        _Fields fields = findByThriftId(fieldId);
49595
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49596
        return fields;
49597
      }
49598
 
49599
      /**
49600
       * Find the _Fields constant that matches name, or null if its not found.
49601
       */
49602
      public static _Fields findByName(String name) {
49603
        return byName.get(name);
49604
      }
49605
 
49606
      private final short _thriftId;
49607
      private final String _fieldName;
49608
 
49609
      _Fields(short thriftId, String fieldName) {
49610
        _thriftId = thriftId;
49611
        _fieldName = fieldName;
49612
      }
49613
 
49614
      public short getThriftFieldId() {
49615
        return _thriftId;
49616
      }
49617
 
49618
      public String getFieldName() {
49619
        return _fieldName;
49620
      }
49621
    }
49622
 
49623
    // isset id assignments
49624
    private static final int __TRANSACTIONID_ISSET_ID = 0;
49625
    private BitSet __isset_bit_vector = new BitSet(1);
49626
 
49627
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49628
    static {
49629
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49630
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49631
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49632
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49633
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraTransactionProcessingType.class)));
49634
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49635
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransactionAsProcessed_args.class, metaDataMap);
49636
    }
49637
 
49638
    public markTransactionAsProcessed_args() {
49639
    }
49640
 
49641
    public markTransactionAsProcessed_args(
49642
      long transactionId,
49643
      ExtraTransactionProcessingType category)
49644
    {
49645
      this();
49646
      this.transactionId = transactionId;
49647
      setTransactionIdIsSet(true);
49648
      this.category = category;
49649
    }
49650
 
49651
    /**
49652
     * Performs a deep copy on <i>other</i>.
49653
     */
49654
    public markTransactionAsProcessed_args(markTransactionAsProcessed_args other) {
49655
      __isset_bit_vector.clear();
49656
      __isset_bit_vector.or(other.__isset_bit_vector);
49657
      this.transactionId = other.transactionId;
49658
      if (other.isSetCategory()) {
49659
        this.category = other.category;
49660
      }
49661
    }
49662
 
49663
    public markTransactionAsProcessed_args deepCopy() {
49664
      return new markTransactionAsProcessed_args(this);
49665
    }
49666
 
49667
    @Override
49668
    public void clear() {
49669
      setTransactionIdIsSet(false);
49670
      this.transactionId = 0;
49671
      this.category = null;
49672
    }
49673
 
49674
    public long getTransactionId() {
49675
      return this.transactionId;
49676
    }
49677
 
49678
    public void setTransactionId(long transactionId) {
49679
      this.transactionId = transactionId;
49680
      setTransactionIdIsSet(true);
49681
    }
49682
 
49683
    public void unsetTransactionId() {
49684
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
49685
    }
49686
 
49687
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
49688
    public boolean isSetTransactionId() {
49689
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
49690
    }
49691
 
49692
    public void setTransactionIdIsSet(boolean value) {
49693
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
49694
    }
49695
 
49696
    /**
49697
     * 
49698
     * @see ExtraTransactionProcessingType
49699
     */
49700
    public ExtraTransactionProcessingType getCategory() {
49701
      return this.category;
49702
    }
49703
 
49704
    /**
49705
     * 
49706
     * @see ExtraTransactionProcessingType
49707
     */
49708
    public void setCategory(ExtraTransactionProcessingType category) {
49709
      this.category = category;
49710
    }
49711
 
49712
    public void unsetCategory() {
49713
      this.category = null;
49714
    }
49715
 
49716
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
49717
    public boolean isSetCategory() {
49718
      return this.category != null;
49719
    }
49720
 
49721
    public void setCategoryIsSet(boolean value) {
49722
      if (!value) {
49723
        this.category = null;
49724
      }
49725
    }
49726
 
49727
    public void setFieldValue(_Fields field, Object value) {
49728
      switch (field) {
49729
      case TRANSACTION_ID:
49730
        if (value == null) {
49731
          unsetTransactionId();
49732
        } else {
49733
          setTransactionId((Long)value);
49734
        }
49735
        break;
49736
 
49737
      case CATEGORY:
49738
        if (value == null) {
49739
          unsetCategory();
49740
        } else {
49741
          setCategory((ExtraTransactionProcessingType)value);
49742
        }
49743
        break;
49744
 
49745
      }
49746
    }
49747
 
49748
    public Object getFieldValue(_Fields field) {
49749
      switch (field) {
49750
      case TRANSACTION_ID:
49751
        return Long.valueOf(getTransactionId());
49752
 
49753
      case CATEGORY:
49754
        return getCategory();
49755
 
49756
      }
49757
      throw new IllegalStateException();
49758
    }
49759
 
49760
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49761
    public boolean isSet(_Fields field) {
49762
      if (field == null) {
49763
        throw new IllegalArgumentException();
49764
      }
49765
 
49766
      switch (field) {
49767
      case TRANSACTION_ID:
49768
        return isSetTransactionId();
49769
      case CATEGORY:
49770
        return isSetCategory();
49771
      }
49772
      throw new IllegalStateException();
49773
    }
49774
 
49775
    @Override
49776
    public boolean equals(Object that) {
49777
      if (that == null)
49778
        return false;
49779
      if (that instanceof markTransactionAsProcessed_args)
49780
        return this.equals((markTransactionAsProcessed_args)that);
49781
      return false;
49782
    }
49783
 
49784
    public boolean equals(markTransactionAsProcessed_args that) {
49785
      if (that == null)
49786
        return false;
49787
 
49788
      boolean this_present_transactionId = true;
49789
      boolean that_present_transactionId = true;
49790
      if (this_present_transactionId || that_present_transactionId) {
49791
        if (!(this_present_transactionId && that_present_transactionId))
49792
          return false;
49793
        if (this.transactionId != that.transactionId)
49794
          return false;
49795
      }
49796
 
49797
      boolean this_present_category = true && this.isSetCategory();
49798
      boolean that_present_category = true && that.isSetCategory();
49799
      if (this_present_category || that_present_category) {
49800
        if (!(this_present_category && that_present_category))
49801
          return false;
49802
        if (!this.category.equals(that.category))
49803
          return false;
49804
      }
49805
 
49806
      return true;
49807
    }
49808
 
49809
    @Override
49810
    public int hashCode() {
49811
      return 0;
49812
    }
49813
 
49814
    public int compareTo(markTransactionAsProcessed_args other) {
49815
      if (!getClass().equals(other.getClass())) {
49816
        return getClass().getName().compareTo(other.getClass().getName());
49817
      }
49818
 
49819
      int lastComparison = 0;
49820
      markTransactionAsProcessed_args typedOther = (markTransactionAsProcessed_args)other;
49821
 
49822
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
49823
      if (lastComparison != 0) {
49824
        return lastComparison;
49825
      }
49826
      if (isSetTransactionId()) {
49827
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
49828
        if (lastComparison != 0) {
49829
          return lastComparison;
49830
        }
49831
      }
49832
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
49833
      if (lastComparison != 0) {
49834
        return lastComparison;
49835
      }
49836
      if (isSetCategory()) {
49837
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
49838
        if (lastComparison != 0) {
49839
          return lastComparison;
49840
        }
49841
      }
49842
      return 0;
49843
    }
49844
 
49845
    public _Fields fieldForId(int fieldId) {
49846
      return _Fields.findByThriftId(fieldId);
49847
    }
49848
 
49849
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49850
      org.apache.thrift.protocol.TField field;
49851
      iprot.readStructBegin();
49852
      while (true)
49853
      {
49854
        field = iprot.readFieldBegin();
49855
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49856
          break;
49857
        }
49858
        switch (field.id) {
49859
          case 1: // TRANSACTION_ID
49860
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49861
              this.transactionId = iprot.readI64();
49862
              setTransactionIdIsSet(true);
49863
            } else { 
49864
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49865
            }
49866
            break;
49867
          case 2: // CATEGORY
49868
            if (field.type == org.apache.thrift.protocol.TType.I32) {
49869
              this.category = ExtraTransactionProcessingType.findByValue(iprot.readI32());
49870
            } else { 
49871
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49872
            }
49873
            break;
49874
          default:
49875
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49876
        }
49877
        iprot.readFieldEnd();
49878
      }
49879
      iprot.readStructEnd();
49880
      validate();
49881
    }
49882
 
49883
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49884
      validate();
49885
 
49886
      oprot.writeStructBegin(STRUCT_DESC);
49887
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
49888
      oprot.writeI64(this.transactionId);
49889
      oprot.writeFieldEnd();
49890
      if (this.category != null) {
49891
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
49892
        oprot.writeI32(this.category.getValue());
49893
        oprot.writeFieldEnd();
49894
      }
49895
      oprot.writeFieldStop();
49896
      oprot.writeStructEnd();
49897
    }
49898
 
49899
    @Override
49900
    public String toString() {
49901
      StringBuilder sb = new StringBuilder("markTransactionAsProcessed_args(");
49902
      boolean first = true;
49903
 
49904
      sb.append("transactionId:");
49905
      sb.append(this.transactionId);
49906
      first = false;
49907
      if (!first) sb.append(", ");
49908
      sb.append("category:");
49909
      if (this.category == null) {
49910
        sb.append("null");
49911
      } else {
49912
        sb.append(this.category);
49913
      }
49914
      first = false;
49915
      sb.append(")");
49916
      return sb.toString();
49917
    }
49918
 
49919
    public void validate() throws org.apache.thrift.TException {
49920
      // check for required fields
49921
    }
49922
 
49923
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49924
      try {
49925
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49926
      } catch (org.apache.thrift.TException te) {
49927
        throw new java.io.IOException(te);
49928
      }
49929
    }
49930
 
49931
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49932
      try {
49933
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49934
      } catch (org.apache.thrift.TException te) {
49935
        throw new java.io.IOException(te);
49936
      }
49937
    }
49938
 
49939
  }
49940
 
49941
  public static class markTransactionAsProcessed_result implements org.apache.thrift.TBase<markTransactionAsProcessed_result, markTransactionAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
49942
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransactionAsProcessed_result");
49943
 
49944
 
49945
 
49946
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49947
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49948
;
49949
 
49950
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49951
 
49952
      static {
49953
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49954
          byName.put(field.getFieldName(), field);
49955
        }
49956
      }
49957
 
49958
      /**
49959
       * Find the _Fields constant that matches fieldId, or null if its not found.
49960
       */
49961
      public static _Fields findByThriftId(int fieldId) {
49962
        switch(fieldId) {
49963
          default:
49964
            return null;
49965
        }
49966
      }
49967
 
49968
      /**
49969
       * Find the _Fields constant that matches fieldId, throwing an exception
49970
       * if it is not found.
49971
       */
49972
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49973
        _Fields fields = findByThriftId(fieldId);
49974
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49975
        return fields;
49976
      }
49977
 
49978
      /**
49979
       * Find the _Fields constant that matches name, or null if its not found.
49980
       */
49981
      public static _Fields findByName(String name) {
49982
        return byName.get(name);
49983
      }
49984
 
49985
      private final short _thriftId;
49986
      private final String _fieldName;
49987
 
49988
      _Fields(short thriftId, String fieldName) {
49989
        _thriftId = thriftId;
49990
        _fieldName = fieldName;
49991
      }
49992
 
49993
      public short getThriftFieldId() {
49994
        return _thriftId;
49995
      }
49996
 
49997
      public String getFieldName() {
49998
        return _fieldName;
49999
      }
50000
    }
50001
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50002
    static {
50003
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50004
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50005
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransactionAsProcessed_result.class, metaDataMap);
50006
    }
50007
 
50008
    public markTransactionAsProcessed_result() {
50009
    }
50010
 
50011
    /**
50012
     * Performs a deep copy on <i>other</i>.
50013
     */
50014
    public markTransactionAsProcessed_result(markTransactionAsProcessed_result other) {
50015
    }
50016
 
50017
    public markTransactionAsProcessed_result deepCopy() {
50018
      return new markTransactionAsProcessed_result(this);
50019
    }
50020
 
50021
    @Override
50022
    public void clear() {
50023
    }
50024
 
50025
    public void setFieldValue(_Fields field, Object value) {
50026
      switch (field) {
50027
      }
50028
    }
50029
 
50030
    public Object getFieldValue(_Fields field) {
50031
      switch (field) {
50032
      }
50033
      throw new IllegalStateException();
50034
    }
50035
 
50036
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50037
    public boolean isSet(_Fields field) {
50038
      if (field == null) {
50039
        throw new IllegalArgumentException();
50040
      }
50041
 
50042
      switch (field) {
50043
      }
50044
      throw new IllegalStateException();
50045
    }
50046
 
50047
    @Override
50048
    public boolean equals(Object that) {
50049
      if (that == null)
50050
        return false;
50051
      if (that instanceof markTransactionAsProcessed_result)
50052
        return this.equals((markTransactionAsProcessed_result)that);
50053
      return false;
50054
    }
50055
 
50056
    public boolean equals(markTransactionAsProcessed_result that) {
50057
      if (that == null)
50058
        return false;
50059
 
50060
      return true;
50061
    }
50062
 
50063
    @Override
50064
    public int hashCode() {
50065
      return 0;
50066
    }
50067
 
50068
    public int compareTo(markTransactionAsProcessed_result other) {
50069
      if (!getClass().equals(other.getClass())) {
50070
        return getClass().getName().compareTo(other.getClass().getName());
50071
      }
50072
 
50073
      int lastComparison = 0;
50074
      markTransactionAsProcessed_result typedOther = (markTransactionAsProcessed_result)other;
50075
 
50076
      return 0;
50077
    }
50078
 
50079
    public _Fields fieldForId(int fieldId) {
50080
      return _Fields.findByThriftId(fieldId);
50081
    }
50082
 
50083
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50084
      org.apache.thrift.protocol.TField field;
50085
      iprot.readStructBegin();
50086
      while (true)
50087
      {
50088
        field = iprot.readFieldBegin();
50089
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50090
          break;
50091
        }
50092
        switch (field.id) {
50093
          default:
50094
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50095
        }
50096
        iprot.readFieldEnd();
50097
      }
50098
      iprot.readStructEnd();
50099
      validate();
50100
    }
50101
 
50102
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50103
      oprot.writeStructBegin(STRUCT_DESC);
50104
 
50105
      oprot.writeFieldStop();
50106
      oprot.writeStructEnd();
50107
    }
50108
 
50109
    @Override
50110
    public String toString() {
50111
      StringBuilder sb = new StringBuilder("markTransactionAsProcessed_result(");
50112
      boolean first = true;
50113
 
50114
      sb.append(")");
50115
      return sb.toString();
50116
    }
50117
 
50118
    public void validate() throws org.apache.thrift.TException {
50119
      // check for required fields
50120
    }
50121
 
50122
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50123
      try {
50124
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50125
      } catch (org.apache.thrift.TException te) {
50126
        throw new java.io.IOException(te);
50127
      }
50128
    }
50129
 
50130
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50131
      try {
50132
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50133
      } catch (org.apache.thrift.TException te) {
50134
        throw new java.io.IOException(te);
50135
      }
50136
    }
50137
 
50138
  }
50139
 
4018 chandransh 50140
  public static class getItemWiseRiskyOrdersCount_args implements org.apache.thrift.TBase<getItemWiseRiskyOrdersCount_args, getItemWiseRiskyOrdersCount_args._Fields>, java.io.Serializable, Cloneable   {
50141
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemWiseRiskyOrdersCount_args");
50142
 
50143
 
50144
 
50145
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50146
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50147
;
50148
 
50149
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50150
 
50151
      static {
50152
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50153
          byName.put(field.getFieldName(), field);
50154
        }
50155
      }
50156
 
50157
      /**
50158
       * Find the _Fields constant that matches fieldId, or null if its not found.
50159
       */
50160
      public static _Fields findByThriftId(int fieldId) {
50161
        switch(fieldId) {
50162
          default:
50163
            return null;
50164
        }
50165
      }
50166
 
50167
      /**
50168
       * Find the _Fields constant that matches fieldId, throwing an exception
50169
       * if it is not found.
50170
       */
50171
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50172
        _Fields fields = findByThriftId(fieldId);
50173
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50174
        return fields;
50175
      }
50176
 
50177
      /**
50178
       * Find the _Fields constant that matches name, or null if its not found.
50179
       */
50180
      public static _Fields findByName(String name) {
50181
        return byName.get(name);
50182
      }
50183
 
50184
      private final short _thriftId;
50185
      private final String _fieldName;
50186
 
50187
      _Fields(short thriftId, String fieldName) {
50188
        _thriftId = thriftId;
50189
        _fieldName = fieldName;
50190
      }
50191
 
50192
      public short getThriftFieldId() {
50193
        return _thriftId;
50194
      }
50195
 
50196
      public String getFieldName() {
50197
        return _fieldName;
50198
      }
50199
    }
50200
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50201
    static {
50202
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50203
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50204
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemWiseRiskyOrdersCount_args.class, metaDataMap);
50205
    }
50206
 
50207
    public getItemWiseRiskyOrdersCount_args() {
50208
    }
50209
 
50210
    /**
50211
     * Performs a deep copy on <i>other</i>.
50212
     */
50213
    public getItemWiseRiskyOrdersCount_args(getItemWiseRiskyOrdersCount_args other) {
50214
    }
50215
 
50216
    public getItemWiseRiskyOrdersCount_args deepCopy() {
50217
      return new getItemWiseRiskyOrdersCount_args(this);
50218
    }
50219
 
50220
    @Override
50221
    public void clear() {
50222
    }
50223
 
50224
    public void setFieldValue(_Fields field, Object value) {
50225
      switch (field) {
50226
      }
50227
    }
50228
 
50229
    public Object getFieldValue(_Fields field) {
50230
      switch (field) {
50231
      }
50232
      throw new IllegalStateException();
50233
    }
50234
 
50235
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50236
    public boolean isSet(_Fields field) {
50237
      if (field == null) {
50238
        throw new IllegalArgumentException();
50239
      }
50240
 
50241
      switch (field) {
50242
      }
50243
      throw new IllegalStateException();
50244
    }
50245
 
50246
    @Override
50247
    public boolean equals(Object that) {
50248
      if (that == null)
50249
        return false;
50250
      if (that instanceof getItemWiseRiskyOrdersCount_args)
50251
        return this.equals((getItemWiseRiskyOrdersCount_args)that);
50252
      return false;
50253
    }
50254
 
50255
    public boolean equals(getItemWiseRiskyOrdersCount_args that) {
50256
      if (that == null)
50257
        return false;
50258
 
50259
      return true;
50260
    }
50261
 
50262
    @Override
50263
    public int hashCode() {
50264
      return 0;
50265
    }
50266
 
50267
    public int compareTo(getItemWiseRiskyOrdersCount_args other) {
50268
      if (!getClass().equals(other.getClass())) {
50269
        return getClass().getName().compareTo(other.getClass().getName());
50270
      }
50271
 
50272
      int lastComparison = 0;
50273
      getItemWiseRiskyOrdersCount_args typedOther = (getItemWiseRiskyOrdersCount_args)other;
50274
 
50275
      return 0;
50276
    }
50277
 
50278
    public _Fields fieldForId(int fieldId) {
50279
      return _Fields.findByThriftId(fieldId);
50280
    }
50281
 
50282
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50283
      org.apache.thrift.protocol.TField field;
50284
      iprot.readStructBegin();
50285
      while (true)
50286
      {
50287
        field = iprot.readFieldBegin();
50288
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50289
          break;
50290
        }
50291
        switch (field.id) {
50292
          default:
50293
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50294
        }
50295
        iprot.readFieldEnd();
50296
      }
50297
      iprot.readStructEnd();
50298
      validate();
50299
    }
50300
 
50301
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50302
      validate();
50303
 
50304
      oprot.writeStructBegin(STRUCT_DESC);
50305
      oprot.writeFieldStop();
50306
      oprot.writeStructEnd();
50307
    }
50308
 
50309
    @Override
50310
    public String toString() {
50311
      StringBuilder sb = new StringBuilder("getItemWiseRiskyOrdersCount_args(");
50312
      boolean first = true;
50313
 
50314
      sb.append(")");
50315
      return sb.toString();
50316
    }
50317
 
50318
    public void validate() throws org.apache.thrift.TException {
50319
      // check for required fields
50320
    }
50321
 
50322
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50323
      try {
50324
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50325
      } catch (org.apache.thrift.TException te) {
50326
        throw new java.io.IOException(te);
50327
      }
50328
    }
50329
 
50330
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50331
      try {
50332
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50333
      } catch (org.apache.thrift.TException te) {
50334
        throw new java.io.IOException(te);
50335
      }
50336
    }
50337
 
50338
  }
50339
 
50340
  public static class getItemWiseRiskyOrdersCount_result implements org.apache.thrift.TBase<getItemWiseRiskyOrdersCount_result, getItemWiseRiskyOrdersCount_result._Fields>, java.io.Serializable, Cloneable   {
50341
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemWiseRiskyOrdersCount_result");
50342
 
50343
    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);
50344
 
50345
    private Map<Long,Long> success; // required
50346
 
50347
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50348
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50349
      SUCCESS((short)0, "success");
50350
 
50351
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50352
 
50353
      static {
50354
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50355
          byName.put(field.getFieldName(), field);
50356
        }
50357
      }
50358
 
50359
      /**
50360
       * Find the _Fields constant that matches fieldId, or null if its not found.
50361
       */
50362
      public static _Fields findByThriftId(int fieldId) {
50363
        switch(fieldId) {
50364
          case 0: // SUCCESS
50365
            return SUCCESS;
50366
          default:
50367
            return null;
50368
        }
50369
      }
50370
 
50371
      /**
50372
       * Find the _Fields constant that matches fieldId, throwing an exception
50373
       * if it is not found.
50374
       */
50375
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50376
        _Fields fields = findByThriftId(fieldId);
50377
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50378
        return fields;
50379
      }
50380
 
50381
      /**
50382
       * Find the _Fields constant that matches name, or null if its not found.
50383
       */
50384
      public static _Fields findByName(String name) {
50385
        return byName.get(name);
50386
      }
50387
 
50388
      private final short _thriftId;
50389
      private final String _fieldName;
50390
 
50391
      _Fields(short thriftId, String fieldName) {
50392
        _thriftId = thriftId;
50393
        _fieldName = fieldName;
50394
      }
50395
 
50396
      public short getThriftFieldId() {
50397
        return _thriftId;
50398
      }
50399
 
50400
      public String getFieldName() {
50401
        return _fieldName;
50402
      }
50403
    }
50404
 
50405
    // isset id assignments
50406
 
50407
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50408
    static {
50409
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50410
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50411
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
50412
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
50413
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
50414
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50415
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemWiseRiskyOrdersCount_result.class, metaDataMap);
50416
    }
50417
 
50418
    public getItemWiseRiskyOrdersCount_result() {
50419
    }
50420
 
50421
    public getItemWiseRiskyOrdersCount_result(
50422
      Map<Long,Long> success)
50423
    {
50424
      this();
50425
      this.success = success;
50426
    }
50427
 
50428
    /**
50429
     * Performs a deep copy on <i>other</i>.
50430
     */
50431
    public getItemWiseRiskyOrdersCount_result(getItemWiseRiskyOrdersCount_result other) {
50432
      if (other.isSetSuccess()) {
50433
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
50434
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
50435
 
50436
          Long other_element_key = other_element.getKey();
50437
          Long other_element_value = other_element.getValue();
50438
 
50439
          Long __this__success_copy_key = other_element_key;
50440
 
50441
          Long __this__success_copy_value = other_element_value;
50442
 
50443
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
50444
        }
50445
        this.success = __this__success;
50446
      }
50447
    }
50448
 
50449
    public getItemWiseRiskyOrdersCount_result deepCopy() {
50450
      return new getItemWiseRiskyOrdersCount_result(this);
50451
    }
50452
 
50453
    @Override
50454
    public void clear() {
50455
      this.success = null;
50456
    }
50457
 
50458
    public int getSuccessSize() {
50459
      return (this.success == null) ? 0 : this.success.size();
50460
    }
50461
 
50462
    public void putToSuccess(long key, long val) {
50463
      if (this.success == null) {
50464
        this.success = new HashMap<Long,Long>();
50465
      }
50466
      this.success.put(key, val);
50467
    }
50468
 
50469
    public Map<Long,Long> getSuccess() {
50470
      return this.success;
50471
    }
50472
 
50473
    public void setSuccess(Map<Long,Long> success) {
50474
      this.success = success;
50475
    }
50476
 
50477
    public void unsetSuccess() {
50478
      this.success = null;
50479
    }
50480
 
50481
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
50482
    public boolean isSetSuccess() {
50483
      return this.success != null;
50484
    }
50485
 
50486
    public void setSuccessIsSet(boolean value) {
50487
      if (!value) {
50488
        this.success = null;
50489
      }
50490
    }
50491
 
50492
    public void setFieldValue(_Fields field, Object value) {
50493
      switch (field) {
50494
      case SUCCESS:
50495
        if (value == null) {
50496
          unsetSuccess();
50497
        } else {
50498
          setSuccess((Map<Long,Long>)value);
50499
        }
50500
        break;
50501
 
50502
      }
50503
    }
50504
 
50505
    public Object getFieldValue(_Fields field) {
50506
      switch (field) {
50507
      case SUCCESS:
50508
        return getSuccess();
50509
 
50510
      }
50511
      throw new IllegalStateException();
50512
    }
50513
 
50514
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50515
    public boolean isSet(_Fields field) {
50516
      if (field == null) {
50517
        throw new IllegalArgumentException();
50518
      }
50519
 
50520
      switch (field) {
50521
      case SUCCESS:
50522
        return isSetSuccess();
50523
      }
50524
      throw new IllegalStateException();
50525
    }
50526
 
50527
    @Override
50528
    public boolean equals(Object that) {
50529
      if (that == null)
50530
        return false;
50531
      if (that instanceof getItemWiseRiskyOrdersCount_result)
50532
        return this.equals((getItemWiseRiskyOrdersCount_result)that);
50533
      return false;
50534
    }
50535
 
50536
    public boolean equals(getItemWiseRiskyOrdersCount_result that) {
50537
      if (that == null)
50538
        return false;
50539
 
50540
      boolean this_present_success = true && this.isSetSuccess();
50541
      boolean that_present_success = true && that.isSetSuccess();
50542
      if (this_present_success || that_present_success) {
50543
        if (!(this_present_success && that_present_success))
50544
          return false;
50545
        if (!this.success.equals(that.success))
50546
          return false;
50547
      }
50548
 
50549
      return true;
50550
    }
50551
 
50552
    @Override
50553
    public int hashCode() {
50554
      return 0;
50555
    }
50556
 
50557
    public int compareTo(getItemWiseRiskyOrdersCount_result other) {
50558
      if (!getClass().equals(other.getClass())) {
50559
        return getClass().getName().compareTo(other.getClass().getName());
50560
      }
50561
 
50562
      int lastComparison = 0;
50563
      getItemWiseRiskyOrdersCount_result typedOther = (getItemWiseRiskyOrdersCount_result)other;
50564
 
50565
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
50566
      if (lastComparison != 0) {
50567
        return lastComparison;
50568
      }
50569
      if (isSetSuccess()) {
50570
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
50571
        if (lastComparison != 0) {
50572
          return lastComparison;
50573
        }
50574
      }
50575
      return 0;
50576
    }
50577
 
50578
    public _Fields fieldForId(int fieldId) {
50579
      return _Fields.findByThriftId(fieldId);
50580
    }
50581
 
50582
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50583
      org.apache.thrift.protocol.TField field;
50584
      iprot.readStructBegin();
50585
      while (true)
50586
      {
50587
        field = iprot.readFieldBegin();
50588
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50589
          break;
50590
        }
50591
        switch (field.id) {
50592
          case 0: // SUCCESS
50593
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
50594
              {
4133 chandransh 50595
                org.apache.thrift.protocol.TMap _map135 = iprot.readMapBegin();
50596
                this.success = new HashMap<Long,Long>(2*_map135.size);
50597
                for (int _i136 = 0; _i136 < _map135.size; ++_i136)
4018 chandransh 50598
                {
4133 chandransh 50599
                  long _key137; // required
50600
                  long _val138; // required
50601
                  _key137 = iprot.readI64();
50602
                  _val138 = iprot.readI64();
50603
                  this.success.put(_key137, _val138);
4018 chandransh 50604
                }
50605
                iprot.readMapEnd();
50606
              }
50607
            } else { 
50608
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50609
            }
50610
            break;
50611
          default:
50612
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50613
        }
50614
        iprot.readFieldEnd();
50615
      }
50616
      iprot.readStructEnd();
50617
      validate();
50618
    }
50619
 
50620
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50621
      oprot.writeStructBegin(STRUCT_DESC);
50622
 
50623
      if (this.isSetSuccess()) {
50624
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50625
        {
50626
          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 50627
          for (Map.Entry<Long, Long> _iter139 : this.success.entrySet())
4018 chandransh 50628
          {
4133 chandransh 50629
            oprot.writeI64(_iter139.getKey());
50630
            oprot.writeI64(_iter139.getValue());
4018 chandransh 50631
          }
50632
          oprot.writeMapEnd();
50633
        }
50634
        oprot.writeFieldEnd();
50635
      }
50636
      oprot.writeFieldStop();
50637
      oprot.writeStructEnd();
50638
    }
50639
 
50640
    @Override
50641
    public String toString() {
50642
      StringBuilder sb = new StringBuilder("getItemWiseRiskyOrdersCount_result(");
50643
      boolean first = true;
50644
 
50645
      sb.append("success:");
50646
      if (this.success == null) {
50647
        sb.append("null");
50648
      } else {
50649
        sb.append(this.success);
50650
      }
50651
      first = false;
50652
      sb.append(")");
50653
      return sb.toString();
50654
    }
50655
 
50656
    public void validate() throws org.apache.thrift.TException {
50657
      // check for required fields
50658
    }
50659
 
50660
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50661
      try {
50662
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50663
      } catch (org.apache.thrift.TException te) {
50664
        throw new java.io.IOException(te);
50665
      }
50666
    }
50667
 
50668
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50669
      try {
50670
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50671
      } catch (org.apache.thrift.TException te) {
50672
        throw new java.io.IOException(te);
50673
      }
50674
    }
50675
 
50676
  }
50677
 
68 ashish 50678
}