Subversion Repositories SmartDukaan

Rev

Rev 3451 | Rev 3553 | 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
    /**
44
     * Returns orders within a range of their billing dates
45
     * 
46
     * @param status
47
     * @param start_billing_date
48
     * @param end_billing_date
49
     * @param warehouse_id
50
     */
3430 rajveer 51
    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 52
 
1382 varun.gupt 53
    /**
3427 chandransh 54
     * Returns orders for a particular provider and warehouse which were shipped between the given dates.
3451 chandransh 55
     * Returned orders comprise of COD orders if cod parameter is true. It comprises of prepaid orders otherwise.
56
     * Pass providerId and warehouseId as -1 to ignore both these parameters.
3427 chandransh 57
     * 
58
     * @param fromShippingDate
59
     * @param toShippingDate
60
     * @param providerId
61
     * @param warehouseId
3451 chandransh 62
     * @param cod
3427 chandransh 63
     */
3451 chandransh 64
    public List<Order> getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException;
3427 chandransh 65
 
66
    /**
1382 varun.gupt 67
     * Returns order ids for orders which can be returned
68
     * 
69
     * @param customer_id
70
     * @param limit
71
     */
3430 rajveer 72
    public List<Long> getReturnableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException;
1382 varun.gupt 73
 
74
    /**
75
     * Returns order ids for orders which can be cancelled
76
     * 
77
     * @param customer_id
78
     * @param limit
79
     */
3430 rajveer 80
    public List<Long> getCancellableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException;
1382 varun.gupt 81
 
3430 rajveer 82
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 83
 
1148 chandransh 84
    /**
1529 ankur.sing 85
     * Returns list of orders for given transaction Id. Also filters based on customer Id so that
86
     * only user who owns the transaction can view its order details.
87
     * 
88
     * @param transactionId
89
     * @param customerId
90
     */
3430 rajveer 91
    public List<Order> getOrdersForTransaction(long transactionId, long customerId) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 92
 
3014 chandransh 93
    /**
94
     * Returns list of orders for the given customer created between the given dates and having the given statuses.
95
     * Pass and empty list to ignore filtering on statuses.
96
     * 
97
     * @param customerId
98
     * @param from_date
99
     * @param to_date
100
     * @param statuses
101
     */
3430 rajveer 102
    public List<Order> getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 103
 
3430 rajveer 104
    public long createOrder(Order order) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 105
 
3430 rajveer 106
    public Order getOrder(long id) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 107
 
3430 rajveer 108
    public List<LineItem> getLineItemsForOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
68 ashish 109
 
758 chandransh 110
    /**
1529 ankur.sing 111
     * Returns an order for the order Id. Also checks if the order belongs to the customer whose Id is passed.
112
     * Throws exception if either order Id is invalid or order does not below to the customer whose Id is passed.
113
     * 
114
     * @param orderId
115
     * @param customerId
116
     */
3430 rajveer 117
    public Order getOrderForCustomer(long orderId, long customerId) throws TransactionServiceException, org.apache.thrift.TException;
1529 ankur.sing 118
 
3430 rajveer 119
    public List<Alert> getAlerts(long orderId, boolean valid) throws org.apache.thrift.TException;
3061 chandransh 120
 
3430 rajveer 121
    public void setAlert(long orderId, boolean unset, long type, String comment) throws org.apache.thrift.TException;
3061 chandransh 122
 
1529 ankur.sing 123
    /**
3061 chandransh 124
     * Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
125
     */
3430 rajveer 126
    public long getValidOrderCount() throws org.apache.thrift.TException;
3061 chandransh 127
 
128
    /**
129
     * Returns the number of distinct customers who have done successful transactions
130
     */
3430 rajveer 131
    public long getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException;
3061 chandransh 132
 
133
    /**
134
     * Returns the minimum and maximum amounts of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
135
     * List contains two values, first minimum amount and second maximum amount.
136
     */
3430 rajveer 137
    public List<Double> getValidOrdersAmountRange() throws org.apache.thrift.TException;
3061 chandransh 138
 
139
    /**
140
     * Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
141
     * If limit is passed as 0, then all valid Orders are returned.
142
     * 
143
     * @param limit
144
     */
3430 rajveer 145
    public List<Order> getValidOrders(long limit) throws org.apache.thrift.TException;
3061 chandransh 146
 
147
    /**
1221 chandransh 148
     * Create a batch of all the pending orders for the given warehouse.
149
     * The returned list is orderd by created_timestamp.
150
     * If there are no pending orders, an empty list is returned.
151
     * 
152
     * @param warehouseId
153
     */
3430 rajveer 154
    public List<Order> batchOrders(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
1221 chandransh 155
 
156
    /**
1209 chandransh 157
     * Mark the given order as out of stock. Throws an exception if the order with the given Id couldn't be found.
158
     * 
159
     * @param orderId
160
     */
3430 rajveer 161
    public boolean markOrderAsOutOfStock(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
1209 chandransh 162
 
163
    /**
3061 chandransh 164
     * Marks the given order as SUBMITTED_FOR_PROCESSING and updates the verified
165
     * timestamp. It is intended to be used for COD orders but can be harmlessly
166
     * used for all other orders as well.
167
     * Throws an exception if no such order exists.
758 chandransh 168
     * 
3061 chandransh 169
     * @param orderId
170
     */
3430 rajveer 171
    public boolean verifyOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
3061 chandransh 172
 
173
    /**
174
     * Marks the given order as ACCEPTED and updates the accepted timestamp. If the
175
     * given order is not a COD order, it also captures the payment if the same has
176
     * not been captured.
177
     * Throws an exception if no such order exists.
178
     * 
179
     * @param orderId
180
     */
3430 rajveer 181
    public boolean acceptOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
3061 chandransh 182
 
3430 rajveer 183
    public boolean billOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
3061 chandransh 184
 
185
    /**
186
     * Add billing details such as the bill number and the biller to the Order.
187
     * Should be used when the bill is issued by a 3rd party and we've to feed
188
     * the information into our system.
189
     * 
190
     * @param orderId
191
     * @param invoice_number
192
     * @param billed_by
193
     */
3430 rajveer 194
    public boolean addBillingDetails(long orderId, String invoice_number, String billed_by) throws TransactionServiceException, org.apache.thrift.TException;
3061 chandransh 195
 
196
    /**
197
     * Adds jacket number, item number and IMEI no. to the order. Doesn't update
198
     * the IMEI no. if a -1 is supplied.
199
     * Also, it generates an invoice number for the order, marks the order as
200
     * BILLED and sets the billing timestamp.
201
     * It should be used when we are billing the orders ourselves.
202
     * 
203
     * Returns false if it doesn't find the order with the given ID.
204
     * 
205
     * @param orderId
206
     * @param jacketNumber
207
     * @param imeiNumber
208
     * @param itemNumber
209
     * @param billedBy
210
     * @param billingType
211
     */
3430 rajveer 212
    public boolean addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws TransactionServiceException, org.apache.thrift.TException;
3061 chandransh 213
 
214
    /**
215
     * Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
216
     * given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
217
     * 
758 chandransh 218
     * @param warehouseId
219
     * @param providerId
3061 chandransh 220
     * @param cod
758 chandransh 221
     */
3430 rajveer 222
    public boolean markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException;
758 chandransh 223
 
1114 chandransh 224
    /**
225
     * Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
226
     * Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
227
     * Raises an exception if we encounter report for an AWB number that we did not ship.
228
     * 
229
     * @param providerId
230
     * @param pickupDetails
231
     */
3430 rajveer 232
    public List<Order> markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws TransactionServiceException, org.apache.thrift.TException;
1114 chandransh 233
 
1133 chandransh 234
    /**
235
     * Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
236
     * the name of the receiver.
237
     * Raises an exception if we encounter report for an AWB number that we did not ship.
238
     * 
239
     * @param providerId
240
     * @param deliveredOrders
241
     */
3430 rajveer 242
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TransactionServiceException, org.apache.thrift.TException;
1133 chandransh 243
 
244
    /**
245
     * Mark all orders with AWBs in the given map as failed. Also sets the delivery timestamp.
246
     * Raises an exception if we encounter report for an AWB number that we did not ship.
247
     * 
248
     * @param providerId
249
     * @param returnedOrders
250
     */
3430 rajveer 251
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, org.apache.thrift.TException;
1133 chandransh 252
 
1245 chandransh 253
    /**
254
     * Update the status description of orders whose AWB numbers are keys of the Map.
255
     * 
256
     * @param providerId
257
     * @param undeliveredOrders
258
     */
3430 rajveer 259
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, org.apache.thrift.TException;
1245 chandransh 260
 
1406 ankur.sing 261
    /**
262
     * Returns the list of orders whose delivery time has passed but have not been
263
     * delivered yet for the given provider and warehouse. To get a complete list of
264
     * undelivered orders, pass them as -1.
265
     * Returns an empty list if no such orders exist.
266
     * 
267
     * @param providerId
268
     * @param warehouseId
269
     */
3430 rajveer 270
    public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException;
1406 ankur.sing 271
 
1598 ankur.sing 272
    /**
2538 chandransh 273
     * 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.
274
     * Returns the final flag status.
275
     * Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
276
     * 
277
     * @param orderId
278
     */
3430 rajveer 279
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
2538 chandransh 280
 
281
    /**
282
     * Sends out an email to the account manager of the original courier provider used to ship the order.
283
     * If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUESTED.
284
     * If the order status was DOA_PICKUP_REQUESTED, it is left unchanged.
285
     * For any other status, it returns false.
286
     * Throws an exception if the order with the given id couldn't be found.
287
     * 
288
     * @param orderId
289
     */
3430 rajveer 290
    public boolean requestPickupNumber(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
2538 chandransh 291
 
292
    /**
293
     * If the order status is DOA_PICKUP_REQUESTED, it does the following
294
     * 	1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
295
     * 	2. Changes order status to be DOA_PICKUP_AUTHORIZED.
296
     * 	3. Returns true
2590 chandransh 297
     * If the order is in any other status, it returns false.
2538 chandransh 298
     * Throws an exception if the order with the given id couldn't be found.
299
     * 
300
     * @param orderId
301
     * @param pickupNumber
302
     */
3430 rajveer 303
    public boolean authorizePickup(long orderId, String pickupNumber) throws TransactionServiceException, org.apache.thrift.TException;
2538 chandransh 304
 
2590 chandransh 305
    /**
2765 chandransh 306
     * Marks all DOA_PICKUP_AUTHORIZED orders of the previous day for a provider as DOA_RETURN_IN_TRANSIT.
307
     * Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
308
     * 
309
     * @param providerId
310
     * @param pickupDetails
311
     */
3430 rajveer 312
    public List<Order> markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException;
2765 chandransh 313
 
314
    /**
2601 chandransh 315
     * 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 316
     * If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
2590 chandransh 317
     * If the order is in any other state, it returns false.
318
     * Throws an exception if the order with the given id couldn't be found.
319
     * 
320
     * @param orderId
321
     */
3430 rajveer 322
    public boolean receiveReturn(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
2590 chandransh 323
 
324
    /**
2601 chandransh 325
     * Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
2615 chandransh 326
     * 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 327
     * If the order is in any other state, it returns false.
328
     * Throws an exception if the order with the given id couldn't be found.
329
     * 
330
     * @param orderId
331
     * @param isValid
332
     */
3430 rajveer 333
    public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, org.apache.thrift.TException;
2590 chandransh 334
 
2615 chandransh 335
    /**
336
     * If the order is in SALES_RET_RECEIVED or DOA_CERT_INVALID state, it does the following:
337
     * 	1. Creates a new order for processing in the BILLED state. All billing information is saved.
338
     * 	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.
339
     * 	
340
     * If the order is in DOA_CERT_VALID state, it does the following:
341
     * 	1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
342
     * 	2. Creates a return order for the warehouse executive to return the DOA material.
343
     * 	3. Marks the current order as the final DOA_RESHIPPED state.
344
     * 
345
     * Returns the id of the newly created order.
346
     * 
347
     * Throws an exception if the order with the given id couldn't be found.
348
     * 
349
     * @param orderId
350
     */
3430 rajveer 351
    public long reshipOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
2615 chandransh 352
 
353
    /**
354
     * If the order is in SALES_RET_RECEIVED, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
355
     * 	1. Creates a refund request for batch processing.
356
     * 	2. Creates a return order for the warehouse executive to return the shipped material.
357
     * 	3. Marks the current order as SALES_RET_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
358
     * 
359
     * If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
360
     * 	1. Creates a refund request for batch processing.
3226 chandransh 361
     * 	2. Cancels the reservation of the item in the warehouse.
362
     * 	3. Marks the current order as the REFUNDED final state.
2615 chandransh 363
     * 
3226 chandransh 364
     * For all COD orders, if the order is in INIT, SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
365
     * 	1. Cancels the reservation of the item in the warehouse.
366
     * 	2. Marks the current order as CANCELED.
367
     * 	
368
     * In all cases, it updates the reason for cancellation or refund and the person who performed the action.
369
     *  
2615 chandransh 370
     * Returns True if it is successful, False otherwise.
371
     * 
372
     * Throws an exception if the order with the given id couldn't be found.
373
     * 
374
     * @param orderId
3226 chandransh 375
     * @param refundedBy
376
     * @param reason
2615 chandransh 377
     */
3430 rajveer 378
    public boolean refundOrder(long orderId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException;
2615 chandransh 379
 
2690 chandransh 380
    /**
381
     * Get all return orders created between the from and to dates for the given warehouse.
382
     * Ignores the warehouse if it is passed as -1.
383
     * 
384
     * @param warehouseId
385
     * @param fromDate
386
     * @param toDate
387
     */
3430 rajveer 388
    public List<ReturnOrder> getReturnOrders(long warehouseId, long fromDate, long toDate) throws org.apache.thrift.TException;
2690 chandransh 389
 
390
    /**
2700 chandransh 391
     * Returns the ReturnOrder corresponding to the given id.
392
     * Throws an exception if the return order with the given id couldn't be found.
393
     * 
394
     * @param id
395
     */
3430 rajveer 396
    public ReturnOrder getReturnOrder(long id) throws TransactionServiceException, org.apache.thrift.TException;
2700 chandransh 397
 
398
    /**
2690 chandransh 399
     * Marks the return order with the given id as processed. Raises an exception if no such return order exists.
400
     * 
401
     * @param returnOrderId
402
     */
3430 rajveer 403
    public void processReturn(long returnOrderId) throws TransactionServiceException, org.apache.thrift.TException;
2690 chandransh 404
 
2819 chandransh 405
    /**
406
     * Creates a purchase order corresponding to all the pending orders of the given warehouse.
2842 chandransh 407
     * Returns the PO no. of the newly created purchase order. Returns -1 no new purchase order had to be created.
2819 chandransh 408
     * 
409
     * @param warehouseId
410
     */
3430 rajveer 411
    public long createPurchaseOrder(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
2819 chandransh 412
 
3451 chandransh 413
    /**
414
     * 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.
415
     * 
416
     * @param orderId
417
     * @param weight
418
     */
419
    public Order updateWeight(long orderId, double weight) throws TransactionServiceException, org.apache.thrift.TException;
420
 
3469 chandransh 421
    /**
422
     * Change the item to be shipped for this order. Also adjusts the reservation in the inventory accordingly.
423
     * Currently, it also ensures that only a different color of the given item is shipped.
424
     * 
425
     * @param orderId
426
     * @param itemId
427
     */
428
    public Order changeItem(long orderId, long itemId) throws TransactionServiceException, org.apache.thrift.TException;
429
 
430
    /**
431
     * Moves the given order to the given warehouse. Also adjusts the inventory reservations accordingly.
432
     * 
433
     * @param orderId
434
     * @param warehouseId
435
     */
436
    public Order shiftToWarehouse(long orderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
437
 
68 ashish 438
  }
439
 
3430 rajveer 440
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
441
 
442
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
443
 
444
    public void getTransaction(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransaction_call> resultHandler) throws org.apache.thrift.TException;
445
 
446
    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;
447
 
448
    public void getTransactionsForShoppingCartId(long shoppingCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsForShoppingCartId_call> resultHandler) throws org.apache.thrift.TException;
449
 
450
    public void getTransactionStatus(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
451
 
452
    public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
453
 
454
    public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException;
455
 
456
    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;
457
 
458
    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;
459
 
3451 chandransh 460
    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 461
 
462
    public void getReturnableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException;
463
 
464
    public void getCancellableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCancellableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException;
465
 
466
    public void changeOrderStatus(long orderId, OrderStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeOrderStatus_call> resultHandler) throws org.apache.thrift.TException;
467
 
468
    public void getOrdersForTransaction(long transactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersForTransaction_call> resultHandler) throws org.apache.thrift.TException;
469
 
470
    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;
471
 
472
    public void createOrder(Order order, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrder_call> resultHandler) throws org.apache.thrift.TException;
473
 
474
    public void getOrder(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrder_call> resultHandler) throws org.apache.thrift.TException;
475
 
476
    public void getLineItemsForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLineItemsForOrder_call> resultHandler) throws org.apache.thrift.TException;
477
 
478
    public void getOrderForCustomer(long orderId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForCustomer_call> resultHandler) throws org.apache.thrift.TException;
479
 
480
    public void getAlerts(long orderId, boolean valid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAlerts_call> resultHandler) throws org.apache.thrift.TException;
481
 
482
    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;
483
 
484
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException;
485
 
486
    public void getNoOfCustomersWithSuccessfulTransaction(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNoOfCustomersWithSuccessfulTransaction_call> resultHandler) throws org.apache.thrift.TException;
487
 
488
    public void getValidOrdersAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrdersAmountRange_call> resultHandler) throws org.apache.thrift.TException;
489
 
490
    public void getValidOrders(long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrders_call> resultHandler) throws org.apache.thrift.TException;
491
 
492
    public void batchOrders(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.batchOrders_call> resultHandler) throws org.apache.thrift.TException;
493
 
494
    public void markOrderAsOutOfStock(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderAsOutOfStock_call> resultHandler) throws org.apache.thrift.TException;
495
 
496
    public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrder_call> resultHandler) throws org.apache.thrift.TException;
497
 
498
    public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrder_call> resultHandler) throws org.apache.thrift.TException;
499
 
500
    public void billOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.billOrder_call> resultHandler) throws org.apache.thrift.TException;
501
 
502
    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;
503
 
504
    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;
505
 
506
    public void markOrdersAsManifested(long warehouseId, long providerId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsManifested_call> resultHandler) throws org.apache.thrift.TException;
507
 
508
    public void markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
509
 
510
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsDelivered_call> resultHandler) throws org.apache.thrift.TException;
511
 
512
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsFailed_call> resultHandler) throws org.apache.thrift.TException;
513
 
514
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateNonDeliveryReason_call> resultHandler) throws org.apache.thrift.TException;
515
 
516
    public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException;
517
 
518
    public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException;
519
 
520
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException;
521
 
522
    public void authorizePickup(long orderId, String pickupNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authorizePickup_call> resultHandler) throws org.apache.thrift.TException;
523
 
524
    public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
525
 
526
    public void receiveReturn(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveReturn_call> resultHandler) throws org.apache.thrift.TException;
527
 
528
    public void validateDoa(long orderId, boolean isValid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateDoa_call> resultHandler) throws org.apache.thrift.TException;
529
 
530
    public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipOrder_call> resultHandler) throws org.apache.thrift.TException;
531
 
532
    public void refundOrder(long orderId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundOrder_call> resultHandler) throws org.apache.thrift.TException;
533
 
534
    public void getReturnOrders(long warehouseId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrders_call> resultHandler) throws org.apache.thrift.TException;
535
 
536
    public void getReturnOrder(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrder_call> resultHandler) throws org.apache.thrift.TException;
537
 
538
    public void processReturn(long returnOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processReturn_call> resultHandler) throws org.apache.thrift.TException;
539
 
540
    public void createPurchaseOrder(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
541
 
3451 chandransh 542
    public void updateWeight(long orderId, double weight, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateWeight_call> resultHandler) throws org.apache.thrift.TException;
543
 
3469 chandransh 544
    public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItem_call> resultHandler) throws org.apache.thrift.TException;
545
 
546
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException;
547
 
3430 rajveer 548
  }
549
 
3374 rajveer 550
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 551
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
552
      public Factory() {}
553
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
554
        return new Client(prot);
555
      }
556
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
557
        return new Client(iprot, oprot);
558
      }
559
    }
560
 
561
    public Client(org.apache.thrift.protocol.TProtocol prot)
68 ashish 562
    {
3430 rajveer 563
      super(prot, prot);
68 ashish 564
    }
565
 
3430 rajveer 566
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 567
      super(iprot, oprot);
68 ashish 568
    }
569
 
3430 rajveer 570
    public long createTransaction(Transaction transaction) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 571
    {
572
      send_createTransaction(transaction);
132 ashish 573
      return recv_createTransaction();
68 ashish 574
    }
575
 
3430 rajveer 576
    public void send_createTransaction(Transaction transaction) throws org.apache.thrift.TException
68 ashish 577
    {
578
      createTransaction_args args = new createTransaction_args();
3430 rajveer 579
      args.setTransaction(transaction);
580
      sendBase("createTransaction", args);
68 ashish 581
    }
582
 
3430 rajveer 583
    public long recv_createTransaction() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 584
    {
585
      createTransaction_result result = new createTransaction_result();
3430 rajveer 586
      receiveBase(result, "createTransaction");
132 ashish 587
      if (result.isSetSuccess()) {
588
        return result.success;
589
      }
68 ashish 590
      if (result.ex != null) {
591
        throw result.ex;
592
      }
3430 rajveer 593
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createTransaction failed: unknown result");
68 ashish 594
    }
595
 
3430 rajveer 596
    public Transaction getTransaction(long id) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 597
    {
598
      send_getTransaction(id);
599
      return recv_getTransaction();
600
    }
601
 
3430 rajveer 602
    public void send_getTransaction(long id) throws org.apache.thrift.TException
68 ashish 603
    {
604
      getTransaction_args args = new getTransaction_args();
3430 rajveer 605
      args.setId(id);
606
      sendBase("getTransaction", args);
68 ashish 607
    }
608
 
3430 rajveer 609
    public Transaction recv_getTransaction() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 610
    {
611
      getTransaction_result result = new getTransaction_result();
3430 rajveer 612
      receiveBase(result, "getTransaction");
68 ashish 613
      if (result.isSetSuccess()) {
614
        return result.success;
615
      }
616
      if (result.ex != null) {
617
        throw result.ex;
618
      }
3430 rajveer 619
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");
68 ashish 620
    }
621
 
3430 rajveer 622
    public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 623
    {
132 ashish 624
      send_getTransactionsForCustomer(customerId, from_date, to_date, status);
68 ashish 625
      return recv_getTransactionsForCustomer();
626
    }
627
 
3430 rajveer 628
    public void send_getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws org.apache.thrift.TException
68 ashish 629
    {
630
      getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();
3430 rajveer 631
      args.setCustomerId(customerId);
632
      args.setFrom_date(from_date);
633
      args.setTo_date(to_date);
634
      args.setStatus(status);
635
      sendBase("getTransactionsForCustomer", args);
68 ashish 636
    }
637
 
3430 rajveer 638
    public List<Transaction> recv_getTransactionsForCustomer() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 639
    {
640
      getTransactionsForCustomer_result result = new getTransactionsForCustomer_result();
3430 rajveer 641
      receiveBase(result, "getTransactionsForCustomer");
68 ashish 642
      if (result.isSetSuccess()) {
643
        return result.success;
644
      }
645
      if (result.ex != null) {
646
        throw result.ex;
647
      }
3430 rajveer 648
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");
68 ashish 649
    }
650
 
3430 rajveer 651
    public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, org.apache.thrift.TException
132 ashish 652
    {
653
      send_getTransactionsForShoppingCartId(shoppingCartId);
654
      return recv_getTransactionsForShoppingCartId();
655
    }
656
 
3430 rajveer 657
    public void send_getTransactionsForShoppingCartId(long shoppingCartId) throws org.apache.thrift.TException
132 ashish 658
    {
659
      getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();
3430 rajveer 660
      args.setShoppingCartId(shoppingCartId);
661
      sendBase("getTransactionsForShoppingCartId", args);
132 ashish 662
    }
663
 
3430 rajveer 664
    public List<Transaction> recv_getTransactionsForShoppingCartId() throws TransactionServiceException, org.apache.thrift.TException
132 ashish 665
    {
666
      getTransactionsForShoppingCartId_result result = new getTransactionsForShoppingCartId_result();
3430 rajveer 667
      receiveBase(result, "getTransactionsForShoppingCartId");
132 ashish 668
      if (result.isSetSuccess()) {
669
        return result.success;
670
      }
671
      if (result.ex != null) {
672
        throw result.ex;
673
      }
3430 rajveer 674
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionsForShoppingCartId failed: unknown result");
132 ashish 675
    }
676
 
3430 rajveer 677
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 678
    {
679
      send_getTransactionStatus(transactionId);
680
      return recv_getTransactionStatus();
681
    }
682
 
3430 rajveer 683
    public void send_getTransactionStatus(long transactionId) throws org.apache.thrift.TException
68 ashish 684
    {
685
      getTransactionStatus_args args = new getTransactionStatus_args();
3430 rajveer 686
      args.setTransactionId(transactionId);
687
      sendBase("getTransactionStatus", args);
68 ashish 688
    }
689
 
3430 rajveer 690
    public TransactionStatus recv_getTransactionStatus() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 691
    {
692
      getTransactionStatus_result result = new getTransactionStatus_result();
3430 rajveer 693
      receiveBase(result, "getTransactionStatus");
68 ashish 694
      if (result.isSetSuccess()) {
695
        return result.success;
696
      }
697
      if (result.ex != null) {
698
        throw result.ex;
699
      }
3430 rajveer 700
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
68 ashish 701
    }
702
 
3430 rajveer 703
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 704
    {
705
      send_changeTransactionStatus(transactionId, status, description);
706
      return recv_changeTransactionStatus();
707
    }
708
 
3430 rajveer 709
    public void send_changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws org.apache.thrift.TException
68 ashish 710
    {
711
      changeTransactionStatus_args args = new changeTransactionStatus_args();
3430 rajveer 712
      args.setTransactionId(transactionId);
713
      args.setStatus(status);
714
      args.setDescription(description);
715
      sendBase("changeTransactionStatus", args);
68 ashish 716
    }
717
 
3430 rajveer 718
    public boolean recv_changeTransactionStatus() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 719
    {
720
      changeTransactionStatus_result result = new changeTransactionStatus_result();
3430 rajveer 721
      receiveBase(result, "changeTransactionStatus");
68 ashish 722
      if (result.isSetSuccess()) {
723
        return result.success;
724
      }
725
      if (result.ex != null) {
726
        throw result.ex;
727
      }
3430 rajveer 728
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");
68 ashish 729
    }
730
 
3430 rajveer 731
    public boolean enqueueTransactionInfoEmail(long transactionId) throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 732
    {
1398 varun.gupt 733
      send_enqueueTransactionInfoEmail(transactionId);
734
      return recv_enqueueTransactionInfoEmail();
1382 varun.gupt 735
    }
736
 
3430 rajveer 737
    public void send_enqueueTransactionInfoEmail(long transactionId) throws org.apache.thrift.TException
1382 varun.gupt 738
    {
1398 varun.gupt 739
      enqueueTransactionInfoEmail_args args = new enqueueTransactionInfoEmail_args();
3430 rajveer 740
      args.setTransactionId(transactionId);
741
      sendBase("enqueueTransactionInfoEmail", args);
1382 varun.gupt 742
    }
743
 
3430 rajveer 744
    public boolean recv_enqueueTransactionInfoEmail() throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 745
    {
1398 varun.gupt 746
      enqueueTransactionInfoEmail_result result = new enqueueTransactionInfoEmail_result();
3430 rajveer 747
      receiveBase(result, "enqueueTransactionInfoEmail");
1382 varun.gupt 748
      if (result.isSetSuccess()) {
749
        return result.success;
750
      }
751
      if (result.ex != null) {
752
        throw result.ex;
753
      }
3430 rajveer 754
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enqueueTransactionInfoEmail failed: unknown result");
1382 varun.gupt 755
    }
756
 
3430 rajveer 757
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 758
    {
483 rajveer 759
      send_getAllOrders(status, from_date, to_date, warehouse_id);
760
      return recv_getAllOrders();
68 ashish 761
    }
762
 
3430 rajveer 763
    public void send_getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws org.apache.thrift.TException
68 ashish 764
    {
483 rajveer 765
      getAllOrders_args args = new getAllOrders_args();
3430 rajveer 766
      args.setStatus(status);
767
      args.setFrom_date(from_date);
768
      args.setTo_date(to_date);
769
      args.setWarehouse_id(warehouse_id);
770
      sendBase("getAllOrders", args);
68 ashish 771
    }
772
 
3430 rajveer 773
    public List<Order> recv_getAllOrders() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 774
    {
483 rajveer 775
      getAllOrders_result result = new getAllOrders_result();
3430 rajveer 776
      receiveBase(result, "getAllOrders");
68 ashish 777
      if (result.isSetSuccess()) {
778
        return result.success;
779
      }
780
      if (result.ex != null) {
781
        throw result.ex;
782
      }
3430 rajveer 783
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
68 ashish 784
    }
785
 
3430 rajveer 786
    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 787
    {
788
      send_getOrdersByBillingDate(status, start_billing_date, end_billing_date, warehouse_id);
789
      return recv_getOrdersByBillingDate();
790
    }
791
 
3430 rajveer 792
    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 793
    {
794
      getOrdersByBillingDate_args args = new getOrdersByBillingDate_args();
3430 rajveer 795
      args.setStatus(status);
796
      args.setStart_billing_date(start_billing_date);
797
      args.setEnd_billing_date(end_billing_date);
798
      args.setWarehouse_id(warehouse_id);
799
      sendBase("getOrdersByBillingDate", args);
1022 varun.gupt 800
    }
801
 
3430 rajveer 802
    public List<Order> recv_getOrdersByBillingDate() throws TransactionServiceException, org.apache.thrift.TException
1022 varun.gupt 803
    {
804
      getOrdersByBillingDate_result result = new getOrdersByBillingDate_result();
3430 rajveer 805
      receiveBase(result, "getOrdersByBillingDate");
1022 varun.gupt 806
      if (result.isSetSuccess()) {
807
        return result.success;
808
      }
809
      if (result.ex != null) {
810
        throw result.ex;
811
      }
3430 rajveer 812
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersByBillingDate failed: unknown result");
1022 varun.gupt 813
    }
814
 
3451 chandransh 815
    public List<Order> getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException
3427 chandransh 816
    {
3451 chandransh 817
      send_getOrdersByShippingDate(fromShippingDate, toShippingDate, providerId, warehouseId, cod);
3427 chandransh 818
      return recv_getOrdersByShippingDate();
819
    }
820
 
3451 chandransh 821
    public void send_getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod) throws org.apache.thrift.TException
3427 chandransh 822
    {
823
      getOrdersByShippingDate_args args = new getOrdersByShippingDate_args();
3430 rajveer 824
      args.setFromShippingDate(fromShippingDate);
825
      args.setToShippingDate(toShippingDate);
826
      args.setProviderId(providerId);
827
      args.setWarehouseId(warehouseId);
3451 chandransh 828
      args.setCod(cod);
3430 rajveer 829
      sendBase("getOrdersByShippingDate", args);
3427 chandransh 830
    }
831
 
3430 rajveer 832
    public List<Order> recv_getOrdersByShippingDate() throws TransactionServiceException, org.apache.thrift.TException
3427 chandransh 833
    {
834
      getOrdersByShippingDate_result result = new getOrdersByShippingDate_result();
3430 rajveer 835
      receiveBase(result, "getOrdersByShippingDate");
3427 chandransh 836
      if (result.isSetSuccess()) {
837
        return result.success;
838
      }
839
      if (result.ex != null) {
840
        throw result.ex;
841
      }
3430 rajveer 842
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersByShippingDate failed: unknown result");
3427 chandransh 843
    }
844
 
3430 rajveer 845
    public List<Long> getReturnableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 846
    {
847
      send_getReturnableOrdersForCustomer(customer_id, limit);
848
      return recv_getReturnableOrdersForCustomer();
849
    }
850
 
3430 rajveer 851
    public void send_getReturnableOrdersForCustomer(long customer_id, long limit) throws org.apache.thrift.TException
1382 varun.gupt 852
    {
853
      getReturnableOrdersForCustomer_args args = new getReturnableOrdersForCustomer_args();
3430 rajveer 854
      args.setCustomer_id(customer_id);
855
      args.setLimit(limit);
856
      sendBase("getReturnableOrdersForCustomer", args);
1382 varun.gupt 857
    }
858
 
3430 rajveer 859
    public List<Long> recv_getReturnableOrdersForCustomer() throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 860
    {
861
      getReturnableOrdersForCustomer_result result = new getReturnableOrdersForCustomer_result();
3430 rajveer 862
      receiveBase(result, "getReturnableOrdersForCustomer");
1382 varun.gupt 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, "getReturnableOrdersForCustomer failed: unknown result");
1382 varun.gupt 870
    }
871
 
3430 rajveer 872
    public List<Long> getCancellableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 873
    {
874
      send_getCancellableOrdersForCustomer(customer_id, limit);
875
      return recv_getCancellableOrdersForCustomer();
876
    }
877
 
3430 rajveer 878
    public void send_getCancellableOrdersForCustomer(long customer_id, long limit) throws org.apache.thrift.TException
1382 varun.gupt 879
    {
880
      getCancellableOrdersForCustomer_args args = new getCancellableOrdersForCustomer_args();
3430 rajveer 881
      args.setCustomer_id(customer_id);
882
      args.setLimit(limit);
883
      sendBase("getCancellableOrdersForCustomer", args);
1382 varun.gupt 884
    }
885
 
3430 rajveer 886
    public List<Long> recv_getCancellableOrdersForCustomer() throws TransactionServiceException, org.apache.thrift.TException
1382 varun.gupt 887
    {
888
      getCancellableOrdersForCustomer_result result = new getCancellableOrdersForCustomer_result();
3430 rajveer 889
      receiveBase(result, "getCancellableOrdersForCustomer");
1382 varun.gupt 890
      if (result.isSetSuccess()) {
891
        return result.success;
892
      }
893
      if (result.ex != null) {
894
        throw result.ex;
895
      }
3430 rajveer 896
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCancellableOrdersForCustomer failed: unknown result");
1382 varun.gupt 897
    }
898
 
3430 rajveer 899
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 900
    {
483 rajveer 901
      send_changeOrderStatus(orderId, status, description);
902
      return recv_changeOrderStatus();
68 ashish 903
    }
904
 
3430 rajveer 905
    public void send_changeOrderStatus(long orderId, OrderStatus status, String description) throws org.apache.thrift.TException
68 ashish 906
    {
483 rajveer 907
      changeOrderStatus_args args = new changeOrderStatus_args();
3430 rajveer 908
      args.setOrderId(orderId);
909
      args.setStatus(status);
910
      args.setDescription(description);
911
      sendBase("changeOrderStatus", args);
68 ashish 912
    }
913
 
3430 rajveer 914
    public boolean recv_changeOrderStatus() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 915
    {
483 rajveer 916
      changeOrderStatus_result result = new changeOrderStatus_result();
3430 rajveer 917
      receiveBase(result, "changeOrderStatus");
68 ashish 918
      if (result.isSetSuccess()) {
919
        return result.success;
920
      }
921
      if (result.ex != null) {
922
        throw result.ex;
923
      }
3430 rajveer 924
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
68 ashish 925
    }
926
 
3430 rajveer 927
    public List<Order> getOrdersForTransaction(long transactionId, long customerId) throws TransactionServiceException, org.apache.thrift.TException
495 rajveer 928
    {
3061 chandransh 929
      send_getOrdersForTransaction(transactionId, customerId);
930
      return recv_getOrdersForTransaction();
495 rajveer 931
    }
932
 
3430 rajveer 933
    public void send_getOrdersForTransaction(long transactionId, long customerId) throws org.apache.thrift.TException
495 rajveer 934
    {
3061 chandransh 935
      getOrdersForTransaction_args args = new getOrdersForTransaction_args();
3430 rajveer 936
      args.setTransactionId(transactionId);
937
      args.setCustomerId(customerId);
938
      sendBase("getOrdersForTransaction", args);
495 rajveer 939
    }
940
 
3430 rajveer 941
    public List<Order> recv_getOrdersForTransaction() throws TransactionServiceException, org.apache.thrift.TException
495 rajveer 942
    {
3061 chandransh 943
      getOrdersForTransaction_result result = new getOrdersForTransaction_result();
3430 rajveer 944
      receiveBase(result, "getOrdersForTransaction");
495 rajveer 945
      if (result.isSetSuccess()) {
946
        return result.success;
947
      }
948
      if (result.ex != null) {
949
        throw result.ex;
950
      }
3430 rajveer 951
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersForTransaction failed: unknown result");
495 rajveer 952
    }
953
 
3430 rajveer 954
    public List<Order> getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws TransactionServiceException, org.apache.thrift.TException
1148 chandransh 955
    {
3061 chandransh 956
      send_getOrdersForCustomer(customerId, from_date, to_date, statuses);
957
      return recv_getOrdersForCustomer();
1148 chandransh 958
    }
959
 
3430 rajveer 960
    public void send_getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws org.apache.thrift.TException
1148 chandransh 961
    {
3061 chandransh 962
      getOrdersForCustomer_args args = new getOrdersForCustomer_args();
3430 rajveer 963
      args.setCustomerId(customerId);
964
      args.setFrom_date(from_date);
965
      args.setTo_date(to_date);
966
      args.setStatuses(statuses);
967
      sendBase("getOrdersForCustomer", args);
1148 chandransh 968
    }
969
 
3430 rajveer 970
    public List<Order> recv_getOrdersForCustomer() throws TransactionServiceException, org.apache.thrift.TException
1148 chandransh 971
    {
3061 chandransh 972
      getOrdersForCustomer_result result = new getOrdersForCustomer_result();
3430 rajveer 973
      receiveBase(result, "getOrdersForCustomer");
1148 chandransh 974
      if (result.isSetSuccess()) {
975
        return result.success;
976
      }
977
      if (result.ex != null) {
978
        throw result.ex;
979
      }
3430 rajveer 980
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersForCustomer failed: unknown result");
1148 chandransh 981
    }
982
 
3430 rajveer 983
    public long createOrder(Order order) throws TransactionServiceException, org.apache.thrift.TException
923 rajveer 984
    {
3061 chandransh 985
      send_createOrder(order);
986
      return recv_createOrder();
923 rajveer 987
    }
988
 
3430 rajveer 989
    public void send_createOrder(Order order) throws org.apache.thrift.TException
923 rajveer 990
    {
3061 chandransh 991
      createOrder_args args = new createOrder_args();
3430 rajveer 992
      args.setOrder(order);
993
      sendBase("createOrder", args);
923 rajveer 994
    }
995
 
3430 rajveer 996
    public long recv_createOrder() throws TransactionServiceException, org.apache.thrift.TException
923 rajveer 997
    {
3061 chandransh 998
      createOrder_result result = new createOrder_result();
3430 rajveer 999
      receiveBase(result, "createOrder");
923 rajveer 1000
      if (result.isSetSuccess()) {
1001
        return result.success;
1002
      }
1003
      if (result.ex != null) {
1004
        throw result.ex;
1005
      }
3430 rajveer 1006
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createOrder failed: unknown result");
923 rajveer 1007
    }
1008
 
3430 rajveer 1009
    public Order getOrder(long id) throws TransactionServiceException, org.apache.thrift.TException
923 rajveer 1010
    {
3061 chandransh 1011
      send_getOrder(id);
1012
      return recv_getOrder();
923 rajveer 1013
    }
1014
 
3430 rajveer 1015
    public void send_getOrder(long id) throws org.apache.thrift.TException
923 rajveer 1016
    {
3061 chandransh 1017
      getOrder_args args = new getOrder_args();
3430 rajveer 1018
      args.setId(id);
1019
      sendBase("getOrder", args);
923 rajveer 1020
    }
1021
 
3430 rajveer 1022
    public Order recv_getOrder() throws TransactionServiceException, org.apache.thrift.TException
923 rajveer 1023
    {
3061 chandransh 1024
      getOrder_result result = new getOrder_result();
3430 rajveer 1025
      receiveBase(result, "getOrder");
923 rajveer 1026
      if (result.isSetSuccess()) {
1027
        return result.success;
1028
      }
1029
      if (result.ex != null) {
1030
        throw result.ex;
1031
      }
3430 rajveer 1032
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrder failed: unknown result");
923 rajveer 1033
    }
1034
 
3430 rajveer 1035
    public List<LineItem> getLineItemsForOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1036
    {
3061 chandransh 1037
      send_getLineItemsForOrder(orderId);
1038
      return recv_getLineItemsForOrder();
68 ashish 1039
    }
1040
 
3430 rajveer 1041
    public void send_getLineItemsForOrder(long orderId) throws org.apache.thrift.TException
68 ashish 1042
    {
3061 chandransh 1043
      getLineItemsForOrder_args args = new getLineItemsForOrder_args();
3430 rajveer 1044
      args.setOrderId(orderId);
1045
      sendBase("getLineItemsForOrder", args);
68 ashish 1046
    }
1047
 
3430 rajveer 1048
    public List<LineItem> recv_getLineItemsForOrder() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1049
    {
3061 chandransh 1050
      getLineItemsForOrder_result result = new getLineItemsForOrder_result();
3430 rajveer 1051
      receiveBase(result, "getLineItemsForOrder");
68 ashish 1052
      if (result.isSetSuccess()) {
1053
        return result.success;
1054
      }
1055
      if (result.ex != null) {
1056
        throw result.ex;
1057
      }
3430 rajveer 1058
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLineItemsForOrder failed: unknown result");
68 ashish 1059
    }
1060
 
3430 rajveer 1061
    public Order getOrderForCustomer(long orderId, long customerId) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1062
    {
3061 chandransh 1063
      send_getOrderForCustomer(orderId, customerId);
1064
      return recv_getOrderForCustomer();
68 ashish 1065
    }
1066
 
3430 rajveer 1067
    public void send_getOrderForCustomer(long orderId, long customerId) throws org.apache.thrift.TException
68 ashish 1068
    {
3061 chandransh 1069
      getOrderForCustomer_args args = new getOrderForCustomer_args();
3430 rajveer 1070
      args.setOrderId(orderId);
1071
      args.setCustomerId(customerId);
1072
      sendBase("getOrderForCustomer", args);
68 ashish 1073
    }
1074
 
3430 rajveer 1075
    public Order recv_getOrderForCustomer() throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1076
    {
3061 chandransh 1077
      getOrderForCustomer_result result = new getOrderForCustomer_result();
3430 rajveer 1078
      receiveBase(result, "getOrderForCustomer");
68 ashish 1079
      if (result.isSetSuccess()) {
1080
        return result.success;
1081
      }
1082
      if (result.ex != null) {
1083
        throw result.ex;
1084
      }
3430 rajveer 1085
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
68 ashish 1086
    }
1087
 
3430 rajveer 1088
    public List<Alert> getAlerts(long orderId, boolean valid) throws org.apache.thrift.TException
68 ashish 1089
    {
3061 chandransh 1090
      send_getAlerts(orderId, valid);
1091
      return recv_getAlerts();
68 ashish 1092
    }
1093
 
3430 rajveer 1094
    public void send_getAlerts(long orderId, boolean valid) throws org.apache.thrift.TException
68 ashish 1095
    {
3061 chandransh 1096
      getAlerts_args args = new getAlerts_args();
3430 rajveer 1097
      args.setOrderId(orderId);
1098
      args.setValid(valid);
1099
      sendBase("getAlerts", args);
68 ashish 1100
    }
1101
 
3430 rajveer 1102
    public List<Alert> recv_getAlerts() throws org.apache.thrift.TException
68 ashish 1103
    {
3061 chandransh 1104
      getAlerts_result result = new getAlerts_result();
3430 rajveer 1105
      receiveBase(result, "getAlerts");
68 ashish 1106
      if (result.isSetSuccess()) {
1107
        return result.success;
1108
      }
3430 rajveer 1109
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
3061 chandransh 1110
    }
1111
 
3430 rajveer 1112
    public void setAlert(long orderId, boolean unset, long type, String comment) throws org.apache.thrift.TException
3061 chandransh 1113
    {
1114
      send_setAlert(orderId, unset, type, comment);
1115
      recv_setAlert();
1116
    }
1117
 
3430 rajveer 1118
    public void send_setAlert(long orderId, boolean unset, long type, String comment) throws org.apache.thrift.TException
3061 chandransh 1119
    {
1120
      setAlert_args args = new setAlert_args();
3430 rajveer 1121
      args.setOrderId(orderId);
1122
      args.setUnset(unset);
1123
      args.setType(type);
1124
      args.setComment(comment);
1125
      sendBase("setAlert", args);
3061 chandransh 1126
    }
1127
 
3430 rajveer 1128
    public void recv_setAlert() throws org.apache.thrift.TException
3061 chandransh 1129
    {
1130
      setAlert_result result = new setAlert_result();
3430 rajveer 1131
      receiveBase(result, "setAlert");
3061 chandransh 1132
      return;
68 ashish 1133
    }
1134
 
3430 rajveer 1135
    public long getValidOrderCount() throws org.apache.thrift.TException
68 ashish 1136
    {
3061 chandransh 1137
      send_getValidOrderCount();
1138
      return recv_getValidOrderCount();
68 ashish 1139
    }
1140
 
3430 rajveer 1141
    public void send_getValidOrderCount() throws org.apache.thrift.TException
68 ashish 1142
    {
3061 chandransh 1143
      getValidOrderCount_args args = new getValidOrderCount_args();
3430 rajveer 1144
      sendBase("getValidOrderCount", args);
68 ashish 1145
    }
1146
 
3430 rajveer 1147
    public long recv_getValidOrderCount() throws org.apache.thrift.TException
68 ashish 1148
    {
3061 chandransh 1149
      getValidOrderCount_result result = new getValidOrderCount_result();
3430 rajveer 1150
      receiveBase(result, "getValidOrderCount");
68 ashish 1151
      if (result.isSetSuccess()) {
1152
        return result.success;
1153
      }
3430 rajveer 1154
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
3061 chandransh 1155
    }
1156
 
3430 rajveer 1157
    public long getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException
3061 chandransh 1158
    {
1159
      send_getNoOfCustomersWithSuccessfulTransaction();
1160
      return recv_getNoOfCustomersWithSuccessfulTransaction();
1161
    }
1162
 
3430 rajveer 1163
    public void send_getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException
3061 chandransh 1164
    {
1165
      getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();
3430 rajveer 1166
      sendBase("getNoOfCustomersWithSuccessfulTransaction", args);
3061 chandransh 1167
    }
1168
 
3430 rajveer 1169
    public long recv_getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException
3061 chandransh 1170
    {
1171
      getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();
3430 rajveer 1172
      receiveBase(result, "getNoOfCustomersWithSuccessfulTransaction");
3061 chandransh 1173
      if (result.isSetSuccess()) {
1174
        return result.success;
1175
      }
3430 rajveer 1176
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNoOfCustomersWithSuccessfulTransaction failed: unknown result");
68 ashish 1177
    }
1178
 
3430 rajveer 1179
    public List<Double> getValidOrdersAmountRange() throws org.apache.thrift.TException
68 ashish 1180
    {
3061 chandransh 1181
      send_getValidOrdersAmountRange();
1182
      return recv_getValidOrdersAmountRange();
68 ashish 1183
    }
1184
 
3430 rajveer 1185
    public void send_getValidOrdersAmountRange() throws org.apache.thrift.TException
68 ashish 1186
    {
3061 chandransh 1187
      getValidOrdersAmountRange_args args = new getValidOrdersAmountRange_args();
3430 rajveer 1188
      sendBase("getValidOrdersAmountRange", args);
68 ashish 1189
    }
1190
 
3430 rajveer 1191
    public List<Double> recv_getValidOrdersAmountRange() throws org.apache.thrift.TException
68 ashish 1192
    {
3061 chandransh 1193
      getValidOrdersAmountRange_result result = new getValidOrdersAmountRange_result();
3430 rajveer 1194
      receiveBase(result, "getValidOrdersAmountRange");
68 ashish 1195
      if (result.isSetSuccess()) {
1196
        return result.success;
1197
      }
3430 rajveer 1198
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidOrdersAmountRange failed: unknown result");
68 ashish 1199
    }
1200
 
3430 rajveer 1201
    public List<Order> getValidOrders(long limit) throws org.apache.thrift.TException
1529 ankur.sing 1202
    {
3061 chandransh 1203
      send_getValidOrders(limit);
1204
      return recv_getValidOrders();
1529 ankur.sing 1205
    }
1206
 
3430 rajveer 1207
    public void send_getValidOrders(long limit) throws org.apache.thrift.TException
1529 ankur.sing 1208
    {
3061 chandransh 1209
      getValidOrders_args args = new getValidOrders_args();
3430 rajveer 1210
      args.setLimit(limit);
1211
      sendBase("getValidOrders", args);
1529 ankur.sing 1212
    }
1213
 
3430 rajveer 1214
    public List<Order> recv_getValidOrders() throws org.apache.thrift.TException
1529 ankur.sing 1215
    {
3061 chandransh 1216
      getValidOrders_result result = new getValidOrders_result();
3430 rajveer 1217
      receiveBase(result, "getValidOrders");
1529 ankur.sing 1218
      if (result.isSetSuccess()) {
1219
        return result.success;
1220
      }
3430 rajveer 1221
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidOrders failed: unknown result");
1529 ankur.sing 1222
    }
1223
 
3430 rajveer 1224
    public List<Order> batchOrders(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
1221 chandransh 1225
    {
1226
      send_batchOrders(warehouseId);
1227
      return recv_batchOrders();
1228
    }
1229
 
3430 rajveer 1230
    public void send_batchOrders(long warehouseId) throws org.apache.thrift.TException
1221 chandransh 1231
    {
1232
      batchOrders_args args = new batchOrders_args();
3430 rajveer 1233
      args.setWarehouseId(warehouseId);
1234
      sendBase("batchOrders", args);
1221 chandransh 1235
    }
1236
 
3430 rajveer 1237
    public List<Order> recv_batchOrders() throws TransactionServiceException, org.apache.thrift.TException
1221 chandransh 1238
    {
1239
      batchOrders_result result = new batchOrders_result();
3430 rajveer 1240
      receiveBase(result, "batchOrders");
1221 chandransh 1241
      if (result.isSetSuccess()) {
1242
        return result.success;
1243
      }
1244
      if (result.ex != null) {
1245
        throw result.ex;
1246
      }
3430 rajveer 1247
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "batchOrders failed: unknown result");
1221 chandransh 1248
    }
1249
 
3430 rajveer 1250
    public boolean markOrderAsOutOfStock(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1209 chandransh 1251
    {
1252
      send_markOrderAsOutOfStock(orderId);
1253
      return recv_markOrderAsOutOfStock();
1254
    }
1255
 
3430 rajveer 1256
    public void send_markOrderAsOutOfStock(long orderId) throws org.apache.thrift.TException
1209 chandransh 1257
    {
1258
      markOrderAsOutOfStock_args args = new markOrderAsOutOfStock_args();
3430 rajveer 1259
      args.setOrderId(orderId);
1260
      sendBase("markOrderAsOutOfStock", args);
1209 chandransh 1261
    }
1262
 
3430 rajveer 1263
    public boolean recv_markOrderAsOutOfStock() throws TransactionServiceException, org.apache.thrift.TException
1209 chandransh 1264
    {
1265
      markOrderAsOutOfStock_result result = new markOrderAsOutOfStock_result();
3430 rajveer 1266
      receiveBase(result, "markOrderAsOutOfStock");
1209 chandransh 1267
      if (result.isSetSuccess()) {
1268
        return result.success;
1269
      }
1270
      if (result.ex != null) {
1271
        throw result.ex;
1272
      }
3430 rajveer 1273
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderAsOutOfStock failed: unknown result");
1209 chandransh 1274
    }
1275
 
3430 rajveer 1276
    public boolean verifyOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
758 chandransh 1277
    {
3061 chandransh 1278
      send_verifyOrder(orderId);
1279
      return recv_verifyOrder();
758 chandransh 1280
    }
1281
 
3430 rajveer 1282
    public void send_verifyOrder(long orderId) throws org.apache.thrift.TException
758 chandransh 1283
    {
3061 chandransh 1284
      verifyOrder_args args = new verifyOrder_args();
3430 rajveer 1285
      args.setOrderId(orderId);
1286
      sendBase("verifyOrder", args);
758 chandransh 1287
    }
1288
 
3430 rajveer 1289
    public boolean recv_verifyOrder() throws TransactionServiceException, org.apache.thrift.TException
758 chandransh 1290
    {
3061 chandransh 1291
      verifyOrder_result result = new verifyOrder_result();
3430 rajveer 1292
      receiveBase(result, "verifyOrder");
758 chandransh 1293
      if (result.isSetSuccess()) {
1294
        return result.success;
1295
      }
1296
      if (result.ex != null) {
1297
        throw result.ex;
1298
      }
3430 rajveer 1299
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "verifyOrder failed: unknown result");
758 chandransh 1300
    }
1301
 
3430 rajveer 1302
    public boolean acceptOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1114 chandransh 1303
    {
3061 chandransh 1304
      send_acceptOrder(orderId);
1305
      return recv_acceptOrder();
1114 chandransh 1306
    }
1307
 
3430 rajveer 1308
    public void send_acceptOrder(long orderId) throws org.apache.thrift.TException
1114 chandransh 1309
    {
3061 chandransh 1310
      acceptOrder_args args = new acceptOrder_args();
3430 rajveer 1311
      args.setOrderId(orderId);
1312
      sendBase("acceptOrder", args);
1114 chandransh 1313
    }
1314
 
3430 rajveer 1315
    public boolean recv_acceptOrder() throws TransactionServiceException, org.apache.thrift.TException
1114 chandransh 1316
    {
3061 chandransh 1317
      acceptOrder_result result = new acceptOrder_result();
3430 rajveer 1318
      receiveBase(result, "acceptOrder");
1114 chandransh 1319
      if (result.isSetSuccess()) {
1320
        return result.success;
1321
      }
1322
      if (result.ex != null) {
1323
        throw result.ex;
1324
      }
3430 rajveer 1325
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
1114 chandransh 1326
    }
1327
 
3430 rajveer 1328
    public boolean billOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1133 chandransh 1329
    {
3061 chandransh 1330
      send_billOrder(orderId);
1331
      return recv_billOrder();
1133 chandransh 1332
    }
1333
 
3430 rajveer 1334
    public void send_billOrder(long orderId) throws org.apache.thrift.TException
1133 chandransh 1335
    {
3061 chandransh 1336
      billOrder_args args = new billOrder_args();
3430 rajveer 1337
      args.setOrderId(orderId);
1338
      sendBase("billOrder", args);
1133 chandransh 1339
    }
1340
 
3430 rajveer 1341
    public boolean recv_billOrder() throws TransactionServiceException, org.apache.thrift.TException
1133 chandransh 1342
    {
3061 chandransh 1343
      billOrder_result result = new billOrder_result();
3430 rajveer 1344
      receiveBase(result, "billOrder");
3061 chandransh 1345
      if (result.isSetSuccess()) {
1346
        return result.success;
1347
      }
1133 chandransh 1348
      if (result.ex != null) {
1349
        throw result.ex;
1350
      }
3430 rajveer 1351
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "billOrder failed: unknown result");
1133 chandransh 1352
    }
1353
 
3430 rajveer 1354
    public boolean addBillingDetails(long orderId, String invoice_number, String billed_by) throws TransactionServiceException, org.apache.thrift.TException
1133 chandransh 1355
    {
3061 chandransh 1356
      send_addBillingDetails(orderId, invoice_number, billed_by);
1357
      return recv_addBillingDetails();
1133 chandransh 1358
    }
1359
 
3430 rajveer 1360
    public void send_addBillingDetails(long orderId, String invoice_number, String billed_by) throws org.apache.thrift.TException
1133 chandransh 1361
    {
3061 chandransh 1362
      addBillingDetails_args args = new addBillingDetails_args();
3430 rajveer 1363
      args.setOrderId(orderId);
1364
      args.setInvoice_number(invoice_number);
1365
      args.setBilled_by(billed_by);
1366
      sendBase("addBillingDetails", args);
1133 chandransh 1367
    }
1368
 
3430 rajveer 1369
    public boolean recv_addBillingDetails() throws TransactionServiceException, org.apache.thrift.TException
1133 chandransh 1370
    {
3061 chandransh 1371
      addBillingDetails_result result = new addBillingDetails_result();
3430 rajveer 1372
      receiveBase(result, "addBillingDetails");
3061 chandransh 1373
      if (result.isSetSuccess()) {
1374
        return result.success;
1375
      }
1133 chandransh 1376
      if (result.ex != null) {
1377
        throw result.ex;
1378
      }
3430 rajveer 1379
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
1133 chandransh 1380
    }
1381
 
3430 rajveer 1382
    public boolean addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws TransactionServiceException, org.apache.thrift.TException
1245 chandransh 1383
    {
3061 chandransh 1384
      send_addJacketNumber(orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType);
1385
      return recv_addJacketNumber();
1245 chandransh 1386
    }
1387
 
3430 rajveer 1388
    public void send_addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws org.apache.thrift.TException
1245 chandransh 1389
    {
3061 chandransh 1390
      addJacketNumber_args args = new addJacketNumber_args();
3430 rajveer 1391
      args.setOrderId(orderId);
1392
      args.setJacketNumber(jacketNumber);
1393
      args.setImeiNumber(imeiNumber);
1394
      args.setItemNumber(itemNumber);
1395
      args.setBilledBy(billedBy);
1396
      args.setBillingType(billingType);
1397
      sendBase("addJacketNumber", args);
1245 chandransh 1398
    }
1399
 
3430 rajveer 1400
    public boolean recv_addJacketNumber() throws TransactionServiceException, org.apache.thrift.TException
1245 chandransh 1401
    {
3061 chandransh 1402
      addJacketNumber_result result = new addJacketNumber_result();
3430 rajveer 1403
      receiveBase(result, "addJacketNumber");
3061 chandransh 1404
      if (result.isSetSuccess()) {
1405
        return result.success;
1406
      }
1245 chandransh 1407
      if (result.ex != null) {
1408
        throw result.ex;
1409
      }
3430 rajveer 1410
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addJacketNumber failed: unknown result");
1245 chandransh 1411
    }
1412
 
3430 rajveer 1413
    public boolean markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException
1406 ankur.sing 1414
    {
3061 chandransh 1415
      send_markOrdersAsManifested(warehouseId, providerId, cod);
1416
      return recv_markOrdersAsManifested();
1406 ankur.sing 1417
    }
1418
 
3430 rajveer 1419
    public void send_markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws org.apache.thrift.TException
1406 ankur.sing 1420
    {
3061 chandransh 1421
      markOrdersAsManifested_args args = new markOrdersAsManifested_args();
3430 rajveer 1422
      args.setWarehouseId(warehouseId);
1423
      args.setProviderId(providerId);
1424
      args.setCod(cod);
1425
      sendBase("markOrdersAsManifested", args);
1406 ankur.sing 1426
    }
1427
 
3430 rajveer 1428
    public boolean recv_markOrdersAsManifested() throws TransactionServiceException, org.apache.thrift.TException
1406 ankur.sing 1429
    {
3061 chandransh 1430
      markOrdersAsManifested_result result = new markOrdersAsManifested_result();
3430 rajveer 1431
      receiveBase(result, "markOrdersAsManifested");
1406 ankur.sing 1432
      if (result.isSetSuccess()) {
1433
        return result.success;
1434
      }
3061 chandransh 1435
      if (result.ex != null) {
1436
        throw result.ex;
1437
      }
3430 rajveer 1438
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrdersAsManifested failed: unknown result");
1406 ankur.sing 1439
    }
1440
 
3430 rajveer 1441
    public List<Order> markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws TransactionServiceException, org.apache.thrift.TException
68 ashish 1442
    {
3061 chandransh 1443
      send_markOrdersAsPickedUp(providerId, pickupDetails);
1444
      return recv_markOrdersAsPickedUp();
305 ashish 1445
    }
1446
 
3430 rajveer 1447
    public void send_markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException
305 ashish 1448
    {
3061 chandransh 1449
      markOrdersAsPickedUp_args args = new markOrdersAsPickedUp_args();
3430 rajveer 1450
      args.setProviderId(providerId);
1451
      args.setPickupDetails(pickupDetails);
1452
      sendBase("markOrdersAsPickedUp", args);
305 ashish 1453
    }
1454
 
3430 rajveer 1455
    public List<Order> recv_markOrdersAsPickedUp() throws TransactionServiceException, org.apache.thrift.TException
305 ashish 1456
    {
3061 chandransh 1457
      markOrdersAsPickedUp_result result = new markOrdersAsPickedUp_result();
3430 rajveer 1458
      receiveBase(result, "markOrdersAsPickedUp");
305 ashish 1459
      if (result.isSetSuccess()) {
1460
        return result.success;
1461
      }
3061 chandransh 1462
      if (result.ex != null) {
1463
        throw result.ex;
305 ashish 1464
      }
3430 rajveer 1465
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrdersAsPickedUp failed: unknown result");
305 ashish 1466
    }
1467
 
3430 rajveer 1468
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TransactionServiceException, org.apache.thrift.TException
1598 ankur.sing 1469
    {
3061 chandransh 1470
      send_markOrdersAsDelivered(providerId, deliveredOrders);
1471
      recv_markOrdersAsDelivered();
1598 ankur.sing 1472
    }
1473
 
3430 rajveer 1474
    public void send_markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws org.apache.thrift.TException
1598 ankur.sing 1475
    {
3061 chandransh 1476
      markOrdersAsDelivered_args args = new markOrdersAsDelivered_args();
3430 rajveer 1477
      args.setProviderId(providerId);
1478
      args.setDeliveredOrders(deliveredOrders);
1479
      sendBase("markOrdersAsDelivered", args);
1598 ankur.sing 1480
    }
1481
 
3430 rajveer 1482
    public void recv_markOrdersAsDelivered() throws TransactionServiceException, org.apache.thrift.TException
1598 ankur.sing 1483
    {
3061 chandransh 1484
      markOrdersAsDelivered_result result = new markOrdersAsDelivered_result();
3430 rajveer 1485
      receiveBase(result, "markOrdersAsDelivered");
3061 chandransh 1486
      if (result.ex != null) {
1487
        throw result.ex;
1598 ankur.sing 1488
      }
3061 chandransh 1489
      return;
1598 ankur.sing 1490
    }
1491
 
3430 rajveer 1492
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, org.apache.thrift.TException
1629 ankur.sing 1493
    {
3061 chandransh 1494
      send_markOrdersAsFailed(providerId, returnedOrders);
1495
      recv_markOrdersAsFailed();
1629 ankur.sing 1496
    }
1497
 
3430 rajveer 1498
    public void send_markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws org.apache.thrift.TException
1629 ankur.sing 1499
    {
3061 chandransh 1500
      markOrdersAsFailed_args args = new markOrdersAsFailed_args();
3430 rajveer 1501
      args.setProviderId(providerId);
1502
      args.setReturnedOrders(returnedOrders);
1503
      sendBase("markOrdersAsFailed", args);
1629 ankur.sing 1504
    }
1505
 
3430 rajveer 1506
    public void recv_markOrdersAsFailed() throws TransactionServiceException, org.apache.thrift.TException
1629 ankur.sing 1507
    {
3061 chandransh 1508
      markOrdersAsFailed_result result = new markOrdersAsFailed_result();
3430 rajveer 1509
      receiveBase(result, "markOrdersAsFailed");
3061 chandransh 1510
      if (result.ex != null) {
1511
        throw result.ex;
1629 ankur.sing 1512
      }
3061 chandransh 1513
      return;
1629 ankur.sing 1514
    }
1515
 
3430 rajveer 1516
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, org.apache.thrift.TException
1629 ankur.sing 1517
    {
3061 chandransh 1518
      send_updateNonDeliveryReason(providerId, undeliveredOrders);
1519
      recv_updateNonDeliveryReason();
1629 ankur.sing 1520
    }
1521
 
3430 rajveer 1522
    public void send_updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws org.apache.thrift.TException
1629 ankur.sing 1523
    {
3061 chandransh 1524
      updateNonDeliveryReason_args args = new updateNonDeliveryReason_args();
3430 rajveer 1525
      args.setProviderId(providerId);
1526
      args.setUndeliveredOrders(undeliveredOrders);
1527
      sendBase("updateNonDeliveryReason", args);
1629 ankur.sing 1528
    }
1529
 
3430 rajveer 1530
    public void recv_updateNonDeliveryReason() throws TransactionServiceException, org.apache.thrift.TException
1629 ankur.sing 1531
    {
3061 chandransh 1532
      updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();
3430 rajveer 1533
      receiveBase(result, "updateNonDeliveryReason");
3061 chandransh 1534
      if (result.ex != null) {
1535
        throw result.ex;
1629 ankur.sing 1536
      }
3061 chandransh 1537
      return;
1629 ankur.sing 1538
    }
1539
 
3430 rajveer 1540
    public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException
1886 ankur.sing 1541
    {
3061 chandransh 1542
      send_getUndeliveredOrders(providerId, warehouseId);
1543
      return recv_getUndeliveredOrders();
1886 ankur.sing 1544
    }
1545
 
3430 rajveer 1546
    public void send_getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException
1886 ankur.sing 1547
    {
3061 chandransh 1548
      getUndeliveredOrders_args args = new getUndeliveredOrders_args();
3430 rajveer 1549
      args.setProviderId(providerId);
1550
      args.setWarehouseId(warehouseId);
1551
      sendBase("getUndeliveredOrders", args);
1886 ankur.sing 1552
    }
1553
 
3430 rajveer 1554
    public List<Order> recv_getUndeliveredOrders() throws org.apache.thrift.TException
1886 ankur.sing 1555
    {
3061 chandransh 1556
      getUndeliveredOrders_result result = new getUndeliveredOrders_result();
3430 rajveer 1557
      receiveBase(result, "getUndeliveredOrders");
1886 ankur.sing 1558
      if (result.isSetSuccess()) {
1559
        return result.success;
1560
      }
3430 rajveer 1561
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUndeliveredOrders failed: unknown result");
1886 ankur.sing 1562
    }
1563
 
3430 rajveer 1564
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1565
    {
1566
      send_toggleDOAFlag(orderId);
1567
      return recv_toggleDOAFlag();
1568
    }
1569
 
3430 rajveer 1570
    public void send_toggleDOAFlag(long orderId) throws org.apache.thrift.TException
2538 chandransh 1571
    {
1572
      toggleDOAFlag_args args = new toggleDOAFlag_args();
3430 rajveer 1573
      args.setOrderId(orderId);
1574
      sendBase("toggleDOAFlag", args);
2538 chandransh 1575
    }
1576
 
3430 rajveer 1577
    public boolean recv_toggleDOAFlag() throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1578
    {
1579
      toggleDOAFlag_result result = new toggleDOAFlag_result();
3430 rajveer 1580
      receiveBase(result, "toggleDOAFlag");
2538 chandransh 1581
      if (result.isSetSuccess()) {
1582
        return result.success;
1583
      }
1584
      if (result.ex != null) {
1585
        throw result.ex;
1586
      }
3430 rajveer 1587
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");
2538 chandransh 1588
    }
1589
 
3430 rajveer 1590
    public boolean requestPickupNumber(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1591
    {
1592
      send_requestPickupNumber(orderId);
1593
      return recv_requestPickupNumber();
1594
    }
1595
 
3430 rajveer 1596
    public void send_requestPickupNumber(long orderId) throws org.apache.thrift.TException
2538 chandransh 1597
    {
1598
      requestPickupNumber_args args = new requestPickupNumber_args();
3430 rajveer 1599
      args.setOrderId(orderId);
1600
      sendBase("requestPickupNumber", args);
2538 chandransh 1601
    }
1602
 
3430 rajveer 1603
    public boolean recv_requestPickupNumber() throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1604
    {
1605
      requestPickupNumber_result result = new requestPickupNumber_result();
3430 rajveer 1606
      receiveBase(result, "requestPickupNumber");
2538 chandransh 1607
      if (result.isSetSuccess()) {
1608
        return result.success;
1609
      }
1610
      if (result.ex != null) {
1611
        throw result.ex;
1612
      }
3430 rajveer 1613
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "requestPickupNumber failed: unknown result");
2538 chandransh 1614
    }
1615
 
3430 rajveer 1616
    public boolean authorizePickup(long orderId, String pickupNumber) throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1617
    {
1618
      send_authorizePickup(orderId, pickupNumber);
1619
      return recv_authorizePickup();
1620
    }
1621
 
3430 rajveer 1622
    public void send_authorizePickup(long orderId, String pickupNumber) throws org.apache.thrift.TException
2538 chandransh 1623
    {
1624
      authorizePickup_args args = new authorizePickup_args();
3430 rajveer 1625
      args.setOrderId(orderId);
1626
      args.setPickupNumber(pickupNumber);
1627
      sendBase("authorizePickup", args);
2538 chandransh 1628
    }
1629
 
3430 rajveer 1630
    public boolean recv_authorizePickup() throws TransactionServiceException, org.apache.thrift.TException
2538 chandransh 1631
    {
1632
      authorizePickup_result result = new authorizePickup_result();
3430 rajveer 1633
      receiveBase(result, "authorizePickup");
2538 chandransh 1634
      if (result.isSetSuccess()) {
1635
        return result.success;
1636
      }
1637
      if (result.ex != null) {
1638
        throw result.ex;
1639
      }
3430 rajveer 1640
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authorizePickup failed: unknown result");
2538 chandransh 1641
    }
1642
 
3430 rajveer 1643
    public List<Order> markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException
2765 chandransh 1644
    {
1645
      send_markDoasAsPickedUp(providerId, pickupDetails);
1646
      return recv_markDoasAsPickedUp();
1647
    }
1648
 
3430 rajveer 1649
    public void send_markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException
2765 chandransh 1650
    {
1651
      markDoasAsPickedUp_args args = new markDoasAsPickedUp_args();
3430 rajveer 1652
      args.setProviderId(providerId);
1653
      args.setPickupDetails(pickupDetails);
1654
      sendBase("markDoasAsPickedUp", args);
2765 chandransh 1655
    }
1656
 
3430 rajveer 1657
    public List<Order> recv_markDoasAsPickedUp() throws org.apache.thrift.TException
2765 chandransh 1658
    {
1659
      markDoasAsPickedUp_result result = new markDoasAsPickedUp_result();
3430 rajveer 1660
      receiveBase(result, "markDoasAsPickedUp");
2765 chandransh 1661
      if (result.isSetSuccess()) {
1662
        return result.success;
1663
      }
3430 rajveer 1664
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markDoasAsPickedUp failed: unknown result");
2765 chandransh 1665
    }
1666
 
3430 rajveer 1667
    public boolean receiveReturn(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2590 chandransh 1668
    {
2615 chandransh 1669
      send_receiveReturn(orderId);
1670
      return recv_receiveReturn();
2590 chandransh 1671
    }
1672
 
3430 rajveer 1673
    public void send_receiveReturn(long orderId) throws org.apache.thrift.TException
2590 chandransh 1674
    {
2615 chandransh 1675
      receiveReturn_args args = new receiveReturn_args();
3430 rajveer 1676
      args.setOrderId(orderId);
1677
      sendBase("receiveReturn", args);
2590 chandransh 1678
    }
1679
 
3430 rajveer 1680
    public boolean recv_receiveReturn() throws TransactionServiceException, org.apache.thrift.TException
2590 chandransh 1681
    {
2615 chandransh 1682
      receiveReturn_result result = new receiveReturn_result();
3430 rajveer 1683
      receiveBase(result, "receiveReturn");
2590 chandransh 1684
      if (result.isSetSuccess()) {
1685
        return result.success;
1686
      }
1687
      if (result.ex != null) {
1688
        throw result.ex;
1689
      }
3430 rajveer 1690
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "receiveReturn failed: unknown result");
2590 chandransh 1691
    }
1692
 
3430 rajveer 1693
    public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, org.apache.thrift.TException
2590 chandransh 1694
    {
1695
      send_validateDoa(orderId, isValid);
1696
      return recv_validateDoa();
1697
    }
1698
 
3430 rajveer 1699
    public void send_validateDoa(long orderId, boolean isValid) throws org.apache.thrift.TException
2590 chandransh 1700
    {
1701
      validateDoa_args args = new validateDoa_args();
3430 rajveer 1702
      args.setOrderId(orderId);
1703
      args.setIsValid(isValid);
1704
      sendBase("validateDoa", args);
2590 chandransh 1705
    }
1706
 
3430 rajveer 1707
    public boolean recv_validateDoa() throws TransactionServiceException, org.apache.thrift.TException
2590 chandransh 1708
    {
1709
      validateDoa_result result = new validateDoa_result();
3430 rajveer 1710
      receiveBase(result, "validateDoa");
2590 chandransh 1711
      if (result.isSetSuccess()) {
1712
        return result.success;
1713
      }
1714
      if (result.ex != null) {
1715
        throw result.ex;
1716
      }
3430 rajveer 1717
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateDoa failed: unknown result");
2590 chandransh 1718
    }
1719
 
3430 rajveer 1720
    public long reshipOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2615 chandransh 1721
    {
1722
      send_reshipOrder(orderId);
1723
      return recv_reshipOrder();
1724
    }
1725
 
3430 rajveer 1726
    public void send_reshipOrder(long orderId) throws org.apache.thrift.TException
2615 chandransh 1727
    {
1728
      reshipOrder_args args = new reshipOrder_args();
3430 rajveer 1729
      args.setOrderId(orderId);
1730
      sendBase("reshipOrder", args);
2615 chandransh 1731
    }
1732
 
3430 rajveer 1733
    public long recv_reshipOrder() throws TransactionServiceException, org.apache.thrift.TException
2615 chandransh 1734
    {
1735
      reshipOrder_result result = new reshipOrder_result();
3430 rajveer 1736
      receiveBase(result, "reshipOrder");
2615 chandransh 1737
      if (result.isSetSuccess()) {
1738
        return result.success;
1739
      }
1740
      if (result.ex != null) {
1741
        throw result.ex;
1742
      }
3430 rajveer 1743
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reshipOrder failed: unknown result");
2615 chandransh 1744
    }
1745
 
3430 rajveer 1746
    public boolean refundOrder(long orderId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException
2615 chandransh 1747
    {
3226 chandransh 1748
      send_refundOrder(orderId, refundedBy, reason);
2615 chandransh 1749
      return recv_refundOrder();
1750
    }
1751
 
3430 rajveer 1752
    public void send_refundOrder(long orderId, String refundedBy, String reason) throws org.apache.thrift.TException
2615 chandransh 1753
    {
1754
      refundOrder_args args = new refundOrder_args();
3430 rajveer 1755
      args.setOrderId(orderId);
1756
      args.setRefundedBy(refundedBy);
1757
      args.setReason(reason);
1758
      sendBase("refundOrder", args);
2615 chandransh 1759
    }
1760
 
3430 rajveer 1761
    public boolean recv_refundOrder() throws TransactionServiceException, org.apache.thrift.TException
2615 chandransh 1762
    {
1763
      refundOrder_result result = new refundOrder_result();
3430 rajveer 1764
      receiveBase(result, "refundOrder");
2615 chandransh 1765
      if (result.isSetSuccess()) {
1766
        return result.success;
1767
      }
1768
      if (result.ex != null) {
1769
        throw result.ex;
1770
      }
3430 rajveer 1771
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "refundOrder failed: unknown result");
2615 chandransh 1772
    }
1773
 
3430 rajveer 1774
    public List<ReturnOrder> getReturnOrders(long warehouseId, long fromDate, long toDate) throws org.apache.thrift.TException
2690 chandransh 1775
    {
1776
      send_getReturnOrders(warehouseId, fromDate, toDate);
1777
      return recv_getReturnOrders();
1778
    }
1779
 
3430 rajveer 1780
    public void send_getReturnOrders(long warehouseId, long fromDate, long toDate) throws org.apache.thrift.TException
2690 chandransh 1781
    {
1782
      getReturnOrders_args args = new getReturnOrders_args();
3430 rajveer 1783
      args.setWarehouseId(warehouseId);
1784
      args.setFromDate(fromDate);
1785
      args.setToDate(toDate);
1786
      sendBase("getReturnOrders", args);
2690 chandransh 1787
    }
1788
 
3430 rajveer 1789
    public List<ReturnOrder> recv_getReturnOrders() throws org.apache.thrift.TException
2690 chandransh 1790
    {
1791
      getReturnOrders_result result = new getReturnOrders_result();
3430 rajveer 1792
      receiveBase(result, "getReturnOrders");
2690 chandransh 1793
      if (result.isSetSuccess()) {
1794
        return result.success;
1795
      }
3430 rajveer 1796
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnOrders failed: unknown result");
2690 chandransh 1797
    }
1798
 
3430 rajveer 1799
    public ReturnOrder getReturnOrder(long id) throws TransactionServiceException, org.apache.thrift.TException
2700 chandransh 1800
    {
1801
      send_getReturnOrder(id);
1802
      return recv_getReturnOrder();
1803
    }
1804
 
3430 rajveer 1805
    public void send_getReturnOrder(long id) throws org.apache.thrift.TException
2700 chandransh 1806
    {
1807
      getReturnOrder_args args = new getReturnOrder_args();
3430 rajveer 1808
      args.setId(id);
1809
      sendBase("getReturnOrder", args);
2700 chandransh 1810
    }
1811
 
3430 rajveer 1812
    public ReturnOrder recv_getReturnOrder() throws TransactionServiceException, org.apache.thrift.TException
2700 chandransh 1813
    {
1814
      getReturnOrder_result result = new getReturnOrder_result();
3430 rajveer 1815
      receiveBase(result, "getReturnOrder");
2700 chandransh 1816
      if (result.isSetSuccess()) {
1817
        return result.success;
1818
      }
1819
      if (result.ex != null) {
1820
        throw result.ex;
1821
      }
3430 rajveer 1822
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnOrder failed: unknown result");
2700 chandransh 1823
    }
1824
 
3430 rajveer 1825
    public void processReturn(long returnOrderId) throws TransactionServiceException, org.apache.thrift.TException
2690 chandransh 1826
    {
1827
      send_processReturn(returnOrderId);
1828
      recv_processReturn();
1829
    }
1830
 
3430 rajveer 1831
    public void send_processReturn(long returnOrderId) throws org.apache.thrift.TException
2690 chandransh 1832
    {
1833
      processReturn_args args = new processReturn_args();
3430 rajveer 1834
      args.setReturnOrderId(returnOrderId);
1835
      sendBase("processReturn", args);
2690 chandransh 1836
    }
1837
 
3430 rajveer 1838
    public void recv_processReturn() throws TransactionServiceException, org.apache.thrift.TException
2690 chandransh 1839
    {
1840
      processReturn_result result = new processReturn_result();
3430 rajveer 1841
      receiveBase(result, "processReturn");
2690 chandransh 1842
      if (result.ex != null) {
1843
        throw result.ex;
1844
      }
1845
      return;
1846
    }
1847
 
3430 rajveer 1848
    public long createPurchaseOrder(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
2819 chandransh 1849
    {
1850
      send_createPurchaseOrder(warehouseId);
1851
      return recv_createPurchaseOrder();
1852
    }
1853
 
3430 rajveer 1854
    public void send_createPurchaseOrder(long warehouseId) throws org.apache.thrift.TException
2819 chandransh 1855
    {
1856
      createPurchaseOrder_args args = new createPurchaseOrder_args();
3430 rajveer 1857
      args.setWarehouseId(warehouseId);
1858
      sendBase("createPurchaseOrder", args);
2819 chandransh 1859
    }
1860
 
3430 rajveer 1861
    public long recv_createPurchaseOrder() throws TransactionServiceException, org.apache.thrift.TException
2819 chandransh 1862
    {
1863
      createPurchaseOrder_result result = new createPurchaseOrder_result();
3430 rajveer 1864
      receiveBase(result, "createPurchaseOrder");
2819 chandransh 1865
      if (result.isSetSuccess()) {
1866
        return result.success;
1867
      }
1868
      if (result.ex != null) {
1869
        throw result.ex;
1870
      }
3430 rajveer 1871
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPurchaseOrder failed: unknown result");
2819 chandransh 1872
    }
1873
 
3451 chandransh 1874
    public Order updateWeight(long orderId, double weight) throws TransactionServiceException, org.apache.thrift.TException
1875
    {
1876
      send_updateWeight(orderId, weight);
1877
      return recv_updateWeight();
1878
    }
1879
 
1880
    public void send_updateWeight(long orderId, double weight) throws org.apache.thrift.TException
1881
    {
1882
      updateWeight_args args = new updateWeight_args();
1883
      args.setOrderId(orderId);
1884
      args.setWeight(weight);
1885
      sendBase("updateWeight", args);
1886
    }
1887
 
1888
    public Order recv_updateWeight() throws TransactionServiceException, org.apache.thrift.TException
1889
    {
1890
      updateWeight_result result = new updateWeight_result();
1891
      receiveBase(result, "updateWeight");
1892
      if (result.isSetSuccess()) {
1893
        return result.success;
1894
      }
1895
      if (result.ex != null) {
1896
        throw result.ex;
1897
      }
1898
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateWeight failed: unknown result");
1899
    }
1900
 
3469 chandransh 1901
    public Order changeItem(long orderId, long itemId) throws TransactionServiceException, org.apache.thrift.TException
1902
    {
1903
      send_changeItem(orderId, itemId);
1904
      return recv_changeItem();
1905
    }
1906
 
1907
    public void send_changeItem(long orderId, long itemId) throws org.apache.thrift.TException
1908
    {
1909
      changeItem_args args = new changeItem_args();
1910
      args.setOrderId(orderId);
1911
      args.setItemId(itemId);
1912
      sendBase("changeItem", args);
1913
    }
1914
 
1915
    public Order recv_changeItem() throws TransactionServiceException, org.apache.thrift.TException
1916
    {
1917
      changeItem_result result = new changeItem_result();
1918
      receiveBase(result, "changeItem");
1919
      if (result.isSetSuccess()) {
1920
        return result.success;
1921
      }
1922
      if (result.ex != null) {
1923
        throw result.ex;
1924
      }
1925
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeItem failed: unknown result");
1926
    }
1927
 
1928
    public Order shiftToWarehouse(long orderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
1929
    {
1930
      send_shiftToWarehouse(orderId, warehouseId);
1931
      return recv_shiftToWarehouse();
1932
    }
1933
 
1934
    public void send_shiftToWarehouse(long orderId, long warehouseId) throws org.apache.thrift.TException
1935
    {
1936
      shiftToWarehouse_args args = new shiftToWarehouse_args();
1937
      args.setOrderId(orderId);
1938
      args.setWarehouseId(warehouseId);
1939
      sendBase("shiftToWarehouse", args);
1940
    }
1941
 
1942
    public Order recv_shiftToWarehouse() throws TransactionServiceException, org.apache.thrift.TException
1943
    {
1944
      shiftToWarehouse_result result = new shiftToWarehouse_result();
1945
      receiveBase(result, "shiftToWarehouse");
1946
      if (result.isSetSuccess()) {
1947
        return result.success;
1948
      }
1949
      if (result.ex != null) {
1950
        throw result.ex;
1951
      }
1952
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "shiftToWarehouse failed: unknown result");
1953
    }
1954
 
68 ashish 1955
  }
3430 rajveer 1956
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1957
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1958
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1959
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1960
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1961
        this.clientManager = clientManager;
1962
        this.protocolFactory = protocolFactory;
1963
      }
1964
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1965
        return new AsyncClient(protocolFactory, clientManager, transport);
1966
      }
68 ashish 1967
    }
1968
 
3430 rajveer 1969
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1970
      super(protocolFactory, clientManager, transport);
1971
    }
68 ashish 1972
 
3430 rajveer 1973
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<createTransaction_call> resultHandler) throws org.apache.thrift.TException {
1974
      checkReady();
1975
      createTransaction_call method_call = new createTransaction_call(transaction, resultHandler, this, ___protocolFactory, ___transport);
1976
      this.___currentMethod = method_call;
1977
      ___manager.call(method_call);
1978
    }
1979
 
1980
    public static class createTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
1981
      private Transaction transaction;
1982
      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 {
1983
        super(client, protocolFactory, transport, resultHandler, false);
1984
        this.transaction = transaction;
68 ashish 1985
      }
3430 rajveer 1986
 
1987
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1988
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
1989
        createTransaction_args args = new createTransaction_args();
1990
        args.setTransaction(transaction);
1991
        args.write(prot);
1992
        prot.writeMessageEnd();
1993
      }
1994
 
1995
      public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
1996
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1997
          throw new IllegalStateException("Method call not finished!");
1998
        }
1999
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2000
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2001
        return (new Client(prot)).recv_createTransaction();
2002
      }
68 ashish 2003
    }
2004
 
3430 rajveer 2005
    public void getTransaction(long id, org.apache.thrift.async.AsyncMethodCallback<getTransaction_call> resultHandler) throws org.apache.thrift.TException {
2006
      checkReady();
2007
      getTransaction_call method_call = new getTransaction_call(id, resultHandler, this, ___protocolFactory, ___transport);
2008
      this.___currentMethod = method_call;
2009
      ___manager.call(method_call);
2010
    }
2011
 
2012
    public static class getTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
2013
      private long id;
2014
      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 {
2015
        super(client, protocolFactory, transport, resultHandler, false);
2016
        this.id = id;
2017
      }
2018
 
2019
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2020
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
2021
        getTransaction_args args = new getTransaction_args();
2022
        args.setId(id);
2023
        args.write(prot);
2024
        prot.writeMessageEnd();
2025
      }
2026
 
2027
      public Transaction getResult() throws TransactionServiceException, org.apache.thrift.TException {
2028
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2029
          throw new IllegalStateException("Method call not finished!");
2030
        }
2031
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2032
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2033
        return (new Client(prot)).recv_getTransaction();
2034
      }
2035
    }
2036
 
2037
    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 {
2038
      checkReady();
2039
      getTransactionsForCustomer_call method_call = new getTransactionsForCustomer_call(customerId, from_date, to_date, status, resultHandler, this, ___protocolFactory, ___transport);
2040
      this.___currentMethod = method_call;
2041
      ___manager.call(method_call);
2042
    }
2043
 
2044
    public static class getTransactionsForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2045
      private long customerId;
2046
      private long from_date;
2047
      private long to_date;
2048
      private TransactionStatus status;
2049
      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 {
2050
        super(client, protocolFactory, transport, resultHandler, false);
2051
        this.customerId = customerId;
2052
        this.from_date = from_date;
2053
        this.to_date = to_date;
2054
        this.status = status;
2055
      }
2056
 
2057
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2058
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionsForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2059
        getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();
2060
        args.setCustomerId(customerId);
2061
        args.setFrom_date(from_date);
2062
        args.setTo_date(to_date);
2063
        args.setStatus(status);
2064
        args.write(prot);
2065
        prot.writeMessageEnd();
2066
      }
2067
 
2068
      public List<Transaction> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2069
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2070
          throw new IllegalStateException("Method call not finished!");
2071
        }
2072
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2073
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2074
        return (new Client(prot)).recv_getTransactionsForCustomer();
2075
      }
2076
    }
2077
 
2078
    public void getTransactionsForShoppingCartId(long shoppingCartId, org.apache.thrift.async.AsyncMethodCallback<getTransactionsForShoppingCartId_call> resultHandler) throws org.apache.thrift.TException {
2079
      checkReady();
2080
      getTransactionsForShoppingCartId_call method_call = new getTransactionsForShoppingCartId_call(shoppingCartId, resultHandler, this, ___protocolFactory, ___transport);
2081
      this.___currentMethod = method_call;
2082
      ___manager.call(method_call);
2083
    }
2084
 
2085
    public static class getTransactionsForShoppingCartId_call extends org.apache.thrift.async.TAsyncMethodCall {
2086
      private long shoppingCartId;
2087
      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 {
2088
        super(client, protocolFactory, transport, resultHandler, false);
2089
        this.shoppingCartId = shoppingCartId;
2090
      }
2091
 
2092
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2093
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionsForShoppingCartId", org.apache.thrift.protocol.TMessageType.CALL, 0));
2094
        getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();
2095
        args.setShoppingCartId(shoppingCartId);
2096
        args.write(prot);
2097
        prot.writeMessageEnd();
2098
      }
2099
 
2100
      public List<Transaction> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2101
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2102
          throw new IllegalStateException("Method call not finished!");
2103
        }
2104
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2105
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2106
        return (new Client(prot)).recv_getTransactionsForShoppingCartId();
2107
      }
2108
    }
2109
 
2110
    public void getTransactionStatus(long transactionId, org.apache.thrift.async.AsyncMethodCallback<getTransactionStatus_call> resultHandler) throws org.apache.thrift.TException {
2111
      checkReady();
2112
      getTransactionStatus_call method_call = new getTransactionStatus_call(transactionId, resultHandler, this, ___protocolFactory, ___transport);
2113
      this.___currentMethod = method_call;
2114
      ___manager.call(method_call);
2115
    }
2116
 
2117
    public static class getTransactionStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
2118
      private long transactionId;
2119
      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 {
2120
        super(client, protocolFactory, transport, resultHandler, false);
2121
        this.transactionId = transactionId;
2122
      }
2123
 
2124
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2125
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
2126
        getTransactionStatus_args args = new getTransactionStatus_args();
2127
        args.setTransactionId(transactionId);
2128
        args.write(prot);
2129
        prot.writeMessageEnd();
2130
      }
2131
 
2132
      public TransactionStatus getResult() throws TransactionServiceException, org.apache.thrift.TException {
2133
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2134
          throw new IllegalStateException("Method call not finished!");
2135
        }
2136
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2137
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2138
        return (new Client(prot)).recv_getTransactionStatus();
2139
      }
2140
    }
2141
 
2142
    public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException {
2143
      checkReady();
2144
      changeTransactionStatus_call method_call = new changeTransactionStatus_call(transactionId, status, description, resultHandler, this, ___protocolFactory, ___transport);
2145
      this.___currentMethod = method_call;
2146
      ___manager.call(method_call);
2147
    }
2148
 
2149
    public static class changeTransactionStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
2150
      private long transactionId;
2151
      private TransactionStatus status;
2152
      private String description;
2153
      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 {
2154
        super(client, protocolFactory, transport, resultHandler, false);
2155
        this.transactionId = transactionId;
2156
        this.status = status;
2157
        this.description = description;
2158
      }
2159
 
2160
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2161
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeTransactionStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
2162
        changeTransactionStatus_args args = new changeTransactionStatus_args();
2163
        args.setTransactionId(transactionId);
2164
        args.setStatus(status);
2165
        args.setDescription(description);
2166
        args.write(prot);
2167
        prot.writeMessageEnd();
2168
      }
2169
 
2170
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
2171
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2172
          throw new IllegalStateException("Method call not finished!");
2173
        }
2174
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2175
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2176
        return (new Client(prot)).recv_changeTransactionStatus();
2177
      }
2178
    }
2179
 
2180
    public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException {
2181
      checkReady();
2182
      enqueueTransactionInfoEmail_call method_call = new enqueueTransactionInfoEmail_call(transactionId, resultHandler, this, ___protocolFactory, ___transport);
2183
      this.___currentMethod = method_call;
2184
      ___manager.call(method_call);
2185
    }
2186
 
2187
    public static class enqueueTransactionInfoEmail_call extends org.apache.thrift.async.TAsyncMethodCall {
2188
      private long transactionId;
2189
      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 {
2190
        super(client, protocolFactory, transport, resultHandler, false);
2191
        this.transactionId = transactionId;
2192
      }
2193
 
2194
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2195
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enqueueTransactionInfoEmail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2196
        enqueueTransactionInfoEmail_args args = new enqueueTransactionInfoEmail_args();
2197
        args.setTransactionId(transactionId);
2198
        args.write(prot);
2199
        prot.writeMessageEnd();
2200
      }
2201
 
2202
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
2203
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2204
          throw new IllegalStateException("Method call not finished!");
2205
        }
2206
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2207
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2208
        return (new Client(prot)).recv_enqueueTransactionInfoEmail();
2209
      }
2210
    }
2211
 
2212
    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 {
2213
      checkReady();
2214
      getAllOrders_call method_call = new getAllOrders_call(status, from_date, to_date, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2215
      this.___currentMethod = method_call;
2216
      ___manager.call(method_call);
2217
    }
2218
 
2219
    public static class getAllOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
2220
      private OrderStatus status;
2221
      private long from_date;
2222
      private long to_date;
2223
      private long warehouse_id;
2224
      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 {
2225
        super(client, protocolFactory, transport, resultHandler, false);
2226
        this.status = status;
2227
        this.from_date = from_date;
2228
        this.to_date = to_date;
2229
        this.warehouse_id = warehouse_id;
2230
      }
2231
 
2232
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2233
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
2234
        getAllOrders_args args = new getAllOrders_args();
2235
        args.setStatus(status);
2236
        args.setFrom_date(from_date);
2237
        args.setTo_date(to_date);
2238
        args.setWarehouse_id(warehouse_id);
2239
        args.write(prot);
2240
        prot.writeMessageEnd();
2241
      }
2242
 
2243
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2244
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2245
          throw new IllegalStateException("Method call not finished!");
2246
        }
2247
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2248
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2249
        return (new Client(prot)).recv_getAllOrders();
2250
      }
2251
    }
2252
 
2253
    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 {
2254
      checkReady();
2255
      getOrdersByBillingDate_call method_call = new getOrdersByBillingDate_call(status, start_billing_date, end_billing_date, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2256
      this.___currentMethod = method_call;
2257
      ___manager.call(method_call);
2258
    }
2259
 
2260
    public static class getOrdersByBillingDate_call extends org.apache.thrift.async.TAsyncMethodCall {
2261
      private OrderStatus status;
2262
      private long start_billing_date;
2263
      private long end_billing_date;
2264
      private long warehouse_id;
2265
      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 {
2266
        super(client, protocolFactory, transport, resultHandler, false);
2267
        this.status = status;
2268
        this.start_billing_date = start_billing_date;
2269
        this.end_billing_date = end_billing_date;
2270
        this.warehouse_id = warehouse_id;
2271
      }
2272
 
2273
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2274
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersByBillingDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
2275
        getOrdersByBillingDate_args args = new getOrdersByBillingDate_args();
2276
        args.setStatus(status);
2277
        args.setStart_billing_date(start_billing_date);
2278
        args.setEnd_billing_date(end_billing_date);
2279
        args.setWarehouse_id(warehouse_id);
2280
        args.write(prot);
2281
        prot.writeMessageEnd();
2282
      }
2283
 
2284
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2285
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2286
          throw new IllegalStateException("Method call not finished!");
2287
        }
2288
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2289
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2290
        return (new Client(prot)).recv_getOrdersByBillingDate();
2291
      }
2292
    }
2293
 
3451 chandransh 2294
    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 2295
      checkReady();
3451 chandransh 2296
      getOrdersByShippingDate_call method_call = new getOrdersByShippingDate_call(fromShippingDate, toShippingDate, providerId, warehouseId, cod, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 2297
      this.___currentMethod = method_call;
2298
      ___manager.call(method_call);
2299
    }
2300
 
2301
    public static class getOrdersByShippingDate_call extends org.apache.thrift.async.TAsyncMethodCall {
2302
      private long fromShippingDate;
2303
      private long toShippingDate;
2304
      private long providerId;
2305
      private long warehouseId;
3451 chandransh 2306
      private boolean cod;
2307
      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 2308
        super(client, protocolFactory, transport, resultHandler, false);
2309
        this.fromShippingDate = fromShippingDate;
2310
        this.toShippingDate = toShippingDate;
2311
        this.providerId = providerId;
2312
        this.warehouseId = warehouseId;
3451 chandransh 2313
        this.cod = cod;
3430 rajveer 2314
      }
2315
 
2316
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2317
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersByShippingDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
2318
        getOrdersByShippingDate_args args = new getOrdersByShippingDate_args();
2319
        args.setFromShippingDate(fromShippingDate);
2320
        args.setToShippingDate(toShippingDate);
2321
        args.setProviderId(providerId);
2322
        args.setWarehouseId(warehouseId);
3451 chandransh 2323
        args.setCod(cod);
3430 rajveer 2324
        args.write(prot);
2325
        prot.writeMessageEnd();
2326
      }
2327
 
2328
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2329
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2330
          throw new IllegalStateException("Method call not finished!");
2331
        }
2332
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2333
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2334
        return (new Client(prot)).recv_getOrdersByShippingDate();
2335
      }
2336
    }
2337
 
2338
    public void getReturnableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<getReturnableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException {
2339
      checkReady();
2340
      getReturnableOrdersForCustomer_call method_call = new getReturnableOrdersForCustomer_call(customer_id, limit, resultHandler, this, ___protocolFactory, ___transport);
2341
      this.___currentMethod = method_call;
2342
      ___manager.call(method_call);
2343
    }
2344
 
2345
    public static class getReturnableOrdersForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2346
      private long customer_id;
2347
      private long limit;
2348
      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 {
2349
        super(client, protocolFactory, transport, resultHandler, false);
2350
        this.customer_id = customer_id;
2351
        this.limit = limit;
2352
      }
2353
 
2354
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2355
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReturnableOrdersForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2356
        getReturnableOrdersForCustomer_args args = new getReturnableOrdersForCustomer_args();
2357
        args.setCustomer_id(customer_id);
2358
        args.setLimit(limit);
2359
        args.write(prot);
2360
        prot.writeMessageEnd();
2361
      }
2362
 
2363
      public List<Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2364
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2365
          throw new IllegalStateException("Method call not finished!");
2366
        }
2367
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2368
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2369
        return (new Client(prot)).recv_getReturnableOrdersForCustomer();
2370
      }
2371
    }
2372
 
2373
    public void getCancellableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<getCancellableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException {
2374
      checkReady();
2375
      getCancellableOrdersForCustomer_call method_call = new getCancellableOrdersForCustomer_call(customer_id, limit, resultHandler, this, ___protocolFactory, ___transport);
2376
      this.___currentMethod = method_call;
2377
      ___manager.call(method_call);
2378
    }
2379
 
2380
    public static class getCancellableOrdersForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2381
      private long customer_id;
2382
      private long limit;
2383
      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 {
2384
        super(client, protocolFactory, transport, resultHandler, false);
2385
        this.customer_id = customer_id;
2386
        this.limit = limit;
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("getCancellableOrdersForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2391
        getCancellableOrdersForCustomer_args args = new getCancellableOrdersForCustomer_args();
2392
        args.setCustomer_id(customer_id);
2393
        args.setLimit(limit);
2394
        args.write(prot);
2395
        prot.writeMessageEnd();
2396
      }
2397
 
2398
      public List<Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2399
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2400
          throw new IllegalStateException("Method call not finished!");
2401
        }
2402
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2403
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2404
        return (new Client(prot)).recv_getCancellableOrdersForCustomer();
2405
      }
2406
    }
2407
 
2408
    public void changeOrderStatus(long orderId, OrderStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<changeOrderStatus_call> resultHandler) throws org.apache.thrift.TException {
2409
      checkReady();
2410
      changeOrderStatus_call method_call = new changeOrderStatus_call(orderId, status, description, resultHandler, this, ___protocolFactory, ___transport);
2411
      this.___currentMethod = method_call;
2412
      ___manager.call(method_call);
2413
    }
2414
 
2415
    public static class changeOrderStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
2416
      private long orderId;
2417
      private OrderStatus status;
2418
      private String description;
2419
      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 {
2420
        super(client, protocolFactory, transport, resultHandler, false);
2421
        this.orderId = orderId;
2422
        this.status = status;
2423
        this.description = description;
2424
      }
2425
 
2426
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2427
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeOrderStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
2428
        changeOrderStatus_args args = new changeOrderStatus_args();
2429
        args.setOrderId(orderId);
2430
        args.setStatus(status);
2431
        args.setDescription(description);
2432
        args.write(prot);
2433
        prot.writeMessageEnd();
2434
      }
2435
 
2436
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
2437
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2438
          throw new IllegalStateException("Method call not finished!");
2439
        }
2440
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2441
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2442
        return (new Client(prot)).recv_changeOrderStatus();
2443
      }
2444
    }
2445
 
2446
    public void getOrdersForTransaction(long transactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<getOrdersForTransaction_call> resultHandler) throws org.apache.thrift.TException {
2447
      checkReady();
2448
      getOrdersForTransaction_call method_call = new getOrdersForTransaction_call(transactionId, customerId, resultHandler, this, ___protocolFactory, ___transport);
2449
      this.___currentMethod = method_call;
2450
      ___manager.call(method_call);
2451
    }
2452
 
2453
    public static class getOrdersForTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
2454
      private long transactionId;
2455
      private long customerId;
2456
      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 {
2457
        super(client, protocolFactory, transport, resultHandler, false);
2458
        this.transactionId = transactionId;
2459
        this.customerId = customerId;
2460
      }
2461
 
2462
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2463
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersForTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
2464
        getOrdersForTransaction_args args = new getOrdersForTransaction_args();
2465
        args.setTransactionId(transactionId);
2466
        args.setCustomerId(customerId);
2467
        args.write(prot);
2468
        prot.writeMessageEnd();
2469
      }
2470
 
2471
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2472
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2473
          throw new IllegalStateException("Method call not finished!");
2474
        }
2475
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2476
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2477
        return (new Client(prot)).recv_getOrdersForTransaction();
2478
      }
2479
    }
2480
 
2481
    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 {
2482
      checkReady();
2483
      getOrdersForCustomer_call method_call = new getOrdersForCustomer_call(customerId, from_date, to_date, statuses, resultHandler, this, ___protocolFactory, ___transport);
2484
      this.___currentMethod = method_call;
2485
      ___manager.call(method_call);
2486
    }
2487
 
2488
    public static class getOrdersForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2489
      private long customerId;
2490
      private long from_date;
2491
      private long to_date;
2492
      private List<OrderStatus> statuses;
2493
      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 {
2494
        super(client, protocolFactory, transport, resultHandler, false);
2495
        this.customerId = customerId;
2496
        this.from_date = from_date;
2497
        this.to_date = to_date;
2498
        this.statuses = statuses;
2499
      }
2500
 
2501
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2502
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2503
        getOrdersForCustomer_args args = new getOrdersForCustomer_args();
2504
        args.setCustomerId(customerId);
2505
        args.setFrom_date(from_date);
2506
        args.setTo_date(to_date);
2507
        args.setStatuses(statuses);
2508
        args.write(prot);
2509
        prot.writeMessageEnd();
2510
      }
2511
 
2512
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2513
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2514
          throw new IllegalStateException("Method call not finished!");
2515
        }
2516
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2517
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2518
        return (new Client(prot)).recv_getOrdersForCustomer();
2519
      }
2520
    }
2521
 
2522
    public void createOrder(Order order, org.apache.thrift.async.AsyncMethodCallback<createOrder_call> resultHandler) throws org.apache.thrift.TException {
2523
      checkReady();
2524
      createOrder_call method_call = new createOrder_call(order, resultHandler, this, ___protocolFactory, ___transport);
2525
      this.___currentMethod = method_call;
2526
      ___manager.call(method_call);
2527
    }
2528
 
2529
    public static class createOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
2530
      private Order order;
2531
      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 {
2532
        super(client, protocolFactory, transport, resultHandler, false);
2533
        this.order = order;
2534
      }
2535
 
2536
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2537
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
2538
        createOrder_args args = new createOrder_args();
2539
        args.setOrder(order);
2540
        args.write(prot);
2541
        prot.writeMessageEnd();
2542
      }
2543
 
2544
      public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
2545
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2546
          throw new IllegalStateException("Method call not finished!");
2547
        }
2548
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2549
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2550
        return (new Client(prot)).recv_createOrder();
2551
      }
2552
    }
2553
 
2554
    public void getOrder(long id, org.apache.thrift.async.AsyncMethodCallback<getOrder_call> resultHandler) throws org.apache.thrift.TException {
2555
      checkReady();
2556
      getOrder_call method_call = new getOrder_call(id, resultHandler, this, ___protocolFactory, ___transport);
2557
      this.___currentMethod = method_call;
2558
      ___manager.call(method_call);
2559
    }
2560
 
2561
    public static class getOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
2562
      private long id;
2563
      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 {
2564
        super(client, protocolFactory, transport, resultHandler, false);
2565
        this.id = id;
2566
      }
2567
 
2568
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2569
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
2570
        getOrder_args args = new getOrder_args();
2571
        args.setId(id);
2572
        args.write(prot);
2573
        prot.writeMessageEnd();
2574
      }
2575
 
2576
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
2577
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2578
          throw new IllegalStateException("Method call not finished!");
2579
        }
2580
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2581
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2582
        return (new Client(prot)).recv_getOrder();
2583
      }
2584
    }
2585
 
2586
    public void getLineItemsForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getLineItemsForOrder_call> resultHandler) throws org.apache.thrift.TException {
2587
      checkReady();
2588
      getLineItemsForOrder_call method_call = new getLineItemsForOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2589
      this.___currentMethod = method_call;
2590
      ___manager.call(method_call);
2591
    }
2592
 
2593
    public static class getLineItemsForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
2594
      private long orderId;
2595
      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 {
2596
        super(client, protocolFactory, transport, resultHandler, false);
2597
        this.orderId = orderId;
2598
      }
2599
 
2600
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2601
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLineItemsForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
2602
        getLineItemsForOrder_args args = new getLineItemsForOrder_args();
2603
        args.setOrderId(orderId);
2604
        args.write(prot);
2605
        prot.writeMessageEnd();
2606
      }
2607
 
2608
      public List<LineItem> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2609
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2610
          throw new IllegalStateException("Method call not finished!");
2611
        }
2612
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2613
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2614
        return (new Client(prot)).recv_getLineItemsForOrder();
2615
      }
2616
    }
2617
 
2618
    public void getOrderForCustomer(long orderId, long customerId, org.apache.thrift.async.AsyncMethodCallback<getOrderForCustomer_call> resultHandler) throws org.apache.thrift.TException {
2619
      checkReady();
2620
      getOrderForCustomer_call method_call = new getOrderForCustomer_call(orderId, customerId, resultHandler, this, ___protocolFactory, ___transport);
2621
      this.___currentMethod = method_call;
2622
      ___manager.call(method_call);
2623
    }
2624
 
2625
    public static class getOrderForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {
2626
      private long orderId;
2627
      private long customerId;
2628
      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 {
2629
        super(client, protocolFactory, transport, resultHandler, false);
2630
        this.orderId = orderId;
2631
        this.customerId = customerId;
2632
      }
2633
 
2634
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2635
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2636
        getOrderForCustomer_args args = new getOrderForCustomer_args();
2637
        args.setOrderId(orderId);
2638
        args.setCustomerId(customerId);
2639
        args.write(prot);
2640
        prot.writeMessageEnd();
2641
      }
2642
 
2643
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
2644
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2645
          throw new IllegalStateException("Method call not finished!");
2646
        }
2647
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2648
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2649
        return (new Client(prot)).recv_getOrderForCustomer();
2650
      }
2651
    }
2652
 
2653
    public void getAlerts(long orderId, boolean valid, org.apache.thrift.async.AsyncMethodCallback<getAlerts_call> resultHandler) throws org.apache.thrift.TException {
2654
      checkReady();
2655
      getAlerts_call method_call = new getAlerts_call(orderId, valid, resultHandler, this, ___protocolFactory, ___transport);
2656
      this.___currentMethod = method_call;
2657
      ___manager.call(method_call);
2658
    }
2659
 
2660
    public static class getAlerts_call extends org.apache.thrift.async.TAsyncMethodCall {
2661
      private long orderId;
2662
      private boolean valid;
2663
      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 {
2664
        super(client, protocolFactory, transport, resultHandler, false);
2665
        this.orderId = orderId;
2666
        this.valid = valid;
2667
      }
2668
 
2669
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2670
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAlerts", org.apache.thrift.protocol.TMessageType.CALL, 0));
2671
        getAlerts_args args = new getAlerts_args();
2672
        args.setOrderId(orderId);
2673
        args.setValid(valid);
2674
        args.write(prot);
2675
        prot.writeMessageEnd();
2676
      }
2677
 
2678
      public List<Alert> getResult() throws org.apache.thrift.TException {
2679
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2680
          throw new IllegalStateException("Method call not finished!");
2681
        }
2682
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2683
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2684
        return (new Client(prot)).recv_getAlerts();
2685
      }
2686
    }
2687
 
2688
    public void setAlert(long orderId, boolean unset, long type, String comment, org.apache.thrift.async.AsyncMethodCallback<setAlert_call> resultHandler) throws org.apache.thrift.TException {
2689
      checkReady();
2690
      setAlert_call method_call = new setAlert_call(orderId, unset, type, comment, resultHandler, this, ___protocolFactory, ___transport);
2691
      this.___currentMethod = method_call;
2692
      ___manager.call(method_call);
2693
    }
2694
 
2695
    public static class setAlert_call extends org.apache.thrift.async.TAsyncMethodCall {
2696
      private long orderId;
2697
      private boolean unset;
2698
      private long type;
2699
      private String comment;
2700
      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 {
2701
        super(client, protocolFactory, transport, resultHandler, false);
2702
        this.orderId = orderId;
2703
        this.unset = unset;
2704
        this.type = type;
2705
        this.comment = comment;
2706
      }
2707
 
2708
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2709
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setAlert", org.apache.thrift.protocol.TMessageType.CALL, 0));
2710
        setAlert_args args = new setAlert_args();
2711
        args.setOrderId(orderId);
2712
        args.setUnset(unset);
2713
        args.setType(type);
2714
        args.setComment(comment);
2715
        args.write(prot);
2716
        prot.writeMessageEnd();
2717
      }
2718
 
2719
      public void getResult() throws org.apache.thrift.TException {
2720
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2721
          throw new IllegalStateException("Method call not finished!");
2722
        }
2723
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2724
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2725
        (new Client(prot)).recv_setAlert();
2726
      }
2727
    }
2728
 
2729
    public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException {
2730
      checkReady();
2731
      getValidOrderCount_call method_call = new getValidOrderCount_call(resultHandler, this, ___protocolFactory, ___transport);
2732
      this.___currentMethod = method_call;
2733
      ___manager.call(method_call);
2734
    }
2735
 
2736
    public static class getValidOrderCount_call extends org.apache.thrift.async.TAsyncMethodCall {
2737
      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 {
2738
        super(client, protocolFactory, transport, resultHandler, false);
2739
      }
2740
 
2741
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2742
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidOrderCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
2743
        getValidOrderCount_args args = new getValidOrderCount_args();
2744
        args.write(prot);
2745
        prot.writeMessageEnd();
2746
      }
2747
 
2748
      public long getResult() throws org.apache.thrift.TException {
2749
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2750
          throw new IllegalStateException("Method call not finished!");
2751
        }
2752
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2753
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2754
        return (new Client(prot)).recv_getValidOrderCount();
2755
      }
2756
    }
2757
 
2758
    public void getNoOfCustomersWithSuccessfulTransaction(org.apache.thrift.async.AsyncMethodCallback<getNoOfCustomersWithSuccessfulTransaction_call> resultHandler) throws org.apache.thrift.TException {
2759
      checkReady();
2760
      getNoOfCustomersWithSuccessfulTransaction_call method_call = new getNoOfCustomersWithSuccessfulTransaction_call(resultHandler, this, ___protocolFactory, ___transport);
2761
      this.___currentMethod = method_call;
2762
      ___manager.call(method_call);
2763
    }
2764
 
2765
    public static class getNoOfCustomersWithSuccessfulTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
2766
      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 {
2767
        super(client, protocolFactory, transport, resultHandler, false);
2768
      }
2769
 
2770
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2771
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNoOfCustomersWithSuccessfulTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
2772
        getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();
2773
        args.write(prot);
2774
        prot.writeMessageEnd();
2775
      }
2776
 
2777
      public long getResult() throws 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_getNoOfCustomersWithSuccessfulTransaction();
2784
      }
2785
    }
2786
 
2787
    public void getValidOrdersAmountRange(org.apache.thrift.async.AsyncMethodCallback<getValidOrdersAmountRange_call> resultHandler) throws org.apache.thrift.TException {
2788
      checkReady();
2789
      getValidOrdersAmountRange_call method_call = new getValidOrdersAmountRange_call(resultHandler, this, ___protocolFactory, ___transport);
2790
      this.___currentMethod = method_call;
2791
      ___manager.call(method_call);
2792
    }
2793
 
2794
    public static class getValidOrdersAmountRange_call extends org.apache.thrift.async.TAsyncMethodCall {
2795
      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 {
2796
        super(client, protocolFactory, transport, resultHandler, false);
2797
      }
2798
 
2799
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2800
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidOrdersAmountRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
2801
        getValidOrdersAmountRange_args args = new getValidOrdersAmountRange_args();
2802
        args.write(prot);
2803
        prot.writeMessageEnd();
2804
      }
2805
 
2806
      public List<Double> getResult() throws org.apache.thrift.TException {
2807
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2808
          throw new IllegalStateException("Method call not finished!");
2809
        }
2810
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2811
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2812
        return (new Client(prot)).recv_getValidOrdersAmountRange();
2813
      }
2814
    }
2815
 
2816
    public void getValidOrders(long limit, org.apache.thrift.async.AsyncMethodCallback<getValidOrders_call> resultHandler) throws org.apache.thrift.TException {
2817
      checkReady();
2818
      getValidOrders_call method_call = new getValidOrders_call(limit, resultHandler, this, ___protocolFactory, ___transport);
2819
      this.___currentMethod = method_call;
2820
      ___manager.call(method_call);
2821
    }
2822
 
2823
    public static class getValidOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
2824
      private long limit;
2825
      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 {
2826
        super(client, protocolFactory, transport, resultHandler, false);
2827
        this.limit = limit;
2828
      }
2829
 
2830
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2831
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
2832
        getValidOrders_args args = new getValidOrders_args();
2833
        args.setLimit(limit);
2834
        args.write(prot);
2835
        prot.writeMessageEnd();
2836
      }
2837
 
2838
      public List<Order> getResult() throws org.apache.thrift.TException {
2839
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2840
          throw new IllegalStateException("Method call not finished!");
2841
        }
2842
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2843
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2844
        return (new Client(prot)).recv_getValidOrders();
2845
      }
2846
    }
2847
 
2848
    public void batchOrders(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<batchOrders_call> resultHandler) throws org.apache.thrift.TException {
2849
      checkReady();
2850
      batchOrders_call method_call = new batchOrders_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2851
      this.___currentMethod = method_call;
2852
      ___manager.call(method_call);
2853
    }
2854
 
2855
    public static class batchOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
2856
      private long warehouseId;
2857
      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 {
2858
        super(client, protocolFactory, transport, resultHandler, false);
2859
        this.warehouseId = warehouseId;
2860
      }
2861
 
2862
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2863
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("batchOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
2864
        batchOrders_args args = new batchOrders_args();
2865
        args.setWarehouseId(warehouseId);
2866
        args.write(prot);
2867
        prot.writeMessageEnd();
2868
      }
2869
 
2870
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
2871
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2872
          throw new IllegalStateException("Method call not finished!");
2873
        }
2874
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2875
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2876
        return (new Client(prot)).recv_batchOrders();
2877
      }
2878
    }
2879
 
2880
    public void markOrderAsOutOfStock(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderAsOutOfStock_call> resultHandler) throws org.apache.thrift.TException {
2881
      checkReady();
2882
      markOrderAsOutOfStock_call method_call = new markOrderAsOutOfStock_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2883
      this.___currentMethod = method_call;
2884
      ___manager.call(method_call);
2885
    }
2886
 
2887
    public static class markOrderAsOutOfStock_call extends org.apache.thrift.async.TAsyncMethodCall {
2888
      private long orderId;
2889
      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 {
2890
        super(client, protocolFactory, transport, resultHandler, false);
2891
        this.orderId = orderId;
2892
      }
2893
 
2894
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2895
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderAsOutOfStock", org.apache.thrift.protocol.TMessageType.CALL, 0));
2896
        markOrderAsOutOfStock_args args = new markOrderAsOutOfStock_args();
2897
        args.setOrderId(orderId);
2898
        args.write(prot);
2899
        prot.writeMessageEnd();
2900
      }
2901
 
2902
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
2903
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2904
          throw new IllegalStateException("Method call not finished!");
2905
        }
2906
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2907
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2908
        return (new Client(prot)).recv_markOrderAsOutOfStock();
2909
      }
2910
    }
2911
 
2912
    public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<verifyOrder_call> resultHandler) throws org.apache.thrift.TException {
2913
      checkReady();
2914
      verifyOrder_call method_call = new verifyOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2915
      this.___currentMethod = method_call;
2916
      ___manager.call(method_call);
2917
    }
2918
 
2919
    public static class verifyOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
2920
      private long orderId;
2921
      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 {
2922
        super(client, protocolFactory, transport, resultHandler, false);
2923
        this.orderId = orderId;
2924
      }
2925
 
2926
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2927
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("verifyOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
2928
        verifyOrder_args args = new verifyOrder_args();
2929
        args.setOrderId(orderId);
2930
        args.write(prot);
2931
        prot.writeMessageEnd();
2932
      }
2933
 
2934
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
2935
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2936
          throw new IllegalStateException("Method call not finished!");
2937
        }
2938
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2939
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2940
        return (new Client(prot)).recv_verifyOrder();
2941
      }
2942
    }
2943
 
2944
    public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<acceptOrder_call> resultHandler) throws org.apache.thrift.TException {
2945
      checkReady();
2946
      acceptOrder_call method_call = new acceptOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2947
      this.___currentMethod = method_call;
2948
      ___manager.call(method_call);
2949
    }
2950
 
2951
    public static class acceptOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
2952
      private long orderId;
2953
      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 {
2954
        super(client, protocolFactory, transport, resultHandler, false);
2955
        this.orderId = orderId;
2956
      }
2957
 
2958
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2959
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("acceptOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
2960
        acceptOrder_args args = new acceptOrder_args();
2961
        args.setOrderId(orderId);
2962
        args.write(prot);
2963
        prot.writeMessageEnd();
2964
      }
2965
 
2966
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
2967
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2968
          throw new IllegalStateException("Method call not finished!");
2969
        }
2970
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2971
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2972
        return (new Client(prot)).recv_acceptOrder();
2973
      }
2974
    }
2975
 
2976
    public void billOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<billOrder_call> resultHandler) throws org.apache.thrift.TException {
2977
      checkReady();
2978
      billOrder_call method_call = new billOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2979
      this.___currentMethod = method_call;
2980
      ___manager.call(method_call);
2981
    }
2982
 
2983
    public static class billOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
2984
      private long orderId;
2985
      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 {
2986
        super(client, protocolFactory, transport, resultHandler, false);
2987
        this.orderId = orderId;
2988
      }
2989
 
2990
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2991
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("billOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
2992
        billOrder_args args = new billOrder_args();
2993
        args.setOrderId(orderId);
2994
        args.write(prot);
2995
        prot.writeMessageEnd();
2996
      }
2997
 
2998
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
2999
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3000
          throw new IllegalStateException("Method call not finished!");
3001
        }
3002
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3003
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3004
        return (new Client(prot)).recv_billOrder();
3005
      }
3006
    }
3007
 
3008
    public void addBillingDetails(long orderId, String invoice_number, String billed_by, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler) throws org.apache.thrift.TException {
3009
      checkReady();
3010
      addBillingDetails_call method_call = new addBillingDetails_call(orderId, invoice_number, billed_by, resultHandler, this, ___protocolFactory, ___transport);
3011
      this.___currentMethod = method_call;
3012
      ___manager.call(method_call);
3013
    }
3014
 
3015
    public static class addBillingDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
3016
      private long orderId;
3017
      private String invoice_number;
3018
      private String billed_by;
3019
      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 {
3020
        super(client, protocolFactory, transport, resultHandler, false);
3021
        this.orderId = orderId;
3022
        this.invoice_number = invoice_number;
3023
        this.billed_by = billed_by;
3024
      }
3025
 
3026
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3027
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBillingDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028
        addBillingDetails_args args = new addBillingDetails_args();
3029
        args.setOrderId(orderId);
3030
        args.setInvoice_number(invoice_number);
3031
        args.setBilled_by(billed_by);
3032
        args.write(prot);
3033
        prot.writeMessageEnd();
3034
      }
3035
 
3036
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3037
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3038
          throw new IllegalStateException("Method call not finished!");
3039
        }
3040
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3041
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3042
        return (new Client(prot)).recv_addBillingDetails();
3043
      }
3044
    }
3045
 
3046
    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 {
3047
      checkReady();
3048
      addJacketNumber_call method_call = new addJacketNumber_call(orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType, resultHandler, this, ___protocolFactory, ___transport);
3049
      this.___currentMethod = method_call;
3050
      ___manager.call(method_call);
3051
    }
3052
 
3053
    public static class addJacketNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
3054
      private long orderId;
3055
      private long jacketNumber;
3056
      private long imeiNumber;
3057
      private String itemNumber;
3058
      private String billedBy;
3059
      private long billingType;
3060
      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 {
3061
        super(client, protocolFactory, transport, resultHandler, false);
3062
        this.orderId = orderId;
3063
        this.jacketNumber = jacketNumber;
3064
        this.imeiNumber = imeiNumber;
3065
        this.itemNumber = itemNumber;
3066
        this.billedBy = billedBy;
3067
        this.billingType = billingType;
3068
      }
3069
 
3070
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3071
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addJacketNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
3072
        addJacketNumber_args args = new addJacketNumber_args();
3073
        args.setOrderId(orderId);
3074
        args.setJacketNumber(jacketNumber);
3075
        args.setImeiNumber(imeiNumber);
3076
        args.setItemNumber(itemNumber);
3077
        args.setBilledBy(billedBy);
3078
        args.setBillingType(billingType);
3079
        args.write(prot);
3080
        prot.writeMessageEnd();
3081
      }
3082
 
3083
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3084
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3085
          throw new IllegalStateException("Method call not finished!");
3086
        }
3087
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3088
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3089
        return (new Client(prot)).recv_addJacketNumber();
3090
      }
3091
    }
3092
 
3093
    public void markOrdersAsManifested(long warehouseId, long providerId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsManifested_call> resultHandler) throws org.apache.thrift.TException {
3094
      checkReady();
3095
      markOrdersAsManifested_call method_call = new markOrdersAsManifested_call(warehouseId, providerId, cod, resultHandler, this, ___protocolFactory, ___transport);
3096
      this.___currentMethod = method_call;
3097
      ___manager.call(method_call);
3098
    }
3099
 
3100
    public static class markOrdersAsManifested_call extends org.apache.thrift.async.TAsyncMethodCall {
3101
      private long warehouseId;
3102
      private long providerId;
3103
      private boolean cod;
3104
      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 {
3105
        super(client, protocolFactory, transport, resultHandler, false);
3106
        this.warehouseId = warehouseId;
3107
        this.providerId = providerId;
3108
        this.cod = cod;
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("markOrdersAsManifested", org.apache.thrift.protocol.TMessageType.CALL, 0));
3113
        markOrdersAsManifested_args args = new markOrdersAsManifested_args();
3114
        args.setWarehouseId(warehouseId);
3115
        args.setProviderId(providerId);
3116
        args.setCod(cod);
3117
        args.write(prot);
3118
        prot.writeMessageEnd();
3119
      }
3120
 
3121
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3122
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3123
          throw new IllegalStateException("Method call not finished!");
3124
        }
3125
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3126
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3127
        return (new Client(prot)).recv_markOrdersAsManifested();
3128
      }
3129
    }
3130
 
3131
    public void markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsPickedUp_call> resultHandler) throws org.apache.thrift.TException {
3132
      checkReady();
3133
      markOrdersAsPickedUp_call method_call = new markOrdersAsPickedUp_call(providerId, pickupDetails, resultHandler, this, ___protocolFactory, ___transport);
3134
      this.___currentMethod = method_call;
3135
      ___manager.call(method_call);
3136
    }
3137
 
3138
    public static class markOrdersAsPickedUp_call extends org.apache.thrift.async.TAsyncMethodCall {
3139
      private long providerId;
3140
      private Map<String,String> pickupDetails;
3141
      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 {
3142
        super(client, protocolFactory, transport, resultHandler, false);
3143
        this.providerId = providerId;
3144
        this.pickupDetails = pickupDetails;
3145
      }
3146
 
3147
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3148
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsPickedUp", org.apache.thrift.protocol.TMessageType.CALL, 0));
3149
        markOrdersAsPickedUp_args args = new markOrdersAsPickedUp_args();
3150
        args.setProviderId(providerId);
3151
        args.setPickupDetails(pickupDetails);
3152
        args.write(prot);
3153
        prot.writeMessageEnd();
3154
      }
3155
 
3156
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
3157
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3158
          throw new IllegalStateException("Method call not finished!");
3159
        }
3160
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3161
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3162
        return (new Client(prot)).recv_markOrdersAsPickedUp();
3163
      }
3164
    }
3165
 
3166
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsDelivered_call> resultHandler) throws org.apache.thrift.TException {
3167
      checkReady();
3168
      markOrdersAsDelivered_call method_call = new markOrdersAsDelivered_call(providerId, deliveredOrders, resultHandler, this, ___protocolFactory, ___transport);
3169
      this.___currentMethod = method_call;
3170
      ___manager.call(method_call);
3171
    }
3172
 
3173
    public static class markOrdersAsDelivered_call extends org.apache.thrift.async.TAsyncMethodCall {
3174
      private long providerId;
3175
      private Map<String,String> deliveredOrders;
3176
      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 {
3177
        super(client, protocolFactory, transport, resultHandler, false);
3178
        this.providerId = providerId;
3179
        this.deliveredOrders = deliveredOrders;
3180
      }
3181
 
3182
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3183
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsDelivered", org.apache.thrift.protocol.TMessageType.CALL, 0));
3184
        markOrdersAsDelivered_args args = new markOrdersAsDelivered_args();
3185
        args.setProviderId(providerId);
3186
        args.setDeliveredOrders(deliveredOrders);
3187
        args.write(prot);
3188
        prot.writeMessageEnd();
3189
      }
3190
 
3191
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
3192
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3193
          throw new IllegalStateException("Method call not finished!");
3194
        }
3195
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3196
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3197
        (new Client(prot)).recv_markOrdersAsDelivered();
3198
      }
3199
    }
3200
 
3201
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsFailed_call> resultHandler) throws org.apache.thrift.TException {
3202
      checkReady();
3203
      markOrdersAsFailed_call method_call = new markOrdersAsFailed_call(providerId, returnedOrders, resultHandler, this, ___protocolFactory, ___transport);
3204
      this.___currentMethod = method_call;
3205
      ___manager.call(method_call);
3206
    }
3207
 
3208
    public static class markOrdersAsFailed_call extends org.apache.thrift.async.TAsyncMethodCall {
3209
      private long providerId;
3210
      private Map<String,String> returnedOrders;
3211
      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 {
3212
        super(client, protocolFactory, transport, resultHandler, false);
3213
        this.providerId = providerId;
3214
        this.returnedOrders = returnedOrders;
3215
      }
3216
 
3217
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3218
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsFailed", org.apache.thrift.protocol.TMessageType.CALL, 0));
3219
        markOrdersAsFailed_args args = new markOrdersAsFailed_args();
3220
        args.setProviderId(providerId);
3221
        args.setReturnedOrders(returnedOrders);
3222
        args.write(prot);
3223
        prot.writeMessageEnd();
3224
      }
3225
 
3226
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
3227
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3228
          throw new IllegalStateException("Method call not finished!");
3229
        }
3230
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3231
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3232
        (new Client(prot)).recv_markOrdersAsFailed();
3233
      }
3234
    }
3235
 
3236
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders, org.apache.thrift.async.AsyncMethodCallback<updateNonDeliveryReason_call> resultHandler) throws org.apache.thrift.TException {
3237
      checkReady();
3238
      updateNonDeliveryReason_call method_call = new updateNonDeliveryReason_call(providerId, undeliveredOrders, resultHandler, this, ___protocolFactory, ___transport);
3239
      this.___currentMethod = method_call;
3240
      ___manager.call(method_call);
3241
    }
3242
 
3243
    public static class updateNonDeliveryReason_call extends org.apache.thrift.async.TAsyncMethodCall {
3244
      private long providerId;
3245
      private Map<String,String> undeliveredOrders;
3246
      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 {
3247
        super(client, protocolFactory, transport, resultHandler, false);
3248
        this.providerId = providerId;
3249
        this.undeliveredOrders = undeliveredOrders;
3250
      }
3251
 
3252
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3253
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateNonDeliveryReason", org.apache.thrift.protocol.TMessageType.CALL, 0));
3254
        updateNonDeliveryReason_args args = new updateNonDeliveryReason_args();
3255
        args.setProviderId(providerId);
3256
        args.setUndeliveredOrders(undeliveredOrders);
3257
        args.write(prot);
3258
        prot.writeMessageEnd();
3259
      }
3260
 
3261
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
3262
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3263
          throw new IllegalStateException("Method call not finished!");
3264
        }
3265
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3266
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3267
        (new Client(prot)).recv_updateNonDeliveryReason();
3268
      }
3269
    }
3270
 
3271
    public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException {
3272
      checkReady();
3273
      getUndeliveredOrders_call method_call = new getUndeliveredOrders_call(providerId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3274
      this.___currentMethod = method_call;
3275
      ___manager.call(method_call);
3276
    }
3277
 
3278
    public static class getUndeliveredOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
3279
      private long providerId;
3280
      private long warehouseId;
3281
      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 {
3282
        super(client, protocolFactory, transport, resultHandler, false);
3283
        this.providerId = providerId;
3284
        this.warehouseId = warehouseId;
3285
      }
3286
 
3287
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3288
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUndeliveredOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
3289
        getUndeliveredOrders_args args = new getUndeliveredOrders_args();
3290
        args.setProviderId(providerId);
3291
        args.setWarehouseId(warehouseId);
3292
        args.write(prot);
3293
        prot.writeMessageEnd();
3294
      }
3295
 
3296
      public List<Order> getResult() throws org.apache.thrift.TException {
3297
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3298
          throw new IllegalStateException("Method call not finished!");
3299
        }
3300
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3301
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3302
        return (new Client(prot)).recv_getUndeliveredOrders();
3303
      }
3304
    }
3305
 
3306
    public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException {
3307
      checkReady();
3308
      toggleDOAFlag_call method_call = new toggleDOAFlag_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3309
      this.___currentMethod = method_call;
3310
      ___manager.call(method_call);
3311
    }
3312
 
3313
    public static class toggleDOAFlag_call extends org.apache.thrift.async.TAsyncMethodCall {
3314
      private long orderId;
3315
      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 {
3316
        super(client, protocolFactory, transport, resultHandler, false);
3317
        this.orderId = orderId;
3318
      }
3319
 
3320
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3321
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("toggleDOAFlag", org.apache.thrift.protocol.TMessageType.CALL, 0));
3322
        toggleDOAFlag_args args = new toggleDOAFlag_args();
3323
        args.setOrderId(orderId);
3324
        args.write(prot);
3325
        prot.writeMessageEnd();
3326
      }
3327
 
3328
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3329
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3330
          throw new IllegalStateException("Method call not finished!");
3331
        }
3332
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3333
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3334
        return (new Client(prot)).recv_toggleDOAFlag();
3335
      }
3336
    }
3337
 
3338
    public void requestPickupNumber(long orderId, org.apache.thrift.async.AsyncMethodCallback<requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException {
3339
      checkReady();
3340
      requestPickupNumber_call method_call = new requestPickupNumber_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3341
      this.___currentMethod = method_call;
3342
      ___manager.call(method_call);
3343
    }
3344
 
3345
    public static class requestPickupNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
3346
      private long orderId;
3347
      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 {
3348
        super(client, protocolFactory, transport, resultHandler, false);
3349
        this.orderId = orderId;
3350
      }
3351
 
3352
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3353
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("requestPickupNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
3354
        requestPickupNumber_args args = new requestPickupNumber_args();
3355
        args.setOrderId(orderId);
3356
        args.write(prot);
3357
        prot.writeMessageEnd();
3358
      }
3359
 
3360
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3361
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3362
          throw new IllegalStateException("Method call not finished!");
3363
        }
3364
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3365
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3366
        return (new Client(prot)).recv_requestPickupNumber();
3367
      }
3368
    }
3369
 
3370
    public void authorizePickup(long orderId, String pickupNumber, org.apache.thrift.async.AsyncMethodCallback<authorizePickup_call> resultHandler) throws org.apache.thrift.TException {
3371
      checkReady();
3372
      authorizePickup_call method_call = new authorizePickup_call(orderId, pickupNumber, resultHandler, this, ___protocolFactory, ___transport);
3373
      this.___currentMethod = method_call;
3374
      ___manager.call(method_call);
3375
    }
3376
 
3377
    public static class authorizePickup_call extends org.apache.thrift.async.TAsyncMethodCall {
3378
      private long orderId;
3379
      private String pickupNumber;
3380
      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 {
3381
        super(client, protocolFactory, transport, resultHandler, false);
3382
        this.orderId = orderId;
3383
        this.pickupNumber = pickupNumber;
3384
      }
3385
 
3386
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3387
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authorizePickup", org.apache.thrift.protocol.TMessageType.CALL, 0));
3388
        authorizePickup_args args = new authorizePickup_args();
3389
        args.setOrderId(orderId);
3390
        args.setPickupNumber(pickupNumber);
3391
        args.write(prot);
3392
        prot.writeMessageEnd();
3393
      }
3394
 
3395
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3396
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3397
          throw new IllegalStateException("Method call not finished!");
3398
        }
3399
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3400
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3401
        return (new Client(prot)).recv_authorizePickup();
3402
      }
3403
    }
3404
 
3405
    public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException {
3406
      checkReady();
3407
      markDoasAsPickedUp_call method_call = new markDoasAsPickedUp_call(providerId, pickupDetails, resultHandler, this, ___protocolFactory, ___transport);
3408
      this.___currentMethod = method_call;
3409
      ___manager.call(method_call);
3410
    }
3411
 
3412
    public static class markDoasAsPickedUp_call extends org.apache.thrift.async.TAsyncMethodCall {
3413
      private long providerId;
3414
      private Map<String,String> pickupDetails;
3415
      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 {
3416
        super(client, protocolFactory, transport, resultHandler, false);
3417
        this.providerId = providerId;
3418
        this.pickupDetails = pickupDetails;
3419
      }
3420
 
3421
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3422
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markDoasAsPickedUp", org.apache.thrift.protocol.TMessageType.CALL, 0));
3423
        markDoasAsPickedUp_args args = new markDoasAsPickedUp_args();
3424
        args.setProviderId(providerId);
3425
        args.setPickupDetails(pickupDetails);
3426
        args.write(prot);
3427
        prot.writeMessageEnd();
3428
      }
3429
 
3430
      public List<Order> getResult() throws org.apache.thrift.TException {
3431
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3432
          throw new IllegalStateException("Method call not finished!");
3433
        }
3434
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3435
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3436
        return (new Client(prot)).recv_markDoasAsPickedUp();
3437
      }
3438
    }
3439
 
3440
    public void receiveReturn(long orderId, org.apache.thrift.async.AsyncMethodCallback<receiveReturn_call> resultHandler) throws org.apache.thrift.TException {
3441
      checkReady();
3442
      receiveReturn_call method_call = new receiveReturn_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3443
      this.___currentMethod = method_call;
3444
      ___manager.call(method_call);
3445
    }
3446
 
3447
    public static class receiveReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
3448
      private long orderId;
3449
      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 {
3450
        super(client, protocolFactory, transport, resultHandler, false);
3451
        this.orderId = orderId;
3452
      }
3453
 
3454
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3455
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("receiveReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
3456
        receiveReturn_args args = new receiveReturn_args();
3457
        args.setOrderId(orderId);
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_receiveReturn();
3469
      }
3470
    }
3471
 
3472
    public void validateDoa(long orderId, boolean isValid, org.apache.thrift.async.AsyncMethodCallback<validateDoa_call> resultHandler) throws org.apache.thrift.TException {
3473
      checkReady();
3474
      validateDoa_call method_call = new validateDoa_call(orderId, isValid, resultHandler, this, ___protocolFactory, ___transport);
3475
      this.___currentMethod = method_call;
3476
      ___manager.call(method_call);
3477
    }
3478
 
3479
    public static class validateDoa_call extends org.apache.thrift.async.TAsyncMethodCall {
3480
      private long orderId;
3481
      private boolean isValid;
3482
      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 {
3483
        super(client, protocolFactory, transport, resultHandler, false);
3484
        this.orderId = orderId;
3485
        this.isValid = isValid;
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("validateDoa", org.apache.thrift.protocol.TMessageType.CALL, 0));
3490
        validateDoa_args args = new validateDoa_args();
3491
        args.setOrderId(orderId);
3492
        args.setIsValid(isValid);
3493
        args.write(prot);
3494
        prot.writeMessageEnd();
3495
      }
3496
 
3497
      public boolean 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_validateDoa();
3504
      }
3505
    }
3506
 
3507
    public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<reshipOrder_call> resultHandler) throws org.apache.thrift.TException {
3508
      checkReady();
3509
      reshipOrder_call method_call = new reshipOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
3510
      this.___currentMethod = method_call;
3511
      ___manager.call(method_call);
3512
    }
3513
 
3514
    public static class reshipOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3515
      private long orderId;
3516
      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 {
3517
        super(client, protocolFactory, transport, resultHandler, false);
3518
        this.orderId = orderId;
3519
      }
3520
 
3521
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3522
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reshipOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3523
        reshipOrder_args args = new reshipOrder_args();
3524
        args.setOrderId(orderId);
3525
        args.write(prot);
3526
        prot.writeMessageEnd();
3527
      }
3528
 
3529
      public long getResult() throws TransactionServiceException, org.apache.thrift.TException {
3530
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3531
          throw new IllegalStateException("Method call not finished!");
3532
        }
3533
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3534
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3535
        return (new Client(prot)).recv_reshipOrder();
3536
      }
3537
    }
3538
 
3539
    public void refundOrder(long orderId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<refundOrder_call> resultHandler) throws org.apache.thrift.TException {
3540
      checkReady();
3541
      refundOrder_call method_call = new refundOrder_call(orderId, refundedBy, reason, resultHandler, this, ___protocolFactory, ___transport);
3542
      this.___currentMethod = method_call;
3543
      ___manager.call(method_call);
3544
    }
3545
 
3546
    public static class refundOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3547
      private long orderId;
3548
      private String refundedBy;
3549
      private String reason;
3550
      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 {
3551
        super(client, protocolFactory, transport, resultHandler, false);
3552
        this.orderId = orderId;
3553
        this.refundedBy = refundedBy;
3554
        this.reason = reason;
3555
      }
3556
 
3557
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3558
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("refundOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3559
        refundOrder_args args = new refundOrder_args();
3560
        args.setOrderId(orderId);
3561
        args.setRefundedBy(refundedBy);
3562
        args.setReason(reason);
3563
        args.write(prot);
3564
        prot.writeMessageEnd();
3565
      }
3566
 
3567
      public boolean 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
        return (new Client(prot)).recv_refundOrder();
3574
      }
3575
    }
3576
 
3577
    public void getReturnOrders(long warehouseId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getReturnOrders_call> resultHandler) throws org.apache.thrift.TException {
3578
      checkReady();
3579
      getReturnOrders_call method_call = new getReturnOrders_call(warehouseId, fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
3580
      this.___currentMethod = method_call;
3581
      ___manager.call(method_call);
3582
    }
3583
 
3584
    public static class getReturnOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
3585
      private long warehouseId;
3586
      private long fromDate;
3587
      private long toDate;
3588
      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 {
3589
        super(client, protocolFactory, transport, resultHandler, false);
3590
        this.warehouseId = warehouseId;
3591
        this.fromDate = fromDate;
3592
        this.toDate = toDate;
3593
      }
3594
 
3595
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3596
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReturnOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
3597
        getReturnOrders_args args = new getReturnOrders_args();
3598
        args.setWarehouseId(warehouseId);
3599
        args.setFromDate(fromDate);
3600
        args.setToDate(toDate);
3601
        args.write(prot);
3602
        prot.writeMessageEnd();
3603
      }
3604
 
3605
      public List<ReturnOrder> getResult() throws org.apache.thrift.TException {
3606
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3607
          throw new IllegalStateException("Method call not finished!");
3608
        }
3609
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3610
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3611
        return (new Client(prot)).recv_getReturnOrders();
3612
      }
3613
    }
3614
 
3615
    public void getReturnOrder(long id, org.apache.thrift.async.AsyncMethodCallback<getReturnOrder_call> resultHandler) throws org.apache.thrift.TException {
3616
      checkReady();
3617
      getReturnOrder_call method_call = new getReturnOrder_call(id, resultHandler, this, ___protocolFactory, ___transport);
3618
      this.___currentMethod = method_call;
3619
      ___manager.call(method_call);
3620
    }
3621
 
3622
    public static class getReturnOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3623
      private long id;
3624
      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 {
3625
        super(client, protocolFactory, transport, resultHandler, false);
3626
        this.id = id;
3627
      }
3628
 
3629
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3630
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReturnOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3631
        getReturnOrder_args args = new getReturnOrder_args();
3632
        args.setId(id);
3633
        args.write(prot);
3634
        prot.writeMessageEnd();
3635
      }
3636
 
3637
      public ReturnOrder getResult() throws TransactionServiceException, 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_getReturnOrder();
3644
      }
3645
    }
3646
 
3647
    public void processReturn(long returnOrderId, org.apache.thrift.async.AsyncMethodCallback<processReturn_call> resultHandler) throws org.apache.thrift.TException {
3648
      checkReady();
3649
      processReturn_call method_call = new processReturn_call(returnOrderId, resultHandler, this, ___protocolFactory, ___transport);
3650
      this.___currentMethod = method_call;
3651
      ___manager.call(method_call);
3652
    }
3653
 
3654
    public static class processReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
3655
      private long returnOrderId;
3656
      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 {
3657
        super(client, protocolFactory, transport, resultHandler, false);
3658
        this.returnOrderId = returnOrderId;
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("processReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
3663
        processReturn_args args = new processReturn_args();
3664
        args.setReturnOrderId(returnOrderId);
3665
        args.write(prot);
3666
        prot.writeMessageEnd();
3667
      }
3668
 
3669
      public void 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
        (new Client(prot)).recv_processReturn();
3676
      }
3677
    }
3678
 
3679
    public void createPurchaseOrder(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException {
3680
      checkReady();
3681
      createPurchaseOrder_call method_call = new createPurchaseOrder_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3682
      this.___currentMethod = method_call;
3683
      ___manager.call(method_call);
3684
    }
3685
 
3686
    public static class createPurchaseOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3687
      private long warehouseId;
3688
      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 {
3689
        super(client, protocolFactory, transport, resultHandler, false);
3690
        this.warehouseId = warehouseId;
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("createPurchaseOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3695
        createPurchaseOrder_args args = new createPurchaseOrder_args();
3696
        args.setWarehouseId(warehouseId);
3697
        args.write(prot);
3698
        prot.writeMessageEnd();
3699
      }
3700
 
3701
      public long 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_createPurchaseOrder();
3708
      }
3709
    }
3710
 
3451 chandransh 3711
    public void updateWeight(long orderId, double weight, org.apache.thrift.async.AsyncMethodCallback<updateWeight_call> resultHandler) throws org.apache.thrift.TException {
3712
      checkReady();
3713
      updateWeight_call method_call = new updateWeight_call(orderId, weight, resultHandler, this, ___protocolFactory, ___transport);
3714
      this.___currentMethod = method_call;
3715
      ___manager.call(method_call);
3716
    }
3717
 
3718
    public static class updateWeight_call extends org.apache.thrift.async.TAsyncMethodCall {
3719
      private long orderId;
3720
      private double weight;
3721
      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 {
3722
        super(client, protocolFactory, transport, resultHandler, false);
3723
        this.orderId = orderId;
3724
        this.weight = weight;
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("updateWeight", org.apache.thrift.protocol.TMessageType.CALL, 0));
3729
        updateWeight_args args = new updateWeight_args();
3730
        args.setOrderId(orderId);
3731
        args.setWeight(weight);
3732
        args.write(prot);
3733
        prot.writeMessageEnd();
3734
      }
3735
 
3736
      public Order 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_updateWeight();
3743
      }
3744
    }
3745
 
3469 chandransh 3746
    public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<changeItem_call> resultHandler) throws org.apache.thrift.TException {
3747
      checkReady();
3748
      changeItem_call method_call = new changeItem_call(orderId, itemId, resultHandler, this, ___protocolFactory, ___transport);
3749
      this.___currentMethod = method_call;
3750
      ___manager.call(method_call);
3751
    }
3752
 
3753
    public static class changeItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3754
      private long orderId;
3755
      private long itemId;
3756
      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 {
3757
        super(client, protocolFactory, transport, resultHandler, false);
3758
        this.orderId = orderId;
3759
        this.itemId = itemId;
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("changeItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3764
        changeItem_args args = new changeItem_args();
3765
        args.setOrderId(orderId);
3766
        args.setItemId(itemId);
3767
        args.write(prot);
3768
        prot.writeMessageEnd();
3769
      }
3770
 
3771
      public Order getResult() throws TransactionServiceException, 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_changeItem();
3778
      }
3779
    }
3780
 
3781
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException {
3782
      checkReady();
3783
      shiftToWarehouse_call method_call = new shiftToWarehouse_call(orderId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3784
      this.___currentMethod = method_call;
3785
      ___manager.call(method_call);
3786
    }
3787
 
3788
    public static class shiftToWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
3789
      private long orderId;
3790
      private long warehouseId;
3791
      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 {
3792
        super(client, protocolFactory, transport, resultHandler, false);
3793
        this.orderId = orderId;
3794
        this.warehouseId = warehouseId;
3795
      }
3796
 
3797
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3798
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shiftToWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
3799
        shiftToWarehouse_args args = new shiftToWarehouse_args();
3800
        args.setOrderId(orderId);
3801
        args.setWarehouseId(warehouseId);
3802
        args.write(prot);
3803
        prot.writeMessageEnd();
3804
      }
3805
 
3806
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
3807
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3808
          throw new IllegalStateException("Method call not finished!");
3809
        }
3810
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3811
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3812
        return (new Client(prot)).recv_shiftToWarehouse();
3813
      }
3814
    }
3815
 
3430 rajveer 3816
  }
3817
 
3818
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3819
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3820
    public Processor(I iface) {
3821
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
3822
    }
3823
 
3824
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
3825
      super(iface, getProcessMap(processMap));
3826
    }
3827
 
3828
    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) {
3829
      processMap.put("createTransaction", new createTransaction());
3830
      processMap.put("getTransaction", new getTransaction());
3831
      processMap.put("getTransactionsForCustomer", new getTransactionsForCustomer());
3832
      processMap.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());
3833
      processMap.put("getTransactionStatus", new getTransactionStatus());
3834
      processMap.put("changeTransactionStatus", new changeTransactionStatus());
3835
      processMap.put("enqueueTransactionInfoEmail", new enqueueTransactionInfoEmail());
3836
      processMap.put("getAllOrders", new getAllOrders());
3837
      processMap.put("getOrdersByBillingDate", new getOrdersByBillingDate());
3838
      processMap.put("getOrdersByShippingDate", new getOrdersByShippingDate());
3839
      processMap.put("getReturnableOrdersForCustomer", new getReturnableOrdersForCustomer());
3840
      processMap.put("getCancellableOrdersForCustomer", new getCancellableOrdersForCustomer());
3841
      processMap.put("changeOrderStatus", new changeOrderStatus());
3842
      processMap.put("getOrdersForTransaction", new getOrdersForTransaction());
3843
      processMap.put("getOrdersForCustomer", new getOrdersForCustomer());
3844
      processMap.put("createOrder", new createOrder());
3845
      processMap.put("getOrder", new getOrder());
3846
      processMap.put("getLineItemsForOrder", new getLineItemsForOrder());
3847
      processMap.put("getOrderForCustomer", new getOrderForCustomer());
3848
      processMap.put("getAlerts", new getAlerts());
3849
      processMap.put("setAlert", new setAlert());
3850
      processMap.put("getValidOrderCount", new getValidOrderCount());
3851
      processMap.put("getNoOfCustomersWithSuccessfulTransaction", new getNoOfCustomersWithSuccessfulTransaction());
3852
      processMap.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());
3853
      processMap.put("getValidOrders", new getValidOrders());
3854
      processMap.put("batchOrders", new batchOrders());
3855
      processMap.put("markOrderAsOutOfStock", new markOrderAsOutOfStock());
3856
      processMap.put("verifyOrder", new verifyOrder());
3857
      processMap.put("acceptOrder", new acceptOrder());
3858
      processMap.put("billOrder", new billOrder());
3859
      processMap.put("addBillingDetails", new addBillingDetails());
3860
      processMap.put("addJacketNumber", new addJacketNumber());
3861
      processMap.put("markOrdersAsManifested", new markOrdersAsManifested());
3862
      processMap.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());
3863
      processMap.put("markOrdersAsDelivered", new markOrdersAsDelivered());
3864
      processMap.put("markOrdersAsFailed", new markOrdersAsFailed());
3865
      processMap.put("updateNonDeliveryReason", new updateNonDeliveryReason());
3866
      processMap.put("getUndeliveredOrders", new getUndeliveredOrders());
3867
      processMap.put("toggleDOAFlag", new toggleDOAFlag());
3868
      processMap.put("requestPickupNumber", new requestPickupNumber());
3869
      processMap.put("authorizePickup", new authorizePickup());
3870
      processMap.put("markDoasAsPickedUp", new markDoasAsPickedUp());
3871
      processMap.put("receiveReturn", new receiveReturn());
3872
      processMap.put("validateDoa", new validateDoa());
3873
      processMap.put("reshipOrder", new reshipOrder());
3874
      processMap.put("refundOrder", new refundOrder());
3875
      processMap.put("getReturnOrders", new getReturnOrders());
3876
      processMap.put("getReturnOrder", new getReturnOrder());
3877
      processMap.put("processReturn", new processReturn());
3878
      processMap.put("createPurchaseOrder", new createPurchaseOrder());
3451 chandransh 3879
      processMap.put("updateWeight", new updateWeight());
3469 chandransh 3880
      processMap.put("changeItem", new changeItem());
3881
      processMap.put("shiftToWarehouse", new shiftToWarehouse());
3430 rajveer 3882
      return processMap;
3883
    }
3884
 
3885
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
3886
      public createTransaction() {
3887
        super("createTransaction");
3888
      }
3889
 
3890
      protected createTransaction_args getEmptyArgsInstance() {
3891
        return new createTransaction_args();
3892
      }
3893
 
3894
      protected createTransaction_result getResult(I iface, createTransaction_args args) throws org.apache.thrift.TException {
68 ashish 3895
        createTransaction_result result = new createTransaction_result();
3896
        try {
3430 rajveer 3897
          result.success = iface.createTransaction(args.transaction);
132 ashish 3898
          result.setSuccessIsSet(true);
68 ashish 3899
        } catch (TransactionServiceException ex) {
3900
          result.ex = ex;
3901
        }
3430 rajveer 3902
        return result;
68 ashish 3903
      }
3904
    }
3905
 
3430 rajveer 3906
    private static class getTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransaction_args> {
3907
      public getTransaction() {
3908
        super("getTransaction");
3909
      }
3910
 
3911
      protected getTransaction_args getEmptyArgsInstance() {
3912
        return new getTransaction_args();
3913
      }
3914
 
3915
      protected getTransaction_result getResult(I iface, getTransaction_args args) throws org.apache.thrift.TException {
68 ashish 3916
        getTransaction_result result = new getTransaction_result();
3917
        try {
3430 rajveer 3918
          result.success = iface.getTransaction(args.id);
68 ashish 3919
        } catch (TransactionServiceException ex) {
3920
          result.ex = ex;
3921
        }
3430 rajveer 3922
        return result;
68 ashish 3923
      }
3924
    }
3925
 
3430 rajveer 3926
    private static class getTransactionsForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionsForCustomer_args> {
3927
      public getTransactionsForCustomer() {
3928
        super("getTransactionsForCustomer");
3929
      }
3930
 
3931
      protected getTransactionsForCustomer_args getEmptyArgsInstance() {
3932
        return new getTransactionsForCustomer_args();
3933
      }
3934
 
3935
      protected getTransactionsForCustomer_result getResult(I iface, getTransactionsForCustomer_args args) throws org.apache.thrift.TException {
68 ashish 3936
        getTransactionsForCustomer_result result = new getTransactionsForCustomer_result();
3937
        try {
3430 rajveer 3938
          result.success = iface.getTransactionsForCustomer(args.customerId, args.from_date, args.to_date, args.status);
68 ashish 3939
        } catch (TransactionServiceException ex) {
3940
          result.ex = ex;
3941
        }
3430 rajveer 3942
        return result;
68 ashish 3943
      }
3944
    }
3945
 
3430 rajveer 3946
    private static class getTransactionsForShoppingCartId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionsForShoppingCartId_args> {
3947
      public getTransactionsForShoppingCartId() {
3948
        super("getTransactionsForShoppingCartId");
3949
      }
3950
 
3951
      protected getTransactionsForShoppingCartId_args getEmptyArgsInstance() {
3952
        return new getTransactionsForShoppingCartId_args();
3953
      }
3954
 
3955
      protected getTransactionsForShoppingCartId_result getResult(I iface, getTransactionsForShoppingCartId_args args) throws org.apache.thrift.TException {
132 ashish 3956
        getTransactionsForShoppingCartId_result result = new getTransactionsForShoppingCartId_result();
3957
        try {
3430 rajveer 3958
          result.success = iface.getTransactionsForShoppingCartId(args.shoppingCartId);
132 ashish 3959
        } catch (TransactionServiceException ex) {
3960
          result.ex = ex;
3961
        }
3430 rajveer 3962
        return result;
132 ashish 3963
      }
3964
    }
3965
 
3430 rajveer 3966
    private static class getTransactionStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionStatus_args> {
3967
      public getTransactionStatus() {
3968
        super("getTransactionStatus");
3969
      }
3970
 
3971
      protected getTransactionStatus_args getEmptyArgsInstance() {
3972
        return new getTransactionStatus_args();
3973
      }
3974
 
3975
      protected getTransactionStatus_result getResult(I iface, getTransactionStatus_args args) throws org.apache.thrift.TException {
68 ashish 3976
        getTransactionStatus_result result = new getTransactionStatus_result();
3977
        try {
3430 rajveer 3978
          result.success = iface.getTransactionStatus(args.transactionId);
68 ashish 3979
        } catch (TransactionServiceException ex) {
3980
          result.ex = ex;
3981
        }
3430 rajveer 3982
        return result;
68 ashish 3983
      }
3984
    }
3985
 
3430 rajveer 3986
    private static class changeTransactionStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeTransactionStatus_args> {
3987
      public changeTransactionStatus() {
3988
        super("changeTransactionStatus");
3989
      }
3990
 
3991
      protected changeTransactionStatus_args getEmptyArgsInstance() {
3992
        return new changeTransactionStatus_args();
3993
      }
3994
 
3995
      protected changeTransactionStatus_result getResult(I iface, changeTransactionStatus_args args) throws org.apache.thrift.TException {
68 ashish 3996
        changeTransactionStatus_result result = new changeTransactionStatus_result();
3997
        try {
3430 rajveer 3998
          result.success = iface.changeTransactionStatus(args.transactionId, args.status, args.description);
68 ashish 3999
          result.setSuccessIsSet(true);
4000
        } catch (TransactionServiceException ex) {
4001
          result.ex = ex;
4002
        }
3430 rajveer 4003
        return result;
68 ashish 4004
      }
4005
    }
4006
 
3430 rajveer 4007
    private static class enqueueTransactionInfoEmail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enqueueTransactionInfoEmail_args> {
4008
      public enqueueTransactionInfoEmail() {
4009
        super("enqueueTransactionInfoEmail");
4010
      }
4011
 
4012
      protected enqueueTransactionInfoEmail_args getEmptyArgsInstance() {
4013
        return new enqueueTransactionInfoEmail_args();
4014
      }
4015
 
4016
      protected enqueueTransactionInfoEmail_result getResult(I iface, enqueueTransactionInfoEmail_args args) throws org.apache.thrift.TException {
1398 varun.gupt 4017
        enqueueTransactionInfoEmail_result result = new enqueueTransactionInfoEmail_result();
1382 varun.gupt 4018
        try {
3430 rajveer 4019
          result.success = iface.enqueueTransactionInfoEmail(args.transactionId);
1382 varun.gupt 4020
          result.setSuccessIsSet(true);
4021
        } catch (TransactionServiceException ex) {
4022
          result.ex = ex;
4023
        }
3430 rajveer 4024
        return result;
1382 varun.gupt 4025
      }
4026
    }
4027
 
3430 rajveer 4028
    private static class getAllOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllOrders_args> {
4029
      public getAllOrders() {
4030
        super("getAllOrders");
4031
      }
4032
 
4033
      protected getAllOrders_args getEmptyArgsInstance() {
4034
        return new getAllOrders_args();
4035
      }
4036
 
4037
      protected getAllOrders_result getResult(I iface, getAllOrders_args args) throws org.apache.thrift.TException {
483 rajveer 4038
        getAllOrders_result result = new getAllOrders_result();
68 ashish 4039
        try {
3430 rajveer 4040
          result.success = iface.getAllOrders(args.status, args.from_date, args.to_date, args.warehouse_id);
68 ashish 4041
        } catch (TransactionServiceException ex) {
4042
          result.ex = ex;
4043
        }
3430 rajveer 4044
        return result;
68 ashish 4045
      }
4046
    }
4047
 
3430 rajveer 4048
    private static class getOrdersByBillingDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersByBillingDate_args> {
4049
      public getOrdersByBillingDate() {
4050
        super("getOrdersByBillingDate");
4051
      }
4052
 
4053
      protected getOrdersByBillingDate_args getEmptyArgsInstance() {
4054
        return new getOrdersByBillingDate_args();
4055
      }
4056
 
4057
      protected getOrdersByBillingDate_result getResult(I iface, getOrdersByBillingDate_args args) throws org.apache.thrift.TException {
1022 varun.gupt 4058
        getOrdersByBillingDate_result result = new getOrdersByBillingDate_result();
4059
        try {
3430 rajveer 4060
          result.success = iface.getOrdersByBillingDate(args.status, args.start_billing_date, args.end_billing_date, args.warehouse_id);
1022 varun.gupt 4061
        } catch (TransactionServiceException ex) {
4062
          result.ex = ex;
4063
        }
3430 rajveer 4064
        return result;
1022 varun.gupt 4065
      }
4066
    }
4067
 
3430 rajveer 4068
    private static class getOrdersByShippingDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersByShippingDate_args> {
4069
      public getOrdersByShippingDate() {
4070
        super("getOrdersByShippingDate");
4071
      }
4072
 
4073
      protected getOrdersByShippingDate_args getEmptyArgsInstance() {
4074
        return new getOrdersByShippingDate_args();
4075
      }
4076
 
4077
      protected getOrdersByShippingDate_result getResult(I iface, getOrdersByShippingDate_args args) throws org.apache.thrift.TException {
3427 chandransh 4078
        getOrdersByShippingDate_result result = new getOrdersByShippingDate_result();
4079
        try {
3451 chandransh 4080
          result.success = iface.getOrdersByShippingDate(args.fromShippingDate, args.toShippingDate, args.providerId, args.warehouseId, args.cod);
3427 chandransh 4081
        } catch (TransactionServiceException ex) {
4082
          result.ex = ex;
4083
        }
3430 rajveer 4084
        return result;
3427 chandransh 4085
      }
4086
    }
4087
 
3430 rajveer 4088
    private static class getReturnableOrdersForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnableOrdersForCustomer_args> {
4089
      public getReturnableOrdersForCustomer() {
4090
        super("getReturnableOrdersForCustomer");
4091
      }
4092
 
4093
      protected getReturnableOrdersForCustomer_args getEmptyArgsInstance() {
4094
        return new getReturnableOrdersForCustomer_args();
4095
      }
4096
 
4097
      protected getReturnableOrdersForCustomer_result getResult(I iface, getReturnableOrdersForCustomer_args args) throws org.apache.thrift.TException {
1382 varun.gupt 4098
        getReturnableOrdersForCustomer_result result = new getReturnableOrdersForCustomer_result();
4099
        try {
3430 rajveer 4100
          result.success = iface.getReturnableOrdersForCustomer(args.customer_id, args.limit);
1382 varun.gupt 4101
        } catch (TransactionServiceException ex) {
4102
          result.ex = ex;
4103
        }
3430 rajveer 4104
        return result;
1382 varun.gupt 4105
      }
4106
    }
4107
 
3430 rajveer 4108
    private static class getCancellableOrdersForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCancellableOrdersForCustomer_args> {
4109
      public getCancellableOrdersForCustomer() {
4110
        super("getCancellableOrdersForCustomer");
4111
      }
4112
 
4113
      protected getCancellableOrdersForCustomer_args getEmptyArgsInstance() {
4114
        return new getCancellableOrdersForCustomer_args();
4115
      }
4116
 
4117
      protected getCancellableOrdersForCustomer_result getResult(I iface, getCancellableOrdersForCustomer_args args) throws org.apache.thrift.TException {
1382 varun.gupt 4118
        getCancellableOrdersForCustomer_result result = new getCancellableOrdersForCustomer_result();
4119
        try {
3430 rajveer 4120
          result.success = iface.getCancellableOrdersForCustomer(args.customer_id, args.limit);
1382 varun.gupt 4121
        } catch (TransactionServiceException ex) {
4122
          result.ex = ex;
4123
        }
3430 rajveer 4124
        return result;
1382 varun.gupt 4125
      }
4126
    }
4127
 
3430 rajveer 4128
    private static class changeOrderStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeOrderStatus_args> {
4129
      public changeOrderStatus() {
4130
        super("changeOrderStatus");
4131
      }
4132
 
4133
      protected changeOrderStatus_args getEmptyArgsInstance() {
4134
        return new changeOrderStatus_args();
4135
      }
4136
 
4137
      protected changeOrderStatus_result getResult(I iface, changeOrderStatus_args args) throws org.apache.thrift.TException {
483 rajveer 4138
        changeOrderStatus_result result = new changeOrderStatus_result();
68 ashish 4139
        try {
3430 rajveer 4140
          result.success = iface.changeOrderStatus(args.orderId, args.status, args.description);
68 ashish 4141
          result.setSuccessIsSet(true);
4142
        } catch (TransactionServiceException ex) {
4143
          result.ex = ex;
4144
        }
3430 rajveer 4145
        return result;
68 ashish 4146
      }
4147
    }
4148
 
3430 rajveer 4149
    private static class getOrdersForTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForTransaction_args> {
4150
      public getOrdersForTransaction() {
4151
        super("getOrdersForTransaction");
4152
      }
4153
 
4154
      protected getOrdersForTransaction_args getEmptyArgsInstance() {
4155
        return new getOrdersForTransaction_args();
4156
      }
4157
 
4158
      protected getOrdersForTransaction_result getResult(I iface, getOrdersForTransaction_args args) throws org.apache.thrift.TException {
3061 chandransh 4159
        getOrdersForTransaction_result result = new getOrdersForTransaction_result();
495 rajveer 4160
        try {
3430 rajveer 4161
          result.success = iface.getOrdersForTransaction(args.transactionId, args.customerId);
495 rajveer 4162
        } catch (TransactionServiceException ex) {
4163
          result.ex = ex;
4164
        }
3430 rajveer 4165
        return result;
495 rajveer 4166
      }
4167
    }
4168
 
3430 rajveer 4169
    private static class getOrdersForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForCustomer_args> {
4170
      public getOrdersForCustomer() {
4171
        super("getOrdersForCustomer");
4172
      }
4173
 
4174
      protected getOrdersForCustomer_args getEmptyArgsInstance() {
4175
        return new getOrdersForCustomer_args();
4176
      }
4177
 
4178
      protected getOrdersForCustomer_result getResult(I iface, getOrdersForCustomer_args args) throws org.apache.thrift.TException {
3061 chandransh 4179
        getOrdersForCustomer_result result = new getOrdersForCustomer_result();
1148 chandransh 4180
        try {
3430 rajveer 4181
          result.success = iface.getOrdersForCustomer(args.customerId, args.from_date, args.to_date, args.statuses);
1148 chandransh 4182
        } catch (TransactionServiceException ex) {
4183
          result.ex = ex;
4184
        }
3430 rajveer 4185
        return result;
1148 chandransh 4186
      }
4187
    }
4188
 
3430 rajveer 4189
    private static class createOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createOrder_args> {
4190
      public createOrder() {
4191
        super("createOrder");
4192
      }
4193
 
4194
      protected createOrder_args getEmptyArgsInstance() {
4195
        return new createOrder_args();
4196
      }
4197
 
4198
      protected createOrder_result getResult(I iface, createOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 4199
        createOrder_result result = new createOrder_result();
923 rajveer 4200
        try {
3430 rajveer 4201
          result.success = iface.createOrder(args.order);
923 rajveer 4202
          result.setSuccessIsSet(true);
4203
        } catch (TransactionServiceException ex) {
4204
          result.ex = ex;
4205
        }
3430 rajveer 4206
        return result;
923 rajveer 4207
      }
4208
    }
4209
 
3430 rajveer 4210
    private static class getOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrder_args> {
4211
      public getOrder() {
4212
        super("getOrder");
4213
      }
4214
 
4215
      protected getOrder_args getEmptyArgsInstance() {
4216
        return new getOrder_args();
4217
      }
4218
 
4219
      protected getOrder_result getResult(I iface, getOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 4220
        getOrder_result result = new getOrder_result();
923 rajveer 4221
        try {
3430 rajveer 4222
          result.success = iface.getOrder(args.id);
923 rajveer 4223
        } catch (TransactionServiceException ex) {
4224
          result.ex = ex;
4225
        }
3430 rajveer 4226
        return result;
923 rajveer 4227
      }
4228
    }
4229
 
3430 rajveer 4230
    private static class getLineItemsForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLineItemsForOrder_args> {
4231
      public getLineItemsForOrder() {
4232
        super("getLineItemsForOrder");
4233
      }
4234
 
4235
      protected getLineItemsForOrder_args getEmptyArgsInstance() {
4236
        return new getLineItemsForOrder_args();
4237
      }
4238
 
4239
      protected getLineItemsForOrder_result getResult(I iface, getLineItemsForOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 4240
        getLineItemsForOrder_result result = new getLineItemsForOrder_result();
68 ashish 4241
        try {
3430 rajveer 4242
          result.success = iface.getLineItemsForOrder(args.orderId);
68 ashish 4243
        } catch (TransactionServiceException ex) {
4244
          result.ex = ex;
4245
        }
3430 rajveer 4246
        return result;
68 ashish 4247
      }
4248
    }
4249
 
3430 rajveer 4250
    private static class getOrderForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderForCustomer_args> {
4251
      public getOrderForCustomer() {
4252
        super("getOrderForCustomer");
4253
      }
4254
 
4255
      protected getOrderForCustomer_args getEmptyArgsInstance() {
4256
        return new getOrderForCustomer_args();
4257
      }
4258
 
4259
      protected getOrderForCustomer_result getResult(I iface, getOrderForCustomer_args args) throws org.apache.thrift.TException {
3061 chandransh 4260
        getOrderForCustomer_result result = new getOrderForCustomer_result();
68 ashish 4261
        try {
3430 rajveer 4262
          result.success = iface.getOrderForCustomer(args.orderId, args.customerId);
68 ashish 4263
        } catch (TransactionServiceException ex) {
4264
          result.ex = ex;
4265
        }
3430 rajveer 4266
        return result;
68 ashish 4267
      }
4268
    }
4269
 
3430 rajveer 4270
    private static class getAlerts<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAlerts_args> {
4271
      public getAlerts() {
4272
        super("getAlerts");
4273
      }
4274
 
4275
      protected getAlerts_args getEmptyArgsInstance() {
4276
        return new getAlerts_args();
4277
      }
4278
 
4279
      protected getAlerts_result getResult(I iface, getAlerts_args args) throws org.apache.thrift.TException {
3061 chandransh 4280
        getAlerts_result result = new getAlerts_result();
3430 rajveer 4281
        result.success = iface.getAlerts(args.orderId, args.valid);
4282
        return result;
3061 chandransh 4283
      }
4284
    }
4285
 
3430 rajveer 4286
    private static class setAlert<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setAlert_args> {
4287
      public setAlert() {
4288
        super("setAlert");
4289
      }
4290
 
4291
      protected setAlert_args getEmptyArgsInstance() {
4292
        return new setAlert_args();
4293
      }
4294
 
4295
      protected setAlert_result getResult(I iface, setAlert_args args) throws org.apache.thrift.TException {
3061 chandransh 4296
        setAlert_result result = new setAlert_result();
3430 rajveer 4297
        iface.setAlert(args.orderId, args.unset, args.type, args.comment);
4298
        return result;
3061 chandransh 4299
      }
4300
    }
4301
 
3430 rajveer 4302
    private static class getValidOrderCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrderCount_args> {
4303
      public getValidOrderCount() {
4304
        super("getValidOrderCount");
4305
      }
4306
 
4307
      protected getValidOrderCount_args getEmptyArgsInstance() {
4308
        return new getValidOrderCount_args();
4309
      }
4310
 
4311
      protected getValidOrderCount_result getResult(I iface, getValidOrderCount_args args) throws org.apache.thrift.TException {
3061 chandransh 4312
        getValidOrderCount_result result = new getValidOrderCount_result();
3430 rajveer 4313
        result.success = iface.getValidOrderCount();
3061 chandransh 4314
        result.setSuccessIsSet(true);
3430 rajveer 4315
        return result;
3061 chandransh 4316
      }
4317
    }
4318
 
3430 rajveer 4319
    private static class getNoOfCustomersWithSuccessfulTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNoOfCustomersWithSuccessfulTransaction_args> {
4320
      public getNoOfCustomersWithSuccessfulTransaction() {
4321
        super("getNoOfCustomersWithSuccessfulTransaction");
4322
      }
4323
 
4324
      protected getNoOfCustomersWithSuccessfulTransaction_args getEmptyArgsInstance() {
4325
        return new getNoOfCustomersWithSuccessfulTransaction_args();
4326
      }
4327
 
4328
      protected getNoOfCustomersWithSuccessfulTransaction_result getResult(I iface, getNoOfCustomersWithSuccessfulTransaction_args args) throws org.apache.thrift.TException {
3061 chandransh 4329
        getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();
3430 rajveer 4330
        result.success = iface.getNoOfCustomersWithSuccessfulTransaction();
3061 chandransh 4331
        result.setSuccessIsSet(true);
3430 rajveer 4332
        return result;
3061 chandransh 4333
      }
4334
    }
4335
 
3430 rajveer 4336
    private static class getValidOrdersAmountRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrdersAmountRange_args> {
4337
      public getValidOrdersAmountRange() {
4338
        super("getValidOrdersAmountRange");
4339
      }
4340
 
4341
      protected getValidOrdersAmountRange_args getEmptyArgsInstance() {
4342
        return new getValidOrdersAmountRange_args();
4343
      }
4344
 
4345
      protected getValidOrdersAmountRange_result getResult(I iface, getValidOrdersAmountRange_args args) throws org.apache.thrift.TException {
3061 chandransh 4346
        getValidOrdersAmountRange_result result = new getValidOrdersAmountRange_result();
3430 rajveer 4347
        result.success = iface.getValidOrdersAmountRange();
4348
        return result;
3061 chandransh 4349
      }
4350
    }
4351
 
3430 rajveer 4352
    private static class getValidOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrders_args> {
4353
      public getValidOrders() {
4354
        super("getValidOrders");
4355
      }
4356
 
4357
      protected getValidOrders_args getEmptyArgsInstance() {
4358
        return new getValidOrders_args();
4359
      }
4360
 
4361
      protected getValidOrders_result getResult(I iface, getValidOrders_args args) throws org.apache.thrift.TException {
3061 chandransh 4362
        getValidOrders_result result = new getValidOrders_result();
3430 rajveer 4363
        result.success = iface.getValidOrders(args.limit);
4364
        return result;
3061 chandransh 4365
      }
4366
    }
4367
 
3430 rajveer 4368
    private static class batchOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, batchOrders_args> {
4369
      public batchOrders() {
4370
        super("batchOrders");
4371
      }
4372
 
4373
      protected batchOrders_args getEmptyArgsInstance() {
4374
        return new batchOrders_args();
4375
      }
4376
 
4377
      protected batchOrders_result getResult(I iface, batchOrders_args args) throws org.apache.thrift.TException {
3061 chandransh 4378
        batchOrders_result result = new batchOrders_result();
68 ashish 4379
        try {
3430 rajveer 4380
          result.success = iface.batchOrders(args.warehouseId);
3061 chandransh 4381
        } catch (TransactionServiceException ex) {
4382
          result.ex = ex;
4383
        }
3430 rajveer 4384
        return result;
3061 chandransh 4385
      }
4386
    }
4387
 
3430 rajveer 4388
    private static class markOrderAsOutOfStock<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderAsOutOfStock_args> {
4389
      public markOrderAsOutOfStock() {
4390
        super("markOrderAsOutOfStock");
4391
      }
4392
 
4393
      protected markOrderAsOutOfStock_args getEmptyArgsInstance() {
4394
        return new markOrderAsOutOfStock_args();
4395
      }
4396
 
4397
      protected markOrderAsOutOfStock_result getResult(I iface, markOrderAsOutOfStock_args args) throws org.apache.thrift.TException {
3061 chandransh 4398
        markOrderAsOutOfStock_result result = new markOrderAsOutOfStock_result();
4399
        try {
3430 rajveer 4400
          result.success = iface.markOrderAsOutOfStock(args.orderId);
68 ashish 4401
          result.setSuccessIsSet(true);
4402
        } catch (TransactionServiceException ex) {
4403
          result.ex = ex;
4404
        }
3430 rajveer 4405
        return result;
68 ashish 4406
      }
4407
    }
4408
 
3430 rajveer 4409
    private static class verifyOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, verifyOrder_args> {
4410
      public verifyOrder() {
4411
        super("verifyOrder");
4412
      }
4413
 
4414
      protected verifyOrder_args getEmptyArgsInstance() {
4415
        return new verifyOrder_args();
4416
      }
4417
 
4418
      protected verifyOrder_result getResult(I iface, verifyOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 4419
        verifyOrder_result result = new verifyOrder_result();
68 ashish 4420
        try {
3430 rajveer 4421
          result.success = iface.verifyOrder(args.orderId);
3061 chandransh 4422
          result.setSuccessIsSet(true);
68 ashish 4423
        } catch (TransactionServiceException ex) {
4424
          result.ex = ex;
4425
        }
3430 rajveer 4426
        return result;
68 ashish 4427
      }
4428
    }
4429
 
3430 rajveer 4430
    private static class acceptOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, acceptOrder_args> {
4431
      public acceptOrder() {
4432
        super("acceptOrder");
4433
      }
4434
 
4435
      protected acceptOrder_args getEmptyArgsInstance() {
4436
        return new acceptOrder_args();
4437
      }
4438
 
4439
      protected acceptOrder_result getResult(I iface, acceptOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 4440
        acceptOrder_result result = new acceptOrder_result();
68 ashish 4441
        try {
3430 rajveer 4442
          result.success = iface.acceptOrder(args.orderId);
3061 chandransh 4443
          result.setSuccessIsSet(true);
68 ashish 4444
        } catch (TransactionServiceException ex) {
4445
          result.ex = ex;
4446
        }
3430 rajveer 4447
        return result;
68 ashish 4448
      }
4449
    }
4450
 
3430 rajveer 4451
    private static class billOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, billOrder_args> {
4452
      public billOrder() {
4453
        super("billOrder");
4454
      }
4455
 
4456
      protected billOrder_args getEmptyArgsInstance() {
4457
        return new billOrder_args();
4458
      }
4459
 
4460
      protected billOrder_result getResult(I iface, billOrder_args args) throws org.apache.thrift.TException {
3061 chandransh 4461
        billOrder_result result = new billOrder_result();
1529 ankur.sing 4462
        try {
3430 rajveer 4463
          result.success = iface.billOrder(args.orderId);
3061 chandransh 4464
          result.setSuccessIsSet(true);
1529 ankur.sing 4465
        } catch (TransactionServiceException ex) {
4466
          result.ex = ex;
4467
        }
3430 rajveer 4468
        return result;
1529 ankur.sing 4469
      }
4470
    }
4471
 
3430 rajveer 4472
    private static class addBillingDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBillingDetails_args> {
4473
      public addBillingDetails() {
4474
        super("addBillingDetails");
4475
      }
4476
 
4477
      protected addBillingDetails_args getEmptyArgsInstance() {
4478
        return new addBillingDetails_args();
4479
      }
4480
 
4481
      protected addBillingDetails_result getResult(I iface, addBillingDetails_args args) throws org.apache.thrift.TException {
3061 chandransh 4482
        addBillingDetails_result result = new addBillingDetails_result();
1221 chandransh 4483
        try {
3430 rajveer 4484
          result.success = iface.addBillingDetails(args.orderId, args.invoice_number, args.billed_by);
3061 chandransh 4485
          result.setSuccessIsSet(true);
1221 chandransh 4486
        } catch (TransactionServiceException ex) {
4487
          result.ex = ex;
4488
        }
3430 rajveer 4489
        return result;
1221 chandransh 4490
      }
4491
    }
4492
 
3430 rajveer 4493
    private static class addJacketNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addJacketNumber_args> {
4494
      public addJacketNumber() {
4495
        super("addJacketNumber");
4496
      }
4497
 
4498
      protected addJacketNumber_args getEmptyArgsInstance() {
4499
        return new addJacketNumber_args();
4500
      }
4501
 
4502
      protected addJacketNumber_result getResult(I iface, addJacketNumber_args args) throws org.apache.thrift.TException {
3061 chandransh 4503
        addJacketNumber_result result = new addJacketNumber_result();
1209 chandransh 4504
        try {
3430 rajveer 4505
          result.success = iface.addJacketNumber(args.orderId, args.jacketNumber, args.imeiNumber, args.itemNumber, args.billedBy, args.billingType);
1209 chandransh 4506
          result.setSuccessIsSet(true);
4507
        } catch (TransactionServiceException ex) {
4508
          result.ex = ex;
4509
        }
3430 rajveer 4510
        return result;
1209 chandransh 4511
      }
4512
    }
4513
 
3430 rajveer 4514
    private static class markOrdersAsManifested<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsManifested_args> {
4515
      public markOrdersAsManifested() {
4516
        super("markOrdersAsManifested");
4517
      }
4518
 
4519
      protected markOrdersAsManifested_args getEmptyArgsInstance() {
4520
        return new markOrdersAsManifested_args();
4521
      }
4522
 
4523
      protected markOrdersAsManifested_result getResult(I iface, markOrdersAsManifested_args args) throws org.apache.thrift.TException {
758 chandransh 4524
        markOrdersAsManifested_result result = new markOrdersAsManifested_result();
4525
        try {
3430 rajveer 4526
          result.success = iface.markOrdersAsManifested(args.warehouseId, args.providerId, args.cod);
758 chandransh 4527
          result.setSuccessIsSet(true);
4528
        } catch (TransactionServiceException ex) {
4529
          result.ex = ex;
4530
        }
3430 rajveer 4531
        return result;
758 chandransh 4532
      }
4533
    }
4534
 
3430 rajveer 4535
    private static class markOrdersAsPickedUp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsPickedUp_args> {
4536
      public markOrdersAsPickedUp() {
4537
        super("markOrdersAsPickedUp");
4538
      }
4539
 
4540
      protected markOrdersAsPickedUp_args getEmptyArgsInstance() {
4541
        return new markOrdersAsPickedUp_args();
4542
      }
4543
 
4544
      protected markOrdersAsPickedUp_result getResult(I iface, markOrdersAsPickedUp_args args) throws org.apache.thrift.TException {
1114 chandransh 4545
        markOrdersAsPickedUp_result result = new markOrdersAsPickedUp_result();
4546
        try {
3430 rajveer 4547
          result.success = iface.markOrdersAsPickedUp(args.providerId, args.pickupDetails);
1114 chandransh 4548
        } catch (TransactionServiceException ex) {
4549
          result.ex = ex;
4550
        }
3430 rajveer 4551
        return result;
1114 chandransh 4552
      }
4553
    }
4554
 
3430 rajveer 4555
    private static class markOrdersAsDelivered<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsDelivered_args> {
4556
      public markOrdersAsDelivered() {
4557
        super("markOrdersAsDelivered");
4558
      }
4559
 
4560
      protected markOrdersAsDelivered_args getEmptyArgsInstance() {
4561
        return new markOrdersAsDelivered_args();
4562
      }
4563
 
4564
      protected markOrdersAsDelivered_result getResult(I iface, markOrdersAsDelivered_args args) throws org.apache.thrift.TException {
1133 chandransh 4565
        markOrdersAsDelivered_result result = new markOrdersAsDelivered_result();
4566
        try {
3430 rajveer 4567
          iface.markOrdersAsDelivered(args.providerId, args.deliveredOrders);
1133 chandransh 4568
        } catch (TransactionServiceException ex) {
4569
          result.ex = ex;
4570
        }
3430 rajveer 4571
        return result;
1133 chandransh 4572
      }
4573
    }
4574
 
3430 rajveer 4575
    private static class markOrdersAsFailed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsFailed_args> {
4576
      public markOrdersAsFailed() {
4577
        super("markOrdersAsFailed");
4578
      }
4579
 
4580
      protected markOrdersAsFailed_args getEmptyArgsInstance() {
4581
        return new markOrdersAsFailed_args();
4582
      }
4583
 
4584
      protected markOrdersAsFailed_result getResult(I iface, markOrdersAsFailed_args args) throws org.apache.thrift.TException {
1133 chandransh 4585
        markOrdersAsFailed_result result = new markOrdersAsFailed_result();
4586
        try {
3430 rajveer 4587
          iface.markOrdersAsFailed(args.providerId, args.returnedOrders);
1133 chandransh 4588
        } catch (TransactionServiceException ex) {
4589
          result.ex = ex;
4590
        }
3430 rajveer 4591
        return result;
1133 chandransh 4592
      }
4593
    }
4594
 
3430 rajveer 4595
    private static class updateNonDeliveryReason<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateNonDeliveryReason_args> {
4596
      public updateNonDeliveryReason() {
4597
        super("updateNonDeliveryReason");
4598
      }
4599
 
4600
      protected updateNonDeliveryReason_args getEmptyArgsInstance() {
4601
        return new updateNonDeliveryReason_args();
4602
      }
4603
 
4604
      protected updateNonDeliveryReason_result getResult(I iface, updateNonDeliveryReason_args args) throws org.apache.thrift.TException {
1245 chandransh 4605
        updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();
4606
        try {
3430 rajveer 4607
          iface.updateNonDeliveryReason(args.providerId, args.undeliveredOrders);
1245 chandransh 4608
        } catch (TransactionServiceException ex) {
4609
          result.ex = ex;
4610
        }
3430 rajveer 4611
        return result;
1245 chandransh 4612
      }
4613
    }
4614
 
3430 rajveer 4615
    private static class getUndeliveredOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUndeliveredOrders_args> {
4616
      public getUndeliveredOrders() {
4617
        super("getUndeliveredOrders");
4618
      }
4619
 
4620
      protected getUndeliveredOrders_args getEmptyArgsInstance() {
4621
        return new getUndeliveredOrders_args();
4622
      }
4623
 
4624
      protected getUndeliveredOrders_result getResult(I iface, getUndeliveredOrders_args args) throws org.apache.thrift.TException {
1406 ankur.sing 4625
        getUndeliveredOrders_result result = new getUndeliveredOrders_result();
3430 rajveer 4626
        result.success = iface.getUndeliveredOrders(args.providerId, args.warehouseId);
4627
        return result;
1406 ankur.sing 4628
      }
4629
    }
4630
 
3430 rajveer 4631
    private static class toggleDOAFlag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, toggleDOAFlag_args> {
4632
      public toggleDOAFlag() {
4633
        super("toggleDOAFlag");
4634
      }
4635
 
4636
      protected toggleDOAFlag_args getEmptyArgsInstance() {
4637
        return new toggleDOAFlag_args();
4638
      }
4639
 
4640
      protected toggleDOAFlag_result getResult(I iface, toggleDOAFlag_args args) throws org.apache.thrift.TException {
2538 chandransh 4641
        toggleDOAFlag_result result = new toggleDOAFlag_result();
4642
        try {
3430 rajveer 4643
          result.success = iface.toggleDOAFlag(args.orderId);
2538 chandransh 4644
          result.setSuccessIsSet(true);
4645
        } catch (TransactionServiceException ex) {
4646
          result.ex = ex;
4647
        }
3430 rajveer 4648
        return result;
2538 chandransh 4649
      }
4650
    }
4651
 
3430 rajveer 4652
    private static class requestPickupNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, requestPickupNumber_args> {
4653
      public requestPickupNumber() {
4654
        super("requestPickupNumber");
4655
      }
4656
 
4657
      protected requestPickupNumber_args getEmptyArgsInstance() {
4658
        return new requestPickupNumber_args();
4659
      }
4660
 
4661
      protected requestPickupNumber_result getResult(I iface, requestPickupNumber_args args) throws org.apache.thrift.TException {
2538 chandransh 4662
        requestPickupNumber_result result = new requestPickupNumber_result();
4663
        try {
3430 rajveer 4664
          result.success = iface.requestPickupNumber(args.orderId);
2538 chandransh 4665
          result.setSuccessIsSet(true);
4666
        } catch (TransactionServiceException ex) {
4667
          result.ex = ex;
4668
        }
3430 rajveer 4669
        return result;
2538 chandransh 4670
      }
4671
    }
4672
 
3430 rajveer 4673
    private static class authorizePickup<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authorizePickup_args> {
4674
      public authorizePickup() {
4675
        super("authorizePickup");
4676
      }
4677
 
4678
      protected authorizePickup_args getEmptyArgsInstance() {
4679
        return new authorizePickup_args();
4680
      }
4681
 
4682
      protected authorizePickup_result getResult(I iface, authorizePickup_args args) throws org.apache.thrift.TException {
2538 chandransh 4683
        authorizePickup_result result = new authorizePickup_result();
4684
        try {
3430 rajveer 4685
          result.success = iface.authorizePickup(args.orderId, args.pickupNumber);
2538 chandransh 4686
          result.setSuccessIsSet(true);
4687
        } catch (TransactionServiceException ex) {
4688
          result.ex = ex;
4689
        }
3430 rajveer 4690
        return result;
2538 chandransh 4691
      }
4692
    }
4693
 
3430 rajveer 4694
    private static class markDoasAsPickedUp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markDoasAsPickedUp_args> {
4695
      public markDoasAsPickedUp() {
4696
        super("markDoasAsPickedUp");
4697
      }
4698
 
4699
      protected markDoasAsPickedUp_args getEmptyArgsInstance() {
4700
        return new markDoasAsPickedUp_args();
4701
      }
4702
 
4703
      protected markDoasAsPickedUp_result getResult(I iface, markDoasAsPickedUp_args args) throws org.apache.thrift.TException {
2765 chandransh 4704
        markDoasAsPickedUp_result result = new markDoasAsPickedUp_result();
3430 rajveer 4705
        result.success = iface.markDoasAsPickedUp(args.providerId, args.pickupDetails);
4706
        return result;
2765 chandransh 4707
      }
4708
    }
4709
 
3430 rajveer 4710
    private static class receiveReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, receiveReturn_args> {
4711
      public receiveReturn() {
4712
        super("receiveReturn");
4713
      }
4714
 
4715
      protected receiveReturn_args getEmptyArgsInstance() {
4716
        return new receiveReturn_args();
4717
      }
4718
 
4719
      protected receiveReturn_result getResult(I iface, receiveReturn_args args) throws org.apache.thrift.TException {
2615 chandransh 4720
        receiveReturn_result result = new receiveReturn_result();
2590 chandransh 4721
        try {
3430 rajveer 4722
          result.success = iface.receiveReturn(args.orderId);
2590 chandransh 4723
          result.setSuccessIsSet(true);
4724
        } catch (TransactionServiceException ex) {
4725
          result.ex = ex;
4726
        }
3430 rajveer 4727
        return result;
2590 chandransh 4728
      }
4729
    }
4730
 
3430 rajveer 4731
    private static class validateDoa<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateDoa_args> {
4732
      public validateDoa() {
4733
        super("validateDoa");
4734
      }
4735
 
4736
      protected validateDoa_args getEmptyArgsInstance() {
4737
        return new validateDoa_args();
4738
      }
4739
 
4740
      protected validateDoa_result getResult(I iface, validateDoa_args args) throws org.apache.thrift.TException {
2590 chandransh 4741
        validateDoa_result result = new validateDoa_result();
4742
        try {
3430 rajveer 4743
          result.success = iface.validateDoa(args.orderId, args.isValid);
2590 chandransh 4744
          result.setSuccessIsSet(true);
4745
        } catch (TransactionServiceException ex) {
4746
          result.ex = ex;
4747
        }
3430 rajveer 4748
        return result;
2590 chandransh 4749
      }
4750
    }
4751
 
3430 rajveer 4752
    private static class reshipOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reshipOrder_args> {
4753
      public reshipOrder() {
4754
        super("reshipOrder");
4755
      }
4756
 
4757
      protected reshipOrder_args getEmptyArgsInstance() {
4758
        return new reshipOrder_args();
4759
      }
4760
 
4761
      protected reshipOrder_result getResult(I iface, reshipOrder_args args) throws org.apache.thrift.TException {
2615 chandransh 4762
        reshipOrder_result result = new reshipOrder_result();
4763
        try {
3430 rajveer 4764
          result.success = iface.reshipOrder(args.orderId);
2615 chandransh 4765
          result.setSuccessIsSet(true);
4766
        } catch (TransactionServiceException ex) {
4767
          result.ex = ex;
4768
        }
3430 rajveer 4769
        return result;
2615 chandransh 4770
      }
4771
    }
4772
 
3430 rajveer 4773
    private static class refundOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, refundOrder_args> {
4774
      public refundOrder() {
4775
        super("refundOrder");
4776
      }
4777
 
4778
      protected refundOrder_args getEmptyArgsInstance() {
4779
        return new refundOrder_args();
4780
      }
4781
 
4782
      protected refundOrder_result getResult(I iface, refundOrder_args args) throws org.apache.thrift.TException {
2615 chandransh 4783
        refundOrder_result result = new refundOrder_result();
4784
        try {
3430 rajveer 4785
          result.success = iface.refundOrder(args.orderId, args.refundedBy, args.reason);
2615 chandransh 4786
          result.setSuccessIsSet(true);
4787
        } catch (TransactionServiceException ex) {
4788
          result.ex = ex;
4789
        }
3430 rajveer 4790
        return result;
2615 chandransh 4791
      }
4792
    }
4793
 
3430 rajveer 4794
    private static class getReturnOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnOrders_args> {
4795
      public getReturnOrders() {
4796
        super("getReturnOrders");
4797
      }
4798
 
4799
      protected getReturnOrders_args getEmptyArgsInstance() {
4800
        return new getReturnOrders_args();
4801
      }
4802
 
4803
      protected getReturnOrders_result getResult(I iface, getReturnOrders_args args) throws org.apache.thrift.TException {
2690 chandransh 4804
        getReturnOrders_result result = new getReturnOrders_result();
3430 rajveer 4805
        result.success = iface.getReturnOrders(args.warehouseId, args.fromDate, args.toDate);
4806
        return result;
2690 chandransh 4807
      }
4808
    }
4809
 
3430 rajveer 4810
    private static class getReturnOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnOrder_args> {
4811
      public getReturnOrder() {
4812
        super("getReturnOrder");
4813
      }
4814
 
4815
      protected getReturnOrder_args getEmptyArgsInstance() {
4816
        return new getReturnOrder_args();
4817
      }
4818
 
4819
      protected getReturnOrder_result getResult(I iface, getReturnOrder_args args) throws org.apache.thrift.TException {
2700 chandransh 4820
        getReturnOrder_result result = new getReturnOrder_result();
4821
        try {
3430 rajveer 4822
          result.success = iface.getReturnOrder(args.id);
2700 chandransh 4823
        } catch (TransactionServiceException ex) {
4824
          result.ex = ex;
4825
        }
3430 rajveer 4826
        return result;
2700 chandransh 4827
      }
4828
    }
4829
 
3430 rajveer 4830
    private static class processReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, processReturn_args> {
4831
      public processReturn() {
4832
        super("processReturn");
4833
      }
4834
 
4835
      protected processReturn_args getEmptyArgsInstance() {
4836
        return new processReturn_args();
4837
      }
4838
 
4839
      protected processReturn_result getResult(I iface, processReturn_args args) throws org.apache.thrift.TException {
2690 chandransh 4840
        processReturn_result result = new processReturn_result();
4841
        try {
3430 rajveer 4842
          iface.processReturn(args.returnOrderId);
2690 chandransh 4843
        } catch (TransactionServiceException ex) {
4844
          result.ex = ex;
4845
        }
3430 rajveer 4846
        return result;
2690 chandransh 4847
      }
4848
    }
4849
 
3430 rajveer 4850
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
4851
      public createPurchaseOrder() {
4852
        super("createPurchaseOrder");
4853
      }
4854
 
4855
      protected createPurchaseOrder_args getEmptyArgsInstance() {
4856
        return new createPurchaseOrder_args();
4857
      }
4858
 
4859
      protected createPurchaseOrder_result getResult(I iface, createPurchaseOrder_args args) throws org.apache.thrift.TException {
2819 chandransh 4860
        createPurchaseOrder_result result = new createPurchaseOrder_result();
4861
        try {
3430 rajveer 4862
          result.success = iface.createPurchaseOrder(args.warehouseId);
2819 chandransh 4863
          result.setSuccessIsSet(true);
4864
        } catch (TransactionServiceException ex) {
4865
          result.ex = ex;
4866
        }
3430 rajveer 4867
        return result;
2819 chandransh 4868
      }
4869
    }
4870
 
3451 chandransh 4871
    private static class updateWeight<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateWeight_args> {
4872
      public updateWeight() {
4873
        super("updateWeight");
4874
      }
4875
 
4876
      protected updateWeight_args getEmptyArgsInstance() {
4877
        return new updateWeight_args();
4878
      }
4879
 
4880
      protected updateWeight_result getResult(I iface, updateWeight_args args) throws org.apache.thrift.TException {
4881
        updateWeight_result result = new updateWeight_result();
4882
        try {
4883
          result.success = iface.updateWeight(args.orderId, args.weight);
4884
        } catch (TransactionServiceException ex) {
4885
          result.ex = ex;
4886
        }
4887
        return result;
4888
      }
4889
    }
4890
 
3469 chandransh 4891
    private static class changeItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItem_args> {
4892
      public changeItem() {
4893
        super("changeItem");
4894
      }
4895
 
4896
      protected changeItem_args getEmptyArgsInstance() {
4897
        return new changeItem_args();
4898
      }
4899
 
4900
      protected changeItem_result getResult(I iface, changeItem_args args) throws org.apache.thrift.TException {
4901
        changeItem_result result = new changeItem_result();
4902
        try {
4903
          result.success = iface.changeItem(args.orderId, args.itemId);
4904
        } catch (TransactionServiceException ex) {
4905
          result.ex = ex;
4906
        }
4907
        return result;
4908
      }
4909
    }
4910
 
4911
    private static class shiftToWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shiftToWarehouse_args> {
4912
      public shiftToWarehouse() {
4913
        super("shiftToWarehouse");
4914
      }
4915
 
4916
      protected shiftToWarehouse_args getEmptyArgsInstance() {
4917
        return new shiftToWarehouse_args();
4918
      }
4919
 
4920
      protected shiftToWarehouse_result getResult(I iface, shiftToWarehouse_args args) throws org.apache.thrift.TException {
4921
        shiftToWarehouse_result result = new shiftToWarehouse_result();
4922
        try {
4923
          result.success = iface.shiftToWarehouse(args.orderId, args.warehouseId);
4924
        } catch (TransactionServiceException ex) {
4925
          result.ex = ex;
4926
        }
4927
        return result;
4928
      }
4929
    }
4930
 
68 ashish 4931
  }
4932
 
3430 rajveer 4933
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
4934
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
68 ashish 4935
 
3430 rajveer 4936
    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 4937
 
3430 rajveer 4938
    private Transaction transaction; // required
68 ashish 4939
 
4940
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4941
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 4942
      TRANSACTION((short)1, "transaction");
4943
 
4944
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4945
 
4946
      static {
4947
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4948
          byName.put(field.getFieldName(), field);
4949
        }
4950
      }
4951
 
4952
      /**
4953
       * Find the _Fields constant that matches fieldId, or null if its not found.
4954
       */
4955
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4956
        switch(fieldId) {
4957
          case 1: // TRANSACTION
4958
            return TRANSACTION;
4959
          default:
4960
            return null;
4961
        }
68 ashish 4962
      }
4963
 
4964
      /**
4965
       * Find the _Fields constant that matches fieldId, throwing an exception
4966
       * if it is not found.
4967
       */
4968
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4969
        _Fields fields = findByThriftId(fieldId);
4970
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4971
        return fields;
4972
      }
4973
 
4974
      /**
4975
       * Find the _Fields constant that matches name, or null if its not found.
4976
       */
4977
      public static _Fields findByName(String name) {
4978
        return byName.get(name);
4979
      }
4980
 
4981
      private final short _thriftId;
4982
      private final String _fieldName;
4983
 
4984
      _Fields(short thriftId, String fieldName) {
4985
        _thriftId = thriftId;
4986
        _fieldName = fieldName;
4987
      }
4988
 
4989
      public short getThriftFieldId() {
4990
        return _thriftId;
4991
      }
4992
 
4993
      public String getFieldName() {
4994
        return _fieldName;
4995
      }
4996
    }
4997
 
4998
    // isset id assignments
4999
 
3430 rajveer 5000
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 5001
    static {
3430 rajveer 5002
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5003
      tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5004
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class)));
5005
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5006
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransaction_args.class, metaDataMap);
68 ashish 5007
    }
5008
 
5009
    public createTransaction_args() {
5010
    }
5011
 
5012
    public createTransaction_args(
5013
      Transaction transaction)
5014
    {
5015
      this();
5016
      this.transaction = transaction;
5017
    }
5018
 
5019
    /**
5020
     * Performs a deep copy on <i>other</i>.
5021
     */
5022
    public createTransaction_args(createTransaction_args other) {
5023
      if (other.isSetTransaction()) {
5024
        this.transaction = new Transaction(other.transaction);
5025
      }
5026
    }
5027
 
5028
    public createTransaction_args deepCopy() {
5029
      return new createTransaction_args(this);
5030
    }
5031
 
3430 rajveer 5032
    @Override
5033
    public void clear() {
5034
      this.transaction = null;
68 ashish 5035
    }
5036
 
5037
    public Transaction getTransaction() {
5038
      return this.transaction;
5039
    }
5040
 
3430 rajveer 5041
    public void setTransaction(Transaction transaction) {
68 ashish 5042
      this.transaction = transaction;
5043
    }
5044
 
5045
    public void unsetTransaction() {
5046
      this.transaction = null;
5047
    }
5048
 
3430 rajveer 5049
    /** Returns true if field transaction is set (has been assigned a value) and false otherwise */
68 ashish 5050
    public boolean isSetTransaction() {
5051
      return this.transaction != null;
5052
    }
5053
 
5054
    public void setTransactionIsSet(boolean value) {
5055
      if (!value) {
5056
        this.transaction = null;
5057
      }
5058
    }
5059
 
5060
    public void setFieldValue(_Fields field, Object value) {
5061
      switch (field) {
5062
      case TRANSACTION:
5063
        if (value == null) {
5064
          unsetTransaction();
5065
        } else {
5066
          setTransaction((Transaction)value);
5067
        }
5068
        break;
5069
 
5070
      }
5071
    }
5072
 
5073
    public Object getFieldValue(_Fields field) {
5074
      switch (field) {
5075
      case TRANSACTION:
5076
        return getTransaction();
5077
 
5078
      }
5079
      throw new IllegalStateException();
5080
    }
5081
 
3430 rajveer 5082
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5083
    public boolean isSet(_Fields field) {
5084
      if (field == null) {
5085
        throw new IllegalArgumentException();
5086
      }
68 ashish 5087
 
5088
      switch (field) {
5089
      case TRANSACTION:
5090
        return isSetTransaction();
5091
      }
5092
      throw new IllegalStateException();
5093
    }
5094
 
5095
    @Override
5096
    public boolean equals(Object that) {
5097
      if (that == null)
5098
        return false;
5099
      if (that instanceof createTransaction_args)
5100
        return this.equals((createTransaction_args)that);
5101
      return false;
5102
    }
5103
 
5104
    public boolean equals(createTransaction_args that) {
5105
      if (that == null)
5106
        return false;
5107
 
5108
      boolean this_present_transaction = true && this.isSetTransaction();
5109
      boolean that_present_transaction = true && that.isSetTransaction();
5110
      if (this_present_transaction || that_present_transaction) {
5111
        if (!(this_present_transaction && that_present_transaction))
5112
          return false;
5113
        if (!this.transaction.equals(that.transaction))
5114
          return false;
5115
      }
5116
 
5117
      return true;
5118
    }
5119
 
5120
    @Override
5121
    public int hashCode() {
5122
      return 0;
5123
    }
5124
 
684 chandransh 5125
    public int compareTo(createTransaction_args other) {
5126
      if (!getClass().equals(other.getClass())) {
5127
        return getClass().getName().compareTo(other.getClass().getName());
5128
      }
5129
 
5130
      int lastComparison = 0;
5131
      createTransaction_args typedOther = (createTransaction_args)other;
5132
 
3430 rajveer 5133
      lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(typedOther.isSetTransaction());
684 chandransh 5134
      if (lastComparison != 0) {
5135
        return lastComparison;
5136
      }
3430 rajveer 5137
      if (isSetTransaction()) {
5138
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, typedOther.transaction);
5139
        if (lastComparison != 0) {
5140
          return lastComparison;
5141
        }
684 chandransh 5142
      }
5143
      return 0;
5144
    }
5145
 
3430 rajveer 5146
    public _Fields fieldForId(int fieldId) {
5147
      return _Fields.findByThriftId(fieldId);
5148
    }
5149
 
5150
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5151
      org.apache.thrift.protocol.TField field;
68 ashish 5152
      iprot.readStructBegin();
5153
      while (true)
5154
      {
5155
        field = iprot.readFieldBegin();
3430 rajveer 5156
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 5157
          break;
5158
        }
3430 rajveer 5159
        switch (field.id) {
5160
          case 1: // TRANSACTION
5161
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5162
              this.transaction = new Transaction();
5163
              this.transaction.read(iprot);
5164
            } else { 
5165
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5166
            }
5167
            break;
5168
          default:
5169
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 5170
        }
3430 rajveer 5171
        iprot.readFieldEnd();
68 ashish 5172
      }
5173
      iprot.readStructEnd();
5174
      validate();
5175
    }
5176
 
3430 rajveer 5177
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 5178
      validate();
5179
 
5180
      oprot.writeStructBegin(STRUCT_DESC);
5181
      if (this.transaction != null) {
5182
        oprot.writeFieldBegin(TRANSACTION_FIELD_DESC);
5183
        this.transaction.write(oprot);
5184
        oprot.writeFieldEnd();
5185
      }
5186
      oprot.writeFieldStop();
5187
      oprot.writeStructEnd();
5188
    }
5189
 
5190
    @Override
5191
    public String toString() {
5192
      StringBuilder sb = new StringBuilder("createTransaction_args(");
5193
      boolean first = true;
5194
 
5195
      sb.append("transaction:");
5196
      if (this.transaction == null) {
5197
        sb.append("null");
5198
      } else {
5199
        sb.append(this.transaction);
5200
      }
5201
      first = false;
5202
      sb.append(")");
5203
      return sb.toString();
5204
    }
5205
 
3430 rajveer 5206
    public void validate() throws org.apache.thrift.TException {
68 ashish 5207
      // check for required fields
5208
    }
5209
 
3430 rajveer 5210
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5211
      try {
5212
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5213
      } catch (org.apache.thrift.TException te) {
5214
        throw new java.io.IOException(te);
5215
      }
5216
    }
5217
 
5218
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5219
      try {
5220
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5221
      } catch (org.apache.thrift.TException te) {
5222
        throw new java.io.IOException(te);
5223
      }
5224
    }
5225
 
68 ashish 5226
  }
5227
 
3430 rajveer 5228
  public static class createTransaction_result implements org.apache.thrift.TBase<createTransaction_result, createTransaction_result._Fields>, java.io.Serializable, Cloneable   {
5229
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_result");
68 ashish 5230
 
3430 rajveer 5231
    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);
5232
    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 5233
 
3430 rajveer 5234
    private long success; // required
5235
    private TransactionServiceException ex; // required
68 ashish 5236
 
5237
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5238
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
132 ashish 5239
      SUCCESS((short)0, "success"),
68 ashish 5240
      EX((short)1, "ex");
5241
 
5242
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5243
 
5244
      static {
5245
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5246
          byName.put(field.getFieldName(), field);
5247
        }
5248
      }
5249
 
5250
      /**
5251
       * Find the _Fields constant that matches fieldId, or null if its not found.
5252
       */
5253
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5254
        switch(fieldId) {
5255
          case 0: // SUCCESS
5256
            return SUCCESS;
5257
          case 1: // EX
5258
            return EX;
5259
          default:
5260
            return null;
5261
        }
68 ashish 5262
      }
5263
 
5264
      /**
5265
       * Find the _Fields constant that matches fieldId, throwing an exception
5266
       * if it is not found.
5267
       */
5268
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5269
        _Fields fields = findByThriftId(fieldId);
5270
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5271
        return fields;
5272
      }
5273
 
5274
      /**
5275
       * Find the _Fields constant that matches name, or null if its not found.
5276
       */
5277
      public static _Fields findByName(String name) {
5278
        return byName.get(name);
5279
      }
5280
 
5281
      private final short _thriftId;
5282
      private final String _fieldName;
5283
 
5284
      _Fields(short thriftId, String fieldName) {
5285
        _thriftId = thriftId;
5286
        _fieldName = fieldName;
5287
      }
5288
 
5289
      public short getThriftFieldId() {
5290
        return _thriftId;
5291
      }
5292
 
5293
      public String getFieldName() {
5294
        return _fieldName;
5295
      }
5296
    }
5297
 
5298
    // isset id assignments
132 ashish 5299
    private static final int __SUCCESS_ISSET_ID = 0;
5300
    private BitSet __isset_bit_vector = new BitSet(1);
68 ashish 5301
 
3430 rajveer 5302
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 5303
    static {
3430 rajveer 5304
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5305
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5306
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5307
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5308
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5309
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5310
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransaction_result.class, metaDataMap);
68 ashish 5311
    }
5312
 
5313
    public createTransaction_result() {
5314
    }
5315
 
5316
    public createTransaction_result(
132 ashish 5317
      long success,
68 ashish 5318
      TransactionServiceException ex)
5319
    {
5320
      this();
132 ashish 5321
      this.success = success;
5322
      setSuccessIsSet(true);
68 ashish 5323
      this.ex = ex;
5324
    }
5325
 
5326
    /**
5327
     * Performs a deep copy on <i>other</i>.
5328
     */
5329
    public createTransaction_result(createTransaction_result other) {
132 ashish 5330
      __isset_bit_vector.clear();
5331
      __isset_bit_vector.or(other.__isset_bit_vector);
5332
      this.success = other.success;
68 ashish 5333
      if (other.isSetEx()) {
5334
        this.ex = new TransactionServiceException(other.ex);
5335
      }
5336
    }
5337
 
5338
    public createTransaction_result deepCopy() {
5339
      return new createTransaction_result(this);
5340
    }
5341
 
3430 rajveer 5342
    @Override
5343
    public void clear() {
5344
      setSuccessIsSet(false);
5345
      this.success = 0;
5346
      this.ex = null;
68 ashish 5347
    }
5348
 
132 ashish 5349
    public long getSuccess() {
5350
      return this.success;
5351
    }
5352
 
3430 rajveer 5353
    public void setSuccess(long success) {
132 ashish 5354
      this.success = success;
5355
      setSuccessIsSet(true);
5356
    }
5357
 
5358
    public void unsetSuccess() {
5359
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
5360
    }
5361
 
3430 rajveer 5362
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
132 ashish 5363
    public boolean isSetSuccess() {
5364
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
5365
    }
5366
 
5367
    public void setSuccessIsSet(boolean value) {
5368
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
5369
    }
5370
 
68 ashish 5371
    public TransactionServiceException getEx() {
5372
      return this.ex;
5373
    }
5374
 
3430 rajveer 5375
    public void setEx(TransactionServiceException ex) {
68 ashish 5376
      this.ex = ex;
5377
    }
5378
 
5379
    public void unsetEx() {
5380
      this.ex = null;
5381
    }
5382
 
3430 rajveer 5383
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 5384
    public boolean isSetEx() {
5385
      return this.ex != null;
5386
    }
5387
 
5388
    public void setExIsSet(boolean value) {
5389
      if (!value) {
5390
        this.ex = null;
5391
      }
5392
    }
5393
 
5394
    public void setFieldValue(_Fields field, Object value) {
5395
      switch (field) {
132 ashish 5396
      case SUCCESS:
5397
        if (value == null) {
5398
          unsetSuccess();
5399
        } else {
5400
          setSuccess((Long)value);
5401
        }
5402
        break;
5403
 
68 ashish 5404
      case EX:
5405
        if (value == null) {
5406
          unsetEx();
5407
        } else {
5408
          setEx((TransactionServiceException)value);
5409
        }
5410
        break;
5411
 
5412
      }
5413
    }
5414
 
5415
    public Object getFieldValue(_Fields field) {
5416
      switch (field) {
132 ashish 5417
      case SUCCESS:
3430 rajveer 5418
        return Long.valueOf(getSuccess());
132 ashish 5419
 
68 ashish 5420
      case EX:
5421
        return getEx();
5422
 
5423
      }
5424
      throw new IllegalStateException();
5425
    }
5426
 
3430 rajveer 5427
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5428
    public boolean isSet(_Fields field) {
5429
      if (field == null) {
5430
        throw new IllegalArgumentException();
5431
      }
68 ashish 5432
 
5433
      switch (field) {
132 ashish 5434
      case SUCCESS:
5435
        return isSetSuccess();
68 ashish 5436
      case EX:
5437
        return isSetEx();
5438
      }
5439
      throw new IllegalStateException();
5440
    }
5441
 
5442
    @Override
5443
    public boolean equals(Object that) {
5444
      if (that == null)
5445
        return false;
5446
      if (that instanceof createTransaction_result)
5447
        return this.equals((createTransaction_result)that);
5448
      return false;
5449
    }
5450
 
5451
    public boolean equals(createTransaction_result that) {
5452
      if (that == null)
5453
        return false;
5454
 
132 ashish 5455
      boolean this_present_success = true;
5456
      boolean that_present_success = true;
5457
      if (this_present_success || that_present_success) {
5458
        if (!(this_present_success && that_present_success))
5459
          return false;
5460
        if (this.success != that.success)
5461
          return false;
5462
      }
5463
 
68 ashish 5464
      boolean this_present_ex = true && this.isSetEx();
5465
      boolean that_present_ex = true && that.isSetEx();
5466
      if (this_present_ex || that_present_ex) {
5467
        if (!(this_present_ex && that_present_ex))
5468
          return false;
5469
        if (!this.ex.equals(that.ex))
5470
          return false;
5471
      }
5472
 
5473
      return true;
5474
    }
5475
 
5476
    @Override
5477
    public int hashCode() {
5478
      return 0;
5479
    }
5480
 
5481
    public int compareTo(createTransaction_result other) {
5482
      if (!getClass().equals(other.getClass())) {
5483
        return getClass().getName().compareTo(other.getClass().getName());
5484
      }
5485
 
5486
      int lastComparison = 0;
5487
      createTransaction_result typedOther = (createTransaction_result)other;
5488
 
3430 rajveer 5489
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
132 ashish 5490
      if (lastComparison != 0) {
5491
        return lastComparison;
5492
      }
3430 rajveer 5493
      if (isSetSuccess()) {
5494
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5495
        if (lastComparison != 0) {
5496
          return lastComparison;
5497
        }
132 ashish 5498
      }
3430 rajveer 5499
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 5500
      if (lastComparison != 0) {
5501
        return lastComparison;
5502
      }
3430 rajveer 5503
      if (isSetEx()) {
5504
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
5505
        if (lastComparison != 0) {
5506
          return lastComparison;
5507
        }
68 ashish 5508
      }
5509
      return 0;
5510
    }
5511
 
3430 rajveer 5512
    public _Fields fieldForId(int fieldId) {
5513
      return _Fields.findByThriftId(fieldId);
5514
    }
5515
 
5516
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5517
      org.apache.thrift.protocol.TField field;
68 ashish 5518
      iprot.readStructBegin();
5519
      while (true)
5520
      {
5521
        field = iprot.readFieldBegin();
3430 rajveer 5522
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 5523
          break;
5524
        }
3430 rajveer 5525
        switch (field.id) {
5526
          case 0: // SUCCESS
5527
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5528
              this.success = iprot.readI64();
5529
              setSuccessIsSet(true);
5530
            } else { 
5531
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5532
            }
5533
            break;
5534
          case 1: // EX
5535
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5536
              this.ex = new TransactionServiceException();
5537
              this.ex.read(iprot);
5538
            } else { 
5539
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5540
            }
5541
            break;
5542
          default:
5543
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 5544
        }
3430 rajveer 5545
        iprot.readFieldEnd();
68 ashish 5546
      }
5547
      iprot.readStructEnd();
5548
      validate();
5549
    }
5550
 
3430 rajveer 5551
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 5552
      oprot.writeStructBegin(STRUCT_DESC);
5553
 
132 ashish 5554
      if (this.isSetSuccess()) {
5555
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5556
        oprot.writeI64(this.success);
5557
        oprot.writeFieldEnd();
5558
      } else if (this.isSetEx()) {
68 ashish 5559
        oprot.writeFieldBegin(EX_FIELD_DESC);
5560
        this.ex.write(oprot);
5561
        oprot.writeFieldEnd();
5562
      }
5563
      oprot.writeFieldStop();
5564
      oprot.writeStructEnd();
5565
    }
5566
 
5567
    @Override
5568
    public String toString() {
5569
      StringBuilder sb = new StringBuilder("createTransaction_result(");
5570
      boolean first = true;
5571
 
132 ashish 5572
      sb.append("success:");
5573
      sb.append(this.success);
5574
      first = false;
5575
      if (!first) sb.append(", ");
68 ashish 5576
      sb.append("ex:");
5577
      if (this.ex == null) {
5578
        sb.append("null");
5579
      } else {
5580
        sb.append(this.ex);
5581
      }
5582
      first = false;
5583
      sb.append(")");
5584
      return sb.toString();
5585
    }
5586
 
3430 rajveer 5587
    public void validate() throws org.apache.thrift.TException {
68 ashish 5588
      // check for required fields
5589
    }
5590
 
3430 rajveer 5591
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5592
      try {
5593
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5594
      } catch (org.apache.thrift.TException te) {
5595
        throw new java.io.IOException(te);
5596
      }
5597
    }
5598
 
5599
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5600
      try {
5601
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5602
      } catch (org.apache.thrift.TException te) {
5603
        throw new java.io.IOException(te);
5604
      }
5605
    }
5606
 
68 ashish 5607
  }
5608
 
3430 rajveer 5609
  public static class getTransaction_args implements org.apache.thrift.TBase<getTransaction_args, getTransaction_args._Fields>, java.io.Serializable, Cloneable   {
5610
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransaction_args");
68 ashish 5611
 
3430 rajveer 5612
    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 5613
 
3430 rajveer 5614
    private long id; // required
68 ashish 5615
 
5616
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5617
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 5618
      ID((short)1, "id");
5619
 
5620
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5621
 
5622
      static {
5623
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5624
          byName.put(field.getFieldName(), field);
5625
        }
5626
      }
5627
 
5628
      /**
5629
       * Find the _Fields constant that matches fieldId, or null if its not found.
5630
       */
5631
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5632
        switch(fieldId) {
5633
          case 1: // ID
5634
            return ID;
5635
          default:
5636
            return null;
5637
        }
68 ashish 5638
      }
5639
 
5640
      /**
5641
       * Find the _Fields constant that matches fieldId, throwing an exception
5642
       * if it is not found.
5643
       */
5644
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5645
        _Fields fields = findByThriftId(fieldId);
5646
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5647
        return fields;
5648
      }
5649
 
5650
      /**
5651
       * Find the _Fields constant that matches name, or null if its not found.
5652
       */
5653
      public static _Fields findByName(String name) {
5654
        return byName.get(name);
5655
      }
5656
 
5657
      private final short _thriftId;
5658
      private final String _fieldName;
5659
 
5660
      _Fields(short thriftId, String fieldName) {
5661
        _thriftId = thriftId;
5662
        _fieldName = fieldName;
5663
      }
5664
 
5665
      public short getThriftFieldId() {
5666
        return _thriftId;
5667
      }
5668
 
5669
      public String getFieldName() {
5670
        return _fieldName;
5671
      }
5672
    }
5673
 
5674
    // isset id assignments
5675
    private static final int __ID_ISSET_ID = 0;
5676
    private BitSet __isset_bit_vector = new BitSet(1);
5677
 
3430 rajveer 5678
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 5679
    static {
3430 rajveer 5680
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5681
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5682
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5683
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5684
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransaction_args.class, metaDataMap);
68 ashish 5685
    }
5686
 
5687
    public getTransaction_args() {
5688
    }
5689
 
5690
    public getTransaction_args(
5691
      long id)
5692
    {
5693
      this();
5694
      this.id = id;
5695
      setIdIsSet(true);
5696
    }
5697
 
5698
    /**
5699
     * Performs a deep copy on <i>other</i>.
5700
     */
5701
    public getTransaction_args(getTransaction_args other) {
5702
      __isset_bit_vector.clear();
5703
      __isset_bit_vector.or(other.__isset_bit_vector);
5704
      this.id = other.id;
5705
    }
5706
 
5707
    public getTransaction_args deepCopy() {
5708
      return new getTransaction_args(this);
5709
    }
5710
 
3430 rajveer 5711
    @Override
5712
    public void clear() {
5713
      setIdIsSet(false);
5714
      this.id = 0;
68 ashish 5715
    }
5716
 
5717
    public long getId() {
5718
      return this.id;
5719
    }
5720
 
3430 rajveer 5721
    public void setId(long id) {
68 ashish 5722
      this.id = id;
5723
      setIdIsSet(true);
5724
    }
5725
 
5726
    public void unsetId() {
5727
      __isset_bit_vector.clear(__ID_ISSET_ID);
5728
    }
5729
 
3430 rajveer 5730
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
68 ashish 5731
    public boolean isSetId() {
5732
      return __isset_bit_vector.get(__ID_ISSET_ID);
5733
    }
5734
 
5735
    public void setIdIsSet(boolean value) {
5736
      __isset_bit_vector.set(__ID_ISSET_ID, value);
5737
    }
5738
 
5739
    public void setFieldValue(_Fields field, Object value) {
5740
      switch (field) {
5741
      case ID:
5742
        if (value == null) {
5743
          unsetId();
5744
        } else {
5745
          setId((Long)value);
5746
        }
5747
        break;
5748
 
5749
      }
5750
    }
5751
 
5752
    public Object getFieldValue(_Fields field) {
5753
      switch (field) {
5754
      case ID:
3430 rajveer 5755
        return Long.valueOf(getId());
68 ashish 5756
 
5757
      }
5758
      throw new IllegalStateException();
5759
    }
5760
 
3430 rajveer 5761
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5762
    public boolean isSet(_Fields field) {
5763
      if (field == null) {
5764
        throw new IllegalArgumentException();
5765
      }
68 ashish 5766
 
5767
      switch (field) {
5768
      case ID:
5769
        return isSetId();
5770
      }
5771
      throw new IllegalStateException();
5772
    }
5773
 
5774
    @Override
5775
    public boolean equals(Object that) {
5776
      if (that == null)
5777
        return false;
5778
      if (that instanceof getTransaction_args)
5779
        return this.equals((getTransaction_args)that);
5780
      return false;
5781
    }
5782
 
5783
    public boolean equals(getTransaction_args that) {
5784
      if (that == null)
5785
        return false;
5786
 
5787
      boolean this_present_id = true;
5788
      boolean that_present_id = true;
5789
      if (this_present_id || that_present_id) {
5790
        if (!(this_present_id && that_present_id))
5791
          return false;
5792
        if (this.id != that.id)
5793
          return false;
5794
      }
5795
 
5796
      return true;
5797
    }
5798
 
5799
    @Override
5800
    public int hashCode() {
5801
      return 0;
5802
    }
5803
 
5804
    public int compareTo(getTransaction_args other) {
5805
      if (!getClass().equals(other.getClass())) {
5806
        return getClass().getName().compareTo(other.getClass().getName());
5807
      }
5808
 
5809
      int lastComparison = 0;
5810
      getTransaction_args typedOther = (getTransaction_args)other;
5811
 
3430 rajveer 5812
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
68 ashish 5813
      if (lastComparison != 0) {
5814
        return lastComparison;
5815
      }
3430 rajveer 5816
      if (isSetId()) {
5817
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
5818
        if (lastComparison != 0) {
5819
          return lastComparison;
5820
        }
68 ashish 5821
      }
5822
      return 0;
5823
    }
5824
 
3430 rajveer 5825
    public _Fields fieldForId(int fieldId) {
5826
      return _Fields.findByThriftId(fieldId);
5827
    }
5828
 
5829
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5830
      org.apache.thrift.protocol.TField field;
68 ashish 5831
      iprot.readStructBegin();
5832
      while (true)
5833
      {
5834
        field = iprot.readFieldBegin();
3430 rajveer 5835
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 5836
          break;
5837
        }
3430 rajveer 5838
        switch (field.id) {
5839
          case 1: // ID
5840
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5841
              this.id = iprot.readI64();
5842
              setIdIsSet(true);
5843
            } else { 
5844
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5845
            }
5846
            break;
5847
          default:
5848
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 5849
        }
3430 rajveer 5850
        iprot.readFieldEnd();
68 ashish 5851
      }
5852
      iprot.readStructEnd();
5853
      validate();
5854
    }
5855
 
3430 rajveer 5856
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 5857
      validate();
5858
 
5859
      oprot.writeStructBegin(STRUCT_DESC);
5860
      oprot.writeFieldBegin(ID_FIELD_DESC);
5861
      oprot.writeI64(this.id);
5862
      oprot.writeFieldEnd();
5863
      oprot.writeFieldStop();
5864
      oprot.writeStructEnd();
5865
    }
5866
 
5867
    @Override
5868
    public String toString() {
5869
      StringBuilder sb = new StringBuilder("getTransaction_args(");
5870
      boolean first = true;
5871
 
5872
      sb.append("id:");
5873
      sb.append(this.id);
5874
      first = false;
5875
      sb.append(")");
5876
      return sb.toString();
5877
    }
5878
 
3430 rajveer 5879
    public void validate() throws org.apache.thrift.TException {
68 ashish 5880
      // check for required fields
5881
    }
5882
 
3430 rajveer 5883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5884
      try {
5885
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5886
      } catch (org.apache.thrift.TException te) {
5887
        throw new java.io.IOException(te);
5888
      }
5889
    }
5890
 
5891
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5892
      try {
5893
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5894
        __isset_bit_vector = new BitSet(1);
5895
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5896
      } catch (org.apache.thrift.TException te) {
5897
        throw new java.io.IOException(te);
5898
      }
5899
    }
5900
 
68 ashish 5901
  }
5902
 
3430 rajveer 5903
  public static class getTransaction_result implements org.apache.thrift.TBase<getTransaction_result, getTransaction_result._Fields>, java.io.Serializable, Cloneable   {
5904
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransaction_result");
68 ashish 5905
 
3430 rajveer 5906
    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);
5907
    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 5908
 
3430 rajveer 5909
    private Transaction success; // required
5910
    private TransactionServiceException ex; // required
68 ashish 5911
 
5912
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5913
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 5914
      SUCCESS((short)0, "success"),
5915
      EX((short)1, "ex");
5916
 
5917
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5918
 
5919
      static {
5920
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5921
          byName.put(field.getFieldName(), field);
5922
        }
5923
      }
5924
 
5925
      /**
5926
       * Find the _Fields constant that matches fieldId, or null if its not found.
5927
       */
5928
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5929
        switch(fieldId) {
5930
          case 0: // SUCCESS
5931
            return SUCCESS;
5932
          case 1: // EX
5933
            return EX;
5934
          default:
5935
            return null;
5936
        }
68 ashish 5937
      }
5938
 
5939
      /**
5940
       * Find the _Fields constant that matches fieldId, throwing an exception
5941
       * if it is not found.
5942
       */
5943
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5944
        _Fields fields = findByThriftId(fieldId);
5945
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5946
        return fields;
5947
      }
5948
 
5949
      /**
5950
       * Find the _Fields constant that matches name, or null if its not found.
5951
       */
5952
      public static _Fields findByName(String name) {
5953
        return byName.get(name);
5954
      }
5955
 
5956
      private final short _thriftId;
5957
      private final String _fieldName;
5958
 
5959
      _Fields(short thriftId, String fieldName) {
5960
        _thriftId = thriftId;
5961
        _fieldName = fieldName;
5962
      }
5963
 
5964
      public short getThriftFieldId() {
5965
        return _thriftId;
5966
      }
5967
 
5968
      public String getFieldName() {
5969
        return _fieldName;
5970
      }
5971
    }
5972
 
5973
    // isset id assignments
5974
 
3430 rajveer 5975
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 5976
    static {
3430 rajveer 5977
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5978
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5979
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class)));
5980
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5981
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5982
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5983
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransaction_result.class, metaDataMap);
68 ashish 5984
    }
5985
 
5986
    public getTransaction_result() {
5987
    }
5988
 
5989
    public getTransaction_result(
5990
      Transaction success,
5991
      TransactionServiceException ex)
5992
    {
5993
      this();
5994
      this.success = success;
5995
      this.ex = ex;
5996
    }
5997
 
5998
    /**
5999
     * Performs a deep copy on <i>other</i>.
6000
     */
6001
    public getTransaction_result(getTransaction_result other) {
6002
      if (other.isSetSuccess()) {
6003
        this.success = new Transaction(other.success);
6004
      }
6005
      if (other.isSetEx()) {
6006
        this.ex = new TransactionServiceException(other.ex);
6007
      }
6008
    }
6009
 
6010
    public getTransaction_result deepCopy() {
6011
      return new getTransaction_result(this);
6012
    }
6013
 
3430 rajveer 6014
    @Override
6015
    public void clear() {
6016
      this.success = null;
6017
      this.ex = null;
68 ashish 6018
    }
6019
 
6020
    public Transaction getSuccess() {
6021
      return this.success;
6022
    }
6023
 
3430 rajveer 6024
    public void setSuccess(Transaction success) {
68 ashish 6025
      this.success = success;
6026
    }
6027
 
6028
    public void unsetSuccess() {
6029
      this.success = null;
6030
    }
6031
 
3430 rajveer 6032
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 6033
    public boolean isSetSuccess() {
6034
      return this.success != null;
6035
    }
6036
 
6037
    public void setSuccessIsSet(boolean value) {
6038
      if (!value) {
6039
        this.success = null;
6040
      }
6041
    }
6042
 
6043
    public TransactionServiceException getEx() {
6044
      return this.ex;
6045
    }
6046
 
3430 rajveer 6047
    public void setEx(TransactionServiceException ex) {
68 ashish 6048
      this.ex = ex;
6049
    }
6050
 
6051
    public void unsetEx() {
6052
      this.ex = null;
6053
    }
6054
 
3430 rajveer 6055
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 6056
    public boolean isSetEx() {
6057
      return this.ex != null;
6058
    }
6059
 
6060
    public void setExIsSet(boolean value) {
6061
      if (!value) {
6062
        this.ex = null;
6063
      }
6064
    }
6065
 
6066
    public void setFieldValue(_Fields field, Object value) {
6067
      switch (field) {
6068
      case SUCCESS:
6069
        if (value == null) {
6070
          unsetSuccess();
6071
        } else {
6072
          setSuccess((Transaction)value);
6073
        }
6074
        break;
6075
 
6076
      case EX:
6077
        if (value == null) {
6078
          unsetEx();
6079
        } else {
6080
          setEx((TransactionServiceException)value);
6081
        }
6082
        break;
6083
 
6084
      }
6085
    }
6086
 
6087
    public Object getFieldValue(_Fields field) {
6088
      switch (field) {
6089
      case SUCCESS:
6090
        return getSuccess();
6091
 
6092
      case EX:
6093
        return getEx();
6094
 
6095
      }
6096
      throw new IllegalStateException();
6097
    }
6098
 
3430 rajveer 6099
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6100
    public boolean isSet(_Fields field) {
6101
      if (field == null) {
6102
        throw new IllegalArgumentException();
6103
      }
68 ashish 6104
 
6105
      switch (field) {
6106
      case SUCCESS:
6107
        return isSetSuccess();
6108
      case EX:
6109
        return isSetEx();
6110
      }
6111
      throw new IllegalStateException();
6112
    }
6113
 
6114
    @Override
6115
    public boolean equals(Object that) {
6116
      if (that == null)
6117
        return false;
6118
      if (that instanceof getTransaction_result)
6119
        return this.equals((getTransaction_result)that);
6120
      return false;
6121
    }
6122
 
6123
    public boolean equals(getTransaction_result that) {
6124
      if (that == null)
6125
        return false;
6126
 
6127
      boolean this_present_success = true && this.isSetSuccess();
6128
      boolean that_present_success = true && that.isSetSuccess();
6129
      if (this_present_success || that_present_success) {
6130
        if (!(this_present_success && that_present_success))
6131
          return false;
6132
        if (!this.success.equals(that.success))
6133
          return false;
6134
      }
6135
 
6136
      boolean this_present_ex = true && this.isSetEx();
6137
      boolean that_present_ex = true && that.isSetEx();
6138
      if (this_present_ex || that_present_ex) {
6139
        if (!(this_present_ex && that_present_ex))
6140
          return false;
6141
        if (!this.ex.equals(that.ex))
6142
          return false;
6143
      }
6144
 
6145
      return true;
6146
    }
6147
 
6148
    @Override
6149
    public int hashCode() {
6150
      return 0;
6151
    }
6152
 
684 chandransh 6153
    public int compareTo(getTransaction_result other) {
6154
      if (!getClass().equals(other.getClass())) {
6155
        return getClass().getName().compareTo(other.getClass().getName());
6156
      }
6157
 
6158
      int lastComparison = 0;
6159
      getTransaction_result typedOther = (getTransaction_result)other;
6160
 
3430 rajveer 6161
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
684 chandransh 6162
      if (lastComparison != 0) {
6163
        return lastComparison;
6164
      }
3430 rajveer 6165
      if (isSetSuccess()) {
6166
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6167
        if (lastComparison != 0) {
6168
          return lastComparison;
6169
        }
684 chandransh 6170
      }
3430 rajveer 6171
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
684 chandransh 6172
      if (lastComparison != 0) {
6173
        return lastComparison;
6174
      }
3430 rajveer 6175
      if (isSetEx()) {
6176
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
6177
        if (lastComparison != 0) {
6178
          return lastComparison;
6179
        }
684 chandransh 6180
      }
6181
      return 0;
6182
    }
6183
 
3430 rajveer 6184
    public _Fields fieldForId(int fieldId) {
6185
      return _Fields.findByThriftId(fieldId);
6186
    }
6187
 
6188
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6189
      org.apache.thrift.protocol.TField field;
68 ashish 6190
      iprot.readStructBegin();
6191
      while (true)
6192
      {
6193
        field = iprot.readFieldBegin();
3430 rajveer 6194
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 6195
          break;
6196
        }
3430 rajveer 6197
        switch (field.id) {
6198
          case 0: // SUCCESS
6199
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6200
              this.success = new Transaction();
6201
              this.success.read(iprot);
6202
            } else { 
6203
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6204
            }
6205
            break;
6206
          case 1: // EX
6207
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6208
              this.ex = new TransactionServiceException();
6209
              this.ex.read(iprot);
6210
            } else { 
6211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6212
            }
6213
            break;
6214
          default:
6215
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 6216
        }
3430 rajveer 6217
        iprot.readFieldEnd();
68 ashish 6218
      }
6219
      iprot.readStructEnd();
6220
      validate();
6221
    }
6222
 
3430 rajveer 6223
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 6224
      oprot.writeStructBegin(STRUCT_DESC);
6225
 
6226
      if (this.isSetSuccess()) {
6227
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6228
        this.success.write(oprot);
6229
        oprot.writeFieldEnd();
6230
      } else if (this.isSetEx()) {
6231
        oprot.writeFieldBegin(EX_FIELD_DESC);
6232
        this.ex.write(oprot);
6233
        oprot.writeFieldEnd();
6234
      }
6235
      oprot.writeFieldStop();
6236
      oprot.writeStructEnd();
6237
    }
6238
 
6239
    @Override
6240
    public String toString() {
6241
      StringBuilder sb = new StringBuilder("getTransaction_result(");
6242
      boolean first = true;
6243
 
6244
      sb.append("success:");
6245
      if (this.success == null) {
6246
        sb.append("null");
6247
      } else {
6248
        sb.append(this.success);
6249
      }
6250
      first = false;
6251
      if (!first) sb.append(", ");
6252
      sb.append("ex:");
6253
      if (this.ex == null) {
6254
        sb.append("null");
6255
      } else {
6256
        sb.append(this.ex);
6257
      }
6258
      first = false;
6259
      sb.append(")");
6260
      return sb.toString();
6261
    }
6262
 
3430 rajveer 6263
    public void validate() throws org.apache.thrift.TException {
68 ashish 6264
      // check for required fields
6265
    }
6266
 
3430 rajveer 6267
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6268
      try {
6269
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6270
      } catch (org.apache.thrift.TException te) {
6271
        throw new java.io.IOException(te);
6272
      }
6273
    }
6274
 
6275
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6276
      try {
6277
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6278
      } catch (org.apache.thrift.TException te) {
6279
        throw new java.io.IOException(te);
6280
      }
6281
    }
6282
 
68 ashish 6283
  }
6284
 
3430 rajveer 6285
  public static class getTransactionsForCustomer_args implements org.apache.thrift.TBase<getTransactionsForCustomer_args, getTransactionsForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
6286
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForCustomer_args");
68 ashish 6287
 
3430 rajveer 6288
    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);
6289
    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);
6290
    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);
6291
    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 6292
 
3430 rajveer 6293
    private long customerId; // required
6294
    private long from_date; // required
6295
    private long to_date; // required
6296
    private TransactionStatus status; // required
68 ashish 6297
 
6298
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6299
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 6300
      CUSTOMER_ID((short)1, "customerId"),
132 ashish 6301
      FROM_DATE((short)2, "from_date"),
6302
      TO_DATE((short)3, "to_date"),
68 ashish 6303
      /**
6304
       * 
6305
       * @see TransactionStatus
6306
       */
6307
      STATUS((short)4, "status");
6308
 
6309
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6310
 
6311
      static {
6312
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6313
          byName.put(field.getFieldName(), field);
6314
        }
6315
      }
6316
 
6317
      /**
6318
       * Find the _Fields constant that matches fieldId, or null if its not found.
6319
       */
6320
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6321
        switch(fieldId) {
6322
          case 1: // CUSTOMER_ID
6323
            return CUSTOMER_ID;
6324
          case 2: // FROM_DATE
6325
            return FROM_DATE;
6326
          case 3: // TO_DATE
6327
            return TO_DATE;
6328
          case 4: // STATUS
6329
            return STATUS;
6330
          default:
6331
            return null;
6332
        }
68 ashish 6333
      }
6334
 
6335
      /**
6336
       * Find the _Fields constant that matches fieldId, throwing an exception
6337
       * if it is not found.
6338
       */
6339
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6340
        _Fields fields = findByThriftId(fieldId);
6341
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6342
        return fields;
6343
      }
6344
 
6345
      /**
6346
       * Find the _Fields constant that matches name, or null if its not found.
6347
       */
6348
      public static _Fields findByName(String name) {
6349
        return byName.get(name);
6350
      }
6351
 
6352
      private final short _thriftId;
6353
      private final String _fieldName;
6354
 
6355
      _Fields(short thriftId, String fieldName) {
6356
        _thriftId = thriftId;
6357
        _fieldName = fieldName;
6358
      }
6359
 
6360
      public short getThriftFieldId() {
6361
        return _thriftId;
6362
      }
6363
 
6364
      public String getFieldName() {
6365
        return _fieldName;
6366
      }
6367
    }
6368
 
6369
    // isset id assignments
6370
    private static final int __CUSTOMERID_ISSET_ID = 0;
132 ashish 6371
    private static final int __FROM_DATE_ISSET_ID = 1;
6372
    private static final int __TO_DATE_ISSET_ID = 2;
68 ashish 6373
    private BitSet __isset_bit_vector = new BitSet(3);
6374
 
3430 rajveer 6375
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 6376
    static {
3430 rajveer 6377
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6378
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6379
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6380
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("from_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6381
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6382
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("to_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6383
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6384
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6385
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
6386
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6387
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForCustomer_args.class, metaDataMap);
68 ashish 6388
    }
6389
 
6390
    public getTransactionsForCustomer_args() {
6391
    }
6392
 
6393
    public getTransactionsForCustomer_args(
6394
      long customerId,
132 ashish 6395
      long from_date,
6396
      long to_date,
68 ashish 6397
      TransactionStatus status)
6398
    {
6399
      this();
6400
      this.customerId = customerId;
6401
      setCustomerIdIsSet(true);
132 ashish 6402
      this.from_date = from_date;
6403
      setFrom_dateIsSet(true);
6404
      this.to_date = to_date;
6405
      setTo_dateIsSet(true);
68 ashish 6406
      this.status = status;
6407
    }
6408
 
6409
    /**
6410
     * Performs a deep copy on <i>other</i>.
6411
     */
6412
    public getTransactionsForCustomer_args(getTransactionsForCustomer_args other) {
6413
      __isset_bit_vector.clear();
6414
      __isset_bit_vector.or(other.__isset_bit_vector);
6415
      this.customerId = other.customerId;
132 ashish 6416
      this.from_date = other.from_date;
6417
      this.to_date = other.to_date;
68 ashish 6418
      if (other.isSetStatus()) {
6419
        this.status = other.status;
6420
      }
6421
    }
6422
 
6423
    public getTransactionsForCustomer_args deepCopy() {
6424
      return new getTransactionsForCustomer_args(this);
6425
    }
6426
 
3430 rajveer 6427
    @Override
6428
    public void clear() {
6429
      setCustomerIdIsSet(false);
6430
      this.customerId = 0;
6431
      setFrom_dateIsSet(false);
6432
      this.from_date = 0;
6433
      setTo_dateIsSet(false);
6434
      this.to_date = 0;
6435
      this.status = null;
68 ashish 6436
    }
6437
 
6438
    public long getCustomerId() {
6439
      return this.customerId;
6440
    }
6441
 
3430 rajveer 6442
    public void setCustomerId(long customerId) {
68 ashish 6443
      this.customerId = customerId;
6444
      setCustomerIdIsSet(true);
6445
    }
6446
 
6447
    public void unsetCustomerId() {
6448
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
6449
    }
6450
 
3430 rajveer 6451
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
68 ashish 6452
    public boolean isSetCustomerId() {
6453
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
6454
    }
6455
 
6456
    public void setCustomerIdIsSet(boolean value) {
6457
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
6458
    }
6459
 
132 ashish 6460
    public long getFrom_date() {
6461
      return this.from_date;
68 ashish 6462
    }
6463
 
3430 rajveer 6464
    public void setFrom_date(long from_date) {
132 ashish 6465
      this.from_date = from_date;
6466
      setFrom_dateIsSet(true);
68 ashish 6467
    }
6468
 
132 ashish 6469
    public void unsetFrom_date() {
6470
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
68 ashish 6471
    }
6472
 
3430 rajveer 6473
    /** Returns true if field from_date is set (has been assigned a value) and false otherwise */
132 ashish 6474
    public boolean isSetFrom_date() {
6475
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
68 ashish 6476
    }
6477
 
132 ashish 6478
    public void setFrom_dateIsSet(boolean value) {
6479
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
68 ashish 6480
    }
6481
 
132 ashish 6482
    public long getTo_date() {
6483
      return this.to_date;
68 ashish 6484
    }
6485
 
3430 rajveer 6486
    public void setTo_date(long to_date) {
132 ashish 6487
      this.to_date = to_date;
6488
      setTo_dateIsSet(true);
68 ashish 6489
    }
6490
 
132 ashish 6491
    public void unsetTo_date() {
6492
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
68 ashish 6493
    }
6494
 
3430 rajveer 6495
    /** Returns true if field to_date is set (has been assigned a value) and false otherwise */
132 ashish 6496
    public boolean isSetTo_date() {
6497
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
68 ashish 6498
    }
6499
 
132 ashish 6500
    public void setTo_dateIsSet(boolean value) {
6501
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
68 ashish 6502
    }
6503
 
6504
    /**
6505
     * 
6506
     * @see TransactionStatus
6507
     */
6508
    public TransactionStatus getStatus() {
6509
      return this.status;
6510
    }
6511
 
6512
    /**
6513
     * 
6514
     * @see TransactionStatus
6515
     */
3430 rajveer 6516
    public void setStatus(TransactionStatus status) {
68 ashish 6517
      this.status = status;
6518
    }
6519
 
6520
    public void unsetStatus() {
6521
      this.status = null;
6522
    }
6523
 
3430 rajveer 6524
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
68 ashish 6525
    public boolean isSetStatus() {
6526
      return this.status != null;
6527
    }
6528
 
6529
    public void setStatusIsSet(boolean value) {
6530
      if (!value) {
6531
        this.status = null;
6532
      }
6533
    }
6534
 
6535
    public void setFieldValue(_Fields field, Object value) {
6536
      switch (field) {
6537
      case CUSTOMER_ID:
6538
        if (value == null) {
6539
          unsetCustomerId();
6540
        } else {
6541
          setCustomerId((Long)value);
6542
        }
6543
        break;
6544
 
132 ashish 6545
      case FROM_DATE:
68 ashish 6546
        if (value == null) {
132 ashish 6547
          unsetFrom_date();
68 ashish 6548
        } else {
132 ashish 6549
          setFrom_date((Long)value);
68 ashish 6550
        }
6551
        break;
6552
 
132 ashish 6553
      case TO_DATE:
68 ashish 6554
        if (value == null) {
132 ashish 6555
          unsetTo_date();
68 ashish 6556
        } else {
132 ashish 6557
          setTo_date((Long)value);
68 ashish 6558
        }
6559
        break;
6560
 
6561
      case STATUS:
6562
        if (value == null) {
6563
          unsetStatus();
6564
        } else {
6565
          setStatus((TransactionStatus)value);
6566
        }
6567
        break;
6568
 
6569
      }
6570
    }
6571
 
6572
    public Object getFieldValue(_Fields field) {
6573
      switch (field) {
6574
      case CUSTOMER_ID:
3430 rajveer 6575
        return Long.valueOf(getCustomerId());
68 ashish 6576
 
132 ashish 6577
      case FROM_DATE:
3430 rajveer 6578
        return Long.valueOf(getFrom_date());
68 ashish 6579
 
132 ashish 6580
      case TO_DATE:
3430 rajveer 6581
        return Long.valueOf(getTo_date());
68 ashish 6582
 
6583
      case STATUS:
6584
        return getStatus();
6585
 
6586
      }
6587
      throw new IllegalStateException();
6588
    }
6589
 
3430 rajveer 6590
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6591
    public boolean isSet(_Fields field) {
6592
      if (field == null) {
6593
        throw new IllegalArgumentException();
6594
      }
68 ashish 6595
 
6596
      switch (field) {
6597
      case CUSTOMER_ID:
6598
        return isSetCustomerId();
132 ashish 6599
      case FROM_DATE:
6600
        return isSetFrom_date();
6601
      case TO_DATE:
6602
        return isSetTo_date();
68 ashish 6603
      case STATUS:
6604
        return isSetStatus();
6605
      }
6606
      throw new IllegalStateException();
6607
    }
6608
 
6609
    @Override
6610
    public boolean equals(Object that) {
6611
      if (that == null)
6612
        return false;
6613
      if (that instanceof getTransactionsForCustomer_args)
6614
        return this.equals((getTransactionsForCustomer_args)that);
6615
      return false;
6616
    }
6617
 
6618
    public boolean equals(getTransactionsForCustomer_args that) {
6619
      if (that == null)
6620
        return false;
6621
 
6622
      boolean this_present_customerId = true;
6623
      boolean that_present_customerId = true;
6624
      if (this_present_customerId || that_present_customerId) {
6625
        if (!(this_present_customerId && that_present_customerId))
6626
          return false;
6627
        if (this.customerId != that.customerId)
6628
          return false;
6629
      }
6630
 
132 ashish 6631
      boolean this_present_from_date = true;
6632
      boolean that_present_from_date = true;
6633
      if (this_present_from_date || that_present_from_date) {
6634
        if (!(this_present_from_date && that_present_from_date))
68 ashish 6635
          return false;
132 ashish 6636
        if (this.from_date != that.from_date)
68 ashish 6637
          return false;
6638
      }
6639
 
132 ashish 6640
      boolean this_present_to_date = true;
6641
      boolean that_present_to_date = true;
6642
      if (this_present_to_date || that_present_to_date) {
6643
        if (!(this_present_to_date && that_present_to_date))
68 ashish 6644
          return false;
132 ashish 6645
        if (this.to_date != that.to_date)
68 ashish 6646
          return false;
6647
      }
6648
 
6649
      boolean this_present_status = true && this.isSetStatus();
6650
      boolean that_present_status = true && that.isSetStatus();
6651
      if (this_present_status || that_present_status) {
6652
        if (!(this_present_status && that_present_status))
6653
          return false;
6654
        if (!this.status.equals(that.status))
6655
          return false;
6656
      }
6657
 
6658
      return true;
6659
    }
6660
 
6661
    @Override
6662
    public int hashCode() {
6663
      return 0;
6664
    }
6665
 
6666
    public int compareTo(getTransactionsForCustomer_args other) {
6667
      if (!getClass().equals(other.getClass())) {
6668
        return getClass().getName().compareTo(other.getClass().getName());
6669
      }
6670
 
6671
      int lastComparison = 0;
6672
      getTransactionsForCustomer_args typedOther = (getTransactionsForCustomer_args)other;
6673
 
3430 rajveer 6674
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
68 ashish 6675
      if (lastComparison != 0) {
6676
        return lastComparison;
6677
      }
3430 rajveer 6678
      if (isSetCustomerId()) {
6679
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
6680
        if (lastComparison != 0) {
6681
          return lastComparison;
6682
        }
68 ashish 6683
      }
3430 rajveer 6684
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(typedOther.isSetFrom_date());
68 ashish 6685
      if (lastComparison != 0) {
6686
        return lastComparison;
6687
      }
3430 rajveer 6688
      if (isSetFrom_date()) {
6689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_date, typedOther.from_date);
6690
        if (lastComparison != 0) {
6691
          return lastComparison;
6692
        }
68 ashish 6693
      }
3430 rajveer 6694
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(typedOther.isSetTo_date());
68 ashish 6695
      if (lastComparison != 0) {
6696
        return lastComparison;
6697
      }
3430 rajveer 6698
      if (isSetTo_date()) {
6699
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_date, typedOther.to_date);
6700
        if (lastComparison != 0) {
6701
          return lastComparison;
6702
        }
68 ashish 6703
      }
3430 rajveer 6704
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
68 ashish 6705
      if (lastComparison != 0) {
6706
        return lastComparison;
6707
      }
3430 rajveer 6708
      if (isSetStatus()) {
6709
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
6710
        if (lastComparison != 0) {
6711
          return lastComparison;
6712
        }
68 ashish 6713
      }
6714
      return 0;
6715
    }
6716
 
3430 rajveer 6717
    public _Fields fieldForId(int fieldId) {
6718
      return _Fields.findByThriftId(fieldId);
6719
    }
6720
 
6721
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6722
      org.apache.thrift.protocol.TField field;
68 ashish 6723
      iprot.readStructBegin();
6724
      while (true)
6725
      {
6726
        field = iprot.readFieldBegin();
3430 rajveer 6727
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 6728
          break;
6729
        }
3430 rajveer 6730
        switch (field.id) {
6731
          case 1: // CUSTOMER_ID
6732
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6733
              this.customerId = iprot.readI64();
6734
              setCustomerIdIsSet(true);
6735
            } else { 
6736
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6737
            }
6738
            break;
6739
          case 2: // FROM_DATE
6740
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6741
              this.from_date = iprot.readI64();
6742
              setFrom_dateIsSet(true);
6743
            } else { 
6744
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6745
            }
6746
            break;
6747
          case 3: // TO_DATE
6748
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6749
              this.to_date = iprot.readI64();
6750
              setTo_dateIsSet(true);
6751
            } else { 
6752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6753
            }
6754
            break;
6755
          case 4: // STATUS
6756
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6757
              this.status = TransactionStatus.findByValue(iprot.readI32());
6758
            } else { 
6759
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6760
            }
6761
            break;
6762
          default:
6763
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 6764
        }
3430 rajveer 6765
        iprot.readFieldEnd();
68 ashish 6766
      }
6767
      iprot.readStructEnd();
6768
      validate();
6769
    }
6770
 
3430 rajveer 6771
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 6772
      validate();
6773
 
6774
      oprot.writeStructBegin(STRUCT_DESC);
6775
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
6776
      oprot.writeI64(this.customerId);
6777
      oprot.writeFieldEnd();
132 ashish 6778
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
6779
      oprot.writeI64(this.from_date);
68 ashish 6780
      oprot.writeFieldEnd();
132 ashish 6781
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
6782
      oprot.writeI64(this.to_date);
68 ashish 6783
      oprot.writeFieldEnd();
6784
      if (this.status != null) {
6785
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
6786
        oprot.writeI32(this.status.getValue());
6787
        oprot.writeFieldEnd();
6788
      }
6789
      oprot.writeFieldStop();
6790
      oprot.writeStructEnd();
6791
    }
6792
 
6793
    @Override
6794
    public String toString() {
6795
      StringBuilder sb = new StringBuilder("getTransactionsForCustomer_args(");
6796
      boolean first = true;
6797
 
6798
      sb.append("customerId:");
6799
      sb.append(this.customerId);
6800
      first = false;
6801
      if (!first) sb.append(", ");
132 ashish 6802
      sb.append("from_date:");
6803
      sb.append(this.from_date);
68 ashish 6804
      first = false;
6805
      if (!first) sb.append(", ");
132 ashish 6806
      sb.append("to_date:");
6807
      sb.append(this.to_date);
68 ashish 6808
      first = false;
6809
      if (!first) sb.append(", ");
6810
      sb.append("status:");
6811
      if (this.status == null) {
6812
        sb.append("null");
6813
      } else {
6814
        sb.append(this.status);
6815
      }
6816
      first = false;
6817
      sb.append(")");
6818
      return sb.toString();
6819
    }
6820
 
3430 rajveer 6821
    public void validate() throws org.apache.thrift.TException {
68 ashish 6822
      // check for required fields
6823
    }
6824
 
3430 rajveer 6825
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6826
      try {
6827
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6828
      } catch (org.apache.thrift.TException te) {
6829
        throw new java.io.IOException(te);
6830
      }
6831
    }
6832
 
6833
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6834
      try {
6835
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6836
        __isset_bit_vector = new BitSet(1);
6837
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6838
      } catch (org.apache.thrift.TException te) {
6839
        throw new java.io.IOException(te);
6840
      }
6841
    }
6842
 
68 ashish 6843
  }
6844
 
3430 rajveer 6845
  public static class getTransactionsForCustomer_result implements org.apache.thrift.TBase<getTransactionsForCustomer_result, getTransactionsForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
6846
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForCustomer_result");
68 ashish 6847
 
3430 rajveer 6848
    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);
6849
    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 6850
 
3430 rajveer 6851
    private List<Transaction> success; // required
6852
    private TransactionServiceException ex; // required
68 ashish 6853
 
6854
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6855
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 6856
      SUCCESS((short)0, "success"),
6857
      EX((short)1, "ex");
6858
 
6859
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6860
 
6861
      static {
6862
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6863
          byName.put(field.getFieldName(), field);
6864
        }
6865
      }
6866
 
6867
      /**
6868
       * Find the _Fields constant that matches fieldId, or null if its not found.
6869
       */
6870
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6871
        switch(fieldId) {
6872
          case 0: // SUCCESS
6873
            return SUCCESS;
6874
          case 1: // EX
6875
            return EX;
6876
          default:
6877
            return null;
6878
        }
68 ashish 6879
      }
6880
 
6881
      /**
6882
       * Find the _Fields constant that matches fieldId, throwing an exception
6883
       * if it is not found.
6884
       */
6885
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6886
        _Fields fields = findByThriftId(fieldId);
6887
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6888
        return fields;
6889
      }
6890
 
6891
      /**
6892
       * Find the _Fields constant that matches name, or null if its not found.
6893
       */
6894
      public static _Fields findByName(String name) {
6895
        return byName.get(name);
6896
      }
6897
 
6898
      private final short _thriftId;
6899
      private final String _fieldName;
6900
 
6901
      _Fields(short thriftId, String fieldName) {
6902
        _thriftId = thriftId;
6903
        _fieldName = fieldName;
6904
      }
6905
 
6906
      public short getThriftFieldId() {
6907
        return _thriftId;
6908
      }
6909
 
6910
      public String getFieldName() {
6911
        return _fieldName;
6912
      }
6913
    }
6914
 
6915
    // isset id assignments
6916
 
3430 rajveer 6917
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 6918
    static {
3430 rajveer 6919
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6920
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6921
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6922
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class))));
6923
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6924
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6925
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6926
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForCustomer_result.class, metaDataMap);
68 ashish 6927
    }
6928
 
6929
    public getTransactionsForCustomer_result() {
6930
    }
6931
 
6932
    public getTransactionsForCustomer_result(
6933
      List<Transaction> success,
6934
      TransactionServiceException ex)
6935
    {
6936
      this();
6937
      this.success = success;
6938
      this.ex = ex;
6939
    }
6940
 
6941
    /**
6942
     * Performs a deep copy on <i>other</i>.
6943
     */
6944
    public getTransactionsForCustomer_result(getTransactionsForCustomer_result other) {
6945
      if (other.isSetSuccess()) {
6946
        List<Transaction> __this__success = new ArrayList<Transaction>();
6947
        for (Transaction other_element : other.success) {
6948
          __this__success.add(new Transaction(other_element));
6949
        }
6950
        this.success = __this__success;
6951
      }
6952
      if (other.isSetEx()) {
6953
        this.ex = new TransactionServiceException(other.ex);
6954
      }
6955
    }
6956
 
6957
    public getTransactionsForCustomer_result deepCopy() {
6958
      return new getTransactionsForCustomer_result(this);
6959
    }
6960
 
3430 rajveer 6961
    @Override
6962
    public void clear() {
6963
      this.success = null;
6964
      this.ex = null;
68 ashish 6965
    }
6966
 
6967
    public int getSuccessSize() {
6968
      return (this.success == null) ? 0 : this.success.size();
6969
    }
6970
 
6971
    public java.util.Iterator<Transaction> getSuccessIterator() {
6972
      return (this.success == null) ? null : this.success.iterator();
6973
    }
6974
 
6975
    public void addToSuccess(Transaction elem) {
6976
      if (this.success == null) {
6977
        this.success = new ArrayList<Transaction>();
6978
      }
6979
      this.success.add(elem);
6980
    }
6981
 
6982
    public List<Transaction> getSuccess() {
6983
      return this.success;
6984
    }
6985
 
3430 rajveer 6986
    public void setSuccess(List<Transaction> success) {
68 ashish 6987
      this.success = success;
6988
    }
6989
 
6990
    public void unsetSuccess() {
6991
      this.success = null;
6992
    }
6993
 
3430 rajveer 6994
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 6995
    public boolean isSetSuccess() {
6996
      return this.success != null;
6997
    }
6998
 
6999
    public void setSuccessIsSet(boolean value) {
7000
      if (!value) {
7001
        this.success = null;
7002
      }
7003
    }
7004
 
7005
    public TransactionServiceException getEx() {
7006
      return this.ex;
7007
    }
7008
 
3430 rajveer 7009
    public void setEx(TransactionServiceException ex) {
68 ashish 7010
      this.ex = ex;
7011
    }
7012
 
7013
    public void unsetEx() {
7014
      this.ex = null;
7015
    }
7016
 
3430 rajveer 7017
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 7018
    public boolean isSetEx() {
7019
      return this.ex != null;
7020
    }
7021
 
7022
    public void setExIsSet(boolean value) {
7023
      if (!value) {
7024
        this.ex = null;
7025
      }
7026
    }
7027
 
7028
    public void setFieldValue(_Fields field, Object value) {
7029
      switch (field) {
7030
      case SUCCESS:
7031
        if (value == null) {
7032
          unsetSuccess();
7033
        } else {
7034
          setSuccess((List<Transaction>)value);
7035
        }
7036
        break;
7037
 
7038
      case EX:
7039
        if (value == null) {
7040
          unsetEx();
7041
        } else {
7042
          setEx((TransactionServiceException)value);
7043
        }
7044
        break;
7045
 
7046
      }
7047
    }
7048
 
7049
    public Object getFieldValue(_Fields field) {
7050
      switch (field) {
7051
      case SUCCESS:
7052
        return getSuccess();
7053
 
7054
      case EX:
7055
        return getEx();
7056
 
7057
      }
7058
      throw new IllegalStateException();
7059
    }
7060
 
3430 rajveer 7061
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7062
    public boolean isSet(_Fields field) {
7063
      if (field == null) {
7064
        throw new IllegalArgumentException();
7065
      }
68 ashish 7066
 
7067
      switch (field) {
7068
      case SUCCESS:
7069
        return isSetSuccess();
7070
      case EX:
7071
        return isSetEx();
7072
      }
7073
      throw new IllegalStateException();
7074
    }
7075
 
7076
    @Override
7077
    public boolean equals(Object that) {
7078
      if (that == null)
7079
        return false;
7080
      if (that instanceof getTransactionsForCustomer_result)
7081
        return this.equals((getTransactionsForCustomer_result)that);
7082
      return false;
7083
    }
7084
 
7085
    public boolean equals(getTransactionsForCustomer_result that) {
7086
      if (that == null)
7087
        return false;
7088
 
7089
      boolean this_present_success = true && this.isSetSuccess();
7090
      boolean that_present_success = true && that.isSetSuccess();
7091
      if (this_present_success || that_present_success) {
7092
        if (!(this_present_success && that_present_success))
7093
          return false;
7094
        if (!this.success.equals(that.success))
7095
          return false;
7096
      }
7097
 
7098
      boolean this_present_ex = true && this.isSetEx();
7099
      boolean that_present_ex = true && that.isSetEx();
7100
      if (this_present_ex || that_present_ex) {
7101
        if (!(this_present_ex && that_present_ex))
7102
          return false;
7103
        if (!this.ex.equals(that.ex))
7104
          return false;
7105
      }
7106
 
7107
      return true;
7108
    }
7109
 
7110
    @Override
7111
    public int hashCode() {
7112
      return 0;
7113
    }
7114
 
684 chandransh 7115
    public int compareTo(getTransactionsForCustomer_result other) {
7116
      if (!getClass().equals(other.getClass())) {
7117
        return getClass().getName().compareTo(other.getClass().getName());
7118
      }
7119
 
7120
      int lastComparison = 0;
7121
      getTransactionsForCustomer_result typedOther = (getTransactionsForCustomer_result)other;
7122
 
3430 rajveer 7123
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
684 chandransh 7124
      if (lastComparison != 0) {
7125
        return lastComparison;
7126
      }
3430 rajveer 7127
      if (isSetSuccess()) {
7128
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7129
        if (lastComparison != 0) {
7130
          return lastComparison;
7131
        }
684 chandransh 7132
      }
3430 rajveer 7133
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
684 chandransh 7134
      if (lastComparison != 0) {
7135
        return lastComparison;
7136
      }
3430 rajveer 7137
      if (isSetEx()) {
7138
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
7139
        if (lastComparison != 0) {
7140
          return lastComparison;
7141
        }
684 chandransh 7142
      }
7143
      return 0;
7144
    }
7145
 
3430 rajveer 7146
    public _Fields fieldForId(int fieldId) {
7147
      return _Fields.findByThriftId(fieldId);
7148
    }
7149
 
7150
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7151
      org.apache.thrift.protocol.TField field;
68 ashish 7152
      iprot.readStructBegin();
7153
      while (true)
7154
      {
7155
        field = iprot.readFieldBegin();
3430 rajveer 7156
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 7157
          break;
7158
        }
3430 rajveer 7159
        switch (field.id) {
7160
          case 0: // SUCCESS
7161
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7162
              {
7163
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
7164
                this.success = new ArrayList<Transaction>(_list8.size);
7165
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
68 ashish 7166
                {
3430 rajveer 7167
                  Transaction _elem10; // required
7168
                  _elem10 = new Transaction();
7169
                  _elem10.read(iprot);
7170
                  this.success.add(_elem10);
68 ashish 7171
                }
3430 rajveer 7172
                iprot.readListEnd();
68 ashish 7173
              }
3430 rajveer 7174
            } else { 
7175
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7176
            }
7177
            break;
7178
          case 1: // EX
7179
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7180
              this.ex = new TransactionServiceException();
7181
              this.ex.read(iprot);
7182
            } else { 
7183
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7184
            }
7185
            break;
7186
          default:
7187
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 7188
        }
3430 rajveer 7189
        iprot.readFieldEnd();
68 ashish 7190
      }
7191
      iprot.readStructEnd();
7192
      validate();
7193
    }
7194
 
3430 rajveer 7195
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 7196
      oprot.writeStructBegin(STRUCT_DESC);
7197
 
7198
      if (this.isSetSuccess()) {
7199
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7200
        {
3430 rajveer 7201
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
684 chandransh 7202
          for (Transaction _iter11 : this.success)
68 ashish 7203
          {
684 chandransh 7204
            _iter11.write(oprot);
68 ashish 7205
          }
7206
          oprot.writeListEnd();
7207
        }
7208
        oprot.writeFieldEnd();
7209
      } else if (this.isSetEx()) {
7210
        oprot.writeFieldBegin(EX_FIELD_DESC);
7211
        this.ex.write(oprot);
7212
        oprot.writeFieldEnd();
7213
      }
7214
      oprot.writeFieldStop();
7215
      oprot.writeStructEnd();
7216
    }
7217
 
7218
    @Override
7219
    public String toString() {
7220
      StringBuilder sb = new StringBuilder("getTransactionsForCustomer_result(");
7221
      boolean first = true;
7222
 
7223
      sb.append("success:");
7224
      if (this.success == null) {
7225
        sb.append("null");
7226
      } else {
7227
        sb.append(this.success);
7228
      }
7229
      first = false;
7230
      if (!first) sb.append(", ");
7231
      sb.append("ex:");
7232
      if (this.ex == null) {
7233
        sb.append("null");
7234
      } else {
7235
        sb.append(this.ex);
7236
      }
7237
      first = false;
7238
      sb.append(")");
7239
      return sb.toString();
7240
    }
7241
 
3430 rajveer 7242
    public void validate() throws org.apache.thrift.TException {
68 ashish 7243
      // check for required fields
7244
    }
7245
 
3430 rajveer 7246
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7247
      try {
7248
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7249
      } catch (org.apache.thrift.TException te) {
7250
        throw new java.io.IOException(te);
7251
      }
7252
    }
7253
 
7254
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7255
      try {
7256
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7257
      } catch (org.apache.thrift.TException te) {
7258
        throw new java.io.IOException(te);
7259
      }
7260
    }
7261
 
68 ashish 7262
  }
7263
 
3430 rajveer 7264
  public static class getTransactionsForShoppingCartId_args implements org.apache.thrift.TBase<getTransactionsForShoppingCartId_args, getTransactionsForShoppingCartId_args._Fields>, java.io.Serializable, Cloneable   {
7265
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForShoppingCartId_args");
132 ashish 7266
 
3430 rajveer 7267
    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 7268
 
3430 rajveer 7269
    private long shoppingCartId; // required
132 ashish 7270
 
7271
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7272
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
132 ashish 7273
      SHOPPING_CART_ID((short)1, "shoppingCartId");
7274
 
7275
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7276
 
7277
      static {
7278
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7279
          byName.put(field.getFieldName(), field);
7280
        }
7281
      }
7282
 
7283
      /**
7284
       * Find the _Fields constant that matches fieldId, or null if its not found.
7285
       */
7286
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7287
        switch(fieldId) {
7288
          case 1: // SHOPPING_CART_ID
7289
            return SHOPPING_CART_ID;
7290
          default:
7291
            return null;
7292
        }
132 ashish 7293
      }
7294
 
7295
      /**
7296
       * Find the _Fields constant that matches fieldId, throwing an exception
7297
       * if it is not found.
7298
       */
7299
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7300
        _Fields fields = findByThriftId(fieldId);
7301
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7302
        return fields;
7303
      }
7304
 
7305
      /**
7306
       * Find the _Fields constant that matches name, or null if its not found.
7307
       */
7308
      public static _Fields findByName(String name) {
7309
        return byName.get(name);
7310
      }
7311
 
7312
      private final short _thriftId;
7313
      private final String _fieldName;
7314
 
7315
      _Fields(short thriftId, String fieldName) {
7316
        _thriftId = thriftId;
7317
        _fieldName = fieldName;
7318
      }
7319
 
7320
      public short getThriftFieldId() {
7321
        return _thriftId;
7322
      }
7323
 
7324
      public String getFieldName() {
7325
        return _fieldName;
7326
      }
7327
    }
7328
 
7329
    // isset id assignments
7330
    private static final int __SHOPPINGCARTID_ISSET_ID = 0;
7331
    private BitSet __isset_bit_vector = new BitSet(1);
7332
 
3430 rajveer 7333
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
132 ashish 7334
    static {
3430 rajveer 7335
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7336
      tmpMap.put(_Fields.SHOPPING_CART_ID, new org.apache.thrift.meta_data.FieldMetaData("shoppingCartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7337
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7338
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7339
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForShoppingCartId_args.class, metaDataMap);
132 ashish 7340
    }
7341
 
7342
    public getTransactionsForShoppingCartId_args() {
7343
    }
7344
 
7345
    public getTransactionsForShoppingCartId_args(
7346
      long shoppingCartId)
7347
    {
7348
      this();
7349
      this.shoppingCartId = shoppingCartId;
7350
      setShoppingCartIdIsSet(true);
7351
    }
7352
 
7353
    /**
7354
     * Performs a deep copy on <i>other</i>.
7355
     */
7356
    public getTransactionsForShoppingCartId_args(getTransactionsForShoppingCartId_args other) {
7357
      __isset_bit_vector.clear();
7358
      __isset_bit_vector.or(other.__isset_bit_vector);
7359
      this.shoppingCartId = other.shoppingCartId;
7360
    }
7361
 
7362
    public getTransactionsForShoppingCartId_args deepCopy() {
7363
      return new getTransactionsForShoppingCartId_args(this);
7364
    }
7365
 
3430 rajveer 7366
    @Override
7367
    public void clear() {
7368
      setShoppingCartIdIsSet(false);
7369
      this.shoppingCartId = 0;
132 ashish 7370
    }
7371
 
7372
    public long getShoppingCartId() {
7373
      return this.shoppingCartId;
7374
    }
7375
 
3430 rajveer 7376
    public void setShoppingCartId(long shoppingCartId) {
132 ashish 7377
      this.shoppingCartId = shoppingCartId;
7378
      setShoppingCartIdIsSet(true);
7379
    }
7380
 
7381
    public void unsetShoppingCartId() {
7382
      __isset_bit_vector.clear(__SHOPPINGCARTID_ISSET_ID);
7383
    }
7384
 
3430 rajveer 7385
    /** Returns true if field shoppingCartId is set (has been assigned a value) and false otherwise */
132 ashish 7386
    public boolean isSetShoppingCartId() {
7387
      return __isset_bit_vector.get(__SHOPPINGCARTID_ISSET_ID);
7388
    }
7389
 
7390
    public void setShoppingCartIdIsSet(boolean value) {
7391
      __isset_bit_vector.set(__SHOPPINGCARTID_ISSET_ID, value);
7392
    }
7393
 
7394
    public void setFieldValue(_Fields field, Object value) {
7395
      switch (field) {
7396
      case SHOPPING_CART_ID:
7397
        if (value == null) {
7398
          unsetShoppingCartId();
7399
        } else {
7400
          setShoppingCartId((Long)value);
7401
        }
7402
        break;
7403
 
7404
      }
7405
    }
7406
 
7407
    public Object getFieldValue(_Fields field) {
7408
      switch (field) {
7409
      case SHOPPING_CART_ID:
3430 rajveer 7410
        return Long.valueOf(getShoppingCartId());
132 ashish 7411
 
7412
      }
7413
      throw new IllegalStateException();
7414
    }
7415
 
3430 rajveer 7416
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7417
    public boolean isSet(_Fields field) {
7418
      if (field == null) {
7419
        throw new IllegalArgumentException();
7420
      }
132 ashish 7421
 
7422
      switch (field) {
7423
      case SHOPPING_CART_ID:
7424
        return isSetShoppingCartId();
7425
      }
7426
      throw new IllegalStateException();
7427
    }
7428
 
7429
    @Override
7430
    public boolean equals(Object that) {
7431
      if (that == null)
7432
        return false;
7433
      if (that instanceof getTransactionsForShoppingCartId_args)
7434
        return this.equals((getTransactionsForShoppingCartId_args)that);
7435
      return false;
7436
    }
7437
 
7438
    public boolean equals(getTransactionsForShoppingCartId_args that) {
7439
      if (that == null)
7440
        return false;
7441
 
7442
      boolean this_present_shoppingCartId = true;
7443
      boolean that_present_shoppingCartId = true;
7444
      if (this_present_shoppingCartId || that_present_shoppingCartId) {
7445
        if (!(this_present_shoppingCartId && that_present_shoppingCartId))
7446
          return false;
7447
        if (this.shoppingCartId != that.shoppingCartId)
7448
          return false;
7449
      }
7450
 
7451
      return true;
7452
    }
7453
 
7454
    @Override
7455
    public int hashCode() {
7456
      return 0;
7457
    }
7458
 
7459
    public int compareTo(getTransactionsForShoppingCartId_args other) {
7460
      if (!getClass().equals(other.getClass())) {
7461
        return getClass().getName().compareTo(other.getClass().getName());
7462
      }
7463
 
7464
      int lastComparison = 0;
7465
      getTransactionsForShoppingCartId_args typedOther = (getTransactionsForShoppingCartId_args)other;
7466
 
3430 rajveer 7467
      lastComparison = Boolean.valueOf(isSetShoppingCartId()).compareTo(typedOther.isSetShoppingCartId());
132 ashish 7468
      if (lastComparison != 0) {
7469
        return lastComparison;
7470
      }
3430 rajveer 7471
      if (isSetShoppingCartId()) {
7472
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shoppingCartId, typedOther.shoppingCartId);
7473
        if (lastComparison != 0) {
7474
          return lastComparison;
7475
        }
132 ashish 7476
      }
7477
      return 0;
7478
    }
7479
 
3430 rajveer 7480
    public _Fields fieldForId(int fieldId) {
7481
      return _Fields.findByThriftId(fieldId);
7482
    }
7483
 
7484
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7485
      org.apache.thrift.protocol.TField field;
132 ashish 7486
      iprot.readStructBegin();
7487
      while (true)
7488
      {
7489
        field = iprot.readFieldBegin();
3430 rajveer 7490
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
132 ashish 7491
          break;
7492
        }
3430 rajveer 7493
        switch (field.id) {
7494
          case 1: // SHOPPING_CART_ID
7495
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7496
              this.shoppingCartId = iprot.readI64();
7497
              setShoppingCartIdIsSet(true);
7498
            } else { 
7499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7500
            }
7501
            break;
7502
          default:
7503
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
132 ashish 7504
        }
3430 rajveer 7505
        iprot.readFieldEnd();
132 ashish 7506
      }
7507
      iprot.readStructEnd();
7508
      validate();
7509
    }
7510
 
3430 rajveer 7511
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
132 ashish 7512
      validate();
7513
 
7514
      oprot.writeStructBegin(STRUCT_DESC);
7515
      oprot.writeFieldBegin(SHOPPING_CART_ID_FIELD_DESC);
7516
      oprot.writeI64(this.shoppingCartId);
7517
      oprot.writeFieldEnd();
7518
      oprot.writeFieldStop();
7519
      oprot.writeStructEnd();
7520
    }
7521
 
7522
    @Override
7523
    public String toString() {
7524
      StringBuilder sb = new StringBuilder("getTransactionsForShoppingCartId_args(");
7525
      boolean first = true;
7526
 
7527
      sb.append("shoppingCartId:");
7528
      sb.append(this.shoppingCartId);
7529
      first = false;
7530
      sb.append(")");
7531
      return sb.toString();
7532
    }
7533
 
3430 rajveer 7534
    public void validate() throws org.apache.thrift.TException {
132 ashish 7535
      // check for required fields
7536
    }
7537
 
3430 rajveer 7538
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7539
      try {
7540
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7541
      } catch (org.apache.thrift.TException te) {
7542
        throw new java.io.IOException(te);
7543
      }
7544
    }
7545
 
7546
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7547
      try {
7548
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7549
        __isset_bit_vector = new BitSet(1);
7550
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7551
      } catch (org.apache.thrift.TException te) {
7552
        throw new java.io.IOException(te);
7553
      }
7554
    }
7555
 
132 ashish 7556
  }
7557
 
3430 rajveer 7558
  public static class getTransactionsForShoppingCartId_result implements org.apache.thrift.TBase<getTransactionsForShoppingCartId_result, getTransactionsForShoppingCartId_result._Fields>, java.io.Serializable, Cloneable   {
7559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForShoppingCartId_result");
132 ashish 7560
 
3430 rajveer 7561
    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);
7562
    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 7563
 
3430 rajveer 7564
    private List<Transaction> success; // required
7565
    private TransactionServiceException ex; // required
132 ashish 7566
 
7567
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7568
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
132 ashish 7569
      SUCCESS((short)0, "success"),
7570
      EX((short)1, "ex");
7571
 
7572
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7573
 
7574
      static {
7575
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7576
          byName.put(field.getFieldName(), field);
7577
        }
7578
      }
7579
 
7580
      /**
7581
       * Find the _Fields constant that matches fieldId, or null if its not found.
7582
       */
7583
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7584
        switch(fieldId) {
7585
          case 0: // SUCCESS
7586
            return SUCCESS;
7587
          case 1: // EX
7588
            return EX;
7589
          default:
7590
            return null;
7591
        }
132 ashish 7592
      }
7593
 
7594
      /**
7595
       * Find the _Fields constant that matches fieldId, throwing an exception
7596
       * if it is not found.
7597
       */
7598
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7599
        _Fields fields = findByThriftId(fieldId);
7600
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7601
        return fields;
7602
      }
7603
 
7604
      /**
7605
       * Find the _Fields constant that matches name, or null if its not found.
7606
       */
7607
      public static _Fields findByName(String name) {
7608
        return byName.get(name);
7609
      }
7610
 
7611
      private final short _thriftId;
7612
      private final String _fieldName;
7613
 
7614
      _Fields(short thriftId, String fieldName) {
7615
        _thriftId = thriftId;
7616
        _fieldName = fieldName;
7617
      }
7618
 
7619
      public short getThriftFieldId() {
7620
        return _thriftId;
7621
      }
7622
 
7623
      public String getFieldName() {
7624
        return _fieldName;
7625
      }
7626
    }
7627
 
7628
    // isset id assignments
7629
 
3430 rajveer 7630
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
132 ashish 7631
    static {
3430 rajveer 7632
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7633
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7634
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7635
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class))));
7636
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7638
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7639
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForShoppingCartId_result.class, metaDataMap);
132 ashish 7640
    }
7641
 
7642
    public getTransactionsForShoppingCartId_result() {
7643
    }
7644
 
7645
    public getTransactionsForShoppingCartId_result(
7646
      List<Transaction> success,
7647
      TransactionServiceException ex)
7648
    {
7649
      this();
7650
      this.success = success;
7651
      this.ex = ex;
7652
    }
7653
 
7654
    /**
7655
     * Performs a deep copy on <i>other</i>.
7656
     */
7657
    public getTransactionsForShoppingCartId_result(getTransactionsForShoppingCartId_result other) {
7658
      if (other.isSetSuccess()) {
7659
        List<Transaction> __this__success = new ArrayList<Transaction>();
7660
        for (Transaction other_element : other.success) {
7661
          __this__success.add(new Transaction(other_element));
7662
        }
7663
        this.success = __this__success;
7664
      }
7665
      if (other.isSetEx()) {
7666
        this.ex = new TransactionServiceException(other.ex);
7667
      }
7668
    }
7669
 
7670
    public getTransactionsForShoppingCartId_result deepCopy() {
7671
      return new getTransactionsForShoppingCartId_result(this);
7672
    }
7673
 
3430 rajveer 7674
    @Override
7675
    public void clear() {
7676
      this.success = null;
7677
      this.ex = null;
132 ashish 7678
    }
7679
 
7680
    public int getSuccessSize() {
7681
      return (this.success == null) ? 0 : this.success.size();
7682
    }
7683
 
7684
    public java.util.Iterator<Transaction> getSuccessIterator() {
7685
      return (this.success == null) ? null : this.success.iterator();
7686
    }
7687
 
7688
    public void addToSuccess(Transaction elem) {
7689
      if (this.success == null) {
7690
        this.success = new ArrayList<Transaction>();
7691
      }
7692
      this.success.add(elem);
7693
    }
7694
 
7695
    public List<Transaction> getSuccess() {
7696
      return this.success;
7697
    }
7698
 
3430 rajveer 7699
    public void setSuccess(List<Transaction> success) {
132 ashish 7700
      this.success = success;
7701
    }
7702
 
7703
    public void unsetSuccess() {
7704
      this.success = null;
7705
    }
7706
 
3430 rajveer 7707
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
132 ashish 7708
    public boolean isSetSuccess() {
7709
      return this.success != null;
7710
    }
7711
 
7712
    public void setSuccessIsSet(boolean value) {
7713
      if (!value) {
7714
        this.success = null;
7715
      }
7716
    }
7717
 
7718
    public TransactionServiceException getEx() {
7719
      return this.ex;
7720
    }
7721
 
3430 rajveer 7722
    public void setEx(TransactionServiceException ex) {
132 ashish 7723
      this.ex = ex;
7724
    }
7725
 
7726
    public void unsetEx() {
7727
      this.ex = null;
7728
    }
7729
 
3430 rajveer 7730
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
132 ashish 7731
    public boolean isSetEx() {
7732
      return this.ex != null;
7733
    }
7734
 
7735
    public void setExIsSet(boolean value) {
7736
      if (!value) {
7737
        this.ex = null;
7738
      }
7739
    }
7740
 
7741
    public void setFieldValue(_Fields field, Object value) {
7742
      switch (field) {
7743
      case SUCCESS:
7744
        if (value == null) {
7745
          unsetSuccess();
7746
        } else {
7747
          setSuccess((List<Transaction>)value);
7748
        }
7749
        break;
7750
 
7751
      case EX:
7752
        if (value == null) {
7753
          unsetEx();
7754
        } else {
7755
          setEx((TransactionServiceException)value);
7756
        }
7757
        break;
7758
 
7759
      }
7760
    }
7761
 
7762
    public Object getFieldValue(_Fields field) {
7763
      switch (field) {
7764
      case SUCCESS:
7765
        return getSuccess();
7766
 
7767
      case EX:
7768
        return getEx();
7769
 
7770
      }
7771
      throw new IllegalStateException();
7772
    }
7773
 
3430 rajveer 7774
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7775
    public boolean isSet(_Fields field) {
7776
      if (field == null) {
7777
        throw new IllegalArgumentException();
7778
      }
132 ashish 7779
 
7780
      switch (field) {
7781
      case SUCCESS:
7782
        return isSetSuccess();
7783
      case EX:
7784
        return isSetEx();
7785
      }
7786
      throw new IllegalStateException();
7787
    }
7788
 
7789
    @Override
7790
    public boolean equals(Object that) {
7791
      if (that == null)
7792
        return false;
7793
      if (that instanceof getTransactionsForShoppingCartId_result)
7794
        return this.equals((getTransactionsForShoppingCartId_result)that);
7795
      return false;
7796
    }
7797
 
7798
    public boolean equals(getTransactionsForShoppingCartId_result that) {
7799
      if (that == null)
7800
        return false;
7801
 
7802
      boolean this_present_success = true && this.isSetSuccess();
7803
      boolean that_present_success = true && that.isSetSuccess();
7804
      if (this_present_success || that_present_success) {
7805
        if (!(this_present_success && that_present_success))
7806
          return false;
7807
        if (!this.success.equals(that.success))
7808
          return false;
7809
      }
7810
 
7811
      boolean this_present_ex = true && this.isSetEx();
7812
      boolean that_present_ex = true && that.isSetEx();
7813
      if (this_present_ex || that_present_ex) {
7814
        if (!(this_present_ex && that_present_ex))
7815
          return false;
7816
        if (!this.ex.equals(that.ex))
7817
          return false;
7818
      }
7819
 
7820
      return true;
7821
    }
7822
 
7823
    @Override
7824
    public int hashCode() {
7825
      return 0;
7826
    }
7827
 
684 chandransh 7828
    public int compareTo(getTransactionsForShoppingCartId_result other) {
7829
      if (!getClass().equals(other.getClass())) {
7830
        return getClass().getName().compareTo(other.getClass().getName());
7831
      }
7832
 
7833
      int lastComparison = 0;
7834
      getTransactionsForShoppingCartId_result typedOther = (getTransactionsForShoppingCartId_result)other;
7835
 
3430 rajveer 7836
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
684 chandransh 7837
      if (lastComparison != 0) {
7838
        return lastComparison;
7839
      }
3430 rajveer 7840
      if (isSetSuccess()) {
7841
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7842
        if (lastComparison != 0) {
7843
          return lastComparison;
7844
        }
684 chandransh 7845
      }
3430 rajveer 7846
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
684 chandransh 7847
      if (lastComparison != 0) {
7848
        return lastComparison;
7849
      }
3430 rajveer 7850
      if (isSetEx()) {
7851
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
7852
        if (lastComparison != 0) {
7853
          return lastComparison;
7854
        }
684 chandransh 7855
      }
7856
      return 0;
7857
    }
7858
 
3430 rajveer 7859
    public _Fields fieldForId(int fieldId) {
7860
      return _Fields.findByThriftId(fieldId);
7861
    }
7862
 
7863
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7864
      org.apache.thrift.protocol.TField field;
132 ashish 7865
      iprot.readStructBegin();
7866
      while (true)
7867
      {
7868
        field = iprot.readFieldBegin();
3430 rajveer 7869
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
132 ashish 7870
          break;
7871
        }
3430 rajveer 7872
        switch (field.id) {
7873
          case 0: // SUCCESS
7874
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7875
              {
7876
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
7877
                this.success = new ArrayList<Transaction>(_list12.size);
7878
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
132 ashish 7879
                {
3430 rajveer 7880
                  Transaction _elem14; // required
7881
                  _elem14 = new Transaction();
7882
                  _elem14.read(iprot);
7883
                  this.success.add(_elem14);
132 ashish 7884
                }
3430 rajveer 7885
                iprot.readListEnd();
132 ashish 7886
              }
3430 rajveer 7887
            } else { 
7888
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7889
            }
7890
            break;
7891
          case 1: // EX
7892
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7893
              this.ex = new TransactionServiceException();
7894
              this.ex.read(iprot);
7895
            } else { 
7896
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7897
            }
7898
            break;
7899
          default:
7900
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
132 ashish 7901
        }
3430 rajveer 7902
        iprot.readFieldEnd();
132 ashish 7903
      }
7904
      iprot.readStructEnd();
7905
      validate();
7906
    }
7907
 
3430 rajveer 7908
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
132 ashish 7909
      oprot.writeStructBegin(STRUCT_DESC);
7910
 
7911
      if (this.isSetSuccess()) {
7912
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7913
        {
3430 rajveer 7914
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
684 chandransh 7915
          for (Transaction _iter15 : this.success)
132 ashish 7916
          {
684 chandransh 7917
            _iter15.write(oprot);
132 ashish 7918
          }
7919
          oprot.writeListEnd();
7920
        }
7921
        oprot.writeFieldEnd();
7922
      } else if (this.isSetEx()) {
7923
        oprot.writeFieldBegin(EX_FIELD_DESC);
7924
        this.ex.write(oprot);
7925
        oprot.writeFieldEnd();
7926
      }
7927
      oprot.writeFieldStop();
7928
      oprot.writeStructEnd();
7929
    }
7930
 
7931
    @Override
7932
    public String toString() {
7933
      StringBuilder sb = new StringBuilder("getTransactionsForShoppingCartId_result(");
7934
      boolean first = true;
7935
 
7936
      sb.append("success:");
7937
      if (this.success == null) {
7938
        sb.append("null");
7939
      } else {
7940
        sb.append(this.success);
7941
      }
7942
      first = false;
7943
      if (!first) sb.append(", ");
7944
      sb.append("ex:");
7945
      if (this.ex == null) {
7946
        sb.append("null");
7947
      } else {
7948
        sb.append(this.ex);
7949
      }
7950
      first = false;
7951
      sb.append(")");
7952
      return sb.toString();
7953
    }
7954
 
3430 rajveer 7955
    public void validate() throws org.apache.thrift.TException {
132 ashish 7956
      // check for required fields
7957
    }
7958
 
3430 rajveer 7959
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7960
      try {
7961
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7962
      } catch (org.apache.thrift.TException te) {
7963
        throw new java.io.IOException(te);
7964
      }
7965
    }
7966
 
7967
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7968
      try {
7969
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7970
      } catch (org.apache.thrift.TException te) {
7971
        throw new java.io.IOException(te);
7972
      }
7973
    }
7974
 
132 ashish 7975
  }
7976
 
3430 rajveer 7977
  public static class getTransactionStatus_args implements org.apache.thrift.TBase<getTransactionStatus_args, getTransactionStatus_args._Fields>, java.io.Serializable, Cloneable   {
7978
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionStatus_args");
68 ashish 7979
 
3430 rajveer 7980
    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 7981
 
3430 rajveer 7982
    private long transactionId; // required
68 ashish 7983
 
7984
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7985
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 7986
      TRANSACTION_ID((short)1, "transactionId");
7987
 
7988
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7989
 
7990
      static {
7991
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7992
          byName.put(field.getFieldName(), field);
7993
        }
7994
      }
7995
 
7996
      /**
7997
       * Find the _Fields constant that matches fieldId, or null if its not found.
7998
       */
7999
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8000
        switch(fieldId) {
8001
          case 1: // TRANSACTION_ID
8002
            return TRANSACTION_ID;
8003
          default:
8004
            return null;
8005
        }
68 ashish 8006
      }
8007
 
8008
      /**
8009
       * Find the _Fields constant that matches fieldId, throwing an exception
8010
       * if it is not found.
8011
       */
8012
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8013
        _Fields fields = findByThriftId(fieldId);
8014
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8015
        return fields;
8016
      }
8017
 
8018
      /**
8019
       * Find the _Fields constant that matches name, or null if its not found.
8020
       */
8021
      public static _Fields findByName(String name) {
8022
        return byName.get(name);
8023
      }
8024
 
8025
      private final short _thriftId;
8026
      private final String _fieldName;
8027
 
8028
      _Fields(short thriftId, String fieldName) {
8029
        _thriftId = thriftId;
8030
        _fieldName = fieldName;
8031
      }
8032
 
8033
      public short getThriftFieldId() {
8034
        return _thriftId;
8035
      }
8036
 
8037
      public String getFieldName() {
8038
        return _fieldName;
8039
      }
8040
    }
8041
 
8042
    // isset id assignments
8043
    private static final int __TRANSACTIONID_ISSET_ID = 0;
8044
    private BitSet __isset_bit_vector = new BitSet(1);
8045
 
3430 rajveer 8046
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 8047
    static {
3430 rajveer 8048
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8049
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8050
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8051
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8052
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionStatus_args.class, metaDataMap);
68 ashish 8053
    }
8054
 
8055
    public getTransactionStatus_args() {
8056
    }
8057
 
8058
    public getTransactionStatus_args(
8059
      long transactionId)
8060
    {
8061
      this();
8062
      this.transactionId = transactionId;
8063
      setTransactionIdIsSet(true);
8064
    }
8065
 
8066
    /**
8067
     * Performs a deep copy on <i>other</i>.
8068
     */
8069
    public getTransactionStatus_args(getTransactionStatus_args other) {
8070
      __isset_bit_vector.clear();
8071
      __isset_bit_vector.or(other.__isset_bit_vector);
8072
      this.transactionId = other.transactionId;
8073
    }
8074
 
8075
    public getTransactionStatus_args deepCopy() {
8076
      return new getTransactionStatus_args(this);
8077
    }
8078
 
3430 rajveer 8079
    @Override
8080
    public void clear() {
8081
      setTransactionIdIsSet(false);
8082
      this.transactionId = 0;
68 ashish 8083
    }
8084
 
8085
    public long getTransactionId() {
8086
      return this.transactionId;
8087
    }
8088
 
3430 rajveer 8089
    public void setTransactionId(long transactionId) {
68 ashish 8090
      this.transactionId = transactionId;
8091
      setTransactionIdIsSet(true);
8092
    }
8093
 
8094
    public void unsetTransactionId() {
8095
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
8096
    }
8097
 
3430 rajveer 8098
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
68 ashish 8099
    public boolean isSetTransactionId() {
8100
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
8101
    }
8102
 
8103
    public void setTransactionIdIsSet(boolean value) {
8104
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
8105
    }
8106
 
8107
    public void setFieldValue(_Fields field, Object value) {
8108
      switch (field) {
8109
      case TRANSACTION_ID:
8110
        if (value == null) {
8111
          unsetTransactionId();
8112
        } else {
8113
          setTransactionId((Long)value);
8114
        }
8115
        break;
8116
 
8117
      }
8118
    }
8119
 
8120
    public Object getFieldValue(_Fields field) {
8121
      switch (field) {
8122
      case TRANSACTION_ID:
3430 rajveer 8123
        return Long.valueOf(getTransactionId());
68 ashish 8124
 
8125
      }
8126
      throw new IllegalStateException();
8127
    }
8128
 
3430 rajveer 8129
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8130
    public boolean isSet(_Fields field) {
8131
      if (field == null) {
8132
        throw new IllegalArgumentException();
8133
      }
68 ashish 8134
 
8135
      switch (field) {
8136
      case TRANSACTION_ID:
8137
        return isSetTransactionId();
8138
      }
8139
      throw new IllegalStateException();
8140
    }
8141
 
8142
    @Override
8143
    public boolean equals(Object that) {
8144
      if (that == null)
8145
        return false;
8146
      if (that instanceof getTransactionStatus_args)
8147
        return this.equals((getTransactionStatus_args)that);
8148
      return false;
8149
    }
8150
 
8151
    public boolean equals(getTransactionStatus_args that) {
8152
      if (that == null)
8153
        return false;
8154
 
8155
      boolean this_present_transactionId = true;
8156
      boolean that_present_transactionId = true;
8157
      if (this_present_transactionId || that_present_transactionId) {
8158
        if (!(this_present_transactionId && that_present_transactionId))
8159
          return false;
8160
        if (this.transactionId != that.transactionId)
8161
          return false;
8162
      }
8163
 
8164
      return true;
8165
    }
8166
 
8167
    @Override
8168
    public int hashCode() {
8169
      return 0;
8170
    }
8171
 
8172
    public int compareTo(getTransactionStatus_args other) {
8173
      if (!getClass().equals(other.getClass())) {
8174
        return getClass().getName().compareTo(other.getClass().getName());
8175
      }
8176
 
8177
      int lastComparison = 0;
8178
      getTransactionStatus_args typedOther = (getTransactionStatus_args)other;
8179
 
3430 rajveer 8180
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
68 ashish 8181
      if (lastComparison != 0) {
8182
        return lastComparison;
8183
      }
3430 rajveer 8184
      if (isSetTransactionId()) {
8185
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
8186
        if (lastComparison != 0) {
8187
          return lastComparison;
8188
        }
68 ashish 8189
      }
8190
      return 0;
8191
    }
8192
 
3430 rajveer 8193
    public _Fields fieldForId(int fieldId) {
8194
      return _Fields.findByThriftId(fieldId);
8195
    }
8196
 
8197
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8198
      org.apache.thrift.protocol.TField field;
68 ashish 8199
      iprot.readStructBegin();
8200
      while (true)
8201
      {
8202
        field = iprot.readFieldBegin();
3430 rajveer 8203
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 8204
          break;
8205
        }
3430 rajveer 8206
        switch (field.id) {
8207
          case 1: // TRANSACTION_ID
8208
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8209
              this.transactionId = iprot.readI64();
8210
              setTransactionIdIsSet(true);
8211
            } else { 
8212
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8213
            }
8214
            break;
8215
          default:
8216
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 8217
        }
3430 rajveer 8218
        iprot.readFieldEnd();
68 ashish 8219
      }
8220
      iprot.readStructEnd();
8221
      validate();
8222
    }
8223
 
3430 rajveer 8224
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 8225
      validate();
8226
 
8227
      oprot.writeStructBegin(STRUCT_DESC);
8228
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
8229
      oprot.writeI64(this.transactionId);
8230
      oprot.writeFieldEnd();
8231
      oprot.writeFieldStop();
8232
      oprot.writeStructEnd();
8233
    }
8234
 
8235
    @Override
8236
    public String toString() {
8237
      StringBuilder sb = new StringBuilder("getTransactionStatus_args(");
8238
      boolean first = true;
8239
 
8240
      sb.append("transactionId:");
8241
      sb.append(this.transactionId);
8242
      first = false;
8243
      sb.append(")");
8244
      return sb.toString();
8245
    }
8246
 
3430 rajveer 8247
    public void validate() throws org.apache.thrift.TException {
68 ashish 8248
      // check for required fields
8249
    }
8250
 
3430 rajveer 8251
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8252
      try {
8253
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8254
      } catch (org.apache.thrift.TException te) {
8255
        throw new java.io.IOException(te);
8256
      }
8257
    }
8258
 
8259
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8260
      try {
8261
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8262
        __isset_bit_vector = new BitSet(1);
8263
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8264
      } catch (org.apache.thrift.TException te) {
8265
        throw new java.io.IOException(te);
8266
      }
8267
    }
8268
 
68 ashish 8269
  }
8270
 
3430 rajveer 8271
  public static class getTransactionStatus_result implements org.apache.thrift.TBase<getTransactionStatus_result, getTransactionStatus_result._Fields>, java.io.Serializable, Cloneable   {
8272
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionStatus_result");
68 ashish 8273
 
3430 rajveer 8274
    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);
8275
    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 8276
 
3430 rajveer 8277
    private TransactionStatus success; // required
8278
    private TransactionServiceException ex; // required
68 ashish 8279
 
8280
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8281
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 8282
      /**
8283
       * 
8284
       * @see TransactionStatus
8285
       */
8286
      SUCCESS((short)0, "success"),
8287
      EX((short)1, "ex");
8288
 
8289
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8290
 
8291
      static {
8292
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8293
          byName.put(field.getFieldName(), field);
8294
        }
8295
      }
8296
 
8297
      /**
8298
       * Find the _Fields constant that matches fieldId, or null if its not found.
8299
       */
8300
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8301
        switch(fieldId) {
8302
          case 0: // SUCCESS
8303
            return SUCCESS;
8304
          case 1: // EX
8305
            return EX;
8306
          default:
8307
            return null;
8308
        }
68 ashish 8309
      }
8310
 
8311
      /**
8312
       * Find the _Fields constant that matches fieldId, throwing an exception
8313
       * if it is not found.
8314
       */
8315
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8316
        _Fields fields = findByThriftId(fieldId);
8317
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8318
        return fields;
8319
      }
8320
 
8321
      /**
8322
       * Find the _Fields constant that matches name, or null if its not found.
8323
       */
8324
      public static _Fields findByName(String name) {
8325
        return byName.get(name);
8326
      }
8327
 
8328
      private final short _thriftId;
8329
      private final String _fieldName;
8330
 
8331
      _Fields(short thriftId, String fieldName) {
8332
        _thriftId = thriftId;
8333
        _fieldName = fieldName;
8334
      }
8335
 
8336
      public short getThriftFieldId() {
8337
        return _thriftId;
8338
      }
8339
 
8340
      public String getFieldName() {
8341
        return _fieldName;
8342
      }
8343
    }
8344
 
8345
    // isset id assignments
8346
 
3430 rajveer 8347
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 8348
    static {
3430 rajveer 8349
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8350
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8351
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
8352
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8353
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8354
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8355
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionStatus_result.class, metaDataMap);
68 ashish 8356
    }
8357
 
8358
    public getTransactionStatus_result() {
8359
    }
8360
 
8361
    public getTransactionStatus_result(
8362
      TransactionStatus success,
8363
      TransactionServiceException ex)
8364
    {
8365
      this();
8366
      this.success = success;
8367
      this.ex = ex;
8368
    }
8369
 
8370
    /**
8371
     * Performs a deep copy on <i>other</i>.
8372
     */
8373
    public getTransactionStatus_result(getTransactionStatus_result other) {
8374
      if (other.isSetSuccess()) {
8375
        this.success = other.success;
8376
      }
8377
      if (other.isSetEx()) {
8378
        this.ex = new TransactionServiceException(other.ex);
8379
      }
8380
    }
8381
 
8382
    public getTransactionStatus_result deepCopy() {
8383
      return new getTransactionStatus_result(this);
8384
    }
8385
 
3430 rajveer 8386
    @Override
8387
    public void clear() {
8388
      this.success = null;
8389
      this.ex = null;
68 ashish 8390
    }
8391
 
8392
    /**
8393
     * 
8394
     * @see TransactionStatus
8395
     */
8396
    public TransactionStatus getSuccess() {
8397
      return this.success;
8398
    }
8399
 
8400
    /**
8401
     * 
8402
     * @see TransactionStatus
8403
     */
3430 rajveer 8404
    public void setSuccess(TransactionStatus success) {
68 ashish 8405
      this.success = success;
8406
    }
8407
 
8408
    public void unsetSuccess() {
8409
      this.success = null;
8410
    }
8411
 
3430 rajveer 8412
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 8413
    public boolean isSetSuccess() {
8414
      return this.success != null;
8415
    }
8416
 
8417
    public void setSuccessIsSet(boolean value) {
8418
      if (!value) {
8419
        this.success = null;
8420
      }
8421
    }
8422
 
8423
    public TransactionServiceException getEx() {
8424
      return this.ex;
8425
    }
8426
 
3430 rajveer 8427
    public void setEx(TransactionServiceException ex) {
68 ashish 8428
      this.ex = ex;
8429
    }
8430
 
8431
    public void unsetEx() {
8432
      this.ex = null;
8433
    }
8434
 
3430 rajveer 8435
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 8436
    public boolean isSetEx() {
8437
      return this.ex != null;
8438
    }
8439
 
8440
    public void setExIsSet(boolean value) {
8441
      if (!value) {
8442
        this.ex = null;
8443
      }
8444
    }
8445
 
8446
    public void setFieldValue(_Fields field, Object value) {
8447
      switch (field) {
8448
      case SUCCESS:
8449
        if (value == null) {
8450
          unsetSuccess();
8451
        } else {
8452
          setSuccess((TransactionStatus)value);
8453
        }
8454
        break;
8455
 
8456
      case EX:
8457
        if (value == null) {
8458
          unsetEx();
8459
        } else {
8460
          setEx((TransactionServiceException)value);
8461
        }
8462
        break;
8463
 
8464
      }
8465
    }
8466
 
8467
    public Object getFieldValue(_Fields field) {
8468
      switch (field) {
8469
      case SUCCESS:
8470
        return getSuccess();
8471
 
8472
      case EX:
8473
        return getEx();
8474
 
8475
      }
8476
      throw new IllegalStateException();
8477
    }
8478
 
3430 rajveer 8479
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8480
    public boolean isSet(_Fields field) {
8481
      if (field == null) {
8482
        throw new IllegalArgumentException();
8483
      }
68 ashish 8484
 
8485
      switch (field) {
8486
      case SUCCESS:
8487
        return isSetSuccess();
8488
      case EX:
8489
        return isSetEx();
8490
      }
8491
      throw new IllegalStateException();
8492
    }
8493
 
8494
    @Override
8495
    public boolean equals(Object that) {
8496
      if (that == null)
8497
        return false;
8498
      if (that instanceof getTransactionStatus_result)
8499
        return this.equals((getTransactionStatus_result)that);
8500
      return false;
8501
    }
8502
 
8503
    public boolean equals(getTransactionStatus_result that) {
8504
      if (that == null)
8505
        return false;
8506
 
8507
      boolean this_present_success = true && this.isSetSuccess();
8508
      boolean that_present_success = true && that.isSetSuccess();
8509
      if (this_present_success || that_present_success) {
8510
        if (!(this_present_success && that_present_success))
8511
          return false;
8512
        if (!this.success.equals(that.success))
8513
          return false;
8514
      }
8515
 
8516
      boolean this_present_ex = true && this.isSetEx();
8517
      boolean that_present_ex = true && that.isSetEx();
8518
      if (this_present_ex || that_present_ex) {
8519
        if (!(this_present_ex && that_present_ex))
8520
          return false;
8521
        if (!this.ex.equals(that.ex))
8522
          return false;
8523
      }
8524
 
8525
      return true;
8526
    }
8527
 
8528
    @Override
8529
    public int hashCode() {
8530
      return 0;
8531
    }
8532
 
8533
    public int compareTo(getTransactionStatus_result other) {
8534
      if (!getClass().equals(other.getClass())) {
8535
        return getClass().getName().compareTo(other.getClass().getName());
8536
      }
8537
 
8538
      int lastComparison = 0;
8539
      getTransactionStatus_result typedOther = (getTransactionStatus_result)other;
8540
 
3430 rajveer 8541
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 8542
      if (lastComparison != 0) {
8543
        return lastComparison;
8544
      }
3430 rajveer 8545
      if (isSetSuccess()) {
8546
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8547
        if (lastComparison != 0) {
8548
          return lastComparison;
8549
        }
68 ashish 8550
      }
3430 rajveer 8551
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 8552
      if (lastComparison != 0) {
8553
        return lastComparison;
8554
      }
3430 rajveer 8555
      if (isSetEx()) {
8556
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
8557
        if (lastComparison != 0) {
8558
          return lastComparison;
8559
        }
68 ashish 8560
      }
8561
      return 0;
8562
    }
8563
 
3430 rajveer 8564
    public _Fields fieldForId(int fieldId) {
8565
      return _Fields.findByThriftId(fieldId);
8566
    }
8567
 
8568
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8569
      org.apache.thrift.protocol.TField field;
68 ashish 8570
      iprot.readStructBegin();
8571
      while (true)
8572
      {
8573
        field = iprot.readFieldBegin();
3430 rajveer 8574
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 8575
          break;
8576
        }
3430 rajveer 8577
        switch (field.id) {
8578
          case 0: // SUCCESS
8579
            if (field.type == org.apache.thrift.protocol.TType.I32) {
8580
              this.success = TransactionStatus.findByValue(iprot.readI32());
8581
            } else { 
8582
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8583
            }
8584
            break;
8585
          case 1: // EX
8586
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8587
              this.ex = new TransactionServiceException();
8588
              this.ex.read(iprot);
8589
            } else { 
8590
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8591
            }
8592
            break;
8593
          default:
8594
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 8595
        }
3430 rajveer 8596
        iprot.readFieldEnd();
68 ashish 8597
      }
8598
      iprot.readStructEnd();
8599
      validate();
8600
    }
8601
 
3430 rajveer 8602
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 8603
      oprot.writeStructBegin(STRUCT_DESC);
8604
 
8605
      if (this.isSetSuccess()) {
8606
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8607
        oprot.writeI32(this.success.getValue());
8608
        oprot.writeFieldEnd();
8609
      } else if (this.isSetEx()) {
8610
        oprot.writeFieldBegin(EX_FIELD_DESC);
8611
        this.ex.write(oprot);
8612
        oprot.writeFieldEnd();
8613
      }
8614
      oprot.writeFieldStop();
8615
      oprot.writeStructEnd();
8616
    }
8617
 
8618
    @Override
8619
    public String toString() {
8620
      StringBuilder sb = new StringBuilder("getTransactionStatus_result(");
8621
      boolean first = true;
8622
 
8623
      sb.append("success:");
8624
      if (this.success == null) {
8625
        sb.append("null");
8626
      } else {
8627
        sb.append(this.success);
8628
      }
8629
      first = false;
8630
      if (!first) sb.append(", ");
8631
      sb.append("ex:");
8632
      if (this.ex == null) {
8633
        sb.append("null");
8634
      } else {
8635
        sb.append(this.ex);
8636
      }
8637
      first = false;
8638
      sb.append(")");
8639
      return sb.toString();
8640
    }
8641
 
3430 rajveer 8642
    public void validate() throws org.apache.thrift.TException {
68 ashish 8643
      // check for required fields
8644
    }
8645
 
3430 rajveer 8646
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8647
      try {
8648
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8649
      } catch (org.apache.thrift.TException te) {
8650
        throw new java.io.IOException(te);
8651
      }
8652
    }
8653
 
8654
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8655
      try {
8656
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8657
      } catch (org.apache.thrift.TException te) {
8658
        throw new java.io.IOException(te);
8659
      }
8660
    }
8661
 
68 ashish 8662
  }
8663
 
3430 rajveer 8664
  public static class changeTransactionStatus_args implements org.apache.thrift.TBase<changeTransactionStatus_args, changeTransactionStatus_args._Fields>, java.io.Serializable, Cloneable   {
8665
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeTransactionStatus_args");
68 ashish 8666
 
3430 rajveer 8667
    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);
8668
    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);
8669
    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 8670
 
3430 rajveer 8671
    private long transactionId; // required
8672
    private TransactionStatus status; // required
8673
    private String description; // required
68 ashish 8674
 
8675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8676
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 8677
      TRANSACTION_ID((short)1, "transactionId"),
8678
      /**
8679
       * 
8680
       * @see TransactionStatus
8681
       */
8682
      STATUS((short)2, "status"),
8683
      DESCRIPTION((short)3, "description");
8684
 
8685
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8686
 
8687
      static {
8688
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8689
          byName.put(field.getFieldName(), field);
8690
        }
8691
      }
8692
 
8693
      /**
8694
       * Find the _Fields constant that matches fieldId, or null if its not found.
8695
       */
8696
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8697
        switch(fieldId) {
8698
          case 1: // TRANSACTION_ID
8699
            return TRANSACTION_ID;
8700
          case 2: // STATUS
8701
            return STATUS;
8702
          case 3: // DESCRIPTION
8703
            return DESCRIPTION;
8704
          default:
8705
            return null;
8706
        }
68 ashish 8707
      }
8708
 
8709
      /**
8710
       * Find the _Fields constant that matches fieldId, throwing an exception
8711
       * if it is not found.
8712
       */
8713
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8714
        _Fields fields = findByThriftId(fieldId);
8715
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8716
        return fields;
8717
      }
8718
 
8719
      /**
8720
       * Find the _Fields constant that matches name, or null if its not found.
8721
       */
8722
      public static _Fields findByName(String name) {
8723
        return byName.get(name);
8724
      }
8725
 
8726
      private final short _thriftId;
8727
      private final String _fieldName;
8728
 
8729
      _Fields(short thriftId, String fieldName) {
8730
        _thriftId = thriftId;
8731
        _fieldName = fieldName;
8732
      }
8733
 
8734
      public short getThriftFieldId() {
8735
        return _thriftId;
8736
      }
8737
 
8738
      public String getFieldName() {
8739
        return _fieldName;
8740
      }
8741
    }
8742
 
8743
    // isset id assignments
8744
    private static final int __TRANSACTIONID_ISSET_ID = 0;
8745
    private BitSet __isset_bit_vector = new BitSet(1);
8746
 
3430 rajveer 8747
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 8748
    static {
3430 rajveer 8749
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8750
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8751
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8752
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8753
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
8754
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8755
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8756
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8757
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeTransactionStatus_args.class, metaDataMap);
68 ashish 8758
    }
8759
 
8760
    public changeTransactionStatus_args() {
8761
    }
8762
 
8763
    public changeTransactionStatus_args(
8764
      long transactionId,
8765
      TransactionStatus status,
8766
      String description)
8767
    {
8768
      this();
8769
      this.transactionId = transactionId;
8770
      setTransactionIdIsSet(true);
8771
      this.status = status;
8772
      this.description = description;
8773
    }
8774
 
8775
    /**
8776
     * Performs a deep copy on <i>other</i>.
8777
     */
8778
    public changeTransactionStatus_args(changeTransactionStatus_args other) {
8779
      __isset_bit_vector.clear();
8780
      __isset_bit_vector.or(other.__isset_bit_vector);
8781
      this.transactionId = other.transactionId;
8782
      if (other.isSetStatus()) {
8783
        this.status = other.status;
8784
      }
8785
      if (other.isSetDescription()) {
8786
        this.description = other.description;
8787
      }
8788
    }
8789
 
8790
    public changeTransactionStatus_args deepCopy() {
8791
      return new changeTransactionStatus_args(this);
8792
    }
8793
 
3430 rajveer 8794
    @Override
8795
    public void clear() {
8796
      setTransactionIdIsSet(false);
8797
      this.transactionId = 0;
8798
      this.status = null;
8799
      this.description = null;
68 ashish 8800
    }
8801
 
8802
    public long getTransactionId() {
8803
      return this.transactionId;
8804
    }
8805
 
3430 rajveer 8806
    public void setTransactionId(long transactionId) {
68 ashish 8807
      this.transactionId = transactionId;
8808
      setTransactionIdIsSet(true);
8809
    }
8810
 
8811
    public void unsetTransactionId() {
8812
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
8813
    }
8814
 
3430 rajveer 8815
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
68 ashish 8816
    public boolean isSetTransactionId() {
8817
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
8818
    }
8819
 
8820
    public void setTransactionIdIsSet(boolean value) {
8821
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
8822
    }
8823
 
8824
    /**
8825
     * 
8826
     * @see TransactionStatus
8827
     */
8828
    public TransactionStatus getStatus() {
8829
      return this.status;
8830
    }
8831
 
8832
    /**
8833
     * 
8834
     * @see TransactionStatus
8835
     */
3430 rajveer 8836
    public void setStatus(TransactionStatus status) {
68 ashish 8837
      this.status = status;
8838
    }
8839
 
8840
    public void unsetStatus() {
8841
      this.status = null;
8842
    }
8843
 
3430 rajveer 8844
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
68 ashish 8845
    public boolean isSetStatus() {
8846
      return this.status != null;
8847
    }
8848
 
8849
    public void setStatusIsSet(boolean value) {
8850
      if (!value) {
8851
        this.status = null;
8852
      }
8853
    }
8854
 
8855
    public String getDescription() {
8856
      return this.description;
8857
    }
8858
 
3430 rajveer 8859
    public void setDescription(String description) {
68 ashish 8860
      this.description = description;
8861
    }
8862
 
8863
    public void unsetDescription() {
8864
      this.description = null;
8865
    }
8866
 
3430 rajveer 8867
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
68 ashish 8868
    public boolean isSetDescription() {
8869
      return this.description != null;
8870
    }
8871
 
8872
    public void setDescriptionIsSet(boolean value) {
8873
      if (!value) {
8874
        this.description = null;
8875
      }
8876
    }
8877
 
8878
    public void setFieldValue(_Fields field, Object value) {
8879
      switch (field) {
8880
      case TRANSACTION_ID:
8881
        if (value == null) {
8882
          unsetTransactionId();
8883
        } else {
8884
          setTransactionId((Long)value);
8885
        }
8886
        break;
8887
 
8888
      case STATUS:
8889
        if (value == null) {
8890
          unsetStatus();
8891
        } else {
8892
          setStatus((TransactionStatus)value);
8893
        }
8894
        break;
8895
 
8896
      case DESCRIPTION:
8897
        if (value == null) {
8898
          unsetDescription();
8899
        } else {
8900
          setDescription((String)value);
8901
        }
8902
        break;
8903
 
8904
      }
8905
    }
8906
 
8907
    public Object getFieldValue(_Fields field) {
8908
      switch (field) {
8909
      case TRANSACTION_ID:
3430 rajveer 8910
        return Long.valueOf(getTransactionId());
68 ashish 8911
 
8912
      case STATUS:
8913
        return getStatus();
8914
 
8915
      case DESCRIPTION:
8916
        return getDescription();
8917
 
8918
      }
8919
      throw new IllegalStateException();
8920
    }
8921
 
3430 rajveer 8922
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8923
    public boolean isSet(_Fields field) {
8924
      if (field == null) {
8925
        throw new IllegalArgumentException();
8926
      }
68 ashish 8927
 
8928
      switch (field) {
8929
      case TRANSACTION_ID:
8930
        return isSetTransactionId();
8931
      case STATUS:
8932
        return isSetStatus();
8933
      case DESCRIPTION:
8934
        return isSetDescription();
8935
      }
8936
      throw new IllegalStateException();
8937
    }
8938
 
8939
    @Override
8940
    public boolean equals(Object that) {
8941
      if (that == null)
8942
        return false;
8943
      if (that instanceof changeTransactionStatus_args)
8944
        return this.equals((changeTransactionStatus_args)that);
8945
      return false;
8946
    }
8947
 
8948
    public boolean equals(changeTransactionStatus_args that) {
8949
      if (that == null)
8950
        return false;
8951
 
8952
      boolean this_present_transactionId = true;
8953
      boolean that_present_transactionId = true;
8954
      if (this_present_transactionId || that_present_transactionId) {
8955
        if (!(this_present_transactionId && that_present_transactionId))
8956
          return false;
8957
        if (this.transactionId != that.transactionId)
8958
          return false;
8959
      }
8960
 
8961
      boolean this_present_status = true && this.isSetStatus();
8962
      boolean that_present_status = true && that.isSetStatus();
8963
      if (this_present_status || that_present_status) {
8964
        if (!(this_present_status && that_present_status))
8965
          return false;
8966
        if (!this.status.equals(that.status))
8967
          return false;
8968
      }
8969
 
8970
      boolean this_present_description = true && this.isSetDescription();
8971
      boolean that_present_description = true && that.isSetDescription();
8972
      if (this_present_description || that_present_description) {
8973
        if (!(this_present_description && that_present_description))
8974
          return false;
8975
        if (!this.description.equals(that.description))
8976
          return false;
8977
      }
8978
 
8979
      return true;
8980
    }
8981
 
8982
    @Override
8983
    public int hashCode() {
8984
      return 0;
8985
    }
8986
 
8987
    public int compareTo(changeTransactionStatus_args other) {
8988
      if (!getClass().equals(other.getClass())) {
8989
        return getClass().getName().compareTo(other.getClass().getName());
8990
      }
8991
 
8992
      int lastComparison = 0;
8993
      changeTransactionStatus_args typedOther = (changeTransactionStatus_args)other;
8994
 
3430 rajveer 8995
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
68 ashish 8996
      if (lastComparison != 0) {
8997
        return lastComparison;
8998
      }
3430 rajveer 8999
      if (isSetTransactionId()) {
9000
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
9001
        if (lastComparison != 0) {
9002
          return lastComparison;
9003
        }
68 ashish 9004
      }
3430 rajveer 9005
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
68 ashish 9006
      if (lastComparison != 0) {
9007
        return lastComparison;
9008
      }
3430 rajveer 9009
      if (isSetStatus()) {
9010
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
9011
        if (lastComparison != 0) {
9012
          return lastComparison;
9013
        }
68 ashish 9014
      }
3430 rajveer 9015
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
68 ashish 9016
      if (lastComparison != 0) {
9017
        return lastComparison;
9018
      }
3430 rajveer 9019
      if (isSetDescription()) {
9020
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
9021
        if (lastComparison != 0) {
9022
          return lastComparison;
9023
        }
68 ashish 9024
      }
9025
      return 0;
9026
    }
9027
 
3430 rajveer 9028
    public _Fields fieldForId(int fieldId) {
9029
      return _Fields.findByThriftId(fieldId);
9030
    }
9031
 
9032
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9033
      org.apache.thrift.protocol.TField field;
68 ashish 9034
      iprot.readStructBegin();
9035
      while (true)
9036
      {
9037
        field = iprot.readFieldBegin();
3430 rajveer 9038
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 9039
          break;
9040
        }
3430 rajveer 9041
        switch (field.id) {
9042
          case 1: // TRANSACTION_ID
9043
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9044
              this.transactionId = iprot.readI64();
9045
              setTransactionIdIsSet(true);
9046
            } else { 
9047
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9048
            }
9049
            break;
9050
          case 2: // STATUS
9051
            if (field.type == org.apache.thrift.protocol.TType.I32) {
9052
              this.status = TransactionStatus.findByValue(iprot.readI32());
9053
            } else { 
9054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9055
            }
9056
            break;
9057
          case 3: // DESCRIPTION
9058
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9059
              this.description = iprot.readString();
9060
            } else { 
9061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9062
            }
9063
            break;
9064
          default:
9065
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 9066
        }
3430 rajveer 9067
        iprot.readFieldEnd();
68 ashish 9068
      }
9069
      iprot.readStructEnd();
9070
      validate();
9071
    }
9072
 
3430 rajveer 9073
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 9074
      validate();
9075
 
9076
      oprot.writeStructBegin(STRUCT_DESC);
9077
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
9078
      oprot.writeI64(this.transactionId);
9079
      oprot.writeFieldEnd();
9080
      if (this.status != null) {
9081
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
9082
        oprot.writeI32(this.status.getValue());
9083
        oprot.writeFieldEnd();
9084
      }
9085
      if (this.description != null) {
9086
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
9087
        oprot.writeString(this.description);
9088
        oprot.writeFieldEnd();
9089
      }
9090
      oprot.writeFieldStop();
9091
      oprot.writeStructEnd();
9092
    }
9093
 
9094
    @Override
9095
    public String toString() {
9096
      StringBuilder sb = new StringBuilder("changeTransactionStatus_args(");
9097
      boolean first = true;
9098
 
9099
      sb.append("transactionId:");
9100
      sb.append(this.transactionId);
9101
      first = false;
9102
      if (!first) sb.append(", ");
9103
      sb.append("status:");
9104
      if (this.status == null) {
9105
        sb.append("null");
9106
      } else {
9107
        sb.append(this.status);
9108
      }
9109
      first = false;
9110
      if (!first) sb.append(", ");
9111
      sb.append("description:");
9112
      if (this.description == null) {
9113
        sb.append("null");
9114
      } else {
9115
        sb.append(this.description);
9116
      }
9117
      first = false;
9118
      sb.append(")");
9119
      return sb.toString();
9120
    }
9121
 
3430 rajveer 9122
    public void validate() throws org.apache.thrift.TException {
68 ashish 9123
      // check for required fields
9124
    }
9125
 
3430 rajveer 9126
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9127
      try {
9128
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9129
      } catch (org.apache.thrift.TException te) {
9130
        throw new java.io.IOException(te);
9131
      }
9132
    }
9133
 
9134
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9135
      try {
9136
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9137
        __isset_bit_vector = new BitSet(1);
9138
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9139
      } catch (org.apache.thrift.TException te) {
9140
        throw new java.io.IOException(te);
9141
      }
9142
    }
9143
 
68 ashish 9144
  }
9145
 
3430 rajveer 9146
  public static class changeTransactionStatus_result implements org.apache.thrift.TBase<changeTransactionStatus_result, changeTransactionStatus_result._Fields>, java.io.Serializable, Cloneable   {
9147
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeTransactionStatus_result");
68 ashish 9148
 
3430 rajveer 9149
    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);
9150
    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 9151
 
3430 rajveer 9152
    private boolean success; // required
9153
    private TransactionServiceException ex; // required
68 ashish 9154
 
9155
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9156
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 9157
      SUCCESS((short)0, "success"),
9158
      EX((short)1, "ex");
9159
 
9160
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9161
 
9162
      static {
9163
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9164
          byName.put(field.getFieldName(), field);
9165
        }
9166
      }
9167
 
9168
      /**
9169
       * Find the _Fields constant that matches fieldId, or null if its not found.
9170
       */
9171
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9172
        switch(fieldId) {
9173
          case 0: // SUCCESS
9174
            return SUCCESS;
9175
          case 1: // EX
9176
            return EX;
9177
          default:
9178
            return null;
9179
        }
68 ashish 9180
      }
9181
 
9182
      /**
9183
       * Find the _Fields constant that matches fieldId, throwing an exception
9184
       * if it is not found.
9185
       */
9186
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9187
        _Fields fields = findByThriftId(fieldId);
9188
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9189
        return fields;
9190
      }
9191
 
9192
      /**
9193
       * Find the _Fields constant that matches name, or null if its not found.
9194
       */
9195
      public static _Fields findByName(String name) {
9196
        return byName.get(name);
9197
      }
9198
 
9199
      private final short _thriftId;
9200
      private final String _fieldName;
9201
 
9202
      _Fields(short thriftId, String fieldName) {
9203
        _thriftId = thriftId;
9204
        _fieldName = fieldName;
9205
      }
9206
 
9207
      public short getThriftFieldId() {
9208
        return _thriftId;
9209
      }
9210
 
9211
      public String getFieldName() {
9212
        return _fieldName;
9213
      }
9214
    }
9215
 
9216
    // isset id assignments
9217
    private static final int __SUCCESS_ISSET_ID = 0;
9218
    private BitSet __isset_bit_vector = new BitSet(1);
9219
 
3430 rajveer 9220
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 9221
    static {
3430 rajveer 9222
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9223
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9224
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9225
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9226
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9227
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9228
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeTransactionStatus_result.class, metaDataMap);
68 ashish 9229
    }
9230
 
9231
    public changeTransactionStatus_result() {
9232
    }
9233
 
9234
    public changeTransactionStatus_result(
9235
      boolean success,
9236
      TransactionServiceException ex)
9237
    {
9238
      this();
9239
      this.success = success;
9240
      setSuccessIsSet(true);
9241
      this.ex = ex;
9242
    }
9243
 
9244
    /**
9245
     * Performs a deep copy on <i>other</i>.
9246
     */
9247
    public changeTransactionStatus_result(changeTransactionStatus_result other) {
9248
      __isset_bit_vector.clear();
9249
      __isset_bit_vector.or(other.__isset_bit_vector);
9250
      this.success = other.success;
9251
      if (other.isSetEx()) {
9252
        this.ex = new TransactionServiceException(other.ex);
9253
      }
9254
    }
9255
 
9256
    public changeTransactionStatus_result deepCopy() {
9257
      return new changeTransactionStatus_result(this);
9258
    }
9259
 
3430 rajveer 9260
    @Override
9261
    public void clear() {
9262
      setSuccessIsSet(false);
9263
      this.success = false;
9264
      this.ex = null;
68 ashish 9265
    }
9266
 
9267
    public boolean isSuccess() {
9268
      return this.success;
9269
    }
9270
 
3430 rajveer 9271
    public void setSuccess(boolean success) {
68 ashish 9272
      this.success = success;
9273
      setSuccessIsSet(true);
9274
    }
9275
 
9276
    public void unsetSuccess() {
9277
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9278
    }
9279
 
3430 rajveer 9280
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 9281
    public boolean isSetSuccess() {
9282
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9283
    }
9284
 
9285
    public void setSuccessIsSet(boolean value) {
9286
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9287
    }
9288
 
9289
    public TransactionServiceException getEx() {
9290
      return this.ex;
9291
    }
9292
 
3430 rajveer 9293
    public void setEx(TransactionServiceException ex) {
68 ashish 9294
      this.ex = ex;
9295
    }
9296
 
9297
    public void unsetEx() {
9298
      this.ex = null;
9299
    }
9300
 
3430 rajveer 9301
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 9302
    public boolean isSetEx() {
9303
      return this.ex != null;
9304
    }
9305
 
9306
    public void setExIsSet(boolean value) {
9307
      if (!value) {
9308
        this.ex = null;
9309
      }
9310
    }
9311
 
9312
    public void setFieldValue(_Fields field, Object value) {
9313
      switch (field) {
9314
      case SUCCESS:
9315
        if (value == null) {
9316
          unsetSuccess();
9317
        } else {
9318
          setSuccess((Boolean)value);
9319
        }
9320
        break;
9321
 
9322
      case EX:
9323
        if (value == null) {
9324
          unsetEx();
9325
        } else {
9326
          setEx((TransactionServiceException)value);
9327
        }
9328
        break;
9329
 
9330
      }
9331
    }
9332
 
9333
    public Object getFieldValue(_Fields field) {
9334
      switch (field) {
9335
      case SUCCESS:
3430 rajveer 9336
        return Boolean.valueOf(isSuccess());
68 ashish 9337
 
9338
      case EX:
9339
        return getEx();
9340
 
9341
      }
9342
      throw new IllegalStateException();
9343
    }
9344
 
3430 rajveer 9345
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9346
    public boolean isSet(_Fields field) {
9347
      if (field == null) {
9348
        throw new IllegalArgumentException();
9349
      }
68 ashish 9350
 
9351
      switch (field) {
9352
      case SUCCESS:
9353
        return isSetSuccess();
9354
      case EX:
9355
        return isSetEx();
9356
      }
9357
      throw new IllegalStateException();
9358
    }
9359
 
9360
    @Override
9361
    public boolean equals(Object that) {
9362
      if (that == null)
9363
        return false;
9364
      if (that instanceof changeTransactionStatus_result)
9365
        return this.equals((changeTransactionStatus_result)that);
9366
      return false;
9367
    }
9368
 
9369
    public boolean equals(changeTransactionStatus_result that) {
9370
      if (that == null)
9371
        return false;
9372
 
9373
      boolean this_present_success = true;
9374
      boolean that_present_success = true;
9375
      if (this_present_success || that_present_success) {
9376
        if (!(this_present_success && that_present_success))
9377
          return false;
9378
        if (this.success != that.success)
9379
          return false;
9380
      }
9381
 
9382
      boolean this_present_ex = true && this.isSetEx();
9383
      boolean that_present_ex = true && that.isSetEx();
9384
      if (this_present_ex || that_present_ex) {
9385
        if (!(this_present_ex && that_present_ex))
9386
          return false;
9387
        if (!this.ex.equals(that.ex))
9388
          return false;
9389
      }
9390
 
9391
      return true;
9392
    }
9393
 
9394
    @Override
9395
    public int hashCode() {
9396
      return 0;
9397
    }
9398
 
9399
    public int compareTo(changeTransactionStatus_result other) {
9400
      if (!getClass().equals(other.getClass())) {
9401
        return getClass().getName().compareTo(other.getClass().getName());
9402
      }
9403
 
9404
      int lastComparison = 0;
9405
      changeTransactionStatus_result typedOther = (changeTransactionStatus_result)other;
9406
 
3430 rajveer 9407
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 9408
      if (lastComparison != 0) {
9409
        return lastComparison;
9410
      }
3430 rajveer 9411
      if (isSetSuccess()) {
9412
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9413
        if (lastComparison != 0) {
9414
          return lastComparison;
9415
        }
68 ashish 9416
      }
3430 rajveer 9417
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 9418
      if (lastComparison != 0) {
9419
        return lastComparison;
9420
      }
3430 rajveer 9421
      if (isSetEx()) {
9422
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
9423
        if (lastComparison != 0) {
9424
          return lastComparison;
9425
        }
68 ashish 9426
      }
9427
      return 0;
9428
    }
9429
 
3430 rajveer 9430
    public _Fields fieldForId(int fieldId) {
9431
      return _Fields.findByThriftId(fieldId);
9432
    }
9433
 
9434
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9435
      org.apache.thrift.protocol.TField field;
68 ashish 9436
      iprot.readStructBegin();
9437
      while (true)
9438
      {
9439
        field = iprot.readFieldBegin();
3430 rajveer 9440
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 9441
          break;
9442
        }
3430 rajveer 9443
        switch (field.id) {
9444
          case 0: // SUCCESS
9445
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
9446
              this.success = iprot.readBool();
9447
              setSuccessIsSet(true);
9448
            } else { 
9449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9450
            }
9451
            break;
9452
          case 1: // EX
9453
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9454
              this.ex = new TransactionServiceException();
9455
              this.ex.read(iprot);
9456
            } else { 
9457
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9458
            }
9459
            break;
9460
          default:
9461
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 9462
        }
3430 rajveer 9463
        iprot.readFieldEnd();
68 ashish 9464
      }
9465
      iprot.readStructEnd();
9466
      validate();
9467
    }
9468
 
3430 rajveer 9469
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 9470
      oprot.writeStructBegin(STRUCT_DESC);
9471
 
9472
      if (this.isSetSuccess()) {
9473
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9474
        oprot.writeBool(this.success);
9475
        oprot.writeFieldEnd();
9476
      } else if (this.isSetEx()) {
9477
        oprot.writeFieldBegin(EX_FIELD_DESC);
9478
        this.ex.write(oprot);
9479
        oprot.writeFieldEnd();
9480
      }
9481
      oprot.writeFieldStop();
9482
      oprot.writeStructEnd();
9483
    }
9484
 
9485
    @Override
9486
    public String toString() {
9487
      StringBuilder sb = new StringBuilder("changeTransactionStatus_result(");
9488
      boolean first = true;
9489
 
9490
      sb.append("success:");
9491
      sb.append(this.success);
9492
      first = false;
9493
      if (!first) sb.append(", ");
9494
      sb.append("ex:");
9495
      if (this.ex == null) {
9496
        sb.append("null");
9497
      } else {
9498
        sb.append(this.ex);
9499
      }
9500
      first = false;
9501
      sb.append(")");
9502
      return sb.toString();
9503
    }
9504
 
3430 rajveer 9505
    public void validate() throws org.apache.thrift.TException {
68 ashish 9506
      // check for required fields
9507
    }
9508
 
3430 rajveer 9509
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9510
      try {
9511
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9512
      } catch (org.apache.thrift.TException te) {
9513
        throw new java.io.IOException(te);
9514
      }
9515
    }
9516
 
9517
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9518
      try {
9519
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9520
      } catch (org.apache.thrift.TException te) {
9521
        throw new java.io.IOException(te);
9522
      }
9523
    }
9524
 
68 ashish 9525
  }
9526
 
3430 rajveer 9527
  public static class enqueueTransactionInfoEmail_args implements org.apache.thrift.TBase<enqueueTransactionInfoEmail_args, enqueueTransactionInfoEmail_args._Fields>, java.io.Serializable, Cloneable   {
9528
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enqueueTransactionInfoEmail_args");
1382 varun.gupt 9529
 
3430 rajveer 9530
    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 9531
 
3430 rajveer 9532
    private long transactionId; // required
1382 varun.gupt 9533
 
9534
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9535
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 9536
      TRANSACTION_ID((short)1, "transactionId");
9537
 
9538
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9539
 
9540
      static {
9541
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9542
          byName.put(field.getFieldName(), field);
9543
        }
9544
      }
9545
 
9546
      /**
9547
       * Find the _Fields constant that matches fieldId, or null if its not found.
9548
       */
9549
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9550
        switch(fieldId) {
9551
          case 1: // TRANSACTION_ID
9552
            return TRANSACTION_ID;
9553
          default:
9554
            return null;
9555
        }
1382 varun.gupt 9556
      }
9557
 
9558
      /**
9559
       * Find the _Fields constant that matches fieldId, throwing an exception
9560
       * if it is not found.
9561
       */
9562
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9563
        _Fields fields = findByThriftId(fieldId);
9564
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9565
        return fields;
9566
      }
9567
 
9568
      /**
9569
       * Find the _Fields constant that matches name, or null if its not found.
9570
       */
9571
      public static _Fields findByName(String name) {
9572
        return byName.get(name);
9573
      }
9574
 
9575
      private final short _thriftId;
9576
      private final String _fieldName;
9577
 
9578
      _Fields(short thriftId, String fieldName) {
9579
        _thriftId = thriftId;
9580
        _fieldName = fieldName;
9581
      }
9582
 
9583
      public short getThriftFieldId() {
9584
        return _thriftId;
9585
      }
9586
 
9587
      public String getFieldName() {
9588
        return _fieldName;
9589
      }
9590
    }
9591
 
9592
    // isset id assignments
9593
    private static final int __TRANSACTIONID_ISSET_ID = 0;
9594
    private BitSet __isset_bit_vector = new BitSet(1);
9595
 
3430 rajveer 9596
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 9597
    static {
3430 rajveer 9598
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9599
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9600
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9601
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9602
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enqueueTransactionInfoEmail_args.class, metaDataMap);
1382 varun.gupt 9603
    }
9604
 
1398 varun.gupt 9605
    public enqueueTransactionInfoEmail_args() {
1382 varun.gupt 9606
    }
9607
 
1398 varun.gupt 9608
    public enqueueTransactionInfoEmail_args(
1382 varun.gupt 9609
      long transactionId)
9610
    {
9611
      this();
9612
      this.transactionId = transactionId;
9613
      setTransactionIdIsSet(true);
9614
    }
9615
 
9616
    /**
9617
     * Performs a deep copy on <i>other</i>.
9618
     */
1398 varun.gupt 9619
    public enqueueTransactionInfoEmail_args(enqueueTransactionInfoEmail_args other) {
1382 varun.gupt 9620
      __isset_bit_vector.clear();
9621
      __isset_bit_vector.or(other.__isset_bit_vector);
9622
      this.transactionId = other.transactionId;
9623
    }
9624
 
1398 varun.gupt 9625
    public enqueueTransactionInfoEmail_args deepCopy() {
9626
      return new enqueueTransactionInfoEmail_args(this);
1382 varun.gupt 9627
    }
9628
 
3430 rajveer 9629
    @Override
9630
    public void clear() {
9631
      setTransactionIdIsSet(false);
9632
      this.transactionId = 0;
1382 varun.gupt 9633
    }
9634
 
9635
    public long getTransactionId() {
9636
      return this.transactionId;
9637
    }
9638
 
3430 rajveer 9639
    public void setTransactionId(long transactionId) {
1382 varun.gupt 9640
      this.transactionId = transactionId;
9641
      setTransactionIdIsSet(true);
9642
    }
9643
 
9644
    public void unsetTransactionId() {
9645
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
9646
    }
9647
 
3430 rajveer 9648
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
1382 varun.gupt 9649
    public boolean isSetTransactionId() {
9650
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
9651
    }
9652
 
9653
    public void setTransactionIdIsSet(boolean value) {
9654
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
9655
    }
9656
 
9657
    public void setFieldValue(_Fields field, Object value) {
9658
      switch (field) {
9659
      case TRANSACTION_ID:
9660
        if (value == null) {
9661
          unsetTransactionId();
9662
        } else {
9663
          setTransactionId((Long)value);
9664
        }
9665
        break;
9666
 
9667
      }
9668
    }
9669
 
9670
    public Object getFieldValue(_Fields field) {
9671
      switch (field) {
9672
      case TRANSACTION_ID:
3430 rajveer 9673
        return Long.valueOf(getTransactionId());
1382 varun.gupt 9674
 
9675
      }
9676
      throw new IllegalStateException();
9677
    }
9678
 
3430 rajveer 9679
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9680
    public boolean isSet(_Fields field) {
9681
      if (field == null) {
9682
        throw new IllegalArgumentException();
9683
      }
1382 varun.gupt 9684
 
9685
      switch (field) {
9686
      case TRANSACTION_ID:
9687
        return isSetTransactionId();
9688
      }
9689
      throw new IllegalStateException();
9690
    }
9691
 
9692
    @Override
9693
    public boolean equals(Object that) {
9694
      if (that == null)
9695
        return false;
1398 varun.gupt 9696
      if (that instanceof enqueueTransactionInfoEmail_args)
9697
        return this.equals((enqueueTransactionInfoEmail_args)that);
1382 varun.gupt 9698
      return false;
9699
    }
9700
 
1398 varun.gupt 9701
    public boolean equals(enqueueTransactionInfoEmail_args that) {
1382 varun.gupt 9702
      if (that == null)
9703
        return false;
9704
 
9705
      boolean this_present_transactionId = true;
9706
      boolean that_present_transactionId = true;
9707
      if (this_present_transactionId || that_present_transactionId) {
9708
        if (!(this_present_transactionId && that_present_transactionId))
9709
          return false;
9710
        if (this.transactionId != that.transactionId)
9711
          return false;
9712
      }
9713
 
9714
      return true;
9715
    }
9716
 
9717
    @Override
9718
    public int hashCode() {
9719
      return 0;
9720
    }
9721
 
1398 varun.gupt 9722
    public int compareTo(enqueueTransactionInfoEmail_args other) {
1382 varun.gupt 9723
      if (!getClass().equals(other.getClass())) {
9724
        return getClass().getName().compareTo(other.getClass().getName());
9725
      }
9726
 
9727
      int lastComparison = 0;
1398 varun.gupt 9728
      enqueueTransactionInfoEmail_args typedOther = (enqueueTransactionInfoEmail_args)other;
1382 varun.gupt 9729
 
3430 rajveer 9730
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
1382 varun.gupt 9731
      if (lastComparison != 0) {
9732
        return lastComparison;
9733
      }
3430 rajveer 9734
      if (isSetTransactionId()) {
9735
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
9736
        if (lastComparison != 0) {
9737
          return lastComparison;
9738
        }
1382 varun.gupt 9739
      }
9740
      return 0;
9741
    }
9742
 
3430 rajveer 9743
    public _Fields fieldForId(int fieldId) {
9744
      return _Fields.findByThriftId(fieldId);
9745
    }
9746
 
9747
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9748
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 9749
      iprot.readStructBegin();
9750
      while (true)
9751
      {
9752
        field = iprot.readFieldBegin();
3430 rajveer 9753
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 9754
          break;
9755
        }
3430 rajveer 9756
        switch (field.id) {
9757
          case 1: // TRANSACTION_ID
9758
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9759
              this.transactionId = iprot.readI64();
9760
              setTransactionIdIsSet(true);
9761
            } else { 
9762
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9763
            }
9764
            break;
9765
          default:
9766
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 9767
        }
3430 rajveer 9768
        iprot.readFieldEnd();
1382 varun.gupt 9769
      }
9770
      iprot.readStructEnd();
9771
      validate();
9772
    }
9773
 
3430 rajveer 9774
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 9775
      validate();
9776
 
9777
      oprot.writeStructBegin(STRUCT_DESC);
9778
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
9779
      oprot.writeI64(this.transactionId);
9780
      oprot.writeFieldEnd();
9781
      oprot.writeFieldStop();
9782
      oprot.writeStructEnd();
9783
    }
9784
 
9785
    @Override
9786
    public String toString() {
1398 varun.gupt 9787
      StringBuilder sb = new StringBuilder("enqueueTransactionInfoEmail_args(");
1382 varun.gupt 9788
      boolean first = true;
9789
 
9790
      sb.append("transactionId:");
9791
      sb.append(this.transactionId);
9792
      first = false;
9793
      sb.append(")");
9794
      return sb.toString();
9795
    }
9796
 
3430 rajveer 9797
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 9798
      // check for required fields
9799
    }
9800
 
3430 rajveer 9801
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9802
      try {
9803
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9804
      } catch (org.apache.thrift.TException te) {
9805
        throw new java.io.IOException(te);
9806
      }
9807
    }
9808
 
9809
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9810
      try {
9811
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9812
        __isset_bit_vector = new BitSet(1);
9813
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9814
      } catch (org.apache.thrift.TException te) {
9815
        throw new java.io.IOException(te);
9816
      }
9817
    }
9818
 
1382 varun.gupt 9819
  }
9820
 
3430 rajveer 9821
  public static class enqueueTransactionInfoEmail_result implements org.apache.thrift.TBase<enqueueTransactionInfoEmail_result, enqueueTransactionInfoEmail_result._Fields>, java.io.Serializable, Cloneable   {
9822
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enqueueTransactionInfoEmail_result");
1382 varun.gupt 9823
 
3430 rajveer 9824
    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);
9825
    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 9826
 
3430 rajveer 9827
    private boolean success; // required
9828
    private TransactionServiceException ex; // required
1382 varun.gupt 9829
 
9830
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9831
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 9832
      SUCCESS((short)0, "success"),
9833
      EX((short)1, "ex");
9834
 
9835
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9836
 
9837
      static {
9838
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9839
          byName.put(field.getFieldName(), field);
9840
        }
9841
      }
9842
 
9843
      /**
9844
       * Find the _Fields constant that matches fieldId, or null if its not found.
9845
       */
9846
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9847
        switch(fieldId) {
9848
          case 0: // SUCCESS
9849
            return SUCCESS;
9850
          case 1: // EX
9851
            return EX;
9852
          default:
9853
            return null;
9854
        }
1382 varun.gupt 9855
      }
9856
 
9857
      /**
9858
       * Find the _Fields constant that matches fieldId, throwing an exception
9859
       * if it is not found.
9860
       */
9861
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9862
        _Fields fields = findByThriftId(fieldId);
9863
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9864
        return fields;
9865
      }
9866
 
9867
      /**
9868
       * Find the _Fields constant that matches name, or null if its not found.
9869
       */
9870
      public static _Fields findByName(String name) {
9871
        return byName.get(name);
9872
      }
9873
 
9874
      private final short _thriftId;
9875
      private final String _fieldName;
9876
 
9877
      _Fields(short thriftId, String fieldName) {
9878
        _thriftId = thriftId;
9879
        _fieldName = fieldName;
9880
      }
9881
 
9882
      public short getThriftFieldId() {
9883
        return _thriftId;
9884
      }
9885
 
9886
      public String getFieldName() {
9887
        return _fieldName;
9888
      }
9889
    }
9890
 
9891
    // isset id assignments
9892
    private static final int __SUCCESS_ISSET_ID = 0;
9893
    private BitSet __isset_bit_vector = new BitSet(1);
9894
 
3430 rajveer 9895
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 9896
    static {
3430 rajveer 9897
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9898
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9899
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9900
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9901
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9902
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9903
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enqueueTransactionInfoEmail_result.class, metaDataMap);
1382 varun.gupt 9904
    }
9905
 
1398 varun.gupt 9906
    public enqueueTransactionInfoEmail_result() {
1382 varun.gupt 9907
    }
9908
 
1398 varun.gupt 9909
    public enqueueTransactionInfoEmail_result(
1382 varun.gupt 9910
      boolean success,
9911
      TransactionServiceException ex)
9912
    {
9913
      this();
9914
      this.success = success;
9915
      setSuccessIsSet(true);
9916
      this.ex = ex;
9917
    }
9918
 
9919
    /**
9920
     * Performs a deep copy on <i>other</i>.
9921
     */
1398 varun.gupt 9922
    public enqueueTransactionInfoEmail_result(enqueueTransactionInfoEmail_result other) {
1382 varun.gupt 9923
      __isset_bit_vector.clear();
9924
      __isset_bit_vector.or(other.__isset_bit_vector);
9925
      this.success = other.success;
9926
      if (other.isSetEx()) {
9927
        this.ex = new TransactionServiceException(other.ex);
9928
      }
9929
    }
9930
 
1398 varun.gupt 9931
    public enqueueTransactionInfoEmail_result deepCopy() {
9932
      return new enqueueTransactionInfoEmail_result(this);
1382 varun.gupt 9933
    }
9934
 
3430 rajveer 9935
    @Override
9936
    public void clear() {
9937
      setSuccessIsSet(false);
9938
      this.success = false;
9939
      this.ex = null;
1382 varun.gupt 9940
    }
9941
 
9942
    public boolean isSuccess() {
9943
      return this.success;
9944
    }
9945
 
3430 rajveer 9946
    public void setSuccess(boolean success) {
1382 varun.gupt 9947
      this.success = success;
9948
      setSuccessIsSet(true);
9949
    }
9950
 
9951
    public void unsetSuccess() {
9952
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9953
    }
9954
 
3430 rajveer 9955
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1382 varun.gupt 9956
    public boolean isSetSuccess() {
9957
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9958
    }
9959
 
9960
    public void setSuccessIsSet(boolean value) {
9961
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9962
    }
9963
 
9964
    public TransactionServiceException getEx() {
9965
      return this.ex;
9966
    }
9967
 
3430 rajveer 9968
    public void setEx(TransactionServiceException ex) {
1382 varun.gupt 9969
      this.ex = ex;
9970
    }
9971
 
9972
    public void unsetEx() {
9973
      this.ex = null;
9974
    }
9975
 
3430 rajveer 9976
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1382 varun.gupt 9977
    public boolean isSetEx() {
9978
      return this.ex != null;
9979
    }
9980
 
9981
    public void setExIsSet(boolean value) {
9982
      if (!value) {
9983
        this.ex = null;
9984
      }
9985
    }
9986
 
9987
    public void setFieldValue(_Fields field, Object value) {
9988
      switch (field) {
9989
      case SUCCESS:
9990
        if (value == null) {
9991
          unsetSuccess();
9992
        } else {
9993
          setSuccess((Boolean)value);
9994
        }
9995
        break;
9996
 
9997
      case EX:
9998
        if (value == null) {
9999
          unsetEx();
10000
        } else {
10001
          setEx((TransactionServiceException)value);
10002
        }
10003
        break;
10004
 
10005
      }
10006
    }
10007
 
10008
    public Object getFieldValue(_Fields field) {
10009
      switch (field) {
10010
      case SUCCESS:
3430 rajveer 10011
        return Boolean.valueOf(isSuccess());
1382 varun.gupt 10012
 
10013
      case EX:
10014
        return getEx();
10015
 
10016
      }
10017
      throw new IllegalStateException();
10018
    }
10019
 
3430 rajveer 10020
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10021
    public boolean isSet(_Fields field) {
10022
      if (field == null) {
10023
        throw new IllegalArgumentException();
10024
      }
1382 varun.gupt 10025
 
10026
      switch (field) {
10027
      case SUCCESS:
10028
        return isSetSuccess();
10029
      case EX:
10030
        return isSetEx();
10031
      }
10032
      throw new IllegalStateException();
10033
    }
10034
 
10035
    @Override
10036
    public boolean equals(Object that) {
10037
      if (that == null)
10038
        return false;
1398 varun.gupt 10039
      if (that instanceof enqueueTransactionInfoEmail_result)
10040
        return this.equals((enqueueTransactionInfoEmail_result)that);
1382 varun.gupt 10041
      return false;
10042
    }
10043
 
1398 varun.gupt 10044
    public boolean equals(enqueueTransactionInfoEmail_result that) {
1382 varun.gupt 10045
      if (that == null)
10046
        return false;
10047
 
10048
      boolean this_present_success = true;
10049
      boolean that_present_success = true;
10050
      if (this_present_success || that_present_success) {
10051
        if (!(this_present_success && that_present_success))
10052
          return false;
10053
        if (this.success != that.success)
10054
          return false;
10055
      }
10056
 
10057
      boolean this_present_ex = true && this.isSetEx();
10058
      boolean that_present_ex = true && that.isSetEx();
10059
      if (this_present_ex || that_present_ex) {
10060
        if (!(this_present_ex && that_present_ex))
10061
          return false;
10062
        if (!this.ex.equals(that.ex))
10063
          return false;
10064
      }
10065
 
10066
      return true;
10067
    }
10068
 
10069
    @Override
10070
    public int hashCode() {
10071
      return 0;
10072
    }
10073
 
1398 varun.gupt 10074
    public int compareTo(enqueueTransactionInfoEmail_result other) {
1382 varun.gupt 10075
      if (!getClass().equals(other.getClass())) {
10076
        return getClass().getName().compareTo(other.getClass().getName());
10077
      }
10078
 
10079
      int lastComparison = 0;
1398 varun.gupt 10080
      enqueueTransactionInfoEmail_result typedOther = (enqueueTransactionInfoEmail_result)other;
1382 varun.gupt 10081
 
3430 rajveer 10082
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1382 varun.gupt 10083
      if (lastComparison != 0) {
10084
        return lastComparison;
10085
      }
3430 rajveer 10086
      if (isSetSuccess()) {
10087
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10088
        if (lastComparison != 0) {
10089
          return lastComparison;
10090
        }
1382 varun.gupt 10091
      }
3430 rajveer 10092
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1382 varun.gupt 10093
      if (lastComparison != 0) {
10094
        return lastComparison;
10095
      }
3430 rajveer 10096
      if (isSetEx()) {
10097
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
10098
        if (lastComparison != 0) {
10099
          return lastComparison;
10100
        }
1382 varun.gupt 10101
      }
10102
      return 0;
10103
    }
10104
 
3430 rajveer 10105
    public _Fields fieldForId(int fieldId) {
10106
      return _Fields.findByThriftId(fieldId);
10107
    }
10108
 
10109
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10110
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 10111
      iprot.readStructBegin();
10112
      while (true)
10113
      {
10114
        field = iprot.readFieldBegin();
3430 rajveer 10115
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 10116
          break;
10117
        }
3430 rajveer 10118
        switch (field.id) {
10119
          case 0: // SUCCESS
10120
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10121
              this.success = iprot.readBool();
10122
              setSuccessIsSet(true);
10123
            } else { 
10124
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10125
            }
10126
            break;
10127
          case 1: // EX
10128
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10129
              this.ex = new TransactionServiceException();
10130
              this.ex.read(iprot);
10131
            } else { 
10132
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10133
            }
10134
            break;
10135
          default:
10136
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 10137
        }
3430 rajveer 10138
        iprot.readFieldEnd();
1382 varun.gupt 10139
      }
10140
      iprot.readStructEnd();
10141
      validate();
10142
    }
10143
 
3430 rajveer 10144
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 10145
      oprot.writeStructBegin(STRUCT_DESC);
10146
 
10147
      if (this.isSetSuccess()) {
10148
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10149
        oprot.writeBool(this.success);
10150
        oprot.writeFieldEnd();
10151
      } else if (this.isSetEx()) {
10152
        oprot.writeFieldBegin(EX_FIELD_DESC);
10153
        this.ex.write(oprot);
10154
        oprot.writeFieldEnd();
10155
      }
10156
      oprot.writeFieldStop();
10157
      oprot.writeStructEnd();
10158
    }
10159
 
10160
    @Override
10161
    public String toString() {
1398 varun.gupt 10162
      StringBuilder sb = new StringBuilder("enqueueTransactionInfoEmail_result(");
1382 varun.gupt 10163
      boolean first = true;
10164
 
10165
      sb.append("success:");
10166
      sb.append(this.success);
10167
      first = false;
10168
      if (!first) sb.append(", ");
10169
      sb.append("ex:");
10170
      if (this.ex == null) {
10171
        sb.append("null");
10172
      } else {
10173
        sb.append(this.ex);
10174
      }
10175
      first = false;
10176
      sb.append(")");
10177
      return sb.toString();
10178
    }
10179
 
3430 rajveer 10180
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 10181
      // check for required fields
10182
    }
10183
 
3430 rajveer 10184
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10185
      try {
10186
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10187
      } catch (org.apache.thrift.TException te) {
10188
        throw new java.io.IOException(te);
10189
      }
10190
    }
10191
 
10192
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10193
      try {
10194
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10195
      } catch (org.apache.thrift.TException te) {
10196
        throw new java.io.IOException(te);
10197
      }
10198
    }
10199
 
1382 varun.gupt 10200
  }
10201
 
3430 rajveer 10202
  public static class getAllOrders_args implements org.apache.thrift.TBase<getAllOrders_args, getAllOrders_args._Fields>, java.io.Serializable, Cloneable   {
10203
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrders_args");
68 ashish 10204
 
3430 rajveer 10205
    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);
10206
    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);
10207
    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);
10208
    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 10209
 
3430 rajveer 10210
    private OrderStatus status; // required
10211
    private long from_date; // required
10212
    private long to_date; // required
10213
    private long warehouse_id; // required
68 ashish 10214
 
10215
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10216
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
483 rajveer 10217
      /**
10218
       * 
10219
       * @see OrderStatus
10220
       */
10221
      STATUS((short)1, "status"),
10222
      FROM_DATE((short)2, "from_date"),
10223
      TO_DATE((short)3, "to_date"),
10224
      WAREHOUSE_ID((short)4, "warehouse_id");
68 ashish 10225
 
10226
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10227
 
10228
      static {
10229
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10230
          byName.put(field.getFieldName(), field);
10231
        }
10232
      }
10233
 
10234
      /**
10235
       * Find the _Fields constant that matches fieldId, or null if its not found.
10236
       */
10237
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10238
        switch(fieldId) {
10239
          case 1: // STATUS
10240
            return STATUS;
10241
          case 2: // FROM_DATE
10242
            return FROM_DATE;
10243
          case 3: // TO_DATE
10244
            return TO_DATE;
10245
          case 4: // WAREHOUSE_ID
10246
            return WAREHOUSE_ID;
10247
          default:
10248
            return null;
10249
        }
68 ashish 10250
      }
10251
 
10252
      /**
10253
       * Find the _Fields constant that matches fieldId, throwing an exception
10254
       * if it is not found.
10255
       */
10256
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10257
        _Fields fields = findByThriftId(fieldId);
10258
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10259
        return fields;
10260
      }
10261
 
10262
      /**
10263
       * Find the _Fields constant that matches name, or null if its not found.
10264
       */
10265
      public static _Fields findByName(String name) {
10266
        return byName.get(name);
10267
      }
10268
 
10269
      private final short _thriftId;
10270
      private final String _fieldName;
10271
 
10272
      _Fields(short thriftId, String fieldName) {
10273
        _thriftId = thriftId;
10274
        _fieldName = fieldName;
10275
      }
10276
 
10277
      public short getThriftFieldId() {
10278
        return _thriftId;
10279
      }
10280
 
10281
      public String getFieldName() {
10282
        return _fieldName;
10283
      }
10284
    }
10285
 
10286
    // isset id assignments
483 rajveer 10287
    private static final int __FROM_DATE_ISSET_ID = 0;
10288
    private static final int __TO_DATE_ISSET_ID = 1;
10289
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
10290
    private BitSet __isset_bit_vector = new BitSet(3);
68 ashish 10291
 
3430 rajveer 10292
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 10293
    static {
3430 rajveer 10294
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10295
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10296
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
10297
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("from_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10298
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10299
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("to_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10300
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10301
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10302
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10303
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10304
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrders_args.class, metaDataMap);
68 ashish 10305
    }
10306
 
483 rajveer 10307
    public getAllOrders_args() {
68 ashish 10308
    }
10309
 
483 rajveer 10310
    public getAllOrders_args(
10311
      OrderStatus status,
10312
      long from_date,
10313
      long to_date,
10314
      long warehouse_id)
68 ashish 10315
    {
10316
      this();
483 rajveer 10317
      this.status = status;
10318
      this.from_date = from_date;
10319
      setFrom_dateIsSet(true);
10320
      this.to_date = to_date;
10321
      setTo_dateIsSet(true);
10322
      this.warehouse_id = warehouse_id;
10323
      setWarehouse_idIsSet(true);
68 ashish 10324
    }
10325
 
10326
    /**
10327
     * Performs a deep copy on <i>other</i>.
10328
     */
483 rajveer 10329
    public getAllOrders_args(getAllOrders_args other) {
68 ashish 10330
      __isset_bit_vector.clear();
10331
      __isset_bit_vector.or(other.__isset_bit_vector);
483 rajveer 10332
      if (other.isSetStatus()) {
10333
        this.status = other.status;
10334
      }
10335
      this.from_date = other.from_date;
10336
      this.to_date = other.to_date;
10337
      this.warehouse_id = other.warehouse_id;
68 ashish 10338
    }
10339
 
483 rajveer 10340
    public getAllOrders_args deepCopy() {
10341
      return new getAllOrders_args(this);
68 ashish 10342
    }
10343
 
3430 rajveer 10344
    @Override
10345
    public void clear() {
10346
      this.status = null;
10347
      setFrom_dateIsSet(false);
10348
      this.from_date = 0;
10349
      setTo_dateIsSet(false);
10350
      this.to_date = 0;
10351
      setWarehouse_idIsSet(false);
10352
      this.warehouse_id = 0;
68 ashish 10353
    }
10354
 
483 rajveer 10355
    /**
10356
     * 
10357
     * @see OrderStatus
10358
     */
10359
    public OrderStatus getStatus() {
10360
      return this.status;
68 ashish 10361
    }
10362
 
483 rajveer 10363
    /**
10364
     * 
10365
     * @see OrderStatus
10366
     */
3430 rajveer 10367
    public void setStatus(OrderStatus status) {
483 rajveer 10368
      this.status = status;
68 ashish 10369
    }
10370
 
483 rajveer 10371
    public void unsetStatus() {
10372
      this.status = null;
68 ashish 10373
    }
10374
 
3430 rajveer 10375
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
483 rajveer 10376
    public boolean isSetStatus() {
10377
      return this.status != null;
68 ashish 10378
    }
10379
 
483 rajveer 10380
    public void setStatusIsSet(boolean value) {
10381
      if (!value) {
10382
        this.status = null;
68 ashish 10383
      }
10384
    }
10385
 
483 rajveer 10386
    public long getFrom_date() {
10387
      return this.from_date;
68 ashish 10388
    }
10389
 
3430 rajveer 10390
    public void setFrom_date(long from_date) {
483 rajveer 10391
      this.from_date = from_date;
10392
      setFrom_dateIsSet(true);
68 ashish 10393
    }
10394
 
483 rajveer 10395
    public void unsetFrom_date() {
10396
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
68 ashish 10397
    }
10398
 
3430 rajveer 10399
    /** Returns true if field from_date is set (has been assigned a value) and false otherwise */
483 rajveer 10400
    public boolean isSetFrom_date() {
10401
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
68 ashish 10402
    }
10403
 
483 rajveer 10404
    public void setFrom_dateIsSet(boolean value) {
10405
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
68 ashish 10406
    }
10407
 
483 rajveer 10408
    public long getTo_date() {
10409
      return this.to_date;
68 ashish 10410
    }
10411
 
3430 rajveer 10412
    public void setTo_date(long to_date) {
483 rajveer 10413
      this.to_date = to_date;
10414
      setTo_dateIsSet(true);
68 ashish 10415
    }
10416
 
483 rajveer 10417
    public void unsetTo_date() {
10418
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
68 ashish 10419
    }
10420
 
3430 rajveer 10421
    /** Returns true if field to_date is set (has been assigned a value) and false otherwise */
483 rajveer 10422
    public boolean isSetTo_date() {
10423
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
68 ashish 10424
    }
10425
 
483 rajveer 10426
    public void setTo_dateIsSet(boolean value) {
10427
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
68 ashish 10428
    }
10429
 
483 rajveer 10430
    public long getWarehouse_id() {
10431
      return this.warehouse_id;
68 ashish 10432
    }
10433
 
3430 rajveer 10434
    public void setWarehouse_id(long warehouse_id) {
483 rajveer 10435
      this.warehouse_id = warehouse_id;
10436
      setWarehouse_idIsSet(true);
68 ashish 10437
    }
10438
 
483 rajveer 10439
    public void unsetWarehouse_id() {
10440
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
68 ashish 10441
    }
10442
 
3430 rajveer 10443
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
483 rajveer 10444
    public boolean isSetWarehouse_id() {
10445
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
68 ashish 10446
    }
10447
 
483 rajveer 10448
    public void setWarehouse_idIsSet(boolean value) {
10449
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
68 ashish 10450
    }
10451
 
10452
    public void setFieldValue(_Fields field, Object value) {
10453
      switch (field) {
483 rajveer 10454
      case STATUS:
68 ashish 10455
        if (value == null) {
483 rajveer 10456
          unsetStatus();
68 ashish 10457
        } else {
483 rajveer 10458
          setStatus((OrderStatus)value);
68 ashish 10459
        }
10460
        break;
10461
 
483 rajveer 10462
      case FROM_DATE:
68 ashish 10463
        if (value == null) {
483 rajveer 10464
          unsetFrom_date();
68 ashish 10465
        } else {
483 rajveer 10466
          setFrom_date((Long)value);
68 ashish 10467
        }
10468
        break;
10469
 
483 rajveer 10470
      case TO_DATE:
10471
        if (value == null) {
10472
          unsetTo_date();
10473
        } else {
10474
          setTo_date((Long)value);
10475
        }
10476
        break;
10477
 
10478
      case WAREHOUSE_ID:
10479
        if (value == null) {
10480
          unsetWarehouse_id();
10481
        } else {
10482
          setWarehouse_id((Long)value);
10483
        }
10484
        break;
10485
 
68 ashish 10486
      }
10487
    }
10488
 
10489
    public Object getFieldValue(_Fields field) {
10490
      switch (field) {
483 rajveer 10491
      case STATUS:
10492
        return getStatus();
68 ashish 10493
 
483 rajveer 10494
      case FROM_DATE:
3430 rajveer 10495
        return Long.valueOf(getFrom_date());
68 ashish 10496
 
483 rajveer 10497
      case TO_DATE:
3430 rajveer 10498
        return Long.valueOf(getTo_date());
483 rajveer 10499
 
10500
      case WAREHOUSE_ID:
3430 rajveer 10501
        return Long.valueOf(getWarehouse_id());
483 rajveer 10502
 
68 ashish 10503
      }
10504
      throw new IllegalStateException();
10505
    }
10506
 
3430 rajveer 10507
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10508
    public boolean isSet(_Fields field) {
10509
      if (field == null) {
10510
        throw new IllegalArgumentException();
10511
      }
68 ashish 10512
 
10513
      switch (field) {
483 rajveer 10514
      case STATUS:
10515
        return isSetStatus();
10516
      case FROM_DATE:
10517
        return isSetFrom_date();
10518
      case TO_DATE:
10519
        return isSetTo_date();
10520
      case WAREHOUSE_ID:
10521
        return isSetWarehouse_id();
68 ashish 10522
      }
10523
      throw new IllegalStateException();
10524
    }
10525
 
10526
    @Override
10527
    public boolean equals(Object that) {
10528
      if (that == null)
10529
        return false;
483 rajveer 10530
      if (that instanceof getAllOrders_args)
10531
        return this.equals((getAllOrders_args)that);
68 ashish 10532
      return false;
10533
    }
10534
 
483 rajveer 10535
    public boolean equals(getAllOrders_args that) {
68 ashish 10536
      if (that == null)
10537
        return false;
10538
 
483 rajveer 10539
      boolean this_present_status = true && this.isSetStatus();
10540
      boolean that_present_status = true && that.isSetStatus();
10541
      if (this_present_status || that_present_status) {
10542
        if (!(this_present_status && that_present_status))
68 ashish 10543
          return false;
483 rajveer 10544
        if (!this.status.equals(that.status))
68 ashish 10545
          return false;
10546
      }
10547
 
483 rajveer 10548
      boolean this_present_from_date = true;
10549
      boolean that_present_from_date = true;
10550
      if (this_present_from_date || that_present_from_date) {
10551
        if (!(this_present_from_date && that_present_from_date))
68 ashish 10552
          return false;
483 rajveer 10553
        if (this.from_date != that.from_date)
68 ashish 10554
          return false;
10555
      }
10556
 
483 rajveer 10557
      boolean this_present_to_date = true;
10558
      boolean that_present_to_date = true;
10559
      if (this_present_to_date || that_present_to_date) {
10560
        if (!(this_present_to_date && that_present_to_date))
10561
          return false;
10562
        if (this.to_date != that.to_date)
10563
          return false;
68 ashish 10564
      }
10565
 
483 rajveer 10566
      boolean this_present_warehouse_id = true;
10567
      boolean that_present_warehouse_id = true;
10568
      if (this_present_warehouse_id || that_present_warehouse_id) {
10569
        if (!(this_present_warehouse_id && that_present_warehouse_id))
68 ashish 10570
          return false;
483 rajveer 10571
        if (this.warehouse_id != that.warehouse_id)
68 ashish 10572
          return false;
10573
      }
10574
 
10575
      return true;
10576
    }
10577
 
10578
    @Override
10579
    public int hashCode() {
10580
      return 0;
10581
    }
10582
 
483 rajveer 10583
    public int compareTo(getAllOrders_args other) {
68 ashish 10584
      if (!getClass().equals(other.getClass())) {
10585
        return getClass().getName().compareTo(other.getClass().getName());
10586
      }
10587
 
10588
      int lastComparison = 0;
483 rajveer 10589
      getAllOrders_args typedOther = (getAllOrders_args)other;
68 ashish 10590
 
3430 rajveer 10591
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
68 ashish 10592
      if (lastComparison != 0) {
10593
        return lastComparison;
10594
      }
3430 rajveer 10595
      if (isSetStatus()) {
10596
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
10597
        if (lastComparison != 0) {
10598
          return lastComparison;
10599
        }
68 ashish 10600
      }
3430 rajveer 10601
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(typedOther.isSetFrom_date());
483 rajveer 10602
      if (lastComparison != 0) {
10603
        return lastComparison;
10604
      }
3430 rajveer 10605
      if (isSetFrom_date()) {
10606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_date, typedOther.from_date);
10607
        if (lastComparison != 0) {
10608
          return lastComparison;
10609
        }
483 rajveer 10610
      }
3430 rajveer 10611
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(typedOther.isSetTo_date());
483 rajveer 10612
      if (lastComparison != 0) {
10613
        return lastComparison;
10614
      }
3430 rajveer 10615
      if (isSetTo_date()) {
10616
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_date, typedOther.to_date);
10617
        if (lastComparison != 0) {
10618
          return lastComparison;
10619
        }
483 rajveer 10620
      }
3430 rajveer 10621
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
483 rajveer 10622
      if (lastComparison != 0) {
10623
        return lastComparison;
10624
      }
3430 rajveer 10625
      if (isSetWarehouse_id()) {
10626
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
10627
        if (lastComparison != 0) {
10628
          return lastComparison;
10629
        }
483 rajveer 10630
      }
68 ashish 10631
      return 0;
10632
    }
10633
 
3430 rajveer 10634
    public _Fields fieldForId(int fieldId) {
10635
      return _Fields.findByThriftId(fieldId);
10636
    }
10637
 
10638
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10639
      org.apache.thrift.protocol.TField field;
68 ashish 10640
      iprot.readStructBegin();
10641
      while (true)
10642
      {
10643
        field = iprot.readFieldBegin();
3430 rajveer 10644
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 10645
          break;
10646
        }
3430 rajveer 10647
        switch (field.id) {
10648
          case 1: // STATUS
10649
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10650
              this.status = OrderStatus.findByValue(iprot.readI32());
10651
            } else { 
10652
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10653
            }
10654
            break;
10655
          case 2: // FROM_DATE
10656
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10657
              this.from_date = iprot.readI64();
10658
              setFrom_dateIsSet(true);
10659
            } else { 
10660
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10661
            }
10662
            break;
10663
          case 3: // TO_DATE
10664
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10665
              this.to_date = iprot.readI64();
10666
              setTo_dateIsSet(true);
10667
            } else { 
10668
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10669
            }
10670
            break;
10671
          case 4: // WAREHOUSE_ID
10672
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10673
              this.warehouse_id = iprot.readI64();
10674
              setWarehouse_idIsSet(true);
10675
            } else { 
10676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10677
            }
10678
            break;
10679
          default:
10680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 10681
        }
3430 rajveer 10682
        iprot.readFieldEnd();
68 ashish 10683
      }
10684
      iprot.readStructEnd();
10685
      validate();
10686
    }
10687
 
3430 rajveer 10688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 10689
      validate();
10690
 
10691
      oprot.writeStructBegin(STRUCT_DESC);
483 rajveer 10692
      if (this.status != null) {
10693
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
10694
        oprot.writeI32(this.status.getValue());
10695
        oprot.writeFieldEnd();
10696
      }
10697
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
10698
      oprot.writeI64(this.from_date);
68 ashish 10699
      oprot.writeFieldEnd();
483 rajveer 10700
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
10701
      oprot.writeI64(this.to_date);
10702
      oprot.writeFieldEnd();
10703
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
10704
      oprot.writeI64(this.warehouse_id);
10705
      oprot.writeFieldEnd();
68 ashish 10706
      oprot.writeFieldStop();
10707
      oprot.writeStructEnd();
10708
    }
10709
 
10710
    @Override
10711
    public String toString() {
483 rajveer 10712
      StringBuilder sb = new StringBuilder("getAllOrders_args(");
68 ashish 10713
      boolean first = true;
10714
 
483 rajveer 10715
      sb.append("status:");
10716
      if (this.status == null) {
10717
        sb.append("null");
10718
      } else {
10719
        sb.append(this.status);
10720
      }
68 ashish 10721
      first = false;
483 rajveer 10722
      if (!first) sb.append(", ");
10723
      sb.append("from_date:");
10724
      sb.append(this.from_date);
10725
      first = false;
10726
      if (!first) sb.append(", ");
10727
      sb.append("to_date:");
10728
      sb.append(this.to_date);
10729
      first = false;
10730
      if (!first) sb.append(", ");
10731
      sb.append("warehouse_id:");
10732
      sb.append(this.warehouse_id);
10733
      first = false;
68 ashish 10734
      sb.append(")");
10735
      return sb.toString();
10736
    }
10737
 
3430 rajveer 10738
    public void validate() throws org.apache.thrift.TException {
68 ashish 10739
      // check for required fields
10740
    }
10741
 
3430 rajveer 10742
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10743
      try {
10744
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10745
      } catch (org.apache.thrift.TException te) {
10746
        throw new java.io.IOException(te);
10747
      }
10748
    }
10749
 
10750
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10751
      try {
10752
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10753
        __isset_bit_vector = new BitSet(1);
10754
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10755
      } catch (org.apache.thrift.TException te) {
10756
        throw new java.io.IOException(te);
10757
      }
10758
    }
10759
 
68 ashish 10760
  }
10761
 
3430 rajveer 10762
  public static class getAllOrders_result implements org.apache.thrift.TBase<getAllOrders_result, getAllOrders_result._Fields>, java.io.Serializable, Cloneable   {
10763
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrders_result");
68 ashish 10764
 
3430 rajveer 10765
    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);
10766
    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 10767
 
3430 rajveer 10768
    private List<Order> success; // required
10769
    private TransactionServiceException ex; // required
68 ashish 10770
 
10771
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10772
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 10773
      SUCCESS((short)0, "success"),
10774
      EX((short)1, "ex");
10775
 
10776
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10777
 
10778
      static {
10779
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10780
          byName.put(field.getFieldName(), field);
10781
        }
10782
      }
10783
 
10784
      /**
10785
       * Find the _Fields constant that matches fieldId, or null if its not found.
10786
       */
10787
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10788
        switch(fieldId) {
10789
          case 0: // SUCCESS
10790
            return SUCCESS;
10791
          case 1: // EX
10792
            return EX;
10793
          default:
10794
            return null;
10795
        }
68 ashish 10796
      }
10797
 
10798
      /**
10799
       * Find the _Fields constant that matches fieldId, throwing an exception
10800
       * if it is not found.
10801
       */
10802
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10803
        _Fields fields = findByThriftId(fieldId);
10804
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10805
        return fields;
10806
      }
10807
 
10808
      /**
10809
       * Find the _Fields constant that matches name, or null if its not found.
10810
       */
10811
      public static _Fields findByName(String name) {
10812
        return byName.get(name);
10813
      }
10814
 
10815
      private final short _thriftId;
10816
      private final String _fieldName;
10817
 
10818
      _Fields(short thriftId, String fieldName) {
10819
        _thriftId = thriftId;
10820
        _fieldName = fieldName;
10821
      }
10822
 
10823
      public short getThriftFieldId() {
10824
        return _thriftId;
10825
      }
10826
 
10827
      public String getFieldName() {
10828
        return _fieldName;
10829
      }
10830
    }
10831
 
10832
    // isset id assignments
10833
 
3430 rajveer 10834
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 10835
    static {
3430 rajveer 10836
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10837
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10838
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10839
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
10840
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10841
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10842
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10843
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrders_result.class, metaDataMap);
68 ashish 10844
    }
10845
 
483 rajveer 10846
    public getAllOrders_result() {
68 ashish 10847
    }
10848
 
483 rajveer 10849
    public getAllOrders_result(
10850
      List<Order> success,
68 ashish 10851
      TransactionServiceException ex)
10852
    {
10853
      this();
10854
      this.success = success;
10855
      this.ex = ex;
10856
    }
10857
 
10858
    /**
10859
     * Performs a deep copy on <i>other</i>.
10860
     */
483 rajveer 10861
    public getAllOrders_result(getAllOrders_result other) {
68 ashish 10862
      if (other.isSetSuccess()) {
483 rajveer 10863
        List<Order> __this__success = new ArrayList<Order>();
10864
        for (Order other_element : other.success) {
10865
          __this__success.add(new Order(other_element));
10866
        }
10867
        this.success = __this__success;
68 ashish 10868
      }
10869
      if (other.isSetEx()) {
10870
        this.ex = new TransactionServiceException(other.ex);
10871
      }
10872
    }
10873
 
483 rajveer 10874
    public getAllOrders_result deepCopy() {
10875
      return new getAllOrders_result(this);
68 ashish 10876
    }
10877
 
3430 rajveer 10878
    @Override
10879
    public void clear() {
10880
      this.success = null;
10881
      this.ex = null;
68 ashish 10882
    }
10883
 
483 rajveer 10884
    public int getSuccessSize() {
10885
      return (this.success == null) ? 0 : this.success.size();
10886
    }
10887
 
10888
    public java.util.Iterator<Order> getSuccessIterator() {
10889
      return (this.success == null) ? null : this.success.iterator();
10890
    }
10891
 
10892
    public void addToSuccess(Order elem) {
10893
      if (this.success == null) {
10894
        this.success = new ArrayList<Order>();
10895
      }
10896
      this.success.add(elem);
10897
    }
10898
 
10899
    public List<Order> getSuccess() {
68 ashish 10900
      return this.success;
10901
    }
10902
 
3430 rajveer 10903
    public void setSuccess(List<Order> success) {
68 ashish 10904
      this.success = success;
10905
    }
10906
 
10907
    public void unsetSuccess() {
10908
      this.success = null;
10909
    }
10910
 
3430 rajveer 10911
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 10912
    public boolean isSetSuccess() {
10913
      return this.success != null;
10914
    }
10915
 
10916
    public void setSuccessIsSet(boolean value) {
10917
      if (!value) {
10918
        this.success = null;
10919
      }
10920
    }
10921
 
10922
    public TransactionServiceException getEx() {
10923
      return this.ex;
10924
    }
10925
 
3430 rajveer 10926
    public void setEx(TransactionServiceException ex) {
68 ashish 10927
      this.ex = ex;
10928
    }
10929
 
10930
    public void unsetEx() {
10931
      this.ex = null;
10932
    }
10933
 
3430 rajveer 10934
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 10935
    public boolean isSetEx() {
10936
      return this.ex != null;
10937
    }
10938
 
10939
    public void setExIsSet(boolean value) {
10940
      if (!value) {
10941
        this.ex = null;
10942
      }
10943
    }
10944
 
10945
    public void setFieldValue(_Fields field, Object value) {
10946
      switch (field) {
10947
      case SUCCESS:
10948
        if (value == null) {
10949
          unsetSuccess();
10950
        } else {
483 rajveer 10951
          setSuccess((List<Order>)value);
68 ashish 10952
        }
10953
        break;
10954
 
10955
      case EX:
10956
        if (value == null) {
10957
          unsetEx();
10958
        } else {
10959
          setEx((TransactionServiceException)value);
10960
        }
10961
        break;
10962
 
10963
      }
10964
    }
10965
 
10966
    public Object getFieldValue(_Fields field) {
10967
      switch (field) {
10968
      case SUCCESS:
10969
        return getSuccess();
10970
 
10971
      case EX:
10972
        return getEx();
10973
 
10974
      }
10975
      throw new IllegalStateException();
10976
    }
10977
 
3430 rajveer 10978
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10979
    public boolean isSet(_Fields field) {
10980
      if (field == null) {
10981
        throw new IllegalArgumentException();
10982
      }
68 ashish 10983
 
10984
      switch (field) {
10985
      case SUCCESS:
10986
        return isSetSuccess();
10987
      case EX:
10988
        return isSetEx();
10989
      }
10990
      throw new IllegalStateException();
10991
    }
10992
 
10993
    @Override
10994
    public boolean equals(Object that) {
10995
      if (that == null)
10996
        return false;
483 rajveer 10997
      if (that instanceof getAllOrders_result)
10998
        return this.equals((getAllOrders_result)that);
68 ashish 10999
      return false;
11000
    }
11001
 
483 rajveer 11002
    public boolean equals(getAllOrders_result that) {
68 ashish 11003
      if (that == null)
11004
        return false;
11005
 
11006
      boolean this_present_success = true && this.isSetSuccess();
11007
      boolean that_present_success = true && that.isSetSuccess();
11008
      if (this_present_success || that_present_success) {
11009
        if (!(this_present_success && that_present_success))
11010
          return false;
11011
        if (!this.success.equals(that.success))
11012
          return false;
11013
      }
11014
 
11015
      boolean this_present_ex = true && this.isSetEx();
11016
      boolean that_present_ex = true && that.isSetEx();
11017
      if (this_present_ex || that_present_ex) {
11018
        if (!(this_present_ex && that_present_ex))
11019
          return false;
11020
        if (!this.ex.equals(that.ex))
11021
          return false;
11022
      }
11023
 
11024
      return true;
11025
    }
11026
 
11027
    @Override
11028
    public int hashCode() {
11029
      return 0;
11030
    }
11031
 
483 rajveer 11032
    public int compareTo(getAllOrders_result other) {
11033
      if (!getClass().equals(other.getClass())) {
11034
        return getClass().getName().compareTo(other.getClass().getName());
11035
      }
11036
 
11037
      int lastComparison = 0;
11038
      getAllOrders_result typedOther = (getAllOrders_result)other;
11039
 
3430 rajveer 11040
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
483 rajveer 11041
      if (lastComparison != 0) {
11042
        return lastComparison;
11043
      }
3430 rajveer 11044
      if (isSetSuccess()) {
11045
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11046
        if (lastComparison != 0) {
11047
          return lastComparison;
11048
        }
483 rajveer 11049
      }
3430 rajveer 11050
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
483 rajveer 11051
      if (lastComparison != 0) {
11052
        return lastComparison;
11053
      }
3430 rajveer 11054
      if (isSetEx()) {
11055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
11056
        if (lastComparison != 0) {
11057
          return lastComparison;
11058
        }
483 rajveer 11059
      }
11060
      return 0;
11061
    }
11062
 
3430 rajveer 11063
    public _Fields fieldForId(int fieldId) {
11064
      return _Fields.findByThriftId(fieldId);
11065
    }
11066
 
11067
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11068
      org.apache.thrift.protocol.TField field;
68 ashish 11069
      iprot.readStructBegin();
11070
      while (true)
11071
      {
11072
        field = iprot.readFieldBegin();
3430 rajveer 11073
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 11074
          break;
11075
        }
3430 rajveer 11076
        switch (field.id) {
11077
          case 0: // SUCCESS
11078
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11079
              {
11080
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
11081
                this.success = new ArrayList<Order>(_list16.size);
11082
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
483 rajveer 11083
                {
3430 rajveer 11084
                  Order _elem18; // required
11085
                  _elem18 = new Order();
11086
                  _elem18.read(iprot);
11087
                  this.success.add(_elem18);
483 rajveer 11088
                }
3430 rajveer 11089
                iprot.readListEnd();
68 ashish 11090
              }
3430 rajveer 11091
            } else { 
11092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11093
            }
11094
            break;
11095
          case 1: // EX
11096
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11097
              this.ex = new TransactionServiceException();
11098
              this.ex.read(iprot);
11099
            } else { 
11100
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11101
            }
11102
            break;
11103
          default:
11104
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 11105
        }
3430 rajveer 11106
        iprot.readFieldEnd();
68 ashish 11107
      }
11108
      iprot.readStructEnd();
11109
      validate();
11110
    }
11111
 
3430 rajveer 11112
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 11113
      oprot.writeStructBegin(STRUCT_DESC);
11114
 
11115
      if (this.isSetSuccess()) {
11116
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
483 rajveer 11117
        {
3430 rajveer 11118
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
684 chandransh 11119
          for (Order _iter19 : this.success)
483 rajveer 11120
          {
684 chandransh 11121
            _iter19.write(oprot);
483 rajveer 11122
          }
11123
          oprot.writeListEnd();
11124
        }
68 ashish 11125
        oprot.writeFieldEnd();
11126
      } else if (this.isSetEx()) {
11127
        oprot.writeFieldBegin(EX_FIELD_DESC);
11128
        this.ex.write(oprot);
11129
        oprot.writeFieldEnd();
11130
      }
11131
      oprot.writeFieldStop();
11132
      oprot.writeStructEnd();
11133
    }
11134
 
11135
    @Override
11136
    public String toString() {
483 rajveer 11137
      StringBuilder sb = new StringBuilder("getAllOrders_result(");
68 ashish 11138
      boolean first = true;
11139
 
11140
      sb.append("success:");
11141
      if (this.success == null) {
11142
        sb.append("null");
11143
      } else {
11144
        sb.append(this.success);
11145
      }
11146
      first = false;
11147
      if (!first) sb.append(", ");
11148
      sb.append("ex:");
11149
      if (this.ex == null) {
11150
        sb.append("null");
11151
      } else {
11152
        sb.append(this.ex);
11153
      }
11154
      first = false;
11155
      sb.append(")");
11156
      return sb.toString();
11157
    }
11158
 
3430 rajveer 11159
    public void validate() throws org.apache.thrift.TException {
68 ashish 11160
      // check for required fields
11161
    }
11162
 
3430 rajveer 11163
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11164
      try {
11165
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11166
      } catch (org.apache.thrift.TException te) {
11167
        throw new java.io.IOException(te);
11168
      }
11169
    }
11170
 
11171
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11172
      try {
11173
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11174
      } catch (org.apache.thrift.TException te) {
11175
        throw new java.io.IOException(te);
11176
      }
11177
    }
11178
 
68 ashish 11179
  }
11180
 
3430 rajveer 11181
  public static class getOrdersByBillingDate_args implements org.apache.thrift.TBase<getOrdersByBillingDate_args, getOrdersByBillingDate_args._Fields>, java.io.Serializable, Cloneable   {
11182
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByBillingDate_args");
1022 varun.gupt 11183
 
3430 rajveer 11184
    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);
11185
    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);
11186
    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);
11187
    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 11188
 
3430 rajveer 11189
    private OrderStatus status; // required
11190
    private long start_billing_date; // required
11191
    private long end_billing_date; // required
11192
    private long warehouse_id; // required
1022 varun.gupt 11193
 
11194
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11195
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1022 varun.gupt 11196
      /**
11197
       * 
11198
       * @see OrderStatus
11199
       */
11200
      STATUS((short)1, "status"),
11201
      START_BILLING_DATE((short)2, "start_billing_date"),
11202
      END_BILLING_DATE((short)3, "end_billing_date"),
11203
      WAREHOUSE_ID((short)4, "warehouse_id");
11204
 
11205
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11206
 
11207
      static {
11208
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11209
          byName.put(field.getFieldName(), field);
11210
        }
11211
      }
11212
 
11213
      /**
11214
       * Find the _Fields constant that matches fieldId, or null if its not found.
11215
       */
11216
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11217
        switch(fieldId) {
11218
          case 1: // STATUS
11219
            return STATUS;
11220
          case 2: // START_BILLING_DATE
11221
            return START_BILLING_DATE;
11222
          case 3: // END_BILLING_DATE
11223
            return END_BILLING_DATE;
11224
          case 4: // WAREHOUSE_ID
11225
            return WAREHOUSE_ID;
11226
          default:
11227
            return null;
11228
        }
1022 varun.gupt 11229
      }
11230
 
11231
      /**
11232
       * Find the _Fields constant that matches fieldId, throwing an exception
11233
       * if it is not found.
11234
       */
11235
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11236
        _Fields fields = findByThriftId(fieldId);
11237
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11238
        return fields;
11239
      }
11240
 
11241
      /**
11242
       * Find the _Fields constant that matches name, or null if its not found.
11243
       */
11244
      public static _Fields findByName(String name) {
11245
        return byName.get(name);
11246
      }
11247
 
11248
      private final short _thriftId;
11249
      private final String _fieldName;
11250
 
11251
      _Fields(short thriftId, String fieldName) {
11252
        _thriftId = thriftId;
11253
        _fieldName = fieldName;
11254
      }
11255
 
11256
      public short getThriftFieldId() {
11257
        return _thriftId;
11258
      }
11259
 
11260
      public String getFieldName() {
11261
        return _fieldName;
11262
      }
11263
    }
11264
 
11265
    // isset id assignments
11266
    private static final int __START_BILLING_DATE_ISSET_ID = 0;
11267
    private static final int __END_BILLING_DATE_ISSET_ID = 1;
11268
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
11269
    private BitSet __isset_bit_vector = new BitSet(3);
11270
 
3430 rajveer 11271
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1022 varun.gupt 11272
    static {
3430 rajveer 11273
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11274
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11275
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
11276
      tmpMap.put(_Fields.START_BILLING_DATE, new org.apache.thrift.meta_data.FieldMetaData("start_billing_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11277
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11278
      tmpMap.put(_Fields.END_BILLING_DATE, new org.apache.thrift.meta_data.FieldMetaData("end_billing_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11279
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11280
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11281
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11282
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11283
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByBillingDate_args.class, metaDataMap);
1022 varun.gupt 11284
    }
11285
 
11286
    public getOrdersByBillingDate_args() {
11287
    }
11288
 
11289
    public getOrdersByBillingDate_args(
11290
      OrderStatus status,
11291
      long start_billing_date,
11292
      long end_billing_date,
11293
      long warehouse_id)
11294
    {
11295
      this();
11296
      this.status = status;
11297
      this.start_billing_date = start_billing_date;
11298
      setStart_billing_dateIsSet(true);
11299
      this.end_billing_date = end_billing_date;
11300
      setEnd_billing_dateIsSet(true);
11301
      this.warehouse_id = warehouse_id;
11302
      setWarehouse_idIsSet(true);
11303
    }
11304
 
11305
    /**
11306
     * Performs a deep copy on <i>other</i>.
11307
     */
11308
    public getOrdersByBillingDate_args(getOrdersByBillingDate_args other) {
11309
      __isset_bit_vector.clear();
11310
      __isset_bit_vector.or(other.__isset_bit_vector);
11311
      if (other.isSetStatus()) {
11312
        this.status = other.status;
11313
      }
11314
      this.start_billing_date = other.start_billing_date;
11315
      this.end_billing_date = other.end_billing_date;
11316
      this.warehouse_id = other.warehouse_id;
11317
    }
11318
 
11319
    public getOrdersByBillingDate_args deepCopy() {
11320
      return new getOrdersByBillingDate_args(this);
11321
    }
11322
 
3430 rajveer 11323
    @Override
11324
    public void clear() {
11325
      this.status = null;
11326
      setStart_billing_dateIsSet(false);
11327
      this.start_billing_date = 0;
11328
      setEnd_billing_dateIsSet(false);
11329
      this.end_billing_date = 0;
11330
      setWarehouse_idIsSet(false);
11331
      this.warehouse_id = 0;
1022 varun.gupt 11332
    }
11333
 
11334
    /**
11335
     * 
11336
     * @see OrderStatus
11337
     */
11338
    public OrderStatus getStatus() {
11339
      return this.status;
11340
    }
11341
 
11342
    /**
11343
     * 
11344
     * @see OrderStatus
11345
     */
3430 rajveer 11346
    public void setStatus(OrderStatus status) {
1022 varun.gupt 11347
      this.status = status;
11348
    }
11349
 
11350
    public void unsetStatus() {
11351
      this.status = null;
11352
    }
11353
 
3430 rajveer 11354
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
1022 varun.gupt 11355
    public boolean isSetStatus() {
11356
      return this.status != null;
11357
    }
11358
 
11359
    public void setStatusIsSet(boolean value) {
11360
      if (!value) {
11361
        this.status = null;
11362
      }
11363
    }
11364
 
11365
    public long getStart_billing_date() {
11366
      return this.start_billing_date;
11367
    }
11368
 
3430 rajveer 11369
    public void setStart_billing_date(long start_billing_date) {
1022 varun.gupt 11370
      this.start_billing_date = start_billing_date;
11371
      setStart_billing_dateIsSet(true);
11372
    }
11373
 
11374
    public void unsetStart_billing_date() {
11375
      __isset_bit_vector.clear(__START_BILLING_DATE_ISSET_ID);
11376
    }
11377
 
3430 rajveer 11378
    /** Returns true if field start_billing_date is set (has been assigned a value) and false otherwise */
1022 varun.gupt 11379
    public boolean isSetStart_billing_date() {
11380
      return __isset_bit_vector.get(__START_BILLING_DATE_ISSET_ID);
11381
    }
11382
 
11383
    public void setStart_billing_dateIsSet(boolean value) {
11384
      __isset_bit_vector.set(__START_BILLING_DATE_ISSET_ID, value);
11385
    }
11386
 
11387
    public long getEnd_billing_date() {
11388
      return this.end_billing_date;
11389
    }
11390
 
3430 rajveer 11391
    public void setEnd_billing_date(long end_billing_date) {
1022 varun.gupt 11392
      this.end_billing_date = end_billing_date;
11393
      setEnd_billing_dateIsSet(true);
11394
    }
11395
 
11396
    public void unsetEnd_billing_date() {
11397
      __isset_bit_vector.clear(__END_BILLING_DATE_ISSET_ID);
11398
    }
11399
 
3430 rajveer 11400
    /** Returns true if field end_billing_date is set (has been assigned a value) and false otherwise */
1022 varun.gupt 11401
    public boolean isSetEnd_billing_date() {
11402
      return __isset_bit_vector.get(__END_BILLING_DATE_ISSET_ID);
11403
    }
11404
 
11405
    public void setEnd_billing_dateIsSet(boolean value) {
11406
      __isset_bit_vector.set(__END_BILLING_DATE_ISSET_ID, value);
11407
    }
11408
 
11409
    public long getWarehouse_id() {
11410
      return this.warehouse_id;
11411
    }
11412
 
3430 rajveer 11413
    public void setWarehouse_id(long warehouse_id) {
1022 varun.gupt 11414
      this.warehouse_id = warehouse_id;
11415
      setWarehouse_idIsSet(true);
11416
    }
11417
 
11418
    public void unsetWarehouse_id() {
11419
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
11420
    }
11421
 
3430 rajveer 11422
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
1022 varun.gupt 11423
    public boolean isSetWarehouse_id() {
11424
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
11425
    }
11426
 
11427
    public void setWarehouse_idIsSet(boolean value) {
11428
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
11429
    }
11430
 
11431
    public void setFieldValue(_Fields field, Object value) {
11432
      switch (field) {
11433
      case STATUS:
11434
        if (value == null) {
11435
          unsetStatus();
11436
        } else {
11437
          setStatus((OrderStatus)value);
11438
        }
11439
        break;
11440
 
11441
      case START_BILLING_DATE:
11442
        if (value == null) {
11443
          unsetStart_billing_date();
11444
        } else {
11445
          setStart_billing_date((Long)value);
11446
        }
11447
        break;
11448
 
11449
      case END_BILLING_DATE:
11450
        if (value == null) {
11451
          unsetEnd_billing_date();
11452
        } else {
11453
          setEnd_billing_date((Long)value);
11454
        }
11455
        break;
11456
 
11457
      case WAREHOUSE_ID:
11458
        if (value == null) {
11459
          unsetWarehouse_id();
11460
        } else {
11461
          setWarehouse_id((Long)value);
11462
        }
11463
        break;
11464
 
11465
      }
11466
    }
11467
 
11468
    public Object getFieldValue(_Fields field) {
11469
      switch (field) {
11470
      case STATUS:
11471
        return getStatus();
11472
 
11473
      case START_BILLING_DATE:
3430 rajveer 11474
        return Long.valueOf(getStart_billing_date());
1022 varun.gupt 11475
 
11476
      case END_BILLING_DATE:
3430 rajveer 11477
        return Long.valueOf(getEnd_billing_date());
1022 varun.gupt 11478
 
11479
      case WAREHOUSE_ID:
3430 rajveer 11480
        return Long.valueOf(getWarehouse_id());
1022 varun.gupt 11481
 
11482
      }
11483
      throw new IllegalStateException();
11484
    }
11485
 
3430 rajveer 11486
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11487
    public boolean isSet(_Fields field) {
11488
      if (field == null) {
11489
        throw new IllegalArgumentException();
11490
      }
1022 varun.gupt 11491
 
11492
      switch (field) {
11493
      case STATUS:
11494
        return isSetStatus();
11495
      case START_BILLING_DATE:
11496
        return isSetStart_billing_date();
11497
      case END_BILLING_DATE:
11498
        return isSetEnd_billing_date();
11499
      case WAREHOUSE_ID:
11500
        return isSetWarehouse_id();
11501
      }
11502
      throw new IllegalStateException();
11503
    }
11504
 
11505
    @Override
11506
    public boolean equals(Object that) {
11507
      if (that == null)
11508
        return false;
11509
      if (that instanceof getOrdersByBillingDate_args)
11510
        return this.equals((getOrdersByBillingDate_args)that);
11511
      return false;
11512
    }
11513
 
11514
    public boolean equals(getOrdersByBillingDate_args that) {
11515
      if (that == null)
11516
        return false;
11517
 
11518
      boolean this_present_status = true && this.isSetStatus();
11519
      boolean that_present_status = true && that.isSetStatus();
11520
      if (this_present_status || that_present_status) {
11521
        if (!(this_present_status && that_present_status))
11522
          return false;
11523
        if (!this.status.equals(that.status))
11524
          return false;
11525
      }
11526
 
11527
      boolean this_present_start_billing_date = true;
11528
      boolean that_present_start_billing_date = true;
11529
      if (this_present_start_billing_date || that_present_start_billing_date) {
11530
        if (!(this_present_start_billing_date && that_present_start_billing_date))
11531
          return false;
11532
        if (this.start_billing_date != that.start_billing_date)
11533
          return false;
11534
      }
11535
 
11536
      boolean this_present_end_billing_date = true;
11537
      boolean that_present_end_billing_date = true;
11538
      if (this_present_end_billing_date || that_present_end_billing_date) {
11539
        if (!(this_present_end_billing_date && that_present_end_billing_date))
11540
          return false;
11541
        if (this.end_billing_date != that.end_billing_date)
11542
          return false;
11543
      }
11544
 
11545
      boolean this_present_warehouse_id = true;
11546
      boolean that_present_warehouse_id = true;
11547
      if (this_present_warehouse_id || that_present_warehouse_id) {
11548
        if (!(this_present_warehouse_id && that_present_warehouse_id))
11549
          return false;
11550
        if (this.warehouse_id != that.warehouse_id)
11551
          return false;
11552
      }
11553
 
11554
      return true;
11555
    }
11556
 
11557
    @Override
11558
    public int hashCode() {
11559
      return 0;
11560
    }
11561
 
11562
    public int compareTo(getOrdersByBillingDate_args other) {
11563
      if (!getClass().equals(other.getClass())) {
11564
        return getClass().getName().compareTo(other.getClass().getName());
11565
      }
11566
 
11567
      int lastComparison = 0;
11568
      getOrdersByBillingDate_args typedOther = (getOrdersByBillingDate_args)other;
11569
 
3430 rajveer 11570
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
1022 varun.gupt 11571
      if (lastComparison != 0) {
11572
        return lastComparison;
11573
      }
3430 rajveer 11574
      if (isSetStatus()) {
11575
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
11576
        if (lastComparison != 0) {
11577
          return lastComparison;
11578
        }
1022 varun.gupt 11579
      }
3430 rajveer 11580
      lastComparison = Boolean.valueOf(isSetStart_billing_date()).compareTo(typedOther.isSetStart_billing_date());
1022 varun.gupt 11581
      if (lastComparison != 0) {
11582
        return lastComparison;
11583
      }
3430 rajveer 11584
      if (isSetStart_billing_date()) {
11585
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start_billing_date, typedOther.start_billing_date);
11586
        if (lastComparison != 0) {
11587
          return lastComparison;
11588
        }
1022 varun.gupt 11589
      }
3430 rajveer 11590
      lastComparison = Boolean.valueOf(isSetEnd_billing_date()).compareTo(typedOther.isSetEnd_billing_date());
1022 varun.gupt 11591
      if (lastComparison != 0) {
11592
        return lastComparison;
11593
      }
3430 rajveer 11594
      if (isSetEnd_billing_date()) {
11595
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.end_billing_date, typedOther.end_billing_date);
11596
        if (lastComparison != 0) {
11597
          return lastComparison;
11598
        }
1022 varun.gupt 11599
      }
3430 rajveer 11600
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
1022 varun.gupt 11601
      if (lastComparison != 0) {
11602
        return lastComparison;
11603
      }
3430 rajveer 11604
      if (isSetWarehouse_id()) {
11605
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
11606
        if (lastComparison != 0) {
11607
          return lastComparison;
11608
        }
1022 varun.gupt 11609
      }
11610
      return 0;
11611
    }
11612
 
3430 rajveer 11613
    public _Fields fieldForId(int fieldId) {
11614
      return _Fields.findByThriftId(fieldId);
11615
    }
11616
 
11617
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11618
      org.apache.thrift.protocol.TField field;
1022 varun.gupt 11619
      iprot.readStructBegin();
11620
      while (true)
11621
      {
11622
        field = iprot.readFieldBegin();
3430 rajveer 11623
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1022 varun.gupt 11624
          break;
11625
        }
3430 rajveer 11626
        switch (field.id) {
11627
          case 1: // STATUS
11628
            if (field.type == org.apache.thrift.protocol.TType.I32) {
11629
              this.status = OrderStatus.findByValue(iprot.readI32());
11630
            } else { 
11631
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11632
            }
11633
            break;
11634
          case 2: // START_BILLING_DATE
11635
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11636
              this.start_billing_date = iprot.readI64();
11637
              setStart_billing_dateIsSet(true);
11638
            } else { 
11639
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11640
            }
11641
            break;
11642
          case 3: // END_BILLING_DATE
11643
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11644
              this.end_billing_date = iprot.readI64();
11645
              setEnd_billing_dateIsSet(true);
11646
            } else { 
11647
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11648
            }
11649
            break;
11650
          case 4: // WAREHOUSE_ID
11651
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11652
              this.warehouse_id = iprot.readI64();
11653
              setWarehouse_idIsSet(true);
11654
            } else { 
11655
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11656
            }
11657
            break;
11658
          default:
11659
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1022 varun.gupt 11660
        }
3430 rajveer 11661
        iprot.readFieldEnd();
1022 varun.gupt 11662
      }
11663
      iprot.readStructEnd();
11664
      validate();
11665
    }
11666
 
3430 rajveer 11667
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1022 varun.gupt 11668
      validate();
11669
 
11670
      oprot.writeStructBegin(STRUCT_DESC);
11671
      if (this.status != null) {
11672
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
11673
        oprot.writeI32(this.status.getValue());
11674
        oprot.writeFieldEnd();
11675
      }
11676
      oprot.writeFieldBegin(START_BILLING_DATE_FIELD_DESC);
11677
      oprot.writeI64(this.start_billing_date);
11678
      oprot.writeFieldEnd();
11679
      oprot.writeFieldBegin(END_BILLING_DATE_FIELD_DESC);
11680
      oprot.writeI64(this.end_billing_date);
11681
      oprot.writeFieldEnd();
11682
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
11683
      oprot.writeI64(this.warehouse_id);
11684
      oprot.writeFieldEnd();
11685
      oprot.writeFieldStop();
11686
      oprot.writeStructEnd();
11687
    }
11688
 
11689
    @Override
11690
    public String toString() {
11691
      StringBuilder sb = new StringBuilder("getOrdersByBillingDate_args(");
11692
      boolean first = true;
11693
 
11694
      sb.append("status:");
11695
      if (this.status == null) {
11696
        sb.append("null");
11697
      } else {
11698
        sb.append(this.status);
11699
      }
11700
      first = false;
11701
      if (!first) sb.append(", ");
11702
      sb.append("start_billing_date:");
11703
      sb.append(this.start_billing_date);
11704
      first = false;
11705
      if (!first) sb.append(", ");
11706
      sb.append("end_billing_date:");
11707
      sb.append(this.end_billing_date);
11708
      first = false;
11709
      if (!first) sb.append(", ");
11710
      sb.append("warehouse_id:");
11711
      sb.append(this.warehouse_id);
11712
      first = false;
11713
      sb.append(")");
11714
      return sb.toString();
11715
    }
11716
 
3430 rajveer 11717
    public void validate() throws org.apache.thrift.TException {
1022 varun.gupt 11718
      // check for required fields
11719
    }
11720
 
3430 rajveer 11721
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11722
      try {
11723
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11724
      } catch (org.apache.thrift.TException te) {
11725
        throw new java.io.IOException(te);
11726
      }
11727
    }
11728
 
11729
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11730
      try {
11731
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11732
        __isset_bit_vector = new BitSet(1);
11733
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11734
      } catch (org.apache.thrift.TException te) {
11735
        throw new java.io.IOException(te);
11736
      }
11737
    }
11738
 
1022 varun.gupt 11739
  }
11740
 
3430 rajveer 11741
  public static class getOrdersByBillingDate_result implements org.apache.thrift.TBase<getOrdersByBillingDate_result, getOrdersByBillingDate_result._Fields>, java.io.Serializable, Cloneable   {
11742
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByBillingDate_result");
1022 varun.gupt 11743
 
3430 rajveer 11744
    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);
11745
    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 11746
 
3430 rajveer 11747
    private List<Order> success; // required
11748
    private TransactionServiceException ex; // required
1022 varun.gupt 11749
 
11750
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11751
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1022 varun.gupt 11752
      SUCCESS((short)0, "success"),
11753
      EX((short)1, "ex");
11754
 
11755
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11756
 
11757
      static {
11758
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11759
          byName.put(field.getFieldName(), field);
11760
        }
11761
      }
11762
 
11763
      /**
11764
       * Find the _Fields constant that matches fieldId, or null if its not found.
11765
       */
11766
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11767
        switch(fieldId) {
11768
          case 0: // SUCCESS
11769
            return SUCCESS;
11770
          case 1: // EX
11771
            return EX;
11772
          default:
11773
            return null;
11774
        }
1022 varun.gupt 11775
      }
11776
 
11777
      /**
11778
       * Find the _Fields constant that matches fieldId, throwing an exception
11779
       * if it is not found.
11780
       */
11781
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11782
        _Fields fields = findByThriftId(fieldId);
11783
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11784
        return fields;
11785
      }
11786
 
11787
      /**
11788
       * Find the _Fields constant that matches name, or null if its not found.
11789
       */
11790
      public static _Fields findByName(String name) {
11791
        return byName.get(name);
11792
      }
11793
 
11794
      private final short _thriftId;
11795
      private final String _fieldName;
11796
 
11797
      _Fields(short thriftId, String fieldName) {
11798
        _thriftId = thriftId;
11799
        _fieldName = fieldName;
11800
      }
11801
 
11802
      public short getThriftFieldId() {
11803
        return _thriftId;
11804
      }
11805
 
11806
      public String getFieldName() {
11807
        return _fieldName;
11808
      }
11809
    }
11810
 
11811
    // isset id assignments
11812
 
3430 rajveer 11813
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1022 varun.gupt 11814
    static {
3430 rajveer 11815
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11816
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11817
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11818
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
11819
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11820
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11821
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11822
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByBillingDate_result.class, metaDataMap);
1022 varun.gupt 11823
    }
11824
 
11825
    public getOrdersByBillingDate_result() {
11826
    }
11827
 
11828
    public getOrdersByBillingDate_result(
11829
      List<Order> success,
11830
      TransactionServiceException ex)
11831
    {
11832
      this();
11833
      this.success = success;
11834
      this.ex = ex;
11835
    }
11836
 
11837
    /**
11838
     * Performs a deep copy on <i>other</i>.
11839
     */
11840
    public getOrdersByBillingDate_result(getOrdersByBillingDate_result other) {
11841
      if (other.isSetSuccess()) {
11842
        List<Order> __this__success = new ArrayList<Order>();
11843
        for (Order other_element : other.success) {
11844
          __this__success.add(new Order(other_element));
11845
        }
11846
        this.success = __this__success;
11847
      }
11848
      if (other.isSetEx()) {
11849
        this.ex = new TransactionServiceException(other.ex);
11850
      }
11851
    }
11852
 
11853
    public getOrdersByBillingDate_result deepCopy() {
11854
      return new getOrdersByBillingDate_result(this);
11855
    }
11856
 
3430 rajveer 11857
    @Override
11858
    public void clear() {
11859
      this.success = null;
11860
      this.ex = null;
1022 varun.gupt 11861
    }
11862
 
11863
    public int getSuccessSize() {
11864
      return (this.success == null) ? 0 : this.success.size();
11865
    }
11866
 
11867
    public java.util.Iterator<Order> getSuccessIterator() {
11868
      return (this.success == null) ? null : this.success.iterator();
11869
    }
11870
 
11871
    public void addToSuccess(Order elem) {
11872
      if (this.success == null) {
11873
        this.success = new ArrayList<Order>();
11874
      }
11875
      this.success.add(elem);
11876
    }
11877
 
11878
    public List<Order> getSuccess() {
11879
      return this.success;
11880
    }
11881
 
3430 rajveer 11882
    public void setSuccess(List<Order> success) {
1022 varun.gupt 11883
      this.success = success;
11884
    }
11885
 
11886
    public void unsetSuccess() {
11887
      this.success = null;
11888
    }
11889
 
3430 rajveer 11890
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1022 varun.gupt 11891
    public boolean isSetSuccess() {
11892
      return this.success != null;
11893
    }
11894
 
11895
    public void setSuccessIsSet(boolean value) {
11896
      if (!value) {
11897
        this.success = null;
11898
      }
11899
    }
11900
 
11901
    public TransactionServiceException getEx() {
11902
      return this.ex;
11903
    }
11904
 
3430 rajveer 11905
    public void setEx(TransactionServiceException ex) {
1022 varun.gupt 11906
      this.ex = ex;
11907
    }
11908
 
11909
    public void unsetEx() {
11910
      this.ex = null;
11911
    }
11912
 
3430 rajveer 11913
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1022 varun.gupt 11914
    public boolean isSetEx() {
11915
      return this.ex != null;
11916
    }
11917
 
11918
    public void setExIsSet(boolean value) {
11919
      if (!value) {
11920
        this.ex = null;
11921
      }
11922
    }
11923
 
11924
    public void setFieldValue(_Fields field, Object value) {
11925
      switch (field) {
11926
      case SUCCESS:
11927
        if (value == null) {
11928
          unsetSuccess();
11929
        } else {
11930
          setSuccess((List<Order>)value);
11931
        }
11932
        break;
11933
 
11934
      case EX:
11935
        if (value == null) {
11936
          unsetEx();
11937
        } else {
11938
          setEx((TransactionServiceException)value);
11939
        }
11940
        break;
11941
 
11942
      }
11943
    }
11944
 
11945
    public Object getFieldValue(_Fields field) {
11946
      switch (field) {
11947
      case SUCCESS:
11948
        return getSuccess();
11949
 
11950
      case EX:
11951
        return getEx();
11952
 
11953
      }
11954
      throw new IllegalStateException();
11955
    }
11956
 
3430 rajveer 11957
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11958
    public boolean isSet(_Fields field) {
11959
      if (field == null) {
11960
        throw new IllegalArgumentException();
11961
      }
1022 varun.gupt 11962
 
11963
      switch (field) {
11964
      case SUCCESS:
11965
        return isSetSuccess();
11966
      case EX:
11967
        return isSetEx();
11968
      }
11969
      throw new IllegalStateException();
11970
    }
11971
 
11972
    @Override
11973
    public boolean equals(Object that) {
11974
      if (that == null)
11975
        return false;
11976
      if (that instanceof getOrdersByBillingDate_result)
11977
        return this.equals((getOrdersByBillingDate_result)that);
11978
      return false;
11979
    }
11980
 
11981
    public boolean equals(getOrdersByBillingDate_result that) {
11982
      if (that == null)
11983
        return false;
11984
 
11985
      boolean this_present_success = true && this.isSetSuccess();
11986
      boolean that_present_success = true && that.isSetSuccess();
11987
      if (this_present_success || that_present_success) {
11988
        if (!(this_present_success && that_present_success))
11989
          return false;
11990
        if (!this.success.equals(that.success))
11991
          return false;
11992
      }
11993
 
11994
      boolean this_present_ex = true && this.isSetEx();
11995
      boolean that_present_ex = true && that.isSetEx();
11996
      if (this_present_ex || that_present_ex) {
11997
        if (!(this_present_ex && that_present_ex))
11998
          return false;
11999
        if (!this.ex.equals(that.ex))
12000
          return false;
12001
      }
12002
 
12003
      return true;
12004
    }
12005
 
12006
    @Override
12007
    public int hashCode() {
12008
      return 0;
12009
    }
12010
 
12011
    public int compareTo(getOrdersByBillingDate_result other) {
12012
      if (!getClass().equals(other.getClass())) {
12013
        return getClass().getName().compareTo(other.getClass().getName());
12014
      }
12015
 
12016
      int lastComparison = 0;
12017
      getOrdersByBillingDate_result typedOther = (getOrdersByBillingDate_result)other;
12018
 
3430 rajveer 12019
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1022 varun.gupt 12020
      if (lastComparison != 0) {
12021
        return lastComparison;
12022
      }
3430 rajveer 12023
      if (isSetSuccess()) {
12024
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12025
        if (lastComparison != 0) {
12026
          return lastComparison;
12027
        }
1022 varun.gupt 12028
      }
3430 rajveer 12029
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1022 varun.gupt 12030
      if (lastComparison != 0) {
12031
        return lastComparison;
12032
      }
3430 rajveer 12033
      if (isSetEx()) {
12034
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
12035
        if (lastComparison != 0) {
12036
          return lastComparison;
12037
        }
1022 varun.gupt 12038
      }
12039
      return 0;
12040
    }
12041
 
3430 rajveer 12042
    public _Fields fieldForId(int fieldId) {
12043
      return _Fields.findByThriftId(fieldId);
12044
    }
12045
 
12046
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12047
      org.apache.thrift.protocol.TField field;
1022 varun.gupt 12048
      iprot.readStructBegin();
12049
      while (true)
12050
      {
12051
        field = iprot.readFieldBegin();
3430 rajveer 12052
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1022 varun.gupt 12053
          break;
12054
        }
3430 rajveer 12055
        switch (field.id) {
12056
          case 0: // SUCCESS
12057
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12058
              {
12059
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12060
                this.success = new ArrayList<Order>(_list20.size);
12061
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
1022 varun.gupt 12062
                {
3430 rajveer 12063
                  Order _elem22; // required
12064
                  _elem22 = new Order();
12065
                  _elem22.read(iprot);
12066
                  this.success.add(_elem22);
1022 varun.gupt 12067
                }
3430 rajveer 12068
                iprot.readListEnd();
1022 varun.gupt 12069
              }
3430 rajveer 12070
            } else { 
12071
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12072
            }
12073
            break;
12074
          case 1: // EX
12075
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12076
              this.ex = new TransactionServiceException();
12077
              this.ex.read(iprot);
12078
            } else { 
12079
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12080
            }
12081
            break;
12082
          default:
12083
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1022 varun.gupt 12084
        }
3430 rajveer 12085
        iprot.readFieldEnd();
1022 varun.gupt 12086
      }
12087
      iprot.readStructEnd();
12088
      validate();
12089
    }
12090
 
3430 rajveer 12091
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1022 varun.gupt 12092
      oprot.writeStructBegin(STRUCT_DESC);
12093
 
12094
      if (this.isSetSuccess()) {
12095
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12096
        {
3430 rajveer 12097
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1022 varun.gupt 12098
          for (Order _iter23 : this.success)
12099
          {
12100
            _iter23.write(oprot);
12101
          }
12102
          oprot.writeListEnd();
12103
        }
12104
        oprot.writeFieldEnd();
12105
      } else if (this.isSetEx()) {
12106
        oprot.writeFieldBegin(EX_FIELD_DESC);
12107
        this.ex.write(oprot);
12108
        oprot.writeFieldEnd();
12109
      }
12110
      oprot.writeFieldStop();
12111
      oprot.writeStructEnd();
12112
    }
12113
 
12114
    @Override
12115
    public String toString() {
12116
      StringBuilder sb = new StringBuilder("getOrdersByBillingDate_result(");
12117
      boolean first = true;
12118
 
12119
      sb.append("success:");
12120
      if (this.success == null) {
12121
        sb.append("null");
12122
      } else {
12123
        sb.append(this.success);
12124
      }
12125
      first = false;
12126
      if (!first) sb.append(", ");
12127
      sb.append("ex:");
12128
      if (this.ex == null) {
12129
        sb.append("null");
12130
      } else {
12131
        sb.append(this.ex);
12132
      }
12133
      first = false;
12134
      sb.append(")");
12135
      return sb.toString();
12136
    }
12137
 
3430 rajveer 12138
    public void validate() throws org.apache.thrift.TException {
1022 varun.gupt 12139
      // check for required fields
12140
    }
12141
 
3430 rajveer 12142
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12143
      try {
12144
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12145
      } catch (org.apache.thrift.TException te) {
12146
        throw new java.io.IOException(te);
12147
      }
12148
    }
12149
 
12150
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12151
      try {
12152
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12153
      } catch (org.apache.thrift.TException te) {
12154
        throw new java.io.IOException(te);
12155
      }
12156
    }
12157
 
1022 varun.gupt 12158
  }
12159
 
3430 rajveer 12160
  public static class getOrdersByShippingDate_args implements org.apache.thrift.TBase<getOrdersByShippingDate_args, getOrdersByShippingDate_args._Fields>, java.io.Serializable, Cloneable   {
12161
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByShippingDate_args");
3427 chandransh 12162
 
3430 rajveer 12163
    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);
12164
    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);
12165
    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);
12166
    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 12167
    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 12168
 
3430 rajveer 12169
    private long fromShippingDate; // required
12170
    private long toShippingDate; // required
12171
    private long providerId; // required
12172
    private long warehouseId; // required
3451 chandransh 12173
    private boolean cod; // required
3427 chandransh 12174
 
12175
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12176
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3427 chandransh 12177
      FROM_SHIPPING_DATE((short)1, "fromShippingDate"),
12178
      TO_SHIPPING_DATE((short)2, "toShippingDate"),
12179
      PROVIDER_ID((short)3, "providerId"),
3451 chandransh 12180
      WAREHOUSE_ID((short)4, "warehouseId"),
12181
      COD((short)5, "cod");
3427 chandransh 12182
 
12183
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12184
 
12185
      static {
12186
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12187
          byName.put(field.getFieldName(), field);
12188
        }
12189
      }
12190
 
12191
      /**
12192
       * Find the _Fields constant that matches fieldId, or null if its not found.
12193
       */
12194
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12195
        switch(fieldId) {
12196
          case 1: // FROM_SHIPPING_DATE
12197
            return FROM_SHIPPING_DATE;
12198
          case 2: // TO_SHIPPING_DATE
12199
            return TO_SHIPPING_DATE;
12200
          case 3: // PROVIDER_ID
12201
            return PROVIDER_ID;
12202
          case 4: // WAREHOUSE_ID
12203
            return WAREHOUSE_ID;
3451 chandransh 12204
          case 5: // COD
12205
            return COD;
3430 rajveer 12206
          default:
12207
            return null;
12208
        }
3427 chandransh 12209
      }
12210
 
12211
      /**
12212
       * Find the _Fields constant that matches fieldId, throwing an exception
12213
       * if it is not found.
12214
       */
12215
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12216
        _Fields fields = findByThriftId(fieldId);
12217
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12218
        return fields;
12219
      }
12220
 
12221
      /**
12222
       * Find the _Fields constant that matches name, or null if its not found.
12223
       */
12224
      public static _Fields findByName(String name) {
12225
        return byName.get(name);
12226
      }
12227
 
12228
      private final short _thriftId;
12229
      private final String _fieldName;
12230
 
12231
      _Fields(short thriftId, String fieldName) {
12232
        _thriftId = thriftId;
12233
        _fieldName = fieldName;
12234
      }
12235
 
12236
      public short getThriftFieldId() {
12237
        return _thriftId;
12238
      }
12239
 
12240
      public String getFieldName() {
12241
        return _fieldName;
12242
      }
12243
    }
12244
 
12245
    // isset id assignments
12246
    private static final int __FROMSHIPPINGDATE_ISSET_ID = 0;
12247
    private static final int __TOSHIPPINGDATE_ISSET_ID = 1;
12248
    private static final int __PROVIDERID_ISSET_ID = 2;
12249
    private static final int __WAREHOUSEID_ISSET_ID = 3;
3451 chandransh 12250
    private static final int __COD_ISSET_ID = 4;
12251
    private BitSet __isset_bit_vector = new BitSet(5);
3427 chandransh 12252
 
3430 rajveer 12253
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3427 chandransh 12254
    static {
3430 rajveer 12255
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12256
      tmpMap.put(_Fields.FROM_SHIPPING_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromShippingDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12257
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12258
      tmpMap.put(_Fields.TO_SHIPPING_DATE, new org.apache.thrift.meta_data.FieldMetaData("toShippingDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12259
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12260
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12261
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12262
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12263
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3451 chandransh 12264
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12265
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3430 rajveer 12266
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12267
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByShippingDate_args.class, metaDataMap);
3427 chandransh 12268
    }
12269
 
12270
    public getOrdersByShippingDate_args() {
12271
    }
12272
 
12273
    public getOrdersByShippingDate_args(
12274
      long fromShippingDate,
12275
      long toShippingDate,
12276
      long providerId,
3451 chandransh 12277
      long warehouseId,
12278
      boolean cod)
3427 chandransh 12279
    {
12280
      this();
12281
      this.fromShippingDate = fromShippingDate;
12282
      setFromShippingDateIsSet(true);
12283
      this.toShippingDate = toShippingDate;
12284
      setToShippingDateIsSet(true);
12285
      this.providerId = providerId;
12286
      setProviderIdIsSet(true);
12287
      this.warehouseId = warehouseId;
12288
      setWarehouseIdIsSet(true);
3451 chandransh 12289
      this.cod = cod;
12290
      setCodIsSet(true);
3427 chandransh 12291
    }
12292
 
12293
    /**
12294
     * Performs a deep copy on <i>other</i>.
12295
     */
12296
    public getOrdersByShippingDate_args(getOrdersByShippingDate_args other) {
12297
      __isset_bit_vector.clear();
12298
      __isset_bit_vector.or(other.__isset_bit_vector);
12299
      this.fromShippingDate = other.fromShippingDate;
12300
      this.toShippingDate = other.toShippingDate;
12301
      this.providerId = other.providerId;
12302
      this.warehouseId = other.warehouseId;
3451 chandransh 12303
      this.cod = other.cod;
3427 chandransh 12304
    }
12305
 
12306
    public getOrdersByShippingDate_args deepCopy() {
12307
      return new getOrdersByShippingDate_args(this);
12308
    }
12309
 
3430 rajveer 12310
    @Override
12311
    public void clear() {
12312
      setFromShippingDateIsSet(false);
12313
      this.fromShippingDate = 0;
12314
      setToShippingDateIsSet(false);
12315
      this.toShippingDate = 0;
12316
      setProviderIdIsSet(false);
12317
      this.providerId = 0;
12318
      setWarehouseIdIsSet(false);
12319
      this.warehouseId = 0;
3451 chandransh 12320
      setCodIsSet(false);
12321
      this.cod = false;
3427 chandransh 12322
    }
12323
 
12324
    public long getFromShippingDate() {
12325
      return this.fromShippingDate;
12326
    }
12327
 
3430 rajveer 12328
    public void setFromShippingDate(long fromShippingDate) {
3427 chandransh 12329
      this.fromShippingDate = fromShippingDate;
12330
      setFromShippingDateIsSet(true);
12331
    }
12332
 
12333
    public void unsetFromShippingDate() {
12334
      __isset_bit_vector.clear(__FROMSHIPPINGDATE_ISSET_ID);
12335
    }
12336
 
3430 rajveer 12337
    /** Returns true if field fromShippingDate is set (has been assigned a value) and false otherwise */
3427 chandransh 12338
    public boolean isSetFromShippingDate() {
12339
      return __isset_bit_vector.get(__FROMSHIPPINGDATE_ISSET_ID);
12340
    }
12341
 
12342
    public void setFromShippingDateIsSet(boolean value) {
12343
      __isset_bit_vector.set(__FROMSHIPPINGDATE_ISSET_ID, value);
12344
    }
12345
 
12346
    public long getToShippingDate() {
12347
      return this.toShippingDate;
12348
    }
12349
 
3430 rajveer 12350
    public void setToShippingDate(long toShippingDate) {
3427 chandransh 12351
      this.toShippingDate = toShippingDate;
12352
      setToShippingDateIsSet(true);
12353
    }
12354
 
12355
    public void unsetToShippingDate() {
12356
      __isset_bit_vector.clear(__TOSHIPPINGDATE_ISSET_ID);
12357
    }
12358
 
3430 rajveer 12359
    /** Returns true if field toShippingDate is set (has been assigned a value) and false otherwise */
3427 chandransh 12360
    public boolean isSetToShippingDate() {
12361
      return __isset_bit_vector.get(__TOSHIPPINGDATE_ISSET_ID);
12362
    }
12363
 
12364
    public void setToShippingDateIsSet(boolean value) {
12365
      __isset_bit_vector.set(__TOSHIPPINGDATE_ISSET_ID, value);
12366
    }
12367
 
12368
    public long getProviderId() {
12369
      return this.providerId;
12370
    }
12371
 
3430 rajveer 12372
    public void setProviderId(long providerId) {
3427 chandransh 12373
      this.providerId = providerId;
12374
      setProviderIdIsSet(true);
12375
    }
12376
 
12377
    public void unsetProviderId() {
12378
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
12379
    }
12380
 
3430 rajveer 12381
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3427 chandransh 12382
    public boolean isSetProviderId() {
12383
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
12384
    }
12385
 
12386
    public void setProviderIdIsSet(boolean value) {
12387
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
12388
    }
12389
 
12390
    public long getWarehouseId() {
12391
      return this.warehouseId;
12392
    }
12393
 
3430 rajveer 12394
    public void setWarehouseId(long warehouseId) {
3427 chandransh 12395
      this.warehouseId = warehouseId;
12396
      setWarehouseIdIsSet(true);
12397
    }
12398
 
12399
    public void unsetWarehouseId() {
12400
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
12401
    }
12402
 
3430 rajveer 12403
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
3427 chandransh 12404
    public boolean isSetWarehouseId() {
12405
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
12406
    }
12407
 
12408
    public void setWarehouseIdIsSet(boolean value) {
12409
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
12410
    }
12411
 
3451 chandransh 12412
    public boolean isCod() {
12413
      return this.cod;
12414
    }
12415
 
12416
    public void setCod(boolean cod) {
12417
      this.cod = cod;
12418
      setCodIsSet(true);
12419
    }
12420
 
12421
    public void unsetCod() {
12422
      __isset_bit_vector.clear(__COD_ISSET_ID);
12423
    }
12424
 
12425
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
12426
    public boolean isSetCod() {
12427
      return __isset_bit_vector.get(__COD_ISSET_ID);
12428
    }
12429
 
12430
    public void setCodIsSet(boolean value) {
12431
      __isset_bit_vector.set(__COD_ISSET_ID, value);
12432
    }
12433
 
3427 chandransh 12434
    public void setFieldValue(_Fields field, Object value) {
12435
      switch (field) {
12436
      case FROM_SHIPPING_DATE:
12437
        if (value == null) {
12438
          unsetFromShippingDate();
12439
        } else {
12440
          setFromShippingDate((Long)value);
12441
        }
12442
        break;
12443
 
12444
      case TO_SHIPPING_DATE:
12445
        if (value == null) {
12446
          unsetToShippingDate();
12447
        } else {
12448
          setToShippingDate((Long)value);
12449
        }
12450
        break;
12451
 
12452
      case PROVIDER_ID:
12453
        if (value == null) {
12454
          unsetProviderId();
12455
        } else {
12456
          setProviderId((Long)value);
12457
        }
12458
        break;
12459
 
12460
      case WAREHOUSE_ID:
12461
        if (value == null) {
12462
          unsetWarehouseId();
12463
        } else {
12464
          setWarehouseId((Long)value);
12465
        }
12466
        break;
12467
 
3451 chandransh 12468
      case COD:
12469
        if (value == null) {
12470
          unsetCod();
12471
        } else {
12472
          setCod((Boolean)value);
12473
        }
12474
        break;
12475
 
3427 chandransh 12476
      }
12477
    }
12478
 
12479
    public Object getFieldValue(_Fields field) {
12480
      switch (field) {
12481
      case FROM_SHIPPING_DATE:
3430 rajveer 12482
        return Long.valueOf(getFromShippingDate());
3427 chandransh 12483
 
12484
      case TO_SHIPPING_DATE:
3430 rajveer 12485
        return Long.valueOf(getToShippingDate());
3427 chandransh 12486
 
12487
      case PROVIDER_ID:
3430 rajveer 12488
        return Long.valueOf(getProviderId());
3427 chandransh 12489
 
12490
      case WAREHOUSE_ID:
3430 rajveer 12491
        return Long.valueOf(getWarehouseId());
3427 chandransh 12492
 
3451 chandransh 12493
      case COD:
12494
        return Boolean.valueOf(isCod());
12495
 
3427 chandransh 12496
      }
12497
      throw new IllegalStateException();
12498
    }
12499
 
3430 rajveer 12500
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12501
    public boolean isSet(_Fields field) {
12502
      if (field == null) {
12503
        throw new IllegalArgumentException();
12504
      }
3427 chandransh 12505
 
12506
      switch (field) {
12507
      case FROM_SHIPPING_DATE:
12508
        return isSetFromShippingDate();
12509
      case TO_SHIPPING_DATE:
12510
        return isSetToShippingDate();
12511
      case PROVIDER_ID:
12512
        return isSetProviderId();
12513
      case WAREHOUSE_ID:
12514
        return isSetWarehouseId();
3451 chandransh 12515
      case COD:
12516
        return isSetCod();
3427 chandransh 12517
      }
12518
      throw new IllegalStateException();
12519
    }
12520
 
12521
    @Override
12522
    public boolean equals(Object that) {
12523
      if (that == null)
12524
        return false;
12525
      if (that instanceof getOrdersByShippingDate_args)
12526
        return this.equals((getOrdersByShippingDate_args)that);
12527
      return false;
12528
    }
12529
 
12530
    public boolean equals(getOrdersByShippingDate_args that) {
12531
      if (that == null)
12532
        return false;
12533
 
12534
      boolean this_present_fromShippingDate = true;
12535
      boolean that_present_fromShippingDate = true;
12536
      if (this_present_fromShippingDate || that_present_fromShippingDate) {
12537
        if (!(this_present_fromShippingDate && that_present_fromShippingDate))
12538
          return false;
12539
        if (this.fromShippingDate != that.fromShippingDate)
12540
          return false;
12541
      }
12542
 
12543
      boolean this_present_toShippingDate = true;
12544
      boolean that_present_toShippingDate = true;
12545
      if (this_present_toShippingDate || that_present_toShippingDate) {
12546
        if (!(this_present_toShippingDate && that_present_toShippingDate))
12547
          return false;
12548
        if (this.toShippingDate != that.toShippingDate)
12549
          return false;
12550
      }
12551
 
12552
      boolean this_present_providerId = true;
12553
      boolean that_present_providerId = true;
12554
      if (this_present_providerId || that_present_providerId) {
12555
        if (!(this_present_providerId && that_present_providerId))
12556
          return false;
12557
        if (this.providerId != that.providerId)
12558
          return false;
12559
      }
12560
 
12561
      boolean this_present_warehouseId = true;
12562
      boolean that_present_warehouseId = true;
12563
      if (this_present_warehouseId || that_present_warehouseId) {
12564
        if (!(this_present_warehouseId && that_present_warehouseId))
12565
          return false;
12566
        if (this.warehouseId != that.warehouseId)
12567
          return false;
12568
      }
12569
 
3451 chandransh 12570
      boolean this_present_cod = true;
12571
      boolean that_present_cod = true;
12572
      if (this_present_cod || that_present_cod) {
12573
        if (!(this_present_cod && that_present_cod))
12574
          return false;
12575
        if (this.cod != that.cod)
12576
          return false;
12577
      }
12578
 
3427 chandransh 12579
      return true;
12580
    }
12581
 
12582
    @Override
12583
    public int hashCode() {
12584
      return 0;
12585
    }
12586
 
12587
    public int compareTo(getOrdersByShippingDate_args other) {
12588
      if (!getClass().equals(other.getClass())) {
12589
        return getClass().getName().compareTo(other.getClass().getName());
12590
      }
12591
 
12592
      int lastComparison = 0;
12593
      getOrdersByShippingDate_args typedOther = (getOrdersByShippingDate_args)other;
12594
 
3430 rajveer 12595
      lastComparison = Boolean.valueOf(isSetFromShippingDate()).compareTo(typedOther.isSetFromShippingDate());
3427 chandransh 12596
      if (lastComparison != 0) {
12597
        return lastComparison;
12598
      }
3430 rajveer 12599
      if (isSetFromShippingDate()) {
12600
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromShippingDate, typedOther.fromShippingDate);
12601
        if (lastComparison != 0) {
12602
          return lastComparison;
12603
        }
3427 chandransh 12604
      }
3430 rajveer 12605
      lastComparison = Boolean.valueOf(isSetToShippingDate()).compareTo(typedOther.isSetToShippingDate());
3427 chandransh 12606
      if (lastComparison != 0) {
12607
        return lastComparison;
12608
      }
3430 rajveer 12609
      if (isSetToShippingDate()) {
12610
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toShippingDate, typedOther.toShippingDate);
12611
        if (lastComparison != 0) {
12612
          return lastComparison;
12613
        }
3427 chandransh 12614
      }
3430 rajveer 12615
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
3427 chandransh 12616
      if (lastComparison != 0) {
12617
        return lastComparison;
12618
      }
3430 rajveer 12619
      if (isSetProviderId()) {
12620
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
12621
        if (lastComparison != 0) {
12622
          return lastComparison;
12623
        }
3427 chandransh 12624
      }
3430 rajveer 12625
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
3427 chandransh 12626
      if (lastComparison != 0) {
12627
        return lastComparison;
12628
      }
3430 rajveer 12629
      if (isSetWarehouseId()) {
12630
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
12631
        if (lastComparison != 0) {
12632
          return lastComparison;
12633
        }
3427 chandransh 12634
      }
3451 chandransh 12635
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
12636
      if (lastComparison != 0) {
12637
        return lastComparison;
12638
      }
12639
      if (isSetCod()) {
12640
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
12641
        if (lastComparison != 0) {
12642
          return lastComparison;
12643
        }
12644
      }
3427 chandransh 12645
      return 0;
12646
    }
12647
 
3430 rajveer 12648
    public _Fields fieldForId(int fieldId) {
12649
      return _Fields.findByThriftId(fieldId);
12650
    }
12651
 
12652
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12653
      org.apache.thrift.protocol.TField field;
3427 chandransh 12654
      iprot.readStructBegin();
12655
      while (true)
12656
      {
12657
        field = iprot.readFieldBegin();
3430 rajveer 12658
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3427 chandransh 12659
          break;
12660
        }
3430 rajveer 12661
        switch (field.id) {
12662
          case 1: // FROM_SHIPPING_DATE
12663
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12664
              this.fromShippingDate = iprot.readI64();
12665
              setFromShippingDateIsSet(true);
12666
            } else { 
12667
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12668
            }
12669
            break;
12670
          case 2: // TO_SHIPPING_DATE
12671
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12672
              this.toShippingDate = iprot.readI64();
12673
              setToShippingDateIsSet(true);
12674
            } else { 
12675
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12676
            }
12677
            break;
12678
          case 3: // PROVIDER_ID
12679
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12680
              this.providerId = iprot.readI64();
12681
              setProviderIdIsSet(true);
12682
            } else { 
12683
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12684
            }
12685
            break;
12686
          case 4: // WAREHOUSE_ID
12687
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12688
              this.warehouseId = iprot.readI64();
12689
              setWarehouseIdIsSet(true);
12690
            } else { 
12691
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12692
            }
12693
            break;
3451 chandransh 12694
          case 5: // COD
12695
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12696
              this.cod = iprot.readBool();
12697
              setCodIsSet(true);
12698
            } else { 
12699
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12700
            }
12701
            break;
3430 rajveer 12702
          default:
12703
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3427 chandransh 12704
        }
3430 rajveer 12705
        iprot.readFieldEnd();
3427 chandransh 12706
      }
12707
      iprot.readStructEnd();
12708
      validate();
12709
    }
12710
 
3430 rajveer 12711
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3427 chandransh 12712
      validate();
12713
 
12714
      oprot.writeStructBegin(STRUCT_DESC);
12715
      oprot.writeFieldBegin(FROM_SHIPPING_DATE_FIELD_DESC);
12716
      oprot.writeI64(this.fromShippingDate);
12717
      oprot.writeFieldEnd();
12718
      oprot.writeFieldBegin(TO_SHIPPING_DATE_FIELD_DESC);
12719
      oprot.writeI64(this.toShippingDate);
12720
      oprot.writeFieldEnd();
12721
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
12722
      oprot.writeI64(this.providerId);
12723
      oprot.writeFieldEnd();
12724
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12725
      oprot.writeI64(this.warehouseId);
12726
      oprot.writeFieldEnd();
3451 chandransh 12727
      oprot.writeFieldBegin(COD_FIELD_DESC);
12728
      oprot.writeBool(this.cod);
12729
      oprot.writeFieldEnd();
3427 chandransh 12730
      oprot.writeFieldStop();
12731
      oprot.writeStructEnd();
12732
    }
12733
 
12734
    @Override
12735
    public String toString() {
12736
      StringBuilder sb = new StringBuilder("getOrdersByShippingDate_args(");
12737
      boolean first = true;
12738
 
12739
      sb.append("fromShippingDate:");
12740
      sb.append(this.fromShippingDate);
12741
      first = false;
12742
      if (!first) sb.append(", ");
12743
      sb.append("toShippingDate:");
12744
      sb.append(this.toShippingDate);
12745
      first = false;
12746
      if (!first) sb.append(", ");
12747
      sb.append("providerId:");
12748
      sb.append(this.providerId);
12749
      first = false;
12750
      if (!first) sb.append(", ");
12751
      sb.append("warehouseId:");
12752
      sb.append(this.warehouseId);
12753
      first = false;
3451 chandransh 12754
      if (!first) sb.append(", ");
12755
      sb.append("cod:");
12756
      sb.append(this.cod);
12757
      first = false;
3427 chandransh 12758
      sb.append(")");
12759
      return sb.toString();
12760
    }
12761
 
3430 rajveer 12762
    public void validate() throws org.apache.thrift.TException {
3427 chandransh 12763
      // check for required fields
12764
    }
12765
 
3430 rajveer 12766
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12767
      try {
12768
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12769
      } catch (org.apache.thrift.TException te) {
12770
        throw new java.io.IOException(te);
12771
      }
12772
    }
12773
 
12774
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12775
      try {
12776
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12777
      } catch (org.apache.thrift.TException te) {
12778
        throw new java.io.IOException(te);
12779
      }
12780
    }
12781
 
3427 chandransh 12782
  }
12783
 
3430 rajveer 12784
  public static class getOrdersByShippingDate_result implements org.apache.thrift.TBase<getOrdersByShippingDate_result, getOrdersByShippingDate_result._Fields>, java.io.Serializable, Cloneable   {
12785
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByShippingDate_result");
3427 chandransh 12786
 
3430 rajveer 12787
    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);
12788
    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 12789
 
3430 rajveer 12790
    private List<Order> success; // required
12791
    private TransactionServiceException ex; // required
3427 chandransh 12792
 
12793
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12794
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3427 chandransh 12795
      SUCCESS((short)0, "success"),
12796
      EX((short)1, "ex");
12797
 
12798
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12799
 
12800
      static {
12801
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12802
          byName.put(field.getFieldName(), field);
12803
        }
12804
      }
12805
 
12806
      /**
12807
       * Find the _Fields constant that matches fieldId, or null if its not found.
12808
       */
12809
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12810
        switch(fieldId) {
12811
          case 0: // SUCCESS
12812
            return SUCCESS;
12813
          case 1: // EX
12814
            return EX;
12815
          default:
12816
            return null;
12817
        }
3427 chandransh 12818
      }
12819
 
12820
      /**
12821
       * Find the _Fields constant that matches fieldId, throwing an exception
12822
       * if it is not found.
12823
       */
12824
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12825
        _Fields fields = findByThriftId(fieldId);
12826
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12827
        return fields;
12828
      }
12829
 
12830
      /**
12831
       * Find the _Fields constant that matches name, or null if its not found.
12832
       */
12833
      public static _Fields findByName(String name) {
12834
        return byName.get(name);
12835
      }
12836
 
12837
      private final short _thriftId;
12838
      private final String _fieldName;
12839
 
12840
      _Fields(short thriftId, String fieldName) {
12841
        _thriftId = thriftId;
12842
        _fieldName = fieldName;
12843
      }
12844
 
12845
      public short getThriftFieldId() {
12846
        return _thriftId;
12847
      }
12848
 
12849
      public String getFieldName() {
12850
        return _fieldName;
12851
      }
12852
    }
12853
 
12854
    // isset id assignments
12855
 
3430 rajveer 12856
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3427 chandransh 12857
    static {
3430 rajveer 12858
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12859
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12860
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12861
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
12862
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12863
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12864
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12865
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByShippingDate_result.class, metaDataMap);
3427 chandransh 12866
    }
12867
 
12868
    public getOrdersByShippingDate_result() {
12869
    }
12870
 
12871
    public getOrdersByShippingDate_result(
12872
      List<Order> success,
12873
      TransactionServiceException ex)
12874
    {
12875
      this();
12876
      this.success = success;
12877
      this.ex = ex;
12878
    }
12879
 
12880
    /**
12881
     * Performs a deep copy on <i>other</i>.
12882
     */
12883
    public getOrdersByShippingDate_result(getOrdersByShippingDate_result other) {
12884
      if (other.isSetSuccess()) {
12885
        List<Order> __this__success = new ArrayList<Order>();
12886
        for (Order other_element : other.success) {
12887
          __this__success.add(new Order(other_element));
12888
        }
12889
        this.success = __this__success;
12890
      }
12891
      if (other.isSetEx()) {
12892
        this.ex = new TransactionServiceException(other.ex);
12893
      }
12894
    }
12895
 
12896
    public getOrdersByShippingDate_result deepCopy() {
12897
      return new getOrdersByShippingDate_result(this);
12898
    }
12899
 
3430 rajveer 12900
    @Override
12901
    public void clear() {
12902
      this.success = null;
12903
      this.ex = null;
3427 chandransh 12904
    }
12905
 
12906
    public int getSuccessSize() {
12907
      return (this.success == null) ? 0 : this.success.size();
12908
    }
12909
 
12910
    public java.util.Iterator<Order> getSuccessIterator() {
12911
      return (this.success == null) ? null : this.success.iterator();
12912
    }
12913
 
12914
    public void addToSuccess(Order elem) {
12915
      if (this.success == null) {
12916
        this.success = new ArrayList<Order>();
12917
      }
12918
      this.success.add(elem);
12919
    }
12920
 
12921
    public List<Order> getSuccess() {
12922
      return this.success;
12923
    }
12924
 
3430 rajveer 12925
    public void setSuccess(List<Order> success) {
3427 chandransh 12926
      this.success = success;
12927
    }
12928
 
12929
    public void unsetSuccess() {
12930
      this.success = null;
12931
    }
12932
 
3430 rajveer 12933
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3427 chandransh 12934
    public boolean isSetSuccess() {
12935
      return this.success != null;
12936
    }
12937
 
12938
    public void setSuccessIsSet(boolean value) {
12939
      if (!value) {
12940
        this.success = null;
12941
      }
12942
    }
12943
 
12944
    public TransactionServiceException getEx() {
12945
      return this.ex;
12946
    }
12947
 
3430 rajveer 12948
    public void setEx(TransactionServiceException ex) {
3427 chandransh 12949
      this.ex = ex;
12950
    }
12951
 
12952
    public void unsetEx() {
12953
      this.ex = null;
12954
    }
12955
 
3430 rajveer 12956
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3427 chandransh 12957
    public boolean isSetEx() {
12958
      return this.ex != null;
12959
    }
12960
 
12961
    public void setExIsSet(boolean value) {
12962
      if (!value) {
12963
        this.ex = null;
12964
      }
12965
    }
12966
 
12967
    public void setFieldValue(_Fields field, Object value) {
12968
      switch (field) {
12969
      case SUCCESS:
12970
        if (value == null) {
12971
          unsetSuccess();
12972
        } else {
12973
          setSuccess((List<Order>)value);
12974
        }
12975
        break;
12976
 
12977
      case EX:
12978
        if (value == null) {
12979
          unsetEx();
12980
        } else {
12981
          setEx((TransactionServiceException)value);
12982
        }
12983
        break;
12984
 
12985
      }
12986
    }
12987
 
12988
    public Object getFieldValue(_Fields field) {
12989
      switch (field) {
12990
      case SUCCESS:
12991
        return getSuccess();
12992
 
12993
      case EX:
12994
        return getEx();
12995
 
12996
      }
12997
      throw new IllegalStateException();
12998
    }
12999
 
3430 rajveer 13000
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13001
    public boolean isSet(_Fields field) {
13002
      if (field == null) {
13003
        throw new IllegalArgumentException();
13004
      }
3427 chandransh 13005
 
13006
      switch (field) {
13007
      case SUCCESS:
13008
        return isSetSuccess();
13009
      case EX:
13010
        return isSetEx();
13011
      }
13012
      throw new IllegalStateException();
13013
    }
13014
 
13015
    @Override
13016
    public boolean equals(Object that) {
13017
      if (that == null)
13018
        return false;
13019
      if (that instanceof getOrdersByShippingDate_result)
13020
        return this.equals((getOrdersByShippingDate_result)that);
13021
      return false;
13022
    }
13023
 
13024
    public boolean equals(getOrdersByShippingDate_result that) {
13025
      if (that == null)
13026
        return false;
13027
 
13028
      boolean this_present_success = true && this.isSetSuccess();
13029
      boolean that_present_success = true && that.isSetSuccess();
13030
      if (this_present_success || that_present_success) {
13031
        if (!(this_present_success && that_present_success))
13032
          return false;
13033
        if (!this.success.equals(that.success))
13034
          return false;
13035
      }
13036
 
13037
      boolean this_present_ex = true && this.isSetEx();
13038
      boolean that_present_ex = true && that.isSetEx();
13039
      if (this_present_ex || that_present_ex) {
13040
        if (!(this_present_ex && that_present_ex))
13041
          return false;
13042
        if (!this.ex.equals(that.ex))
13043
          return false;
13044
      }
13045
 
13046
      return true;
13047
    }
13048
 
13049
    @Override
13050
    public int hashCode() {
13051
      return 0;
13052
    }
13053
 
13054
    public int compareTo(getOrdersByShippingDate_result other) {
13055
      if (!getClass().equals(other.getClass())) {
13056
        return getClass().getName().compareTo(other.getClass().getName());
13057
      }
13058
 
13059
      int lastComparison = 0;
13060
      getOrdersByShippingDate_result typedOther = (getOrdersByShippingDate_result)other;
13061
 
3430 rajveer 13062
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3427 chandransh 13063
      if (lastComparison != 0) {
13064
        return lastComparison;
13065
      }
3430 rajveer 13066
      if (isSetSuccess()) {
13067
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13068
        if (lastComparison != 0) {
13069
          return lastComparison;
13070
        }
3427 chandransh 13071
      }
3430 rajveer 13072
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
3427 chandransh 13073
      if (lastComparison != 0) {
13074
        return lastComparison;
13075
      }
3430 rajveer 13076
      if (isSetEx()) {
13077
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
13078
        if (lastComparison != 0) {
13079
          return lastComparison;
13080
        }
3427 chandransh 13081
      }
13082
      return 0;
13083
    }
13084
 
3430 rajveer 13085
    public _Fields fieldForId(int fieldId) {
13086
      return _Fields.findByThriftId(fieldId);
13087
    }
13088
 
13089
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13090
      org.apache.thrift.protocol.TField field;
3427 chandransh 13091
      iprot.readStructBegin();
13092
      while (true)
13093
      {
13094
        field = iprot.readFieldBegin();
3430 rajveer 13095
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3427 chandransh 13096
          break;
13097
        }
3430 rajveer 13098
        switch (field.id) {
13099
          case 0: // SUCCESS
13100
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13101
              {
13102
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
13103
                this.success = new ArrayList<Order>(_list24.size);
13104
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
3427 chandransh 13105
                {
3430 rajveer 13106
                  Order _elem26; // required
13107
                  _elem26 = new Order();
13108
                  _elem26.read(iprot);
13109
                  this.success.add(_elem26);
3427 chandransh 13110
                }
3430 rajveer 13111
                iprot.readListEnd();
3427 chandransh 13112
              }
3430 rajveer 13113
            } else { 
13114
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13115
            }
13116
            break;
13117
          case 1: // EX
13118
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13119
              this.ex = new TransactionServiceException();
13120
              this.ex.read(iprot);
13121
            } else { 
13122
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13123
            }
13124
            break;
13125
          default:
13126
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3427 chandransh 13127
        }
3430 rajveer 13128
        iprot.readFieldEnd();
3427 chandransh 13129
      }
13130
      iprot.readStructEnd();
13131
      validate();
13132
    }
13133
 
3430 rajveer 13134
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3427 chandransh 13135
      oprot.writeStructBegin(STRUCT_DESC);
13136
 
13137
      if (this.isSetSuccess()) {
13138
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13139
        {
3430 rajveer 13140
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3427 chandransh 13141
          for (Order _iter27 : this.success)
13142
          {
13143
            _iter27.write(oprot);
13144
          }
13145
          oprot.writeListEnd();
13146
        }
13147
        oprot.writeFieldEnd();
13148
      } else if (this.isSetEx()) {
13149
        oprot.writeFieldBegin(EX_FIELD_DESC);
13150
        this.ex.write(oprot);
13151
        oprot.writeFieldEnd();
13152
      }
13153
      oprot.writeFieldStop();
13154
      oprot.writeStructEnd();
13155
    }
13156
 
13157
    @Override
13158
    public String toString() {
13159
      StringBuilder sb = new StringBuilder("getOrdersByShippingDate_result(");
13160
      boolean first = true;
13161
 
13162
      sb.append("success:");
13163
      if (this.success == null) {
13164
        sb.append("null");
13165
      } else {
13166
        sb.append(this.success);
13167
      }
13168
      first = false;
13169
      if (!first) sb.append(", ");
13170
      sb.append("ex:");
13171
      if (this.ex == null) {
13172
        sb.append("null");
13173
      } else {
13174
        sb.append(this.ex);
13175
      }
13176
      first = false;
13177
      sb.append(")");
13178
      return sb.toString();
13179
    }
13180
 
3430 rajveer 13181
    public void validate() throws org.apache.thrift.TException {
3427 chandransh 13182
      // check for required fields
13183
    }
13184
 
3430 rajveer 13185
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13186
      try {
13187
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13188
      } catch (org.apache.thrift.TException te) {
13189
        throw new java.io.IOException(te);
13190
      }
13191
    }
13192
 
13193
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13194
      try {
13195
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13196
      } catch (org.apache.thrift.TException te) {
13197
        throw new java.io.IOException(te);
13198
      }
13199
    }
13200
 
3427 chandransh 13201
  }
13202
 
3430 rajveer 13203
  public static class getReturnableOrdersForCustomer_args implements org.apache.thrift.TBase<getReturnableOrdersForCustomer_args, getReturnableOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
13204
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnableOrdersForCustomer_args");
1382 varun.gupt 13205
 
3430 rajveer 13206
    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);
13207
    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 13208
 
3430 rajveer 13209
    private long customer_id; // required
13210
    private long limit; // required
1382 varun.gupt 13211
 
13212
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13213
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 13214
      CUSTOMER_ID((short)1, "customer_id"),
13215
      LIMIT((short)2, "limit");
13216
 
13217
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13218
 
13219
      static {
13220
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13221
          byName.put(field.getFieldName(), field);
13222
        }
13223
      }
13224
 
13225
      /**
13226
       * Find the _Fields constant that matches fieldId, or null if its not found.
13227
       */
13228
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13229
        switch(fieldId) {
13230
          case 1: // CUSTOMER_ID
13231
            return CUSTOMER_ID;
13232
          case 2: // LIMIT
13233
            return LIMIT;
13234
          default:
13235
            return null;
13236
        }
1382 varun.gupt 13237
      }
13238
 
13239
      /**
13240
       * Find the _Fields constant that matches fieldId, throwing an exception
13241
       * if it is not found.
13242
       */
13243
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13244
        _Fields fields = findByThriftId(fieldId);
13245
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13246
        return fields;
13247
      }
13248
 
13249
      /**
13250
       * Find the _Fields constant that matches name, or null if its not found.
13251
       */
13252
      public static _Fields findByName(String name) {
13253
        return byName.get(name);
13254
      }
13255
 
13256
      private final short _thriftId;
13257
      private final String _fieldName;
13258
 
13259
      _Fields(short thriftId, String fieldName) {
13260
        _thriftId = thriftId;
13261
        _fieldName = fieldName;
13262
      }
13263
 
13264
      public short getThriftFieldId() {
13265
        return _thriftId;
13266
      }
13267
 
13268
      public String getFieldName() {
13269
        return _fieldName;
13270
      }
13271
    }
13272
 
13273
    // isset id assignments
13274
    private static final int __CUSTOMER_ID_ISSET_ID = 0;
13275
    private static final int __LIMIT_ISSET_ID = 1;
13276
    private BitSet __isset_bit_vector = new BitSet(2);
13277
 
3430 rajveer 13278
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 13279
    static {
3430 rajveer 13280
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13281
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customer_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13282
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13283
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13284
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13285
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13286
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnableOrdersForCustomer_args.class, metaDataMap);
1382 varun.gupt 13287
    }
13288
 
13289
    public getReturnableOrdersForCustomer_args() {
13290
    }
13291
 
13292
    public getReturnableOrdersForCustomer_args(
13293
      long customer_id,
13294
      long limit)
13295
    {
13296
      this();
13297
      this.customer_id = customer_id;
13298
      setCustomer_idIsSet(true);
13299
      this.limit = limit;
13300
      setLimitIsSet(true);
13301
    }
13302
 
13303
    /**
13304
     * Performs a deep copy on <i>other</i>.
13305
     */
13306
    public getReturnableOrdersForCustomer_args(getReturnableOrdersForCustomer_args other) {
13307
      __isset_bit_vector.clear();
13308
      __isset_bit_vector.or(other.__isset_bit_vector);
13309
      this.customer_id = other.customer_id;
13310
      this.limit = other.limit;
13311
    }
13312
 
13313
    public getReturnableOrdersForCustomer_args deepCopy() {
13314
      return new getReturnableOrdersForCustomer_args(this);
13315
    }
13316
 
3430 rajveer 13317
    @Override
13318
    public void clear() {
13319
      setCustomer_idIsSet(false);
13320
      this.customer_id = 0;
13321
      setLimitIsSet(false);
13322
      this.limit = 0;
1382 varun.gupt 13323
    }
13324
 
13325
    public long getCustomer_id() {
13326
      return this.customer_id;
13327
    }
13328
 
3430 rajveer 13329
    public void setCustomer_id(long customer_id) {
1382 varun.gupt 13330
      this.customer_id = customer_id;
13331
      setCustomer_idIsSet(true);
13332
    }
13333
 
13334
    public void unsetCustomer_id() {
13335
      __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
13336
    }
13337
 
3430 rajveer 13338
    /** Returns true if field customer_id is set (has been assigned a value) and false otherwise */
1382 varun.gupt 13339
    public boolean isSetCustomer_id() {
13340
      return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
13341
    }
13342
 
13343
    public void setCustomer_idIsSet(boolean value) {
13344
      __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
13345
    }
13346
 
13347
    public long getLimit() {
13348
      return this.limit;
13349
    }
13350
 
3430 rajveer 13351
    public void setLimit(long limit) {
1382 varun.gupt 13352
      this.limit = limit;
13353
      setLimitIsSet(true);
13354
    }
13355
 
13356
    public void unsetLimit() {
13357
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
13358
    }
13359
 
3430 rajveer 13360
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
1382 varun.gupt 13361
    public boolean isSetLimit() {
13362
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
13363
    }
13364
 
13365
    public void setLimitIsSet(boolean value) {
13366
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
13367
    }
13368
 
13369
    public void setFieldValue(_Fields field, Object value) {
13370
      switch (field) {
13371
      case CUSTOMER_ID:
13372
        if (value == null) {
13373
          unsetCustomer_id();
13374
        } else {
13375
          setCustomer_id((Long)value);
13376
        }
13377
        break;
13378
 
13379
      case LIMIT:
13380
        if (value == null) {
13381
          unsetLimit();
13382
        } else {
13383
          setLimit((Long)value);
13384
        }
13385
        break;
13386
 
13387
      }
13388
    }
13389
 
13390
    public Object getFieldValue(_Fields field) {
13391
      switch (field) {
13392
      case CUSTOMER_ID:
3430 rajveer 13393
        return Long.valueOf(getCustomer_id());
1382 varun.gupt 13394
 
13395
      case LIMIT:
3430 rajveer 13396
        return Long.valueOf(getLimit());
1382 varun.gupt 13397
 
13398
      }
13399
      throw new IllegalStateException();
13400
    }
13401
 
3430 rajveer 13402
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13403
    public boolean isSet(_Fields field) {
13404
      if (field == null) {
13405
        throw new IllegalArgumentException();
13406
      }
1382 varun.gupt 13407
 
13408
      switch (field) {
13409
      case CUSTOMER_ID:
13410
        return isSetCustomer_id();
13411
      case LIMIT:
13412
        return isSetLimit();
13413
      }
13414
      throw new IllegalStateException();
13415
    }
13416
 
13417
    @Override
13418
    public boolean equals(Object that) {
13419
      if (that == null)
13420
        return false;
13421
      if (that instanceof getReturnableOrdersForCustomer_args)
13422
        return this.equals((getReturnableOrdersForCustomer_args)that);
13423
      return false;
13424
    }
13425
 
13426
    public boolean equals(getReturnableOrdersForCustomer_args that) {
13427
      if (that == null)
13428
        return false;
13429
 
13430
      boolean this_present_customer_id = true;
13431
      boolean that_present_customer_id = true;
13432
      if (this_present_customer_id || that_present_customer_id) {
13433
        if (!(this_present_customer_id && that_present_customer_id))
13434
          return false;
13435
        if (this.customer_id != that.customer_id)
13436
          return false;
13437
      }
13438
 
13439
      boolean this_present_limit = true;
13440
      boolean that_present_limit = true;
13441
      if (this_present_limit || that_present_limit) {
13442
        if (!(this_present_limit && that_present_limit))
13443
          return false;
13444
        if (this.limit != that.limit)
13445
          return false;
13446
      }
13447
 
13448
      return true;
13449
    }
13450
 
13451
    @Override
13452
    public int hashCode() {
13453
      return 0;
13454
    }
13455
 
13456
    public int compareTo(getReturnableOrdersForCustomer_args other) {
13457
      if (!getClass().equals(other.getClass())) {
13458
        return getClass().getName().compareTo(other.getClass().getName());
13459
      }
13460
 
13461
      int lastComparison = 0;
13462
      getReturnableOrdersForCustomer_args typedOther = (getReturnableOrdersForCustomer_args)other;
13463
 
3430 rajveer 13464
      lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(typedOther.isSetCustomer_id());
1382 varun.gupt 13465
      if (lastComparison != 0) {
13466
        return lastComparison;
13467
      }
3430 rajveer 13468
      if (isSetCustomer_id()) {
13469
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_id, typedOther.customer_id);
13470
        if (lastComparison != 0) {
13471
          return lastComparison;
13472
        }
1382 varun.gupt 13473
      }
3430 rajveer 13474
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
1382 varun.gupt 13475
      if (lastComparison != 0) {
13476
        return lastComparison;
13477
      }
3430 rajveer 13478
      if (isSetLimit()) {
13479
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
13480
        if (lastComparison != 0) {
13481
          return lastComparison;
13482
        }
1382 varun.gupt 13483
      }
13484
      return 0;
13485
    }
13486
 
3430 rajveer 13487
    public _Fields fieldForId(int fieldId) {
13488
      return _Fields.findByThriftId(fieldId);
13489
    }
13490
 
13491
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13492
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 13493
      iprot.readStructBegin();
13494
      while (true)
13495
      {
13496
        field = iprot.readFieldBegin();
3430 rajveer 13497
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 13498
          break;
13499
        }
3430 rajveer 13500
        switch (field.id) {
13501
          case 1: // CUSTOMER_ID
13502
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13503
              this.customer_id = iprot.readI64();
13504
              setCustomer_idIsSet(true);
13505
            } else { 
13506
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13507
            }
13508
            break;
13509
          case 2: // LIMIT
13510
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13511
              this.limit = iprot.readI64();
13512
              setLimitIsSet(true);
13513
            } else { 
13514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13515
            }
13516
            break;
13517
          default:
13518
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 13519
        }
3430 rajveer 13520
        iprot.readFieldEnd();
1382 varun.gupt 13521
      }
13522
      iprot.readStructEnd();
13523
      validate();
13524
    }
13525
 
3430 rajveer 13526
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 13527
      validate();
13528
 
13529
      oprot.writeStructBegin(STRUCT_DESC);
13530
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
13531
      oprot.writeI64(this.customer_id);
13532
      oprot.writeFieldEnd();
13533
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
13534
      oprot.writeI64(this.limit);
13535
      oprot.writeFieldEnd();
13536
      oprot.writeFieldStop();
13537
      oprot.writeStructEnd();
13538
    }
13539
 
13540
    @Override
13541
    public String toString() {
13542
      StringBuilder sb = new StringBuilder("getReturnableOrdersForCustomer_args(");
13543
      boolean first = true;
13544
 
13545
      sb.append("customer_id:");
13546
      sb.append(this.customer_id);
13547
      first = false;
13548
      if (!first) sb.append(", ");
13549
      sb.append("limit:");
13550
      sb.append(this.limit);
13551
      first = false;
13552
      sb.append(")");
13553
      return sb.toString();
13554
    }
13555
 
3430 rajveer 13556
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 13557
      // check for required fields
13558
    }
13559
 
3430 rajveer 13560
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13561
      try {
13562
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13563
      } catch (org.apache.thrift.TException te) {
13564
        throw new java.io.IOException(te);
13565
      }
13566
    }
13567
 
13568
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13569
      try {
13570
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13571
        __isset_bit_vector = new BitSet(1);
13572
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13573
      } catch (org.apache.thrift.TException te) {
13574
        throw new java.io.IOException(te);
13575
      }
13576
    }
13577
 
1382 varun.gupt 13578
  }
13579
 
3430 rajveer 13580
  public static class getReturnableOrdersForCustomer_result implements org.apache.thrift.TBase<getReturnableOrdersForCustomer_result, getReturnableOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
13581
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnableOrdersForCustomer_result");
1382 varun.gupt 13582
 
3430 rajveer 13583
    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);
13584
    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 13585
 
3430 rajveer 13586
    private List<Long> success; // required
13587
    private TransactionServiceException ex; // required
1382 varun.gupt 13588
 
13589
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13590
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 13591
      SUCCESS((short)0, "success"),
13592
      EX((short)1, "ex");
13593
 
13594
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13595
 
13596
      static {
13597
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13598
          byName.put(field.getFieldName(), field);
13599
        }
13600
      }
13601
 
13602
      /**
13603
       * Find the _Fields constant that matches fieldId, or null if its not found.
13604
       */
13605
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13606
        switch(fieldId) {
13607
          case 0: // SUCCESS
13608
            return SUCCESS;
13609
          case 1: // EX
13610
            return EX;
13611
          default:
13612
            return null;
13613
        }
1382 varun.gupt 13614
      }
13615
 
13616
      /**
13617
       * Find the _Fields constant that matches fieldId, throwing an exception
13618
       * if it is not found.
13619
       */
13620
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13621
        _Fields fields = findByThriftId(fieldId);
13622
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13623
        return fields;
13624
      }
13625
 
13626
      /**
13627
       * Find the _Fields constant that matches name, or null if its not found.
13628
       */
13629
      public static _Fields findByName(String name) {
13630
        return byName.get(name);
13631
      }
13632
 
13633
      private final short _thriftId;
13634
      private final String _fieldName;
13635
 
13636
      _Fields(short thriftId, String fieldName) {
13637
        _thriftId = thriftId;
13638
        _fieldName = fieldName;
13639
      }
13640
 
13641
      public short getThriftFieldId() {
13642
        return _thriftId;
13643
      }
13644
 
13645
      public String getFieldName() {
13646
        return _fieldName;
13647
      }
13648
    }
13649
 
13650
    // isset id assignments
13651
 
3430 rajveer 13652
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 13653
    static {
3430 rajveer 13654
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13655
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13656
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13657
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
13658
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13659
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13660
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13661
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnableOrdersForCustomer_result.class, metaDataMap);
1382 varun.gupt 13662
    }
13663
 
13664
    public getReturnableOrdersForCustomer_result() {
13665
    }
13666
 
13667
    public getReturnableOrdersForCustomer_result(
13668
      List<Long> success,
13669
      TransactionServiceException ex)
13670
    {
13671
      this();
13672
      this.success = success;
13673
      this.ex = ex;
13674
    }
13675
 
13676
    /**
13677
     * Performs a deep copy on <i>other</i>.
13678
     */
13679
    public getReturnableOrdersForCustomer_result(getReturnableOrdersForCustomer_result other) {
13680
      if (other.isSetSuccess()) {
13681
        List<Long> __this__success = new ArrayList<Long>();
13682
        for (Long other_element : other.success) {
13683
          __this__success.add(other_element);
13684
        }
13685
        this.success = __this__success;
13686
      }
13687
      if (other.isSetEx()) {
13688
        this.ex = new TransactionServiceException(other.ex);
13689
      }
13690
    }
13691
 
13692
    public getReturnableOrdersForCustomer_result deepCopy() {
13693
      return new getReturnableOrdersForCustomer_result(this);
13694
    }
13695
 
3430 rajveer 13696
    @Override
13697
    public void clear() {
13698
      this.success = null;
13699
      this.ex = null;
1382 varun.gupt 13700
    }
13701
 
13702
    public int getSuccessSize() {
13703
      return (this.success == null) ? 0 : this.success.size();
13704
    }
13705
 
13706
    public java.util.Iterator<Long> getSuccessIterator() {
13707
      return (this.success == null) ? null : this.success.iterator();
13708
    }
13709
 
13710
    public void addToSuccess(long elem) {
13711
      if (this.success == null) {
13712
        this.success = new ArrayList<Long>();
13713
      }
13714
      this.success.add(elem);
13715
    }
13716
 
13717
    public List<Long> getSuccess() {
13718
      return this.success;
13719
    }
13720
 
3430 rajveer 13721
    public void setSuccess(List<Long> success) {
1382 varun.gupt 13722
      this.success = success;
13723
    }
13724
 
13725
    public void unsetSuccess() {
13726
      this.success = null;
13727
    }
13728
 
3430 rajveer 13729
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1382 varun.gupt 13730
    public boolean isSetSuccess() {
13731
      return this.success != null;
13732
    }
13733
 
13734
    public void setSuccessIsSet(boolean value) {
13735
      if (!value) {
13736
        this.success = null;
13737
      }
13738
    }
13739
 
13740
    public TransactionServiceException getEx() {
13741
      return this.ex;
13742
    }
13743
 
3430 rajveer 13744
    public void setEx(TransactionServiceException ex) {
1382 varun.gupt 13745
      this.ex = ex;
13746
    }
13747
 
13748
    public void unsetEx() {
13749
      this.ex = null;
13750
    }
13751
 
3430 rajveer 13752
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1382 varun.gupt 13753
    public boolean isSetEx() {
13754
      return this.ex != null;
13755
    }
13756
 
13757
    public void setExIsSet(boolean value) {
13758
      if (!value) {
13759
        this.ex = null;
13760
      }
13761
    }
13762
 
13763
    public void setFieldValue(_Fields field, Object value) {
13764
      switch (field) {
13765
      case SUCCESS:
13766
        if (value == null) {
13767
          unsetSuccess();
13768
        } else {
13769
          setSuccess((List<Long>)value);
13770
        }
13771
        break;
13772
 
13773
      case EX:
13774
        if (value == null) {
13775
          unsetEx();
13776
        } else {
13777
          setEx((TransactionServiceException)value);
13778
        }
13779
        break;
13780
 
13781
      }
13782
    }
13783
 
13784
    public Object getFieldValue(_Fields field) {
13785
      switch (field) {
13786
      case SUCCESS:
13787
        return getSuccess();
13788
 
13789
      case EX:
13790
        return getEx();
13791
 
13792
      }
13793
      throw new IllegalStateException();
13794
    }
13795
 
3430 rajveer 13796
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13797
    public boolean isSet(_Fields field) {
13798
      if (field == null) {
13799
        throw new IllegalArgumentException();
13800
      }
1382 varun.gupt 13801
 
13802
      switch (field) {
13803
      case SUCCESS:
13804
        return isSetSuccess();
13805
      case EX:
13806
        return isSetEx();
13807
      }
13808
      throw new IllegalStateException();
13809
    }
13810
 
13811
    @Override
13812
    public boolean equals(Object that) {
13813
      if (that == null)
13814
        return false;
13815
      if (that instanceof getReturnableOrdersForCustomer_result)
13816
        return this.equals((getReturnableOrdersForCustomer_result)that);
13817
      return false;
13818
    }
13819
 
13820
    public boolean equals(getReturnableOrdersForCustomer_result that) {
13821
      if (that == null)
13822
        return false;
13823
 
13824
      boolean this_present_success = true && this.isSetSuccess();
13825
      boolean that_present_success = true && that.isSetSuccess();
13826
      if (this_present_success || that_present_success) {
13827
        if (!(this_present_success && that_present_success))
13828
          return false;
13829
        if (!this.success.equals(that.success))
13830
          return false;
13831
      }
13832
 
13833
      boolean this_present_ex = true && this.isSetEx();
13834
      boolean that_present_ex = true && that.isSetEx();
13835
      if (this_present_ex || that_present_ex) {
13836
        if (!(this_present_ex && that_present_ex))
13837
          return false;
13838
        if (!this.ex.equals(that.ex))
13839
          return false;
13840
      }
13841
 
13842
      return true;
13843
    }
13844
 
13845
    @Override
13846
    public int hashCode() {
13847
      return 0;
13848
    }
13849
 
13850
    public int compareTo(getReturnableOrdersForCustomer_result other) {
13851
      if (!getClass().equals(other.getClass())) {
13852
        return getClass().getName().compareTo(other.getClass().getName());
13853
      }
13854
 
13855
      int lastComparison = 0;
13856
      getReturnableOrdersForCustomer_result typedOther = (getReturnableOrdersForCustomer_result)other;
13857
 
3430 rajveer 13858
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1382 varun.gupt 13859
      if (lastComparison != 0) {
13860
        return lastComparison;
13861
      }
3430 rajveer 13862
      if (isSetSuccess()) {
13863
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13864
        if (lastComparison != 0) {
13865
          return lastComparison;
13866
        }
1382 varun.gupt 13867
      }
3430 rajveer 13868
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1382 varun.gupt 13869
      if (lastComparison != 0) {
13870
        return lastComparison;
13871
      }
3430 rajveer 13872
      if (isSetEx()) {
13873
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
13874
        if (lastComparison != 0) {
13875
          return lastComparison;
13876
        }
1382 varun.gupt 13877
      }
13878
      return 0;
13879
    }
13880
 
3430 rajveer 13881
    public _Fields fieldForId(int fieldId) {
13882
      return _Fields.findByThriftId(fieldId);
13883
    }
13884
 
13885
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13886
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 13887
      iprot.readStructBegin();
13888
      while (true)
13889
      {
13890
        field = iprot.readFieldBegin();
3430 rajveer 13891
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 13892
          break;
13893
        }
3430 rajveer 13894
        switch (field.id) {
13895
          case 0: // SUCCESS
13896
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13897
              {
13898
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
13899
                this.success = new ArrayList<Long>(_list28.size);
13900
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
1382 varun.gupt 13901
                {
3430 rajveer 13902
                  long _elem30; // required
13903
                  _elem30 = iprot.readI64();
13904
                  this.success.add(_elem30);
1382 varun.gupt 13905
                }
3430 rajveer 13906
                iprot.readListEnd();
1382 varun.gupt 13907
              }
3430 rajveer 13908
            } else { 
13909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13910
            }
13911
            break;
13912
          case 1: // EX
13913
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13914
              this.ex = new TransactionServiceException();
13915
              this.ex.read(iprot);
13916
            } else { 
13917
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13918
            }
13919
            break;
13920
          default:
13921
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 13922
        }
3430 rajveer 13923
        iprot.readFieldEnd();
1382 varun.gupt 13924
      }
13925
      iprot.readStructEnd();
13926
      validate();
13927
    }
13928
 
3430 rajveer 13929
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 13930
      oprot.writeStructBegin(STRUCT_DESC);
13931
 
13932
      if (this.isSetSuccess()) {
13933
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13934
        {
3430 rajveer 13935
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3427 chandransh 13936
          for (long _iter31 : this.success)
1382 varun.gupt 13937
          {
3427 chandransh 13938
            oprot.writeI64(_iter31);
1382 varun.gupt 13939
          }
13940
          oprot.writeListEnd();
13941
        }
13942
        oprot.writeFieldEnd();
13943
      } else if (this.isSetEx()) {
13944
        oprot.writeFieldBegin(EX_FIELD_DESC);
13945
        this.ex.write(oprot);
13946
        oprot.writeFieldEnd();
13947
      }
13948
      oprot.writeFieldStop();
13949
      oprot.writeStructEnd();
13950
    }
13951
 
13952
    @Override
13953
    public String toString() {
13954
      StringBuilder sb = new StringBuilder("getReturnableOrdersForCustomer_result(");
13955
      boolean first = true;
13956
 
13957
      sb.append("success:");
13958
      if (this.success == null) {
13959
        sb.append("null");
13960
      } else {
13961
        sb.append(this.success);
13962
      }
13963
      first = false;
13964
      if (!first) sb.append(", ");
13965
      sb.append("ex:");
13966
      if (this.ex == null) {
13967
        sb.append("null");
13968
      } else {
13969
        sb.append(this.ex);
13970
      }
13971
      first = false;
13972
      sb.append(")");
13973
      return sb.toString();
13974
    }
13975
 
3430 rajveer 13976
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 13977
      // check for required fields
13978
    }
13979
 
3430 rajveer 13980
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13981
      try {
13982
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13983
      } catch (org.apache.thrift.TException te) {
13984
        throw new java.io.IOException(te);
13985
      }
13986
    }
13987
 
13988
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13989
      try {
13990
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13991
      } catch (org.apache.thrift.TException te) {
13992
        throw new java.io.IOException(te);
13993
      }
13994
    }
13995
 
1382 varun.gupt 13996
  }
13997
 
3430 rajveer 13998
  public static class getCancellableOrdersForCustomer_args implements org.apache.thrift.TBase<getCancellableOrdersForCustomer_args, getCancellableOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
13999
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCancellableOrdersForCustomer_args");
1382 varun.gupt 14000
 
3430 rajveer 14001
    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);
14002
    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 14003
 
3430 rajveer 14004
    private long customer_id; // required
14005
    private long limit; // required
1382 varun.gupt 14006
 
14007
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14008
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 14009
      CUSTOMER_ID((short)1, "customer_id"),
14010
      LIMIT((short)2, "limit");
14011
 
14012
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14013
 
14014
      static {
14015
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14016
          byName.put(field.getFieldName(), field);
14017
        }
14018
      }
14019
 
14020
      /**
14021
       * Find the _Fields constant that matches fieldId, or null if its not found.
14022
       */
14023
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14024
        switch(fieldId) {
14025
          case 1: // CUSTOMER_ID
14026
            return CUSTOMER_ID;
14027
          case 2: // LIMIT
14028
            return LIMIT;
14029
          default:
14030
            return null;
14031
        }
1382 varun.gupt 14032
      }
14033
 
14034
      /**
14035
       * Find the _Fields constant that matches fieldId, throwing an exception
14036
       * if it is not found.
14037
       */
14038
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14039
        _Fields fields = findByThriftId(fieldId);
14040
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14041
        return fields;
14042
      }
14043
 
14044
      /**
14045
       * Find the _Fields constant that matches name, or null if its not found.
14046
       */
14047
      public static _Fields findByName(String name) {
14048
        return byName.get(name);
14049
      }
14050
 
14051
      private final short _thriftId;
14052
      private final String _fieldName;
14053
 
14054
      _Fields(short thriftId, String fieldName) {
14055
        _thriftId = thriftId;
14056
        _fieldName = fieldName;
14057
      }
14058
 
14059
      public short getThriftFieldId() {
14060
        return _thriftId;
14061
      }
14062
 
14063
      public String getFieldName() {
14064
        return _fieldName;
14065
      }
14066
    }
14067
 
14068
    // isset id assignments
14069
    private static final int __CUSTOMER_ID_ISSET_ID = 0;
14070
    private static final int __LIMIT_ISSET_ID = 1;
14071
    private BitSet __isset_bit_vector = new BitSet(2);
14072
 
3430 rajveer 14073
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 14074
    static {
3430 rajveer 14075
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14076
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customer_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14077
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14078
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14079
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14080
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14081
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCancellableOrdersForCustomer_args.class, metaDataMap);
1382 varun.gupt 14082
    }
14083
 
14084
    public getCancellableOrdersForCustomer_args() {
14085
    }
14086
 
14087
    public getCancellableOrdersForCustomer_args(
14088
      long customer_id,
14089
      long limit)
14090
    {
14091
      this();
14092
      this.customer_id = customer_id;
14093
      setCustomer_idIsSet(true);
14094
      this.limit = limit;
14095
      setLimitIsSet(true);
14096
    }
14097
 
14098
    /**
14099
     * Performs a deep copy on <i>other</i>.
14100
     */
14101
    public getCancellableOrdersForCustomer_args(getCancellableOrdersForCustomer_args other) {
14102
      __isset_bit_vector.clear();
14103
      __isset_bit_vector.or(other.__isset_bit_vector);
14104
      this.customer_id = other.customer_id;
14105
      this.limit = other.limit;
14106
    }
14107
 
14108
    public getCancellableOrdersForCustomer_args deepCopy() {
14109
      return new getCancellableOrdersForCustomer_args(this);
14110
    }
14111
 
3430 rajveer 14112
    @Override
14113
    public void clear() {
14114
      setCustomer_idIsSet(false);
14115
      this.customer_id = 0;
14116
      setLimitIsSet(false);
14117
      this.limit = 0;
1382 varun.gupt 14118
    }
14119
 
14120
    public long getCustomer_id() {
14121
      return this.customer_id;
14122
    }
14123
 
3430 rajveer 14124
    public void setCustomer_id(long customer_id) {
1382 varun.gupt 14125
      this.customer_id = customer_id;
14126
      setCustomer_idIsSet(true);
14127
    }
14128
 
14129
    public void unsetCustomer_id() {
14130
      __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
14131
    }
14132
 
3430 rajveer 14133
    /** Returns true if field customer_id is set (has been assigned a value) and false otherwise */
1382 varun.gupt 14134
    public boolean isSetCustomer_id() {
14135
      return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
14136
    }
14137
 
14138
    public void setCustomer_idIsSet(boolean value) {
14139
      __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
14140
    }
14141
 
14142
    public long getLimit() {
14143
      return this.limit;
14144
    }
14145
 
3430 rajveer 14146
    public void setLimit(long limit) {
1382 varun.gupt 14147
      this.limit = limit;
14148
      setLimitIsSet(true);
14149
    }
14150
 
14151
    public void unsetLimit() {
14152
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
14153
    }
14154
 
3430 rajveer 14155
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
1382 varun.gupt 14156
    public boolean isSetLimit() {
14157
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
14158
    }
14159
 
14160
    public void setLimitIsSet(boolean value) {
14161
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
14162
    }
14163
 
14164
    public void setFieldValue(_Fields field, Object value) {
14165
      switch (field) {
14166
      case CUSTOMER_ID:
14167
        if (value == null) {
14168
          unsetCustomer_id();
14169
        } else {
14170
          setCustomer_id((Long)value);
14171
        }
14172
        break;
14173
 
14174
      case LIMIT:
14175
        if (value == null) {
14176
          unsetLimit();
14177
        } else {
14178
          setLimit((Long)value);
14179
        }
14180
        break;
14181
 
14182
      }
14183
    }
14184
 
14185
    public Object getFieldValue(_Fields field) {
14186
      switch (field) {
14187
      case CUSTOMER_ID:
3430 rajveer 14188
        return Long.valueOf(getCustomer_id());
1382 varun.gupt 14189
 
14190
      case LIMIT:
3430 rajveer 14191
        return Long.valueOf(getLimit());
1382 varun.gupt 14192
 
14193
      }
14194
      throw new IllegalStateException();
14195
    }
14196
 
3430 rajveer 14197
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14198
    public boolean isSet(_Fields field) {
14199
      if (field == null) {
14200
        throw new IllegalArgumentException();
14201
      }
1382 varun.gupt 14202
 
14203
      switch (field) {
14204
      case CUSTOMER_ID:
14205
        return isSetCustomer_id();
14206
      case LIMIT:
14207
        return isSetLimit();
14208
      }
14209
      throw new IllegalStateException();
14210
    }
14211
 
14212
    @Override
14213
    public boolean equals(Object that) {
14214
      if (that == null)
14215
        return false;
14216
      if (that instanceof getCancellableOrdersForCustomer_args)
14217
        return this.equals((getCancellableOrdersForCustomer_args)that);
14218
      return false;
14219
    }
14220
 
14221
    public boolean equals(getCancellableOrdersForCustomer_args that) {
14222
      if (that == null)
14223
        return false;
14224
 
14225
      boolean this_present_customer_id = true;
14226
      boolean that_present_customer_id = true;
14227
      if (this_present_customer_id || that_present_customer_id) {
14228
        if (!(this_present_customer_id && that_present_customer_id))
14229
          return false;
14230
        if (this.customer_id != that.customer_id)
14231
          return false;
14232
      }
14233
 
14234
      boolean this_present_limit = true;
14235
      boolean that_present_limit = true;
14236
      if (this_present_limit || that_present_limit) {
14237
        if (!(this_present_limit && that_present_limit))
14238
          return false;
14239
        if (this.limit != that.limit)
14240
          return false;
14241
      }
14242
 
14243
      return true;
14244
    }
14245
 
14246
    @Override
14247
    public int hashCode() {
14248
      return 0;
14249
    }
14250
 
14251
    public int compareTo(getCancellableOrdersForCustomer_args other) {
14252
      if (!getClass().equals(other.getClass())) {
14253
        return getClass().getName().compareTo(other.getClass().getName());
14254
      }
14255
 
14256
      int lastComparison = 0;
14257
      getCancellableOrdersForCustomer_args typedOther = (getCancellableOrdersForCustomer_args)other;
14258
 
3430 rajveer 14259
      lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(typedOther.isSetCustomer_id());
1382 varun.gupt 14260
      if (lastComparison != 0) {
14261
        return lastComparison;
14262
      }
3430 rajveer 14263
      if (isSetCustomer_id()) {
14264
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_id, typedOther.customer_id);
14265
        if (lastComparison != 0) {
14266
          return lastComparison;
14267
        }
1382 varun.gupt 14268
      }
3430 rajveer 14269
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
1382 varun.gupt 14270
      if (lastComparison != 0) {
14271
        return lastComparison;
14272
      }
3430 rajveer 14273
      if (isSetLimit()) {
14274
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
14275
        if (lastComparison != 0) {
14276
          return lastComparison;
14277
        }
1382 varun.gupt 14278
      }
14279
      return 0;
14280
    }
14281
 
3430 rajveer 14282
    public _Fields fieldForId(int fieldId) {
14283
      return _Fields.findByThriftId(fieldId);
14284
    }
14285
 
14286
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14287
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 14288
      iprot.readStructBegin();
14289
      while (true)
14290
      {
14291
        field = iprot.readFieldBegin();
3430 rajveer 14292
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 14293
          break;
14294
        }
3430 rajveer 14295
        switch (field.id) {
14296
          case 1: // CUSTOMER_ID
14297
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14298
              this.customer_id = iprot.readI64();
14299
              setCustomer_idIsSet(true);
14300
            } else { 
14301
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14302
            }
14303
            break;
14304
          case 2: // LIMIT
14305
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14306
              this.limit = iprot.readI64();
14307
              setLimitIsSet(true);
14308
            } else { 
14309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14310
            }
14311
            break;
14312
          default:
14313
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 14314
        }
3430 rajveer 14315
        iprot.readFieldEnd();
1382 varun.gupt 14316
      }
14317
      iprot.readStructEnd();
14318
      validate();
14319
    }
14320
 
3430 rajveer 14321
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 14322
      validate();
14323
 
14324
      oprot.writeStructBegin(STRUCT_DESC);
14325
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
14326
      oprot.writeI64(this.customer_id);
14327
      oprot.writeFieldEnd();
14328
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
14329
      oprot.writeI64(this.limit);
14330
      oprot.writeFieldEnd();
14331
      oprot.writeFieldStop();
14332
      oprot.writeStructEnd();
14333
    }
14334
 
14335
    @Override
14336
    public String toString() {
14337
      StringBuilder sb = new StringBuilder("getCancellableOrdersForCustomer_args(");
14338
      boolean first = true;
14339
 
14340
      sb.append("customer_id:");
14341
      sb.append(this.customer_id);
14342
      first = false;
14343
      if (!first) sb.append(", ");
14344
      sb.append("limit:");
14345
      sb.append(this.limit);
14346
      first = false;
14347
      sb.append(")");
14348
      return sb.toString();
14349
    }
14350
 
3430 rajveer 14351
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 14352
      // check for required fields
14353
    }
14354
 
3430 rajveer 14355
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14356
      try {
14357
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14358
      } catch (org.apache.thrift.TException te) {
14359
        throw new java.io.IOException(te);
14360
      }
14361
    }
14362
 
14363
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14364
      try {
14365
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14366
        __isset_bit_vector = new BitSet(1);
14367
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14368
      } catch (org.apache.thrift.TException te) {
14369
        throw new java.io.IOException(te);
14370
      }
14371
    }
14372
 
1382 varun.gupt 14373
  }
14374
 
3430 rajveer 14375
  public static class getCancellableOrdersForCustomer_result implements org.apache.thrift.TBase<getCancellableOrdersForCustomer_result, getCancellableOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
14376
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCancellableOrdersForCustomer_result");
1382 varun.gupt 14377
 
3430 rajveer 14378
    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);
14379
    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 14380
 
3430 rajveer 14381
    private List<Long> success; // required
14382
    private TransactionServiceException ex; // required
1382 varun.gupt 14383
 
14384
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14385
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1382 varun.gupt 14386
      SUCCESS((short)0, "success"),
14387
      EX((short)1, "ex");
14388
 
14389
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14390
 
14391
      static {
14392
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14393
          byName.put(field.getFieldName(), field);
14394
        }
14395
      }
14396
 
14397
      /**
14398
       * Find the _Fields constant that matches fieldId, or null if its not found.
14399
       */
14400
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14401
        switch(fieldId) {
14402
          case 0: // SUCCESS
14403
            return SUCCESS;
14404
          case 1: // EX
14405
            return EX;
14406
          default:
14407
            return null;
14408
        }
1382 varun.gupt 14409
      }
14410
 
14411
      /**
14412
       * Find the _Fields constant that matches fieldId, throwing an exception
14413
       * if it is not found.
14414
       */
14415
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14416
        _Fields fields = findByThriftId(fieldId);
14417
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14418
        return fields;
14419
      }
14420
 
14421
      /**
14422
       * Find the _Fields constant that matches name, or null if its not found.
14423
       */
14424
      public static _Fields findByName(String name) {
14425
        return byName.get(name);
14426
      }
14427
 
14428
      private final short _thriftId;
14429
      private final String _fieldName;
14430
 
14431
      _Fields(short thriftId, String fieldName) {
14432
        _thriftId = thriftId;
14433
        _fieldName = fieldName;
14434
      }
14435
 
14436
      public short getThriftFieldId() {
14437
        return _thriftId;
14438
      }
14439
 
14440
      public String getFieldName() {
14441
        return _fieldName;
14442
      }
14443
    }
14444
 
14445
    // isset id assignments
14446
 
3430 rajveer 14447
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1382 varun.gupt 14448
    static {
3430 rajveer 14449
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14450
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14451
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14452
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
14453
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14454
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14455
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14456
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCancellableOrdersForCustomer_result.class, metaDataMap);
1382 varun.gupt 14457
    }
14458
 
14459
    public getCancellableOrdersForCustomer_result() {
14460
    }
14461
 
14462
    public getCancellableOrdersForCustomer_result(
14463
      List<Long> success,
14464
      TransactionServiceException ex)
14465
    {
14466
      this();
14467
      this.success = success;
14468
      this.ex = ex;
14469
    }
14470
 
14471
    /**
14472
     * Performs a deep copy on <i>other</i>.
14473
     */
14474
    public getCancellableOrdersForCustomer_result(getCancellableOrdersForCustomer_result other) {
14475
      if (other.isSetSuccess()) {
14476
        List<Long> __this__success = new ArrayList<Long>();
14477
        for (Long other_element : other.success) {
14478
          __this__success.add(other_element);
14479
        }
14480
        this.success = __this__success;
14481
      }
14482
      if (other.isSetEx()) {
14483
        this.ex = new TransactionServiceException(other.ex);
14484
      }
14485
    }
14486
 
14487
    public getCancellableOrdersForCustomer_result deepCopy() {
14488
      return new getCancellableOrdersForCustomer_result(this);
14489
    }
14490
 
3430 rajveer 14491
    @Override
14492
    public void clear() {
14493
      this.success = null;
14494
      this.ex = null;
1382 varun.gupt 14495
    }
14496
 
14497
    public int getSuccessSize() {
14498
      return (this.success == null) ? 0 : this.success.size();
14499
    }
14500
 
14501
    public java.util.Iterator<Long> getSuccessIterator() {
14502
      return (this.success == null) ? null : this.success.iterator();
14503
    }
14504
 
14505
    public void addToSuccess(long elem) {
14506
      if (this.success == null) {
14507
        this.success = new ArrayList<Long>();
14508
      }
14509
      this.success.add(elem);
14510
    }
14511
 
14512
    public List<Long> getSuccess() {
14513
      return this.success;
14514
    }
14515
 
3430 rajveer 14516
    public void setSuccess(List<Long> success) {
1382 varun.gupt 14517
      this.success = success;
14518
    }
14519
 
14520
    public void unsetSuccess() {
14521
      this.success = null;
14522
    }
14523
 
3430 rajveer 14524
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1382 varun.gupt 14525
    public boolean isSetSuccess() {
14526
      return this.success != null;
14527
    }
14528
 
14529
    public void setSuccessIsSet(boolean value) {
14530
      if (!value) {
14531
        this.success = null;
14532
      }
14533
    }
14534
 
14535
    public TransactionServiceException getEx() {
14536
      return this.ex;
14537
    }
14538
 
3430 rajveer 14539
    public void setEx(TransactionServiceException ex) {
1382 varun.gupt 14540
      this.ex = ex;
14541
    }
14542
 
14543
    public void unsetEx() {
14544
      this.ex = null;
14545
    }
14546
 
3430 rajveer 14547
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1382 varun.gupt 14548
    public boolean isSetEx() {
14549
      return this.ex != null;
14550
    }
14551
 
14552
    public void setExIsSet(boolean value) {
14553
      if (!value) {
14554
        this.ex = null;
14555
      }
14556
    }
14557
 
14558
    public void setFieldValue(_Fields field, Object value) {
14559
      switch (field) {
14560
      case SUCCESS:
14561
        if (value == null) {
14562
          unsetSuccess();
14563
        } else {
14564
          setSuccess((List<Long>)value);
14565
        }
14566
        break;
14567
 
14568
      case EX:
14569
        if (value == null) {
14570
          unsetEx();
14571
        } else {
14572
          setEx((TransactionServiceException)value);
14573
        }
14574
        break;
14575
 
14576
      }
14577
    }
14578
 
14579
    public Object getFieldValue(_Fields field) {
14580
      switch (field) {
14581
      case SUCCESS:
14582
        return getSuccess();
14583
 
14584
      case EX:
14585
        return getEx();
14586
 
14587
      }
14588
      throw new IllegalStateException();
14589
    }
14590
 
3430 rajveer 14591
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14592
    public boolean isSet(_Fields field) {
14593
      if (field == null) {
14594
        throw new IllegalArgumentException();
14595
      }
1382 varun.gupt 14596
 
14597
      switch (field) {
14598
      case SUCCESS:
14599
        return isSetSuccess();
14600
      case EX:
14601
        return isSetEx();
14602
      }
14603
      throw new IllegalStateException();
14604
    }
14605
 
14606
    @Override
14607
    public boolean equals(Object that) {
14608
      if (that == null)
14609
        return false;
14610
      if (that instanceof getCancellableOrdersForCustomer_result)
14611
        return this.equals((getCancellableOrdersForCustomer_result)that);
14612
      return false;
14613
    }
14614
 
14615
    public boolean equals(getCancellableOrdersForCustomer_result that) {
14616
      if (that == null)
14617
        return false;
14618
 
14619
      boolean this_present_success = true && this.isSetSuccess();
14620
      boolean that_present_success = true && that.isSetSuccess();
14621
      if (this_present_success || that_present_success) {
14622
        if (!(this_present_success && that_present_success))
14623
          return false;
14624
        if (!this.success.equals(that.success))
14625
          return false;
14626
      }
14627
 
14628
      boolean this_present_ex = true && this.isSetEx();
14629
      boolean that_present_ex = true && that.isSetEx();
14630
      if (this_present_ex || that_present_ex) {
14631
        if (!(this_present_ex && that_present_ex))
14632
          return false;
14633
        if (!this.ex.equals(that.ex))
14634
          return false;
14635
      }
14636
 
14637
      return true;
14638
    }
14639
 
14640
    @Override
14641
    public int hashCode() {
14642
      return 0;
14643
    }
14644
 
14645
    public int compareTo(getCancellableOrdersForCustomer_result other) {
14646
      if (!getClass().equals(other.getClass())) {
14647
        return getClass().getName().compareTo(other.getClass().getName());
14648
      }
14649
 
14650
      int lastComparison = 0;
14651
      getCancellableOrdersForCustomer_result typedOther = (getCancellableOrdersForCustomer_result)other;
14652
 
3430 rajveer 14653
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1382 varun.gupt 14654
      if (lastComparison != 0) {
14655
        return lastComparison;
14656
      }
3430 rajveer 14657
      if (isSetSuccess()) {
14658
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14659
        if (lastComparison != 0) {
14660
          return lastComparison;
14661
        }
1382 varun.gupt 14662
      }
3430 rajveer 14663
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1382 varun.gupt 14664
      if (lastComparison != 0) {
14665
        return lastComparison;
14666
      }
3430 rajveer 14667
      if (isSetEx()) {
14668
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
14669
        if (lastComparison != 0) {
14670
          return lastComparison;
14671
        }
1382 varun.gupt 14672
      }
14673
      return 0;
14674
    }
14675
 
3430 rajveer 14676
    public _Fields fieldForId(int fieldId) {
14677
      return _Fields.findByThriftId(fieldId);
14678
    }
14679
 
14680
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14681
      org.apache.thrift.protocol.TField field;
1382 varun.gupt 14682
      iprot.readStructBegin();
14683
      while (true)
14684
      {
14685
        field = iprot.readFieldBegin();
3430 rajveer 14686
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1382 varun.gupt 14687
          break;
14688
        }
3430 rajveer 14689
        switch (field.id) {
14690
          case 0: // SUCCESS
14691
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14692
              {
14693
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
14694
                this.success = new ArrayList<Long>(_list32.size);
14695
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1382 varun.gupt 14696
                {
3430 rajveer 14697
                  long _elem34; // required
14698
                  _elem34 = iprot.readI64();
14699
                  this.success.add(_elem34);
1382 varun.gupt 14700
                }
3430 rajveer 14701
                iprot.readListEnd();
1382 varun.gupt 14702
              }
3430 rajveer 14703
            } else { 
14704
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14705
            }
14706
            break;
14707
          case 1: // EX
14708
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14709
              this.ex = new TransactionServiceException();
14710
              this.ex.read(iprot);
14711
            } else { 
14712
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14713
            }
14714
            break;
14715
          default:
14716
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382 varun.gupt 14717
        }
3430 rajveer 14718
        iprot.readFieldEnd();
1382 varun.gupt 14719
      }
14720
      iprot.readStructEnd();
14721
      validate();
14722
    }
14723
 
3430 rajveer 14724
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1382 varun.gupt 14725
      oprot.writeStructBegin(STRUCT_DESC);
14726
 
14727
      if (this.isSetSuccess()) {
14728
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14729
        {
3430 rajveer 14730
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3427 chandransh 14731
          for (long _iter35 : this.success)
1382 varun.gupt 14732
          {
3427 chandransh 14733
            oprot.writeI64(_iter35);
1382 varun.gupt 14734
          }
14735
          oprot.writeListEnd();
14736
        }
14737
        oprot.writeFieldEnd();
14738
      } else if (this.isSetEx()) {
14739
        oprot.writeFieldBegin(EX_FIELD_DESC);
14740
        this.ex.write(oprot);
14741
        oprot.writeFieldEnd();
14742
      }
14743
      oprot.writeFieldStop();
14744
      oprot.writeStructEnd();
14745
    }
14746
 
14747
    @Override
14748
    public String toString() {
14749
      StringBuilder sb = new StringBuilder("getCancellableOrdersForCustomer_result(");
14750
      boolean first = true;
14751
 
14752
      sb.append("success:");
14753
      if (this.success == null) {
14754
        sb.append("null");
14755
      } else {
14756
        sb.append(this.success);
14757
      }
14758
      first = false;
14759
      if (!first) sb.append(", ");
14760
      sb.append("ex:");
14761
      if (this.ex == null) {
14762
        sb.append("null");
14763
      } else {
14764
        sb.append(this.ex);
14765
      }
14766
      first = false;
14767
      sb.append(")");
14768
      return sb.toString();
14769
    }
14770
 
3430 rajveer 14771
    public void validate() throws org.apache.thrift.TException {
1382 varun.gupt 14772
      // check for required fields
14773
    }
14774
 
3430 rajveer 14775
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14776
      try {
14777
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14778
      } catch (org.apache.thrift.TException te) {
14779
        throw new java.io.IOException(te);
14780
      }
14781
    }
14782
 
14783
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14784
      try {
14785
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14786
      } catch (org.apache.thrift.TException te) {
14787
        throw new java.io.IOException(te);
14788
      }
14789
    }
14790
 
1382 varun.gupt 14791
  }
14792
 
3430 rajveer 14793
  public static class changeOrderStatus_args implements org.apache.thrift.TBase<changeOrderStatus_args, changeOrderStatus_args._Fields>, java.io.Serializable, Cloneable   {
14794
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeOrderStatus_args");
68 ashish 14795
 
3430 rajveer 14796
    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);
14797
    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);
14798
    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 14799
 
3430 rajveer 14800
    private long orderId; // required
14801
    private OrderStatus status; // required
14802
    private String description; // required
68 ashish 14803
 
14804
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14805
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
483 rajveer 14806
      ORDER_ID((short)1, "orderId"),
14807
      /**
14808
       * 
14809
       * @see OrderStatus
14810
       */
14811
      STATUS((short)2, "status"),
14812
      DESCRIPTION((short)3, "description");
68 ashish 14813
 
14814
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14815
 
14816
      static {
14817
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14818
          byName.put(field.getFieldName(), field);
14819
        }
14820
      }
14821
 
14822
      /**
14823
       * Find the _Fields constant that matches fieldId, or null if its not found.
14824
       */
14825
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14826
        switch(fieldId) {
14827
          case 1: // ORDER_ID
14828
            return ORDER_ID;
14829
          case 2: // STATUS
14830
            return STATUS;
14831
          case 3: // DESCRIPTION
14832
            return DESCRIPTION;
14833
          default:
14834
            return null;
14835
        }
68 ashish 14836
      }
14837
 
14838
      /**
14839
       * Find the _Fields constant that matches fieldId, throwing an exception
14840
       * if it is not found.
14841
       */
14842
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14843
        _Fields fields = findByThriftId(fieldId);
14844
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14845
        return fields;
14846
      }
14847
 
14848
      /**
14849
       * Find the _Fields constant that matches name, or null if its not found.
14850
       */
14851
      public static _Fields findByName(String name) {
14852
        return byName.get(name);
14853
      }
14854
 
14855
      private final short _thriftId;
14856
      private final String _fieldName;
14857
 
14858
      _Fields(short thriftId, String fieldName) {
14859
        _thriftId = thriftId;
14860
        _fieldName = fieldName;
14861
      }
14862
 
14863
      public short getThriftFieldId() {
14864
        return _thriftId;
14865
      }
14866
 
14867
      public String getFieldName() {
14868
        return _fieldName;
14869
      }
14870
    }
14871
 
14872
    // isset id assignments
483 rajveer 14873
    private static final int __ORDERID_ISSET_ID = 0;
68 ashish 14874
    private BitSet __isset_bit_vector = new BitSet(1);
14875
 
3430 rajveer 14876
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 14877
    static {
3430 rajveer 14878
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14879
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14880
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14881
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14882
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
14883
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14884
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14885
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14886
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeOrderStatus_args.class, metaDataMap);
68 ashish 14887
    }
14888
 
483 rajveer 14889
    public changeOrderStatus_args() {
68 ashish 14890
    }
14891
 
483 rajveer 14892
    public changeOrderStatus_args(
14893
      long orderId,
14894
      OrderStatus status,
14895
      String description)
68 ashish 14896
    {
14897
      this();
483 rajveer 14898
      this.orderId = orderId;
14899
      setOrderIdIsSet(true);
14900
      this.status = status;
14901
      this.description = description;
68 ashish 14902
    }
14903
 
14904
    /**
14905
     * Performs a deep copy on <i>other</i>.
14906
     */
483 rajveer 14907
    public changeOrderStatus_args(changeOrderStatus_args other) {
68 ashish 14908
      __isset_bit_vector.clear();
14909
      __isset_bit_vector.or(other.__isset_bit_vector);
483 rajveer 14910
      this.orderId = other.orderId;
14911
      if (other.isSetStatus()) {
14912
        this.status = other.status;
14913
      }
14914
      if (other.isSetDescription()) {
14915
        this.description = other.description;
14916
      }
68 ashish 14917
    }
14918
 
483 rajveer 14919
    public changeOrderStatus_args deepCopy() {
14920
      return new changeOrderStatus_args(this);
68 ashish 14921
    }
14922
 
3430 rajveer 14923
    @Override
14924
    public void clear() {
14925
      setOrderIdIsSet(false);
14926
      this.orderId = 0;
14927
      this.status = null;
14928
      this.description = null;
68 ashish 14929
    }
14930
 
483 rajveer 14931
    public long getOrderId() {
14932
      return this.orderId;
68 ashish 14933
    }
14934
 
3430 rajveer 14935
    public void setOrderId(long orderId) {
483 rajveer 14936
      this.orderId = orderId;
14937
      setOrderIdIsSet(true);
68 ashish 14938
    }
14939
 
483 rajveer 14940
    public void unsetOrderId() {
14941
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
68 ashish 14942
    }
14943
 
3430 rajveer 14944
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
483 rajveer 14945
    public boolean isSetOrderId() {
14946
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
68 ashish 14947
    }
14948
 
483 rajveer 14949
    public void setOrderIdIsSet(boolean value) {
14950
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
68 ashish 14951
    }
14952
 
483 rajveer 14953
    /**
14954
     * 
14955
     * @see OrderStatus
14956
     */
14957
    public OrderStatus getStatus() {
14958
      return this.status;
68 ashish 14959
    }
14960
 
14961
    /**
483 rajveer 14962
     * 
14963
     * @see OrderStatus
68 ashish 14964
     */
3430 rajveer 14965
    public void setStatus(OrderStatus status) {
483 rajveer 14966
      this.status = status;
68 ashish 14967
    }
14968
 
483 rajveer 14969
    public void unsetStatus() {
14970
      this.status = null;
68 ashish 14971
    }
14972
 
3430 rajveer 14973
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
483 rajveer 14974
    public boolean isSetStatus() {
14975
      return this.status != null;
68 ashish 14976
    }
14977
 
483 rajveer 14978
    public void setStatusIsSet(boolean value) {
68 ashish 14979
      if (!value) {
483 rajveer 14980
        this.status = null;
68 ashish 14981
      }
14982
    }
14983
 
483 rajveer 14984
    public String getDescription() {
14985
      return this.description;
68 ashish 14986
    }
14987
 
3430 rajveer 14988
    public void setDescription(String description) {
483 rajveer 14989
      this.description = description;
68 ashish 14990
    }
14991
 
483 rajveer 14992
    public void unsetDescription() {
14993
      this.description = null;
68 ashish 14994
    }
14995
 
3430 rajveer 14996
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
483 rajveer 14997
    public boolean isSetDescription() {
14998
      return this.description != null;
68 ashish 14999
    }
15000
 
483 rajveer 15001
    public void setDescriptionIsSet(boolean value) {
68 ashish 15002
      if (!value) {
483 rajveer 15003
        this.description = null;
68 ashish 15004
      }
15005
    }
15006
 
15007
    public void setFieldValue(_Fields field, Object value) {
15008
      switch (field) {
483 rajveer 15009
      case ORDER_ID:
68 ashish 15010
        if (value == null) {
483 rajveer 15011
          unsetOrderId();
68 ashish 15012
        } else {
483 rajveer 15013
          setOrderId((Long)value);
68 ashish 15014
        }
15015
        break;
15016
 
483 rajveer 15017
      case STATUS:
68 ashish 15018
        if (value == null) {
483 rajveer 15019
          unsetStatus();
68 ashish 15020
        } else {
483 rajveer 15021
          setStatus((OrderStatus)value);
68 ashish 15022
        }
15023
        break;
15024
 
483 rajveer 15025
      case DESCRIPTION:
15026
        if (value == null) {
15027
          unsetDescription();
15028
        } else {
15029
          setDescription((String)value);
15030
        }
15031
        break;
15032
 
68 ashish 15033
      }
15034
    }
15035
 
15036
    public Object getFieldValue(_Fields field) {
15037
      switch (field) {
483 rajveer 15038
      case ORDER_ID:
3430 rajveer 15039
        return Long.valueOf(getOrderId());
68 ashish 15040
 
483 rajveer 15041
      case STATUS:
15042
        return getStatus();
68 ashish 15043
 
483 rajveer 15044
      case DESCRIPTION:
15045
        return getDescription();
15046
 
68 ashish 15047
      }
15048
      throw new IllegalStateException();
15049
    }
15050
 
3430 rajveer 15051
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15052
    public boolean isSet(_Fields field) {
15053
      if (field == null) {
15054
        throw new IllegalArgumentException();
15055
      }
68 ashish 15056
 
15057
      switch (field) {
483 rajveer 15058
      case ORDER_ID:
15059
        return isSetOrderId();
15060
      case STATUS:
15061
        return isSetStatus();
15062
      case DESCRIPTION:
15063
        return isSetDescription();
68 ashish 15064
      }
15065
      throw new IllegalStateException();
15066
    }
15067
 
15068
    @Override
15069
    public boolean equals(Object that) {
15070
      if (that == null)
15071
        return false;
483 rajveer 15072
      if (that instanceof changeOrderStatus_args)
15073
        return this.equals((changeOrderStatus_args)that);
68 ashish 15074
      return false;
15075
    }
15076
 
483 rajveer 15077
    public boolean equals(changeOrderStatus_args that) {
68 ashish 15078
      if (that == null)
15079
        return false;
15080
 
483 rajveer 15081
      boolean this_present_orderId = true;
15082
      boolean that_present_orderId = true;
15083
      if (this_present_orderId || that_present_orderId) {
15084
        if (!(this_present_orderId && that_present_orderId))
68 ashish 15085
          return false;
483 rajveer 15086
        if (this.orderId != that.orderId)
68 ashish 15087
          return false;
15088
      }
15089
 
483 rajveer 15090
      boolean this_present_status = true && this.isSetStatus();
15091
      boolean that_present_status = true && that.isSetStatus();
15092
      if (this_present_status || that_present_status) {
15093
        if (!(this_present_status && that_present_status))
68 ashish 15094
          return false;
483 rajveer 15095
        if (!this.status.equals(that.status))
68 ashish 15096
          return false;
15097
      }
15098
 
483 rajveer 15099
      boolean this_present_description = true && this.isSetDescription();
15100
      boolean that_present_description = true && that.isSetDescription();
15101
      if (this_present_description || that_present_description) {
15102
        if (!(this_present_description && that_present_description))
15103
          return false;
15104
        if (!this.description.equals(that.description))
15105
          return false;
15106
      }
15107
 
68 ashish 15108
      return true;
15109
    }
15110
 
15111
    @Override
15112
    public int hashCode() {
15113
      return 0;
15114
    }
15115
 
483 rajveer 15116
    public int compareTo(changeOrderStatus_args other) {
15117
      if (!getClass().equals(other.getClass())) {
15118
        return getClass().getName().compareTo(other.getClass().getName());
68 ashish 15119
      }
15120
 
483 rajveer 15121
      int lastComparison = 0;
15122
      changeOrderStatus_args typedOther = (changeOrderStatus_args)other;
68 ashish 15123
 
3430 rajveer 15124
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
483 rajveer 15125
      if (lastComparison != 0) {
15126
        return lastComparison;
68 ashish 15127
      }
3430 rajveer 15128
      if (isSetOrderId()) {
15129
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
15130
        if (lastComparison != 0) {
15131
          return lastComparison;
15132
        }
68 ashish 15133
      }
3430 rajveer 15134
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
483 rajveer 15135
      if (lastComparison != 0) {
15136
        return lastComparison;
68 ashish 15137
      }
3430 rajveer 15138
      if (isSetStatus()) {
15139
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
15140
        if (lastComparison != 0) {
15141
          return lastComparison;
15142
        }
68 ashish 15143
      }
3430 rajveer 15144
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
483 rajveer 15145
      if (lastComparison != 0) {
15146
        return lastComparison;
68 ashish 15147
      }
3430 rajveer 15148
      if (isSetDescription()) {
15149
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
15150
        if (lastComparison != 0) {
15151
          return lastComparison;
15152
        }
68 ashish 15153
      }
15154
      return 0;
15155
    }
15156
 
3430 rajveer 15157
    public _Fields fieldForId(int fieldId) {
15158
      return _Fields.findByThriftId(fieldId);
15159
    }
15160
 
15161
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15162
      org.apache.thrift.protocol.TField field;
68 ashish 15163
      iprot.readStructBegin();
15164
      while (true)
15165
      {
15166
        field = iprot.readFieldBegin();
3430 rajveer 15167
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 15168
          break;
15169
        }
3430 rajveer 15170
        switch (field.id) {
15171
          case 1: // ORDER_ID
15172
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15173
              this.orderId = iprot.readI64();
15174
              setOrderIdIsSet(true);
15175
            } else { 
15176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15177
            }
15178
            break;
15179
          case 2: // STATUS
15180
            if (field.type == org.apache.thrift.protocol.TType.I32) {
15181
              this.status = OrderStatus.findByValue(iprot.readI32());
15182
            } else { 
15183
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15184
            }
15185
            break;
15186
          case 3: // DESCRIPTION
15187
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15188
              this.description = iprot.readString();
15189
            } else { 
15190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15191
            }
15192
            break;
15193
          default:
15194
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 15195
        }
3430 rajveer 15196
        iprot.readFieldEnd();
68 ashish 15197
      }
15198
      iprot.readStructEnd();
15199
      validate();
15200
    }
15201
 
3430 rajveer 15202
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 15203
      validate();
15204
 
15205
      oprot.writeStructBegin(STRUCT_DESC);
483 rajveer 15206
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
15207
      oprot.writeI64(this.orderId);
68 ashish 15208
      oprot.writeFieldEnd();
483 rajveer 15209
      if (this.status != null) {
15210
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
15211
        oprot.writeI32(this.status.getValue());
68 ashish 15212
        oprot.writeFieldEnd();
15213
      }
483 rajveer 15214
      if (this.description != null) {
15215
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
15216
        oprot.writeString(this.description);
15217
        oprot.writeFieldEnd();
15218
      }
68 ashish 15219
      oprot.writeFieldStop();
15220
      oprot.writeStructEnd();
15221
    }
15222
 
15223
    @Override
15224
    public String toString() {
483 rajveer 15225
      StringBuilder sb = new StringBuilder("changeOrderStatus_args(");
68 ashish 15226
      boolean first = true;
15227
 
483 rajveer 15228
      sb.append("orderId:");
15229
      sb.append(this.orderId);
68 ashish 15230
      first = false;
15231
      if (!first) sb.append(", ");
483 rajveer 15232
      sb.append("status:");
15233
      if (this.status == null) {
68 ashish 15234
        sb.append("null");
15235
      } else {
483 rajveer 15236
        sb.append(this.status);
68 ashish 15237
      }
15238
      first = false;
483 rajveer 15239
      if (!first) sb.append(", ");
15240
      sb.append("description:");
15241
      if (this.description == null) {
15242
        sb.append("null");
15243
      } else {
15244
        sb.append(this.description);
15245
      }
15246
      first = false;
68 ashish 15247
      sb.append(")");
15248
      return sb.toString();
15249
    }
15250
 
3430 rajveer 15251
    public void validate() throws org.apache.thrift.TException {
68 ashish 15252
      // check for required fields
15253
    }
15254
 
3430 rajveer 15255
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15256
      try {
15257
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15258
      } catch (org.apache.thrift.TException te) {
15259
        throw new java.io.IOException(te);
15260
      }
15261
    }
15262
 
15263
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15264
      try {
15265
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15266
        __isset_bit_vector = new BitSet(1);
15267
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15268
      } catch (org.apache.thrift.TException te) {
15269
        throw new java.io.IOException(te);
15270
      }
15271
    }
15272
 
68 ashish 15273
  }
15274
 
3430 rajveer 15275
  public static class changeOrderStatus_result implements org.apache.thrift.TBase<changeOrderStatus_result, changeOrderStatus_result._Fields>, java.io.Serializable, Cloneable   {
15276
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeOrderStatus_result");
68 ashish 15277
 
3430 rajveer 15278
    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);
15279
    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 15280
 
3430 rajveer 15281
    private boolean success; // required
15282
    private TransactionServiceException ex; // required
68 ashish 15283
 
15284
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15285
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 15286
      SUCCESS((short)0, "success"),
15287
      EX((short)1, "ex");
15288
 
15289
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15290
 
15291
      static {
15292
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15293
          byName.put(field.getFieldName(), field);
15294
        }
15295
      }
15296
 
15297
      /**
15298
       * Find the _Fields constant that matches fieldId, or null if its not found.
15299
       */
15300
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15301
        switch(fieldId) {
15302
          case 0: // SUCCESS
15303
            return SUCCESS;
15304
          case 1: // EX
15305
            return EX;
15306
          default:
15307
            return null;
15308
        }
68 ashish 15309
      }
15310
 
15311
      /**
15312
       * Find the _Fields constant that matches fieldId, throwing an exception
15313
       * if it is not found.
15314
       */
15315
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15316
        _Fields fields = findByThriftId(fieldId);
15317
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15318
        return fields;
15319
      }
15320
 
15321
      /**
15322
       * Find the _Fields constant that matches name, or null if its not found.
15323
       */
15324
      public static _Fields findByName(String name) {
15325
        return byName.get(name);
15326
      }
15327
 
15328
      private final short _thriftId;
15329
      private final String _fieldName;
15330
 
15331
      _Fields(short thriftId, String fieldName) {
15332
        _thriftId = thriftId;
15333
        _fieldName = fieldName;
15334
      }
15335
 
15336
      public short getThriftFieldId() {
15337
        return _thriftId;
15338
      }
15339
 
15340
      public String getFieldName() {
15341
        return _fieldName;
15342
      }
15343
    }
15344
 
15345
    // isset id assignments
15346
    private static final int __SUCCESS_ISSET_ID = 0;
15347
    private BitSet __isset_bit_vector = new BitSet(1);
15348
 
3430 rajveer 15349
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 15350
    static {
3430 rajveer 15351
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15352
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15353
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15354
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15355
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15356
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15357
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeOrderStatus_result.class, metaDataMap);
68 ashish 15358
    }
15359
 
483 rajveer 15360
    public changeOrderStatus_result() {
68 ashish 15361
    }
15362
 
483 rajveer 15363
    public changeOrderStatus_result(
68 ashish 15364
      boolean success,
15365
      TransactionServiceException ex)
15366
    {
15367
      this();
15368
      this.success = success;
15369
      setSuccessIsSet(true);
15370
      this.ex = ex;
15371
    }
15372
 
15373
    /**
15374
     * Performs a deep copy on <i>other</i>.
15375
     */
483 rajveer 15376
    public changeOrderStatus_result(changeOrderStatus_result other) {
68 ashish 15377
      __isset_bit_vector.clear();
15378
      __isset_bit_vector.or(other.__isset_bit_vector);
15379
      this.success = other.success;
15380
      if (other.isSetEx()) {
15381
        this.ex = new TransactionServiceException(other.ex);
15382
      }
15383
    }
15384
 
483 rajveer 15385
    public changeOrderStatus_result deepCopy() {
15386
      return new changeOrderStatus_result(this);
68 ashish 15387
    }
15388
 
3430 rajveer 15389
    @Override
15390
    public void clear() {
15391
      setSuccessIsSet(false);
15392
      this.success = false;
15393
      this.ex = null;
68 ashish 15394
    }
15395
 
15396
    public boolean isSuccess() {
15397
      return this.success;
15398
    }
15399
 
3430 rajveer 15400
    public void setSuccess(boolean success) {
68 ashish 15401
      this.success = success;
15402
      setSuccessIsSet(true);
15403
    }
15404
 
15405
    public void unsetSuccess() {
15406
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15407
    }
15408
 
3430 rajveer 15409
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 15410
    public boolean isSetSuccess() {
15411
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15412
    }
15413
 
15414
    public void setSuccessIsSet(boolean value) {
15415
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15416
    }
15417
 
15418
    public TransactionServiceException getEx() {
15419
      return this.ex;
15420
    }
15421
 
3430 rajveer 15422
    public void setEx(TransactionServiceException ex) {
68 ashish 15423
      this.ex = ex;
15424
    }
15425
 
15426
    public void unsetEx() {
15427
      this.ex = null;
15428
    }
15429
 
3430 rajveer 15430
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 15431
    public boolean isSetEx() {
15432
      return this.ex != null;
15433
    }
15434
 
15435
    public void setExIsSet(boolean value) {
15436
      if (!value) {
15437
        this.ex = null;
15438
      }
15439
    }
15440
 
15441
    public void setFieldValue(_Fields field, Object value) {
15442
      switch (field) {
15443
      case SUCCESS:
15444
        if (value == null) {
15445
          unsetSuccess();
15446
        } else {
15447
          setSuccess((Boolean)value);
15448
        }
15449
        break;
15450
 
15451
      case EX:
15452
        if (value == null) {
15453
          unsetEx();
15454
        } else {
15455
          setEx((TransactionServiceException)value);
15456
        }
15457
        break;
15458
 
15459
      }
15460
    }
15461
 
15462
    public Object getFieldValue(_Fields field) {
15463
      switch (field) {
15464
      case SUCCESS:
3430 rajveer 15465
        return Boolean.valueOf(isSuccess());
68 ashish 15466
 
15467
      case EX:
15468
        return getEx();
15469
 
15470
      }
15471
      throw new IllegalStateException();
15472
    }
15473
 
3430 rajveer 15474
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15475
    public boolean isSet(_Fields field) {
15476
      if (field == null) {
15477
        throw new IllegalArgumentException();
15478
      }
68 ashish 15479
 
15480
      switch (field) {
15481
      case SUCCESS:
15482
        return isSetSuccess();
15483
      case EX:
15484
        return isSetEx();
15485
      }
15486
      throw new IllegalStateException();
15487
    }
15488
 
15489
    @Override
15490
    public boolean equals(Object that) {
15491
      if (that == null)
15492
        return false;
483 rajveer 15493
      if (that instanceof changeOrderStatus_result)
15494
        return this.equals((changeOrderStatus_result)that);
68 ashish 15495
      return false;
15496
    }
15497
 
483 rajveer 15498
    public boolean equals(changeOrderStatus_result that) {
68 ashish 15499
      if (that == null)
15500
        return false;
15501
 
15502
      boolean this_present_success = true;
15503
      boolean that_present_success = true;
15504
      if (this_present_success || that_present_success) {
15505
        if (!(this_present_success && that_present_success))
15506
          return false;
15507
        if (this.success != that.success)
15508
          return false;
15509
      }
15510
 
15511
      boolean this_present_ex = true && this.isSetEx();
15512
      boolean that_present_ex = true && that.isSetEx();
15513
      if (this_present_ex || that_present_ex) {
15514
        if (!(this_present_ex && that_present_ex))
15515
          return false;
15516
        if (!this.ex.equals(that.ex))
15517
          return false;
15518
      }
15519
 
15520
      return true;
15521
    }
15522
 
15523
    @Override
15524
    public int hashCode() {
15525
      return 0;
15526
    }
15527
 
483 rajveer 15528
    public int compareTo(changeOrderStatus_result other) {
68 ashish 15529
      if (!getClass().equals(other.getClass())) {
15530
        return getClass().getName().compareTo(other.getClass().getName());
15531
      }
15532
 
15533
      int lastComparison = 0;
483 rajveer 15534
      changeOrderStatus_result typedOther = (changeOrderStatus_result)other;
68 ashish 15535
 
3430 rajveer 15536
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 15537
      if (lastComparison != 0) {
15538
        return lastComparison;
15539
      }
3430 rajveer 15540
      if (isSetSuccess()) {
15541
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15542
        if (lastComparison != 0) {
15543
          return lastComparison;
15544
        }
68 ashish 15545
      }
3430 rajveer 15546
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 15547
      if (lastComparison != 0) {
15548
        return lastComparison;
15549
      }
3430 rajveer 15550
      if (isSetEx()) {
15551
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
15552
        if (lastComparison != 0) {
15553
          return lastComparison;
15554
        }
68 ashish 15555
      }
15556
      return 0;
15557
    }
15558
 
3430 rajveer 15559
    public _Fields fieldForId(int fieldId) {
15560
      return _Fields.findByThriftId(fieldId);
15561
    }
15562
 
15563
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15564
      org.apache.thrift.protocol.TField field;
68 ashish 15565
      iprot.readStructBegin();
15566
      while (true)
15567
      {
15568
        field = iprot.readFieldBegin();
3430 rajveer 15569
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 15570
          break;
15571
        }
3430 rajveer 15572
        switch (field.id) {
15573
          case 0: // SUCCESS
15574
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15575
              this.success = iprot.readBool();
15576
              setSuccessIsSet(true);
15577
            } else { 
15578
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15579
            }
15580
            break;
15581
          case 1: // EX
15582
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15583
              this.ex = new TransactionServiceException();
15584
              this.ex.read(iprot);
15585
            } else { 
15586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15587
            }
15588
            break;
15589
          default:
15590
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 15591
        }
3430 rajveer 15592
        iprot.readFieldEnd();
68 ashish 15593
      }
15594
      iprot.readStructEnd();
15595
      validate();
15596
    }
15597
 
3430 rajveer 15598
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 15599
      oprot.writeStructBegin(STRUCT_DESC);
15600
 
15601
      if (this.isSetSuccess()) {
15602
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15603
        oprot.writeBool(this.success);
15604
        oprot.writeFieldEnd();
15605
      } else if (this.isSetEx()) {
15606
        oprot.writeFieldBegin(EX_FIELD_DESC);
15607
        this.ex.write(oprot);
15608
        oprot.writeFieldEnd();
15609
      }
15610
      oprot.writeFieldStop();
15611
      oprot.writeStructEnd();
15612
    }
15613
 
15614
    @Override
15615
    public String toString() {
483 rajveer 15616
      StringBuilder sb = new StringBuilder("changeOrderStatus_result(");
68 ashish 15617
      boolean first = true;
15618
 
15619
      sb.append("success:");
15620
      sb.append(this.success);
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 {
68 ashish 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
 
68 ashish 15654
  }
15655
 
3430 rajveer 15656
  public static class getOrdersForTransaction_args implements org.apache.thrift.TBase<getOrdersForTransaction_args, getOrdersForTransaction_args._Fields>, java.io.Serializable, Cloneable   {
15657
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForTransaction_args");
495 rajveer 15658
 
3430 rajveer 15659
    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);
15660
    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 15661
 
3430 rajveer 15662
    private long transactionId; // required
15663
    private long customerId; // required
495 rajveer 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 {
3061 chandransh 15667
      TRANSACTION_ID((short)1, "transactionId"),
15668
      CUSTOMER_ID((short)2, "customerId");
495 rajveer 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: // TRANSACTION_ID
15684
            return TRANSACTION_ID;
15685
          case 2: // CUSTOMER_ID
15686
            return CUSTOMER_ID;
15687
          default:
15688
            return null;
15689
        }
495 rajveer 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
3061 chandransh 15727
    private static final int __TRANSACTIONID_ISSET_ID = 0;
15728
    private static final int __CUSTOMERID_ISSET_ID = 1;
15729
    private BitSet __isset_bit_vector = new BitSet(2);
495 rajveer 15730
 
3430 rajveer 15731
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 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.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15735
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15736
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", 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(getOrdersForTransaction_args.class, metaDataMap);
495 rajveer 15740
    }
15741
 
3061 chandransh 15742
    public getOrdersForTransaction_args() {
495 rajveer 15743
    }
15744
 
3061 chandransh 15745
    public getOrdersForTransaction_args(
15746
      long transactionId,
15747
      long customerId)
495 rajveer 15748
    {
15749
      this();
3061 chandransh 15750
      this.transactionId = transactionId;
15751
      setTransactionIdIsSet(true);
15752
      this.customerId = customerId;
15753
      setCustomerIdIsSet(true);
495 rajveer 15754
    }
15755
 
15756
    /**
15757
     * Performs a deep copy on <i>other</i>.
15758
     */
3061 chandransh 15759
    public getOrdersForTransaction_args(getOrdersForTransaction_args other) {
495 rajveer 15760
      __isset_bit_vector.clear();
15761
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 15762
      this.transactionId = other.transactionId;
15763
      this.customerId = other.customerId;
495 rajveer 15764
    }
15765
 
3061 chandransh 15766
    public getOrdersForTransaction_args deepCopy() {
15767
      return new getOrdersForTransaction_args(this);
495 rajveer 15768
    }
15769
 
3430 rajveer 15770
    @Override
15771
    public void clear() {
15772
      setTransactionIdIsSet(false);
15773
      this.transactionId = 0;
15774
      setCustomerIdIsSet(false);
15775
      this.customerId = 0;
495 rajveer 15776
    }
15777
 
3061 chandransh 15778
    public long getTransactionId() {
15779
      return this.transactionId;
495 rajveer 15780
    }
15781
 
3430 rajveer 15782
    public void setTransactionId(long transactionId) {
3061 chandransh 15783
      this.transactionId = transactionId;
15784
      setTransactionIdIsSet(true);
495 rajveer 15785
    }
15786
 
3061 chandransh 15787
    public void unsetTransactionId() {
15788
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
495 rajveer 15789
    }
15790
 
3430 rajveer 15791
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
3061 chandransh 15792
    public boolean isSetTransactionId() {
15793
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
495 rajveer 15794
    }
15795
 
3061 chandransh 15796
    public void setTransactionIdIsSet(boolean value) {
15797
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
495 rajveer 15798
    }
15799
 
3061 chandransh 15800
    public long getCustomerId() {
15801
      return this.customerId;
495 rajveer 15802
    }
15803
 
3430 rajveer 15804
    public void setCustomerId(long customerId) {
3061 chandransh 15805
      this.customerId = customerId;
15806
      setCustomerIdIsSet(true);
495 rajveer 15807
    }
15808
 
3061 chandransh 15809
    public void unsetCustomerId() {
15810
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
495 rajveer 15811
    }
15812
 
3430 rajveer 15813
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
3061 chandransh 15814
    public boolean isSetCustomerId() {
15815
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
495 rajveer 15816
    }
15817
 
3061 chandransh 15818
    public void setCustomerIdIsSet(boolean value) {
15819
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
495 rajveer 15820
    }
15821
 
15822
    public void setFieldValue(_Fields field, Object value) {
15823
      switch (field) {
3061 chandransh 15824
      case TRANSACTION_ID:
495 rajveer 15825
        if (value == null) {
3061 chandransh 15826
          unsetTransactionId();
495 rajveer 15827
        } else {
3061 chandransh 15828
          setTransactionId((Long)value);
495 rajveer 15829
        }
15830
        break;
15831
 
3061 chandransh 15832
      case CUSTOMER_ID:
495 rajveer 15833
        if (value == null) {
3061 chandransh 15834
          unsetCustomerId();
495 rajveer 15835
        } else {
3061 chandransh 15836
          setCustomerId((Long)value);
495 rajveer 15837
        }
15838
        break;
15839
 
15840
      }
15841
    }
15842
 
15843
    public Object getFieldValue(_Fields field) {
15844
      switch (field) {
3061 chandransh 15845
      case TRANSACTION_ID:
3430 rajveer 15846
        return Long.valueOf(getTransactionId());
495 rajveer 15847
 
3061 chandransh 15848
      case CUSTOMER_ID:
3430 rajveer 15849
        return Long.valueOf(getCustomerId());
495 rajveer 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
      }
495 rajveer 15860
 
15861
      switch (field) {
3061 chandransh 15862
      case TRANSACTION_ID:
15863
        return isSetTransactionId();
15864
      case CUSTOMER_ID:
15865
        return isSetCustomerId();
495 rajveer 15866
      }
15867
      throw new IllegalStateException();
15868
    }
15869
 
15870
    @Override
15871
    public boolean equals(Object that) {
15872
      if (that == null)
15873
        return false;
3061 chandransh 15874
      if (that instanceof getOrdersForTransaction_args)
15875
        return this.equals((getOrdersForTransaction_args)that);
495 rajveer 15876
      return false;
15877
    }
15878
 
3061 chandransh 15879
    public boolean equals(getOrdersForTransaction_args that) {
495 rajveer 15880
      if (that == null)
15881
        return false;
15882
 
3061 chandransh 15883
      boolean this_present_transactionId = true;
15884
      boolean that_present_transactionId = true;
15885
      if (this_present_transactionId || that_present_transactionId) {
15886
        if (!(this_present_transactionId && that_present_transactionId))
495 rajveer 15887
          return false;
3061 chandransh 15888
        if (this.transactionId != that.transactionId)
495 rajveer 15889
          return false;
15890
      }
15891
 
3061 chandransh 15892
      boolean this_present_customerId = true;
15893
      boolean that_present_customerId = true;
15894
      if (this_present_customerId || that_present_customerId) {
15895
        if (!(this_present_customerId && that_present_customerId))
495 rajveer 15896
          return false;
3061 chandransh 15897
        if (this.customerId != that.customerId)
495 rajveer 15898
          return false;
15899
      }
15900
 
15901
      return true;
15902
    }
15903
 
15904
    @Override
15905
    public int hashCode() {
15906
      return 0;
15907
    }
15908
 
3061 chandransh 15909
    public int compareTo(getOrdersForTransaction_args other) {
495 rajveer 15910
      if (!getClass().equals(other.getClass())) {
15911
        return getClass().getName().compareTo(other.getClass().getName());
15912
      }
15913
 
15914
      int lastComparison = 0;
3061 chandransh 15915
      getOrdersForTransaction_args typedOther = (getOrdersForTransaction_args)other;
495 rajveer 15916
 
3430 rajveer 15917
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
495 rajveer 15918
      if (lastComparison != 0) {
15919
        return lastComparison;
15920
      }
3430 rajveer 15921
      if (isSetTransactionId()) {
15922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
15923
        if (lastComparison != 0) {
15924
          return lastComparison;
15925
        }
495 rajveer 15926
      }
3430 rajveer 15927
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
495 rajveer 15928
      if (lastComparison != 0) {
15929
        return lastComparison;
15930
      }
3430 rajveer 15931
      if (isSetCustomerId()) {
15932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
15933
        if (lastComparison != 0) {
15934
          return lastComparison;
15935
        }
495 rajveer 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;
495 rajveer 15946
      iprot.readStructBegin();
15947
      while (true)
15948
      {
15949
        field = iprot.readFieldBegin();
3430 rajveer 15950
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 15951
          break;
15952
        }
3430 rajveer 15953
        switch (field.id) {
15954
          case 1: // TRANSACTION_ID
15955
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15956
              this.transactionId = iprot.readI64();
15957
              setTransactionIdIsSet(true);
15958
            } else { 
15959
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15960
            }
15961
            break;
15962
          case 2: // CUSTOMER_ID
15963
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15964
              this.customerId = iprot.readI64();
15965
              setCustomerIdIsSet(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);
495 rajveer 15972
        }
3430 rajveer 15973
        iprot.readFieldEnd();
495 rajveer 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 {
495 rajveer 15980
      validate();
15981
 
15982
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 15983
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
15984
      oprot.writeI64(this.transactionId);
495 rajveer 15985
      oprot.writeFieldEnd();
3061 chandransh 15986
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
15987
      oprot.writeI64(this.customerId);
15988
      oprot.writeFieldEnd();
495 rajveer 15989
      oprot.writeFieldStop();
15990
      oprot.writeStructEnd();
15991
    }
15992
 
15993
    @Override
15994
    public String toString() {
3061 chandransh 15995
      StringBuilder sb = new StringBuilder("getOrdersForTransaction_args(");
495 rajveer 15996
      boolean first = true;
15997
 
3061 chandransh 15998
      sb.append("transactionId:");
15999
      sb.append(this.transactionId);
495 rajveer 16000
      first = false;
16001
      if (!first) sb.append(", ");
3061 chandransh 16002
      sb.append("customerId:");
16003
      sb.append(this.customerId);
495 rajveer 16004
      first = false;
16005
      sb.append(")");
16006
      return sb.toString();
16007
    }
16008
 
3430 rajveer 16009
    public void validate() throws org.apache.thrift.TException {
495 rajveer 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
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16024
      } catch (org.apache.thrift.TException te) {
16025
        throw new java.io.IOException(te);
16026
      }
16027
    }
16028
 
495 rajveer 16029
  }
16030
 
3430 rajveer 16031
  public static class getOrdersForTransaction_result implements org.apache.thrift.TBase<getOrdersForTransaction_result, getOrdersForTransaction_result._Fields>, java.io.Serializable, Cloneable   {
16032
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForTransaction_result");
495 rajveer 16033
 
3430 rajveer 16034
    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);
16035
    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 16036
 
3430 rajveer 16037
    private List<Order> success; // required
16038
    private TransactionServiceException ex; // required
495 rajveer 16039
 
16040
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16041
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 16042
      SUCCESS((short)0, "success"),
16043
      EX((short)1, "ex");
16044
 
16045
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16046
 
16047
      static {
16048
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16049
          byName.put(field.getFieldName(), field);
16050
        }
16051
      }
16052
 
16053
      /**
16054
       * Find the _Fields constant that matches fieldId, or null if its not found.
16055
       */
16056
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16057
        switch(fieldId) {
16058
          case 0: // SUCCESS
16059
            return SUCCESS;
16060
          case 1: // EX
16061
            return EX;
16062
          default:
16063
            return null;
16064
        }
495 rajveer 16065
      }
16066
 
16067
      /**
16068
       * Find the _Fields constant that matches fieldId, throwing an exception
16069
       * if it is not found.
16070
       */
16071
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16072
        _Fields fields = findByThriftId(fieldId);
16073
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16074
        return fields;
16075
      }
16076
 
16077
      /**
16078
       * Find the _Fields constant that matches name, or null if its not found.
16079
       */
16080
      public static _Fields findByName(String name) {
16081
        return byName.get(name);
16082
      }
16083
 
16084
      private final short _thriftId;
16085
      private final String _fieldName;
16086
 
16087
      _Fields(short thriftId, String fieldName) {
16088
        _thriftId = thriftId;
16089
        _fieldName = fieldName;
16090
      }
16091
 
16092
      public short getThriftFieldId() {
16093
        return _thriftId;
16094
      }
16095
 
16096
      public String getFieldName() {
16097
        return _fieldName;
16098
      }
16099
    }
16100
 
16101
    // isset id assignments
16102
 
3430 rajveer 16103
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 16104
    static {
3430 rajveer 16105
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16106
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16107
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16108
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
16109
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16110
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16111
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16112
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForTransaction_result.class, metaDataMap);
495 rajveer 16113
    }
16114
 
3061 chandransh 16115
    public getOrdersForTransaction_result() {
495 rajveer 16116
    }
16117
 
3061 chandransh 16118
    public getOrdersForTransaction_result(
16119
      List<Order> success,
495 rajveer 16120
      TransactionServiceException ex)
16121
    {
16122
      this();
16123
      this.success = success;
16124
      this.ex = ex;
16125
    }
16126
 
16127
    /**
16128
     * Performs a deep copy on <i>other</i>.
16129
     */
3061 chandransh 16130
    public getOrdersForTransaction_result(getOrdersForTransaction_result other) {
16131
      if (other.isSetSuccess()) {
16132
        List<Order> __this__success = new ArrayList<Order>();
16133
        for (Order other_element : other.success) {
16134
          __this__success.add(new Order(other_element));
16135
        }
16136
        this.success = __this__success;
16137
      }
495 rajveer 16138
      if (other.isSetEx()) {
16139
        this.ex = new TransactionServiceException(other.ex);
16140
      }
16141
    }
16142
 
3061 chandransh 16143
    public getOrdersForTransaction_result deepCopy() {
16144
      return new getOrdersForTransaction_result(this);
495 rajveer 16145
    }
16146
 
3430 rajveer 16147
    @Override
16148
    public void clear() {
16149
      this.success = null;
16150
      this.ex = null;
495 rajveer 16151
    }
16152
 
3061 chandransh 16153
    public int getSuccessSize() {
16154
      return (this.success == null) ? 0 : this.success.size();
16155
    }
16156
 
16157
    public java.util.Iterator<Order> getSuccessIterator() {
16158
      return (this.success == null) ? null : this.success.iterator();
16159
    }
16160
 
16161
    public void addToSuccess(Order elem) {
16162
      if (this.success == null) {
16163
        this.success = new ArrayList<Order>();
16164
      }
16165
      this.success.add(elem);
16166
    }
16167
 
16168
    public List<Order> getSuccess() {
495 rajveer 16169
      return this.success;
16170
    }
16171
 
3430 rajveer 16172
    public void setSuccess(List<Order> success) {
495 rajveer 16173
      this.success = success;
16174
    }
16175
 
16176
    public void unsetSuccess() {
3061 chandransh 16177
      this.success = null;
495 rajveer 16178
    }
16179
 
3430 rajveer 16180
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 16181
    public boolean isSetSuccess() {
3061 chandransh 16182
      return this.success != null;
495 rajveer 16183
    }
16184
 
16185
    public void setSuccessIsSet(boolean value) {
3061 chandransh 16186
      if (!value) {
16187
        this.success = null;
16188
      }
495 rajveer 16189
    }
16190
 
16191
    public TransactionServiceException getEx() {
16192
      return this.ex;
16193
    }
16194
 
3430 rajveer 16195
    public void setEx(TransactionServiceException ex) {
495 rajveer 16196
      this.ex = ex;
16197
    }
16198
 
16199
    public void unsetEx() {
16200
      this.ex = null;
16201
    }
16202
 
3430 rajveer 16203
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
495 rajveer 16204
    public boolean isSetEx() {
16205
      return this.ex != null;
16206
    }
16207
 
16208
    public void setExIsSet(boolean value) {
16209
      if (!value) {
16210
        this.ex = null;
16211
      }
16212
    }
16213
 
16214
    public void setFieldValue(_Fields field, Object value) {
16215
      switch (field) {
16216
      case SUCCESS:
16217
        if (value == null) {
16218
          unsetSuccess();
16219
        } else {
3061 chandransh 16220
          setSuccess((List<Order>)value);
495 rajveer 16221
        }
16222
        break;
16223
 
16224
      case EX:
16225
        if (value == null) {
16226
          unsetEx();
16227
        } else {
16228
          setEx((TransactionServiceException)value);
16229
        }
16230
        break;
16231
 
16232
      }
16233
    }
16234
 
16235
    public Object getFieldValue(_Fields field) {
16236
      switch (field) {
16237
      case SUCCESS:
3061 chandransh 16238
        return getSuccess();
495 rajveer 16239
 
16240
      case EX:
16241
        return getEx();
16242
 
16243
      }
16244
      throw new IllegalStateException();
16245
    }
16246
 
3430 rajveer 16247
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16248
    public boolean isSet(_Fields field) {
16249
      if (field == null) {
16250
        throw new IllegalArgumentException();
16251
      }
495 rajveer 16252
 
16253
      switch (field) {
16254
      case SUCCESS:
16255
        return isSetSuccess();
16256
      case EX:
16257
        return isSetEx();
16258
      }
16259
      throw new IllegalStateException();
16260
    }
16261
 
16262
    @Override
16263
    public boolean equals(Object that) {
16264
      if (that == null)
16265
        return false;
3061 chandransh 16266
      if (that instanceof getOrdersForTransaction_result)
16267
        return this.equals((getOrdersForTransaction_result)that);
495 rajveer 16268
      return false;
16269
    }
16270
 
3061 chandransh 16271
    public boolean equals(getOrdersForTransaction_result that) {
495 rajveer 16272
      if (that == null)
16273
        return false;
16274
 
3061 chandransh 16275
      boolean this_present_success = true && this.isSetSuccess();
16276
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 16277
      if (this_present_success || that_present_success) {
16278
        if (!(this_present_success && that_present_success))
16279
          return false;
3061 chandransh 16280
        if (!this.success.equals(that.success))
495 rajveer 16281
          return false;
16282
      }
16283
 
16284
      boolean this_present_ex = true && this.isSetEx();
16285
      boolean that_present_ex = true && that.isSetEx();
16286
      if (this_present_ex || that_present_ex) {
16287
        if (!(this_present_ex && that_present_ex))
16288
          return false;
16289
        if (!this.ex.equals(that.ex))
16290
          return false;
16291
      }
16292
 
16293
      return true;
16294
    }
16295
 
16296
    @Override
16297
    public int hashCode() {
16298
      return 0;
16299
    }
16300
 
3061 chandransh 16301
    public int compareTo(getOrdersForTransaction_result other) {
495 rajveer 16302
      if (!getClass().equals(other.getClass())) {
16303
        return getClass().getName().compareTo(other.getClass().getName());
16304
      }
16305
 
16306
      int lastComparison = 0;
3061 chandransh 16307
      getOrdersForTransaction_result typedOther = (getOrdersForTransaction_result)other;
495 rajveer 16308
 
3430 rajveer 16309
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 16310
      if (lastComparison != 0) {
16311
        return lastComparison;
16312
      }
3430 rajveer 16313
      if (isSetSuccess()) {
16314
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16315
        if (lastComparison != 0) {
16316
          return lastComparison;
16317
        }
495 rajveer 16318
      }
3430 rajveer 16319
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
495 rajveer 16320
      if (lastComparison != 0) {
16321
        return lastComparison;
16322
      }
3430 rajveer 16323
      if (isSetEx()) {
16324
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
16325
        if (lastComparison != 0) {
16326
          return lastComparison;
16327
        }
495 rajveer 16328
      }
16329
      return 0;
16330
    }
16331
 
3430 rajveer 16332
    public _Fields fieldForId(int fieldId) {
16333
      return _Fields.findByThriftId(fieldId);
16334
    }
16335
 
16336
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16337
      org.apache.thrift.protocol.TField field;
495 rajveer 16338
      iprot.readStructBegin();
16339
      while (true)
16340
      {
16341
        field = iprot.readFieldBegin();
3430 rajveer 16342
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 16343
          break;
16344
        }
3430 rajveer 16345
        switch (field.id) {
16346
          case 0: // SUCCESS
16347
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16348
              {
16349
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
16350
                this.success = new ArrayList<Order>(_list36.size);
16351
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
3061 chandransh 16352
                {
3430 rajveer 16353
                  Order _elem38; // required
16354
                  _elem38 = new Order();
16355
                  _elem38.read(iprot);
16356
                  this.success.add(_elem38);
3061 chandransh 16357
                }
3430 rajveer 16358
                iprot.readListEnd();
495 rajveer 16359
              }
3430 rajveer 16360
            } else { 
16361
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16362
            }
16363
            break;
16364
          case 1: // EX
16365
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16366
              this.ex = new TransactionServiceException();
16367
              this.ex.read(iprot);
16368
            } else { 
16369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16370
            }
16371
            break;
16372
          default:
16373
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 16374
        }
3430 rajveer 16375
        iprot.readFieldEnd();
495 rajveer 16376
      }
16377
      iprot.readStructEnd();
16378
      validate();
16379
    }
16380
 
3430 rajveer 16381
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 16382
      oprot.writeStructBegin(STRUCT_DESC);
16383
 
16384
      if (this.isSetSuccess()) {
16385
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 16386
        {
3430 rajveer 16387
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3427 chandransh 16388
          for (Order _iter39 : this.success)
3061 chandransh 16389
          {
3427 chandransh 16390
            _iter39.write(oprot);
3061 chandransh 16391
          }
16392
          oprot.writeListEnd();
16393
        }
495 rajveer 16394
        oprot.writeFieldEnd();
16395
      } else if (this.isSetEx()) {
16396
        oprot.writeFieldBegin(EX_FIELD_DESC);
16397
        this.ex.write(oprot);
16398
        oprot.writeFieldEnd();
16399
      }
16400
      oprot.writeFieldStop();
16401
      oprot.writeStructEnd();
16402
    }
16403
 
16404
    @Override
16405
    public String toString() {
3061 chandransh 16406
      StringBuilder sb = new StringBuilder("getOrdersForTransaction_result(");
495 rajveer 16407
      boolean first = true;
16408
 
16409
      sb.append("success:");
3061 chandransh 16410
      if (this.success == null) {
16411
        sb.append("null");
16412
      } else {
16413
        sb.append(this.success);
16414
      }
495 rajveer 16415
      first = false;
16416
      if (!first) sb.append(", ");
16417
      sb.append("ex:");
16418
      if (this.ex == null) {
16419
        sb.append("null");
16420
      } else {
16421
        sb.append(this.ex);
16422
      }
16423
      first = false;
16424
      sb.append(")");
16425
      return sb.toString();
16426
    }
16427
 
3430 rajveer 16428
    public void validate() throws org.apache.thrift.TException {
495 rajveer 16429
      // check for required fields
16430
    }
16431
 
3430 rajveer 16432
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16433
      try {
16434
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16435
      } catch (org.apache.thrift.TException te) {
16436
        throw new java.io.IOException(te);
16437
      }
16438
    }
16439
 
16440
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16441
      try {
16442
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16443
      } catch (org.apache.thrift.TException te) {
16444
        throw new java.io.IOException(te);
16445
      }
16446
    }
16447
 
495 rajveer 16448
  }
16449
 
3430 rajveer 16450
  public static class getOrdersForCustomer_args implements org.apache.thrift.TBase<getOrdersForCustomer_args, getOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
16451
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForCustomer_args");
1148 chandransh 16452
 
3430 rajveer 16453
    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);
16454
    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);
16455
    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);
16456
    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 16457
 
3430 rajveer 16458
    private long customerId; // required
16459
    private long from_date; // required
16460
    private long to_date; // required
16461
    private List<OrderStatus> statuses; // required
1148 chandransh 16462
 
16463
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16464
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 16465
      CUSTOMER_ID((short)1, "customerId"),
16466
      FROM_DATE((short)2, "from_date"),
16467
      TO_DATE((short)3, "to_date"),
16468
      STATUSES((short)4, "statuses");
1148 chandransh 16469
 
16470
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16471
 
16472
      static {
16473
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16474
          byName.put(field.getFieldName(), field);
16475
        }
16476
      }
16477
 
16478
      /**
16479
       * Find the _Fields constant that matches fieldId, or null if its not found.
16480
       */
16481
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16482
        switch(fieldId) {
16483
          case 1: // CUSTOMER_ID
16484
            return CUSTOMER_ID;
16485
          case 2: // FROM_DATE
16486
            return FROM_DATE;
16487
          case 3: // TO_DATE
16488
            return TO_DATE;
16489
          case 4: // STATUSES
16490
            return STATUSES;
16491
          default:
16492
            return null;
16493
        }
1148 chandransh 16494
      }
16495
 
16496
      /**
16497
       * Find the _Fields constant that matches fieldId, throwing an exception
16498
       * if it is not found.
16499
       */
16500
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16501
        _Fields fields = findByThriftId(fieldId);
16502
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16503
        return fields;
16504
      }
16505
 
16506
      /**
16507
       * Find the _Fields constant that matches name, or null if its not found.
16508
       */
16509
      public static _Fields findByName(String name) {
16510
        return byName.get(name);
16511
      }
16512
 
16513
      private final short _thriftId;
16514
      private final String _fieldName;
16515
 
16516
      _Fields(short thriftId, String fieldName) {
16517
        _thriftId = thriftId;
16518
        _fieldName = fieldName;
16519
      }
16520
 
16521
      public short getThriftFieldId() {
16522
        return _thriftId;
16523
      }
16524
 
16525
      public String getFieldName() {
16526
        return _fieldName;
16527
      }
16528
    }
16529
 
16530
    // isset id assignments
3061 chandransh 16531
    private static final int __CUSTOMERID_ISSET_ID = 0;
16532
    private static final int __FROM_DATE_ISSET_ID = 1;
16533
    private static final int __TO_DATE_ISSET_ID = 2;
16534
    private BitSet __isset_bit_vector = new BitSet(3);
1148 chandransh 16535
 
3430 rajveer 16536
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1148 chandransh 16537
    static {
3430 rajveer 16538
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16539
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16540
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16541
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("from_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16542
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16543
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("to_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16544
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16545
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16546
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16547
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
16548
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16549
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_args.class, metaDataMap);
1148 chandransh 16550
    }
16551
 
3061 chandransh 16552
    public getOrdersForCustomer_args() {
1148 chandransh 16553
    }
16554
 
3061 chandransh 16555
    public getOrdersForCustomer_args(
16556
      long customerId,
16557
      long from_date,
16558
      long to_date,
16559
      List<OrderStatus> statuses)
1148 chandransh 16560
    {
16561
      this();
3061 chandransh 16562
      this.customerId = customerId;
16563
      setCustomerIdIsSet(true);
16564
      this.from_date = from_date;
16565
      setFrom_dateIsSet(true);
16566
      this.to_date = to_date;
16567
      setTo_dateIsSet(true);
16568
      this.statuses = statuses;
1148 chandransh 16569
    }
16570
 
16571
    /**
16572
     * Performs a deep copy on <i>other</i>.
16573
     */
3061 chandransh 16574
    public getOrdersForCustomer_args(getOrdersForCustomer_args other) {
1148 chandransh 16575
      __isset_bit_vector.clear();
16576
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 16577
      this.customerId = other.customerId;
16578
      this.from_date = other.from_date;
16579
      this.to_date = other.to_date;
16580
      if (other.isSetStatuses()) {
16581
        List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();
16582
        for (OrderStatus other_element : other.statuses) {
16583
          __this__statuses.add(other_element);
16584
        }
16585
        this.statuses = __this__statuses;
2779 chandransh 16586
      }
1148 chandransh 16587
    }
16588
 
3061 chandransh 16589
    public getOrdersForCustomer_args deepCopy() {
16590
      return new getOrdersForCustomer_args(this);
1148 chandransh 16591
    }
16592
 
3430 rajveer 16593
    @Override
16594
    public void clear() {
16595
      setCustomerIdIsSet(false);
16596
      this.customerId = 0;
16597
      setFrom_dateIsSet(false);
16598
      this.from_date = 0;
16599
      setTo_dateIsSet(false);
16600
      this.to_date = 0;
16601
      this.statuses = null;
1148 chandransh 16602
    }
16603
 
3061 chandransh 16604
    public long getCustomerId() {
16605
      return this.customerId;
1148 chandransh 16606
    }
16607
 
3430 rajveer 16608
    public void setCustomerId(long customerId) {
3061 chandransh 16609
      this.customerId = customerId;
16610
      setCustomerIdIsSet(true);
1148 chandransh 16611
    }
16612
 
3061 chandransh 16613
    public void unsetCustomerId() {
16614
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
1148 chandransh 16615
    }
16616
 
3430 rajveer 16617
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
3061 chandransh 16618
    public boolean isSetCustomerId() {
16619
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
1148 chandransh 16620
    }
16621
 
3061 chandransh 16622
    public void setCustomerIdIsSet(boolean value) {
16623
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
1148 chandransh 16624
    }
16625
 
3061 chandransh 16626
    public long getFrom_date() {
16627
      return this.from_date;
1148 chandransh 16628
    }
16629
 
3430 rajveer 16630
    public void setFrom_date(long from_date) {
3061 chandransh 16631
      this.from_date = from_date;
16632
      setFrom_dateIsSet(true);
1148 chandransh 16633
    }
16634
 
3061 chandransh 16635
    public void unsetFrom_date() {
16636
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
1148 chandransh 16637
    }
16638
 
3430 rajveer 16639
    /** Returns true if field from_date is set (has been assigned a value) and false otherwise */
3061 chandransh 16640
    public boolean isSetFrom_date() {
16641
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
1148 chandransh 16642
    }
16643
 
3061 chandransh 16644
    public void setFrom_dateIsSet(boolean value) {
16645
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
1148 chandransh 16646
    }
16647
 
3061 chandransh 16648
    public long getTo_date() {
16649
      return this.to_date;
2779 chandransh 16650
    }
16651
 
3430 rajveer 16652
    public void setTo_date(long to_date) {
3061 chandransh 16653
      this.to_date = to_date;
16654
      setTo_dateIsSet(true);
2779 chandransh 16655
    }
16656
 
3061 chandransh 16657
    public void unsetTo_date() {
16658
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
2779 chandransh 16659
    }
16660
 
3430 rajveer 16661
    /** Returns true if field to_date is set (has been assigned a value) and false otherwise */
3061 chandransh 16662
    public boolean isSetTo_date() {
16663
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
2779 chandransh 16664
    }
16665
 
3061 chandransh 16666
    public void setTo_dateIsSet(boolean value) {
16667
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
2779 chandransh 16668
    }
16669
 
3061 chandransh 16670
    public int getStatusesSize() {
16671
      return (this.statuses == null) ? 0 : this.statuses.size();
2779 chandransh 16672
    }
16673
 
3061 chandransh 16674
    public java.util.Iterator<OrderStatus> getStatusesIterator() {
16675
      return (this.statuses == null) ? null : this.statuses.iterator();
2779 chandransh 16676
    }
16677
 
3061 chandransh 16678
    public void addToStatuses(OrderStatus elem) {
16679
      if (this.statuses == null) {
16680
        this.statuses = new ArrayList<OrderStatus>();
2779 chandransh 16681
      }
3061 chandransh 16682
      this.statuses.add(elem);
2779 chandransh 16683
    }
16684
 
3061 chandransh 16685
    public List<OrderStatus> getStatuses() {
16686
      return this.statuses;
2779 chandransh 16687
    }
16688
 
3430 rajveer 16689
    public void setStatuses(List<OrderStatus> statuses) {
3061 chandransh 16690
      this.statuses = statuses;
2779 chandransh 16691
    }
16692
 
3061 chandransh 16693
    public void unsetStatuses() {
16694
      this.statuses = null;
2779 chandransh 16695
    }
16696
 
3430 rajveer 16697
    /** Returns true if field statuses is set (has been assigned a value) and false otherwise */
3061 chandransh 16698
    public boolean isSetStatuses() {
16699
      return this.statuses != null;
2779 chandransh 16700
    }
16701
 
3061 chandransh 16702
    public void setStatusesIsSet(boolean value) {
2779 chandransh 16703
      if (!value) {
3061 chandransh 16704
        this.statuses = null;
2779 chandransh 16705
      }
16706
    }
16707
 
1148 chandransh 16708
    public void setFieldValue(_Fields field, Object value) {
16709
      switch (field) {
3061 chandransh 16710
      case CUSTOMER_ID:
1148 chandransh 16711
        if (value == null) {
3061 chandransh 16712
          unsetCustomerId();
1148 chandransh 16713
        } else {
3061 chandransh 16714
          setCustomerId((Long)value);
1148 chandransh 16715
        }
16716
        break;
16717
 
3061 chandransh 16718
      case FROM_DATE:
1148 chandransh 16719
        if (value == null) {
3061 chandransh 16720
          unsetFrom_date();
1148 chandransh 16721
        } else {
3061 chandransh 16722
          setFrom_date((Long)value);
1148 chandransh 16723
        }
16724
        break;
16725
 
3061 chandransh 16726
      case TO_DATE:
2779 chandransh 16727
        if (value == null) {
3061 chandransh 16728
          unsetTo_date();
2779 chandransh 16729
        } else {
3061 chandransh 16730
          setTo_date((Long)value);
2779 chandransh 16731
        }
16732
        break;
16733
 
3061 chandransh 16734
      case STATUSES:
2779 chandransh 16735
        if (value == null) {
3061 chandransh 16736
          unsetStatuses();
2779 chandransh 16737
        } else {
3061 chandransh 16738
          setStatuses((List<OrderStatus>)value);
2779 chandransh 16739
        }
16740
        break;
16741
 
1148 chandransh 16742
      }
16743
    }
16744
 
16745
    public Object getFieldValue(_Fields field) {
16746
      switch (field) {
3061 chandransh 16747
      case CUSTOMER_ID:
3430 rajveer 16748
        return Long.valueOf(getCustomerId());
1148 chandransh 16749
 
3061 chandransh 16750
      case FROM_DATE:
3430 rajveer 16751
        return Long.valueOf(getFrom_date());
1148 chandransh 16752
 
3061 chandransh 16753
      case TO_DATE:
3430 rajveer 16754
        return Long.valueOf(getTo_date());
2779 chandransh 16755
 
3061 chandransh 16756
      case STATUSES:
16757
        return getStatuses();
2779 chandransh 16758
 
1148 chandransh 16759
      }
16760
      throw new IllegalStateException();
16761
    }
16762
 
3430 rajveer 16763
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16764
    public boolean isSet(_Fields field) {
16765
      if (field == null) {
16766
        throw new IllegalArgumentException();
16767
      }
1148 chandransh 16768
 
16769
      switch (field) {
3061 chandransh 16770
      case CUSTOMER_ID:
16771
        return isSetCustomerId();
16772
      case FROM_DATE:
16773
        return isSetFrom_date();
16774
      case TO_DATE:
16775
        return isSetTo_date();
16776
      case STATUSES:
16777
        return isSetStatuses();
1148 chandransh 16778
      }
16779
      throw new IllegalStateException();
16780
    }
16781
 
16782
    @Override
16783
    public boolean equals(Object that) {
16784
      if (that == null)
16785
        return false;
3061 chandransh 16786
      if (that instanceof getOrdersForCustomer_args)
16787
        return this.equals((getOrdersForCustomer_args)that);
1148 chandransh 16788
      return false;
16789
    }
16790
 
3061 chandransh 16791
    public boolean equals(getOrdersForCustomer_args that) {
1148 chandransh 16792
      if (that == null)
16793
        return false;
16794
 
3061 chandransh 16795
      boolean this_present_customerId = true;
16796
      boolean that_present_customerId = true;
16797
      if (this_present_customerId || that_present_customerId) {
16798
        if (!(this_present_customerId && that_present_customerId))
1148 chandransh 16799
          return false;
3061 chandransh 16800
        if (this.customerId != that.customerId)
1148 chandransh 16801
          return false;
16802
      }
16803
 
3061 chandransh 16804
      boolean this_present_from_date = true;
16805
      boolean that_present_from_date = true;
16806
      if (this_present_from_date || that_present_from_date) {
16807
        if (!(this_present_from_date && that_present_from_date))
1148 chandransh 16808
          return false;
3061 chandransh 16809
        if (this.from_date != that.from_date)
1148 chandransh 16810
          return false;
16811
      }
16812
 
3061 chandransh 16813
      boolean this_present_to_date = true;
16814
      boolean that_present_to_date = true;
16815
      if (this_present_to_date || that_present_to_date) {
16816
        if (!(this_present_to_date && that_present_to_date))
2779 chandransh 16817
          return false;
3061 chandransh 16818
        if (this.to_date != that.to_date)
2779 chandransh 16819
          return false;
16820
      }
16821
 
3061 chandransh 16822
      boolean this_present_statuses = true && this.isSetStatuses();
16823
      boolean that_present_statuses = true && that.isSetStatuses();
16824
      if (this_present_statuses || that_present_statuses) {
16825
        if (!(this_present_statuses && that_present_statuses))
2779 chandransh 16826
          return false;
3061 chandransh 16827
        if (!this.statuses.equals(that.statuses))
2779 chandransh 16828
          return false;
16829
      }
16830
 
1148 chandransh 16831
      return true;
16832
    }
16833
 
16834
    @Override
16835
    public int hashCode() {
16836
      return 0;
16837
    }
16838
 
3061 chandransh 16839
    public int compareTo(getOrdersForCustomer_args other) {
1148 chandransh 16840
      if (!getClass().equals(other.getClass())) {
16841
        return getClass().getName().compareTo(other.getClass().getName());
16842
      }
16843
 
16844
      int lastComparison = 0;
3061 chandransh 16845
      getOrdersForCustomer_args typedOther = (getOrdersForCustomer_args)other;
1148 chandransh 16846
 
3430 rajveer 16847
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
1148 chandransh 16848
      if (lastComparison != 0) {
16849
        return lastComparison;
16850
      }
3430 rajveer 16851
      if (isSetCustomerId()) {
16852
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
16853
        if (lastComparison != 0) {
16854
          return lastComparison;
16855
        }
1148 chandransh 16856
      }
3430 rajveer 16857
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(typedOther.isSetFrom_date());
1148 chandransh 16858
      if (lastComparison != 0) {
16859
        return lastComparison;
16860
      }
3430 rajveer 16861
      if (isSetFrom_date()) {
16862
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_date, typedOther.from_date);
16863
        if (lastComparison != 0) {
16864
          return lastComparison;
16865
        }
1148 chandransh 16866
      }
3430 rajveer 16867
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(typedOther.isSetTo_date());
2779 chandransh 16868
      if (lastComparison != 0) {
16869
        return lastComparison;
16870
      }
3430 rajveer 16871
      if (isSetTo_date()) {
16872
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_date, typedOther.to_date);
16873
        if (lastComparison != 0) {
16874
          return lastComparison;
16875
        }
2779 chandransh 16876
      }
3430 rajveer 16877
      lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());
2779 chandransh 16878
      if (lastComparison != 0) {
16879
        return lastComparison;
16880
      }
3430 rajveer 16881
      if (isSetStatuses()) {
16882
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);
16883
        if (lastComparison != 0) {
16884
          return lastComparison;
16885
        }
2779 chandransh 16886
      }
1148 chandransh 16887
      return 0;
16888
    }
16889
 
3430 rajveer 16890
    public _Fields fieldForId(int fieldId) {
16891
      return _Fields.findByThriftId(fieldId);
16892
    }
16893
 
16894
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16895
      org.apache.thrift.protocol.TField field;
1148 chandransh 16896
      iprot.readStructBegin();
16897
      while (true)
16898
      {
16899
        field = iprot.readFieldBegin();
3430 rajveer 16900
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1148 chandransh 16901
          break;
16902
        }
3430 rajveer 16903
        switch (field.id) {
16904
          case 1: // CUSTOMER_ID
16905
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16906
              this.customerId = iprot.readI64();
16907
              setCustomerIdIsSet(true);
16908
            } else { 
16909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16910
            }
16911
            break;
16912
          case 2: // FROM_DATE
16913
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16914
              this.from_date = iprot.readI64();
16915
              setFrom_dateIsSet(true);
16916
            } else { 
16917
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16918
            }
16919
            break;
16920
          case 3: // TO_DATE
16921
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16922
              this.to_date = iprot.readI64();
16923
              setTo_dateIsSet(true);
16924
            } else { 
16925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16926
            }
16927
            break;
16928
          case 4: // STATUSES
16929
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16930
              {
16931
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
16932
                this.statuses = new ArrayList<OrderStatus>(_list40.size);
16933
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
3061 chandransh 16934
                {
3430 rajveer 16935
                  OrderStatus _elem42; // required
16936
                  _elem42 = OrderStatus.findByValue(iprot.readI32());
16937
                  this.statuses.add(_elem42);
3061 chandransh 16938
                }
3430 rajveer 16939
                iprot.readListEnd();
2779 chandransh 16940
              }
3430 rajveer 16941
            } else { 
16942
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16943
            }
16944
            break;
16945
          default:
16946
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1148 chandransh 16947
        }
3430 rajveer 16948
        iprot.readFieldEnd();
1148 chandransh 16949
      }
16950
      iprot.readStructEnd();
16951
      validate();
16952
    }
16953
 
3430 rajveer 16954
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1148 chandransh 16955
      validate();
16956
 
16957
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 16958
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
16959
      oprot.writeI64(this.customerId);
1148 chandransh 16960
      oprot.writeFieldEnd();
3061 chandransh 16961
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
16962
      oprot.writeI64(this.from_date);
1148 chandransh 16963
      oprot.writeFieldEnd();
3061 chandransh 16964
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
16965
      oprot.writeI64(this.to_date);
2779 chandransh 16966
      oprot.writeFieldEnd();
3061 chandransh 16967
      if (this.statuses != null) {
16968
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
16969
        {
3430 rajveer 16970
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
3427 chandransh 16971
          for (OrderStatus _iter43 : this.statuses)
3061 chandransh 16972
          {
3427 chandransh 16973
            oprot.writeI32(_iter43.getValue());
3061 chandransh 16974
          }
16975
          oprot.writeListEnd();
16976
        }
2779 chandransh 16977
        oprot.writeFieldEnd();
16978
      }
1148 chandransh 16979
      oprot.writeFieldStop();
16980
      oprot.writeStructEnd();
16981
    }
16982
 
16983
    @Override
16984
    public String toString() {
3061 chandransh 16985
      StringBuilder sb = new StringBuilder("getOrdersForCustomer_args(");
1148 chandransh 16986
      boolean first = true;
16987
 
3061 chandransh 16988
      sb.append("customerId:");
16989
      sb.append(this.customerId);
1148 chandransh 16990
      first = false;
16991
      if (!first) sb.append(", ");
3061 chandransh 16992
      sb.append("from_date:");
16993
      sb.append(this.from_date);
1148 chandransh 16994
      first = false;
2779 chandransh 16995
      if (!first) sb.append(", ");
3061 chandransh 16996
      sb.append("to_date:");
16997
      sb.append(this.to_date);
2779 chandransh 16998
      first = false;
16999
      if (!first) sb.append(", ");
3061 chandransh 17000
      sb.append("statuses:");
17001
      if (this.statuses == null) {
2779 chandransh 17002
        sb.append("null");
17003
      } else {
3061 chandransh 17004
        sb.append(this.statuses);
2779 chandransh 17005
      }
17006
      first = false;
1148 chandransh 17007
      sb.append(")");
17008
      return sb.toString();
17009
    }
17010
 
3430 rajveer 17011
    public void validate() throws org.apache.thrift.TException {
1148 chandransh 17012
      // check for required fields
17013
    }
17014
 
3430 rajveer 17015
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17016
      try {
17017
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17018
      } catch (org.apache.thrift.TException te) {
17019
        throw new java.io.IOException(te);
17020
      }
17021
    }
17022
 
17023
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17024
      try {
17025
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17026
      } catch (org.apache.thrift.TException te) {
17027
        throw new java.io.IOException(te);
17028
      }
17029
    }
17030
 
1148 chandransh 17031
  }
17032
 
3430 rajveer 17033
  public static class getOrdersForCustomer_result implements org.apache.thrift.TBase<getOrdersForCustomer_result, getOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
17034
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForCustomer_result");
1148 chandransh 17035
 
3430 rajveer 17036
    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);
17037
    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 17038
 
3430 rajveer 17039
    private List<Order> success; // required
17040
    private TransactionServiceException ex; // required
1148 chandransh 17041
 
17042
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17043
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1148 chandransh 17044
      SUCCESS((short)0, "success"),
17045
      EX((short)1, "ex");
17046
 
17047
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17048
 
17049
      static {
17050
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17051
          byName.put(field.getFieldName(), field);
17052
        }
17053
      }
17054
 
17055
      /**
17056
       * Find the _Fields constant that matches fieldId, or null if its not found.
17057
       */
17058
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17059
        switch(fieldId) {
17060
          case 0: // SUCCESS
17061
            return SUCCESS;
17062
          case 1: // EX
17063
            return EX;
17064
          default:
17065
            return null;
17066
        }
1148 chandransh 17067
      }
17068
 
17069
      /**
17070
       * Find the _Fields constant that matches fieldId, throwing an exception
17071
       * if it is not found.
17072
       */
17073
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17074
        _Fields fields = findByThriftId(fieldId);
17075
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17076
        return fields;
17077
      }
17078
 
17079
      /**
17080
       * Find the _Fields constant that matches name, or null if its not found.
17081
       */
17082
      public static _Fields findByName(String name) {
17083
        return byName.get(name);
17084
      }
17085
 
17086
      private final short _thriftId;
17087
      private final String _fieldName;
17088
 
17089
      _Fields(short thriftId, String fieldName) {
17090
        _thriftId = thriftId;
17091
        _fieldName = fieldName;
17092
      }
17093
 
17094
      public short getThriftFieldId() {
17095
        return _thriftId;
17096
      }
17097
 
17098
      public String getFieldName() {
17099
        return _fieldName;
17100
      }
17101
    }
17102
 
17103
    // isset id assignments
17104
 
3430 rajveer 17105
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1148 chandransh 17106
    static {
3430 rajveer 17107
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17108
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17109
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17110
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
17111
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17112
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17113
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17114
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_result.class, metaDataMap);
1148 chandransh 17115
    }
17116
 
3061 chandransh 17117
    public getOrdersForCustomer_result() {
1148 chandransh 17118
    }
17119
 
3061 chandransh 17120
    public getOrdersForCustomer_result(
17121
      List<Order> success,
1148 chandransh 17122
      TransactionServiceException ex)
17123
    {
17124
      this();
17125
      this.success = success;
17126
      this.ex = ex;
17127
    }
17128
 
17129
    /**
17130
     * Performs a deep copy on <i>other</i>.
17131
     */
3061 chandransh 17132
    public getOrdersForCustomer_result(getOrdersForCustomer_result other) {
17133
      if (other.isSetSuccess()) {
17134
        List<Order> __this__success = new ArrayList<Order>();
17135
        for (Order other_element : other.success) {
17136
          __this__success.add(new Order(other_element));
17137
        }
17138
        this.success = __this__success;
17139
      }
1148 chandransh 17140
      if (other.isSetEx()) {
17141
        this.ex = new TransactionServiceException(other.ex);
17142
      }
17143
    }
17144
 
3061 chandransh 17145
    public getOrdersForCustomer_result deepCopy() {
17146
      return new getOrdersForCustomer_result(this);
1148 chandransh 17147
    }
17148
 
3430 rajveer 17149
    @Override
17150
    public void clear() {
17151
      this.success = null;
17152
      this.ex = null;
1148 chandransh 17153
    }
17154
 
3061 chandransh 17155
    public int getSuccessSize() {
17156
      return (this.success == null) ? 0 : this.success.size();
17157
    }
17158
 
17159
    public java.util.Iterator<Order> getSuccessIterator() {
17160
      return (this.success == null) ? null : this.success.iterator();
17161
    }
17162
 
17163
    public void addToSuccess(Order elem) {
17164
      if (this.success == null) {
17165
        this.success = new ArrayList<Order>();
17166
      }
17167
      this.success.add(elem);
17168
    }
17169
 
17170
    public List<Order> getSuccess() {
1148 chandransh 17171
      return this.success;
17172
    }
17173
 
3430 rajveer 17174
    public void setSuccess(List<Order> success) {
1148 chandransh 17175
      this.success = success;
17176
    }
17177
 
17178
    public void unsetSuccess() {
3061 chandransh 17179
      this.success = null;
1148 chandransh 17180
    }
17181
 
3430 rajveer 17182
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1148 chandransh 17183
    public boolean isSetSuccess() {
3061 chandransh 17184
      return this.success != null;
1148 chandransh 17185
    }
17186
 
17187
    public void setSuccessIsSet(boolean value) {
3061 chandransh 17188
      if (!value) {
17189
        this.success = null;
17190
      }
1148 chandransh 17191
    }
17192
 
17193
    public TransactionServiceException getEx() {
17194
      return this.ex;
17195
    }
17196
 
3430 rajveer 17197
    public void setEx(TransactionServiceException ex) {
1148 chandransh 17198
      this.ex = ex;
17199
    }
17200
 
17201
    public void unsetEx() {
17202
      this.ex = null;
17203
    }
17204
 
3430 rajveer 17205
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1148 chandransh 17206
    public boolean isSetEx() {
17207
      return this.ex != null;
17208
    }
17209
 
17210
    public void setExIsSet(boolean value) {
17211
      if (!value) {
17212
        this.ex = null;
17213
      }
17214
    }
17215
 
17216
    public void setFieldValue(_Fields field, Object value) {
17217
      switch (field) {
17218
      case SUCCESS:
17219
        if (value == null) {
17220
          unsetSuccess();
17221
        } else {
3061 chandransh 17222
          setSuccess((List<Order>)value);
1148 chandransh 17223
        }
17224
        break;
17225
 
17226
      case EX:
17227
        if (value == null) {
17228
          unsetEx();
17229
        } else {
17230
          setEx((TransactionServiceException)value);
17231
        }
17232
        break;
17233
 
17234
      }
17235
    }
17236
 
17237
    public Object getFieldValue(_Fields field) {
17238
      switch (field) {
17239
      case SUCCESS:
3061 chandransh 17240
        return getSuccess();
1148 chandransh 17241
 
17242
      case EX:
17243
        return getEx();
17244
 
17245
      }
17246
      throw new IllegalStateException();
17247
    }
17248
 
3430 rajveer 17249
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17250
    public boolean isSet(_Fields field) {
17251
      if (field == null) {
17252
        throw new IllegalArgumentException();
17253
      }
1148 chandransh 17254
 
17255
      switch (field) {
17256
      case SUCCESS:
17257
        return isSetSuccess();
17258
      case EX:
17259
        return isSetEx();
17260
      }
17261
      throw new IllegalStateException();
17262
    }
17263
 
17264
    @Override
17265
    public boolean equals(Object that) {
17266
      if (that == null)
17267
        return false;
3061 chandransh 17268
      if (that instanceof getOrdersForCustomer_result)
17269
        return this.equals((getOrdersForCustomer_result)that);
1148 chandransh 17270
      return false;
17271
    }
17272
 
3061 chandransh 17273
    public boolean equals(getOrdersForCustomer_result that) {
1148 chandransh 17274
      if (that == null)
17275
        return false;
17276
 
3061 chandransh 17277
      boolean this_present_success = true && this.isSetSuccess();
17278
      boolean that_present_success = true && that.isSetSuccess();
1148 chandransh 17279
      if (this_present_success || that_present_success) {
17280
        if (!(this_present_success && that_present_success))
17281
          return false;
3061 chandransh 17282
        if (!this.success.equals(that.success))
1148 chandransh 17283
          return false;
17284
      }
17285
 
17286
      boolean this_present_ex = true && this.isSetEx();
17287
      boolean that_present_ex = true && that.isSetEx();
17288
      if (this_present_ex || that_present_ex) {
17289
        if (!(this_present_ex && that_present_ex))
17290
          return false;
17291
        if (!this.ex.equals(that.ex))
17292
          return false;
17293
      }
17294
 
17295
      return true;
17296
    }
17297
 
17298
    @Override
17299
    public int hashCode() {
17300
      return 0;
17301
    }
17302
 
3061 chandransh 17303
    public int compareTo(getOrdersForCustomer_result other) {
1148 chandransh 17304
      if (!getClass().equals(other.getClass())) {
17305
        return getClass().getName().compareTo(other.getClass().getName());
17306
      }
17307
 
17308
      int lastComparison = 0;
3061 chandransh 17309
      getOrdersForCustomer_result typedOther = (getOrdersForCustomer_result)other;
1148 chandransh 17310
 
3430 rajveer 17311
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1148 chandransh 17312
      if (lastComparison != 0) {
17313
        return lastComparison;
17314
      }
3430 rajveer 17315
      if (isSetSuccess()) {
17316
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17317
        if (lastComparison != 0) {
17318
          return lastComparison;
17319
        }
1148 chandransh 17320
      }
3430 rajveer 17321
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1148 chandransh 17322
      if (lastComparison != 0) {
17323
        return lastComparison;
17324
      }
3430 rajveer 17325
      if (isSetEx()) {
17326
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
17327
        if (lastComparison != 0) {
17328
          return lastComparison;
17329
        }
1148 chandransh 17330
      }
17331
      return 0;
17332
    }
17333
 
3430 rajveer 17334
    public _Fields fieldForId(int fieldId) {
17335
      return _Fields.findByThriftId(fieldId);
17336
    }
17337
 
17338
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17339
      org.apache.thrift.protocol.TField field;
1148 chandransh 17340
      iprot.readStructBegin();
17341
      while (true)
17342
      {
17343
        field = iprot.readFieldBegin();
3430 rajveer 17344
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1148 chandransh 17345
          break;
17346
        }
3430 rajveer 17347
        switch (field.id) {
17348
          case 0: // SUCCESS
17349
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17350
              {
17351
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
17352
                this.success = new ArrayList<Order>(_list44.size);
17353
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
3061 chandransh 17354
                {
3430 rajveer 17355
                  Order _elem46; // required
17356
                  _elem46 = new Order();
17357
                  _elem46.read(iprot);
17358
                  this.success.add(_elem46);
3061 chandransh 17359
                }
3430 rajveer 17360
                iprot.readListEnd();
1148 chandransh 17361
              }
3430 rajveer 17362
            } else { 
17363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17364
            }
17365
            break;
17366
          case 1: // EX
17367
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17368
              this.ex = new TransactionServiceException();
17369
              this.ex.read(iprot);
17370
            } else { 
17371
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17372
            }
17373
            break;
17374
          default:
17375
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1148 chandransh 17376
        }
3430 rajveer 17377
        iprot.readFieldEnd();
1148 chandransh 17378
      }
17379
      iprot.readStructEnd();
17380
      validate();
17381
    }
17382
 
3430 rajveer 17383
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1148 chandransh 17384
      oprot.writeStructBegin(STRUCT_DESC);
17385
 
17386
      if (this.isSetSuccess()) {
17387
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 17388
        {
3430 rajveer 17389
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3427 chandransh 17390
          for (Order _iter47 : this.success)
3061 chandransh 17391
          {
3427 chandransh 17392
            _iter47.write(oprot);
3061 chandransh 17393
          }
17394
          oprot.writeListEnd();
17395
        }
1148 chandransh 17396
        oprot.writeFieldEnd();
17397
      } else if (this.isSetEx()) {
17398
        oprot.writeFieldBegin(EX_FIELD_DESC);
17399
        this.ex.write(oprot);
17400
        oprot.writeFieldEnd();
17401
      }
17402
      oprot.writeFieldStop();
17403
      oprot.writeStructEnd();
17404
    }
17405
 
17406
    @Override
17407
    public String toString() {
3061 chandransh 17408
      StringBuilder sb = new StringBuilder("getOrdersForCustomer_result(");
1148 chandransh 17409
      boolean first = true;
17410
 
17411
      sb.append("success:");
3061 chandransh 17412
      if (this.success == null) {
17413
        sb.append("null");
17414
      } else {
17415
        sb.append(this.success);
17416
      }
1148 chandransh 17417
      first = false;
17418
      if (!first) sb.append(", ");
17419
      sb.append("ex:");
17420
      if (this.ex == null) {
17421
        sb.append("null");
17422
      } else {
17423
        sb.append(this.ex);
17424
      }
17425
      first = false;
17426
      sb.append(")");
17427
      return sb.toString();
17428
    }
17429
 
3430 rajveer 17430
    public void validate() throws org.apache.thrift.TException {
1148 chandransh 17431
      // check for required fields
17432
    }
17433
 
3430 rajveer 17434
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17435
      try {
17436
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17437
      } catch (org.apache.thrift.TException te) {
17438
        throw new java.io.IOException(te);
17439
      }
17440
    }
17441
 
17442
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17443
      try {
17444
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17445
      } catch (org.apache.thrift.TException te) {
17446
        throw new java.io.IOException(te);
17447
      }
17448
    }
17449
 
1148 chandransh 17450
  }
17451
 
3430 rajveer 17452
  public static class createOrder_args implements org.apache.thrift.TBase<createOrder_args, createOrder_args._Fields>, java.io.Serializable, Cloneable   {
17453
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrder_args");
923 rajveer 17454
 
3430 rajveer 17455
    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 17456
 
3430 rajveer 17457
    private Order order; // required
923 rajveer 17458
 
17459
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17460
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 17461
      ORDER((short)1, "order");
923 rajveer 17462
 
17463
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17464
 
17465
      static {
17466
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17467
          byName.put(field.getFieldName(), field);
17468
        }
17469
      }
17470
 
17471
      /**
17472
       * Find the _Fields constant that matches fieldId, or null if its not found.
17473
       */
17474
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17475
        switch(fieldId) {
17476
          case 1: // ORDER
17477
            return ORDER;
17478
          default:
17479
            return null;
17480
        }
923 rajveer 17481
      }
17482
 
17483
      /**
17484
       * Find the _Fields constant that matches fieldId, throwing an exception
17485
       * if it is not found.
17486
       */
17487
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17488
        _Fields fields = findByThriftId(fieldId);
17489
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17490
        return fields;
17491
      }
17492
 
17493
      /**
17494
       * Find the _Fields constant that matches name, or null if its not found.
17495
       */
17496
      public static _Fields findByName(String name) {
17497
        return byName.get(name);
17498
      }
17499
 
17500
      private final short _thriftId;
17501
      private final String _fieldName;
17502
 
17503
      _Fields(short thriftId, String fieldName) {
17504
        _thriftId = thriftId;
17505
        _fieldName = fieldName;
17506
      }
17507
 
17508
      public short getThriftFieldId() {
17509
        return _thriftId;
17510
      }
17511
 
17512
      public String getFieldName() {
17513
        return _fieldName;
17514
      }
17515
    }
17516
 
17517
    // isset id assignments
17518
 
3430 rajveer 17519
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
923 rajveer 17520
    static {
3430 rajveer 17521
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17522
      tmpMap.put(_Fields.ORDER, new org.apache.thrift.meta_data.FieldMetaData("order", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17523
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
17524
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17525
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrder_args.class, metaDataMap);
923 rajveer 17526
    }
17527
 
3061 chandransh 17528
    public createOrder_args() {
923 rajveer 17529
    }
17530
 
3061 chandransh 17531
    public createOrder_args(
17532
      Order order)
923 rajveer 17533
    {
17534
      this();
3061 chandransh 17535
      this.order = order;
923 rajveer 17536
    }
17537
 
17538
    /**
17539
     * Performs a deep copy on <i>other</i>.
17540
     */
3061 chandransh 17541
    public createOrder_args(createOrder_args other) {
17542
      if (other.isSetOrder()) {
17543
        this.order = new Order(other.order);
17544
      }
923 rajveer 17545
    }
17546
 
3061 chandransh 17547
    public createOrder_args deepCopy() {
17548
      return new createOrder_args(this);
923 rajveer 17549
    }
17550
 
3430 rajveer 17551
    @Override
17552
    public void clear() {
17553
      this.order = null;
923 rajveer 17554
    }
17555
 
3061 chandransh 17556
    public Order getOrder() {
17557
      return this.order;
923 rajveer 17558
    }
17559
 
3430 rajveer 17560
    public void setOrder(Order order) {
3061 chandransh 17561
      this.order = order;
923 rajveer 17562
    }
17563
 
3061 chandransh 17564
    public void unsetOrder() {
17565
      this.order = null;
923 rajveer 17566
    }
17567
 
3430 rajveer 17568
    /** Returns true if field order is set (has been assigned a value) and false otherwise */
3061 chandransh 17569
    public boolean isSetOrder() {
17570
      return this.order != null;
923 rajveer 17571
    }
17572
 
3061 chandransh 17573
    public void setOrderIsSet(boolean value) {
17574
      if (!value) {
17575
        this.order = null;
17576
      }
923 rajveer 17577
    }
17578
 
17579
    public void setFieldValue(_Fields field, Object value) {
17580
      switch (field) {
3061 chandransh 17581
      case ORDER:
923 rajveer 17582
        if (value == null) {
3061 chandransh 17583
          unsetOrder();
923 rajveer 17584
        } else {
3061 chandransh 17585
          setOrder((Order)value);
923 rajveer 17586
        }
17587
        break;
17588
 
17589
      }
17590
    }
17591
 
17592
    public Object getFieldValue(_Fields field) {
17593
      switch (field) {
3061 chandransh 17594
      case ORDER:
17595
        return getOrder();
923 rajveer 17596
 
17597
      }
17598
      throw new IllegalStateException();
17599
    }
17600
 
3430 rajveer 17601
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17602
    public boolean isSet(_Fields field) {
17603
      if (field == null) {
17604
        throw new IllegalArgumentException();
17605
      }
923 rajveer 17606
 
17607
      switch (field) {
3061 chandransh 17608
      case ORDER:
17609
        return isSetOrder();
923 rajveer 17610
      }
17611
      throw new IllegalStateException();
17612
    }
17613
 
17614
    @Override
17615
    public boolean equals(Object that) {
17616
      if (that == null)
17617
        return false;
3061 chandransh 17618
      if (that instanceof createOrder_args)
17619
        return this.equals((createOrder_args)that);
923 rajveer 17620
      return false;
17621
    }
17622
 
3061 chandransh 17623
    public boolean equals(createOrder_args that) {
923 rajveer 17624
      if (that == null)
17625
        return false;
17626
 
3061 chandransh 17627
      boolean this_present_order = true && this.isSetOrder();
17628
      boolean that_present_order = true && that.isSetOrder();
17629
      if (this_present_order || that_present_order) {
17630
        if (!(this_present_order && that_present_order))
923 rajveer 17631
          return false;
3061 chandransh 17632
        if (!this.order.equals(that.order))
923 rajveer 17633
          return false;
17634
      }
17635
 
17636
      return true;
17637
    }
17638
 
17639
    @Override
17640
    public int hashCode() {
17641
      return 0;
17642
    }
17643
 
3061 chandransh 17644
    public int compareTo(createOrder_args other) {
923 rajveer 17645
      if (!getClass().equals(other.getClass())) {
17646
        return getClass().getName().compareTo(other.getClass().getName());
17647
      }
17648
 
17649
      int lastComparison = 0;
3061 chandransh 17650
      createOrder_args typedOther = (createOrder_args)other;
923 rajveer 17651
 
3430 rajveer 17652
      lastComparison = Boolean.valueOf(isSetOrder()).compareTo(typedOther.isSetOrder());
923 rajveer 17653
      if (lastComparison != 0) {
17654
        return lastComparison;
17655
      }
3430 rajveer 17656
      if (isSetOrder()) {
17657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, typedOther.order);
17658
        if (lastComparison != 0) {
17659
          return lastComparison;
17660
        }
923 rajveer 17661
      }
17662
      return 0;
17663
    }
17664
 
3430 rajveer 17665
    public _Fields fieldForId(int fieldId) {
17666
      return _Fields.findByThriftId(fieldId);
17667
    }
17668
 
17669
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17670
      org.apache.thrift.protocol.TField field;
923 rajveer 17671
      iprot.readStructBegin();
17672
      while (true)
17673
      {
17674
        field = iprot.readFieldBegin();
3430 rajveer 17675
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
923 rajveer 17676
          break;
17677
        }
3430 rajveer 17678
        switch (field.id) {
17679
          case 1: // ORDER
17680
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17681
              this.order = new Order();
17682
              this.order.read(iprot);
17683
            } else { 
17684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17685
            }
17686
            break;
17687
          default:
17688
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923 rajveer 17689
        }
3430 rajveer 17690
        iprot.readFieldEnd();
923 rajveer 17691
      }
17692
      iprot.readStructEnd();
17693
      validate();
17694
    }
17695
 
3430 rajveer 17696
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
923 rajveer 17697
      validate();
17698
 
17699
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 17700
      if (this.order != null) {
17701
        oprot.writeFieldBegin(ORDER_FIELD_DESC);
17702
        this.order.write(oprot);
17703
        oprot.writeFieldEnd();
17704
      }
923 rajveer 17705
      oprot.writeFieldStop();
17706
      oprot.writeStructEnd();
17707
    }
17708
 
17709
    @Override
17710
    public String toString() {
3061 chandransh 17711
      StringBuilder sb = new StringBuilder("createOrder_args(");
923 rajveer 17712
      boolean first = true;
17713
 
3061 chandransh 17714
      sb.append("order:");
17715
      if (this.order == null) {
17716
        sb.append("null");
17717
      } else {
17718
        sb.append(this.order);
17719
      }
923 rajveer 17720
      first = false;
17721
      sb.append(")");
17722
      return sb.toString();
17723
    }
17724
 
3430 rajveer 17725
    public void validate() throws org.apache.thrift.TException {
923 rajveer 17726
      // check for required fields
17727
    }
17728
 
3430 rajveer 17729
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17730
      try {
17731
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17732
      } catch (org.apache.thrift.TException te) {
17733
        throw new java.io.IOException(te);
17734
      }
17735
    }
17736
 
17737
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17738
      try {
17739
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17740
      } catch (org.apache.thrift.TException te) {
17741
        throw new java.io.IOException(te);
17742
      }
17743
    }
17744
 
923 rajveer 17745
  }
17746
 
3430 rajveer 17747
  public static class createOrder_result implements org.apache.thrift.TBase<createOrder_result, createOrder_result._Fields>, java.io.Serializable, Cloneable   {
17748
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrder_result");
923 rajveer 17749
 
3430 rajveer 17750
    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);
17751
    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 17752
 
3430 rajveer 17753
    private long success; // required
17754
    private TransactionServiceException ex; // required
923 rajveer 17755
 
17756
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17757
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
923 rajveer 17758
      SUCCESS((short)0, "success"),
17759
      EX((short)1, "ex");
17760
 
17761
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17762
 
17763
      static {
17764
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17765
          byName.put(field.getFieldName(), field);
17766
        }
17767
      }
17768
 
17769
      /**
17770
       * Find the _Fields constant that matches fieldId, or null if its not found.
17771
       */
17772
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17773
        switch(fieldId) {
17774
          case 0: // SUCCESS
17775
            return SUCCESS;
17776
          case 1: // EX
17777
            return EX;
17778
          default:
17779
            return null;
17780
        }
923 rajveer 17781
      }
17782
 
17783
      /**
17784
       * Find the _Fields constant that matches fieldId, throwing an exception
17785
       * if it is not found.
17786
       */
17787
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17788
        _Fields fields = findByThriftId(fieldId);
17789
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17790
        return fields;
17791
      }
17792
 
17793
      /**
17794
       * Find the _Fields constant that matches name, or null if its not found.
17795
       */
17796
      public static _Fields findByName(String name) {
17797
        return byName.get(name);
17798
      }
17799
 
17800
      private final short _thriftId;
17801
      private final String _fieldName;
17802
 
17803
      _Fields(short thriftId, String fieldName) {
17804
        _thriftId = thriftId;
17805
        _fieldName = fieldName;
17806
      }
17807
 
17808
      public short getThriftFieldId() {
17809
        return _thriftId;
17810
      }
17811
 
17812
      public String getFieldName() {
17813
        return _fieldName;
17814
      }
17815
    }
17816
 
17817
    // isset id assignments
17818
    private static final int __SUCCESS_ISSET_ID = 0;
17819
    private BitSet __isset_bit_vector = new BitSet(1);
17820
 
3430 rajveer 17821
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
923 rajveer 17822
    static {
3430 rajveer 17823
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17824
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17825
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17826
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17827
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17828
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17829
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrder_result.class, metaDataMap);
923 rajveer 17830
    }
17831
 
3061 chandransh 17832
    public createOrder_result() {
923 rajveer 17833
    }
17834
 
3061 chandransh 17835
    public createOrder_result(
17836
      long success,
923 rajveer 17837
      TransactionServiceException ex)
17838
    {
17839
      this();
17840
      this.success = success;
17841
      setSuccessIsSet(true);
17842
      this.ex = ex;
17843
    }
17844
 
17845
    /**
17846
     * Performs a deep copy on <i>other</i>.
17847
     */
3061 chandransh 17848
    public createOrder_result(createOrder_result other) {
923 rajveer 17849
      __isset_bit_vector.clear();
17850
      __isset_bit_vector.or(other.__isset_bit_vector);
17851
      this.success = other.success;
17852
      if (other.isSetEx()) {
17853
        this.ex = new TransactionServiceException(other.ex);
17854
      }
17855
    }
17856
 
3061 chandransh 17857
    public createOrder_result deepCopy() {
17858
      return new createOrder_result(this);
923 rajveer 17859
    }
17860
 
3430 rajveer 17861
    @Override
17862
    public void clear() {
17863
      setSuccessIsSet(false);
17864
      this.success = 0;
17865
      this.ex = null;
923 rajveer 17866
    }
17867
 
3061 chandransh 17868
    public long getSuccess() {
923 rajveer 17869
      return this.success;
17870
    }
17871
 
3430 rajveer 17872
    public void setSuccess(long success) {
923 rajveer 17873
      this.success = success;
17874
      setSuccessIsSet(true);
17875
    }
17876
 
17877
    public void unsetSuccess() {
17878
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17879
    }
17880
 
3430 rajveer 17881
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
923 rajveer 17882
    public boolean isSetSuccess() {
17883
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17884
    }
17885
 
17886
    public void setSuccessIsSet(boolean value) {
17887
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17888
    }
17889
 
17890
    public TransactionServiceException getEx() {
17891
      return this.ex;
17892
    }
17893
 
3430 rajveer 17894
    public void setEx(TransactionServiceException ex) {
923 rajveer 17895
      this.ex = ex;
17896
    }
17897
 
17898
    public void unsetEx() {
17899
      this.ex = null;
17900
    }
17901
 
3430 rajveer 17902
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
923 rajveer 17903
    public boolean isSetEx() {
17904
      return this.ex != null;
17905
    }
17906
 
17907
    public void setExIsSet(boolean value) {
17908
      if (!value) {
17909
        this.ex = null;
17910
      }
17911
    }
17912
 
17913
    public void setFieldValue(_Fields field, Object value) {
17914
      switch (field) {
17915
      case SUCCESS:
17916
        if (value == null) {
17917
          unsetSuccess();
17918
        } else {
3061 chandransh 17919
          setSuccess((Long)value);
923 rajveer 17920
        }
17921
        break;
17922
 
17923
      case EX:
17924
        if (value == null) {
17925
          unsetEx();
17926
        } else {
17927
          setEx((TransactionServiceException)value);
17928
        }
17929
        break;
17930
 
17931
      }
17932
    }
17933
 
17934
    public Object getFieldValue(_Fields field) {
17935
      switch (field) {
17936
      case SUCCESS:
3430 rajveer 17937
        return Long.valueOf(getSuccess());
923 rajveer 17938
 
17939
      case EX:
17940
        return getEx();
17941
 
17942
      }
17943
      throw new IllegalStateException();
17944
    }
17945
 
3430 rajveer 17946
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17947
    public boolean isSet(_Fields field) {
17948
      if (field == null) {
17949
        throw new IllegalArgumentException();
17950
      }
923 rajveer 17951
 
17952
      switch (field) {
17953
      case SUCCESS:
17954
        return isSetSuccess();
17955
      case EX:
17956
        return isSetEx();
17957
      }
17958
      throw new IllegalStateException();
17959
    }
17960
 
17961
    @Override
17962
    public boolean equals(Object that) {
17963
      if (that == null)
17964
        return false;
3061 chandransh 17965
      if (that instanceof createOrder_result)
17966
        return this.equals((createOrder_result)that);
923 rajveer 17967
      return false;
17968
    }
17969
 
3061 chandransh 17970
    public boolean equals(createOrder_result that) {
923 rajveer 17971
      if (that == null)
17972
        return false;
17973
 
17974
      boolean this_present_success = true;
17975
      boolean that_present_success = true;
17976
      if (this_present_success || that_present_success) {
17977
        if (!(this_present_success && that_present_success))
17978
          return false;
17979
        if (this.success != that.success)
17980
          return false;
17981
      }
17982
 
17983
      boolean this_present_ex = true && this.isSetEx();
17984
      boolean that_present_ex = true && that.isSetEx();
17985
      if (this_present_ex || that_present_ex) {
17986
        if (!(this_present_ex && that_present_ex))
17987
          return false;
17988
        if (!this.ex.equals(that.ex))
17989
          return false;
17990
      }
17991
 
17992
      return true;
17993
    }
17994
 
17995
    @Override
17996
    public int hashCode() {
17997
      return 0;
17998
    }
17999
 
3061 chandransh 18000
    public int compareTo(createOrder_result other) {
923 rajveer 18001
      if (!getClass().equals(other.getClass())) {
18002
        return getClass().getName().compareTo(other.getClass().getName());
18003
      }
18004
 
18005
      int lastComparison = 0;
3061 chandransh 18006
      createOrder_result typedOther = (createOrder_result)other;
923 rajveer 18007
 
3430 rajveer 18008
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
923 rajveer 18009
      if (lastComparison != 0) {
18010
        return lastComparison;
18011
      }
3430 rajveer 18012
      if (isSetSuccess()) {
18013
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18014
        if (lastComparison != 0) {
18015
          return lastComparison;
18016
        }
923 rajveer 18017
      }
3430 rajveer 18018
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
923 rajveer 18019
      if (lastComparison != 0) {
18020
        return lastComparison;
18021
      }
3430 rajveer 18022
      if (isSetEx()) {
18023
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
18024
        if (lastComparison != 0) {
18025
          return lastComparison;
18026
        }
923 rajveer 18027
      }
18028
      return 0;
18029
    }
18030
 
3430 rajveer 18031
    public _Fields fieldForId(int fieldId) {
18032
      return _Fields.findByThriftId(fieldId);
18033
    }
18034
 
18035
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18036
      org.apache.thrift.protocol.TField field;
923 rajveer 18037
      iprot.readStructBegin();
18038
      while (true)
18039
      {
18040
        field = iprot.readFieldBegin();
3430 rajveer 18041
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
923 rajveer 18042
          break;
18043
        }
3430 rajveer 18044
        switch (field.id) {
18045
          case 0: // SUCCESS
18046
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18047
              this.success = iprot.readI64();
18048
              setSuccessIsSet(true);
18049
            } else { 
18050
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18051
            }
18052
            break;
18053
          case 1: // EX
18054
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18055
              this.ex = new TransactionServiceException();
18056
              this.ex.read(iprot);
18057
            } else { 
18058
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18059
            }
18060
            break;
18061
          default:
18062
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923 rajveer 18063
        }
3430 rajveer 18064
        iprot.readFieldEnd();
923 rajveer 18065
      }
18066
      iprot.readStructEnd();
18067
      validate();
18068
    }
18069
 
3430 rajveer 18070
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
923 rajveer 18071
      oprot.writeStructBegin(STRUCT_DESC);
18072
 
18073
      if (this.isSetSuccess()) {
18074
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 18075
        oprot.writeI64(this.success);
923 rajveer 18076
        oprot.writeFieldEnd();
18077
      } else if (this.isSetEx()) {
18078
        oprot.writeFieldBegin(EX_FIELD_DESC);
18079
        this.ex.write(oprot);
18080
        oprot.writeFieldEnd();
18081
      }
18082
      oprot.writeFieldStop();
18083
      oprot.writeStructEnd();
18084
    }
18085
 
18086
    @Override
18087
    public String toString() {
3061 chandransh 18088
      StringBuilder sb = new StringBuilder("createOrder_result(");
923 rajveer 18089
      boolean first = true;
18090
 
18091
      sb.append("success:");
18092
      sb.append(this.success);
18093
      first = false;
18094
      if (!first) sb.append(", ");
18095
      sb.append("ex:");
18096
      if (this.ex == null) {
18097
        sb.append("null");
18098
      } else {
18099
        sb.append(this.ex);
18100
      }
18101
      first = false;
18102
      sb.append(")");
18103
      return sb.toString();
18104
    }
18105
 
3430 rajveer 18106
    public void validate() throws org.apache.thrift.TException {
923 rajveer 18107
      // check for required fields
18108
    }
18109
 
3430 rajveer 18110
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18111
      try {
18112
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18113
      } catch (org.apache.thrift.TException te) {
18114
        throw new java.io.IOException(te);
18115
      }
18116
    }
18117
 
18118
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18119
      try {
18120
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18121
      } catch (org.apache.thrift.TException te) {
18122
        throw new java.io.IOException(te);
18123
      }
18124
    }
18125
 
923 rajveer 18126
  }
18127
 
3430 rajveer 18128
  public static class getOrder_args implements org.apache.thrift.TBase<getOrder_args, getOrder_args._Fields>, java.io.Serializable, Cloneable   {
18129
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrder_args");
923 rajveer 18130
 
3430 rajveer 18131
    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 18132
 
3430 rajveer 18133
    private long id; // required
923 rajveer 18134
 
18135
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18136
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 18137
      ID((short)1, "id");
923 rajveer 18138
 
18139
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18140
 
18141
      static {
18142
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18143
          byName.put(field.getFieldName(), field);
18144
        }
18145
      }
18146
 
18147
      /**
18148
       * Find the _Fields constant that matches fieldId, or null if its not found.
18149
       */
18150
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18151
        switch(fieldId) {
18152
          case 1: // ID
18153
            return ID;
18154
          default:
18155
            return null;
18156
        }
923 rajveer 18157
      }
18158
 
18159
      /**
18160
       * Find the _Fields constant that matches fieldId, throwing an exception
18161
       * if it is not found.
18162
       */
18163
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18164
        _Fields fields = findByThriftId(fieldId);
18165
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18166
        return fields;
18167
      }
18168
 
18169
      /**
18170
       * Find the _Fields constant that matches name, or null if its not found.
18171
       */
18172
      public static _Fields findByName(String name) {
18173
        return byName.get(name);
18174
      }
18175
 
18176
      private final short _thriftId;
18177
      private final String _fieldName;
18178
 
18179
      _Fields(short thriftId, String fieldName) {
18180
        _thriftId = thriftId;
18181
        _fieldName = fieldName;
18182
      }
18183
 
18184
      public short getThriftFieldId() {
18185
        return _thriftId;
18186
      }
18187
 
18188
      public String getFieldName() {
18189
        return _fieldName;
18190
      }
18191
    }
18192
 
18193
    // isset id assignments
3061 chandransh 18194
    private static final int __ID_ISSET_ID = 0;
923 rajveer 18195
    private BitSet __isset_bit_vector = new BitSet(1);
18196
 
3430 rajveer 18197
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
923 rajveer 18198
    static {
3430 rajveer 18199
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18200
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18201
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18202
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18203
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrder_args.class, metaDataMap);
923 rajveer 18204
    }
18205
 
3061 chandransh 18206
    public getOrder_args() {
923 rajveer 18207
    }
18208
 
3061 chandransh 18209
    public getOrder_args(
18210
      long id)
923 rajveer 18211
    {
18212
      this();
3061 chandransh 18213
      this.id = id;
18214
      setIdIsSet(true);
923 rajveer 18215
    }
18216
 
18217
    /**
18218
     * Performs a deep copy on <i>other</i>.
18219
     */
3061 chandransh 18220
    public getOrder_args(getOrder_args other) {
923 rajveer 18221
      __isset_bit_vector.clear();
18222
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 18223
      this.id = other.id;
923 rajveer 18224
    }
18225
 
3061 chandransh 18226
    public getOrder_args deepCopy() {
18227
      return new getOrder_args(this);
923 rajveer 18228
    }
18229
 
3430 rajveer 18230
    @Override
18231
    public void clear() {
18232
      setIdIsSet(false);
18233
      this.id = 0;
923 rajveer 18234
    }
18235
 
3061 chandransh 18236
    public long getId() {
18237
      return this.id;
923 rajveer 18238
    }
18239
 
3430 rajveer 18240
    public void setId(long id) {
3061 chandransh 18241
      this.id = id;
18242
      setIdIsSet(true);
923 rajveer 18243
    }
18244
 
3061 chandransh 18245
    public void unsetId() {
18246
      __isset_bit_vector.clear(__ID_ISSET_ID);
923 rajveer 18247
    }
18248
 
3430 rajveer 18249
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
3061 chandransh 18250
    public boolean isSetId() {
18251
      return __isset_bit_vector.get(__ID_ISSET_ID);
923 rajveer 18252
    }
18253
 
3061 chandransh 18254
    public void setIdIsSet(boolean value) {
18255
      __isset_bit_vector.set(__ID_ISSET_ID, value);
923 rajveer 18256
    }
18257
 
18258
    public void setFieldValue(_Fields field, Object value) {
18259
      switch (field) {
3061 chandransh 18260
      case ID:
923 rajveer 18261
        if (value == null) {
3061 chandransh 18262
          unsetId();
923 rajveer 18263
        } else {
3061 chandransh 18264
          setId((Long)value);
923 rajveer 18265
        }
18266
        break;
18267
 
18268
      }
18269
    }
18270
 
18271
    public Object getFieldValue(_Fields field) {
18272
      switch (field) {
3061 chandransh 18273
      case ID:
3430 rajveer 18274
        return Long.valueOf(getId());
923 rajveer 18275
 
18276
      }
18277
      throw new IllegalStateException();
18278
    }
18279
 
3430 rajveer 18280
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18281
    public boolean isSet(_Fields field) {
18282
      if (field == null) {
18283
        throw new IllegalArgumentException();
18284
      }
923 rajveer 18285
 
18286
      switch (field) {
3061 chandransh 18287
      case ID:
18288
        return isSetId();
923 rajveer 18289
      }
18290
      throw new IllegalStateException();
18291
    }
18292
 
18293
    @Override
18294
    public boolean equals(Object that) {
18295
      if (that == null)
18296
        return false;
3061 chandransh 18297
      if (that instanceof getOrder_args)
18298
        return this.equals((getOrder_args)that);
923 rajveer 18299
      return false;
18300
    }
18301
 
3061 chandransh 18302
    public boolean equals(getOrder_args that) {
923 rajveer 18303
      if (that == null)
18304
        return false;
18305
 
3061 chandransh 18306
      boolean this_present_id = true;
18307
      boolean that_present_id = true;
18308
      if (this_present_id || that_present_id) {
18309
        if (!(this_present_id && that_present_id))
923 rajveer 18310
          return false;
3061 chandransh 18311
        if (this.id != that.id)
923 rajveer 18312
          return false;
18313
      }
18314
 
18315
      return true;
18316
    }
18317
 
18318
    @Override
18319
    public int hashCode() {
18320
      return 0;
18321
    }
18322
 
3061 chandransh 18323
    public int compareTo(getOrder_args other) {
923 rajveer 18324
      if (!getClass().equals(other.getClass())) {
18325
        return getClass().getName().compareTo(other.getClass().getName());
18326
      }
18327
 
18328
      int lastComparison = 0;
3061 chandransh 18329
      getOrder_args typedOther = (getOrder_args)other;
923 rajveer 18330
 
3430 rajveer 18331
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
923 rajveer 18332
      if (lastComparison != 0) {
18333
        return lastComparison;
18334
      }
3430 rajveer 18335
      if (isSetId()) {
18336
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
18337
        if (lastComparison != 0) {
18338
          return lastComparison;
18339
        }
923 rajveer 18340
      }
18341
      return 0;
18342
    }
18343
 
3430 rajveer 18344
    public _Fields fieldForId(int fieldId) {
18345
      return _Fields.findByThriftId(fieldId);
18346
    }
18347
 
18348
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18349
      org.apache.thrift.protocol.TField field;
923 rajveer 18350
      iprot.readStructBegin();
18351
      while (true)
18352
      {
18353
        field = iprot.readFieldBegin();
3430 rajveer 18354
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
923 rajveer 18355
          break;
18356
        }
3430 rajveer 18357
        switch (field.id) {
18358
          case 1: // ID
18359
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18360
              this.id = iprot.readI64();
18361
              setIdIsSet(true);
18362
            } else { 
18363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18364
            }
18365
            break;
18366
          default:
18367
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923 rajveer 18368
        }
3430 rajveer 18369
        iprot.readFieldEnd();
923 rajveer 18370
      }
18371
      iprot.readStructEnd();
18372
      validate();
18373
    }
18374
 
3430 rajveer 18375
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
923 rajveer 18376
      validate();
18377
 
18378
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 18379
      oprot.writeFieldBegin(ID_FIELD_DESC);
18380
      oprot.writeI64(this.id);
923 rajveer 18381
      oprot.writeFieldEnd();
18382
      oprot.writeFieldStop();
18383
      oprot.writeStructEnd();
18384
    }
18385
 
18386
    @Override
18387
    public String toString() {
3061 chandransh 18388
      StringBuilder sb = new StringBuilder("getOrder_args(");
923 rajveer 18389
      boolean first = true;
18390
 
3061 chandransh 18391
      sb.append("id:");
18392
      sb.append(this.id);
923 rajveer 18393
      first = false;
18394
      sb.append(")");
18395
      return sb.toString();
18396
    }
18397
 
3430 rajveer 18398
    public void validate() throws org.apache.thrift.TException {
923 rajveer 18399
      // check for required fields
18400
    }
18401
 
3430 rajveer 18402
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18403
      try {
18404
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18405
      } catch (org.apache.thrift.TException te) {
18406
        throw new java.io.IOException(te);
18407
      }
18408
    }
18409
 
18410
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18411
      try {
18412
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18413
        __isset_bit_vector = new BitSet(1);
18414
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18415
      } catch (org.apache.thrift.TException te) {
18416
        throw new java.io.IOException(te);
18417
      }
18418
    }
18419
 
923 rajveer 18420
  }
18421
 
3430 rajveer 18422
  public static class getOrder_result implements org.apache.thrift.TBase<getOrder_result, getOrder_result._Fields>, java.io.Serializable, Cloneable   {
18423
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrder_result");
923 rajveer 18424
 
3430 rajveer 18425
    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);
18426
    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 18427
 
3430 rajveer 18428
    private Order success; // required
18429
    private TransactionServiceException ex; // required
923 rajveer 18430
 
18431
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18432
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
923 rajveer 18433
      SUCCESS((short)0, "success"),
18434
      EX((short)1, "ex");
18435
 
18436
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18437
 
18438
      static {
18439
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18440
          byName.put(field.getFieldName(), field);
18441
        }
18442
      }
18443
 
18444
      /**
18445
       * Find the _Fields constant that matches fieldId, or null if its not found.
18446
       */
18447
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18448
        switch(fieldId) {
18449
          case 0: // SUCCESS
18450
            return SUCCESS;
18451
          case 1: // EX
18452
            return EX;
18453
          default:
18454
            return null;
18455
        }
923 rajveer 18456
      }
18457
 
18458
      /**
18459
       * Find the _Fields constant that matches fieldId, throwing an exception
18460
       * if it is not found.
18461
       */
18462
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18463
        _Fields fields = findByThriftId(fieldId);
18464
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18465
        return fields;
18466
      }
18467
 
18468
      /**
18469
       * Find the _Fields constant that matches name, or null if its not found.
18470
       */
18471
      public static _Fields findByName(String name) {
18472
        return byName.get(name);
18473
      }
18474
 
18475
      private final short _thriftId;
18476
      private final String _fieldName;
18477
 
18478
      _Fields(short thriftId, String fieldName) {
18479
        _thriftId = thriftId;
18480
        _fieldName = fieldName;
18481
      }
18482
 
18483
      public short getThriftFieldId() {
18484
        return _thriftId;
18485
      }
18486
 
18487
      public String getFieldName() {
18488
        return _fieldName;
18489
      }
18490
    }
18491
 
18492
    // isset id assignments
18493
 
3430 rajveer 18494
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
923 rajveer 18495
    static {
3430 rajveer 18496
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18497
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18498
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
18499
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18500
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18501
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18502
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrder_result.class, metaDataMap);
923 rajveer 18503
    }
18504
 
3061 chandransh 18505
    public getOrder_result() {
923 rajveer 18506
    }
18507
 
3061 chandransh 18508
    public getOrder_result(
18509
      Order success,
923 rajveer 18510
      TransactionServiceException ex)
18511
    {
18512
      this();
18513
      this.success = success;
18514
      this.ex = ex;
18515
    }
18516
 
18517
    /**
18518
     * Performs a deep copy on <i>other</i>.
18519
     */
3061 chandransh 18520
    public getOrder_result(getOrder_result other) {
18521
      if (other.isSetSuccess()) {
18522
        this.success = new Order(other.success);
18523
      }
923 rajveer 18524
      if (other.isSetEx()) {
18525
        this.ex = new TransactionServiceException(other.ex);
18526
      }
18527
    }
18528
 
3061 chandransh 18529
    public getOrder_result deepCopy() {
18530
      return new getOrder_result(this);
923 rajveer 18531
    }
18532
 
3430 rajveer 18533
    @Override
18534
    public void clear() {
18535
      this.success = null;
18536
      this.ex = null;
923 rajveer 18537
    }
18538
 
3061 chandransh 18539
    public Order getSuccess() {
923 rajveer 18540
      return this.success;
18541
    }
18542
 
3430 rajveer 18543
    public void setSuccess(Order success) {
923 rajveer 18544
      this.success = success;
18545
    }
18546
 
18547
    public void unsetSuccess() {
3061 chandransh 18548
      this.success = null;
923 rajveer 18549
    }
18550
 
3430 rajveer 18551
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
923 rajveer 18552
    public boolean isSetSuccess() {
3061 chandransh 18553
      return this.success != null;
923 rajveer 18554
    }
18555
 
18556
    public void setSuccessIsSet(boolean value) {
3061 chandransh 18557
      if (!value) {
18558
        this.success = null;
18559
      }
923 rajveer 18560
    }
18561
 
18562
    public TransactionServiceException getEx() {
18563
      return this.ex;
18564
    }
18565
 
3430 rajveer 18566
    public void setEx(TransactionServiceException ex) {
923 rajveer 18567
      this.ex = ex;
18568
    }
18569
 
18570
    public void unsetEx() {
18571
      this.ex = null;
18572
    }
18573
 
3430 rajveer 18574
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
923 rajveer 18575
    public boolean isSetEx() {
18576
      return this.ex != null;
18577
    }
18578
 
18579
    public void setExIsSet(boolean value) {
18580
      if (!value) {
18581
        this.ex = null;
18582
      }
18583
    }
18584
 
18585
    public void setFieldValue(_Fields field, Object value) {
18586
      switch (field) {
18587
      case SUCCESS:
18588
        if (value == null) {
18589
          unsetSuccess();
18590
        } else {
3061 chandransh 18591
          setSuccess((Order)value);
923 rajveer 18592
        }
18593
        break;
18594
 
18595
      case EX:
18596
        if (value == null) {
18597
          unsetEx();
18598
        } else {
18599
          setEx((TransactionServiceException)value);
18600
        }
18601
        break;
18602
 
18603
      }
18604
    }
18605
 
18606
    public Object getFieldValue(_Fields field) {
18607
      switch (field) {
18608
      case SUCCESS:
3061 chandransh 18609
        return getSuccess();
923 rajveer 18610
 
18611
      case EX:
18612
        return getEx();
18613
 
18614
      }
18615
      throw new IllegalStateException();
18616
    }
18617
 
3430 rajveer 18618
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18619
    public boolean isSet(_Fields field) {
18620
      if (field == null) {
18621
        throw new IllegalArgumentException();
18622
      }
923 rajveer 18623
 
18624
      switch (field) {
18625
      case SUCCESS:
18626
        return isSetSuccess();
18627
      case EX:
18628
        return isSetEx();
18629
      }
18630
      throw new IllegalStateException();
18631
    }
18632
 
18633
    @Override
18634
    public boolean equals(Object that) {
18635
      if (that == null)
18636
        return false;
3061 chandransh 18637
      if (that instanceof getOrder_result)
18638
        return this.equals((getOrder_result)that);
923 rajveer 18639
      return false;
18640
    }
18641
 
3061 chandransh 18642
    public boolean equals(getOrder_result that) {
923 rajveer 18643
      if (that == null)
18644
        return false;
18645
 
3061 chandransh 18646
      boolean this_present_success = true && this.isSetSuccess();
18647
      boolean that_present_success = true && that.isSetSuccess();
923 rajveer 18648
      if (this_present_success || that_present_success) {
18649
        if (!(this_present_success && that_present_success))
18650
          return false;
3061 chandransh 18651
        if (!this.success.equals(that.success))
923 rajveer 18652
          return false;
18653
      }
18654
 
18655
      boolean this_present_ex = true && this.isSetEx();
18656
      boolean that_present_ex = true && that.isSetEx();
18657
      if (this_present_ex || that_present_ex) {
18658
        if (!(this_present_ex && that_present_ex))
18659
          return false;
18660
        if (!this.ex.equals(that.ex))
18661
          return false;
18662
      }
18663
 
18664
      return true;
18665
    }
18666
 
18667
    @Override
18668
    public int hashCode() {
18669
      return 0;
18670
    }
18671
 
3061 chandransh 18672
    public int compareTo(getOrder_result other) {
923 rajveer 18673
      if (!getClass().equals(other.getClass())) {
18674
        return getClass().getName().compareTo(other.getClass().getName());
18675
      }
18676
 
18677
      int lastComparison = 0;
3061 chandransh 18678
      getOrder_result typedOther = (getOrder_result)other;
923 rajveer 18679
 
3430 rajveer 18680
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
923 rajveer 18681
      if (lastComparison != 0) {
18682
        return lastComparison;
18683
      }
3430 rajveer 18684
      if (isSetSuccess()) {
18685
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18686
        if (lastComparison != 0) {
18687
          return lastComparison;
18688
        }
923 rajveer 18689
      }
3430 rajveer 18690
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
923 rajveer 18691
      if (lastComparison != 0) {
18692
        return lastComparison;
18693
      }
3430 rajveer 18694
      if (isSetEx()) {
18695
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
18696
        if (lastComparison != 0) {
18697
          return lastComparison;
18698
        }
923 rajveer 18699
      }
18700
      return 0;
18701
    }
18702
 
3430 rajveer 18703
    public _Fields fieldForId(int fieldId) {
18704
      return _Fields.findByThriftId(fieldId);
18705
    }
18706
 
18707
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18708
      org.apache.thrift.protocol.TField field;
923 rajveer 18709
      iprot.readStructBegin();
18710
      while (true)
18711
      {
18712
        field = iprot.readFieldBegin();
3430 rajveer 18713
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
923 rajveer 18714
          break;
18715
        }
3430 rajveer 18716
        switch (field.id) {
18717
          case 0: // SUCCESS
18718
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18719
              this.success = new Order();
18720
              this.success.read(iprot);
18721
            } else { 
18722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18723
            }
18724
            break;
18725
          case 1: // EX
18726
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18727
              this.ex = new TransactionServiceException();
18728
              this.ex.read(iprot);
18729
            } else { 
18730
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18731
            }
18732
            break;
18733
          default:
18734
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923 rajveer 18735
        }
3430 rajveer 18736
        iprot.readFieldEnd();
923 rajveer 18737
      }
18738
      iprot.readStructEnd();
18739
      validate();
18740
    }
18741
 
3430 rajveer 18742
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
923 rajveer 18743
      oprot.writeStructBegin(STRUCT_DESC);
18744
 
18745
      if (this.isSetSuccess()) {
18746
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 18747
        this.success.write(oprot);
923 rajveer 18748
        oprot.writeFieldEnd();
18749
      } else if (this.isSetEx()) {
18750
        oprot.writeFieldBegin(EX_FIELD_DESC);
18751
        this.ex.write(oprot);
18752
        oprot.writeFieldEnd();
18753
      }
18754
      oprot.writeFieldStop();
18755
      oprot.writeStructEnd();
18756
    }
18757
 
18758
    @Override
18759
    public String toString() {
3061 chandransh 18760
      StringBuilder sb = new StringBuilder("getOrder_result(");
923 rajveer 18761
      boolean first = true;
18762
 
18763
      sb.append("success:");
3061 chandransh 18764
      if (this.success == null) {
18765
        sb.append("null");
18766
      } else {
18767
        sb.append(this.success);
18768
      }
923 rajveer 18769
      first = false;
18770
      if (!first) sb.append(", ");
18771
      sb.append("ex:");
18772
      if (this.ex == null) {
18773
        sb.append("null");
18774
      } else {
18775
        sb.append(this.ex);
18776
      }
18777
      first = false;
18778
      sb.append(")");
18779
      return sb.toString();
18780
    }
18781
 
3430 rajveer 18782
    public void validate() throws org.apache.thrift.TException {
923 rajveer 18783
      // check for required fields
18784
    }
18785
 
3430 rajveer 18786
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18787
      try {
18788
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18789
      } catch (org.apache.thrift.TException te) {
18790
        throw new java.io.IOException(te);
18791
      }
18792
    }
18793
 
18794
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18795
      try {
18796
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18797
      } catch (org.apache.thrift.TException te) {
18798
        throw new java.io.IOException(te);
18799
      }
18800
    }
18801
 
923 rajveer 18802
  }
18803
 
3430 rajveer 18804
  public static class getLineItemsForOrder_args implements org.apache.thrift.TBase<getLineItemsForOrder_args, getLineItemsForOrder_args._Fields>, java.io.Serializable, Cloneable   {
18805
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLineItemsForOrder_args");
68 ashish 18806
 
3430 rajveer 18807
    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 18808
 
3430 rajveer 18809
    private long orderId; // required
68 ashish 18810
 
18811
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18812
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 18813
      ORDER_ID((short)1, "orderId");
68 ashish 18814
 
18815
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18816
 
18817
      static {
18818
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18819
          byName.put(field.getFieldName(), field);
18820
        }
18821
      }
18822
 
18823
      /**
18824
       * Find the _Fields constant that matches fieldId, or null if its not found.
18825
       */
18826
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18827
        switch(fieldId) {
18828
          case 1: // ORDER_ID
18829
            return ORDER_ID;
18830
          default:
18831
            return null;
18832
        }
68 ashish 18833
      }
18834
 
18835
      /**
18836
       * Find the _Fields constant that matches fieldId, throwing an exception
18837
       * if it is not found.
18838
       */
18839
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18840
        _Fields fields = findByThriftId(fieldId);
18841
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18842
        return fields;
18843
      }
18844
 
18845
      /**
18846
       * Find the _Fields constant that matches name, or null if its not found.
18847
       */
18848
      public static _Fields findByName(String name) {
18849
        return byName.get(name);
18850
      }
18851
 
18852
      private final short _thriftId;
18853
      private final String _fieldName;
18854
 
18855
      _Fields(short thriftId, String fieldName) {
18856
        _thriftId = thriftId;
18857
        _fieldName = fieldName;
18858
      }
18859
 
18860
      public short getThriftFieldId() {
18861
        return _thriftId;
18862
      }
18863
 
18864
      public String getFieldName() {
18865
        return _fieldName;
18866
      }
18867
    }
18868
 
18869
    // isset id assignments
3061 chandransh 18870
    private static final int __ORDERID_ISSET_ID = 0;
18871
    private BitSet __isset_bit_vector = new BitSet(1);
68 ashish 18872
 
3430 rajveer 18873
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 18874
    static {
3430 rajveer 18875
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18876
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18877
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18878
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18879
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_args.class, metaDataMap);
68 ashish 18880
    }
18881
 
3061 chandransh 18882
    public getLineItemsForOrder_args() {
68 ashish 18883
    }
18884
 
3061 chandransh 18885
    public getLineItemsForOrder_args(
18886
      long orderId)
68 ashish 18887
    {
18888
      this();
3061 chandransh 18889
      this.orderId = orderId;
18890
      setOrderIdIsSet(true);
68 ashish 18891
    }
18892
 
18893
    /**
18894
     * Performs a deep copy on <i>other</i>.
18895
     */
3061 chandransh 18896
    public getLineItemsForOrder_args(getLineItemsForOrder_args other) {
68 ashish 18897
      __isset_bit_vector.clear();
18898
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 18899
      this.orderId = other.orderId;
68 ashish 18900
    }
18901
 
3061 chandransh 18902
    public getLineItemsForOrder_args deepCopy() {
18903
      return new getLineItemsForOrder_args(this);
68 ashish 18904
    }
18905
 
3430 rajveer 18906
    @Override
18907
    public void clear() {
18908
      setOrderIdIsSet(false);
18909
      this.orderId = 0;
68 ashish 18910
    }
18911
 
3061 chandransh 18912
    public long getOrderId() {
18913
      return this.orderId;
68 ashish 18914
    }
18915
 
3430 rajveer 18916
    public void setOrderId(long orderId) {
3061 chandransh 18917
      this.orderId = orderId;
18918
      setOrderIdIsSet(true);
68 ashish 18919
    }
18920
 
3061 chandransh 18921
    public void unsetOrderId() {
18922
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
68 ashish 18923
    }
18924
 
3430 rajveer 18925
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 18926
    public boolean isSetOrderId() {
18927
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
68 ashish 18928
    }
18929
 
3061 chandransh 18930
    public void setOrderIdIsSet(boolean value) {
18931
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
68 ashish 18932
    }
18933
 
18934
    public void setFieldValue(_Fields field, Object value) {
18935
      switch (field) {
3061 chandransh 18936
      case ORDER_ID:
68 ashish 18937
        if (value == null) {
3061 chandransh 18938
          unsetOrderId();
68 ashish 18939
        } else {
3061 chandransh 18940
          setOrderId((Long)value);
68 ashish 18941
        }
18942
        break;
18943
 
18944
      }
18945
    }
18946
 
18947
    public Object getFieldValue(_Fields field) {
18948
      switch (field) {
3061 chandransh 18949
      case ORDER_ID:
3430 rajveer 18950
        return Long.valueOf(getOrderId());
68 ashish 18951
 
18952
      }
18953
      throw new IllegalStateException();
18954
    }
18955
 
3430 rajveer 18956
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18957
    public boolean isSet(_Fields field) {
18958
      if (field == null) {
18959
        throw new IllegalArgumentException();
18960
      }
68 ashish 18961
 
18962
      switch (field) {
3061 chandransh 18963
      case ORDER_ID:
18964
        return isSetOrderId();
68 ashish 18965
      }
18966
      throw new IllegalStateException();
18967
    }
18968
 
18969
    @Override
18970
    public boolean equals(Object that) {
18971
      if (that == null)
18972
        return false;
3061 chandransh 18973
      if (that instanceof getLineItemsForOrder_args)
18974
        return this.equals((getLineItemsForOrder_args)that);
68 ashish 18975
      return false;
18976
    }
18977
 
3061 chandransh 18978
    public boolean equals(getLineItemsForOrder_args that) {
68 ashish 18979
      if (that == null)
18980
        return false;
18981
 
3061 chandransh 18982
      boolean this_present_orderId = true;
18983
      boolean that_present_orderId = true;
18984
      if (this_present_orderId || that_present_orderId) {
18985
        if (!(this_present_orderId && that_present_orderId))
68 ashish 18986
          return false;
3061 chandransh 18987
        if (this.orderId != that.orderId)
68 ashish 18988
          return false;
18989
      }
18990
 
18991
      return true;
18992
    }
18993
 
18994
    @Override
18995
    public int hashCode() {
18996
      return 0;
18997
    }
18998
 
3061 chandransh 18999
    public int compareTo(getLineItemsForOrder_args other) {
68 ashish 19000
      if (!getClass().equals(other.getClass())) {
19001
        return getClass().getName().compareTo(other.getClass().getName());
19002
      }
19003
 
19004
      int lastComparison = 0;
3061 chandransh 19005
      getLineItemsForOrder_args typedOther = (getLineItemsForOrder_args)other;
68 ashish 19006
 
3430 rajveer 19007
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
68 ashish 19008
      if (lastComparison != 0) {
19009
        return lastComparison;
19010
      }
3430 rajveer 19011
      if (isSetOrderId()) {
19012
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
19013
        if (lastComparison != 0) {
19014
          return lastComparison;
19015
        }
68 ashish 19016
      }
19017
      return 0;
19018
    }
19019
 
3430 rajveer 19020
    public _Fields fieldForId(int fieldId) {
19021
      return _Fields.findByThriftId(fieldId);
19022
    }
19023
 
19024
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19025
      org.apache.thrift.protocol.TField field;
68 ashish 19026
      iprot.readStructBegin();
19027
      while (true)
19028
      {
19029
        field = iprot.readFieldBegin();
3430 rajveer 19030
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 19031
          break;
19032
        }
3430 rajveer 19033
        switch (field.id) {
19034
          case 1: // ORDER_ID
19035
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19036
              this.orderId = iprot.readI64();
19037
              setOrderIdIsSet(true);
19038
            } else { 
19039
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19040
            }
19041
            break;
19042
          default:
19043
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 19044
        }
3430 rajveer 19045
        iprot.readFieldEnd();
68 ashish 19046
      }
19047
      iprot.readStructEnd();
19048
      validate();
19049
    }
19050
 
3430 rajveer 19051
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 19052
      validate();
19053
 
19054
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 19055
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
19056
      oprot.writeI64(this.orderId);
68 ashish 19057
      oprot.writeFieldEnd();
19058
      oprot.writeFieldStop();
19059
      oprot.writeStructEnd();
19060
    }
19061
 
19062
    @Override
19063
    public String toString() {
3061 chandransh 19064
      StringBuilder sb = new StringBuilder("getLineItemsForOrder_args(");
68 ashish 19065
      boolean first = true;
19066
 
3061 chandransh 19067
      sb.append("orderId:");
19068
      sb.append(this.orderId);
68 ashish 19069
      first = false;
19070
      sb.append(")");
19071
      return sb.toString();
19072
    }
19073
 
3430 rajveer 19074
    public void validate() throws org.apache.thrift.TException {
68 ashish 19075
      // check for required fields
19076
    }
19077
 
3430 rajveer 19078
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19079
      try {
19080
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19081
      } catch (org.apache.thrift.TException te) {
19082
        throw new java.io.IOException(te);
19083
      }
19084
    }
19085
 
19086
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19087
      try {
19088
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19089
        __isset_bit_vector = new BitSet(1);
19090
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19091
      } catch (org.apache.thrift.TException te) {
19092
        throw new java.io.IOException(te);
19093
      }
19094
    }
19095
 
68 ashish 19096
  }
19097
 
3430 rajveer 19098
  public static class getLineItemsForOrder_result implements org.apache.thrift.TBase<getLineItemsForOrder_result, getLineItemsForOrder_result._Fields>, java.io.Serializable, Cloneable   {
19099
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLineItemsForOrder_result");
68 ashish 19100
 
3430 rajveer 19101
    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);
19102
    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 19103
 
3430 rajveer 19104
    private List<LineItem> success; // required
19105
    private TransactionServiceException ex; // required
68 ashish 19106
 
19107
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19108
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 19109
      SUCCESS((short)0, "success"),
19110
      EX((short)1, "ex");
19111
 
19112
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19113
 
19114
      static {
19115
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19116
          byName.put(field.getFieldName(), field);
19117
        }
19118
      }
19119
 
19120
      /**
19121
       * Find the _Fields constant that matches fieldId, or null if its not found.
19122
       */
19123
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19124
        switch(fieldId) {
19125
          case 0: // SUCCESS
19126
            return SUCCESS;
19127
          case 1: // EX
19128
            return EX;
19129
          default:
19130
            return null;
19131
        }
68 ashish 19132
      }
19133
 
19134
      /**
19135
       * Find the _Fields constant that matches fieldId, throwing an exception
19136
       * if it is not found.
19137
       */
19138
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19139
        _Fields fields = findByThriftId(fieldId);
19140
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19141
        return fields;
19142
      }
19143
 
19144
      /**
19145
       * Find the _Fields constant that matches name, or null if its not found.
19146
       */
19147
      public static _Fields findByName(String name) {
19148
        return byName.get(name);
19149
      }
19150
 
19151
      private final short _thriftId;
19152
      private final String _fieldName;
19153
 
19154
      _Fields(short thriftId, String fieldName) {
19155
        _thriftId = thriftId;
19156
        _fieldName = fieldName;
19157
      }
19158
 
19159
      public short getThriftFieldId() {
19160
        return _thriftId;
19161
      }
19162
 
19163
      public String getFieldName() {
19164
        return _fieldName;
19165
      }
19166
    }
19167
 
19168
    // isset id assignments
19169
 
3430 rajveer 19170
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 19171
    static {
3430 rajveer 19172
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19173
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19174
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19175
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LineItem.class))));
19176
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19177
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19178
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19179
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_result.class, metaDataMap);
68 ashish 19180
    }
19181
 
3061 chandransh 19182
    public getLineItemsForOrder_result() {
68 ashish 19183
    }
19184
 
3061 chandransh 19185
    public getLineItemsForOrder_result(
19186
      List<LineItem> success,
68 ashish 19187
      TransactionServiceException ex)
19188
    {
19189
      this();
19190
      this.success = success;
19191
      this.ex = ex;
19192
    }
19193
 
19194
    /**
19195
     * Performs a deep copy on <i>other</i>.
19196
     */
3061 chandransh 19197
    public getLineItemsForOrder_result(getLineItemsForOrder_result other) {
483 rajveer 19198
      if (other.isSetSuccess()) {
3061 chandransh 19199
        List<LineItem> __this__success = new ArrayList<LineItem>();
19200
        for (LineItem other_element : other.success) {
19201
          __this__success.add(new LineItem(other_element));
483 rajveer 19202
        }
19203
        this.success = __this__success;
19204
      }
68 ashish 19205
      if (other.isSetEx()) {
19206
        this.ex = new TransactionServiceException(other.ex);
19207
      }
19208
    }
19209
 
3061 chandransh 19210
    public getLineItemsForOrder_result deepCopy() {
19211
      return new getLineItemsForOrder_result(this);
68 ashish 19212
    }
19213
 
3430 rajveer 19214
    @Override
19215
    public void clear() {
19216
      this.success = null;
19217
      this.ex = null;
68 ashish 19218
    }
19219
 
483 rajveer 19220
    public int getSuccessSize() {
19221
      return (this.success == null) ? 0 : this.success.size();
19222
    }
19223
 
3061 chandransh 19224
    public java.util.Iterator<LineItem> getSuccessIterator() {
483 rajveer 19225
      return (this.success == null) ? null : this.success.iterator();
19226
    }
19227
 
3061 chandransh 19228
    public void addToSuccess(LineItem elem) {
483 rajveer 19229
      if (this.success == null) {
3061 chandransh 19230
        this.success = new ArrayList<LineItem>();
483 rajveer 19231
      }
19232
      this.success.add(elem);
19233
    }
19234
 
3061 chandransh 19235
    public List<LineItem> getSuccess() {
68 ashish 19236
      return this.success;
19237
    }
19238
 
3430 rajveer 19239
    public void setSuccess(List<LineItem> success) {
68 ashish 19240
      this.success = success;
19241
    }
19242
 
19243
    public void unsetSuccess() {
483 rajveer 19244
      this.success = null;
68 ashish 19245
    }
19246
 
3430 rajveer 19247
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 19248
    public boolean isSetSuccess() {
483 rajveer 19249
      return this.success != null;
68 ashish 19250
    }
19251
 
19252
    public void setSuccessIsSet(boolean value) {
483 rajveer 19253
      if (!value) {
19254
        this.success = null;
19255
      }
68 ashish 19256
    }
19257
 
19258
    public TransactionServiceException getEx() {
19259
      return this.ex;
19260
    }
19261
 
3430 rajveer 19262
    public void setEx(TransactionServiceException ex) {
68 ashish 19263
      this.ex = ex;
19264
    }
19265
 
19266
    public void unsetEx() {
19267
      this.ex = null;
19268
    }
19269
 
3430 rajveer 19270
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 19271
    public boolean isSetEx() {
19272
      return this.ex != null;
19273
    }
19274
 
19275
    public void setExIsSet(boolean value) {
19276
      if (!value) {
19277
        this.ex = null;
19278
      }
19279
    }
19280
 
19281
    public void setFieldValue(_Fields field, Object value) {
19282
      switch (field) {
19283
      case SUCCESS:
19284
        if (value == null) {
19285
          unsetSuccess();
19286
        } else {
3061 chandransh 19287
          setSuccess((List<LineItem>)value);
68 ashish 19288
        }
19289
        break;
19290
 
19291
      case EX:
19292
        if (value == null) {
19293
          unsetEx();
19294
        } else {
19295
          setEx((TransactionServiceException)value);
19296
        }
19297
        break;
19298
 
19299
      }
19300
    }
19301
 
19302
    public Object getFieldValue(_Fields field) {
19303
      switch (field) {
19304
      case SUCCESS:
483 rajveer 19305
        return getSuccess();
68 ashish 19306
 
19307
      case EX:
19308
        return getEx();
19309
 
19310
      }
19311
      throw new IllegalStateException();
19312
    }
19313
 
3430 rajveer 19314
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19315
    public boolean isSet(_Fields field) {
19316
      if (field == null) {
19317
        throw new IllegalArgumentException();
19318
      }
68 ashish 19319
 
19320
      switch (field) {
19321
      case SUCCESS:
19322
        return isSetSuccess();
19323
      case EX:
19324
        return isSetEx();
19325
      }
19326
      throw new IllegalStateException();
19327
    }
19328
 
19329
    @Override
19330
    public boolean equals(Object that) {
19331
      if (that == null)
19332
        return false;
3061 chandransh 19333
      if (that instanceof getLineItemsForOrder_result)
19334
        return this.equals((getLineItemsForOrder_result)that);
68 ashish 19335
      return false;
19336
    }
19337
 
3061 chandransh 19338
    public boolean equals(getLineItemsForOrder_result that) {
68 ashish 19339
      if (that == null)
19340
        return false;
19341
 
483 rajveer 19342
      boolean this_present_success = true && this.isSetSuccess();
19343
      boolean that_present_success = true && that.isSetSuccess();
68 ashish 19344
      if (this_present_success || that_present_success) {
19345
        if (!(this_present_success && that_present_success))
19346
          return false;
483 rajveer 19347
        if (!this.success.equals(that.success))
68 ashish 19348
          return false;
19349
      }
19350
 
19351
      boolean this_present_ex = true && this.isSetEx();
19352
      boolean that_present_ex = true && that.isSetEx();
19353
      if (this_present_ex || that_present_ex) {
19354
        if (!(this_present_ex && that_present_ex))
19355
          return false;
19356
        if (!this.ex.equals(that.ex))
19357
          return false;
19358
      }
19359
 
19360
      return true;
19361
    }
19362
 
19363
    @Override
19364
    public int hashCode() {
19365
      return 0;
19366
    }
19367
 
3061 chandransh 19368
    public int compareTo(getLineItemsForOrder_result other) {
68 ashish 19369
      if (!getClass().equals(other.getClass())) {
19370
        return getClass().getName().compareTo(other.getClass().getName());
19371
      }
19372
 
19373
      int lastComparison = 0;
3061 chandransh 19374
      getLineItemsForOrder_result typedOther = (getLineItemsForOrder_result)other;
68 ashish 19375
 
3430 rajveer 19376
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 19377
      if (lastComparison != 0) {
19378
        return lastComparison;
19379
      }
3430 rajveer 19380
      if (isSetSuccess()) {
19381
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19382
        if (lastComparison != 0) {
19383
          return lastComparison;
19384
        }
68 ashish 19385
      }
3430 rajveer 19386
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 19387
      if (lastComparison != 0) {
19388
        return lastComparison;
19389
      }
3430 rajveer 19390
      if (isSetEx()) {
19391
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
19392
        if (lastComparison != 0) {
19393
          return lastComparison;
19394
        }
68 ashish 19395
      }
19396
      return 0;
19397
    }
19398
 
3430 rajveer 19399
    public _Fields fieldForId(int fieldId) {
19400
      return _Fields.findByThriftId(fieldId);
19401
    }
19402
 
19403
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19404
      org.apache.thrift.protocol.TField field;
68 ashish 19405
      iprot.readStructBegin();
19406
      while (true)
19407
      {
19408
        field = iprot.readFieldBegin();
3430 rajveer 19409
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 19410
          break;
19411
        }
3430 rajveer 19412
        switch (field.id) {
19413
          case 0: // SUCCESS
19414
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19415
              {
19416
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
19417
                this.success = new ArrayList<LineItem>(_list48.size);
19418
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
483 rajveer 19419
                {
3430 rajveer 19420
                  LineItem _elem50; // required
19421
                  _elem50 = new LineItem();
19422
                  _elem50.read(iprot);
19423
                  this.success.add(_elem50);
483 rajveer 19424
                }
3430 rajveer 19425
                iprot.readListEnd();
68 ashish 19426
              }
3430 rajveer 19427
            } else { 
19428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19429
            }
19430
            break;
19431
          case 1: // EX
19432
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19433
              this.ex = new TransactionServiceException();
19434
              this.ex.read(iprot);
19435
            } else { 
19436
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19437
            }
19438
            break;
19439
          default:
19440
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 19441
        }
3430 rajveer 19442
        iprot.readFieldEnd();
68 ashish 19443
      }
19444
      iprot.readStructEnd();
19445
      validate();
19446
    }
19447
 
3430 rajveer 19448
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 19449
      oprot.writeStructBegin(STRUCT_DESC);
19450
 
19451
      if (this.isSetSuccess()) {
19452
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
483 rajveer 19453
        {
3430 rajveer 19454
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3427 chandransh 19455
          for (LineItem _iter51 : this.success)
483 rajveer 19456
          {
3427 chandransh 19457
            _iter51.write(oprot);
483 rajveer 19458
          }
19459
          oprot.writeListEnd();
19460
        }
68 ashish 19461
        oprot.writeFieldEnd();
19462
      } else if (this.isSetEx()) {
19463
        oprot.writeFieldBegin(EX_FIELD_DESC);
19464
        this.ex.write(oprot);
19465
        oprot.writeFieldEnd();
19466
      }
19467
      oprot.writeFieldStop();
19468
      oprot.writeStructEnd();
19469
    }
19470
 
19471
    @Override
19472
    public String toString() {
3061 chandransh 19473
      StringBuilder sb = new StringBuilder("getLineItemsForOrder_result(");
68 ashish 19474
      boolean first = true;
19475
 
19476
      sb.append("success:");
483 rajveer 19477
      if (this.success == null) {
19478
        sb.append("null");
19479
      } else {
19480
        sb.append(this.success);
19481
      }
68 ashish 19482
      first = false;
19483
      if (!first) sb.append(", ");
19484
      sb.append("ex:");
19485
      if (this.ex == null) {
19486
        sb.append("null");
19487
      } else {
19488
        sb.append(this.ex);
19489
      }
19490
      first = false;
19491
      sb.append(")");
19492
      return sb.toString();
19493
    }
19494
 
3430 rajveer 19495
    public void validate() throws org.apache.thrift.TException {
68 ashish 19496
      // check for required fields
19497
    }
19498
 
3430 rajveer 19499
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19500
      try {
19501
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19502
      } catch (org.apache.thrift.TException te) {
19503
        throw new java.io.IOException(te);
19504
      }
19505
    }
19506
 
19507
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19508
      try {
19509
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19510
      } catch (org.apache.thrift.TException te) {
19511
        throw new java.io.IOException(te);
19512
      }
19513
    }
19514
 
68 ashish 19515
  }
19516
 
3430 rajveer 19517
  public static class getOrderForCustomer_args implements org.apache.thrift.TBase<getOrderForCustomer_args, getOrderForCustomer_args._Fields>, java.io.Serializable, Cloneable   {
19518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForCustomer_args");
68 ashish 19519
 
3430 rajveer 19520
    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);
19521
    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 19522
 
3430 rajveer 19523
    private long orderId; // required
19524
    private long customerId; // required
68 ashish 19525
 
19526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 19528
      ORDER_ID((short)1, "orderId"),
19529
      CUSTOMER_ID((short)2, "customerId");
68 ashish 19530
 
19531
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19532
 
19533
      static {
19534
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19535
          byName.put(field.getFieldName(), field);
19536
        }
19537
      }
19538
 
19539
      /**
19540
       * Find the _Fields constant that matches fieldId, or null if its not found.
19541
       */
19542
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19543
        switch(fieldId) {
19544
          case 1: // ORDER_ID
19545
            return ORDER_ID;
19546
          case 2: // CUSTOMER_ID
19547
            return CUSTOMER_ID;
19548
          default:
19549
            return null;
19550
        }
68 ashish 19551
      }
19552
 
19553
      /**
19554
       * Find the _Fields constant that matches fieldId, throwing an exception
19555
       * if it is not found.
19556
       */
19557
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19558
        _Fields fields = findByThriftId(fieldId);
19559
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19560
        return fields;
19561
      }
19562
 
19563
      /**
19564
       * Find the _Fields constant that matches name, or null if its not found.
19565
       */
19566
      public static _Fields findByName(String name) {
19567
        return byName.get(name);
19568
      }
19569
 
19570
      private final short _thriftId;
19571
      private final String _fieldName;
19572
 
19573
      _Fields(short thriftId, String fieldName) {
19574
        _thriftId = thriftId;
19575
        _fieldName = fieldName;
19576
      }
19577
 
19578
      public short getThriftFieldId() {
19579
        return _thriftId;
19580
      }
19581
 
19582
      public String getFieldName() {
19583
        return _fieldName;
19584
      }
19585
    }
19586
 
19587
    // isset id assignments
3061 chandransh 19588
    private static final int __ORDERID_ISSET_ID = 0;
19589
    private static final int __CUSTOMERID_ISSET_ID = 1;
19590
    private BitSet __isset_bit_vector = new BitSet(2);
68 ashish 19591
 
3430 rajveer 19592
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 19593
    static {
3430 rajveer 19594
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19595
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19596
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19597
      tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19598
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19599
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19600
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForCustomer_args.class, metaDataMap);
68 ashish 19601
    }
19602
 
3061 chandransh 19603
    public getOrderForCustomer_args() {
68 ashish 19604
    }
19605
 
3061 chandransh 19606
    public getOrderForCustomer_args(
19607
      long orderId,
19608
      long customerId)
68 ashish 19609
    {
19610
      this();
3061 chandransh 19611
      this.orderId = orderId;
19612
      setOrderIdIsSet(true);
483 rajveer 19613
      this.customerId = customerId;
19614
      setCustomerIdIsSet(true);
68 ashish 19615
    }
19616
 
19617
    /**
19618
     * Performs a deep copy on <i>other</i>.
19619
     */
3061 chandransh 19620
    public getOrderForCustomer_args(getOrderForCustomer_args other) {
68 ashish 19621
      __isset_bit_vector.clear();
19622
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 19623
      this.orderId = other.orderId;
483 rajveer 19624
      this.customerId = other.customerId;
68 ashish 19625
    }
19626
 
3061 chandransh 19627
    public getOrderForCustomer_args deepCopy() {
19628
      return new getOrderForCustomer_args(this);
68 ashish 19629
    }
19630
 
3430 rajveer 19631
    @Override
19632
    public void clear() {
19633
      setOrderIdIsSet(false);
19634
      this.orderId = 0;
19635
      setCustomerIdIsSet(false);
19636
      this.customerId = 0;
68 ashish 19637
    }
19638
 
3061 chandransh 19639
    public long getOrderId() {
19640
      return this.orderId;
19641
    }
19642
 
3430 rajveer 19643
    public void setOrderId(long orderId) {
3061 chandransh 19644
      this.orderId = orderId;
19645
      setOrderIdIsSet(true);
19646
    }
19647
 
19648
    public void unsetOrderId() {
19649
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
19650
    }
19651
 
3430 rajveer 19652
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 19653
    public boolean isSetOrderId() {
19654
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
19655
    }
19656
 
19657
    public void setOrderIdIsSet(boolean value) {
19658
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
19659
    }
19660
 
483 rajveer 19661
    public long getCustomerId() {
19662
      return this.customerId;
68 ashish 19663
    }
19664
 
3430 rajveer 19665
    public void setCustomerId(long customerId) {
483 rajveer 19666
      this.customerId = customerId;
19667
      setCustomerIdIsSet(true);
68 ashish 19668
    }
19669
 
483 rajveer 19670
    public void unsetCustomerId() {
19671
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
68 ashish 19672
    }
19673
 
3430 rajveer 19674
    /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
483 rajveer 19675
    public boolean isSetCustomerId() {
19676
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
68 ashish 19677
    }
19678
 
483 rajveer 19679
    public void setCustomerIdIsSet(boolean value) {
19680
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
68 ashish 19681
    }
19682
 
19683
    public void setFieldValue(_Fields field, Object value) {
19684
      switch (field) {
3061 chandransh 19685
      case ORDER_ID:
68 ashish 19686
        if (value == null) {
3061 chandransh 19687
          unsetOrderId();
68 ashish 19688
        } else {
3061 chandransh 19689
          setOrderId((Long)value);
68 ashish 19690
        }
19691
        break;
19692
 
3061 chandransh 19693
      case CUSTOMER_ID:
68 ashish 19694
        if (value == null) {
3061 chandransh 19695
          unsetCustomerId();
68 ashish 19696
        } else {
3061 chandransh 19697
          setCustomerId((Long)value);
68 ashish 19698
        }
19699
        break;
19700
 
19701
      }
19702
    }
19703
 
19704
    public Object getFieldValue(_Fields field) {
19705
      switch (field) {
3061 chandransh 19706
      case ORDER_ID:
3430 rajveer 19707
        return Long.valueOf(getOrderId());
3061 chandransh 19708
 
483 rajveer 19709
      case CUSTOMER_ID:
3430 rajveer 19710
        return Long.valueOf(getCustomerId());
68 ashish 19711
 
19712
      }
19713
      throw new IllegalStateException();
19714
    }
19715
 
3430 rajveer 19716
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19717
    public boolean isSet(_Fields field) {
19718
      if (field == null) {
19719
        throw new IllegalArgumentException();
19720
      }
68 ashish 19721
 
19722
      switch (field) {
3061 chandransh 19723
      case ORDER_ID:
19724
        return isSetOrderId();
483 rajveer 19725
      case CUSTOMER_ID:
19726
        return isSetCustomerId();
68 ashish 19727
      }
19728
      throw new IllegalStateException();
19729
    }
19730
 
19731
    @Override
19732
    public boolean equals(Object that) {
19733
      if (that == null)
19734
        return false;
3061 chandransh 19735
      if (that instanceof getOrderForCustomer_args)
19736
        return this.equals((getOrderForCustomer_args)that);
68 ashish 19737
      return false;
19738
    }
19739
 
3061 chandransh 19740
    public boolean equals(getOrderForCustomer_args that) {
68 ashish 19741
      if (that == null)
19742
        return false;
19743
 
3061 chandransh 19744
      boolean this_present_orderId = true;
19745
      boolean that_present_orderId = true;
19746
      if (this_present_orderId || that_present_orderId) {
19747
        if (!(this_present_orderId && that_present_orderId))
19748
          return false;
19749
        if (this.orderId != that.orderId)
19750
          return false;
19751
      }
19752
 
483 rajveer 19753
      boolean this_present_customerId = true;
19754
      boolean that_present_customerId = true;
19755
      if (this_present_customerId || that_present_customerId) {
19756
        if (!(this_present_customerId && that_present_customerId))
68 ashish 19757
          return false;
483 rajveer 19758
        if (this.customerId != that.customerId)
68 ashish 19759
          return false;
19760
      }
19761
 
19762
      return true;
19763
    }
19764
 
19765
    @Override
19766
    public int hashCode() {
19767
      return 0;
19768
    }
19769
 
3061 chandransh 19770
    public int compareTo(getOrderForCustomer_args other) {
68 ashish 19771
      if (!getClass().equals(other.getClass())) {
19772
        return getClass().getName().compareTo(other.getClass().getName());
19773
      }
19774
 
19775
      int lastComparison = 0;
3061 chandransh 19776
      getOrderForCustomer_args typedOther = (getOrderForCustomer_args)other;
68 ashish 19777
 
3430 rajveer 19778
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
68 ashish 19779
      if (lastComparison != 0) {
19780
        return lastComparison;
19781
      }
3430 rajveer 19782
      if (isSetOrderId()) {
19783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
19784
        if (lastComparison != 0) {
19785
          return lastComparison;
19786
        }
68 ashish 19787
      }
3430 rajveer 19788
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
68 ashish 19789
      if (lastComparison != 0) {
19790
        return lastComparison;
19791
      }
3430 rajveer 19792
      if (isSetCustomerId()) {
19793
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
19794
        if (lastComparison != 0) {
19795
          return lastComparison;
19796
        }
68 ashish 19797
      }
19798
      return 0;
19799
    }
19800
 
3430 rajveer 19801
    public _Fields fieldForId(int fieldId) {
19802
      return _Fields.findByThriftId(fieldId);
19803
    }
19804
 
19805
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19806
      org.apache.thrift.protocol.TField field;
68 ashish 19807
      iprot.readStructBegin();
19808
      while (true)
19809
      {
19810
        field = iprot.readFieldBegin();
3430 rajveer 19811
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 19812
          break;
19813
        }
3430 rajveer 19814
        switch (field.id) {
19815
          case 1: // ORDER_ID
19816
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19817
              this.orderId = iprot.readI64();
19818
              setOrderIdIsSet(true);
19819
            } else { 
19820
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19821
            }
19822
            break;
19823
          case 2: // CUSTOMER_ID
19824
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19825
              this.customerId = iprot.readI64();
19826
              setCustomerIdIsSet(true);
19827
            } else { 
19828
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19829
            }
19830
            break;
19831
          default:
19832
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 19833
        }
3430 rajveer 19834
        iprot.readFieldEnd();
68 ashish 19835
      }
19836
      iprot.readStructEnd();
19837
      validate();
19838
    }
19839
 
3430 rajveer 19840
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 19841
      validate();
19842
 
19843
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 19844
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
19845
      oprot.writeI64(this.orderId);
19846
      oprot.writeFieldEnd();
483 rajveer 19847
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
19848
      oprot.writeI64(this.customerId);
68 ashish 19849
      oprot.writeFieldEnd();
19850
      oprot.writeFieldStop();
19851
      oprot.writeStructEnd();
19852
    }
19853
 
19854
    @Override
19855
    public String toString() {
3061 chandransh 19856
      StringBuilder sb = new StringBuilder("getOrderForCustomer_args(");
68 ashish 19857
      boolean first = true;
19858
 
3061 chandransh 19859
      sb.append("orderId:");
19860
      sb.append(this.orderId);
19861
      first = false;
19862
      if (!first) sb.append(", ");
483 rajveer 19863
      sb.append("customerId:");
19864
      sb.append(this.customerId);
68 ashish 19865
      first = false;
19866
      sb.append(")");
19867
      return sb.toString();
19868
    }
19869
 
3430 rajveer 19870
    public void validate() throws org.apache.thrift.TException {
68 ashish 19871
      // check for required fields
19872
    }
19873
 
3430 rajveer 19874
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19875
      try {
19876
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19877
      } catch (org.apache.thrift.TException te) {
19878
        throw new java.io.IOException(te);
19879
      }
19880
    }
19881
 
19882
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19883
      try {
19884
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19885
      } catch (org.apache.thrift.TException te) {
19886
        throw new java.io.IOException(te);
19887
      }
19888
    }
19889
 
68 ashish 19890
  }
19891
 
3430 rajveer 19892
  public static class getOrderForCustomer_result implements org.apache.thrift.TBase<getOrderForCustomer_result, getOrderForCustomer_result._Fields>, java.io.Serializable, Cloneable   {
19893
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForCustomer_result");
68 ashish 19894
 
3430 rajveer 19895
    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);
19896
    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 19897
 
3430 rajveer 19898
    private Order success; // required
19899
    private TransactionServiceException ex; // required
68 ashish 19900
 
19901
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19902
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68 ashish 19903
      SUCCESS((short)0, "success"),
19904
      EX((short)1, "ex");
19905
 
19906
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19907
 
19908
      static {
19909
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19910
          byName.put(field.getFieldName(), field);
19911
        }
19912
      }
19913
 
19914
      /**
19915
       * Find the _Fields constant that matches fieldId, or null if its not found.
19916
       */
19917
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19918
        switch(fieldId) {
19919
          case 0: // SUCCESS
19920
            return SUCCESS;
19921
          case 1: // EX
19922
            return EX;
19923
          default:
19924
            return null;
19925
        }
68 ashish 19926
      }
19927
 
19928
      /**
19929
       * Find the _Fields constant that matches fieldId, throwing an exception
19930
       * if it is not found.
19931
       */
19932
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19933
        _Fields fields = findByThriftId(fieldId);
19934
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19935
        return fields;
19936
      }
19937
 
19938
      /**
19939
       * Find the _Fields constant that matches name, or null if its not found.
19940
       */
19941
      public static _Fields findByName(String name) {
19942
        return byName.get(name);
19943
      }
19944
 
19945
      private final short _thriftId;
19946
      private final String _fieldName;
19947
 
19948
      _Fields(short thriftId, String fieldName) {
19949
        _thriftId = thriftId;
19950
        _fieldName = fieldName;
19951
      }
19952
 
19953
      public short getThriftFieldId() {
19954
        return _thriftId;
19955
      }
19956
 
19957
      public String getFieldName() {
19958
        return _fieldName;
19959
      }
19960
    }
19961
 
19962
    // isset id assignments
19963
 
3430 rajveer 19964
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 19965
    static {
3430 rajveer 19966
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19967
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19968
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
19969
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19970
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19971
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19972
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForCustomer_result.class, metaDataMap);
68 ashish 19973
    }
19974
 
3061 chandransh 19975
    public getOrderForCustomer_result() {
68 ashish 19976
    }
19977
 
3061 chandransh 19978
    public getOrderForCustomer_result(
19979
      Order success,
68 ashish 19980
      TransactionServiceException ex)
19981
    {
19982
      this();
19983
      this.success = success;
19984
      this.ex = ex;
19985
    }
19986
 
19987
    /**
19988
     * Performs a deep copy on <i>other</i>.
19989
     */
3061 chandransh 19990
    public getOrderForCustomer_result(getOrderForCustomer_result other) {
483 rajveer 19991
      if (other.isSetSuccess()) {
3061 chandransh 19992
        this.success = new Order(other.success);
483 rajveer 19993
      }
68 ashish 19994
      if (other.isSetEx()) {
19995
        this.ex = new TransactionServiceException(other.ex);
19996
      }
19997
    }
19998
 
3061 chandransh 19999
    public getOrderForCustomer_result deepCopy() {
20000
      return new getOrderForCustomer_result(this);
68 ashish 20001
    }
20002
 
3430 rajveer 20003
    @Override
20004
    public void clear() {
20005
      this.success = null;
20006
      this.ex = null;
68 ashish 20007
    }
20008
 
3061 chandransh 20009
    public Order getSuccess() {
68 ashish 20010
      return this.success;
20011
    }
20012
 
3430 rajveer 20013
    public void setSuccess(Order success) {
68 ashish 20014
      this.success = success;
20015
    }
20016
 
20017
    public void unsetSuccess() {
483 rajveer 20018
      this.success = null;
68 ashish 20019
    }
20020
 
3430 rajveer 20021
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 20022
    public boolean isSetSuccess() {
483 rajveer 20023
      return this.success != null;
68 ashish 20024
    }
20025
 
20026
    public void setSuccessIsSet(boolean value) {
483 rajveer 20027
      if (!value) {
20028
        this.success = null;
20029
      }
68 ashish 20030
    }
20031
 
20032
    public TransactionServiceException getEx() {
20033
      return this.ex;
20034
    }
20035
 
3430 rajveer 20036
    public void setEx(TransactionServiceException ex) {
68 ashish 20037
      this.ex = ex;
20038
    }
20039
 
20040
    public void unsetEx() {
20041
      this.ex = null;
20042
    }
20043
 
3430 rajveer 20044
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
68 ashish 20045
    public boolean isSetEx() {
20046
      return this.ex != null;
20047
    }
20048
 
20049
    public void setExIsSet(boolean value) {
20050
      if (!value) {
20051
        this.ex = null;
20052
      }
20053
    }
20054
 
20055
    public void setFieldValue(_Fields field, Object value) {
20056
      switch (field) {
20057
      case SUCCESS:
20058
        if (value == null) {
20059
          unsetSuccess();
20060
        } else {
3061 chandransh 20061
          setSuccess((Order)value);
68 ashish 20062
        }
20063
        break;
20064
 
20065
      case EX:
20066
        if (value == null) {
20067
          unsetEx();
20068
        } else {
20069
          setEx((TransactionServiceException)value);
20070
        }
20071
        break;
20072
 
20073
      }
20074
    }
20075
 
20076
    public Object getFieldValue(_Fields field) {
20077
      switch (field) {
20078
      case SUCCESS:
483 rajveer 20079
        return getSuccess();
68 ashish 20080
 
20081
      case EX:
20082
        return getEx();
20083
 
20084
      }
20085
      throw new IllegalStateException();
20086
    }
20087
 
3430 rajveer 20088
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20089
    public boolean isSet(_Fields field) {
20090
      if (field == null) {
20091
        throw new IllegalArgumentException();
20092
      }
68 ashish 20093
 
20094
      switch (field) {
20095
      case SUCCESS:
20096
        return isSetSuccess();
20097
      case EX:
20098
        return isSetEx();
20099
      }
20100
      throw new IllegalStateException();
20101
    }
20102
 
20103
    @Override
20104
    public boolean equals(Object that) {
20105
      if (that == null)
20106
        return false;
3061 chandransh 20107
      if (that instanceof getOrderForCustomer_result)
20108
        return this.equals((getOrderForCustomer_result)that);
68 ashish 20109
      return false;
20110
    }
20111
 
3061 chandransh 20112
    public boolean equals(getOrderForCustomer_result that) {
68 ashish 20113
      if (that == null)
20114
        return false;
20115
 
483 rajveer 20116
      boolean this_present_success = true && this.isSetSuccess();
20117
      boolean that_present_success = true && that.isSetSuccess();
68 ashish 20118
      if (this_present_success || that_present_success) {
20119
        if (!(this_present_success && that_present_success))
20120
          return false;
483 rajveer 20121
        if (!this.success.equals(that.success))
68 ashish 20122
          return false;
20123
      }
20124
 
20125
      boolean this_present_ex = true && this.isSetEx();
20126
      boolean that_present_ex = true && that.isSetEx();
20127
      if (this_present_ex || that_present_ex) {
20128
        if (!(this_present_ex && that_present_ex))
20129
          return false;
20130
        if (!this.ex.equals(that.ex))
20131
          return false;
20132
      }
20133
 
20134
      return true;
20135
    }
20136
 
20137
    @Override
20138
    public int hashCode() {
20139
      return 0;
20140
    }
20141
 
3061 chandransh 20142
    public int compareTo(getOrderForCustomer_result other) {
68 ashish 20143
      if (!getClass().equals(other.getClass())) {
20144
        return getClass().getName().compareTo(other.getClass().getName());
20145
      }
20146
 
20147
      int lastComparison = 0;
3061 chandransh 20148
      getOrderForCustomer_result typedOther = (getOrderForCustomer_result)other;
68 ashish 20149
 
3430 rajveer 20150
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 20151
      if (lastComparison != 0) {
20152
        return lastComparison;
20153
      }
3430 rajveer 20154
      if (isSetSuccess()) {
20155
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20156
        if (lastComparison != 0) {
20157
          return lastComparison;
20158
        }
68 ashish 20159
      }
3430 rajveer 20160
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
68 ashish 20161
      if (lastComparison != 0) {
20162
        return lastComparison;
20163
      }
3430 rajveer 20164
      if (isSetEx()) {
20165
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
20166
        if (lastComparison != 0) {
20167
          return lastComparison;
20168
        }
68 ashish 20169
      }
20170
      return 0;
20171
    }
20172
 
3430 rajveer 20173
    public _Fields fieldForId(int fieldId) {
20174
      return _Fields.findByThriftId(fieldId);
20175
    }
20176
 
20177
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20178
      org.apache.thrift.protocol.TField field;
68 ashish 20179
      iprot.readStructBegin();
20180
      while (true)
20181
      {
20182
        field = iprot.readFieldBegin();
3430 rajveer 20183
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 20184
          break;
20185
        }
3430 rajveer 20186
        switch (field.id) {
20187
          case 0: // SUCCESS
20188
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20189
              this.success = new Order();
20190
              this.success.read(iprot);
20191
            } else { 
20192
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20193
            }
20194
            break;
20195
          case 1: // EX
20196
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20197
              this.ex = new TransactionServiceException();
20198
              this.ex.read(iprot);
20199
            } else { 
20200
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20201
            }
20202
            break;
20203
          default:
20204
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 20205
        }
3430 rajveer 20206
        iprot.readFieldEnd();
68 ashish 20207
      }
20208
      iprot.readStructEnd();
20209
      validate();
20210
    }
20211
 
3430 rajveer 20212
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 20213
      oprot.writeStructBegin(STRUCT_DESC);
20214
 
20215
      if (this.isSetSuccess()) {
20216
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 20217
        this.success.write(oprot);
68 ashish 20218
        oprot.writeFieldEnd();
20219
      } else if (this.isSetEx()) {
20220
        oprot.writeFieldBegin(EX_FIELD_DESC);
20221
        this.ex.write(oprot);
20222
        oprot.writeFieldEnd();
20223
      }
20224
      oprot.writeFieldStop();
20225
      oprot.writeStructEnd();
20226
    }
20227
 
20228
    @Override
20229
    public String toString() {
3061 chandransh 20230
      StringBuilder sb = new StringBuilder("getOrderForCustomer_result(");
68 ashish 20231
      boolean first = true;
20232
 
20233
      sb.append("success:");
483 rajveer 20234
      if (this.success == null) {
20235
        sb.append("null");
20236
      } else {
20237
        sb.append(this.success);
20238
      }
68 ashish 20239
      first = false;
20240
      if (!first) sb.append(", ");
20241
      sb.append("ex:");
20242
      if (this.ex == null) {
20243
        sb.append("null");
20244
      } else {
20245
        sb.append(this.ex);
20246
      }
20247
      first = false;
20248
      sb.append(")");
20249
      return sb.toString();
20250
    }
20251
 
3430 rajveer 20252
    public void validate() throws org.apache.thrift.TException {
68 ashish 20253
      // check for required fields
20254
    }
20255
 
3430 rajveer 20256
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20257
      try {
20258
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20259
      } catch (org.apache.thrift.TException te) {
20260
        throw new java.io.IOException(te);
20261
      }
20262
    }
20263
 
20264
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20265
      try {
20266
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20267
      } catch (org.apache.thrift.TException te) {
20268
        throw new java.io.IOException(te);
20269
      }
20270
    }
20271
 
68 ashish 20272
  }
20273
 
3430 rajveer 20274
  public static class getAlerts_args implements org.apache.thrift.TBase<getAlerts_args, getAlerts_args._Fields>, java.io.Serializable, Cloneable   {
20275
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlerts_args");
68 ashish 20276
 
3430 rajveer 20277
    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);
20278
    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 20279
 
3430 rajveer 20280
    private long orderId; // required
20281
    private boolean valid; // required
68 ashish 20282
 
20283
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20284
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 20285
      ORDER_ID((short)1, "orderId"),
20286
      VALID((short)2, "valid");
68 ashish 20287
 
20288
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20289
 
20290
      static {
20291
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20292
          byName.put(field.getFieldName(), field);
20293
        }
20294
      }
20295
 
20296
      /**
20297
       * Find the _Fields constant that matches fieldId, or null if its not found.
20298
       */
20299
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20300
        switch(fieldId) {
20301
          case 1: // ORDER_ID
20302
            return ORDER_ID;
20303
          case 2: // VALID
20304
            return VALID;
20305
          default:
20306
            return null;
20307
        }
68 ashish 20308
      }
20309
 
20310
      /**
20311
       * Find the _Fields constant that matches fieldId, throwing an exception
20312
       * if it is not found.
20313
       */
20314
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20315
        _Fields fields = findByThriftId(fieldId);
20316
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20317
        return fields;
20318
      }
20319
 
20320
      /**
20321
       * Find the _Fields constant that matches name, or null if its not found.
20322
       */
20323
      public static _Fields findByName(String name) {
20324
        return byName.get(name);
20325
      }
20326
 
20327
      private final short _thriftId;
20328
      private final String _fieldName;
20329
 
20330
      _Fields(short thriftId, String fieldName) {
20331
        _thriftId = thriftId;
20332
        _fieldName = fieldName;
20333
      }
20334
 
20335
      public short getThriftFieldId() {
20336
        return _thriftId;
20337
      }
20338
 
20339
      public String getFieldName() {
20340
        return _fieldName;
20341
      }
20342
    }
20343
 
20344
    // isset id assignments
3061 chandransh 20345
    private static final int __ORDERID_ISSET_ID = 0;
20346
    private static final int __VALID_ISSET_ID = 1;
20347
    private BitSet __isset_bit_vector = new BitSet(2);
68 ashish 20348
 
3430 rajveer 20349
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 20350
    static {
3430 rajveer 20351
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20352
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20353
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20354
      tmpMap.put(_Fields.VALID, new org.apache.thrift.meta_data.FieldMetaData("valid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20355
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
20356
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20357
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlerts_args.class, metaDataMap);
68 ashish 20358
    }
20359
 
3061 chandransh 20360
    public getAlerts_args() {
68 ashish 20361
    }
20362
 
3061 chandransh 20363
    public getAlerts_args(
20364
      long orderId,
20365
      boolean valid)
68 ashish 20366
    {
20367
      this();
3061 chandransh 20368
      this.orderId = orderId;
20369
      setOrderIdIsSet(true);
20370
      this.valid = valid;
20371
      setValidIsSet(true);
68 ashish 20372
    }
20373
 
20374
    /**
20375
     * Performs a deep copy on <i>other</i>.
20376
     */
3061 chandransh 20377
    public getAlerts_args(getAlerts_args other) {
20378
      __isset_bit_vector.clear();
20379
      __isset_bit_vector.or(other.__isset_bit_vector);
20380
      this.orderId = other.orderId;
20381
      this.valid = other.valid;
68 ashish 20382
    }
20383
 
3061 chandransh 20384
    public getAlerts_args deepCopy() {
20385
      return new getAlerts_args(this);
68 ashish 20386
    }
20387
 
3430 rajveer 20388
    @Override
20389
    public void clear() {
20390
      setOrderIdIsSet(false);
20391
      this.orderId = 0;
20392
      setValidIsSet(false);
20393
      this.valid = false;
68 ashish 20394
    }
20395
 
3061 chandransh 20396
    public long getOrderId() {
20397
      return this.orderId;
68 ashish 20398
    }
20399
 
3430 rajveer 20400
    public void setOrderId(long orderId) {
3061 chandransh 20401
      this.orderId = orderId;
20402
      setOrderIdIsSet(true);
68 ashish 20403
    }
20404
 
3061 chandransh 20405
    public void unsetOrderId() {
20406
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
68 ashish 20407
    }
20408
 
3430 rajveer 20409
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 20410
    public boolean isSetOrderId() {
20411
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
68 ashish 20412
    }
20413
 
3061 chandransh 20414
    public void setOrderIdIsSet(boolean value) {
20415
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
68 ashish 20416
    }
20417
 
3061 chandransh 20418
    public boolean isValid() {
20419
      return this.valid;
20420
    }
20421
 
3430 rajveer 20422
    public void setValid(boolean valid) {
3061 chandransh 20423
      this.valid = valid;
20424
      setValidIsSet(true);
20425
    }
20426
 
20427
    public void unsetValid() {
20428
      __isset_bit_vector.clear(__VALID_ISSET_ID);
20429
    }
20430
 
3430 rajveer 20431
    /** Returns true if field valid is set (has been assigned a value) and false otherwise */
3061 chandransh 20432
    public boolean isSetValid() {
20433
      return __isset_bit_vector.get(__VALID_ISSET_ID);
20434
    }
20435
 
20436
    public void setValidIsSet(boolean value) {
20437
      __isset_bit_vector.set(__VALID_ISSET_ID, value);
20438
    }
20439
 
68 ashish 20440
    public void setFieldValue(_Fields field, Object value) {
20441
      switch (field) {
3061 chandransh 20442
      case ORDER_ID:
68 ashish 20443
        if (value == null) {
3061 chandransh 20444
          unsetOrderId();
68 ashish 20445
        } else {
3061 chandransh 20446
          setOrderId((Long)value);
68 ashish 20447
        }
20448
        break;
20449
 
3061 chandransh 20450
      case VALID:
20451
        if (value == null) {
20452
          unsetValid();
20453
        } else {
20454
          setValid((Boolean)value);
20455
        }
20456
        break;
20457
 
68 ashish 20458
      }
20459
    }
20460
 
20461
    public Object getFieldValue(_Fields field) {
20462
      switch (field) {
3061 chandransh 20463
      case ORDER_ID:
3430 rajveer 20464
        return Long.valueOf(getOrderId());
68 ashish 20465
 
3061 chandransh 20466
      case VALID:
3430 rajveer 20467
        return Boolean.valueOf(isValid());
3061 chandransh 20468
 
68 ashish 20469
      }
20470
      throw new IllegalStateException();
20471
    }
20472
 
3430 rajveer 20473
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20474
    public boolean isSet(_Fields field) {
20475
      if (field == null) {
20476
        throw new IllegalArgumentException();
20477
      }
68 ashish 20478
 
20479
      switch (field) {
3061 chandransh 20480
      case ORDER_ID:
20481
        return isSetOrderId();
20482
      case VALID:
20483
        return isSetValid();
68 ashish 20484
      }
20485
      throw new IllegalStateException();
20486
    }
20487
 
20488
    @Override
20489
    public boolean equals(Object that) {
20490
      if (that == null)
20491
        return false;
3061 chandransh 20492
      if (that instanceof getAlerts_args)
20493
        return this.equals((getAlerts_args)that);
68 ashish 20494
      return false;
20495
    }
20496
 
3061 chandransh 20497
    public boolean equals(getAlerts_args that) {
68 ashish 20498
      if (that == null)
20499
        return false;
20500
 
3061 chandransh 20501
      boolean this_present_orderId = true;
20502
      boolean that_present_orderId = true;
20503
      if (this_present_orderId || that_present_orderId) {
20504
        if (!(this_present_orderId && that_present_orderId))
68 ashish 20505
          return false;
3061 chandransh 20506
        if (this.orderId != that.orderId)
68 ashish 20507
          return false;
20508
      }
20509
 
3061 chandransh 20510
      boolean this_present_valid = true;
20511
      boolean that_present_valid = true;
20512
      if (this_present_valid || that_present_valid) {
20513
        if (!(this_present_valid && that_present_valid))
20514
          return false;
20515
        if (this.valid != that.valid)
20516
          return false;
20517
      }
20518
 
68 ashish 20519
      return true;
20520
    }
20521
 
20522
    @Override
20523
    public int hashCode() {
20524
      return 0;
20525
    }
20526
 
3061 chandransh 20527
    public int compareTo(getAlerts_args other) {
68 ashish 20528
      if (!getClass().equals(other.getClass())) {
20529
        return getClass().getName().compareTo(other.getClass().getName());
20530
      }
20531
 
20532
      int lastComparison = 0;
3061 chandransh 20533
      getAlerts_args typedOther = (getAlerts_args)other;
68 ashish 20534
 
3430 rajveer 20535
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
68 ashish 20536
      if (lastComparison != 0) {
20537
        return lastComparison;
20538
      }
3430 rajveer 20539
      if (isSetOrderId()) {
20540
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
20541
        if (lastComparison != 0) {
20542
          return lastComparison;
20543
        }
68 ashish 20544
      }
3430 rajveer 20545
      lastComparison = Boolean.valueOf(isSetValid()).compareTo(typedOther.isSetValid());
3061 chandransh 20546
      if (lastComparison != 0) {
20547
        return lastComparison;
20548
      }
3430 rajveer 20549
      if (isSetValid()) {
20550
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.valid, typedOther.valid);
20551
        if (lastComparison != 0) {
20552
          return lastComparison;
20553
        }
3061 chandransh 20554
      }
68 ashish 20555
      return 0;
20556
    }
20557
 
3430 rajveer 20558
    public _Fields fieldForId(int fieldId) {
20559
      return _Fields.findByThriftId(fieldId);
20560
    }
20561
 
20562
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20563
      org.apache.thrift.protocol.TField field;
68 ashish 20564
      iprot.readStructBegin();
20565
      while (true)
20566
      {
20567
        field = iprot.readFieldBegin();
3430 rajveer 20568
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 20569
          break;
20570
        }
3430 rajveer 20571
        switch (field.id) {
20572
          case 1: // ORDER_ID
20573
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20574
              this.orderId = iprot.readI64();
20575
              setOrderIdIsSet(true);
20576
            } else { 
20577
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20578
            }
20579
            break;
20580
          case 2: // VALID
20581
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
20582
              this.valid = iprot.readBool();
20583
              setValidIsSet(true);
20584
            } else { 
20585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20586
            }
20587
            break;
20588
          default:
20589
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 20590
        }
3430 rajveer 20591
        iprot.readFieldEnd();
68 ashish 20592
      }
20593
      iprot.readStructEnd();
20594
      validate();
20595
    }
20596
 
3430 rajveer 20597
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 20598
      validate();
20599
 
20600
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 20601
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
20602
      oprot.writeI64(this.orderId);
20603
      oprot.writeFieldEnd();
20604
      oprot.writeFieldBegin(VALID_FIELD_DESC);
20605
      oprot.writeBool(this.valid);
20606
      oprot.writeFieldEnd();
68 ashish 20607
      oprot.writeFieldStop();
20608
      oprot.writeStructEnd();
20609
    }
20610
 
20611
    @Override
20612
    public String toString() {
3061 chandransh 20613
      StringBuilder sb = new StringBuilder("getAlerts_args(");
68 ashish 20614
      boolean first = true;
20615
 
3061 chandransh 20616
      sb.append("orderId:");
20617
      sb.append(this.orderId);
68 ashish 20618
      first = false;
3061 chandransh 20619
      if (!first) sb.append(", ");
20620
      sb.append("valid:");
20621
      sb.append(this.valid);
20622
      first = false;
68 ashish 20623
      sb.append(")");
20624
      return sb.toString();
20625
    }
20626
 
3430 rajveer 20627
    public void validate() throws org.apache.thrift.TException {
68 ashish 20628
      // check for required fields
20629
    }
20630
 
3430 rajveer 20631
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20632
      try {
20633
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20634
      } catch (org.apache.thrift.TException te) {
20635
        throw new java.io.IOException(te);
20636
      }
20637
    }
20638
 
20639
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20640
      try {
20641
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20642
        __isset_bit_vector = new BitSet(1);
20643
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20644
      } catch (org.apache.thrift.TException te) {
20645
        throw new java.io.IOException(te);
20646
      }
20647
    }
20648
 
68 ashish 20649
  }
20650
 
3430 rajveer 20651
  public static class getAlerts_result implements org.apache.thrift.TBase<getAlerts_result, getAlerts_result._Fields>, java.io.Serializable, Cloneable   {
20652
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlerts_result");
68 ashish 20653
 
3430 rajveer 20654
    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 20655
 
3430 rajveer 20656
    private List<Alert> success; // required
68 ashish 20657
 
20658
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20659
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 20660
      SUCCESS((short)0, "success");
68 ashish 20661
 
20662
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20663
 
20664
      static {
20665
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20666
          byName.put(field.getFieldName(), field);
20667
        }
20668
      }
20669
 
20670
      /**
20671
       * Find the _Fields constant that matches fieldId, or null if its not found.
20672
       */
20673
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20674
        switch(fieldId) {
20675
          case 0: // SUCCESS
20676
            return SUCCESS;
20677
          default:
20678
            return null;
20679
        }
68 ashish 20680
      }
20681
 
20682
      /**
20683
       * Find the _Fields constant that matches fieldId, throwing an exception
20684
       * if it is not found.
20685
       */
20686
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20687
        _Fields fields = findByThriftId(fieldId);
20688
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20689
        return fields;
20690
      }
20691
 
20692
      /**
20693
       * Find the _Fields constant that matches name, or null if its not found.
20694
       */
20695
      public static _Fields findByName(String name) {
20696
        return byName.get(name);
20697
      }
20698
 
20699
      private final short _thriftId;
20700
      private final String _fieldName;
20701
 
20702
      _Fields(short thriftId, String fieldName) {
20703
        _thriftId = thriftId;
20704
        _fieldName = fieldName;
20705
      }
20706
 
20707
      public short getThriftFieldId() {
20708
        return _thriftId;
20709
      }
20710
 
20711
      public String getFieldName() {
20712
        return _fieldName;
20713
      }
20714
    }
20715
 
20716
    // isset id assignments
20717
 
3430 rajveer 20718
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 20719
    static {
3430 rajveer 20720
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20721
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20722
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20723
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Alert.class))));
20724
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20725
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlerts_result.class, metaDataMap);
68 ashish 20726
    }
20727
 
3061 chandransh 20728
    public getAlerts_result() {
68 ashish 20729
    }
20730
 
3061 chandransh 20731
    public getAlerts_result(
20732
      List<Alert> success)
68 ashish 20733
    {
20734
      this();
20735
      this.success = success;
20736
    }
20737
 
20738
    /**
20739
     * Performs a deep copy on <i>other</i>.
20740
     */
3061 chandransh 20741
    public getAlerts_result(getAlerts_result other) {
20742
      if (other.isSetSuccess()) {
20743
        List<Alert> __this__success = new ArrayList<Alert>();
20744
        for (Alert other_element : other.success) {
20745
          __this__success.add(new Alert(other_element));
20746
        }
20747
        this.success = __this__success;
68 ashish 20748
      }
20749
    }
20750
 
3061 chandransh 20751
    public getAlerts_result deepCopy() {
20752
      return new getAlerts_result(this);
68 ashish 20753
    }
20754
 
3430 rajveer 20755
    @Override
20756
    public void clear() {
20757
      this.success = null;
68 ashish 20758
    }
20759
 
3061 chandransh 20760
    public int getSuccessSize() {
20761
      return (this.success == null) ? 0 : this.success.size();
20762
    }
20763
 
20764
    public java.util.Iterator<Alert> getSuccessIterator() {
20765
      return (this.success == null) ? null : this.success.iterator();
20766
    }
20767
 
20768
    public void addToSuccess(Alert elem) {
20769
      if (this.success == null) {
20770
        this.success = new ArrayList<Alert>();
20771
      }
20772
      this.success.add(elem);
20773
    }
20774
 
20775
    public List<Alert> getSuccess() {
68 ashish 20776
      return this.success;
20777
    }
20778
 
3430 rajveer 20779
    public void setSuccess(List<Alert> success) {
68 ashish 20780
      this.success = success;
20781
    }
20782
 
20783
    public void unsetSuccess() {
3061 chandransh 20784
      this.success = null;
68 ashish 20785
    }
20786
 
3430 rajveer 20787
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 20788
    public boolean isSetSuccess() {
3061 chandransh 20789
      return this.success != null;
68 ashish 20790
    }
20791
 
20792
    public void setSuccessIsSet(boolean value) {
20793
      if (!value) {
3061 chandransh 20794
        this.success = null;
68 ashish 20795
      }
20796
    }
20797
 
20798
    public void setFieldValue(_Fields field, Object value) {
20799
      switch (field) {
20800
      case SUCCESS:
20801
        if (value == null) {
20802
          unsetSuccess();
20803
        } else {
3061 chandransh 20804
          setSuccess((List<Alert>)value);
68 ashish 20805
        }
20806
        break;
20807
 
20808
      }
20809
    }
20810
 
20811
    public Object getFieldValue(_Fields field) {
20812
      switch (field) {
20813
      case SUCCESS:
3061 chandransh 20814
        return getSuccess();
68 ashish 20815
 
20816
      }
20817
      throw new IllegalStateException();
20818
    }
20819
 
3430 rajveer 20820
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20821
    public boolean isSet(_Fields field) {
20822
      if (field == null) {
20823
        throw new IllegalArgumentException();
20824
      }
68 ashish 20825
 
20826
      switch (field) {
20827
      case SUCCESS:
20828
        return isSetSuccess();
20829
      }
20830
      throw new IllegalStateException();
20831
    }
20832
 
20833
    @Override
20834
    public boolean equals(Object that) {
20835
      if (that == null)
20836
        return false;
3061 chandransh 20837
      if (that instanceof getAlerts_result)
20838
        return this.equals((getAlerts_result)that);
68 ashish 20839
      return false;
20840
    }
20841
 
3061 chandransh 20842
    public boolean equals(getAlerts_result that) {
68 ashish 20843
      if (that == null)
20844
        return false;
20845
 
3061 chandransh 20846
      boolean this_present_success = true && this.isSetSuccess();
20847
      boolean that_present_success = true && that.isSetSuccess();
68 ashish 20848
      if (this_present_success || that_present_success) {
20849
        if (!(this_present_success && that_present_success))
20850
          return false;
3061 chandransh 20851
        if (!this.success.equals(that.success))
68 ashish 20852
          return false;
20853
      }
20854
 
20855
      return true;
20856
    }
20857
 
20858
    @Override
20859
    public int hashCode() {
20860
      return 0;
20861
    }
20862
 
3061 chandransh 20863
    public int compareTo(getAlerts_result other) {
68 ashish 20864
      if (!getClass().equals(other.getClass())) {
20865
        return getClass().getName().compareTo(other.getClass().getName());
20866
      }
20867
 
20868
      int lastComparison = 0;
3061 chandransh 20869
      getAlerts_result typedOther = (getAlerts_result)other;
68 ashish 20870
 
3430 rajveer 20871
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 20872
      if (lastComparison != 0) {
20873
        return lastComparison;
20874
      }
3430 rajveer 20875
      if (isSetSuccess()) {
20876
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20877
        if (lastComparison != 0) {
20878
          return lastComparison;
20879
        }
68 ashish 20880
      }
20881
      return 0;
20882
    }
20883
 
3430 rajveer 20884
    public _Fields fieldForId(int fieldId) {
20885
      return _Fields.findByThriftId(fieldId);
20886
    }
20887
 
20888
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20889
      org.apache.thrift.protocol.TField field;
68 ashish 20890
      iprot.readStructBegin();
20891
      while (true)
20892
      {
20893
        field = iprot.readFieldBegin();
3430 rajveer 20894
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 20895
          break;
20896
        }
3430 rajveer 20897
        switch (field.id) {
20898
          case 0: // SUCCESS
20899
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20900
              {
20901
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
20902
                this.success = new ArrayList<Alert>(_list52.size);
20903
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
3061 chandransh 20904
                {
3430 rajveer 20905
                  Alert _elem54; // required
20906
                  _elem54 = new Alert();
20907
                  _elem54.read(iprot);
20908
                  this.success.add(_elem54);
3061 chandransh 20909
                }
3430 rajveer 20910
                iprot.readListEnd();
68 ashish 20911
              }
3430 rajveer 20912
            } else { 
20913
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20914
            }
20915
            break;
20916
          default:
20917
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 20918
        }
3430 rajveer 20919
        iprot.readFieldEnd();
68 ashish 20920
      }
20921
      iprot.readStructEnd();
20922
      validate();
20923
    }
20924
 
3430 rajveer 20925
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 20926
      oprot.writeStructBegin(STRUCT_DESC);
20927
 
20928
      if (this.isSetSuccess()) {
20929
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 20930
        {
3430 rajveer 20931
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3427 chandransh 20932
          for (Alert _iter55 : this.success)
3061 chandransh 20933
          {
3427 chandransh 20934
            _iter55.write(oprot);
3061 chandransh 20935
          }
20936
          oprot.writeListEnd();
20937
        }
68 ashish 20938
        oprot.writeFieldEnd();
20939
      }
20940
      oprot.writeFieldStop();
20941
      oprot.writeStructEnd();
20942
    }
20943
 
20944
    @Override
20945
    public String toString() {
3061 chandransh 20946
      StringBuilder sb = new StringBuilder("getAlerts_result(");
68 ashish 20947
      boolean first = true;
20948
 
20949
      sb.append("success:");
3061 chandransh 20950
      if (this.success == null) {
68 ashish 20951
        sb.append("null");
20952
      } else {
3061 chandransh 20953
        sb.append(this.success);
68 ashish 20954
      }
20955
      first = false;
20956
      sb.append(")");
20957
      return sb.toString();
20958
    }
20959
 
3430 rajveer 20960
    public void validate() throws org.apache.thrift.TException {
68 ashish 20961
      // check for required fields
20962
    }
20963
 
3430 rajveer 20964
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20965
      try {
20966
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20967
      } catch (org.apache.thrift.TException te) {
20968
        throw new java.io.IOException(te);
20969
      }
20970
    }
20971
 
20972
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20973
      try {
20974
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20975
      } catch (org.apache.thrift.TException te) {
20976
        throw new java.io.IOException(te);
20977
      }
20978
    }
20979
 
68 ashish 20980
  }
20981
 
3430 rajveer 20982
  public static class setAlert_args implements org.apache.thrift.TBase<setAlert_args, setAlert_args._Fields>, java.io.Serializable, Cloneable   {
20983
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setAlert_args");
68 ashish 20984
 
3430 rajveer 20985
    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);
20986
    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);
20987
    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);
20988
    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 20989
 
3430 rajveer 20990
    private long orderId; // required
20991
    private boolean unset; // required
20992
    private long type; // required
20993
    private String comment; // required
68 ashish 20994
 
20995
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20996
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 20997
      ORDER_ID((short)1, "orderId"),
20998
      UNSET((short)2, "unset"),
20999
      TYPE((short)3, "type"),
21000
      COMMENT((short)4, "comment");
68 ashish 21001
 
21002
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21003
 
21004
      static {
21005
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21006
          byName.put(field.getFieldName(), field);
21007
        }
21008
      }
21009
 
21010
      /**
21011
       * Find the _Fields constant that matches fieldId, or null if its not found.
21012
       */
21013
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21014
        switch(fieldId) {
21015
          case 1: // ORDER_ID
21016
            return ORDER_ID;
21017
          case 2: // UNSET
21018
            return UNSET;
21019
          case 3: // TYPE
21020
            return TYPE;
21021
          case 4: // COMMENT
21022
            return COMMENT;
21023
          default:
21024
            return null;
21025
        }
68 ashish 21026
      }
21027
 
21028
      /**
21029
       * Find the _Fields constant that matches fieldId, throwing an exception
21030
       * if it is not found.
21031
       */
21032
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21033
        _Fields fields = findByThriftId(fieldId);
21034
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21035
        return fields;
21036
      }
21037
 
21038
      /**
21039
       * Find the _Fields constant that matches name, or null if its not found.
21040
       */
21041
      public static _Fields findByName(String name) {
21042
        return byName.get(name);
21043
      }
21044
 
21045
      private final short _thriftId;
21046
      private final String _fieldName;
21047
 
21048
      _Fields(short thriftId, String fieldName) {
21049
        _thriftId = thriftId;
21050
        _fieldName = fieldName;
21051
      }
21052
 
21053
      public short getThriftFieldId() {
21054
        return _thriftId;
21055
      }
21056
 
21057
      public String getFieldName() {
21058
        return _fieldName;
21059
      }
21060
    }
21061
 
21062
    // isset id assignments
3061 chandransh 21063
    private static final int __ORDERID_ISSET_ID = 0;
21064
    private static final int __UNSET_ISSET_ID = 1;
21065
    private static final int __TYPE_ISSET_ID = 2;
21066
    private BitSet __isset_bit_vector = new BitSet(3);
68 ashish 21067
 
3430 rajveer 21068
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 21069
    static {
3430 rajveer 21070
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21071
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21072
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21073
      tmpMap.put(_Fields.UNSET, new org.apache.thrift.meta_data.FieldMetaData("unset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21074
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
21075
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21076
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21077
      tmpMap.put(_Fields.COMMENT, new org.apache.thrift.meta_data.FieldMetaData("comment", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21078
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21079
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21080
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setAlert_args.class, metaDataMap);
68 ashish 21081
    }
21082
 
3061 chandransh 21083
    public setAlert_args() {
68 ashish 21084
    }
21085
 
3061 chandransh 21086
    public setAlert_args(
21087
      long orderId,
21088
      boolean unset,
21089
      long type,
21090
      String comment)
68 ashish 21091
    {
21092
      this();
3061 chandransh 21093
      this.orderId = orderId;
21094
      setOrderIdIsSet(true);
21095
      this.unset = unset;
21096
      setUnsetIsSet(true);
21097
      this.type = type;
21098
      setTypeIsSet(true);
21099
      this.comment = comment;
68 ashish 21100
    }
21101
 
21102
    /**
21103
     * Performs a deep copy on <i>other</i>.
21104
     */
3061 chandransh 21105
    public setAlert_args(setAlert_args other) {
68 ashish 21106
      __isset_bit_vector.clear();
21107
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 21108
      this.orderId = other.orderId;
21109
      this.unset = other.unset;
21110
      this.type = other.type;
21111
      if (other.isSetComment()) {
21112
        this.comment = other.comment;
21113
      }
68 ashish 21114
    }
21115
 
3061 chandransh 21116
    public setAlert_args deepCopy() {
21117
      return new setAlert_args(this);
68 ashish 21118
    }
21119
 
3430 rajveer 21120
    @Override
21121
    public void clear() {
21122
      setOrderIdIsSet(false);
21123
      this.orderId = 0;
21124
      setUnsetIsSet(false);
21125
      this.unset = false;
21126
      setTypeIsSet(false);
21127
      this.type = 0;
21128
      this.comment = null;
68 ashish 21129
    }
21130
 
3061 chandransh 21131
    public long getOrderId() {
21132
      return this.orderId;
68 ashish 21133
    }
21134
 
3430 rajveer 21135
    public void setOrderId(long orderId) {
3061 chandransh 21136
      this.orderId = orderId;
21137
      setOrderIdIsSet(true);
68 ashish 21138
    }
21139
 
3061 chandransh 21140
    public void unsetOrderId() {
21141
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
68 ashish 21142
    }
21143
 
3430 rajveer 21144
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 21145
    public boolean isSetOrderId() {
21146
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
68 ashish 21147
    }
21148
 
3061 chandransh 21149
    public void setOrderIdIsSet(boolean value) {
21150
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
68 ashish 21151
    }
21152
 
3061 chandransh 21153
    public boolean isUnset() {
21154
      return this.unset;
21155
    }
21156
 
3430 rajveer 21157
    public void setUnset(boolean unset) {
3061 chandransh 21158
      this.unset = unset;
21159
      setUnsetIsSet(true);
21160
    }
21161
 
21162
    public void unsetUnset() {
21163
      __isset_bit_vector.clear(__UNSET_ISSET_ID);
21164
    }
21165
 
3430 rajveer 21166
    /** Returns true if field unset is set (has been assigned a value) and false otherwise */
3061 chandransh 21167
    public boolean isSetUnset() {
21168
      return __isset_bit_vector.get(__UNSET_ISSET_ID);
21169
    }
21170
 
21171
    public void setUnsetIsSet(boolean value) {
21172
      __isset_bit_vector.set(__UNSET_ISSET_ID, value);
21173
    }
21174
 
21175
    public long getType() {
21176
      return this.type;
21177
    }
21178
 
3430 rajveer 21179
    public void setType(long type) {
3061 chandransh 21180
      this.type = type;
21181
      setTypeIsSet(true);
21182
    }
21183
 
21184
    public void unsetType() {
21185
      __isset_bit_vector.clear(__TYPE_ISSET_ID);
21186
    }
21187
 
3430 rajveer 21188
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3061 chandransh 21189
    public boolean isSetType() {
21190
      return __isset_bit_vector.get(__TYPE_ISSET_ID);
21191
    }
21192
 
21193
    public void setTypeIsSet(boolean value) {
21194
      __isset_bit_vector.set(__TYPE_ISSET_ID, value);
21195
    }
21196
 
21197
    public String getComment() {
21198
      return this.comment;
21199
    }
21200
 
3430 rajveer 21201
    public void setComment(String comment) {
3061 chandransh 21202
      this.comment = comment;
21203
    }
21204
 
21205
    public void unsetComment() {
21206
      this.comment = null;
21207
    }
21208
 
3430 rajveer 21209
    /** Returns true if field comment is set (has been assigned a value) and false otherwise */
3061 chandransh 21210
    public boolean isSetComment() {
21211
      return this.comment != null;
21212
    }
21213
 
21214
    public void setCommentIsSet(boolean value) {
21215
      if (!value) {
21216
        this.comment = null;
21217
      }
21218
    }
21219
 
68 ashish 21220
    public void setFieldValue(_Fields field, Object value) {
21221
      switch (field) {
3061 chandransh 21222
      case ORDER_ID:
68 ashish 21223
        if (value == null) {
3061 chandransh 21224
          unsetOrderId();
68 ashish 21225
        } else {
3061 chandransh 21226
          setOrderId((Long)value);
68 ashish 21227
        }
21228
        break;
21229
 
3061 chandransh 21230
      case UNSET:
21231
        if (value == null) {
21232
          unsetUnset();
21233
        } else {
21234
          setUnset((Boolean)value);
21235
        }
21236
        break;
21237
 
21238
      case TYPE:
21239
        if (value == null) {
21240
          unsetType();
21241
        } else {
21242
          setType((Long)value);
21243
        }
21244
        break;
21245
 
21246
      case COMMENT:
21247
        if (value == null) {
21248
          unsetComment();
21249
        } else {
21250
          setComment((String)value);
21251
        }
21252
        break;
21253
 
68 ashish 21254
      }
21255
    }
21256
 
21257
    public Object getFieldValue(_Fields field) {
21258
      switch (field) {
3061 chandransh 21259
      case ORDER_ID:
3430 rajveer 21260
        return Long.valueOf(getOrderId());
68 ashish 21261
 
3061 chandransh 21262
      case UNSET:
3430 rajveer 21263
        return Boolean.valueOf(isUnset());
3061 chandransh 21264
 
21265
      case TYPE:
3430 rajveer 21266
        return Long.valueOf(getType());
3061 chandransh 21267
 
21268
      case COMMENT:
21269
        return getComment();
21270
 
68 ashish 21271
      }
21272
      throw new IllegalStateException();
21273
    }
21274
 
3430 rajveer 21275
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21276
    public boolean isSet(_Fields field) {
21277
      if (field == null) {
21278
        throw new IllegalArgumentException();
21279
      }
68 ashish 21280
 
21281
      switch (field) {
3061 chandransh 21282
      case ORDER_ID:
21283
        return isSetOrderId();
21284
      case UNSET:
21285
        return isSetUnset();
21286
      case TYPE:
21287
        return isSetType();
21288
      case COMMENT:
21289
        return isSetComment();
68 ashish 21290
      }
21291
      throw new IllegalStateException();
21292
    }
21293
 
21294
    @Override
21295
    public boolean equals(Object that) {
21296
      if (that == null)
21297
        return false;
3061 chandransh 21298
      if (that instanceof setAlert_args)
21299
        return this.equals((setAlert_args)that);
68 ashish 21300
      return false;
21301
    }
21302
 
3061 chandransh 21303
    public boolean equals(setAlert_args that) {
68 ashish 21304
      if (that == null)
21305
        return false;
21306
 
3061 chandransh 21307
      boolean this_present_orderId = true;
21308
      boolean that_present_orderId = true;
21309
      if (this_present_orderId || that_present_orderId) {
21310
        if (!(this_present_orderId && that_present_orderId))
68 ashish 21311
          return false;
3061 chandransh 21312
        if (this.orderId != that.orderId)
68 ashish 21313
          return false;
21314
      }
21315
 
3061 chandransh 21316
      boolean this_present_unset = true;
21317
      boolean that_present_unset = true;
21318
      if (this_present_unset || that_present_unset) {
21319
        if (!(this_present_unset && that_present_unset))
21320
          return false;
21321
        if (this.unset != that.unset)
21322
          return false;
21323
      }
21324
 
21325
      boolean this_present_type = true;
21326
      boolean that_present_type = true;
21327
      if (this_present_type || that_present_type) {
21328
        if (!(this_present_type && that_present_type))
21329
          return false;
21330
        if (this.type != that.type)
21331
          return false;
21332
      }
21333
 
21334
      boolean this_present_comment = true && this.isSetComment();
21335
      boolean that_present_comment = true && that.isSetComment();
21336
      if (this_present_comment || that_present_comment) {
21337
        if (!(this_present_comment && that_present_comment))
21338
          return false;
21339
        if (!this.comment.equals(that.comment))
21340
          return false;
21341
      }
21342
 
68 ashish 21343
      return true;
21344
    }
21345
 
21346
    @Override
21347
    public int hashCode() {
21348
      return 0;
21349
    }
21350
 
3061 chandransh 21351
    public int compareTo(setAlert_args other) {
68 ashish 21352
      if (!getClass().equals(other.getClass())) {
21353
        return getClass().getName().compareTo(other.getClass().getName());
21354
      }
21355
 
21356
      int lastComparison = 0;
3061 chandransh 21357
      setAlert_args typedOther = (setAlert_args)other;
68 ashish 21358
 
3430 rajveer 21359
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
68 ashish 21360
      if (lastComparison != 0) {
21361
        return lastComparison;
21362
      }
3430 rajveer 21363
      if (isSetOrderId()) {
21364
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
21365
        if (lastComparison != 0) {
21366
          return lastComparison;
21367
        }
68 ashish 21368
      }
3430 rajveer 21369
      lastComparison = Boolean.valueOf(isSetUnset()).compareTo(typedOther.isSetUnset());
3061 chandransh 21370
      if (lastComparison != 0) {
21371
        return lastComparison;
21372
      }
3430 rajveer 21373
      if (isSetUnset()) {
21374
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unset, typedOther.unset);
21375
        if (lastComparison != 0) {
21376
          return lastComparison;
21377
        }
3061 chandransh 21378
      }
3430 rajveer 21379
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3061 chandransh 21380
      if (lastComparison != 0) {
21381
        return lastComparison;
21382
      }
3430 rajveer 21383
      if (isSetType()) {
21384
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
21385
        if (lastComparison != 0) {
21386
          return lastComparison;
21387
        }
3061 chandransh 21388
      }
3430 rajveer 21389
      lastComparison = Boolean.valueOf(isSetComment()).compareTo(typedOther.isSetComment());
3061 chandransh 21390
      if (lastComparison != 0) {
21391
        return lastComparison;
21392
      }
3430 rajveer 21393
      if (isSetComment()) {
21394
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment);
21395
        if (lastComparison != 0) {
21396
          return lastComparison;
21397
        }
3061 chandransh 21398
      }
68 ashish 21399
      return 0;
21400
    }
21401
 
3430 rajveer 21402
    public _Fields fieldForId(int fieldId) {
21403
      return _Fields.findByThriftId(fieldId);
21404
    }
21405
 
21406
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21407
      org.apache.thrift.protocol.TField field;
68 ashish 21408
      iprot.readStructBegin();
21409
      while (true)
21410
      {
21411
        field = iprot.readFieldBegin();
3430 rajveer 21412
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 21413
          break;
21414
        }
3430 rajveer 21415
        switch (field.id) {
21416
          case 1: // ORDER_ID
21417
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21418
              this.orderId = iprot.readI64();
21419
              setOrderIdIsSet(true);
21420
            } else { 
21421
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21422
            }
21423
            break;
21424
          case 2: // UNSET
21425
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21426
              this.unset = iprot.readBool();
21427
              setUnsetIsSet(true);
21428
            } else { 
21429
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21430
            }
21431
            break;
21432
          case 3: // TYPE
21433
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21434
              this.type = iprot.readI64();
21435
              setTypeIsSet(true);
21436
            } else { 
21437
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21438
            }
21439
            break;
21440
          case 4: // COMMENT
21441
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21442
              this.comment = iprot.readString();
21443
            } else { 
21444
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21445
            }
21446
            break;
21447
          default:
21448
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 21449
        }
3430 rajveer 21450
        iprot.readFieldEnd();
68 ashish 21451
      }
21452
      iprot.readStructEnd();
21453
      validate();
21454
    }
21455
 
3430 rajveer 21456
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 21457
      validate();
21458
 
21459
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 21460
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
21461
      oprot.writeI64(this.orderId);
68 ashish 21462
      oprot.writeFieldEnd();
3061 chandransh 21463
      oprot.writeFieldBegin(UNSET_FIELD_DESC);
21464
      oprot.writeBool(this.unset);
21465
      oprot.writeFieldEnd();
21466
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
21467
      oprot.writeI64(this.type);
21468
      oprot.writeFieldEnd();
21469
      if (this.comment != null) {
21470
        oprot.writeFieldBegin(COMMENT_FIELD_DESC);
21471
        oprot.writeString(this.comment);
21472
        oprot.writeFieldEnd();
21473
      }
68 ashish 21474
      oprot.writeFieldStop();
21475
      oprot.writeStructEnd();
21476
    }
21477
 
21478
    @Override
21479
    public String toString() {
3061 chandransh 21480
      StringBuilder sb = new StringBuilder("setAlert_args(");
68 ashish 21481
      boolean first = true;
21482
 
3061 chandransh 21483
      sb.append("orderId:");
21484
      sb.append(this.orderId);
68 ashish 21485
      first = false;
3061 chandransh 21486
      if (!first) sb.append(", ");
21487
      sb.append("unset:");
21488
      sb.append(this.unset);
21489
      first = false;
21490
      if (!first) sb.append(", ");
21491
      sb.append("type:");
21492
      sb.append(this.type);
21493
      first = false;
21494
      if (!first) sb.append(", ");
21495
      sb.append("comment:");
21496
      if (this.comment == null) {
21497
        sb.append("null");
21498
      } else {
21499
        sb.append(this.comment);
21500
      }
21501
      first = false;
68 ashish 21502
      sb.append(")");
21503
      return sb.toString();
21504
    }
21505
 
3430 rajveer 21506
    public void validate() throws org.apache.thrift.TException {
68 ashish 21507
      // check for required fields
21508
    }
21509
 
3430 rajveer 21510
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21511
      try {
21512
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21513
      } catch (org.apache.thrift.TException te) {
21514
        throw new java.io.IOException(te);
21515
      }
21516
    }
21517
 
21518
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21519
      try {
21520
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21521
        __isset_bit_vector = new BitSet(1);
21522
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21523
      } catch (org.apache.thrift.TException te) {
21524
        throw new java.io.IOException(te);
21525
      }
21526
    }
21527
 
68 ashish 21528
  }
21529
 
3430 rajveer 21530
  public static class setAlert_result implements org.apache.thrift.TBase<setAlert_result, setAlert_result._Fields>, java.io.Serializable, Cloneable   {
21531
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setAlert_result");
68 ashish 21532
 
21533
 
21534
 
21535
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 21536
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 21537
;
68 ashish 21538
 
21539
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21540
 
21541
      static {
21542
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21543
          byName.put(field.getFieldName(), field);
21544
        }
21545
      }
21546
 
21547
      /**
21548
       * Find the _Fields constant that matches fieldId, or null if its not found.
21549
       */
21550
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21551
        switch(fieldId) {
21552
          default:
21553
            return null;
21554
        }
68 ashish 21555
      }
21556
 
21557
      /**
21558
       * Find the _Fields constant that matches fieldId, throwing an exception
21559
       * if it is not found.
21560
       */
21561
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21562
        _Fields fields = findByThriftId(fieldId);
21563
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21564
        return fields;
21565
      }
21566
 
21567
      /**
21568
       * Find the _Fields constant that matches name, or null if its not found.
21569
       */
21570
      public static _Fields findByName(String name) {
21571
        return byName.get(name);
21572
      }
21573
 
21574
      private final short _thriftId;
21575
      private final String _fieldName;
21576
 
21577
      _Fields(short thriftId, String fieldName) {
21578
        _thriftId = thriftId;
21579
        _fieldName = fieldName;
21580
      }
21581
 
21582
      public short getThriftFieldId() {
21583
        return _thriftId;
21584
      }
21585
 
21586
      public String getFieldName() {
21587
        return _fieldName;
21588
      }
21589
    }
3430 rajveer 21590
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 21591
    static {
3430 rajveer 21592
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21593
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21594
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setAlert_result.class, metaDataMap);
3061 chandransh 21595
    }
21596
 
21597
    public setAlert_result() {
21598
    }
21599
 
21600
    /**
21601
     * Performs a deep copy on <i>other</i>.
21602
     */
21603
    public setAlert_result(setAlert_result other) {
21604
    }
21605
 
21606
    public setAlert_result deepCopy() {
21607
      return new setAlert_result(this);
21608
    }
21609
 
3430 rajveer 21610
    @Override
21611
    public void clear() {
3061 chandransh 21612
    }
21613
 
21614
    public void setFieldValue(_Fields field, Object value) {
21615
      switch (field) {
21616
      }
21617
    }
21618
 
21619
    public Object getFieldValue(_Fields field) {
21620
      switch (field) {
21621
      }
21622
      throw new IllegalStateException();
21623
    }
21624
 
3430 rajveer 21625
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21626
    public boolean isSet(_Fields field) {
21627
      if (field == null) {
21628
        throw new IllegalArgumentException();
21629
      }
3061 chandransh 21630
 
21631
      switch (field) {
21632
      }
21633
      throw new IllegalStateException();
21634
    }
21635
 
21636
    @Override
21637
    public boolean equals(Object that) {
21638
      if (that == null)
21639
        return false;
21640
      if (that instanceof setAlert_result)
21641
        return this.equals((setAlert_result)that);
21642
      return false;
21643
    }
21644
 
21645
    public boolean equals(setAlert_result that) {
21646
      if (that == null)
21647
        return false;
21648
 
21649
      return true;
21650
    }
21651
 
21652
    @Override
21653
    public int hashCode() {
21654
      return 0;
21655
    }
21656
 
21657
    public int compareTo(setAlert_result other) {
21658
      if (!getClass().equals(other.getClass())) {
21659
        return getClass().getName().compareTo(other.getClass().getName());
21660
      }
21661
 
21662
      int lastComparison = 0;
21663
      setAlert_result typedOther = (setAlert_result)other;
21664
 
21665
      return 0;
21666
    }
21667
 
3430 rajveer 21668
    public _Fields fieldForId(int fieldId) {
21669
      return _Fields.findByThriftId(fieldId);
21670
    }
21671
 
21672
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21673
      org.apache.thrift.protocol.TField field;
3061 chandransh 21674
      iprot.readStructBegin();
21675
      while (true)
21676
      {
21677
        field = iprot.readFieldBegin();
3430 rajveer 21678
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 21679
          break;
21680
        }
3430 rajveer 21681
        switch (field.id) {
21682
          default:
21683
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 21684
        }
3430 rajveer 21685
        iprot.readFieldEnd();
3061 chandransh 21686
      }
21687
      iprot.readStructEnd();
21688
      validate();
21689
    }
21690
 
3430 rajveer 21691
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 21692
      oprot.writeStructBegin(STRUCT_DESC);
21693
 
21694
      oprot.writeFieldStop();
21695
      oprot.writeStructEnd();
21696
    }
21697
 
21698
    @Override
21699
    public String toString() {
21700
      StringBuilder sb = new StringBuilder("setAlert_result(");
21701
      boolean first = true;
21702
 
21703
      sb.append(")");
21704
      return sb.toString();
21705
    }
21706
 
3430 rajveer 21707
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 21708
      // check for required fields
21709
    }
21710
 
3430 rajveer 21711
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21712
      try {
21713
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21714
      } catch (org.apache.thrift.TException te) {
21715
        throw new java.io.IOException(te);
21716
      }
21717
    }
21718
 
21719
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21720
      try {
21721
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21722
      } catch (org.apache.thrift.TException te) {
21723
        throw new java.io.IOException(te);
21724
      }
21725
    }
21726
 
3061 chandransh 21727
  }
21728
 
3430 rajveer 21729
  public static class getValidOrderCount_args implements org.apache.thrift.TBase<getValidOrderCount_args, getValidOrderCount_args._Fields>, java.io.Serializable, Cloneable   {
21730
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrderCount_args");
3061 chandransh 21731
 
21732
 
21733
 
21734
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 21735
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 21736
;
21737
 
21738
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21739
 
21740
      static {
21741
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21742
          byName.put(field.getFieldName(), field);
21743
        }
21744
      }
21745
 
21746
      /**
21747
       * Find the _Fields constant that matches fieldId, or null if its not found.
21748
       */
21749
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21750
        switch(fieldId) {
21751
          default:
21752
            return null;
21753
        }
3061 chandransh 21754
      }
21755
 
21756
      /**
21757
       * Find the _Fields constant that matches fieldId, throwing an exception
21758
       * if it is not found.
21759
       */
21760
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21761
        _Fields fields = findByThriftId(fieldId);
21762
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21763
        return fields;
21764
      }
21765
 
21766
      /**
21767
       * Find the _Fields constant that matches name, or null if its not found.
21768
       */
21769
      public static _Fields findByName(String name) {
21770
        return byName.get(name);
21771
      }
21772
 
21773
      private final short _thriftId;
21774
      private final String _fieldName;
21775
 
21776
      _Fields(short thriftId, String fieldName) {
21777
        _thriftId = thriftId;
21778
        _fieldName = fieldName;
21779
      }
21780
 
21781
      public short getThriftFieldId() {
21782
        return _thriftId;
21783
      }
21784
 
21785
      public String getFieldName() {
21786
        return _fieldName;
21787
      }
21788
    }
3430 rajveer 21789
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 21790
    static {
3430 rajveer 21791
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21792
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21793
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrderCount_args.class, metaDataMap);
3061 chandransh 21794
    }
21795
 
21796
    public getValidOrderCount_args() {
21797
    }
21798
 
21799
    /**
21800
     * Performs a deep copy on <i>other</i>.
21801
     */
21802
    public getValidOrderCount_args(getValidOrderCount_args other) {
21803
    }
21804
 
21805
    public getValidOrderCount_args deepCopy() {
21806
      return new getValidOrderCount_args(this);
21807
    }
21808
 
3430 rajveer 21809
    @Override
21810
    public void clear() {
3061 chandransh 21811
    }
21812
 
21813
    public void setFieldValue(_Fields field, Object value) {
21814
      switch (field) {
21815
      }
21816
    }
21817
 
21818
    public Object getFieldValue(_Fields field) {
21819
      switch (field) {
21820
      }
21821
      throw new IllegalStateException();
21822
    }
21823
 
3430 rajveer 21824
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21825
    public boolean isSet(_Fields field) {
21826
      if (field == null) {
21827
        throw new IllegalArgumentException();
21828
      }
3061 chandransh 21829
 
21830
      switch (field) {
21831
      }
21832
      throw new IllegalStateException();
21833
    }
21834
 
21835
    @Override
21836
    public boolean equals(Object that) {
21837
      if (that == null)
21838
        return false;
21839
      if (that instanceof getValidOrderCount_args)
21840
        return this.equals((getValidOrderCount_args)that);
21841
      return false;
21842
    }
21843
 
21844
    public boolean equals(getValidOrderCount_args that) {
21845
      if (that == null)
21846
        return false;
21847
 
21848
      return true;
21849
    }
21850
 
21851
    @Override
21852
    public int hashCode() {
21853
      return 0;
21854
    }
21855
 
21856
    public int compareTo(getValidOrderCount_args other) {
21857
      if (!getClass().equals(other.getClass())) {
21858
        return getClass().getName().compareTo(other.getClass().getName());
21859
      }
21860
 
21861
      int lastComparison = 0;
21862
      getValidOrderCount_args typedOther = (getValidOrderCount_args)other;
21863
 
21864
      return 0;
21865
    }
21866
 
3430 rajveer 21867
    public _Fields fieldForId(int fieldId) {
21868
      return _Fields.findByThriftId(fieldId);
21869
    }
21870
 
21871
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21872
      org.apache.thrift.protocol.TField field;
3061 chandransh 21873
      iprot.readStructBegin();
21874
      while (true)
21875
      {
21876
        field = iprot.readFieldBegin();
3430 rajveer 21877
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 21878
          break;
21879
        }
3430 rajveer 21880
        switch (field.id) {
21881
          default:
21882
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 21883
        }
3430 rajveer 21884
        iprot.readFieldEnd();
3061 chandransh 21885
      }
21886
      iprot.readStructEnd();
21887
      validate();
21888
    }
21889
 
3430 rajveer 21890
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 21891
      validate();
21892
 
21893
      oprot.writeStructBegin(STRUCT_DESC);
21894
      oprot.writeFieldStop();
21895
      oprot.writeStructEnd();
21896
    }
21897
 
21898
    @Override
21899
    public String toString() {
21900
      StringBuilder sb = new StringBuilder("getValidOrderCount_args(");
21901
      boolean first = true;
21902
 
21903
      sb.append(")");
21904
      return sb.toString();
21905
    }
21906
 
3430 rajveer 21907
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 21908
      // check for required fields
21909
    }
21910
 
3430 rajveer 21911
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21912
      try {
21913
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21914
      } catch (org.apache.thrift.TException te) {
21915
        throw new java.io.IOException(te);
21916
      }
21917
    }
21918
 
21919
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21920
      try {
21921
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21922
      } catch (org.apache.thrift.TException te) {
21923
        throw new java.io.IOException(te);
21924
      }
21925
    }
21926
 
3061 chandransh 21927
  }
21928
 
3430 rajveer 21929
  public static class getValidOrderCount_result implements org.apache.thrift.TBase<getValidOrderCount_result, getValidOrderCount_result._Fields>, java.io.Serializable, Cloneable   {
21930
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrderCount_result");
3061 chandransh 21931
 
3430 rajveer 21932
    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 21933
 
3430 rajveer 21934
    private long success; // required
3061 chandransh 21935
 
21936
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 21937
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 21938
      SUCCESS((short)0, "success");
21939
 
21940
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21941
 
21942
      static {
21943
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21944
          byName.put(field.getFieldName(), field);
21945
        }
21946
      }
21947
 
21948
      /**
21949
       * Find the _Fields constant that matches fieldId, or null if its not found.
21950
       */
21951
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21952
        switch(fieldId) {
21953
          case 0: // SUCCESS
21954
            return SUCCESS;
21955
          default:
21956
            return null;
21957
        }
3061 chandransh 21958
      }
21959
 
21960
      /**
21961
       * Find the _Fields constant that matches fieldId, throwing an exception
21962
       * if it is not found.
21963
       */
21964
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21965
        _Fields fields = findByThriftId(fieldId);
21966
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21967
        return fields;
21968
      }
21969
 
21970
      /**
21971
       * Find the _Fields constant that matches name, or null if its not found.
21972
       */
21973
      public static _Fields findByName(String name) {
21974
        return byName.get(name);
21975
      }
21976
 
21977
      private final short _thriftId;
21978
      private final String _fieldName;
21979
 
21980
      _Fields(short thriftId, String fieldName) {
21981
        _thriftId = thriftId;
21982
        _fieldName = fieldName;
21983
      }
21984
 
21985
      public short getThriftFieldId() {
21986
        return _thriftId;
21987
      }
21988
 
21989
      public String getFieldName() {
21990
        return _fieldName;
21991
      }
21992
    }
21993
 
68 ashish 21994
    // isset id assignments
3061 chandransh 21995
    private static final int __SUCCESS_ISSET_ID = 0;
21996
    private BitSet __isset_bit_vector = new BitSet(1);
68 ashish 21997
 
3430 rajveer 21998
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 21999
    static {
3430 rajveer 22000
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22001
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22002
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22003
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22004
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrderCount_result.class, metaDataMap);
68 ashish 22005
    }
22006
 
3061 chandransh 22007
    public getValidOrderCount_result() {
68 ashish 22008
    }
22009
 
3061 chandransh 22010
    public getValidOrderCount_result(
22011
      long success)
68 ashish 22012
    {
22013
      this();
22014
      this.success = success;
3061 chandransh 22015
      setSuccessIsSet(true);
68 ashish 22016
    }
22017
 
22018
    /**
22019
     * Performs a deep copy on <i>other</i>.
22020
     */
3061 chandransh 22021
    public getValidOrderCount_result(getValidOrderCount_result other) {
22022
      __isset_bit_vector.clear();
22023
      __isset_bit_vector.or(other.__isset_bit_vector);
22024
      this.success = other.success;
68 ashish 22025
    }
22026
 
3061 chandransh 22027
    public getValidOrderCount_result deepCopy() {
22028
      return new getValidOrderCount_result(this);
68 ashish 22029
    }
22030
 
3430 rajveer 22031
    @Override
22032
    public void clear() {
22033
      setSuccessIsSet(false);
22034
      this.success = 0;
68 ashish 22035
    }
22036
 
3061 chandransh 22037
    public long getSuccess() {
68 ashish 22038
      return this.success;
22039
    }
22040
 
3430 rajveer 22041
    public void setSuccess(long success) {
68 ashish 22042
      this.success = success;
3061 chandransh 22043
      setSuccessIsSet(true);
68 ashish 22044
    }
22045
 
22046
    public void unsetSuccess() {
3061 chandransh 22047
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
68 ashish 22048
    }
22049
 
3430 rajveer 22050
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 22051
    public boolean isSetSuccess() {
3061 chandransh 22052
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
68 ashish 22053
    }
22054
 
22055
    public void setSuccessIsSet(boolean value) {
3061 chandransh 22056
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
68 ashish 22057
    }
22058
 
22059
    public void setFieldValue(_Fields field, Object value) {
22060
      switch (field) {
22061
      case SUCCESS:
22062
        if (value == null) {
22063
          unsetSuccess();
22064
        } else {
3061 chandransh 22065
          setSuccess((Long)value);
68 ashish 22066
        }
22067
        break;
22068
 
22069
      }
22070
    }
22071
 
22072
    public Object getFieldValue(_Fields field) {
22073
      switch (field) {
22074
      case SUCCESS:
3430 rajveer 22075
        return Long.valueOf(getSuccess());
68 ashish 22076
 
22077
      }
22078
      throw new IllegalStateException();
22079
    }
22080
 
3430 rajveer 22081
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22082
    public boolean isSet(_Fields field) {
22083
      if (field == null) {
22084
        throw new IllegalArgumentException();
22085
      }
68 ashish 22086
 
22087
      switch (field) {
22088
      case SUCCESS:
22089
        return isSetSuccess();
22090
      }
22091
      throw new IllegalStateException();
22092
    }
22093
 
22094
    @Override
22095
    public boolean equals(Object that) {
22096
      if (that == null)
22097
        return false;
3061 chandransh 22098
      if (that instanceof getValidOrderCount_result)
22099
        return this.equals((getValidOrderCount_result)that);
68 ashish 22100
      return false;
22101
    }
22102
 
3061 chandransh 22103
    public boolean equals(getValidOrderCount_result that) {
68 ashish 22104
      if (that == null)
22105
        return false;
22106
 
3061 chandransh 22107
      boolean this_present_success = true;
22108
      boolean that_present_success = true;
68 ashish 22109
      if (this_present_success || that_present_success) {
22110
        if (!(this_present_success && that_present_success))
22111
          return false;
3061 chandransh 22112
        if (this.success != that.success)
68 ashish 22113
          return false;
22114
      }
22115
 
22116
      return true;
22117
    }
22118
 
22119
    @Override
22120
    public int hashCode() {
22121
      return 0;
22122
    }
22123
 
3061 chandransh 22124
    public int compareTo(getValidOrderCount_result other) {
68 ashish 22125
      if (!getClass().equals(other.getClass())) {
22126
        return getClass().getName().compareTo(other.getClass().getName());
22127
      }
22128
 
22129
      int lastComparison = 0;
3061 chandransh 22130
      getValidOrderCount_result typedOther = (getValidOrderCount_result)other;
68 ashish 22131
 
3430 rajveer 22132
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 22133
      if (lastComparison != 0) {
22134
        return lastComparison;
22135
      }
3430 rajveer 22136
      if (isSetSuccess()) {
22137
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22138
        if (lastComparison != 0) {
22139
          return lastComparison;
22140
        }
68 ashish 22141
      }
22142
      return 0;
22143
    }
22144
 
3430 rajveer 22145
    public _Fields fieldForId(int fieldId) {
22146
      return _Fields.findByThriftId(fieldId);
22147
    }
22148
 
22149
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22150
      org.apache.thrift.protocol.TField field;
68 ashish 22151
      iprot.readStructBegin();
22152
      while (true)
22153
      {
22154
        field = iprot.readFieldBegin();
3430 rajveer 22155
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 22156
          break;
22157
        }
3430 rajveer 22158
        switch (field.id) {
22159
          case 0: // SUCCESS
22160
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22161
              this.success = iprot.readI64();
22162
              setSuccessIsSet(true);
22163
            } else { 
22164
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22165
            }
22166
            break;
22167
          default:
22168
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 22169
        }
3430 rajveer 22170
        iprot.readFieldEnd();
68 ashish 22171
      }
22172
      iprot.readStructEnd();
22173
      validate();
22174
    }
22175
 
3430 rajveer 22176
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 22177
      oprot.writeStructBegin(STRUCT_DESC);
22178
 
22179
      if (this.isSetSuccess()) {
22180
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 22181
        oprot.writeI64(this.success);
68 ashish 22182
        oprot.writeFieldEnd();
22183
      }
22184
      oprot.writeFieldStop();
22185
      oprot.writeStructEnd();
22186
    }
22187
 
22188
    @Override
22189
    public String toString() {
3061 chandransh 22190
      StringBuilder sb = new StringBuilder("getValidOrderCount_result(");
68 ashish 22191
      boolean first = true;
22192
 
22193
      sb.append("success:");
3061 chandransh 22194
      sb.append(this.success);
68 ashish 22195
      first = false;
3061 chandransh 22196
      sb.append(")");
22197
      return sb.toString();
22198
    }
22199
 
3430 rajveer 22200
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 22201
      // check for required fields
22202
    }
22203
 
3430 rajveer 22204
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22205
      try {
22206
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22207
      } catch (org.apache.thrift.TException te) {
22208
        throw new java.io.IOException(te);
22209
      }
22210
    }
22211
 
22212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22213
      try {
22214
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22215
      } catch (org.apache.thrift.TException te) {
22216
        throw new java.io.IOException(te);
22217
      }
22218
    }
22219
 
3061 chandransh 22220
  }
22221
 
3430 rajveer 22222
  public static class getNoOfCustomersWithSuccessfulTransaction_args implements org.apache.thrift.TBase<getNoOfCustomersWithSuccessfulTransaction_args, getNoOfCustomersWithSuccessfulTransaction_args._Fields>, java.io.Serializable, Cloneable   {
22223
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNoOfCustomersWithSuccessfulTransaction_args");
3061 chandransh 22224
 
22225
 
22226
 
22227
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22228
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 22229
;
22230
 
22231
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22232
 
22233
      static {
22234
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22235
          byName.put(field.getFieldName(), field);
22236
        }
68 ashish 22237
      }
3061 chandransh 22238
 
22239
      /**
22240
       * Find the _Fields constant that matches fieldId, or null if its not found.
22241
       */
22242
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22243
        switch(fieldId) {
22244
          default:
22245
            return null;
22246
        }
3061 chandransh 22247
      }
22248
 
22249
      /**
22250
       * Find the _Fields constant that matches fieldId, throwing an exception
22251
       * if it is not found.
22252
       */
22253
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22254
        _Fields fields = findByThriftId(fieldId);
22255
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22256
        return fields;
22257
      }
22258
 
22259
      /**
22260
       * Find the _Fields constant that matches name, or null if its not found.
22261
       */
22262
      public static _Fields findByName(String name) {
22263
        return byName.get(name);
22264
      }
22265
 
22266
      private final short _thriftId;
22267
      private final String _fieldName;
22268
 
22269
      _Fields(short thriftId, String fieldName) {
22270
        _thriftId = thriftId;
22271
        _fieldName = fieldName;
22272
      }
22273
 
22274
      public short getThriftFieldId() {
22275
        return _thriftId;
22276
      }
22277
 
22278
      public String getFieldName() {
22279
        return _fieldName;
22280
      }
22281
    }
3430 rajveer 22282
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 22283
    static {
3430 rajveer 22284
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22285
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22286
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_args.class, metaDataMap);
3061 chandransh 22287
    }
22288
 
22289
    public getNoOfCustomersWithSuccessfulTransaction_args() {
22290
    }
22291
 
22292
    /**
22293
     * Performs a deep copy on <i>other</i>.
22294
     */
22295
    public getNoOfCustomersWithSuccessfulTransaction_args(getNoOfCustomersWithSuccessfulTransaction_args other) {
22296
    }
22297
 
22298
    public getNoOfCustomersWithSuccessfulTransaction_args deepCopy() {
22299
      return new getNoOfCustomersWithSuccessfulTransaction_args(this);
22300
    }
22301
 
3430 rajveer 22302
    @Override
22303
    public void clear() {
3061 chandransh 22304
    }
22305
 
22306
    public void setFieldValue(_Fields field, Object value) {
22307
      switch (field) {
22308
      }
22309
    }
22310
 
22311
    public Object getFieldValue(_Fields field) {
22312
      switch (field) {
22313
      }
22314
      throw new IllegalStateException();
22315
    }
22316
 
3430 rajveer 22317
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22318
    public boolean isSet(_Fields field) {
22319
      if (field == null) {
22320
        throw new IllegalArgumentException();
22321
      }
3061 chandransh 22322
 
22323
      switch (field) {
22324
      }
22325
      throw new IllegalStateException();
22326
    }
22327
 
22328
    @Override
22329
    public boolean equals(Object that) {
22330
      if (that == null)
22331
        return false;
22332
      if (that instanceof getNoOfCustomersWithSuccessfulTransaction_args)
22333
        return this.equals((getNoOfCustomersWithSuccessfulTransaction_args)that);
22334
      return false;
22335
    }
22336
 
22337
    public boolean equals(getNoOfCustomersWithSuccessfulTransaction_args that) {
22338
      if (that == null)
22339
        return false;
22340
 
22341
      return true;
22342
    }
22343
 
22344
    @Override
22345
    public int hashCode() {
22346
      return 0;
22347
    }
22348
 
22349
    public int compareTo(getNoOfCustomersWithSuccessfulTransaction_args other) {
22350
      if (!getClass().equals(other.getClass())) {
22351
        return getClass().getName().compareTo(other.getClass().getName());
22352
      }
22353
 
22354
      int lastComparison = 0;
22355
      getNoOfCustomersWithSuccessfulTransaction_args typedOther = (getNoOfCustomersWithSuccessfulTransaction_args)other;
22356
 
22357
      return 0;
22358
    }
22359
 
3430 rajveer 22360
    public _Fields fieldForId(int fieldId) {
22361
      return _Fields.findByThriftId(fieldId);
22362
    }
22363
 
22364
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22365
      org.apache.thrift.protocol.TField field;
3061 chandransh 22366
      iprot.readStructBegin();
22367
      while (true)
22368
      {
22369
        field = iprot.readFieldBegin();
3430 rajveer 22370
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 22371
          break;
22372
        }
3430 rajveer 22373
        switch (field.id) {
22374
          default:
22375
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 22376
        }
3430 rajveer 22377
        iprot.readFieldEnd();
3061 chandransh 22378
      }
22379
      iprot.readStructEnd();
22380
      validate();
22381
    }
22382
 
3430 rajveer 22383
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 22384
      validate();
22385
 
22386
      oprot.writeStructBegin(STRUCT_DESC);
22387
      oprot.writeFieldStop();
22388
      oprot.writeStructEnd();
22389
    }
22390
 
22391
    @Override
22392
    public String toString() {
22393
      StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_args(");
22394
      boolean first = true;
22395
 
68 ashish 22396
      sb.append(")");
22397
      return sb.toString();
22398
    }
22399
 
3430 rajveer 22400
    public void validate() throws org.apache.thrift.TException {
68 ashish 22401
      // check for required fields
22402
    }
22403
 
3430 rajveer 22404
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22405
      try {
22406
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22407
      } catch (org.apache.thrift.TException te) {
22408
        throw new java.io.IOException(te);
22409
      }
22410
    }
22411
 
22412
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22413
      try {
22414
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22415
      } catch (org.apache.thrift.TException te) {
22416
        throw new java.io.IOException(te);
22417
      }
22418
    }
22419
 
68 ashish 22420
  }
22421
 
3430 rajveer 22422
  public static class getNoOfCustomersWithSuccessfulTransaction_result implements org.apache.thrift.TBase<getNoOfCustomersWithSuccessfulTransaction_result, getNoOfCustomersWithSuccessfulTransaction_result._Fields>, java.io.Serializable, Cloneable   {
22423
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNoOfCustomersWithSuccessfulTransaction_result");
68 ashish 22424
 
3430 rajveer 22425
    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 22426
 
3430 rajveer 22427
    private long success; // required
68 ashish 22428
 
22429
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22430
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 22431
      SUCCESS((short)0, "success");
68 ashish 22432
 
22433
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22434
 
22435
      static {
22436
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22437
          byName.put(field.getFieldName(), field);
22438
        }
22439
      }
22440
 
22441
      /**
22442
       * Find the _Fields constant that matches fieldId, or null if its not found.
22443
       */
22444
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22445
        switch(fieldId) {
22446
          case 0: // SUCCESS
22447
            return SUCCESS;
22448
          default:
22449
            return null;
22450
        }
68 ashish 22451
      }
22452
 
22453
      /**
22454
       * Find the _Fields constant that matches fieldId, throwing an exception
22455
       * if it is not found.
22456
       */
22457
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22458
        _Fields fields = findByThriftId(fieldId);
22459
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22460
        return fields;
22461
      }
22462
 
22463
      /**
22464
       * Find the _Fields constant that matches name, or null if its not found.
22465
       */
22466
      public static _Fields findByName(String name) {
22467
        return byName.get(name);
22468
      }
22469
 
22470
      private final short _thriftId;
22471
      private final String _fieldName;
22472
 
22473
      _Fields(short thriftId, String fieldName) {
22474
        _thriftId = thriftId;
22475
        _fieldName = fieldName;
22476
      }
22477
 
22478
      public short getThriftFieldId() {
22479
        return _thriftId;
22480
      }
22481
 
22482
      public String getFieldName() {
22483
        return _fieldName;
22484
      }
22485
    }
22486
 
22487
    // isset id assignments
3061 chandransh 22488
    private static final int __SUCCESS_ISSET_ID = 0;
68 ashish 22489
    private BitSet __isset_bit_vector = new BitSet(1);
22490
 
3430 rajveer 22491
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 22492
    static {
3430 rajveer 22493
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22494
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22495
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22496
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22497
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_result.class, metaDataMap);
68 ashish 22498
    }
22499
 
3061 chandransh 22500
    public getNoOfCustomersWithSuccessfulTransaction_result() {
68 ashish 22501
    }
22502
 
3061 chandransh 22503
    public getNoOfCustomersWithSuccessfulTransaction_result(
22504
      long success)
68 ashish 22505
    {
22506
      this();
3061 chandransh 22507
      this.success = success;
22508
      setSuccessIsSet(true);
68 ashish 22509
    }
22510
 
22511
    /**
22512
     * Performs a deep copy on <i>other</i>.
22513
     */
3061 chandransh 22514
    public getNoOfCustomersWithSuccessfulTransaction_result(getNoOfCustomersWithSuccessfulTransaction_result other) {
68 ashish 22515
      __isset_bit_vector.clear();
22516
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 22517
      this.success = other.success;
68 ashish 22518
    }
22519
 
3061 chandransh 22520
    public getNoOfCustomersWithSuccessfulTransaction_result deepCopy() {
22521
      return new getNoOfCustomersWithSuccessfulTransaction_result(this);
68 ashish 22522
    }
22523
 
3430 rajveer 22524
    @Override
22525
    public void clear() {
22526
      setSuccessIsSet(false);
22527
      this.success = 0;
68 ashish 22528
    }
22529
 
3061 chandransh 22530
    public long getSuccess() {
22531
      return this.success;
68 ashish 22532
    }
22533
 
3430 rajveer 22534
    public void setSuccess(long success) {
3061 chandransh 22535
      this.success = success;
22536
      setSuccessIsSet(true);
68 ashish 22537
    }
22538
 
3061 chandransh 22539
    public void unsetSuccess() {
22540
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
68 ashish 22541
    }
22542
 
3430 rajveer 22543
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 22544
    public boolean isSetSuccess() {
22545
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
68 ashish 22546
    }
22547
 
3061 chandransh 22548
    public void setSuccessIsSet(boolean value) {
22549
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
68 ashish 22550
    }
22551
 
22552
    public void setFieldValue(_Fields field, Object value) {
22553
      switch (field) {
3061 chandransh 22554
      case SUCCESS:
68 ashish 22555
        if (value == null) {
3061 chandransh 22556
          unsetSuccess();
68 ashish 22557
        } else {
3061 chandransh 22558
          setSuccess((Long)value);
68 ashish 22559
        }
22560
        break;
22561
 
22562
      }
22563
    }
22564
 
22565
    public Object getFieldValue(_Fields field) {
22566
      switch (field) {
3061 chandransh 22567
      case SUCCESS:
3430 rajveer 22568
        return Long.valueOf(getSuccess());
68 ashish 22569
 
22570
      }
22571
      throw new IllegalStateException();
22572
    }
22573
 
3430 rajveer 22574
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22575
    public boolean isSet(_Fields field) {
22576
      if (field == null) {
22577
        throw new IllegalArgumentException();
22578
      }
68 ashish 22579
 
22580
      switch (field) {
3061 chandransh 22581
      case SUCCESS:
22582
        return isSetSuccess();
68 ashish 22583
      }
22584
      throw new IllegalStateException();
22585
    }
22586
 
22587
    @Override
22588
    public boolean equals(Object that) {
22589
      if (that == null)
22590
        return false;
3061 chandransh 22591
      if (that instanceof getNoOfCustomersWithSuccessfulTransaction_result)
22592
        return this.equals((getNoOfCustomersWithSuccessfulTransaction_result)that);
68 ashish 22593
      return false;
22594
    }
22595
 
3061 chandransh 22596
    public boolean equals(getNoOfCustomersWithSuccessfulTransaction_result that) {
68 ashish 22597
      if (that == null)
22598
        return false;
22599
 
3061 chandransh 22600
      boolean this_present_success = true;
22601
      boolean that_present_success = true;
22602
      if (this_present_success || that_present_success) {
22603
        if (!(this_present_success && that_present_success))
68 ashish 22604
          return false;
3061 chandransh 22605
        if (this.success != that.success)
68 ashish 22606
          return false;
22607
      }
22608
 
22609
      return true;
22610
    }
22611
 
22612
    @Override
22613
    public int hashCode() {
22614
      return 0;
22615
    }
22616
 
3061 chandransh 22617
    public int compareTo(getNoOfCustomersWithSuccessfulTransaction_result other) {
68 ashish 22618
      if (!getClass().equals(other.getClass())) {
22619
        return getClass().getName().compareTo(other.getClass().getName());
22620
      }
22621
 
22622
      int lastComparison = 0;
3061 chandransh 22623
      getNoOfCustomersWithSuccessfulTransaction_result typedOther = (getNoOfCustomersWithSuccessfulTransaction_result)other;
68 ashish 22624
 
3430 rajveer 22625
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 22626
      if (lastComparison != 0) {
22627
        return lastComparison;
22628
      }
3430 rajveer 22629
      if (isSetSuccess()) {
22630
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22631
        if (lastComparison != 0) {
22632
          return lastComparison;
22633
        }
68 ashish 22634
      }
22635
      return 0;
22636
    }
22637
 
3430 rajveer 22638
    public _Fields fieldForId(int fieldId) {
22639
      return _Fields.findByThriftId(fieldId);
22640
    }
22641
 
22642
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22643
      org.apache.thrift.protocol.TField field;
68 ashish 22644
      iprot.readStructBegin();
22645
      while (true)
22646
      {
22647
        field = iprot.readFieldBegin();
3430 rajveer 22648
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 22649
          break;
22650
        }
3430 rajveer 22651
        switch (field.id) {
22652
          case 0: // SUCCESS
22653
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22654
              this.success = iprot.readI64();
22655
              setSuccessIsSet(true);
22656
            } else { 
22657
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22658
            }
22659
            break;
22660
          default:
22661
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 22662
        }
3430 rajveer 22663
        iprot.readFieldEnd();
68 ashish 22664
      }
22665
      iprot.readStructEnd();
22666
      validate();
22667
    }
22668
 
3430 rajveer 22669
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 22670
      oprot.writeStructBegin(STRUCT_DESC);
22671
 
22672
      if (this.isSetSuccess()) {
22673
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22674
        oprot.writeI64(this.success);
22675
        oprot.writeFieldEnd();
22676
      }
22677
      oprot.writeFieldStop();
22678
      oprot.writeStructEnd();
22679
    }
22680
 
22681
    @Override
22682
    public String toString() {
22683
      StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_result(");
22684
      boolean first = true;
22685
 
22686
      sb.append("success:");
22687
      sb.append(this.success);
22688
      first = false;
22689
      sb.append(")");
22690
      return sb.toString();
22691
    }
22692
 
3430 rajveer 22693
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 22694
      // check for required fields
22695
    }
22696
 
3430 rajveer 22697
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22698
      try {
22699
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22700
      } catch (org.apache.thrift.TException te) {
22701
        throw new java.io.IOException(te);
22702
      }
22703
    }
22704
 
22705
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22706
      try {
22707
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22708
      } catch (org.apache.thrift.TException te) {
22709
        throw new java.io.IOException(te);
22710
      }
22711
    }
22712
 
3061 chandransh 22713
  }
22714
 
3430 rajveer 22715
  public static class getValidOrdersAmountRange_args implements org.apache.thrift.TBase<getValidOrdersAmountRange_args, getValidOrdersAmountRange_args._Fields>, java.io.Serializable, Cloneable   {
22716
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrdersAmountRange_args");
3061 chandransh 22717
 
22718
 
22719
 
22720
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22721
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 22722
;
22723
 
22724
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22725
 
22726
      static {
22727
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22728
          byName.put(field.getFieldName(), field);
22729
        }
22730
      }
22731
 
22732
      /**
22733
       * Find the _Fields constant that matches fieldId, or null if its not found.
22734
       */
22735
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22736
        switch(fieldId) {
22737
          default:
22738
            return null;
22739
        }
3061 chandransh 22740
      }
22741
 
22742
      /**
22743
       * Find the _Fields constant that matches fieldId, throwing an exception
22744
       * if it is not found.
22745
       */
22746
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22747
        _Fields fields = findByThriftId(fieldId);
22748
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22749
        return fields;
22750
      }
22751
 
22752
      /**
22753
       * Find the _Fields constant that matches name, or null if its not found.
22754
       */
22755
      public static _Fields findByName(String name) {
22756
        return byName.get(name);
22757
      }
22758
 
22759
      private final short _thriftId;
22760
      private final String _fieldName;
22761
 
22762
      _Fields(short thriftId, String fieldName) {
22763
        _thriftId = thriftId;
22764
        _fieldName = fieldName;
22765
      }
22766
 
22767
      public short getThriftFieldId() {
22768
        return _thriftId;
22769
      }
22770
 
22771
      public String getFieldName() {
22772
        return _fieldName;
22773
      }
22774
    }
3430 rajveer 22775
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 22776
    static {
3430 rajveer 22777
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22778
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22779
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrdersAmountRange_args.class, metaDataMap);
3061 chandransh 22780
    }
22781
 
22782
    public getValidOrdersAmountRange_args() {
22783
    }
22784
 
22785
    /**
22786
     * Performs a deep copy on <i>other</i>.
22787
     */
22788
    public getValidOrdersAmountRange_args(getValidOrdersAmountRange_args other) {
22789
    }
22790
 
22791
    public getValidOrdersAmountRange_args deepCopy() {
22792
      return new getValidOrdersAmountRange_args(this);
22793
    }
22794
 
3430 rajveer 22795
    @Override
22796
    public void clear() {
3061 chandransh 22797
    }
22798
 
22799
    public void setFieldValue(_Fields field, Object value) {
22800
      switch (field) {
22801
      }
22802
    }
22803
 
22804
    public Object getFieldValue(_Fields field) {
22805
      switch (field) {
22806
      }
22807
      throw new IllegalStateException();
22808
    }
22809
 
3430 rajveer 22810
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22811
    public boolean isSet(_Fields field) {
22812
      if (field == null) {
22813
        throw new IllegalArgumentException();
22814
      }
3061 chandransh 22815
 
22816
      switch (field) {
22817
      }
22818
      throw new IllegalStateException();
22819
    }
22820
 
22821
    @Override
22822
    public boolean equals(Object that) {
22823
      if (that == null)
22824
        return false;
22825
      if (that instanceof getValidOrdersAmountRange_args)
22826
        return this.equals((getValidOrdersAmountRange_args)that);
22827
      return false;
22828
    }
22829
 
22830
    public boolean equals(getValidOrdersAmountRange_args that) {
22831
      if (that == null)
22832
        return false;
22833
 
22834
      return true;
22835
    }
22836
 
22837
    @Override
22838
    public int hashCode() {
22839
      return 0;
22840
    }
22841
 
22842
    public int compareTo(getValidOrdersAmountRange_args other) {
22843
      if (!getClass().equals(other.getClass())) {
22844
        return getClass().getName().compareTo(other.getClass().getName());
22845
      }
22846
 
22847
      int lastComparison = 0;
22848
      getValidOrdersAmountRange_args typedOther = (getValidOrdersAmountRange_args)other;
22849
 
22850
      return 0;
22851
    }
22852
 
3430 rajveer 22853
    public _Fields fieldForId(int fieldId) {
22854
      return _Fields.findByThriftId(fieldId);
22855
    }
22856
 
22857
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22858
      org.apache.thrift.protocol.TField field;
3061 chandransh 22859
      iprot.readStructBegin();
22860
      while (true)
22861
      {
22862
        field = iprot.readFieldBegin();
3430 rajveer 22863
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 22864
          break;
22865
        }
3430 rajveer 22866
        switch (field.id) {
22867
          default:
22868
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 22869
        }
3430 rajveer 22870
        iprot.readFieldEnd();
3061 chandransh 22871
      }
22872
      iprot.readStructEnd();
68 ashish 22873
      validate();
3061 chandransh 22874
    }
68 ashish 22875
 
3430 rajveer 22876
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 22877
      validate();
22878
 
68 ashish 22879
      oprot.writeStructBegin(STRUCT_DESC);
22880
      oprot.writeFieldStop();
22881
      oprot.writeStructEnd();
22882
    }
22883
 
22884
    @Override
22885
    public String toString() {
3061 chandransh 22886
      StringBuilder sb = new StringBuilder("getValidOrdersAmountRange_args(");
68 ashish 22887
      boolean first = true;
22888
 
22889
      sb.append(")");
22890
      return sb.toString();
22891
    }
22892
 
3430 rajveer 22893
    public void validate() throws org.apache.thrift.TException {
68 ashish 22894
      // check for required fields
22895
    }
22896
 
3430 rajveer 22897
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22898
      try {
22899
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22900
      } catch (org.apache.thrift.TException te) {
22901
        throw new java.io.IOException(te);
22902
      }
22903
    }
22904
 
22905
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22906
      try {
22907
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22908
      } catch (org.apache.thrift.TException te) {
22909
        throw new java.io.IOException(te);
22910
      }
22911
    }
22912
 
68 ashish 22913
  }
22914
 
3430 rajveer 22915
  public static class getValidOrdersAmountRange_result implements org.apache.thrift.TBase<getValidOrdersAmountRange_result, getValidOrdersAmountRange_result._Fields>, java.io.Serializable, Cloneable   {
22916
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrdersAmountRange_result");
68 ashish 22917
 
3430 rajveer 22918
    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 22919
 
3430 rajveer 22920
    private List<Double> success; // required
68 ashish 22921
 
22922
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22923
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 22924
      SUCCESS((short)0, "success");
68 ashish 22925
 
22926
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22927
 
22928
      static {
22929
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22930
          byName.put(field.getFieldName(), field);
22931
        }
22932
      }
22933
 
22934
      /**
22935
       * Find the _Fields constant that matches fieldId, or null if its not found.
22936
       */
22937
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22938
        switch(fieldId) {
22939
          case 0: // SUCCESS
22940
            return SUCCESS;
22941
          default:
22942
            return null;
22943
        }
68 ashish 22944
      }
22945
 
22946
      /**
22947
       * Find the _Fields constant that matches fieldId, throwing an exception
22948
       * if it is not found.
22949
       */
22950
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22951
        _Fields fields = findByThriftId(fieldId);
22952
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22953
        return fields;
22954
      }
22955
 
22956
      /**
22957
       * Find the _Fields constant that matches name, or null if its not found.
22958
       */
22959
      public static _Fields findByName(String name) {
22960
        return byName.get(name);
22961
      }
22962
 
22963
      private final short _thriftId;
22964
      private final String _fieldName;
22965
 
22966
      _Fields(short thriftId, String fieldName) {
22967
        _thriftId = thriftId;
22968
        _fieldName = fieldName;
22969
      }
22970
 
22971
      public short getThriftFieldId() {
22972
        return _thriftId;
22973
      }
22974
 
22975
      public String getFieldName() {
22976
        return _fieldName;
22977
      }
22978
    }
22979
 
22980
    // isset id assignments
22981
 
3430 rajveer 22982
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 22983
    static {
3430 rajveer 22984
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22985
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22986
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22987
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
22988
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22989
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrdersAmountRange_result.class, metaDataMap);
68 ashish 22990
    }
22991
 
3061 chandransh 22992
    public getValidOrdersAmountRange_result() {
68 ashish 22993
    }
22994
 
3061 chandransh 22995
    public getValidOrdersAmountRange_result(
22996
      List<Double> success)
68 ashish 22997
    {
22998
      this();
22999
      this.success = success;
23000
    }
23001
 
23002
    /**
23003
     * Performs a deep copy on <i>other</i>.
23004
     */
3061 chandransh 23005
    public getValidOrdersAmountRange_result(getValidOrdersAmountRange_result other) {
483 rajveer 23006
      if (other.isSetSuccess()) {
3061 chandransh 23007
        List<Double> __this__success = new ArrayList<Double>();
23008
        for (Double other_element : other.success) {
23009
          __this__success.add(other_element);
483 rajveer 23010
        }
23011
        this.success = __this__success;
23012
      }
68 ashish 23013
    }
23014
 
3061 chandransh 23015
    public getValidOrdersAmountRange_result deepCopy() {
23016
      return new getValidOrdersAmountRange_result(this);
68 ashish 23017
    }
23018
 
3430 rajveer 23019
    @Override
23020
    public void clear() {
23021
      this.success = null;
68 ashish 23022
    }
23023
 
483 rajveer 23024
    public int getSuccessSize() {
23025
      return (this.success == null) ? 0 : this.success.size();
23026
    }
23027
 
3061 chandransh 23028
    public java.util.Iterator<Double> getSuccessIterator() {
483 rajveer 23029
      return (this.success == null) ? null : this.success.iterator();
23030
    }
23031
 
3061 chandransh 23032
    public void addToSuccess(double elem) {
483 rajveer 23033
      if (this.success == null) {
3061 chandransh 23034
        this.success = new ArrayList<Double>();
483 rajveer 23035
      }
23036
      this.success.add(elem);
23037
    }
23038
 
3061 chandransh 23039
    public List<Double> getSuccess() {
68 ashish 23040
      return this.success;
23041
    }
23042
 
3430 rajveer 23043
    public void setSuccess(List<Double> success) {
68 ashish 23044
      this.success = success;
23045
    }
23046
 
23047
    public void unsetSuccess() {
483 rajveer 23048
      this.success = null;
68 ashish 23049
    }
23050
 
3430 rajveer 23051
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
68 ashish 23052
    public boolean isSetSuccess() {
483 rajveer 23053
      return this.success != null;
68 ashish 23054
    }
23055
 
23056
    public void setSuccessIsSet(boolean value) {
483 rajveer 23057
      if (!value) {
23058
        this.success = null;
23059
      }
68 ashish 23060
    }
23061
 
23062
    public void setFieldValue(_Fields field, Object value) {
23063
      switch (field) {
23064
      case SUCCESS:
23065
        if (value == null) {
23066
          unsetSuccess();
23067
        } else {
3061 chandransh 23068
          setSuccess((List<Double>)value);
68 ashish 23069
        }
23070
        break;
23071
 
23072
      }
23073
    }
23074
 
23075
    public Object getFieldValue(_Fields field) {
23076
      switch (field) {
23077
      case SUCCESS:
483 rajveer 23078
        return getSuccess();
68 ashish 23079
 
23080
      }
23081
      throw new IllegalStateException();
23082
    }
23083
 
3430 rajveer 23084
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23085
    public boolean isSet(_Fields field) {
23086
      if (field == null) {
23087
        throw new IllegalArgumentException();
23088
      }
68 ashish 23089
 
23090
      switch (field) {
23091
      case SUCCESS:
23092
        return isSetSuccess();
23093
      }
23094
      throw new IllegalStateException();
23095
    }
23096
 
23097
    @Override
23098
    public boolean equals(Object that) {
23099
      if (that == null)
23100
        return false;
3061 chandransh 23101
      if (that instanceof getValidOrdersAmountRange_result)
23102
        return this.equals((getValidOrdersAmountRange_result)that);
68 ashish 23103
      return false;
23104
    }
23105
 
3061 chandransh 23106
    public boolean equals(getValidOrdersAmountRange_result that) {
68 ashish 23107
      if (that == null)
23108
        return false;
23109
 
483 rajveer 23110
      boolean this_present_success = true && this.isSetSuccess();
23111
      boolean that_present_success = true && that.isSetSuccess();
68 ashish 23112
      if (this_present_success || that_present_success) {
23113
        if (!(this_present_success && that_present_success))
23114
          return false;
483 rajveer 23115
        if (!this.success.equals(that.success))
68 ashish 23116
          return false;
23117
      }
23118
 
23119
      return true;
23120
    }
23121
 
23122
    @Override
23123
    public int hashCode() {
23124
      return 0;
23125
    }
23126
 
3061 chandransh 23127
    public int compareTo(getValidOrdersAmountRange_result other) {
68 ashish 23128
      if (!getClass().equals(other.getClass())) {
23129
        return getClass().getName().compareTo(other.getClass().getName());
23130
      }
23131
 
23132
      int lastComparison = 0;
3061 chandransh 23133
      getValidOrdersAmountRange_result typedOther = (getValidOrdersAmountRange_result)other;
68 ashish 23134
 
3430 rajveer 23135
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
68 ashish 23136
      if (lastComparison != 0) {
23137
        return lastComparison;
23138
      }
3430 rajveer 23139
      if (isSetSuccess()) {
23140
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23141
        if (lastComparison != 0) {
23142
          return lastComparison;
23143
        }
68 ashish 23144
      }
23145
      return 0;
23146
    }
23147
 
3430 rajveer 23148
    public _Fields fieldForId(int fieldId) {
23149
      return _Fields.findByThriftId(fieldId);
23150
    }
23151
 
23152
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23153
      org.apache.thrift.protocol.TField field;
68 ashish 23154
      iprot.readStructBegin();
23155
      while (true)
23156
      {
23157
        field = iprot.readFieldBegin();
3430 rajveer 23158
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 23159
          break;
23160
        }
3430 rajveer 23161
        switch (field.id) {
23162
          case 0: // SUCCESS
23163
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23164
              {
23165
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
23166
                this.success = new ArrayList<Double>(_list56.size);
23167
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
483 rajveer 23168
                {
3430 rajveer 23169
                  double _elem58; // required
23170
                  _elem58 = iprot.readDouble();
23171
                  this.success.add(_elem58);
483 rajveer 23172
                }
3430 rajveer 23173
                iprot.readListEnd();
68 ashish 23174
              }
3430 rajveer 23175
            } else { 
23176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23177
            }
23178
            break;
23179
          default:
23180
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 23181
        }
3430 rajveer 23182
        iprot.readFieldEnd();
68 ashish 23183
      }
23184
      iprot.readStructEnd();
23185
      validate();
23186
    }
23187
 
3430 rajveer 23188
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 23189
      oprot.writeStructBegin(STRUCT_DESC);
23190
 
23191
      if (this.isSetSuccess()) {
23192
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
483 rajveer 23193
        {
3430 rajveer 23194
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
3427 chandransh 23195
          for (double _iter59 : this.success)
483 rajveer 23196
          {
3427 chandransh 23197
            oprot.writeDouble(_iter59);
483 rajveer 23198
          }
23199
          oprot.writeListEnd();
23200
        }
68 ashish 23201
        oprot.writeFieldEnd();
23202
      }
23203
      oprot.writeFieldStop();
23204
      oprot.writeStructEnd();
23205
    }
23206
 
23207
    @Override
23208
    public String toString() {
3061 chandransh 23209
      StringBuilder sb = new StringBuilder("getValidOrdersAmountRange_result(");
68 ashish 23210
      boolean first = true;
23211
 
23212
      sb.append("success:");
483 rajveer 23213
      if (this.success == null) {
23214
        sb.append("null");
23215
      } else {
23216
        sb.append(this.success);
23217
      }
68 ashish 23218
      first = false;
23219
      sb.append(")");
23220
      return sb.toString();
23221
    }
23222
 
3430 rajveer 23223
    public void validate() throws org.apache.thrift.TException {
68 ashish 23224
      // check for required fields
23225
    }
23226
 
3430 rajveer 23227
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23228
      try {
23229
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23230
      } catch (org.apache.thrift.TException te) {
23231
        throw new java.io.IOException(te);
23232
      }
23233
    }
23234
 
23235
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23236
      try {
23237
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23238
      } catch (org.apache.thrift.TException te) {
23239
        throw new java.io.IOException(te);
23240
      }
23241
    }
23242
 
68 ashish 23243
  }
23244
 
3430 rajveer 23245
  public static class getValidOrders_args implements org.apache.thrift.TBase<getValidOrders_args, getValidOrders_args._Fields>, java.io.Serializable, Cloneable   {
23246
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrders_args");
1529 ankur.sing 23247
 
3430 rajveer 23248
    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 23249
 
3430 rajveer 23250
    private long limit; // required
1529 ankur.sing 23251
 
23252
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23253
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 23254
      LIMIT((short)1, "limit");
1529 ankur.sing 23255
 
23256
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23257
 
23258
      static {
23259
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23260
          byName.put(field.getFieldName(), field);
23261
        }
23262
      }
23263
 
23264
      /**
23265
       * Find the _Fields constant that matches fieldId, or null if its not found.
23266
       */
23267
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23268
        switch(fieldId) {
23269
          case 1: // LIMIT
23270
            return LIMIT;
23271
          default:
23272
            return null;
23273
        }
1529 ankur.sing 23274
      }
23275
 
23276
      /**
23277
       * Find the _Fields constant that matches fieldId, throwing an exception
23278
       * if it is not found.
23279
       */
23280
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23281
        _Fields fields = findByThriftId(fieldId);
23282
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23283
        return fields;
23284
      }
23285
 
23286
      /**
23287
       * Find the _Fields constant that matches name, or null if its not found.
23288
       */
23289
      public static _Fields findByName(String name) {
23290
        return byName.get(name);
23291
      }
23292
 
23293
      private final short _thriftId;
23294
      private final String _fieldName;
23295
 
23296
      _Fields(short thriftId, String fieldName) {
23297
        _thriftId = thriftId;
23298
        _fieldName = fieldName;
23299
      }
23300
 
23301
      public short getThriftFieldId() {
23302
        return _thriftId;
23303
      }
23304
 
23305
      public String getFieldName() {
23306
        return _fieldName;
23307
      }
23308
    }
23309
 
23310
    // isset id assignments
3061 chandransh 23311
    private static final int __LIMIT_ISSET_ID = 0;
23312
    private BitSet __isset_bit_vector = new BitSet(1);
1529 ankur.sing 23313
 
3430 rajveer 23314
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1529 ankur.sing 23315
    static {
3430 rajveer 23316
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23317
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23318
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23319
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23320
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrders_args.class, metaDataMap);
1529 ankur.sing 23321
    }
23322
 
3061 chandransh 23323
    public getValidOrders_args() {
1529 ankur.sing 23324
    }
23325
 
3061 chandransh 23326
    public getValidOrders_args(
23327
      long limit)
1529 ankur.sing 23328
    {
23329
      this();
3061 chandransh 23330
      this.limit = limit;
23331
      setLimitIsSet(true);
1529 ankur.sing 23332
    }
23333
 
23334
    /**
23335
     * Performs a deep copy on <i>other</i>.
23336
     */
3061 chandransh 23337
    public getValidOrders_args(getValidOrders_args other) {
1529 ankur.sing 23338
      __isset_bit_vector.clear();
23339
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 23340
      this.limit = other.limit;
1529 ankur.sing 23341
    }
23342
 
3061 chandransh 23343
    public getValidOrders_args deepCopy() {
23344
      return new getValidOrders_args(this);
1529 ankur.sing 23345
    }
23346
 
3430 rajveer 23347
    @Override
23348
    public void clear() {
23349
      setLimitIsSet(false);
23350
      this.limit = 0;
1529 ankur.sing 23351
    }
23352
 
3061 chandransh 23353
    public long getLimit() {
23354
      return this.limit;
1529 ankur.sing 23355
    }
23356
 
3430 rajveer 23357
    public void setLimit(long limit) {
3061 chandransh 23358
      this.limit = limit;
23359
      setLimitIsSet(true);
1529 ankur.sing 23360
    }
23361
 
3061 chandransh 23362
    public void unsetLimit() {
23363
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
1529 ankur.sing 23364
    }
23365
 
3430 rajveer 23366
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
3061 chandransh 23367
    public boolean isSetLimit() {
23368
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
1529 ankur.sing 23369
    }
23370
 
3061 chandransh 23371
    public void setLimitIsSet(boolean value) {
23372
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
1529 ankur.sing 23373
    }
23374
 
23375
    public void setFieldValue(_Fields field, Object value) {
23376
      switch (field) {
3061 chandransh 23377
      case LIMIT:
1529 ankur.sing 23378
        if (value == null) {
3061 chandransh 23379
          unsetLimit();
1529 ankur.sing 23380
        } else {
3061 chandransh 23381
          setLimit((Long)value);
1529 ankur.sing 23382
        }
23383
        break;
23384
 
23385
      }
23386
    }
23387
 
23388
    public Object getFieldValue(_Fields field) {
23389
      switch (field) {
3061 chandransh 23390
      case LIMIT:
3430 rajveer 23391
        return Long.valueOf(getLimit());
1529 ankur.sing 23392
 
23393
      }
23394
      throw new IllegalStateException();
23395
    }
23396
 
3430 rajveer 23397
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23398
    public boolean isSet(_Fields field) {
23399
      if (field == null) {
23400
        throw new IllegalArgumentException();
23401
      }
1529 ankur.sing 23402
 
23403
      switch (field) {
3061 chandransh 23404
      case LIMIT:
23405
        return isSetLimit();
1529 ankur.sing 23406
      }
23407
      throw new IllegalStateException();
23408
    }
23409
 
23410
    @Override
23411
    public boolean equals(Object that) {
23412
      if (that == null)
23413
        return false;
3061 chandransh 23414
      if (that instanceof getValidOrders_args)
23415
        return this.equals((getValidOrders_args)that);
1529 ankur.sing 23416
      return false;
23417
    }
23418
 
3061 chandransh 23419
    public boolean equals(getValidOrders_args that) {
1529 ankur.sing 23420
      if (that == null)
23421
        return false;
23422
 
3061 chandransh 23423
      boolean this_present_limit = true;
23424
      boolean that_present_limit = true;
23425
      if (this_present_limit || that_present_limit) {
23426
        if (!(this_present_limit && that_present_limit))
1529 ankur.sing 23427
          return false;
3061 chandransh 23428
        if (this.limit != that.limit)
1529 ankur.sing 23429
          return false;
23430
      }
23431
 
23432
      return true;
23433
    }
23434
 
23435
    @Override
23436
    public int hashCode() {
23437
      return 0;
23438
    }
23439
 
3061 chandransh 23440
    public int compareTo(getValidOrders_args other) {
1529 ankur.sing 23441
      if (!getClass().equals(other.getClass())) {
23442
        return getClass().getName().compareTo(other.getClass().getName());
23443
      }
23444
 
23445
      int lastComparison = 0;
3061 chandransh 23446
      getValidOrders_args typedOther = (getValidOrders_args)other;
1529 ankur.sing 23447
 
3430 rajveer 23448
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
1529 ankur.sing 23449
      if (lastComparison != 0) {
23450
        return lastComparison;
23451
      }
3430 rajveer 23452
      if (isSetLimit()) {
23453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
23454
        if (lastComparison != 0) {
23455
          return lastComparison;
23456
        }
1529 ankur.sing 23457
      }
23458
      return 0;
23459
    }
23460
 
3430 rajveer 23461
    public _Fields fieldForId(int fieldId) {
23462
      return _Fields.findByThriftId(fieldId);
23463
    }
23464
 
23465
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23466
      org.apache.thrift.protocol.TField field;
1529 ankur.sing 23467
      iprot.readStructBegin();
23468
      while (true)
23469
      {
23470
        field = iprot.readFieldBegin();
3430 rajveer 23471
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1529 ankur.sing 23472
          break;
23473
        }
3430 rajveer 23474
        switch (field.id) {
23475
          case 1: // LIMIT
23476
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23477
              this.limit = iprot.readI64();
23478
              setLimitIsSet(true);
23479
            } else { 
23480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23481
            }
23482
            break;
23483
          default:
23484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1529 ankur.sing 23485
        }
3430 rajveer 23486
        iprot.readFieldEnd();
1529 ankur.sing 23487
      }
23488
      iprot.readStructEnd();
23489
      validate();
23490
    }
23491
 
3430 rajveer 23492
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1529 ankur.sing 23493
      validate();
23494
 
23495
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 23496
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
23497
      oprot.writeI64(this.limit);
1529 ankur.sing 23498
      oprot.writeFieldEnd();
23499
      oprot.writeFieldStop();
23500
      oprot.writeStructEnd();
23501
    }
23502
 
23503
    @Override
23504
    public String toString() {
3061 chandransh 23505
      StringBuilder sb = new StringBuilder("getValidOrders_args(");
1529 ankur.sing 23506
      boolean first = true;
23507
 
3061 chandransh 23508
      sb.append("limit:");
23509
      sb.append(this.limit);
1529 ankur.sing 23510
      first = false;
23511
      sb.append(")");
23512
      return sb.toString();
23513
    }
23514
 
3430 rajveer 23515
    public void validate() throws org.apache.thrift.TException {
1529 ankur.sing 23516
      // check for required fields
23517
    }
23518
 
3430 rajveer 23519
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23520
      try {
23521
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23522
      } catch (org.apache.thrift.TException te) {
23523
        throw new java.io.IOException(te);
23524
      }
23525
    }
23526
 
23527
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23528
      try {
23529
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23530
      } catch (org.apache.thrift.TException te) {
23531
        throw new java.io.IOException(te);
23532
      }
23533
    }
23534
 
1529 ankur.sing 23535
  }
23536
 
3430 rajveer 23537
  public static class getValidOrders_result implements org.apache.thrift.TBase<getValidOrders_result, getValidOrders_result._Fields>, java.io.Serializable, Cloneable   {
23538
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrders_result");
1529 ankur.sing 23539
 
3430 rajveer 23540
    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 23541
 
3430 rajveer 23542
    private List<Order> success; // required
1529 ankur.sing 23543
 
23544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23545
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 23546
      SUCCESS((short)0, "success");
1529 ankur.sing 23547
 
23548
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23549
 
23550
      static {
23551
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23552
          byName.put(field.getFieldName(), field);
23553
        }
23554
      }
23555
 
23556
      /**
23557
       * Find the _Fields constant that matches fieldId, or null if its not found.
23558
       */
23559
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23560
        switch(fieldId) {
23561
          case 0: // SUCCESS
23562
            return SUCCESS;
23563
          default:
23564
            return null;
23565
        }
1529 ankur.sing 23566
      }
23567
 
23568
      /**
23569
       * Find the _Fields constant that matches fieldId, throwing an exception
23570
       * if it is not found.
23571
       */
23572
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23573
        _Fields fields = findByThriftId(fieldId);
23574
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23575
        return fields;
23576
      }
23577
 
23578
      /**
23579
       * Find the _Fields constant that matches name, or null if its not found.
23580
       */
23581
      public static _Fields findByName(String name) {
23582
        return byName.get(name);
23583
      }
23584
 
23585
      private final short _thriftId;
23586
      private final String _fieldName;
23587
 
23588
      _Fields(short thriftId, String fieldName) {
23589
        _thriftId = thriftId;
23590
        _fieldName = fieldName;
23591
      }
23592
 
23593
      public short getThriftFieldId() {
23594
        return _thriftId;
23595
      }
23596
 
23597
      public String getFieldName() {
23598
        return _fieldName;
23599
      }
23600
    }
23601
 
23602
    // isset id assignments
23603
 
3430 rajveer 23604
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1529 ankur.sing 23605
    static {
3430 rajveer 23606
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23607
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23608
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23609
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
23610
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23611
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrders_result.class, metaDataMap);
1529 ankur.sing 23612
    }
23613
 
3061 chandransh 23614
    public getValidOrders_result() {
1529 ankur.sing 23615
    }
23616
 
3061 chandransh 23617
    public getValidOrders_result(
23618
      List<Order> success)
1529 ankur.sing 23619
    {
23620
      this();
23621
      this.success = success;
23622
    }
23623
 
23624
    /**
23625
     * Performs a deep copy on <i>other</i>.
23626
     */
3061 chandransh 23627
    public getValidOrders_result(getValidOrders_result other) {
1529 ankur.sing 23628
      if (other.isSetSuccess()) {
3061 chandransh 23629
        List<Order> __this__success = new ArrayList<Order>();
23630
        for (Order other_element : other.success) {
23631
          __this__success.add(new Order(other_element));
23632
        }
23633
        this.success = __this__success;
1529 ankur.sing 23634
      }
23635
    }
23636
 
3061 chandransh 23637
    public getValidOrders_result deepCopy() {
23638
      return new getValidOrders_result(this);
1529 ankur.sing 23639
    }
23640
 
3430 rajveer 23641
    @Override
23642
    public void clear() {
23643
      this.success = null;
1529 ankur.sing 23644
    }
23645
 
3061 chandransh 23646
    public int getSuccessSize() {
23647
      return (this.success == null) ? 0 : this.success.size();
23648
    }
23649
 
23650
    public java.util.Iterator<Order> getSuccessIterator() {
23651
      return (this.success == null) ? null : this.success.iterator();
23652
    }
23653
 
23654
    public void addToSuccess(Order elem) {
23655
      if (this.success == null) {
23656
        this.success = new ArrayList<Order>();
23657
      }
23658
      this.success.add(elem);
23659
    }
23660
 
23661
    public List<Order> getSuccess() {
1529 ankur.sing 23662
      return this.success;
23663
    }
23664
 
3430 rajveer 23665
    public void setSuccess(List<Order> success) {
1529 ankur.sing 23666
      this.success = success;
23667
    }
23668
 
23669
    public void unsetSuccess() {
23670
      this.success = null;
23671
    }
23672
 
3430 rajveer 23673
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1529 ankur.sing 23674
    public boolean isSetSuccess() {
23675
      return this.success != null;
23676
    }
23677
 
23678
    public void setSuccessIsSet(boolean value) {
23679
      if (!value) {
23680
        this.success = null;
23681
      }
23682
    }
23683
 
23684
    public void setFieldValue(_Fields field, Object value) {
23685
      switch (field) {
23686
      case SUCCESS:
23687
        if (value == null) {
23688
          unsetSuccess();
23689
        } else {
3061 chandransh 23690
          setSuccess((List<Order>)value);
1529 ankur.sing 23691
        }
23692
        break;
23693
 
23694
      }
23695
    }
23696
 
23697
    public Object getFieldValue(_Fields field) {
23698
      switch (field) {
23699
      case SUCCESS:
23700
        return getSuccess();
23701
 
23702
      }
23703
      throw new IllegalStateException();
23704
    }
23705
 
3430 rajveer 23706
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23707
    public boolean isSet(_Fields field) {
23708
      if (field == null) {
23709
        throw new IllegalArgumentException();
23710
      }
1529 ankur.sing 23711
 
23712
      switch (field) {
23713
      case SUCCESS:
23714
        return isSetSuccess();
23715
      }
23716
      throw new IllegalStateException();
23717
    }
23718
 
23719
    @Override
23720
    public boolean equals(Object that) {
23721
      if (that == null)
23722
        return false;
3061 chandransh 23723
      if (that instanceof getValidOrders_result)
23724
        return this.equals((getValidOrders_result)that);
1529 ankur.sing 23725
      return false;
23726
    }
23727
 
3061 chandransh 23728
    public boolean equals(getValidOrders_result that) {
1529 ankur.sing 23729
      if (that == null)
23730
        return false;
23731
 
23732
      boolean this_present_success = true && this.isSetSuccess();
23733
      boolean that_present_success = true && that.isSetSuccess();
23734
      if (this_present_success || that_present_success) {
23735
        if (!(this_present_success && that_present_success))
23736
          return false;
23737
        if (!this.success.equals(that.success))
23738
          return false;
23739
      }
23740
 
23741
      return true;
23742
    }
23743
 
23744
    @Override
23745
    public int hashCode() {
23746
      return 0;
23747
    }
23748
 
3061 chandransh 23749
    public int compareTo(getValidOrders_result other) {
1529 ankur.sing 23750
      if (!getClass().equals(other.getClass())) {
23751
        return getClass().getName().compareTo(other.getClass().getName());
23752
      }
23753
 
23754
      int lastComparison = 0;
3061 chandransh 23755
      getValidOrders_result typedOther = (getValidOrders_result)other;
1529 ankur.sing 23756
 
3430 rajveer 23757
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1529 ankur.sing 23758
      if (lastComparison != 0) {
23759
        return lastComparison;
23760
      }
3430 rajveer 23761
      if (isSetSuccess()) {
23762
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23763
        if (lastComparison != 0) {
23764
          return lastComparison;
23765
        }
1529 ankur.sing 23766
      }
23767
      return 0;
23768
    }
23769
 
3430 rajveer 23770
    public _Fields fieldForId(int fieldId) {
23771
      return _Fields.findByThriftId(fieldId);
23772
    }
23773
 
23774
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23775
      org.apache.thrift.protocol.TField field;
1529 ankur.sing 23776
      iprot.readStructBegin();
23777
      while (true)
23778
      {
23779
        field = iprot.readFieldBegin();
3430 rajveer 23780
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1529 ankur.sing 23781
          break;
23782
        }
3430 rajveer 23783
        switch (field.id) {
23784
          case 0: // SUCCESS
23785
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23786
              {
23787
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
23788
                this.success = new ArrayList<Order>(_list60.size);
23789
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
3061 chandransh 23790
                {
3430 rajveer 23791
                  Order _elem62; // required
23792
                  _elem62 = new Order();
23793
                  _elem62.read(iprot);
23794
                  this.success.add(_elem62);
3061 chandransh 23795
                }
3430 rajveer 23796
                iprot.readListEnd();
1529 ankur.sing 23797
              }
3430 rajveer 23798
            } else { 
23799
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23800
            }
23801
            break;
23802
          default:
23803
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1529 ankur.sing 23804
        }
3430 rajveer 23805
        iprot.readFieldEnd();
1529 ankur.sing 23806
      }
23807
      iprot.readStructEnd();
23808
      validate();
23809
    }
23810
 
3430 rajveer 23811
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1529 ankur.sing 23812
      oprot.writeStructBegin(STRUCT_DESC);
23813
 
23814
      if (this.isSetSuccess()) {
23815
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 23816
        {
3430 rajveer 23817
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3427 chandransh 23818
          for (Order _iter63 : this.success)
3061 chandransh 23819
          {
3427 chandransh 23820
            _iter63.write(oprot);
3061 chandransh 23821
          }
23822
          oprot.writeListEnd();
23823
        }
1529 ankur.sing 23824
        oprot.writeFieldEnd();
23825
      }
23826
      oprot.writeFieldStop();
23827
      oprot.writeStructEnd();
23828
    }
23829
 
23830
    @Override
23831
    public String toString() {
3061 chandransh 23832
      StringBuilder sb = new StringBuilder("getValidOrders_result(");
1529 ankur.sing 23833
      boolean first = true;
23834
 
23835
      sb.append("success:");
23836
      if (this.success == null) {
23837
        sb.append("null");
23838
      } else {
23839
        sb.append(this.success);
23840
      }
23841
      first = false;
23842
      sb.append(")");
23843
      return sb.toString();
23844
    }
23845
 
3430 rajveer 23846
    public void validate() throws org.apache.thrift.TException {
1529 ankur.sing 23847
      // check for required fields
23848
    }
23849
 
3430 rajveer 23850
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23851
      try {
23852
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23853
      } catch (org.apache.thrift.TException te) {
23854
        throw new java.io.IOException(te);
23855
      }
23856
    }
23857
 
23858
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23859
      try {
23860
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23861
      } catch (org.apache.thrift.TException te) {
23862
        throw new java.io.IOException(te);
23863
      }
23864
    }
23865
 
1529 ankur.sing 23866
  }
23867
 
3430 rajveer 23868
  public static class batchOrders_args implements org.apache.thrift.TBase<batchOrders_args, batchOrders_args._Fields>, java.io.Serializable, Cloneable   {
23869
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("batchOrders_args");
1221 chandransh 23870
 
3430 rajveer 23871
    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 23872
 
3430 rajveer 23873
    private long warehouseId; // required
1221 chandransh 23874
 
23875
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23876
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1221 chandransh 23877
      WAREHOUSE_ID((short)1, "warehouseId");
23878
 
23879
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23880
 
23881
      static {
23882
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23883
          byName.put(field.getFieldName(), field);
23884
        }
23885
      }
23886
 
23887
      /**
23888
       * Find the _Fields constant that matches fieldId, or null if its not found.
23889
       */
23890
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23891
        switch(fieldId) {
23892
          case 1: // WAREHOUSE_ID
23893
            return WAREHOUSE_ID;
23894
          default:
23895
            return null;
23896
        }
1221 chandransh 23897
      }
23898
 
23899
      /**
23900
       * Find the _Fields constant that matches fieldId, throwing an exception
23901
       * if it is not found.
23902
       */
23903
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23904
        _Fields fields = findByThriftId(fieldId);
23905
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23906
        return fields;
23907
      }
23908
 
23909
      /**
23910
       * Find the _Fields constant that matches name, or null if its not found.
23911
       */
23912
      public static _Fields findByName(String name) {
23913
        return byName.get(name);
23914
      }
23915
 
23916
      private final short _thriftId;
23917
      private final String _fieldName;
23918
 
23919
      _Fields(short thriftId, String fieldName) {
23920
        _thriftId = thriftId;
23921
        _fieldName = fieldName;
23922
      }
23923
 
23924
      public short getThriftFieldId() {
23925
        return _thriftId;
23926
      }
23927
 
23928
      public String getFieldName() {
23929
        return _fieldName;
23930
      }
23931
    }
23932
 
23933
    // isset id assignments
23934
    private static final int __WAREHOUSEID_ISSET_ID = 0;
23935
    private BitSet __isset_bit_vector = new BitSet(1);
23936
 
3430 rajveer 23937
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1221 chandransh 23938
    static {
3430 rajveer 23939
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23940
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23941
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23942
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23943
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(batchOrders_args.class, metaDataMap);
1221 chandransh 23944
    }
23945
 
23946
    public batchOrders_args() {
23947
    }
23948
 
23949
    public batchOrders_args(
23950
      long warehouseId)
23951
    {
23952
      this();
23953
      this.warehouseId = warehouseId;
23954
      setWarehouseIdIsSet(true);
23955
    }
23956
 
23957
    /**
23958
     * Performs a deep copy on <i>other</i>.
23959
     */
23960
    public batchOrders_args(batchOrders_args other) {
23961
      __isset_bit_vector.clear();
23962
      __isset_bit_vector.or(other.__isset_bit_vector);
23963
      this.warehouseId = other.warehouseId;
23964
    }
23965
 
23966
    public batchOrders_args deepCopy() {
23967
      return new batchOrders_args(this);
23968
    }
23969
 
3430 rajveer 23970
    @Override
23971
    public void clear() {
23972
      setWarehouseIdIsSet(false);
23973
      this.warehouseId = 0;
1221 chandransh 23974
    }
23975
 
23976
    public long getWarehouseId() {
23977
      return this.warehouseId;
23978
    }
23979
 
3430 rajveer 23980
    public void setWarehouseId(long warehouseId) {
1221 chandransh 23981
      this.warehouseId = warehouseId;
23982
      setWarehouseIdIsSet(true);
23983
    }
23984
 
23985
    public void unsetWarehouseId() {
23986
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
23987
    }
23988
 
3430 rajveer 23989
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
1221 chandransh 23990
    public boolean isSetWarehouseId() {
23991
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
23992
    }
23993
 
23994
    public void setWarehouseIdIsSet(boolean value) {
23995
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
23996
    }
23997
 
23998
    public void setFieldValue(_Fields field, Object value) {
23999
      switch (field) {
24000
      case WAREHOUSE_ID:
24001
        if (value == null) {
24002
          unsetWarehouseId();
24003
        } else {
24004
          setWarehouseId((Long)value);
24005
        }
24006
        break;
24007
 
24008
      }
24009
    }
24010
 
24011
    public Object getFieldValue(_Fields field) {
24012
      switch (field) {
24013
      case WAREHOUSE_ID:
3430 rajveer 24014
        return Long.valueOf(getWarehouseId());
1221 chandransh 24015
 
24016
      }
24017
      throw new IllegalStateException();
24018
    }
24019
 
3430 rajveer 24020
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24021
    public boolean isSet(_Fields field) {
24022
      if (field == null) {
24023
        throw new IllegalArgumentException();
24024
      }
1221 chandransh 24025
 
24026
      switch (field) {
24027
      case WAREHOUSE_ID:
24028
        return isSetWarehouseId();
24029
      }
24030
      throw new IllegalStateException();
24031
    }
24032
 
24033
    @Override
24034
    public boolean equals(Object that) {
24035
      if (that == null)
24036
        return false;
24037
      if (that instanceof batchOrders_args)
24038
        return this.equals((batchOrders_args)that);
24039
      return false;
24040
    }
24041
 
24042
    public boolean equals(batchOrders_args that) {
24043
      if (that == null)
24044
        return false;
24045
 
24046
      boolean this_present_warehouseId = true;
24047
      boolean that_present_warehouseId = true;
24048
      if (this_present_warehouseId || that_present_warehouseId) {
24049
        if (!(this_present_warehouseId && that_present_warehouseId))
24050
          return false;
24051
        if (this.warehouseId != that.warehouseId)
24052
          return false;
24053
      }
24054
 
24055
      return true;
24056
    }
24057
 
24058
    @Override
24059
    public int hashCode() {
24060
      return 0;
24061
    }
24062
 
24063
    public int compareTo(batchOrders_args other) {
24064
      if (!getClass().equals(other.getClass())) {
24065
        return getClass().getName().compareTo(other.getClass().getName());
24066
      }
24067
 
24068
      int lastComparison = 0;
24069
      batchOrders_args typedOther = (batchOrders_args)other;
24070
 
3430 rajveer 24071
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
1221 chandransh 24072
      if (lastComparison != 0) {
24073
        return lastComparison;
24074
      }
3430 rajveer 24075
      if (isSetWarehouseId()) {
24076
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
24077
        if (lastComparison != 0) {
24078
          return lastComparison;
24079
        }
1221 chandransh 24080
      }
24081
      return 0;
24082
    }
24083
 
3430 rajveer 24084
    public _Fields fieldForId(int fieldId) {
24085
      return _Fields.findByThriftId(fieldId);
24086
    }
24087
 
24088
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24089
      org.apache.thrift.protocol.TField field;
1221 chandransh 24090
      iprot.readStructBegin();
24091
      while (true)
24092
      {
24093
        field = iprot.readFieldBegin();
3430 rajveer 24094
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1221 chandransh 24095
          break;
24096
        }
3430 rajveer 24097
        switch (field.id) {
24098
          case 1: // WAREHOUSE_ID
24099
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24100
              this.warehouseId = iprot.readI64();
24101
              setWarehouseIdIsSet(true);
24102
            } else { 
24103
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24104
            }
24105
            break;
24106
          default:
24107
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1221 chandransh 24108
        }
3430 rajveer 24109
        iprot.readFieldEnd();
1221 chandransh 24110
      }
24111
      iprot.readStructEnd();
24112
      validate();
24113
    }
24114
 
3430 rajveer 24115
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1221 chandransh 24116
      validate();
24117
 
24118
      oprot.writeStructBegin(STRUCT_DESC);
24119
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
24120
      oprot.writeI64(this.warehouseId);
24121
      oprot.writeFieldEnd();
24122
      oprot.writeFieldStop();
24123
      oprot.writeStructEnd();
24124
    }
24125
 
24126
    @Override
24127
    public String toString() {
24128
      StringBuilder sb = new StringBuilder("batchOrders_args(");
24129
      boolean first = true;
24130
 
24131
      sb.append("warehouseId:");
24132
      sb.append(this.warehouseId);
24133
      first = false;
24134
      sb.append(")");
24135
      return sb.toString();
24136
    }
24137
 
3430 rajveer 24138
    public void validate() throws org.apache.thrift.TException {
1221 chandransh 24139
      // check for required fields
24140
    }
24141
 
3430 rajveer 24142
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24143
      try {
24144
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24145
      } catch (org.apache.thrift.TException te) {
24146
        throw new java.io.IOException(te);
24147
      }
24148
    }
24149
 
24150
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24151
      try {
24152
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24153
        __isset_bit_vector = new BitSet(1);
24154
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24155
      } catch (org.apache.thrift.TException te) {
24156
        throw new java.io.IOException(te);
24157
      }
24158
    }
24159
 
1221 chandransh 24160
  }
24161
 
3430 rajveer 24162
  public static class batchOrders_result implements org.apache.thrift.TBase<batchOrders_result, batchOrders_result._Fields>, java.io.Serializable, Cloneable   {
24163
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("batchOrders_result");
1221 chandransh 24164
 
3430 rajveer 24165
    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);
24166
    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 24167
 
3430 rajveer 24168
    private List<Order> success; // required
24169
    private TransactionServiceException ex; // required
1221 chandransh 24170
 
24171
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24172
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1221 chandransh 24173
      SUCCESS((short)0, "success"),
24174
      EX((short)1, "ex");
24175
 
24176
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24177
 
24178
      static {
24179
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24180
          byName.put(field.getFieldName(), field);
24181
        }
24182
      }
24183
 
24184
      /**
24185
       * Find the _Fields constant that matches fieldId, or null if its not found.
24186
       */
24187
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24188
        switch(fieldId) {
24189
          case 0: // SUCCESS
24190
            return SUCCESS;
24191
          case 1: // EX
24192
            return EX;
24193
          default:
24194
            return null;
24195
        }
1221 chandransh 24196
      }
24197
 
24198
      /**
24199
       * Find the _Fields constant that matches fieldId, throwing an exception
24200
       * if it is not found.
24201
       */
24202
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24203
        _Fields fields = findByThriftId(fieldId);
24204
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24205
        return fields;
24206
      }
24207
 
24208
      /**
24209
       * Find the _Fields constant that matches name, or null if its not found.
24210
       */
24211
      public static _Fields findByName(String name) {
24212
        return byName.get(name);
24213
      }
24214
 
24215
      private final short _thriftId;
24216
      private final String _fieldName;
24217
 
24218
      _Fields(short thriftId, String fieldName) {
24219
        _thriftId = thriftId;
24220
        _fieldName = fieldName;
24221
      }
24222
 
24223
      public short getThriftFieldId() {
24224
        return _thriftId;
24225
      }
24226
 
24227
      public String getFieldName() {
24228
        return _fieldName;
24229
      }
24230
    }
24231
 
24232
    // isset id assignments
24233
 
3430 rajveer 24234
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1221 chandransh 24235
    static {
3430 rajveer 24236
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24237
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24238
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24239
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
24240
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24241
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24242
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24243
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(batchOrders_result.class, metaDataMap);
1221 chandransh 24244
    }
24245
 
24246
    public batchOrders_result() {
24247
    }
24248
 
24249
    public batchOrders_result(
24250
      List<Order> success,
24251
      TransactionServiceException ex)
24252
    {
24253
      this();
24254
      this.success = success;
24255
      this.ex = ex;
24256
    }
24257
 
24258
    /**
24259
     * Performs a deep copy on <i>other</i>.
24260
     */
24261
    public batchOrders_result(batchOrders_result other) {
24262
      if (other.isSetSuccess()) {
24263
        List<Order> __this__success = new ArrayList<Order>();
24264
        for (Order other_element : other.success) {
24265
          __this__success.add(new Order(other_element));
24266
        }
24267
        this.success = __this__success;
24268
      }
24269
      if (other.isSetEx()) {
24270
        this.ex = new TransactionServiceException(other.ex);
24271
      }
24272
    }
24273
 
24274
    public batchOrders_result deepCopy() {
24275
      return new batchOrders_result(this);
24276
    }
24277
 
3430 rajveer 24278
    @Override
24279
    public void clear() {
24280
      this.success = null;
24281
      this.ex = null;
1221 chandransh 24282
    }
24283
 
24284
    public int getSuccessSize() {
24285
      return (this.success == null) ? 0 : this.success.size();
24286
    }
24287
 
24288
    public java.util.Iterator<Order> getSuccessIterator() {
24289
      return (this.success == null) ? null : this.success.iterator();
24290
    }
24291
 
24292
    public void addToSuccess(Order elem) {
24293
      if (this.success == null) {
24294
        this.success = new ArrayList<Order>();
24295
      }
24296
      this.success.add(elem);
24297
    }
24298
 
24299
    public List<Order> getSuccess() {
24300
      return this.success;
24301
    }
24302
 
3430 rajveer 24303
    public void setSuccess(List<Order> success) {
1221 chandransh 24304
      this.success = success;
24305
    }
24306
 
24307
    public void unsetSuccess() {
24308
      this.success = null;
24309
    }
24310
 
3430 rajveer 24311
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1221 chandransh 24312
    public boolean isSetSuccess() {
24313
      return this.success != null;
24314
    }
24315
 
24316
    public void setSuccessIsSet(boolean value) {
24317
      if (!value) {
24318
        this.success = null;
24319
      }
24320
    }
24321
 
24322
    public TransactionServiceException getEx() {
24323
      return this.ex;
24324
    }
24325
 
3430 rajveer 24326
    public void setEx(TransactionServiceException ex) {
1221 chandransh 24327
      this.ex = ex;
24328
    }
24329
 
24330
    public void unsetEx() {
24331
      this.ex = null;
24332
    }
24333
 
3430 rajveer 24334
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1221 chandransh 24335
    public boolean isSetEx() {
24336
      return this.ex != null;
24337
    }
24338
 
24339
    public void setExIsSet(boolean value) {
24340
      if (!value) {
24341
        this.ex = null;
24342
      }
24343
    }
24344
 
24345
    public void setFieldValue(_Fields field, Object value) {
24346
      switch (field) {
24347
      case SUCCESS:
24348
        if (value == null) {
24349
          unsetSuccess();
24350
        } else {
24351
          setSuccess((List<Order>)value);
24352
        }
24353
        break;
24354
 
24355
      case EX:
24356
        if (value == null) {
24357
          unsetEx();
24358
        } else {
24359
          setEx((TransactionServiceException)value);
24360
        }
24361
        break;
24362
 
24363
      }
24364
    }
24365
 
24366
    public Object getFieldValue(_Fields field) {
24367
      switch (field) {
24368
      case SUCCESS:
24369
        return getSuccess();
24370
 
24371
      case EX:
24372
        return getEx();
24373
 
24374
      }
24375
      throw new IllegalStateException();
24376
    }
24377
 
3430 rajveer 24378
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24379
    public boolean isSet(_Fields field) {
24380
      if (field == null) {
24381
        throw new IllegalArgumentException();
24382
      }
1221 chandransh 24383
 
24384
      switch (field) {
24385
      case SUCCESS:
24386
        return isSetSuccess();
24387
      case EX:
24388
        return isSetEx();
24389
      }
24390
      throw new IllegalStateException();
24391
    }
24392
 
24393
    @Override
24394
    public boolean equals(Object that) {
24395
      if (that == null)
24396
        return false;
24397
      if (that instanceof batchOrders_result)
24398
        return this.equals((batchOrders_result)that);
24399
      return false;
24400
    }
24401
 
24402
    public boolean equals(batchOrders_result that) {
24403
      if (that == null)
24404
        return false;
24405
 
24406
      boolean this_present_success = true && this.isSetSuccess();
24407
      boolean that_present_success = true && that.isSetSuccess();
24408
      if (this_present_success || that_present_success) {
24409
        if (!(this_present_success && that_present_success))
24410
          return false;
24411
        if (!this.success.equals(that.success))
24412
          return false;
24413
      }
24414
 
24415
      boolean this_present_ex = true && this.isSetEx();
24416
      boolean that_present_ex = true && that.isSetEx();
24417
      if (this_present_ex || that_present_ex) {
24418
        if (!(this_present_ex && that_present_ex))
24419
          return false;
24420
        if (!this.ex.equals(that.ex))
24421
          return false;
24422
      }
24423
 
24424
      return true;
24425
    }
24426
 
24427
    @Override
24428
    public int hashCode() {
24429
      return 0;
24430
    }
24431
 
24432
    public int compareTo(batchOrders_result other) {
24433
      if (!getClass().equals(other.getClass())) {
24434
        return getClass().getName().compareTo(other.getClass().getName());
24435
      }
24436
 
24437
      int lastComparison = 0;
24438
      batchOrders_result typedOther = (batchOrders_result)other;
24439
 
3430 rajveer 24440
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1221 chandransh 24441
      if (lastComparison != 0) {
24442
        return lastComparison;
24443
      }
3430 rajveer 24444
      if (isSetSuccess()) {
24445
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24446
        if (lastComparison != 0) {
24447
          return lastComparison;
24448
        }
1221 chandransh 24449
      }
3430 rajveer 24450
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1221 chandransh 24451
      if (lastComparison != 0) {
24452
        return lastComparison;
24453
      }
3430 rajveer 24454
      if (isSetEx()) {
24455
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
24456
        if (lastComparison != 0) {
24457
          return lastComparison;
24458
        }
1221 chandransh 24459
      }
24460
      return 0;
24461
    }
24462
 
3430 rajveer 24463
    public _Fields fieldForId(int fieldId) {
24464
      return _Fields.findByThriftId(fieldId);
24465
    }
24466
 
24467
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24468
      org.apache.thrift.protocol.TField field;
1221 chandransh 24469
      iprot.readStructBegin();
24470
      while (true)
24471
      {
24472
        field = iprot.readFieldBegin();
3430 rajveer 24473
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1221 chandransh 24474
          break;
24475
        }
3430 rajveer 24476
        switch (field.id) {
24477
          case 0: // SUCCESS
24478
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24479
              {
24480
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
24481
                this.success = new ArrayList<Order>(_list64.size);
24482
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
1221 chandransh 24483
                {
3430 rajveer 24484
                  Order _elem66; // required
24485
                  _elem66 = new Order();
24486
                  _elem66.read(iprot);
24487
                  this.success.add(_elem66);
1221 chandransh 24488
                }
3430 rajveer 24489
                iprot.readListEnd();
1221 chandransh 24490
              }
3430 rajveer 24491
            } else { 
24492
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24493
            }
24494
            break;
24495
          case 1: // EX
24496
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
24497
              this.ex = new TransactionServiceException();
24498
              this.ex.read(iprot);
24499
            } else { 
24500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24501
            }
24502
            break;
24503
          default:
24504
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1221 chandransh 24505
        }
3430 rajveer 24506
        iprot.readFieldEnd();
1221 chandransh 24507
      }
24508
      iprot.readStructEnd();
24509
      validate();
24510
    }
24511
 
3430 rajveer 24512
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1221 chandransh 24513
      oprot.writeStructBegin(STRUCT_DESC);
24514
 
24515
      if (this.isSetSuccess()) {
24516
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24517
        {
3430 rajveer 24518
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3427 chandransh 24519
          for (Order _iter67 : this.success)
1221 chandransh 24520
          {
3427 chandransh 24521
            _iter67.write(oprot);
1221 chandransh 24522
          }
24523
          oprot.writeListEnd();
24524
        }
24525
        oprot.writeFieldEnd();
24526
      } else if (this.isSetEx()) {
24527
        oprot.writeFieldBegin(EX_FIELD_DESC);
24528
        this.ex.write(oprot);
24529
        oprot.writeFieldEnd();
24530
      }
24531
      oprot.writeFieldStop();
24532
      oprot.writeStructEnd();
24533
    }
24534
 
24535
    @Override
24536
    public String toString() {
24537
      StringBuilder sb = new StringBuilder("batchOrders_result(");
24538
      boolean first = true;
24539
 
24540
      sb.append("success:");
24541
      if (this.success == null) {
24542
        sb.append("null");
24543
      } else {
24544
        sb.append(this.success);
24545
      }
24546
      first = false;
24547
      if (!first) sb.append(", ");
24548
      sb.append("ex:");
24549
      if (this.ex == null) {
24550
        sb.append("null");
24551
      } else {
24552
        sb.append(this.ex);
24553
      }
24554
      first = false;
24555
      sb.append(")");
24556
      return sb.toString();
24557
    }
24558
 
3430 rajveer 24559
    public void validate() throws org.apache.thrift.TException {
1221 chandransh 24560
      // check for required fields
24561
    }
24562
 
3430 rajveer 24563
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24564
      try {
24565
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24566
      } catch (org.apache.thrift.TException te) {
24567
        throw new java.io.IOException(te);
24568
      }
24569
    }
24570
 
24571
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24572
      try {
24573
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24574
      } catch (org.apache.thrift.TException te) {
24575
        throw new java.io.IOException(te);
24576
      }
24577
    }
24578
 
1221 chandransh 24579
  }
24580
 
3430 rajveer 24581
  public static class markOrderAsOutOfStock_args implements org.apache.thrift.TBase<markOrderAsOutOfStock_args, markOrderAsOutOfStock_args._Fields>, java.io.Serializable, Cloneable   {
24582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsOutOfStock_args");
1209 chandransh 24583
 
3430 rajveer 24584
    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 24585
 
3430 rajveer 24586
    private long orderId; // required
1209 chandransh 24587
 
24588
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24589
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1209 chandransh 24590
      ORDER_ID((short)1, "orderId");
24591
 
24592
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24593
 
24594
      static {
24595
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24596
          byName.put(field.getFieldName(), field);
24597
        }
24598
      }
24599
 
24600
      /**
24601
       * Find the _Fields constant that matches fieldId, or null if its not found.
24602
       */
24603
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24604
        switch(fieldId) {
24605
          case 1: // ORDER_ID
24606
            return ORDER_ID;
24607
          default:
24608
            return null;
24609
        }
1209 chandransh 24610
      }
24611
 
24612
      /**
24613
       * Find the _Fields constant that matches fieldId, throwing an exception
24614
       * if it is not found.
24615
       */
24616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24617
        _Fields fields = findByThriftId(fieldId);
24618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24619
        return fields;
24620
      }
24621
 
24622
      /**
24623
       * Find the _Fields constant that matches name, or null if its not found.
24624
       */
24625
      public static _Fields findByName(String name) {
24626
        return byName.get(name);
24627
      }
24628
 
24629
      private final short _thriftId;
24630
      private final String _fieldName;
24631
 
24632
      _Fields(short thriftId, String fieldName) {
24633
        _thriftId = thriftId;
24634
        _fieldName = fieldName;
24635
      }
24636
 
24637
      public short getThriftFieldId() {
24638
        return _thriftId;
24639
      }
24640
 
24641
      public String getFieldName() {
24642
        return _fieldName;
24643
      }
24644
    }
24645
 
24646
    // isset id assignments
24647
    private static final int __ORDERID_ISSET_ID = 0;
24648
    private BitSet __isset_bit_vector = new BitSet(1);
24649
 
3430 rajveer 24650
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1209 chandransh 24651
    static {
3430 rajveer 24652
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24653
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24654
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsOutOfStock_args.class, metaDataMap);
1209 chandransh 24657
    }
24658
 
24659
    public markOrderAsOutOfStock_args() {
24660
    }
24661
 
24662
    public markOrderAsOutOfStock_args(
24663
      long orderId)
24664
    {
24665
      this();
24666
      this.orderId = orderId;
24667
      setOrderIdIsSet(true);
24668
    }
24669
 
24670
    /**
24671
     * Performs a deep copy on <i>other</i>.
24672
     */
24673
    public markOrderAsOutOfStock_args(markOrderAsOutOfStock_args other) {
24674
      __isset_bit_vector.clear();
24675
      __isset_bit_vector.or(other.__isset_bit_vector);
24676
      this.orderId = other.orderId;
24677
    }
24678
 
24679
    public markOrderAsOutOfStock_args deepCopy() {
24680
      return new markOrderAsOutOfStock_args(this);
24681
    }
24682
 
3430 rajveer 24683
    @Override
24684
    public void clear() {
24685
      setOrderIdIsSet(false);
24686
      this.orderId = 0;
1209 chandransh 24687
    }
24688
 
24689
    public long getOrderId() {
24690
      return this.orderId;
24691
    }
24692
 
3430 rajveer 24693
    public void setOrderId(long orderId) {
1209 chandransh 24694
      this.orderId = orderId;
24695
      setOrderIdIsSet(true);
24696
    }
24697
 
24698
    public void unsetOrderId() {
24699
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
24700
    }
24701
 
3430 rajveer 24702
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
1209 chandransh 24703
    public boolean isSetOrderId() {
24704
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
24705
    }
24706
 
24707
    public void setOrderIdIsSet(boolean value) {
24708
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
24709
    }
24710
 
24711
    public void setFieldValue(_Fields field, Object value) {
24712
      switch (field) {
24713
      case ORDER_ID:
24714
        if (value == null) {
24715
          unsetOrderId();
24716
        } else {
24717
          setOrderId((Long)value);
24718
        }
24719
        break;
24720
 
24721
      }
24722
    }
24723
 
24724
    public Object getFieldValue(_Fields field) {
24725
      switch (field) {
24726
      case ORDER_ID:
3430 rajveer 24727
        return Long.valueOf(getOrderId());
1209 chandransh 24728
 
24729
      }
24730
      throw new IllegalStateException();
24731
    }
24732
 
3430 rajveer 24733
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24734
    public boolean isSet(_Fields field) {
24735
      if (field == null) {
24736
        throw new IllegalArgumentException();
24737
      }
1209 chandransh 24738
 
24739
      switch (field) {
24740
      case ORDER_ID:
24741
        return isSetOrderId();
24742
      }
24743
      throw new IllegalStateException();
24744
    }
24745
 
24746
    @Override
24747
    public boolean equals(Object that) {
24748
      if (that == null)
24749
        return false;
24750
      if (that instanceof markOrderAsOutOfStock_args)
24751
        return this.equals((markOrderAsOutOfStock_args)that);
24752
      return false;
24753
    }
24754
 
24755
    public boolean equals(markOrderAsOutOfStock_args that) {
24756
      if (that == null)
24757
        return false;
24758
 
24759
      boolean this_present_orderId = true;
24760
      boolean that_present_orderId = true;
24761
      if (this_present_orderId || that_present_orderId) {
24762
        if (!(this_present_orderId && that_present_orderId))
24763
          return false;
24764
        if (this.orderId != that.orderId)
24765
          return false;
24766
      }
24767
 
24768
      return true;
24769
    }
24770
 
24771
    @Override
24772
    public int hashCode() {
24773
      return 0;
24774
    }
24775
 
24776
    public int compareTo(markOrderAsOutOfStock_args other) {
24777
      if (!getClass().equals(other.getClass())) {
24778
        return getClass().getName().compareTo(other.getClass().getName());
24779
      }
24780
 
24781
      int lastComparison = 0;
24782
      markOrderAsOutOfStock_args typedOther = (markOrderAsOutOfStock_args)other;
24783
 
3430 rajveer 24784
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
1209 chandransh 24785
      if (lastComparison != 0) {
24786
        return lastComparison;
24787
      }
3430 rajveer 24788
      if (isSetOrderId()) {
24789
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
24790
        if (lastComparison != 0) {
24791
          return lastComparison;
24792
        }
1209 chandransh 24793
      }
24794
      return 0;
24795
    }
24796
 
3430 rajveer 24797
    public _Fields fieldForId(int fieldId) {
24798
      return _Fields.findByThriftId(fieldId);
24799
    }
24800
 
24801
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24802
      org.apache.thrift.protocol.TField field;
1209 chandransh 24803
      iprot.readStructBegin();
24804
      while (true)
24805
      {
24806
        field = iprot.readFieldBegin();
3430 rajveer 24807
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1209 chandransh 24808
          break;
24809
        }
3430 rajveer 24810
        switch (field.id) {
24811
          case 1: // ORDER_ID
24812
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24813
              this.orderId = iprot.readI64();
24814
              setOrderIdIsSet(true);
24815
            } else { 
24816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24817
            }
24818
            break;
24819
          default:
24820
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1209 chandransh 24821
        }
3430 rajveer 24822
        iprot.readFieldEnd();
1209 chandransh 24823
      }
24824
      iprot.readStructEnd();
24825
      validate();
24826
    }
24827
 
3430 rajveer 24828
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1209 chandransh 24829
      validate();
24830
 
24831
      oprot.writeStructBegin(STRUCT_DESC);
24832
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
24833
      oprot.writeI64(this.orderId);
24834
      oprot.writeFieldEnd();
24835
      oprot.writeFieldStop();
24836
      oprot.writeStructEnd();
24837
    }
24838
 
24839
    @Override
24840
    public String toString() {
24841
      StringBuilder sb = new StringBuilder("markOrderAsOutOfStock_args(");
24842
      boolean first = true;
24843
 
24844
      sb.append("orderId:");
24845
      sb.append(this.orderId);
24846
      first = false;
24847
      sb.append(")");
24848
      return sb.toString();
24849
    }
24850
 
3430 rajveer 24851
    public void validate() throws org.apache.thrift.TException {
1209 chandransh 24852
      // check for required fields
24853
    }
24854
 
3430 rajveer 24855
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24856
      try {
24857
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24858
      } catch (org.apache.thrift.TException te) {
24859
        throw new java.io.IOException(te);
24860
      }
24861
    }
24862
 
24863
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24864
      try {
24865
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24866
      } catch (org.apache.thrift.TException te) {
24867
        throw new java.io.IOException(te);
24868
      }
24869
    }
24870
 
1209 chandransh 24871
  }
24872
 
3430 rajveer 24873
  public static class markOrderAsOutOfStock_result implements org.apache.thrift.TBase<markOrderAsOutOfStock_result, markOrderAsOutOfStock_result._Fields>, java.io.Serializable, Cloneable   {
24874
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsOutOfStock_result");
1209 chandransh 24875
 
3430 rajveer 24876
    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);
24877
    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 24878
 
3430 rajveer 24879
    private boolean success; // required
24880
    private TransactionServiceException ex; // required
1209 chandransh 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 {
1209 chandransh 24884
      SUCCESS((short)0, "success"),
24885
      EX((short)1, "ex");
24886
 
24887
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24888
 
24889
      static {
24890
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24891
          byName.put(field.getFieldName(), field);
24892
        }
24893
      }
24894
 
24895
      /**
24896
       * Find the _Fields constant that matches fieldId, or null if its not found.
24897
       */
24898
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24899
        switch(fieldId) {
24900
          case 0: // SUCCESS
24901
            return SUCCESS;
24902
          case 1: // EX
24903
            return EX;
24904
          default:
24905
            return null;
24906
        }
1209 chandransh 24907
      }
24908
 
24909
      /**
24910
       * Find the _Fields constant that matches fieldId, throwing an exception
24911
       * if it is not found.
24912
       */
24913
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24914
        _Fields fields = findByThriftId(fieldId);
24915
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24916
        return fields;
24917
      }
24918
 
24919
      /**
24920
       * Find the _Fields constant that matches name, or null if its not found.
24921
       */
24922
      public static _Fields findByName(String name) {
24923
        return byName.get(name);
24924
      }
24925
 
24926
      private final short _thriftId;
24927
      private final String _fieldName;
24928
 
24929
      _Fields(short thriftId, String fieldName) {
24930
        _thriftId = thriftId;
24931
        _fieldName = fieldName;
24932
      }
24933
 
24934
      public short getThriftFieldId() {
24935
        return _thriftId;
24936
      }
24937
 
24938
      public String getFieldName() {
24939
        return _fieldName;
24940
      }
24941
    }
24942
 
24943
    // isset id assignments
24944
    private static final int __SUCCESS_ISSET_ID = 0;
24945
    private BitSet __isset_bit_vector = new BitSet(1);
24946
 
3430 rajveer 24947
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1209 chandransh 24948
    static {
3430 rajveer 24949
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24950
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24951
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
24952
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24953
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24954
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24955
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsOutOfStock_result.class, metaDataMap);
1209 chandransh 24956
    }
24957
 
24958
    public markOrderAsOutOfStock_result() {
24959
    }
24960
 
24961
    public markOrderAsOutOfStock_result(
24962
      boolean success,
24963
      TransactionServiceException ex)
24964
    {
24965
      this();
24966
      this.success = success;
24967
      setSuccessIsSet(true);
24968
      this.ex = ex;
24969
    }
24970
 
24971
    /**
24972
     * Performs a deep copy on <i>other</i>.
24973
     */
24974
    public markOrderAsOutOfStock_result(markOrderAsOutOfStock_result other) {
24975
      __isset_bit_vector.clear();
24976
      __isset_bit_vector.or(other.__isset_bit_vector);
24977
      this.success = other.success;
24978
      if (other.isSetEx()) {
24979
        this.ex = new TransactionServiceException(other.ex);
24980
      }
24981
    }
24982
 
24983
    public markOrderAsOutOfStock_result deepCopy() {
24984
      return new markOrderAsOutOfStock_result(this);
24985
    }
24986
 
3430 rajveer 24987
    @Override
24988
    public void clear() {
24989
      setSuccessIsSet(false);
24990
      this.success = false;
24991
      this.ex = null;
1209 chandransh 24992
    }
24993
 
24994
    public boolean isSuccess() {
24995
      return this.success;
24996
    }
24997
 
3430 rajveer 24998
    public void setSuccess(boolean success) {
1209 chandransh 24999
      this.success = success;
25000
      setSuccessIsSet(true);
25001
    }
25002
 
25003
    public void unsetSuccess() {
25004
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
25005
    }
25006
 
3430 rajveer 25007
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1209 chandransh 25008
    public boolean isSetSuccess() {
25009
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
25010
    }
25011
 
25012
    public void setSuccessIsSet(boolean value) {
25013
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
25014
    }
25015
 
25016
    public TransactionServiceException getEx() {
25017
      return this.ex;
25018
    }
25019
 
3430 rajveer 25020
    public void setEx(TransactionServiceException ex) {
1209 chandransh 25021
      this.ex = ex;
25022
    }
25023
 
25024
    public void unsetEx() {
25025
      this.ex = null;
25026
    }
25027
 
3430 rajveer 25028
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1209 chandransh 25029
    public boolean isSetEx() {
25030
      return this.ex != null;
25031
    }
25032
 
25033
    public void setExIsSet(boolean value) {
25034
      if (!value) {
25035
        this.ex = null;
25036
      }
25037
    }
25038
 
25039
    public void setFieldValue(_Fields field, Object value) {
25040
      switch (field) {
25041
      case SUCCESS:
25042
        if (value == null) {
25043
          unsetSuccess();
25044
        } else {
25045
          setSuccess((Boolean)value);
25046
        }
25047
        break;
25048
 
25049
      case EX:
25050
        if (value == null) {
25051
          unsetEx();
25052
        } else {
25053
          setEx((TransactionServiceException)value);
25054
        }
25055
        break;
25056
 
25057
      }
25058
    }
25059
 
25060
    public Object getFieldValue(_Fields field) {
25061
      switch (field) {
25062
      case SUCCESS:
3430 rajveer 25063
        return Boolean.valueOf(isSuccess());
1209 chandransh 25064
 
25065
      case EX:
25066
        return getEx();
25067
 
25068
      }
25069
      throw new IllegalStateException();
25070
    }
25071
 
3430 rajveer 25072
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25073
    public boolean isSet(_Fields field) {
25074
      if (field == null) {
25075
        throw new IllegalArgumentException();
25076
      }
1209 chandransh 25077
 
25078
      switch (field) {
25079
      case SUCCESS:
25080
        return isSetSuccess();
25081
      case EX:
25082
        return isSetEx();
25083
      }
25084
      throw new IllegalStateException();
25085
    }
25086
 
25087
    @Override
25088
    public boolean equals(Object that) {
25089
      if (that == null)
25090
        return false;
25091
      if (that instanceof markOrderAsOutOfStock_result)
25092
        return this.equals((markOrderAsOutOfStock_result)that);
25093
      return false;
25094
    }
25095
 
25096
    public boolean equals(markOrderAsOutOfStock_result that) {
25097
      if (that == null)
25098
        return false;
25099
 
25100
      boolean this_present_success = true;
25101
      boolean that_present_success = true;
25102
      if (this_present_success || that_present_success) {
25103
        if (!(this_present_success && that_present_success))
25104
          return false;
25105
        if (this.success != that.success)
25106
          return false;
25107
      }
25108
 
25109
      boolean this_present_ex = true && this.isSetEx();
25110
      boolean that_present_ex = true && that.isSetEx();
25111
      if (this_present_ex || that_present_ex) {
25112
        if (!(this_present_ex && that_present_ex))
25113
          return false;
25114
        if (!this.ex.equals(that.ex))
25115
          return false;
25116
      }
25117
 
25118
      return true;
25119
    }
25120
 
25121
    @Override
25122
    public int hashCode() {
25123
      return 0;
25124
    }
25125
 
25126
    public int compareTo(markOrderAsOutOfStock_result other) {
25127
      if (!getClass().equals(other.getClass())) {
25128
        return getClass().getName().compareTo(other.getClass().getName());
25129
      }
25130
 
25131
      int lastComparison = 0;
25132
      markOrderAsOutOfStock_result typedOther = (markOrderAsOutOfStock_result)other;
25133
 
3430 rajveer 25134
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1209 chandransh 25135
      if (lastComparison != 0) {
25136
        return lastComparison;
25137
      }
3430 rajveer 25138
      if (isSetSuccess()) {
25139
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25140
        if (lastComparison != 0) {
25141
          return lastComparison;
25142
        }
1209 chandransh 25143
      }
3430 rajveer 25144
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1209 chandransh 25145
      if (lastComparison != 0) {
25146
        return lastComparison;
25147
      }
3430 rajveer 25148
      if (isSetEx()) {
25149
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
25150
        if (lastComparison != 0) {
25151
          return lastComparison;
25152
        }
1209 chandransh 25153
      }
25154
      return 0;
25155
    }
25156
 
3430 rajveer 25157
    public _Fields fieldForId(int fieldId) {
25158
      return _Fields.findByThriftId(fieldId);
25159
    }
25160
 
25161
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25162
      org.apache.thrift.protocol.TField field;
1209 chandransh 25163
      iprot.readStructBegin();
25164
      while (true)
25165
      {
25166
        field = iprot.readFieldBegin();
3430 rajveer 25167
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1209 chandransh 25168
          break;
25169
        }
3430 rajveer 25170
        switch (field.id) {
25171
          case 0: // SUCCESS
25172
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
25173
              this.success = iprot.readBool();
25174
              setSuccessIsSet(true);
25175
            } else { 
25176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25177
            }
25178
            break;
25179
          case 1: // EX
25180
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25181
              this.ex = new TransactionServiceException();
25182
              this.ex.read(iprot);
25183
            } else { 
25184
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25185
            }
25186
            break;
25187
          default:
25188
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1209 chandransh 25189
        }
3430 rajveer 25190
        iprot.readFieldEnd();
1209 chandransh 25191
      }
25192
      iprot.readStructEnd();
25193
      validate();
25194
    }
25195
 
3430 rajveer 25196
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1209 chandransh 25197
      oprot.writeStructBegin(STRUCT_DESC);
25198
 
25199
      if (this.isSetSuccess()) {
25200
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25201
        oprot.writeBool(this.success);
25202
        oprot.writeFieldEnd();
25203
      } else if (this.isSetEx()) {
25204
        oprot.writeFieldBegin(EX_FIELD_DESC);
25205
        this.ex.write(oprot);
25206
        oprot.writeFieldEnd();
25207
      }
25208
      oprot.writeFieldStop();
25209
      oprot.writeStructEnd();
25210
    }
25211
 
25212
    @Override
25213
    public String toString() {
25214
      StringBuilder sb = new StringBuilder("markOrderAsOutOfStock_result(");
25215
      boolean first = true;
25216
 
25217
      sb.append("success:");
25218
      sb.append(this.success);
25219
      first = false;
25220
      if (!first) sb.append(", ");
25221
      sb.append("ex:");
25222
      if (this.ex == null) {
25223
        sb.append("null");
25224
      } else {
25225
        sb.append(this.ex);
25226
      }
25227
      first = false;
25228
      sb.append(")");
25229
      return sb.toString();
25230
    }
25231
 
3430 rajveer 25232
    public void validate() throws org.apache.thrift.TException {
1209 chandransh 25233
      // check for required fields
25234
    }
25235
 
3430 rajveer 25236
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25237
      try {
25238
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25239
      } catch (org.apache.thrift.TException te) {
25240
        throw new java.io.IOException(te);
25241
      }
25242
    }
25243
 
25244
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25245
      try {
25246
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25247
      } catch (org.apache.thrift.TException te) {
25248
        throw new java.io.IOException(te);
25249
      }
25250
    }
25251
 
1209 chandransh 25252
  }
25253
 
3430 rajveer 25254
  public static class verifyOrder_args implements org.apache.thrift.TBase<verifyOrder_args, verifyOrder_args._Fields>, java.io.Serializable, Cloneable   {
25255
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("verifyOrder_args");
758 chandransh 25256
 
3430 rajveer 25257
    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 25258
 
3430 rajveer 25259
    private long orderId; // required
758 chandransh 25260
 
25261
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25262
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 25263
      ORDER_ID((short)1, "orderId");
758 chandransh 25264
 
25265
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25266
 
25267
      static {
25268
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25269
          byName.put(field.getFieldName(), field);
25270
        }
25271
      }
25272
 
25273
      /**
25274
       * Find the _Fields constant that matches fieldId, or null if its not found.
25275
       */
25276
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25277
        switch(fieldId) {
25278
          case 1: // ORDER_ID
25279
            return ORDER_ID;
25280
          default:
25281
            return null;
25282
        }
758 chandransh 25283
      }
25284
 
25285
      /**
25286
       * Find the _Fields constant that matches fieldId, throwing an exception
25287
       * if it is not found.
25288
       */
25289
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25290
        _Fields fields = findByThriftId(fieldId);
25291
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25292
        return fields;
25293
      }
25294
 
25295
      /**
25296
       * Find the _Fields constant that matches name, or null if its not found.
25297
       */
25298
      public static _Fields findByName(String name) {
25299
        return byName.get(name);
25300
      }
25301
 
25302
      private final short _thriftId;
25303
      private final String _fieldName;
25304
 
25305
      _Fields(short thriftId, String fieldName) {
25306
        _thriftId = thriftId;
25307
        _fieldName = fieldName;
25308
      }
25309
 
25310
      public short getThriftFieldId() {
25311
        return _thriftId;
25312
      }
25313
 
25314
      public String getFieldName() {
25315
        return _fieldName;
25316
      }
25317
    }
25318
 
25319
    // isset id assignments
3061 chandransh 25320
    private static final int __ORDERID_ISSET_ID = 0;
25321
    private BitSet __isset_bit_vector = new BitSet(1);
758 chandransh 25322
 
3430 rajveer 25323
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
758 chandransh 25324
    static {
3430 rajveer 25325
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25326
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25327
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25328
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25329
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(verifyOrder_args.class, metaDataMap);
758 chandransh 25330
    }
25331
 
3061 chandransh 25332
    public verifyOrder_args() {
758 chandransh 25333
    }
25334
 
3061 chandransh 25335
    public verifyOrder_args(
25336
      long orderId)
758 chandransh 25337
    {
25338
      this();
3061 chandransh 25339
      this.orderId = orderId;
25340
      setOrderIdIsSet(true);
758 chandransh 25341
    }
25342
 
25343
    /**
25344
     * Performs a deep copy on <i>other</i>.
25345
     */
3061 chandransh 25346
    public verifyOrder_args(verifyOrder_args other) {
758 chandransh 25347
      __isset_bit_vector.clear();
25348
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 25349
      this.orderId = other.orderId;
758 chandransh 25350
    }
25351
 
3061 chandransh 25352
    public verifyOrder_args deepCopy() {
25353
      return new verifyOrder_args(this);
758 chandransh 25354
    }
25355
 
3430 rajveer 25356
    @Override
25357
    public void clear() {
25358
      setOrderIdIsSet(false);
25359
      this.orderId = 0;
758 chandransh 25360
    }
25361
 
3061 chandransh 25362
    public long getOrderId() {
25363
      return this.orderId;
758 chandransh 25364
    }
25365
 
3430 rajveer 25366
    public void setOrderId(long orderId) {
3061 chandransh 25367
      this.orderId = orderId;
25368
      setOrderIdIsSet(true);
758 chandransh 25369
    }
25370
 
3061 chandransh 25371
    public void unsetOrderId() {
25372
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
758 chandransh 25373
    }
25374
 
3430 rajveer 25375
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 25376
    public boolean isSetOrderId() {
25377
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
758 chandransh 25378
    }
25379
 
3061 chandransh 25380
    public void setOrderIdIsSet(boolean value) {
25381
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
758 chandransh 25382
    }
25383
 
25384
    public void setFieldValue(_Fields field, Object value) {
25385
      switch (field) {
3061 chandransh 25386
      case ORDER_ID:
758 chandransh 25387
        if (value == null) {
3061 chandransh 25388
          unsetOrderId();
758 chandransh 25389
        } else {
3061 chandransh 25390
          setOrderId((Long)value);
758 chandransh 25391
        }
25392
        break;
25393
 
25394
      }
25395
    }
25396
 
25397
    public Object getFieldValue(_Fields field) {
25398
      switch (field) {
3061 chandransh 25399
      case ORDER_ID:
3430 rajveer 25400
        return Long.valueOf(getOrderId());
758 chandransh 25401
 
25402
      }
25403
      throw new IllegalStateException();
25404
    }
25405
 
3430 rajveer 25406
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25407
    public boolean isSet(_Fields field) {
25408
      if (field == null) {
25409
        throw new IllegalArgumentException();
25410
      }
758 chandransh 25411
 
25412
      switch (field) {
3061 chandransh 25413
      case ORDER_ID:
25414
        return isSetOrderId();
758 chandransh 25415
      }
25416
      throw new IllegalStateException();
25417
    }
25418
 
25419
    @Override
25420
    public boolean equals(Object that) {
25421
      if (that == null)
25422
        return false;
3061 chandransh 25423
      if (that instanceof verifyOrder_args)
25424
        return this.equals((verifyOrder_args)that);
758 chandransh 25425
      return false;
25426
    }
25427
 
3061 chandransh 25428
    public boolean equals(verifyOrder_args that) {
758 chandransh 25429
      if (that == null)
25430
        return false;
25431
 
3061 chandransh 25432
      boolean this_present_orderId = true;
25433
      boolean that_present_orderId = true;
25434
      if (this_present_orderId || that_present_orderId) {
25435
        if (!(this_present_orderId && that_present_orderId))
758 chandransh 25436
          return false;
3061 chandransh 25437
        if (this.orderId != that.orderId)
758 chandransh 25438
          return false;
25439
      }
25440
 
25441
      return true;
25442
    }
25443
 
25444
    @Override
25445
    public int hashCode() {
25446
      return 0;
25447
    }
25448
 
3061 chandransh 25449
    public int compareTo(verifyOrder_args other) {
758 chandransh 25450
      if (!getClass().equals(other.getClass())) {
25451
        return getClass().getName().compareTo(other.getClass().getName());
25452
      }
25453
 
25454
      int lastComparison = 0;
3061 chandransh 25455
      verifyOrder_args typedOther = (verifyOrder_args)other;
758 chandransh 25456
 
3430 rajveer 25457
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
758 chandransh 25458
      if (lastComparison != 0) {
25459
        return lastComparison;
25460
      }
3430 rajveer 25461
      if (isSetOrderId()) {
25462
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
25463
        if (lastComparison != 0) {
25464
          return lastComparison;
25465
        }
758 chandransh 25466
      }
25467
      return 0;
25468
    }
25469
 
3430 rajveer 25470
    public _Fields fieldForId(int fieldId) {
25471
      return _Fields.findByThriftId(fieldId);
25472
    }
25473
 
25474
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25475
      org.apache.thrift.protocol.TField field;
758 chandransh 25476
      iprot.readStructBegin();
25477
      while (true)
25478
      {
25479
        field = iprot.readFieldBegin();
3430 rajveer 25480
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
758 chandransh 25481
          break;
25482
        }
3430 rajveer 25483
        switch (field.id) {
25484
          case 1: // ORDER_ID
25485
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25486
              this.orderId = iprot.readI64();
25487
              setOrderIdIsSet(true);
25488
            } else { 
25489
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25490
            }
25491
            break;
25492
          default:
25493
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
758 chandransh 25494
        }
3430 rajveer 25495
        iprot.readFieldEnd();
758 chandransh 25496
      }
25497
      iprot.readStructEnd();
25498
      validate();
25499
    }
25500
 
3430 rajveer 25501
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
758 chandransh 25502
      validate();
25503
 
25504
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 25505
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
25506
      oprot.writeI64(this.orderId);
758 chandransh 25507
      oprot.writeFieldEnd();
25508
      oprot.writeFieldStop();
25509
      oprot.writeStructEnd();
25510
    }
25511
 
25512
    @Override
25513
    public String toString() {
3061 chandransh 25514
      StringBuilder sb = new StringBuilder("verifyOrder_args(");
758 chandransh 25515
      boolean first = true;
25516
 
3061 chandransh 25517
      sb.append("orderId:");
25518
      sb.append(this.orderId);
758 chandransh 25519
      first = false;
25520
      sb.append(")");
25521
      return sb.toString();
25522
    }
25523
 
3430 rajveer 25524
    public void validate() throws org.apache.thrift.TException {
758 chandransh 25525
      // check for required fields
25526
    }
25527
 
3430 rajveer 25528
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25529
      try {
25530
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25531
      } catch (org.apache.thrift.TException te) {
25532
        throw new java.io.IOException(te);
25533
      }
25534
    }
25535
 
25536
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25537
      try {
25538
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25539
      } catch (org.apache.thrift.TException te) {
25540
        throw new java.io.IOException(te);
25541
      }
25542
    }
25543
 
758 chandransh 25544
  }
25545
 
3430 rajveer 25546
  public static class verifyOrder_result implements org.apache.thrift.TBase<verifyOrder_result, verifyOrder_result._Fields>, java.io.Serializable, Cloneable   {
25547
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("verifyOrder_result");
758 chandransh 25548
 
3430 rajveer 25549
    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);
25550
    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 25551
 
3430 rajveer 25552
    private boolean success; // required
25553
    private TransactionServiceException ex; // required
758 chandransh 25554
 
25555
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25556
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
758 chandransh 25557
      SUCCESS((short)0, "success"),
25558
      EX((short)1, "ex");
25559
 
25560
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25561
 
25562
      static {
25563
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25564
          byName.put(field.getFieldName(), field);
25565
        }
25566
      }
25567
 
25568
      /**
25569
       * Find the _Fields constant that matches fieldId, or null if its not found.
25570
       */
25571
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25572
        switch(fieldId) {
25573
          case 0: // SUCCESS
25574
            return SUCCESS;
25575
          case 1: // EX
25576
            return EX;
25577
          default:
25578
            return null;
25579
        }
758 chandransh 25580
      }
25581
 
25582
      /**
25583
       * Find the _Fields constant that matches fieldId, throwing an exception
25584
       * if it is not found.
25585
       */
25586
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25587
        _Fields fields = findByThriftId(fieldId);
25588
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25589
        return fields;
25590
      }
25591
 
25592
      /**
25593
       * Find the _Fields constant that matches name, or null if its not found.
25594
       */
25595
      public static _Fields findByName(String name) {
25596
        return byName.get(name);
25597
      }
25598
 
25599
      private final short _thriftId;
25600
      private final String _fieldName;
25601
 
25602
      _Fields(short thriftId, String fieldName) {
25603
        _thriftId = thriftId;
25604
        _fieldName = fieldName;
25605
      }
25606
 
25607
      public short getThriftFieldId() {
25608
        return _thriftId;
25609
      }
25610
 
25611
      public String getFieldName() {
25612
        return _fieldName;
25613
      }
25614
    }
25615
 
25616
    // isset id assignments
25617
    private static final int __SUCCESS_ISSET_ID = 0;
25618
    private BitSet __isset_bit_vector = new BitSet(1);
25619
 
3430 rajveer 25620
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
758 chandransh 25621
    static {
3430 rajveer 25622
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25623
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25624
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
25625
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25626
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25627
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25628
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(verifyOrder_result.class, metaDataMap);
758 chandransh 25629
    }
25630
 
3061 chandransh 25631
    public verifyOrder_result() {
758 chandransh 25632
    }
25633
 
3061 chandransh 25634
    public verifyOrder_result(
758 chandransh 25635
      boolean success,
25636
      TransactionServiceException ex)
25637
    {
25638
      this();
25639
      this.success = success;
25640
      setSuccessIsSet(true);
25641
      this.ex = ex;
25642
    }
25643
 
25644
    /**
25645
     * Performs a deep copy on <i>other</i>.
25646
     */
3061 chandransh 25647
    public verifyOrder_result(verifyOrder_result other) {
758 chandransh 25648
      __isset_bit_vector.clear();
25649
      __isset_bit_vector.or(other.__isset_bit_vector);
25650
      this.success = other.success;
25651
      if (other.isSetEx()) {
25652
        this.ex = new TransactionServiceException(other.ex);
25653
      }
25654
    }
25655
 
3061 chandransh 25656
    public verifyOrder_result deepCopy() {
25657
      return new verifyOrder_result(this);
758 chandransh 25658
    }
25659
 
3430 rajveer 25660
    @Override
25661
    public void clear() {
25662
      setSuccessIsSet(false);
25663
      this.success = false;
25664
      this.ex = null;
758 chandransh 25665
    }
25666
 
25667
    public boolean isSuccess() {
25668
      return this.success;
25669
    }
25670
 
3430 rajveer 25671
    public void setSuccess(boolean success) {
758 chandransh 25672
      this.success = success;
25673
      setSuccessIsSet(true);
25674
    }
25675
 
25676
    public void unsetSuccess() {
25677
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
25678
    }
25679
 
3430 rajveer 25680
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
758 chandransh 25681
    public boolean isSetSuccess() {
25682
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
25683
    }
25684
 
25685
    public void setSuccessIsSet(boolean value) {
25686
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
25687
    }
25688
 
25689
    public TransactionServiceException getEx() {
25690
      return this.ex;
25691
    }
25692
 
3430 rajveer 25693
    public void setEx(TransactionServiceException ex) {
758 chandransh 25694
      this.ex = ex;
25695
    }
25696
 
25697
    public void unsetEx() {
25698
      this.ex = null;
25699
    }
25700
 
3430 rajveer 25701
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
758 chandransh 25702
    public boolean isSetEx() {
25703
      return this.ex != null;
25704
    }
25705
 
25706
    public void setExIsSet(boolean value) {
25707
      if (!value) {
25708
        this.ex = null;
25709
      }
25710
    }
25711
 
25712
    public void setFieldValue(_Fields field, Object value) {
25713
      switch (field) {
25714
      case SUCCESS:
25715
        if (value == null) {
25716
          unsetSuccess();
25717
        } else {
25718
          setSuccess((Boolean)value);
25719
        }
25720
        break;
25721
 
25722
      case EX:
25723
        if (value == null) {
25724
          unsetEx();
25725
        } else {
25726
          setEx((TransactionServiceException)value);
25727
        }
25728
        break;
25729
 
25730
      }
25731
    }
25732
 
25733
    public Object getFieldValue(_Fields field) {
25734
      switch (field) {
25735
      case SUCCESS:
3430 rajveer 25736
        return Boolean.valueOf(isSuccess());
758 chandransh 25737
 
25738
      case EX:
25739
        return getEx();
25740
 
25741
      }
25742
      throw new IllegalStateException();
25743
    }
25744
 
3430 rajveer 25745
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25746
    public boolean isSet(_Fields field) {
25747
      if (field == null) {
25748
        throw new IllegalArgumentException();
25749
      }
758 chandransh 25750
 
25751
      switch (field) {
25752
      case SUCCESS:
25753
        return isSetSuccess();
25754
      case EX:
25755
        return isSetEx();
25756
      }
25757
      throw new IllegalStateException();
25758
    }
25759
 
25760
    @Override
25761
    public boolean equals(Object that) {
25762
      if (that == null)
25763
        return false;
3061 chandransh 25764
      if (that instanceof verifyOrder_result)
25765
        return this.equals((verifyOrder_result)that);
758 chandransh 25766
      return false;
25767
    }
25768
 
3061 chandransh 25769
    public boolean equals(verifyOrder_result that) {
758 chandransh 25770
      if (that == null)
25771
        return false;
25772
 
25773
      boolean this_present_success = true;
25774
      boolean that_present_success = true;
25775
      if (this_present_success || that_present_success) {
25776
        if (!(this_present_success && that_present_success))
25777
          return false;
25778
        if (this.success != that.success)
25779
          return false;
25780
      }
25781
 
25782
      boolean this_present_ex = true && this.isSetEx();
25783
      boolean that_present_ex = true && that.isSetEx();
25784
      if (this_present_ex || that_present_ex) {
25785
        if (!(this_present_ex && that_present_ex))
25786
          return false;
25787
        if (!this.ex.equals(that.ex))
25788
          return false;
25789
      }
25790
 
25791
      return true;
25792
    }
25793
 
25794
    @Override
25795
    public int hashCode() {
25796
      return 0;
25797
    }
25798
 
3061 chandransh 25799
    public int compareTo(verifyOrder_result other) {
758 chandransh 25800
      if (!getClass().equals(other.getClass())) {
25801
        return getClass().getName().compareTo(other.getClass().getName());
25802
      }
25803
 
25804
      int lastComparison = 0;
3061 chandransh 25805
      verifyOrder_result typedOther = (verifyOrder_result)other;
758 chandransh 25806
 
3430 rajveer 25807
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
758 chandransh 25808
      if (lastComparison != 0) {
25809
        return lastComparison;
25810
      }
3430 rajveer 25811
      if (isSetSuccess()) {
25812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25813
        if (lastComparison != 0) {
25814
          return lastComparison;
25815
        }
758 chandransh 25816
      }
3430 rajveer 25817
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
758 chandransh 25818
      if (lastComparison != 0) {
25819
        return lastComparison;
25820
      }
3430 rajveer 25821
      if (isSetEx()) {
25822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
25823
        if (lastComparison != 0) {
25824
          return lastComparison;
25825
        }
758 chandransh 25826
      }
25827
      return 0;
25828
    }
25829
 
3430 rajveer 25830
    public _Fields fieldForId(int fieldId) {
25831
      return _Fields.findByThriftId(fieldId);
25832
    }
25833
 
25834
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25835
      org.apache.thrift.protocol.TField field;
758 chandransh 25836
      iprot.readStructBegin();
25837
      while (true)
25838
      {
25839
        field = iprot.readFieldBegin();
3430 rajveer 25840
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
758 chandransh 25841
          break;
25842
        }
3430 rajveer 25843
        switch (field.id) {
25844
          case 0: // SUCCESS
25845
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
25846
              this.success = iprot.readBool();
25847
              setSuccessIsSet(true);
25848
            } else { 
25849
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25850
            }
25851
            break;
25852
          case 1: // EX
25853
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25854
              this.ex = new TransactionServiceException();
25855
              this.ex.read(iprot);
25856
            } else { 
25857
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25858
            }
25859
            break;
25860
          default:
25861
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
758 chandransh 25862
        }
3430 rajveer 25863
        iprot.readFieldEnd();
758 chandransh 25864
      }
25865
      iprot.readStructEnd();
25866
      validate();
25867
    }
25868
 
3430 rajveer 25869
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
758 chandransh 25870
      oprot.writeStructBegin(STRUCT_DESC);
25871
 
25872
      if (this.isSetSuccess()) {
25873
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25874
        oprot.writeBool(this.success);
25875
        oprot.writeFieldEnd();
25876
      } else if (this.isSetEx()) {
25877
        oprot.writeFieldBegin(EX_FIELD_DESC);
25878
        this.ex.write(oprot);
25879
        oprot.writeFieldEnd();
25880
      }
25881
      oprot.writeFieldStop();
25882
      oprot.writeStructEnd();
25883
    }
25884
 
25885
    @Override
25886
    public String toString() {
3061 chandransh 25887
      StringBuilder sb = new StringBuilder("verifyOrder_result(");
758 chandransh 25888
      boolean first = true;
25889
 
25890
      sb.append("success:");
25891
      sb.append(this.success);
25892
      first = false;
25893
      if (!first) sb.append(", ");
25894
      sb.append("ex:");
25895
      if (this.ex == null) {
25896
        sb.append("null");
25897
      } else {
25898
        sb.append(this.ex);
25899
      }
25900
      first = false;
25901
      sb.append(")");
25902
      return sb.toString();
25903
    }
25904
 
3430 rajveer 25905
    public void validate() throws org.apache.thrift.TException {
758 chandransh 25906
      // check for required fields
25907
    }
25908
 
3430 rajveer 25909
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25910
      try {
25911
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25912
      } catch (org.apache.thrift.TException te) {
25913
        throw new java.io.IOException(te);
25914
      }
25915
    }
25916
 
25917
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25918
      try {
25919
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25920
      } catch (org.apache.thrift.TException te) {
25921
        throw new java.io.IOException(te);
25922
      }
25923
    }
25924
 
758 chandransh 25925
  }
25926
 
3430 rajveer 25927
  public static class acceptOrder_args implements org.apache.thrift.TBase<acceptOrder_args, acceptOrder_args._Fields>, java.io.Serializable, Cloneable   {
25928
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrder_args");
1114 chandransh 25929
 
3430 rajveer 25930
    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 25931
 
3430 rajveer 25932
    private long orderId; // required
1114 chandransh 25933
 
25934
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25935
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 25936
      ORDER_ID((short)1, "orderId");
1114 chandransh 25937
 
25938
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25939
 
25940
      static {
25941
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25942
          byName.put(field.getFieldName(), field);
25943
        }
25944
      }
25945
 
25946
      /**
25947
       * Find the _Fields constant that matches fieldId, or null if its not found.
25948
       */
25949
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25950
        switch(fieldId) {
25951
          case 1: // ORDER_ID
25952
            return ORDER_ID;
25953
          default:
25954
            return null;
25955
        }
1114 chandransh 25956
      }
25957
 
25958
      /**
25959
       * Find the _Fields constant that matches fieldId, throwing an exception
25960
       * if it is not found.
25961
       */
25962
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25963
        _Fields fields = findByThriftId(fieldId);
25964
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25965
        return fields;
25966
      }
25967
 
25968
      /**
25969
       * Find the _Fields constant that matches name, or null if its not found.
25970
       */
25971
      public static _Fields findByName(String name) {
25972
        return byName.get(name);
25973
      }
25974
 
25975
      private final short _thriftId;
25976
      private final String _fieldName;
25977
 
25978
      _Fields(short thriftId, String fieldName) {
25979
        _thriftId = thriftId;
25980
        _fieldName = fieldName;
25981
      }
25982
 
25983
      public short getThriftFieldId() {
25984
        return _thriftId;
25985
      }
25986
 
25987
      public String getFieldName() {
25988
        return _fieldName;
25989
      }
25990
    }
25991
 
25992
    // isset id assignments
3061 chandransh 25993
    private static final int __ORDERID_ISSET_ID = 0;
1114 chandransh 25994
    private BitSet __isset_bit_vector = new BitSet(1);
25995
 
3430 rajveer 25996
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1114 chandransh 25997
    static {
3430 rajveer 25998
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25999
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26000
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26001
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26002
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrder_args.class, metaDataMap);
1114 chandransh 26003
    }
26004
 
3061 chandransh 26005
    public acceptOrder_args() {
1114 chandransh 26006
    }
26007
 
3061 chandransh 26008
    public acceptOrder_args(
26009
      long orderId)
1114 chandransh 26010
    {
26011
      this();
3061 chandransh 26012
      this.orderId = orderId;
26013
      setOrderIdIsSet(true);
1114 chandransh 26014
    }
26015
 
26016
    /**
26017
     * Performs a deep copy on <i>other</i>.
26018
     */
3061 chandransh 26019
    public acceptOrder_args(acceptOrder_args other) {
1114 chandransh 26020
      __isset_bit_vector.clear();
26021
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 26022
      this.orderId = other.orderId;
1114 chandransh 26023
    }
26024
 
3061 chandransh 26025
    public acceptOrder_args deepCopy() {
26026
      return new acceptOrder_args(this);
1114 chandransh 26027
    }
26028
 
3430 rajveer 26029
    @Override
26030
    public void clear() {
26031
      setOrderIdIsSet(false);
26032
      this.orderId = 0;
1114 chandransh 26033
    }
26034
 
3061 chandransh 26035
    public long getOrderId() {
26036
      return this.orderId;
1114 chandransh 26037
    }
26038
 
3430 rajveer 26039
    public void setOrderId(long orderId) {
3061 chandransh 26040
      this.orderId = orderId;
26041
      setOrderIdIsSet(true);
1114 chandransh 26042
    }
26043
 
3061 chandransh 26044
    public void unsetOrderId() {
26045
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
1114 chandransh 26046
    }
26047
 
3430 rajveer 26048
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 26049
    public boolean isSetOrderId() {
26050
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
1114 chandransh 26051
    }
26052
 
3061 chandransh 26053
    public void setOrderIdIsSet(boolean value) {
26054
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
1114 chandransh 26055
    }
26056
 
26057
    public void setFieldValue(_Fields field, Object value) {
26058
      switch (field) {
3061 chandransh 26059
      case ORDER_ID:
1114 chandransh 26060
        if (value == null) {
3061 chandransh 26061
          unsetOrderId();
1114 chandransh 26062
        } else {
3061 chandransh 26063
          setOrderId((Long)value);
1114 chandransh 26064
        }
26065
        break;
26066
 
26067
      }
26068
    }
26069
 
26070
    public Object getFieldValue(_Fields field) {
26071
      switch (field) {
3061 chandransh 26072
      case ORDER_ID:
3430 rajveer 26073
        return Long.valueOf(getOrderId());
1114 chandransh 26074
 
26075
      }
26076
      throw new IllegalStateException();
26077
    }
26078
 
3430 rajveer 26079
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26080
    public boolean isSet(_Fields field) {
26081
      if (field == null) {
26082
        throw new IllegalArgumentException();
26083
      }
1114 chandransh 26084
 
26085
      switch (field) {
3061 chandransh 26086
      case ORDER_ID:
26087
        return isSetOrderId();
1114 chandransh 26088
      }
26089
      throw new IllegalStateException();
26090
    }
26091
 
26092
    @Override
26093
    public boolean equals(Object that) {
26094
      if (that == null)
26095
        return false;
3061 chandransh 26096
      if (that instanceof acceptOrder_args)
26097
        return this.equals((acceptOrder_args)that);
1114 chandransh 26098
      return false;
26099
    }
26100
 
3061 chandransh 26101
    public boolean equals(acceptOrder_args that) {
1114 chandransh 26102
      if (that == null)
26103
        return false;
26104
 
3061 chandransh 26105
      boolean this_present_orderId = true;
26106
      boolean that_present_orderId = true;
26107
      if (this_present_orderId || that_present_orderId) {
26108
        if (!(this_present_orderId && that_present_orderId))
1114 chandransh 26109
          return false;
3061 chandransh 26110
        if (this.orderId != that.orderId)
1114 chandransh 26111
          return false;
26112
      }
26113
 
26114
      return true;
26115
    }
26116
 
26117
    @Override
26118
    public int hashCode() {
26119
      return 0;
26120
    }
26121
 
3061 chandransh 26122
    public int compareTo(acceptOrder_args other) {
26123
      if (!getClass().equals(other.getClass())) {
26124
        return getClass().getName().compareTo(other.getClass().getName());
26125
      }
26126
 
26127
      int lastComparison = 0;
26128
      acceptOrder_args typedOther = (acceptOrder_args)other;
26129
 
3430 rajveer 26130
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
3061 chandransh 26131
      if (lastComparison != 0) {
26132
        return lastComparison;
26133
      }
3430 rajveer 26134
      if (isSetOrderId()) {
26135
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
26136
        if (lastComparison != 0) {
26137
          return lastComparison;
26138
        }
3061 chandransh 26139
      }
26140
      return 0;
26141
    }
26142
 
3430 rajveer 26143
    public _Fields fieldForId(int fieldId) {
26144
      return _Fields.findByThriftId(fieldId);
26145
    }
26146
 
26147
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26148
      org.apache.thrift.protocol.TField field;
1114 chandransh 26149
      iprot.readStructBegin();
26150
      while (true)
26151
      {
26152
        field = iprot.readFieldBegin();
3430 rajveer 26153
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1114 chandransh 26154
          break;
26155
        }
3430 rajveer 26156
        switch (field.id) {
26157
          case 1: // ORDER_ID
26158
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26159
              this.orderId = iprot.readI64();
26160
              setOrderIdIsSet(true);
26161
            } else { 
26162
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26163
            }
26164
            break;
26165
          default:
26166
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1114 chandransh 26167
        }
3430 rajveer 26168
        iprot.readFieldEnd();
1114 chandransh 26169
      }
26170
      iprot.readStructEnd();
26171
      validate();
26172
    }
26173
 
3430 rajveer 26174
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1114 chandransh 26175
      validate();
26176
 
26177
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 26178
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
26179
      oprot.writeI64(this.orderId);
1114 chandransh 26180
      oprot.writeFieldEnd();
26181
      oprot.writeFieldStop();
26182
      oprot.writeStructEnd();
26183
    }
26184
 
26185
    @Override
26186
    public String toString() {
3061 chandransh 26187
      StringBuilder sb = new StringBuilder("acceptOrder_args(");
1114 chandransh 26188
      boolean first = true;
26189
 
3061 chandransh 26190
      sb.append("orderId:");
26191
      sb.append(this.orderId);
1114 chandransh 26192
      first = false;
26193
      sb.append(")");
26194
      return sb.toString();
26195
    }
26196
 
3430 rajveer 26197
    public void validate() throws org.apache.thrift.TException {
1114 chandransh 26198
      // check for required fields
26199
    }
26200
 
3430 rajveer 26201
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26202
      try {
26203
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26204
      } catch (org.apache.thrift.TException te) {
26205
        throw new java.io.IOException(te);
26206
      }
26207
    }
26208
 
26209
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26210
      try {
26211
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26212
      } catch (org.apache.thrift.TException te) {
26213
        throw new java.io.IOException(te);
26214
      }
26215
    }
26216
 
1114 chandransh 26217
  }
26218
 
3430 rajveer 26219
  public static class acceptOrder_result implements org.apache.thrift.TBase<acceptOrder_result, acceptOrder_result._Fields>, java.io.Serializable, Cloneable   {
26220
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrder_result");
1114 chandransh 26221
 
3430 rajveer 26222
    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);
26223
    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 26224
 
3430 rajveer 26225
    private boolean success; // required
26226
    private TransactionServiceException ex; // required
1114 chandransh 26227
 
26228
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26229
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1114 chandransh 26230
      SUCCESS((short)0, "success"),
26231
      EX((short)1, "ex");
26232
 
26233
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26234
 
26235
      static {
26236
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26237
          byName.put(field.getFieldName(), field);
26238
        }
26239
      }
26240
 
26241
      /**
26242
       * Find the _Fields constant that matches fieldId, or null if its not found.
26243
       */
26244
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26245
        switch(fieldId) {
26246
          case 0: // SUCCESS
26247
            return SUCCESS;
26248
          case 1: // EX
26249
            return EX;
26250
          default:
26251
            return null;
26252
        }
1114 chandransh 26253
      }
26254
 
26255
      /**
26256
       * Find the _Fields constant that matches fieldId, throwing an exception
26257
       * if it is not found.
26258
       */
26259
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26260
        _Fields fields = findByThriftId(fieldId);
26261
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26262
        return fields;
26263
      }
26264
 
26265
      /**
26266
       * Find the _Fields constant that matches name, or null if its not found.
26267
       */
26268
      public static _Fields findByName(String name) {
26269
        return byName.get(name);
26270
      }
26271
 
26272
      private final short _thriftId;
26273
      private final String _fieldName;
26274
 
26275
      _Fields(short thriftId, String fieldName) {
26276
        _thriftId = thriftId;
26277
        _fieldName = fieldName;
26278
      }
26279
 
26280
      public short getThriftFieldId() {
26281
        return _thriftId;
26282
      }
26283
 
26284
      public String getFieldName() {
26285
        return _fieldName;
26286
      }
26287
    }
26288
 
26289
    // isset id assignments
3061 chandransh 26290
    private static final int __SUCCESS_ISSET_ID = 0;
26291
    private BitSet __isset_bit_vector = new BitSet(1);
1114 chandransh 26292
 
3430 rajveer 26293
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1114 chandransh 26294
    static {
3430 rajveer 26295
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26296
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26297
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
26298
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26299
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26300
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26301
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrder_result.class, metaDataMap);
1114 chandransh 26302
    }
26303
 
3061 chandransh 26304
    public acceptOrder_result() {
1114 chandransh 26305
    }
26306
 
3061 chandransh 26307
    public acceptOrder_result(
26308
      boolean success,
1114 chandransh 26309
      TransactionServiceException ex)
26310
    {
26311
      this();
26312
      this.success = success;
3061 chandransh 26313
      setSuccessIsSet(true);
1114 chandransh 26314
      this.ex = ex;
26315
    }
26316
 
26317
    /**
26318
     * Performs a deep copy on <i>other</i>.
26319
     */
3061 chandransh 26320
    public acceptOrder_result(acceptOrder_result other) {
26321
      __isset_bit_vector.clear();
26322
      __isset_bit_vector.or(other.__isset_bit_vector);
26323
      this.success = other.success;
1114 chandransh 26324
      if (other.isSetEx()) {
26325
        this.ex = new TransactionServiceException(other.ex);
26326
      }
26327
    }
26328
 
3061 chandransh 26329
    public acceptOrder_result deepCopy() {
26330
      return new acceptOrder_result(this);
1114 chandransh 26331
    }
26332
 
3430 rajveer 26333
    @Override
26334
    public void clear() {
26335
      setSuccessIsSet(false);
26336
      this.success = false;
26337
      this.ex = null;
1114 chandransh 26338
    }
26339
 
3061 chandransh 26340
    public boolean isSuccess() {
1114 chandransh 26341
      return this.success;
26342
    }
26343
 
3430 rajveer 26344
    public void setSuccess(boolean success) {
1114 chandransh 26345
      this.success = success;
3061 chandransh 26346
      setSuccessIsSet(true);
1114 chandransh 26347
    }
26348
 
26349
    public void unsetSuccess() {
3061 chandransh 26350
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
1114 chandransh 26351
    }
26352
 
3430 rajveer 26353
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1114 chandransh 26354
    public boolean isSetSuccess() {
3061 chandransh 26355
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
1114 chandransh 26356
    }
26357
 
26358
    public void setSuccessIsSet(boolean value) {
3061 chandransh 26359
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
1114 chandransh 26360
    }
26361
 
26362
    public TransactionServiceException getEx() {
26363
      return this.ex;
26364
    }
26365
 
3430 rajveer 26366
    public void setEx(TransactionServiceException ex) {
1114 chandransh 26367
      this.ex = ex;
26368
    }
26369
 
26370
    public void unsetEx() {
26371
      this.ex = null;
26372
    }
26373
 
3430 rajveer 26374
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1114 chandransh 26375
    public boolean isSetEx() {
26376
      return this.ex != null;
26377
    }
26378
 
26379
    public void setExIsSet(boolean value) {
26380
      if (!value) {
26381
        this.ex = null;
26382
      }
26383
    }
26384
 
26385
    public void setFieldValue(_Fields field, Object value) {
26386
      switch (field) {
26387
      case SUCCESS:
26388
        if (value == null) {
26389
          unsetSuccess();
26390
        } else {
3061 chandransh 26391
          setSuccess((Boolean)value);
1114 chandransh 26392
        }
26393
        break;
26394
 
26395
      case EX:
26396
        if (value == null) {
26397
          unsetEx();
26398
        } else {
26399
          setEx((TransactionServiceException)value);
26400
        }
26401
        break;
26402
 
26403
      }
26404
    }
26405
 
26406
    public Object getFieldValue(_Fields field) {
26407
      switch (field) {
26408
      case SUCCESS:
3430 rajveer 26409
        return Boolean.valueOf(isSuccess());
1114 chandransh 26410
 
26411
      case EX:
26412
        return getEx();
26413
 
26414
      }
26415
      throw new IllegalStateException();
26416
    }
26417
 
3430 rajveer 26418
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26419
    public boolean isSet(_Fields field) {
26420
      if (field == null) {
26421
        throw new IllegalArgumentException();
26422
      }
1114 chandransh 26423
 
26424
      switch (field) {
26425
      case SUCCESS:
26426
        return isSetSuccess();
26427
      case EX:
26428
        return isSetEx();
26429
      }
26430
      throw new IllegalStateException();
26431
    }
26432
 
26433
    @Override
26434
    public boolean equals(Object that) {
26435
      if (that == null)
26436
        return false;
3061 chandransh 26437
      if (that instanceof acceptOrder_result)
26438
        return this.equals((acceptOrder_result)that);
1114 chandransh 26439
      return false;
26440
    }
26441
 
3061 chandransh 26442
    public boolean equals(acceptOrder_result that) {
1114 chandransh 26443
      if (that == null)
26444
        return false;
26445
 
3061 chandransh 26446
      boolean this_present_success = true;
26447
      boolean that_present_success = true;
1114 chandransh 26448
      if (this_present_success || that_present_success) {
26449
        if (!(this_present_success && that_present_success))
26450
          return false;
3061 chandransh 26451
        if (this.success != that.success)
1114 chandransh 26452
          return false;
26453
      }
26454
 
26455
      boolean this_present_ex = true && this.isSetEx();
26456
      boolean that_present_ex = true && that.isSetEx();
26457
      if (this_present_ex || that_present_ex) {
26458
        if (!(this_present_ex && that_present_ex))
26459
          return false;
26460
        if (!this.ex.equals(that.ex))
26461
          return false;
26462
      }
26463
 
26464
      return true;
26465
    }
26466
 
26467
    @Override
26468
    public int hashCode() {
26469
      return 0;
26470
    }
26471
 
3061 chandransh 26472
    public int compareTo(acceptOrder_result other) {
1114 chandransh 26473
      if (!getClass().equals(other.getClass())) {
26474
        return getClass().getName().compareTo(other.getClass().getName());
26475
      }
26476
 
26477
      int lastComparison = 0;
3061 chandransh 26478
      acceptOrder_result typedOther = (acceptOrder_result)other;
1114 chandransh 26479
 
3430 rajveer 26480
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1114 chandransh 26481
      if (lastComparison != 0) {
26482
        return lastComparison;
26483
      }
3430 rajveer 26484
      if (isSetSuccess()) {
26485
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26486
        if (lastComparison != 0) {
26487
          return lastComparison;
26488
        }
1114 chandransh 26489
      }
3430 rajveer 26490
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1114 chandransh 26491
      if (lastComparison != 0) {
26492
        return lastComparison;
26493
      }
3430 rajveer 26494
      if (isSetEx()) {
26495
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
26496
        if (lastComparison != 0) {
26497
          return lastComparison;
26498
        }
1114 chandransh 26499
      }
26500
      return 0;
26501
    }
26502
 
3430 rajveer 26503
    public _Fields fieldForId(int fieldId) {
26504
      return _Fields.findByThriftId(fieldId);
26505
    }
26506
 
26507
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26508
      org.apache.thrift.protocol.TField field;
1114 chandransh 26509
      iprot.readStructBegin();
26510
      while (true)
26511
      {
26512
        field = iprot.readFieldBegin();
3430 rajveer 26513
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1114 chandransh 26514
          break;
26515
        }
3430 rajveer 26516
        switch (field.id) {
26517
          case 0: // SUCCESS
26518
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
26519
              this.success = iprot.readBool();
26520
              setSuccessIsSet(true);
26521
            } else { 
26522
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26523
            }
26524
            break;
26525
          case 1: // EX
26526
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26527
              this.ex = new TransactionServiceException();
26528
              this.ex.read(iprot);
26529
            } else { 
26530
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26531
            }
26532
            break;
26533
          default:
26534
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1114 chandransh 26535
        }
3430 rajveer 26536
        iprot.readFieldEnd();
1114 chandransh 26537
      }
26538
      iprot.readStructEnd();
26539
      validate();
26540
    }
26541
 
3430 rajveer 26542
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1114 chandransh 26543
      oprot.writeStructBegin(STRUCT_DESC);
26544
 
26545
      if (this.isSetSuccess()) {
26546
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 26547
        oprot.writeBool(this.success);
1114 chandransh 26548
        oprot.writeFieldEnd();
26549
      } else if (this.isSetEx()) {
26550
        oprot.writeFieldBegin(EX_FIELD_DESC);
26551
        this.ex.write(oprot);
26552
        oprot.writeFieldEnd();
26553
      }
26554
      oprot.writeFieldStop();
26555
      oprot.writeStructEnd();
26556
    }
26557
 
26558
    @Override
26559
    public String toString() {
3061 chandransh 26560
      StringBuilder sb = new StringBuilder("acceptOrder_result(");
1114 chandransh 26561
      boolean first = true;
26562
 
26563
      sb.append("success:");
3061 chandransh 26564
      sb.append(this.success);
1114 chandransh 26565
      first = false;
26566
      if (!first) sb.append(", ");
26567
      sb.append("ex:");
26568
      if (this.ex == null) {
26569
        sb.append("null");
26570
      } else {
26571
        sb.append(this.ex);
26572
      }
26573
      first = false;
26574
      sb.append(")");
26575
      return sb.toString();
26576
    }
26577
 
3430 rajveer 26578
    public void validate() throws org.apache.thrift.TException {
1114 chandransh 26579
      // check for required fields
26580
    }
26581
 
3430 rajveer 26582
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26583
      try {
26584
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26585
      } catch (org.apache.thrift.TException te) {
26586
        throw new java.io.IOException(te);
26587
      }
26588
    }
26589
 
26590
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26591
      try {
26592
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26593
      } catch (org.apache.thrift.TException te) {
26594
        throw new java.io.IOException(te);
26595
      }
26596
    }
26597
 
1114 chandransh 26598
  }
26599
 
3430 rajveer 26600
  public static class billOrder_args implements org.apache.thrift.TBase<billOrder_args, billOrder_args._Fields>, java.io.Serializable, Cloneable   {
26601
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("billOrder_args");
1133 chandransh 26602
 
3430 rajveer 26603
    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 26604
 
3430 rajveer 26605
    private long orderId; // required
1133 chandransh 26606
 
26607
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26608
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 26609
      ORDER_ID((short)1, "orderId");
1133 chandransh 26610
 
26611
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26612
 
26613
      static {
26614
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26615
          byName.put(field.getFieldName(), field);
26616
        }
26617
      }
26618
 
26619
      /**
26620
       * Find the _Fields constant that matches fieldId, or null if its not found.
26621
       */
26622
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26623
        switch(fieldId) {
26624
          case 1: // ORDER_ID
26625
            return ORDER_ID;
26626
          default:
26627
            return null;
26628
        }
1133 chandransh 26629
      }
26630
 
26631
      /**
26632
       * Find the _Fields constant that matches fieldId, throwing an exception
26633
       * if it is not found.
26634
       */
26635
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26636
        _Fields fields = findByThriftId(fieldId);
26637
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26638
        return fields;
26639
      }
26640
 
26641
      /**
26642
       * Find the _Fields constant that matches name, or null if its not found.
26643
       */
26644
      public static _Fields findByName(String name) {
26645
        return byName.get(name);
26646
      }
26647
 
26648
      private final short _thriftId;
26649
      private final String _fieldName;
26650
 
26651
      _Fields(short thriftId, String fieldName) {
26652
        _thriftId = thriftId;
26653
        _fieldName = fieldName;
26654
      }
26655
 
26656
      public short getThriftFieldId() {
26657
        return _thriftId;
26658
      }
26659
 
26660
      public String getFieldName() {
26661
        return _fieldName;
26662
      }
26663
    }
26664
 
26665
    // isset id assignments
3061 chandransh 26666
    private static final int __ORDERID_ISSET_ID = 0;
1133 chandransh 26667
    private BitSet __isset_bit_vector = new BitSet(1);
26668
 
3430 rajveer 26669
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1133 chandransh 26670
    static {
3430 rajveer 26671
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26672
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26673
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26674
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26675
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(billOrder_args.class, metaDataMap);
1133 chandransh 26676
    }
26677
 
3061 chandransh 26678
    public billOrder_args() {
1133 chandransh 26679
    }
26680
 
3061 chandransh 26681
    public billOrder_args(
26682
      long orderId)
1133 chandransh 26683
    {
26684
      this();
3061 chandransh 26685
      this.orderId = orderId;
26686
      setOrderIdIsSet(true);
1133 chandransh 26687
    }
26688
 
26689
    /**
26690
     * Performs a deep copy on <i>other</i>.
26691
     */
3061 chandransh 26692
    public billOrder_args(billOrder_args other) {
1133 chandransh 26693
      __isset_bit_vector.clear();
26694
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 26695
      this.orderId = other.orderId;
1133 chandransh 26696
    }
26697
 
3061 chandransh 26698
    public billOrder_args deepCopy() {
26699
      return new billOrder_args(this);
1133 chandransh 26700
    }
26701
 
3430 rajveer 26702
    @Override
26703
    public void clear() {
26704
      setOrderIdIsSet(false);
26705
      this.orderId = 0;
1133 chandransh 26706
    }
26707
 
3061 chandransh 26708
    public long getOrderId() {
26709
      return this.orderId;
1133 chandransh 26710
    }
26711
 
3430 rajveer 26712
    public void setOrderId(long orderId) {
3061 chandransh 26713
      this.orderId = orderId;
26714
      setOrderIdIsSet(true);
1133 chandransh 26715
    }
26716
 
3061 chandransh 26717
    public void unsetOrderId() {
26718
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
1133 chandransh 26719
    }
26720
 
3430 rajveer 26721
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 26722
    public boolean isSetOrderId() {
26723
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
1133 chandransh 26724
    }
26725
 
3061 chandransh 26726
    public void setOrderIdIsSet(boolean value) {
26727
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
1133 chandransh 26728
    }
26729
 
26730
    public void setFieldValue(_Fields field, Object value) {
26731
      switch (field) {
3061 chandransh 26732
      case ORDER_ID:
1133 chandransh 26733
        if (value == null) {
3061 chandransh 26734
          unsetOrderId();
1133 chandransh 26735
        } else {
3061 chandransh 26736
          setOrderId((Long)value);
1133 chandransh 26737
        }
26738
        break;
26739
 
26740
      }
26741
    }
26742
 
26743
    public Object getFieldValue(_Fields field) {
26744
      switch (field) {
3061 chandransh 26745
      case ORDER_ID:
3430 rajveer 26746
        return Long.valueOf(getOrderId());
1133 chandransh 26747
 
26748
      }
26749
      throw new IllegalStateException();
26750
    }
26751
 
3430 rajveer 26752
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26753
    public boolean isSet(_Fields field) {
26754
      if (field == null) {
26755
        throw new IllegalArgumentException();
26756
      }
1133 chandransh 26757
 
26758
      switch (field) {
3061 chandransh 26759
      case ORDER_ID:
26760
        return isSetOrderId();
1133 chandransh 26761
      }
26762
      throw new IllegalStateException();
26763
    }
26764
 
26765
    @Override
26766
    public boolean equals(Object that) {
26767
      if (that == null)
26768
        return false;
3061 chandransh 26769
      if (that instanceof billOrder_args)
26770
        return this.equals((billOrder_args)that);
1133 chandransh 26771
      return false;
26772
    }
26773
 
3061 chandransh 26774
    public boolean equals(billOrder_args that) {
1133 chandransh 26775
      if (that == null)
26776
        return false;
26777
 
3061 chandransh 26778
      boolean this_present_orderId = true;
26779
      boolean that_present_orderId = true;
26780
      if (this_present_orderId || that_present_orderId) {
26781
        if (!(this_present_orderId && that_present_orderId))
1133 chandransh 26782
          return false;
3061 chandransh 26783
        if (this.orderId != that.orderId)
1133 chandransh 26784
          return false;
26785
      }
26786
 
26787
      return true;
26788
    }
26789
 
26790
    @Override
26791
    public int hashCode() {
26792
      return 0;
26793
    }
26794
 
3061 chandransh 26795
    public int compareTo(billOrder_args other) {
26796
      if (!getClass().equals(other.getClass())) {
26797
        return getClass().getName().compareTo(other.getClass().getName());
26798
      }
26799
 
26800
      int lastComparison = 0;
26801
      billOrder_args typedOther = (billOrder_args)other;
26802
 
3430 rajveer 26803
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
3061 chandransh 26804
      if (lastComparison != 0) {
26805
        return lastComparison;
26806
      }
3430 rajveer 26807
      if (isSetOrderId()) {
26808
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
26809
        if (lastComparison != 0) {
26810
          return lastComparison;
26811
        }
3061 chandransh 26812
      }
26813
      return 0;
26814
    }
26815
 
3430 rajveer 26816
    public _Fields fieldForId(int fieldId) {
26817
      return _Fields.findByThriftId(fieldId);
26818
    }
26819
 
26820
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26821
      org.apache.thrift.protocol.TField field;
1133 chandransh 26822
      iprot.readStructBegin();
26823
      while (true)
26824
      {
26825
        field = iprot.readFieldBegin();
3430 rajveer 26826
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1133 chandransh 26827
          break;
26828
        }
3430 rajveer 26829
        switch (field.id) {
26830
          case 1: // ORDER_ID
26831
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26832
              this.orderId = iprot.readI64();
26833
              setOrderIdIsSet(true);
26834
            } else { 
26835
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26836
            }
26837
            break;
26838
          default:
26839
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1133 chandransh 26840
        }
3430 rajveer 26841
        iprot.readFieldEnd();
1133 chandransh 26842
      }
26843
      iprot.readStructEnd();
26844
      validate();
26845
    }
26846
 
3430 rajveer 26847
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1133 chandransh 26848
      validate();
26849
 
26850
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 26851
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
26852
      oprot.writeI64(this.orderId);
1133 chandransh 26853
      oprot.writeFieldEnd();
26854
      oprot.writeFieldStop();
26855
      oprot.writeStructEnd();
26856
    }
26857
 
26858
    @Override
26859
    public String toString() {
3061 chandransh 26860
      StringBuilder sb = new StringBuilder("billOrder_args(");
1133 chandransh 26861
      boolean first = true;
26862
 
3061 chandransh 26863
      sb.append("orderId:");
26864
      sb.append(this.orderId);
1133 chandransh 26865
      first = false;
26866
      sb.append(")");
26867
      return sb.toString();
26868
    }
26869
 
3430 rajveer 26870
    public void validate() throws org.apache.thrift.TException {
1133 chandransh 26871
      // check for required fields
26872
    }
26873
 
3430 rajveer 26874
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26875
      try {
26876
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26877
      } catch (org.apache.thrift.TException te) {
26878
        throw new java.io.IOException(te);
26879
      }
26880
    }
26881
 
26882
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26883
      try {
26884
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26885
        __isset_bit_vector = new BitSet(1);
26886
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26887
      } catch (org.apache.thrift.TException te) {
26888
        throw new java.io.IOException(te);
26889
      }
26890
    }
26891
 
1133 chandransh 26892
  }
26893
 
3430 rajveer 26894
  public static class billOrder_result implements org.apache.thrift.TBase<billOrder_result, billOrder_result._Fields>, java.io.Serializable, Cloneable   {
26895
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("billOrder_result");
1133 chandransh 26896
 
3430 rajveer 26897
    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);
26898
    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 26899
 
3430 rajveer 26900
    private boolean success; // required
26901
    private TransactionServiceException ex; // required
1133 chandransh 26902
 
26903
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26904
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 26905
      SUCCESS((short)0, "success"),
1133 chandransh 26906
      EX((short)1, "ex");
26907
 
26908
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26909
 
26910
      static {
26911
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26912
          byName.put(field.getFieldName(), field);
26913
        }
26914
      }
26915
 
26916
      /**
26917
       * Find the _Fields constant that matches fieldId, or null if its not found.
26918
       */
26919
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26920
        switch(fieldId) {
26921
          case 0: // SUCCESS
26922
            return SUCCESS;
26923
          case 1: // EX
26924
            return EX;
26925
          default:
26926
            return null;
26927
        }
1133 chandransh 26928
      }
26929
 
26930
      /**
26931
       * Find the _Fields constant that matches fieldId, throwing an exception
26932
       * if it is not found.
26933
       */
26934
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26935
        _Fields fields = findByThriftId(fieldId);
26936
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26937
        return fields;
26938
      }
26939
 
26940
      /**
26941
       * Find the _Fields constant that matches name, or null if its not found.
26942
       */
26943
      public static _Fields findByName(String name) {
26944
        return byName.get(name);
26945
      }
26946
 
26947
      private final short _thriftId;
26948
      private final String _fieldName;
26949
 
26950
      _Fields(short thriftId, String fieldName) {
26951
        _thriftId = thriftId;
26952
        _fieldName = fieldName;
26953
      }
26954
 
26955
      public short getThriftFieldId() {
26956
        return _thriftId;
26957
      }
26958
 
26959
      public String getFieldName() {
26960
        return _fieldName;
26961
      }
26962
    }
26963
 
26964
    // isset id assignments
3061 chandransh 26965
    private static final int __SUCCESS_ISSET_ID = 0;
26966
    private BitSet __isset_bit_vector = new BitSet(1);
1133 chandransh 26967
 
3430 rajveer 26968
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1133 chandransh 26969
    static {
3430 rajveer 26970
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26971
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
26973
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26974
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26975
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26976
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(billOrder_result.class, metaDataMap);
1133 chandransh 26977
    }
26978
 
3061 chandransh 26979
    public billOrder_result() {
1133 chandransh 26980
    }
26981
 
3061 chandransh 26982
    public billOrder_result(
26983
      boolean success,
1133 chandransh 26984
      TransactionServiceException ex)
26985
    {
26986
      this();
3061 chandransh 26987
      this.success = success;
26988
      setSuccessIsSet(true);
1133 chandransh 26989
      this.ex = ex;
26990
    }
26991
 
26992
    /**
26993
     * Performs a deep copy on <i>other</i>.
26994
     */
3061 chandransh 26995
    public billOrder_result(billOrder_result other) {
26996
      __isset_bit_vector.clear();
26997
      __isset_bit_vector.or(other.__isset_bit_vector);
26998
      this.success = other.success;
1133 chandransh 26999
      if (other.isSetEx()) {
27000
        this.ex = new TransactionServiceException(other.ex);
27001
      }
27002
    }
27003
 
3061 chandransh 27004
    public billOrder_result deepCopy() {
27005
      return new billOrder_result(this);
1133 chandransh 27006
    }
27007
 
3430 rajveer 27008
    @Override
27009
    public void clear() {
27010
      setSuccessIsSet(false);
27011
      this.success = false;
27012
      this.ex = null;
1133 chandransh 27013
    }
27014
 
3061 chandransh 27015
    public boolean isSuccess() {
27016
      return this.success;
27017
    }
27018
 
3430 rajveer 27019
    public void setSuccess(boolean success) {
3061 chandransh 27020
      this.success = success;
27021
      setSuccessIsSet(true);
27022
    }
27023
 
27024
    public void unsetSuccess() {
27025
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
27026
    }
27027
 
3430 rajveer 27028
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 27029
    public boolean isSetSuccess() {
27030
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
27031
    }
27032
 
27033
    public void setSuccessIsSet(boolean value) {
27034
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
27035
    }
27036
 
1133 chandransh 27037
    public TransactionServiceException getEx() {
27038
      return this.ex;
27039
    }
27040
 
3430 rajveer 27041
    public void setEx(TransactionServiceException ex) {
1133 chandransh 27042
      this.ex = ex;
27043
    }
27044
 
27045
    public void unsetEx() {
27046
      this.ex = null;
27047
    }
27048
 
3430 rajveer 27049
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1133 chandransh 27050
    public boolean isSetEx() {
27051
      return this.ex != null;
27052
    }
27053
 
27054
    public void setExIsSet(boolean value) {
27055
      if (!value) {
27056
        this.ex = null;
27057
      }
27058
    }
27059
 
27060
    public void setFieldValue(_Fields field, Object value) {
27061
      switch (field) {
3061 chandransh 27062
      case SUCCESS:
27063
        if (value == null) {
27064
          unsetSuccess();
27065
        } else {
27066
          setSuccess((Boolean)value);
27067
        }
27068
        break;
27069
 
1133 chandransh 27070
      case EX:
27071
        if (value == null) {
27072
          unsetEx();
27073
        } else {
27074
          setEx((TransactionServiceException)value);
27075
        }
27076
        break;
27077
 
27078
      }
27079
    }
27080
 
27081
    public Object getFieldValue(_Fields field) {
27082
      switch (field) {
3061 chandransh 27083
      case SUCCESS:
3430 rajveer 27084
        return Boolean.valueOf(isSuccess());
3061 chandransh 27085
 
1133 chandransh 27086
      case EX:
27087
        return getEx();
27088
 
27089
      }
27090
      throw new IllegalStateException();
27091
    }
27092
 
3430 rajveer 27093
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27094
    public boolean isSet(_Fields field) {
27095
      if (field == null) {
27096
        throw new IllegalArgumentException();
27097
      }
1133 chandransh 27098
 
27099
      switch (field) {
3061 chandransh 27100
      case SUCCESS:
27101
        return isSetSuccess();
1133 chandransh 27102
      case EX:
27103
        return isSetEx();
27104
      }
27105
      throw new IllegalStateException();
27106
    }
27107
 
27108
    @Override
27109
    public boolean equals(Object that) {
27110
      if (that == null)
27111
        return false;
3061 chandransh 27112
      if (that instanceof billOrder_result)
27113
        return this.equals((billOrder_result)that);
1133 chandransh 27114
      return false;
27115
    }
27116
 
3061 chandransh 27117
    public boolean equals(billOrder_result that) {
1133 chandransh 27118
      if (that == null)
27119
        return false;
27120
 
3061 chandransh 27121
      boolean this_present_success = true;
27122
      boolean that_present_success = true;
27123
      if (this_present_success || that_present_success) {
27124
        if (!(this_present_success && that_present_success))
27125
          return false;
27126
        if (this.success != that.success)
27127
          return false;
27128
      }
27129
 
1133 chandransh 27130
      boolean this_present_ex = true && this.isSetEx();
27131
      boolean that_present_ex = true && that.isSetEx();
27132
      if (this_present_ex || that_present_ex) {
27133
        if (!(this_present_ex && that_present_ex))
27134
          return false;
27135
        if (!this.ex.equals(that.ex))
27136
          return false;
27137
      }
27138
 
27139
      return true;
27140
    }
27141
 
27142
    @Override
27143
    public int hashCode() {
27144
      return 0;
27145
    }
27146
 
3061 chandransh 27147
    public int compareTo(billOrder_result other) {
1133 chandransh 27148
      if (!getClass().equals(other.getClass())) {
27149
        return getClass().getName().compareTo(other.getClass().getName());
27150
      }
27151
 
27152
      int lastComparison = 0;
3061 chandransh 27153
      billOrder_result typedOther = (billOrder_result)other;
1133 chandransh 27154
 
3430 rajveer 27155
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3061 chandransh 27156
      if (lastComparison != 0) {
27157
        return lastComparison;
27158
      }
3430 rajveer 27159
      if (isSetSuccess()) {
27160
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27161
        if (lastComparison != 0) {
27162
          return lastComparison;
27163
        }
3061 chandransh 27164
      }
3430 rajveer 27165
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1133 chandransh 27166
      if (lastComparison != 0) {
27167
        return lastComparison;
27168
      }
3430 rajveer 27169
      if (isSetEx()) {
27170
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
27171
        if (lastComparison != 0) {
27172
          return lastComparison;
27173
        }
1133 chandransh 27174
      }
27175
      return 0;
27176
    }
27177
 
3430 rajveer 27178
    public _Fields fieldForId(int fieldId) {
27179
      return _Fields.findByThriftId(fieldId);
27180
    }
27181
 
27182
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27183
      org.apache.thrift.protocol.TField field;
1133 chandransh 27184
      iprot.readStructBegin();
27185
      while (true)
27186
      {
27187
        field = iprot.readFieldBegin();
3430 rajveer 27188
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1133 chandransh 27189
          break;
27190
        }
3430 rajveer 27191
        switch (field.id) {
27192
          case 0: // SUCCESS
27193
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
27194
              this.success = iprot.readBool();
27195
              setSuccessIsSet(true);
27196
            } else { 
27197
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27198
            }
27199
            break;
27200
          case 1: // EX
27201
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27202
              this.ex = new TransactionServiceException();
27203
              this.ex.read(iprot);
27204
            } else { 
27205
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27206
            }
27207
            break;
27208
          default:
27209
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1133 chandransh 27210
        }
3430 rajveer 27211
        iprot.readFieldEnd();
1133 chandransh 27212
      }
27213
      iprot.readStructEnd();
27214
      validate();
27215
    }
27216
 
3430 rajveer 27217
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1133 chandransh 27218
      oprot.writeStructBegin(STRUCT_DESC);
27219
 
3061 chandransh 27220
      if (this.isSetSuccess()) {
27221
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27222
        oprot.writeBool(this.success);
27223
        oprot.writeFieldEnd();
27224
      } else if (this.isSetEx()) {
1133 chandransh 27225
        oprot.writeFieldBegin(EX_FIELD_DESC);
27226
        this.ex.write(oprot);
27227
        oprot.writeFieldEnd();
27228
      }
27229
      oprot.writeFieldStop();
27230
      oprot.writeStructEnd();
27231
    }
27232
 
27233
    @Override
27234
    public String toString() {
3061 chandransh 27235
      StringBuilder sb = new StringBuilder("billOrder_result(");
1133 chandransh 27236
      boolean first = true;
27237
 
3061 chandransh 27238
      sb.append("success:");
27239
      sb.append(this.success);
27240
      first = false;
27241
      if (!first) sb.append(", ");
1133 chandransh 27242
      sb.append("ex:");
27243
      if (this.ex == null) {
27244
        sb.append("null");
27245
      } else {
27246
        sb.append(this.ex);
27247
      }
27248
      first = false;
27249
      sb.append(")");
27250
      return sb.toString();
27251
    }
27252
 
3430 rajveer 27253
    public void validate() throws org.apache.thrift.TException {
1133 chandransh 27254
      // check for required fields
27255
    }
27256
 
3430 rajveer 27257
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27258
      try {
27259
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27260
      } catch (org.apache.thrift.TException te) {
27261
        throw new java.io.IOException(te);
27262
      }
27263
    }
27264
 
27265
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27266
      try {
27267
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27268
      } catch (org.apache.thrift.TException te) {
27269
        throw new java.io.IOException(te);
27270
      }
27271
    }
27272
 
1133 chandransh 27273
  }
27274
 
3430 rajveer 27275
  public static class addBillingDetails_args implements org.apache.thrift.TBase<addBillingDetails_args, addBillingDetails_args._Fields>, java.io.Serializable, Cloneable   {
27276
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_args");
1133 chandransh 27277
 
3430 rajveer 27278
    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);
27279
    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);
27280
    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 27281
 
3430 rajveer 27282
    private long orderId; // required
27283
    private String invoice_number; // required
27284
    private String billed_by; // required
1133 chandransh 27285
 
27286
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 27287
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 27288
      ORDER_ID((short)1, "orderId"),
27289
      INVOICE_NUMBER((short)2, "invoice_number"),
27290
      BILLED_BY((short)3, "billed_by");
1133 chandransh 27291
 
27292
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27293
 
27294
      static {
27295
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27296
          byName.put(field.getFieldName(), field);
27297
        }
27298
      }
27299
 
27300
      /**
27301
       * Find the _Fields constant that matches fieldId, or null if its not found.
27302
       */
27303
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 27304
        switch(fieldId) {
27305
          case 1: // ORDER_ID
27306
            return ORDER_ID;
27307
          case 2: // INVOICE_NUMBER
27308
            return INVOICE_NUMBER;
27309
          case 3: // BILLED_BY
27310
            return BILLED_BY;
27311
          default:
27312
            return null;
27313
        }
1133 chandransh 27314
      }
27315
 
27316
      /**
27317
       * Find the _Fields constant that matches fieldId, throwing an exception
27318
       * if it is not found.
27319
       */
27320
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27321
        _Fields fields = findByThriftId(fieldId);
27322
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27323
        return fields;
27324
      }
27325
 
27326
      /**
27327
       * Find the _Fields constant that matches name, or null if its not found.
27328
       */
27329
      public static _Fields findByName(String name) {
27330
        return byName.get(name);
27331
      }
27332
 
27333
      private final short _thriftId;
27334
      private final String _fieldName;
27335
 
27336
      _Fields(short thriftId, String fieldName) {
27337
        _thriftId = thriftId;
27338
        _fieldName = fieldName;
27339
      }
27340
 
27341
      public short getThriftFieldId() {
27342
        return _thriftId;
27343
      }
27344
 
27345
      public String getFieldName() {
27346
        return _fieldName;
27347
      }
27348
    }
27349
 
27350
    // isset id assignments
3061 chandransh 27351
    private static final int __ORDERID_ISSET_ID = 0;
1133 chandransh 27352
    private BitSet __isset_bit_vector = new BitSet(1);
27353
 
3430 rajveer 27354
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1133 chandransh 27355
    static {
3430 rajveer 27356
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27357
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27358
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27359
      tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoice_number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27360
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27361
      tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billed_by", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27362
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27363
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27364
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_args.class, metaDataMap);
1133 chandransh 27365
    }
27366
 
3061 chandransh 27367
    public addBillingDetails_args() {
1133 chandransh 27368
    }
27369
 
3061 chandransh 27370
    public addBillingDetails_args(
27371
      long orderId,
27372
      String invoice_number,
27373
      String billed_by)
1133 chandransh 27374
    {
27375
      this();
3061 chandransh 27376
      this.orderId = orderId;
27377
      setOrderIdIsSet(true);
27378
      this.invoice_number = invoice_number;
27379
      this.billed_by = billed_by;
1133 chandransh 27380
    }
27381
 
27382
    /**
27383
     * Performs a deep copy on <i>other</i>.
27384
     */
3061 chandransh 27385
    public addBillingDetails_args(addBillingDetails_args other) {
1133 chandransh 27386
      __isset_bit_vector.clear();
27387
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 27388
      this.orderId = other.orderId;
27389
      if (other.isSetInvoice_number()) {
27390
        this.invoice_number = other.invoice_number;
1133 chandransh 27391
      }
3061 chandransh 27392
      if (other.isSetBilled_by()) {
27393
        this.billed_by = other.billed_by;
27394
      }
1133 chandransh 27395
    }
27396
 
3061 chandransh 27397
    public addBillingDetails_args deepCopy() {
27398
      return new addBillingDetails_args(this);
1133 chandransh 27399
    }
27400
 
3430 rajveer 27401
    @Override
27402
    public void clear() {
27403
      setOrderIdIsSet(false);
27404
      this.orderId = 0;
27405
      this.invoice_number = null;
27406
      this.billed_by = null;
1133 chandransh 27407
    }
27408
 
3061 chandransh 27409
    public long getOrderId() {
27410
      return this.orderId;
1133 chandransh 27411
    }
27412
 
3430 rajveer 27413
    public void setOrderId(long orderId) {
3061 chandransh 27414
      this.orderId = orderId;
27415
      setOrderIdIsSet(true);
1133 chandransh 27416
    }
27417
 
3061 chandransh 27418
    public void unsetOrderId() {
27419
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
1133 chandransh 27420
    }
27421
 
3430 rajveer 27422
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 27423
    public boolean isSetOrderId() {
27424
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
1133 chandransh 27425
    }
27426
 
3061 chandransh 27427
    public void setOrderIdIsSet(boolean value) {
27428
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
1133 chandransh 27429
    }
27430
 
3061 chandransh 27431
    public String getInvoice_number() {
27432
      return this.invoice_number;
1133 chandransh 27433
    }
27434
 
3430 rajveer 27435
    public void setInvoice_number(String invoice_number) {
3061 chandransh 27436
      this.invoice_number = invoice_number;
27437
    }
27438
 
27439
    public void unsetInvoice_number() {
27440
      this.invoice_number = null;
27441
    }
27442
 
3430 rajveer 27443
    /** Returns true if field invoice_number is set (has been assigned a value) and false otherwise */
3061 chandransh 27444
    public boolean isSetInvoice_number() {
27445
      return this.invoice_number != null;
27446
    }
27447
 
27448
    public void setInvoice_numberIsSet(boolean value) {
27449
      if (!value) {
27450
        this.invoice_number = null;
1133 chandransh 27451
      }
27452
    }
27453
 
3061 chandransh 27454
    public String getBilled_by() {
27455
      return this.billed_by;
1133 chandransh 27456
    }
27457
 
3430 rajveer 27458
    public void setBilled_by(String billed_by) {
3061 chandransh 27459
      this.billed_by = billed_by;
1133 chandransh 27460
    }
27461
 
3061 chandransh 27462
    public void unsetBilled_by() {
27463
      this.billed_by = null;
1133 chandransh 27464
    }
27465
 
3430 rajveer 27466
    /** Returns true if field billed_by is set (has been assigned a value) and false otherwise */
3061 chandransh 27467
    public boolean isSetBilled_by() {
27468
      return this.billed_by != null;
1133 chandransh 27469
    }
27470
 
3061 chandransh 27471
    public void setBilled_byIsSet(boolean value) {
1133 chandransh 27472
      if (!value) {
3061 chandransh 27473
        this.billed_by = null;
1133 chandransh 27474
      }
27475
    }
27476
 
27477
    public void setFieldValue(_Fields field, Object value) {
27478
      switch (field) {
3061 chandransh 27479
      case ORDER_ID:
1133 chandransh 27480
        if (value == null) {
3061 chandransh 27481
          unsetOrderId();
1133 chandransh 27482
        } else {
3061 chandransh 27483
          setOrderId((Long)value);
1133 chandransh 27484
        }
27485
        break;
27486
 
3061 chandransh 27487
      case INVOICE_NUMBER:
1133 chandransh 27488
        if (value == null) {
3061 chandransh 27489
          unsetInvoice_number();
1133 chandransh 27490
        } else {
3061 chandransh 27491
          setInvoice_number((String)value);
1133 chandransh 27492
        }
27493
        break;
27494
 
3061 chandransh 27495
      case BILLED_BY:
27496
        if (value == null) {
27497
          unsetBilled_by();
27498
        } else {
27499
          setBilled_by((String)value);
27500
        }
27501
        break;
27502
 
1133 chandransh 27503
      }
27504
    }
27505
 
27506
    public Object getFieldValue(_Fields field) {
27507
      switch (field) {
3061 chandransh 27508
      case ORDER_ID:
3430 rajveer 27509
        return Long.valueOf(getOrderId());
1133 chandransh 27510
 
3061 chandransh 27511
      case INVOICE_NUMBER:
27512
        return getInvoice_number();
1133 chandransh 27513
 
3061 chandransh 27514
      case BILLED_BY:
27515
        return getBilled_by();
27516
 
1133 chandransh 27517
      }
27518
      throw new IllegalStateException();
27519
    }
27520
 
3430 rajveer 27521
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27522
    public boolean isSet(_Fields field) {
27523
      if (field == null) {
27524
        throw new IllegalArgumentException();
27525
      }
1133 chandransh 27526
 
27527
      switch (field) {
3061 chandransh 27528
      case ORDER_ID:
27529
        return isSetOrderId();
27530
      case INVOICE_NUMBER:
27531
        return isSetInvoice_number();
27532
      case BILLED_BY:
27533
        return isSetBilled_by();
1133 chandransh 27534
      }
27535
      throw new IllegalStateException();
27536
    }
27537
 
27538
    @Override
27539
    public boolean equals(Object that) {
27540
      if (that == null)
27541
        return false;
3061 chandransh 27542
      if (that instanceof addBillingDetails_args)
27543
        return this.equals((addBillingDetails_args)that);
1133 chandransh 27544
      return false;
27545
    }
27546
 
3061 chandransh 27547
    public boolean equals(addBillingDetails_args that) {
1133 chandransh 27548
      if (that == null)
27549
        return false;
27550
 
3061 chandransh 27551
      boolean this_present_orderId = true;
27552
      boolean that_present_orderId = true;
27553
      if (this_present_orderId || that_present_orderId) {
27554
        if (!(this_present_orderId && that_present_orderId))
1133 chandransh 27555
          return false;
3061 chandransh 27556
        if (this.orderId != that.orderId)
1133 chandransh 27557
          return false;
27558
      }
27559
 
3061 chandransh 27560
      boolean this_present_invoice_number = true && this.isSetInvoice_number();
27561
      boolean that_present_invoice_number = true && that.isSetInvoice_number();
27562
      if (this_present_invoice_number || that_present_invoice_number) {
27563
        if (!(this_present_invoice_number && that_present_invoice_number))
1133 chandransh 27564
          return false;
3061 chandransh 27565
        if (!this.invoice_number.equals(that.invoice_number))
1133 chandransh 27566
          return false;
27567
      }
27568
 
3061 chandransh 27569
      boolean this_present_billed_by = true && this.isSetBilled_by();
27570
      boolean that_present_billed_by = true && that.isSetBilled_by();
27571
      if (this_present_billed_by || that_present_billed_by) {
27572
        if (!(this_present_billed_by && that_present_billed_by))
27573
          return false;
27574
        if (!this.billed_by.equals(that.billed_by))
27575
          return false;
27576
      }
27577
 
1133 chandransh 27578
      return true;
27579
    }
27580
 
27581
    @Override
27582
    public int hashCode() {
27583
      return 0;
27584
    }
27585
 
3061 chandransh 27586
    public int compareTo(addBillingDetails_args other) {
27587
      if (!getClass().equals(other.getClass())) {
27588
        return getClass().getName().compareTo(other.getClass().getName());
27589
      }
27590
 
27591
      int lastComparison = 0;
27592
      addBillingDetails_args typedOther = (addBillingDetails_args)other;
27593
 
3430 rajveer 27594
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
3061 chandransh 27595
      if (lastComparison != 0) {
27596
        return lastComparison;
27597
      }
3430 rajveer 27598
      if (isSetOrderId()) {
27599
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
27600
        if (lastComparison != 0) {
27601
          return lastComparison;
27602
        }
3061 chandransh 27603
      }
3430 rajveer 27604
      lastComparison = Boolean.valueOf(isSetInvoice_number()).compareTo(typedOther.isSetInvoice_number());
3061 chandransh 27605
      if (lastComparison != 0) {
27606
        return lastComparison;
27607
      }
3430 rajveer 27608
      if (isSetInvoice_number()) {
27609
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoice_number, typedOther.invoice_number);
27610
        if (lastComparison != 0) {
27611
          return lastComparison;
27612
        }
3061 chandransh 27613
      }
3430 rajveer 27614
      lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(typedOther.isSetBilled_by());
3061 chandransh 27615
      if (lastComparison != 0) {
27616
        return lastComparison;
27617
      }
3430 rajveer 27618
      if (isSetBilled_by()) {
27619
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billed_by, typedOther.billed_by);
27620
        if (lastComparison != 0) {
27621
          return lastComparison;
27622
        }
3061 chandransh 27623
      }
27624
      return 0;
27625
    }
27626
 
3430 rajveer 27627
    public _Fields fieldForId(int fieldId) {
27628
      return _Fields.findByThriftId(fieldId);
27629
    }
27630
 
27631
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27632
      org.apache.thrift.protocol.TField field;
1133 chandransh 27633
      iprot.readStructBegin();
27634
      while (true)
27635
      {
27636
        field = iprot.readFieldBegin();
3430 rajveer 27637
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1133 chandransh 27638
          break;
27639
        }
3430 rajveer 27640
        switch (field.id) {
27641
          case 1: // ORDER_ID
27642
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27643
              this.orderId = iprot.readI64();
27644
              setOrderIdIsSet(true);
27645
            } else { 
27646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27647
            }
27648
            break;
27649
          case 2: // INVOICE_NUMBER
27650
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
27651
              this.invoice_number = iprot.readString();
27652
            } else { 
27653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27654
            }
27655
            break;
27656
          case 3: // BILLED_BY
27657
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
27658
              this.billed_by = iprot.readString();
27659
            } else { 
27660
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27661
            }
27662
            break;
27663
          default:
27664
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1133 chandransh 27665
        }
3430 rajveer 27666
        iprot.readFieldEnd();
1133 chandransh 27667
      }
27668
      iprot.readStructEnd();
27669
      validate();
27670
    }
27671
 
3430 rajveer 27672
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1133 chandransh 27673
      validate();
27674
 
27675
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 27676
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
27677
      oprot.writeI64(this.orderId);
1133 chandransh 27678
      oprot.writeFieldEnd();
3061 chandransh 27679
      if (this.invoice_number != null) {
27680
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
27681
        oprot.writeString(this.invoice_number);
1133 chandransh 27682
        oprot.writeFieldEnd();
27683
      }
3061 chandransh 27684
      if (this.billed_by != null) {
27685
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
27686
        oprot.writeString(this.billed_by);
27687
        oprot.writeFieldEnd();
27688
      }
1133 chandransh 27689
      oprot.writeFieldStop();
27690
      oprot.writeStructEnd();
27691
    }
27692
 
27693
    @Override
27694
    public String toString() {
3061 chandransh 27695
      StringBuilder sb = new StringBuilder("addBillingDetails_args(");
1133 chandransh 27696
      boolean first = true;
27697
 
3061 chandransh 27698
      sb.append("orderId:");
27699
      sb.append(this.orderId);
1133 chandransh 27700
      first = false;
27701
      if (!first) sb.append(", ");
3061 chandransh 27702
      sb.append("invoice_number:");
27703
      if (this.invoice_number == null) {
1133 chandransh 27704
        sb.append("null");
27705
      } else {
3061 chandransh 27706
        sb.append(this.invoice_number);
1133 chandransh 27707
      }
27708
      first = false;
3061 chandransh 27709
      if (!first) sb.append(", ");
27710
      sb.append("billed_by:");
27711
      if (this.billed_by == null) {
27712
        sb.append("null");
27713
      } else {
27714
        sb.append(this.billed_by);
27715
      }
27716
      first = false;
1133 chandransh 27717
      sb.append(")");
27718
      return sb.toString();
27719
    }
27720
 
3430 rajveer 27721
    public void validate() throws org.apache.thrift.TException {
1133 chandransh 27722
      // check for required fields
27723
    }
27724
 
3430 rajveer 27725
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27726
      try {
27727
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27728
      } catch (org.apache.thrift.TException te) {
27729
        throw new java.io.IOException(te);
27730
      }
27731
    }
27732
 
27733
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27734
      try {
27735
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27736
        __isset_bit_vector = new BitSet(1);
27737
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27738
      } catch (org.apache.thrift.TException te) {
27739
        throw new java.io.IOException(te);
27740
      }
27741
    }
27742
 
1133 chandransh 27743
  }
27744
 
3430 rajveer 27745
  public static class addBillingDetails_result implements org.apache.thrift.TBase<addBillingDetails_result, addBillingDetails_result._Fields>, java.io.Serializable, Cloneable   {
27746
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_result");
1133 chandransh 27747
 
3430 rajveer 27748
    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);
27749
    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 27750
 
3430 rajveer 27751
    private boolean success; // required
27752
    private TransactionServiceException ex; // required
1133 chandransh 27753
 
27754
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 27755
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 27756
      SUCCESS((short)0, "success"),
1133 chandransh 27757
      EX((short)1, "ex");
27758
 
27759
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27760
 
27761
      static {
27762
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27763
          byName.put(field.getFieldName(), field);
27764
        }
27765
      }
27766
 
27767
      /**
27768
       * Find the _Fields constant that matches fieldId, or null if its not found.
27769
       */
27770
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 27771
        switch(fieldId) {
27772
          case 0: // SUCCESS
27773
            return SUCCESS;
27774
          case 1: // EX
27775
            return EX;
27776
          default:
27777
            return null;
27778
        }
1133 chandransh 27779
      }
27780
 
27781
      /**
27782
       * Find the _Fields constant that matches fieldId, throwing an exception
27783
       * if it is not found.
27784
       */
27785
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27786
        _Fields fields = findByThriftId(fieldId);
27787
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27788
        return fields;
27789
      }
27790
 
27791
      /**
27792
       * Find the _Fields constant that matches name, or null if its not found.
27793
       */
27794
      public static _Fields findByName(String name) {
27795
        return byName.get(name);
27796
      }
27797
 
27798
      private final short _thriftId;
27799
      private final String _fieldName;
27800
 
27801
      _Fields(short thriftId, String fieldName) {
27802
        _thriftId = thriftId;
27803
        _fieldName = fieldName;
27804
      }
27805
 
27806
      public short getThriftFieldId() {
27807
        return _thriftId;
27808
      }
27809
 
27810
      public String getFieldName() {
27811
        return _fieldName;
27812
      }
27813
    }
27814
 
27815
    // isset id assignments
3061 chandransh 27816
    private static final int __SUCCESS_ISSET_ID = 0;
27817
    private BitSet __isset_bit_vector = new BitSet(1);
1133 chandransh 27818
 
3430 rajveer 27819
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1133 chandransh 27820
    static {
3430 rajveer 27821
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27822
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27823
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
27824
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27825
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27826
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27827
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_result.class, metaDataMap);
1133 chandransh 27828
    }
27829
 
3061 chandransh 27830
    public addBillingDetails_result() {
1133 chandransh 27831
    }
27832
 
3061 chandransh 27833
    public addBillingDetails_result(
27834
      boolean success,
1133 chandransh 27835
      TransactionServiceException ex)
27836
    {
27837
      this();
3061 chandransh 27838
      this.success = success;
27839
      setSuccessIsSet(true);
1133 chandransh 27840
      this.ex = ex;
27841
    }
27842
 
27843
    /**
27844
     * Performs a deep copy on <i>other</i>.
27845
     */
3061 chandransh 27846
    public addBillingDetails_result(addBillingDetails_result other) {
27847
      __isset_bit_vector.clear();
27848
      __isset_bit_vector.or(other.__isset_bit_vector);
27849
      this.success = other.success;
1133 chandransh 27850
      if (other.isSetEx()) {
27851
        this.ex = new TransactionServiceException(other.ex);
27852
      }
27853
    }
27854
 
3061 chandransh 27855
    public addBillingDetails_result deepCopy() {
27856
      return new addBillingDetails_result(this);
1133 chandransh 27857
    }
27858
 
3430 rajveer 27859
    @Override
27860
    public void clear() {
27861
      setSuccessIsSet(false);
27862
      this.success = false;
27863
      this.ex = null;
1133 chandransh 27864
    }
27865
 
3061 chandransh 27866
    public boolean isSuccess() {
27867
      return this.success;
27868
    }
27869
 
3430 rajveer 27870
    public void setSuccess(boolean success) {
3061 chandransh 27871
      this.success = success;
27872
      setSuccessIsSet(true);
27873
    }
27874
 
27875
    public void unsetSuccess() {
27876
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
27877
    }
27878
 
3430 rajveer 27879
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 27880
    public boolean isSetSuccess() {
27881
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
27882
    }
27883
 
27884
    public void setSuccessIsSet(boolean value) {
27885
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
27886
    }
27887
 
1133 chandransh 27888
    public TransactionServiceException getEx() {
27889
      return this.ex;
27890
    }
27891
 
3430 rajveer 27892
    public void setEx(TransactionServiceException ex) {
1133 chandransh 27893
      this.ex = ex;
27894
    }
27895
 
27896
    public void unsetEx() {
27897
      this.ex = null;
27898
    }
27899
 
3430 rajveer 27900
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1133 chandransh 27901
    public boolean isSetEx() {
27902
      return this.ex != null;
27903
    }
27904
 
27905
    public void setExIsSet(boolean value) {
27906
      if (!value) {
27907
        this.ex = null;
27908
      }
27909
    }
27910
 
27911
    public void setFieldValue(_Fields field, Object value) {
27912
      switch (field) {
3061 chandransh 27913
      case SUCCESS:
27914
        if (value == null) {
27915
          unsetSuccess();
27916
        } else {
27917
          setSuccess((Boolean)value);
27918
        }
27919
        break;
27920
 
1133 chandransh 27921
      case EX:
27922
        if (value == null) {
27923
          unsetEx();
27924
        } else {
27925
          setEx((TransactionServiceException)value);
27926
        }
27927
        break;
27928
 
27929
      }
27930
    }
27931
 
27932
    public Object getFieldValue(_Fields field) {
27933
      switch (field) {
3061 chandransh 27934
      case SUCCESS:
3430 rajveer 27935
        return Boolean.valueOf(isSuccess());
3061 chandransh 27936
 
1133 chandransh 27937
      case EX:
27938
        return getEx();
27939
 
27940
      }
27941
      throw new IllegalStateException();
27942
    }
27943
 
3430 rajveer 27944
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27945
    public boolean isSet(_Fields field) {
27946
      if (field == null) {
27947
        throw new IllegalArgumentException();
27948
      }
1133 chandransh 27949
 
27950
      switch (field) {
3061 chandransh 27951
      case SUCCESS:
27952
        return isSetSuccess();
1133 chandransh 27953
      case EX:
27954
        return isSetEx();
27955
      }
27956
      throw new IllegalStateException();
27957
    }
27958
 
27959
    @Override
27960
    public boolean equals(Object that) {
27961
      if (that == null)
27962
        return false;
3061 chandransh 27963
      if (that instanceof addBillingDetails_result)
27964
        return this.equals((addBillingDetails_result)that);
1133 chandransh 27965
      return false;
27966
    }
27967
 
3061 chandransh 27968
    public boolean equals(addBillingDetails_result that) {
1133 chandransh 27969
      if (that == null)
27970
        return false;
27971
 
3061 chandransh 27972
      boolean this_present_success = true;
27973
      boolean that_present_success = true;
27974
      if (this_present_success || that_present_success) {
27975
        if (!(this_present_success && that_present_success))
27976
          return false;
27977
        if (this.success != that.success)
27978
          return false;
27979
      }
27980
 
1133 chandransh 27981
      boolean this_present_ex = true && this.isSetEx();
27982
      boolean that_present_ex = true && that.isSetEx();
27983
      if (this_present_ex || that_present_ex) {
27984
        if (!(this_present_ex && that_present_ex))
27985
          return false;
27986
        if (!this.ex.equals(that.ex))
27987
          return false;
27988
      }
27989
 
27990
      return true;
27991
    }
27992
 
27993
    @Override
27994
    public int hashCode() {
27995
      return 0;
27996
    }
27997
 
3061 chandransh 27998
    public int compareTo(addBillingDetails_result other) {
1133 chandransh 27999
      if (!getClass().equals(other.getClass())) {
28000
        return getClass().getName().compareTo(other.getClass().getName());
28001
      }
28002
 
28003
      int lastComparison = 0;
3061 chandransh 28004
      addBillingDetails_result typedOther = (addBillingDetails_result)other;
1133 chandransh 28005
 
3430 rajveer 28006
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3061 chandransh 28007
      if (lastComparison != 0) {
28008
        return lastComparison;
28009
      }
3430 rajveer 28010
      if (isSetSuccess()) {
28011
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28012
        if (lastComparison != 0) {
28013
          return lastComparison;
28014
        }
3061 chandransh 28015
      }
3430 rajveer 28016
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1133 chandransh 28017
      if (lastComparison != 0) {
28018
        return lastComparison;
28019
      }
3430 rajveer 28020
      if (isSetEx()) {
28021
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
28022
        if (lastComparison != 0) {
28023
          return lastComparison;
28024
        }
1133 chandransh 28025
      }
28026
      return 0;
28027
    }
28028
 
3430 rajveer 28029
    public _Fields fieldForId(int fieldId) {
28030
      return _Fields.findByThriftId(fieldId);
28031
    }
28032
 
28033
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28034
      org.apache.thrift.protocol.TField field;
1133 chandransh 28035
      iprot.readStructBegin();
28036
      while (true)
28037
      {
28038
        field = iprot.readFieldBegin();
3430 rajveer 28039
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1133 chandransh 28040
          break;
28041
        }
3430 rajveer 28042
        switch (field.id) {
28043
          case 0: // SUCCESS
28044
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
28045
              this.success = iprot.readBool();
28046
              setSuccessIsSet(true);
28047
            } else { 
28048
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28049
            }
28050
            break;
28051
          case 1: // EX
28052
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28053
              this.ex = new TransactionServiceException();
28054
              this.ex.read(iprot);
28055
            } else { 
28056
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28057
            }
28058
            break;
28059
          default:
28060
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1133 chandransh 28061
        }
3430 rajveer 28062
        iprot.readFieldEnd();
1133 chandransh 28063
      }
28064
      iprot.readStructEnd();
28065
      validate();
28066
    }
28067
 
3430 rajveer 28068
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1133 chandransh 28069
      oprot.writeStructBegin(STRUCT_DESC);
28070
 
3061 chandransh 28071
      if (this.isSetSuccess()) {
28072
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28073
        oprot.writeBool(this.success);
28074
        oprot.writeFieldEnd();
28075
      } else if (this.isSetEx()) {
1133 chandransh 28076
        oprot.writeFieldBegin(EX_FIELD_DESC);
28077
        this.ex.write(oprot);
28078
        oprot.writeFieldEnd();
28079
      }
28080
      oprot.writeFieldStop();
28081
      oprot.writeStructEnd();
28082
    }
28083
 
28084
    @Override
28085
    public String toString() {
3061 chandransh 28086
      StringBuilder sb = new StringBuilder("addBillingDetails_result(");
1133 chandransh 28087
      boolean first = true;
28088
 
3061 chandransh 28089
      sb.append("success:");
28090
      sb.append(this.success);
28091
      first = false;
28092
      if (!first) sb.append(", ");
1133 chandransh 28093
      sb.append("ex:");
28094
      if (this.ex == null) {
28095
        sb.append("null");
28096
      } else {
28097
        sb.append(this.ex);
28098
      }
28099
      first = false;
28100
      sb.append(")");
28101
      return sb.toString();
28102
    }
28103
 
3430 rajveer 28104
    public void validate() throws org.apache.thrift.TException {
1133 chandransh 28105
      // check for required fields
28106
    }
28107
 
3430 rajveer 28108
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28109
      try {
28110
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28111
      } catch (org.apache.thrift.TException te) {
28112
        throw new java.io.IOException(te);
28113
      }
28114
    }
28115
 
28116
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28117
      try {
28118
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28119
      } catch (org.apache.thrift.TException te) {
28120
        throw new java.io.IOException(te);
28121
      }
28122
    }
28123
 
1133 chandransh 28124
  }
28125
 
3430 rajveer 28126
  public static class addJacketNumber_args implements org.apache.thrift.TBase<addJacketNumber_args, addJacketNumber_args._Fields>, java.io.Serializable, Cloneable   {
28127
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addJacketNumber_args");
1245 chandransh 28128
 
3430 rajveer 28129
    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);
28130
    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);
28131
    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);
28132
    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);
28133
    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);
28134
    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 28135
 
3430 rajveer 28136
    private long orderId; // required
28137
    private long jacketNumber; // required
28138
    private long imeiNumber; // required
28139
    private String itemNumber; // required
28140
    private String billedBy; // required
28141
    private long billingType; // required
1245 chandransh 28142
 
28143
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28144
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 28145
      ORDER_ID((short)1, "orderId"),
28146
      JACKET_NUMBER((short)2, "jacketNumber"),
28147
      IMEI_NUMBER((short)3, "imeiNumber"),
28148
      ITEM_NUMBER((short)4, "itemNumber"),
28149
      BILLED_BY((short)5, "billedBy"),
28150
      BILLING_TYPE((short)6, "billingType");
1245 chandransh 28151
 
28152
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28153
 
28154
      static {
28155
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28156
          byName.put(field.getFieldName(), field);
28157
        }
28158
      }
28159
 
28160
      /**
28161
       * Find the _Fields constant that matches fieldId, or null if its not found.
28162
       */
28163
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28164
        switch(fieldId) {
28165
          case 1: // ORDER_ID
28166
            return ORDER_ID;
28167
          case 2: // JACKET_NUMBER
28168
            return JACKET_NUMBER;
28169
          case 3: // IMEI_NUMBER
28170
            return IMEI_NUMBER;
28171
          case 4: // ITEM_NUMBER
28172
            return ITEM_NUMBER;
28173
          case 5: // BILLED_BY
28174
            return BILLED_BY;
28175
          case 6: // BILLING_TYPE
28176
            return BILLING_TYPE;
28177
          default:
28178
            return null;
28179
        }
1245 chandransh 28180
      }
28181
 
28182
      /**
28183
       * Find the _Fields constant that matches fieldId, throwing an exception
28184
       * if it is not found.
28185
       */
28186
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28187
        _Fields fields = findByThriftId(fieldId);
28188
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28189
        return fields;
28190
      }
28191
 
28192
      /**
28193
       * Find the _Fields constant that matches name, or null if its not found.
28194
       */
28195
      public static _Fields findByName(String name) {
28196
        return byName.get(name);
28197
      }
28198
 
28199
      private final short _thriftId;
28200
      private final String _fieldName;
28201
 
28202
      _Fields(short thriftId, String fieldName) {
28203
        _thriftId = thriftId;
28204
        _fieldName = fieldName;
28205
      }
28206
 
28207
      public short getThriftFieldId() {
28208
        return _thriftId;
28209
      }
28210
 
28211
      public String getFieldName() {
28212
        return _fieldName;
28213
      }
28214
    }
28215
 
28216
    // isset id assignments
3061 chandransh 28217
    private static final int __ORDERID_ISSET_ID = 0;
28218
    private static final int __JACKETNUMBER_ISSET_ID = 1;
28219
    private static final int __IMEINUMBER_ISSET_ID = 2;
28220
    private static final int __BILLINGTYPE_ISSET_ID = 3;
28221
    private BitSet __isset_bit_vector = new BitSet(4);
1245 chandransh 28222
 
3430 rajveer 28223
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1245 chandransh 28224
    static {
3430 rajveer 28225
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28226
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28227
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28228
      tmpMap.put(_Fields.JACKET_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("jacketNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28229
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28230
      tmpMap.put(_Fields.IMEI_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("imeiNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28231
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28232
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28233
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28234
      tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28235
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28236
      tmpMap.put(_Fields.BILLING_TYPE, new org.apache.thrift.meta_data.FieldMetaData("billingType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28238
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28239
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addJacketNumber_args.class, metaDataMap);
1245 chandransh 28240
    }
28241
 
3061 chandransh 28242
    public addJacketNumber_args() {
1245 chandransh 28243
    }
28244
 
3061 chandransh 28245
    public addJacketNumber_args(
28246
      long orderId,
28247
      long jacketNumber,
28248
      long imeiNumber,
28249
      String itemNumber,
28250
      String billedBy,
28251
      long billingType)
1245 chandransh 28252
    {
28253
      this();
3061 chandransh 28254
      this.orderId = orderId;
28255
      setOrderIdIsSet(true);
28256
      this.jacketNumber = jacketNumber;
28257
      setJacketNumberIsSet(true);
28258
      this.imeiNumber = imeiNumber;
28259
      setImeiNumberIsSet(true);
28260
      this.itemNumber = itemNumber;
28261
      this.billedBy = billedBy;
28262
      this.billingType = billingType;
28263
      setBillingTypeIsSet(true);
1245 chandransh 28264
    }
28265
 
28266
    /**
28267
     * Performs a deep copy on <i>other</i>.
28268
     */
3061 chandransh 28269
    public addJacketNumber_args(addJacketNumber_args other) {
1245 chandransh 28270
      __isset_bit_vector.clear();
28271
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 28272
      this.orderId = other.orderId;
28273
      this.jacketNumber = other.jacketNumber;
28274
      this.imeiNumber = other.imeiNumber;
28275
      if (other.isSetItemNumber()) {
28276
        this.itemNumber = other.itemNumber;
28277
      }
28278
      if (other.isSetBilledBy()) {
28279
        this.billedBy = other.billedBy;
28280
      }
28281
      this.billingType = other.billingType;
28282
    }
1245 chandransh 28283
 
3061 chandransh 28284
    public addJacketNumber_args deepCopy() {
28285
      return new addJacketNumber_args(this);
28286
    }
1245 chandransh 28287
 
3430 rajveer 28288
    @Override
28289
    public void clear() {
28290
      setOrderIdIsSet(false);
28291
      this.orderId = 0;
28292
      setJacketNumberIsSet(false);
28293
      this.jacketNumber = 0;
28294
      setImeiNumberIsSet(false);
28295
      this.imeiNumber = 0;
28296
      this.itemNumber = null;
28297
      this.billedBy = null;
28298
      setBillingTypeIsSet(false);
28299
      this.billingType = 0;
3061 chandransh 28300
    }
1245 chandransh 28301
 
3061 chandransh 28302
    public long getOrderId() {
28303
      return this.orderId;
28304
    }
1245 chandransh 28305
 
3430 rajveer 28306
    public void setOrderId(long orderId) {
3061 chandransh 28307
      this.orderId = orderId;
28308
      setOrderIdIsSet(true);
1245 chandransh 28309
    }
28310
 
3061 chandransh 28311
    public void unsetOrderId() {
28312
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
1245 chandransh 28313
    }
28314
 
3430 rajveer 28315
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3061 chandransh 28316
    public boolean isSetOrderId() {
28317
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
1245 chandransh 28318
    }
28319
 
3061 chandransh 28320
    public void setOrderIdIsSet(boolean value) {
28321
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
1245 chandransh 28322
    }
28323
 
3061 chandransh 28324
    public long getJacketNumber() {
28325
      return this.jacketNumber;
28326
    }
28327
 
3430 rajveer 28328
    public void setJacketNumber(long jacketNumber) {
3061 chandransh 28329
      this.jacketNumber = jacketNumber;
28330
      setJacketNumberIsSet(true);
1245 chandransh 28331
    }
28332
 
3061 chandransh 28333
    public void unsetJacketNumber() {
28334
      __isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
1245 chandransh 28335
    }
28336
 
3430 rajveer 28337
    /** Returns true if field jacketNumber is set (has been assigned a value) and false otherwise */
3061 chandransh 28338
    public boolean isSetJacketNumber() {
28339
      return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
1245 chandransh 28340
    }
28341
 
3061 chandransh 28342
    public void setJacketNumberIsSet(boolean value) {
28343
      __isset_bit_vector.set(__JACKETNUMBER_ISSET_ID, value);
1245 chandransh 28344
    }
28345
 
3061 chandransh 28346
    public long getImeiNumber() {
28347
      return this.imeiNumber;
1245 chandransh 28348
    }
28349
 
3430 rajveer 28350
    public void setImeiNumber(long imeiNumber) {
3061 chandransh 28351
      this.imeiNumber = imeiNumber;
28352
      setImeiNumberIsSet(true);
28353
    }
28354
 
28355
    public void unsetImeiNumber() {
28356
      __isset_bit_vector.clear(__IMEINUMBER_ISSET_ID);
28357
    }
28358
 
3430 rajveer 28359
    /** Returns true if field imeiNumber is set (has been assigned a value) and false otherwise */
3061 chandransh 28360
    public boolean isSetImeiNumber() {
28361
      return __isset_bit_vector.get(__IMEINUMBER_ISSET_ID);
28362
    }
28363
 
28364
    public void setImeiNumberIsSet(boolean value) {
28365
      __isset_bit_vector.set(__IMEINUMBER_ISSET_ID, value);
28366
    }
28367
 
28368
    public String getItemNumber() {
28369
      return this.itemNumber;
28370
    }
28371
 
3430 rajveer 28372
    public void setItemNumber(String itemNumber) {
3061 chandransh 28373
      this.itemNumber = itemNumber;
28374
    }
28375
 
28376
    public void unsetItemNumber() {
28377
      this.itemNumber = null;
28378
    }
28379
 
3430 rajveer 28380
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
3061 chandransh 28381
    public boolean isSetItemNumber() {
28382
      return this.itemNumber != null;
28383
    }
28384
 
28385
    public void setItemNumberIsSet(boolean value) {
28386
      if (!value) {
28387
        this.itemNumber = null;
1245 chandransh 28388
      }
28389
    }
28390
 
3061 chandransh 28391
    public String getBilledBy() {
28392
      return this.billedBy;
1245 chandransh 28393
    }
28394
 
3430 rajveer 28395
    public void setBilledBy(String billedBy) {
3061 chandransh 28396
      this.billedBy = billedBy;
1245 chandransh 28397
    }
28398
 
3061 chandransh 28399
    public void unsetBilledBy() {
28400
      this.billedBy = null;
1245 chandransh 28401
    }
28402
 
3430 rajveer 28403
    /** Returns true if field billedBy is set (has been assigned a value) and false otherwise */
3061 chandransh 28404
    public boolean isSetBilledBy() {
28405
      return this.billedBy != null;
1245 chandransh 28406
    }
28407
 
3061 chandransh 28408
    public void setBilledByIsSet(boolean value) {
1245 chandransh 28409
      if (!value) {
3061 chandransh 28410
        this.billedBy = null;
1245 chandransh 28411
      }
28412
    }
28413
 
3061 chandransh 28414
    public long getBillingType() {
28415
      return this.billingType;
28416
    }
28417
 
3430 rajveer 28418
    public void setBillingType(long billingType) {
3061 chandransh 28419
      this.billingType = billingType;
28420
      setBillingTypeIsSet(true);
28421
    }
28422
 
28423
    public void unsetBillingType() {
28424
      __isset_bit_vector.clear(__BILLINGTYPE_ISSET_ID);
28425
    }
28426
 
3430 rajveer 28427
    /** Returns true if field billingType is set (has been assigned a value) and false otherwise */
3061 chandransh 28428
    public boolean isSetBillingType() {
28429
      return __isset_bit_vector.get(__BILLINGTYPE_ISSET_ID);
28430
    }
28431
 
28432
    public void setBillingTypeIsSet(boolean value) {
28433
      __isset_bit_vector.set(__BILLINGTYPE_ISSET_ID, value);
28434
    }
28435
 
1245 chandransh 28436
    public void setFieldValue(_Fields field, Object value) {
28437
      switch (field) {
3061 chandransh 28438
      case ORDER_ID:
1245 chandransh 28439
        if (value == null) {
3061 chandransh 28440
          unsetOrderId();
1245 chandransh 28441
        } else {
3061 chandransh 28442
          setOrderId((Long)value);
1245 chandransh 28443
        }
28444
        break;
28445
 
3061 chandransh 28446
      case JACKET_NUMBER:
1245 chandransh 28447
        if (value == null) {
3061 chandransh 28448
          unsetJacketNumber();
1245 chandransh 28449
        } else {
3061 chandransh 28450
          setJacketNumber((Long)value);
1245 chandransh 28451
        }
28452
        break;
28453
 
3061 chandransh 28454
      case IMEI_NUMBER:
28455
        if (value == null) {
28456
          unsetImeiNumber();
28457
        } else {
28458
          setImeiNumber((Long)value);
28459
        }
28460
        break;
28461
 
28462
      case ITEM_NUMBER:
28463
        if (value == null) {
28464
          unsetItemNumber();
28465
        } else {
28466
          setItemNumber((String)value);
28467
        }
28468
        break;
28469
 
28470
      case BILLED_BY:
28471
        if (value == null) {
28472
          unsetBilledBy();
28473
        } else {
28474
          setBilledBy((String)value);
28475
        }
28476
        break;
28477
 
28478
      case BILLING_TYPE:
28479
        if (value == null) {
28480
          unsetBillingType();
28481
        } else {
28482
          setBillingType((Long)value);
28483
        }
28484
        break;
28485
 
1245 chandransh 28486
      }
28487
    }
28488
 
28489
    public Object getFieldValue(_Fields field) {
28490
      switch (field) {
3061 chandransh 28491
      case ORDER_ID:
3430 rajveer 28492
        return Long.valueOf(getOrderId());
1245 chandransh 28493
 
3061 chandransh 28494
      case JACKET_NUMBER:
3430 rajveer 28495
        return Long.valueOf(getJacketNumber());
1245 chandransh 28496
 
3061 chandransh 28497
      case IMEI_NUMBER:
3430 rajveer 28498
        return Long.valueOf(getImeiNumber());
3061 chandransh 28499
 
28500
      case ITEM_NUMBER:
28501
        return getItemNumber();
28502
 
28503
      case BILLED_BY:
28504
        return getBilledBy();
28505
 
28506
      case BILLING_TYPE:
3430 rajveer 28507
        return Long.valueOf(getBillingType());
3061 chandransh 28508
 
1245 chandransh 28509
      }
28510
      throw new IllegalStateException();
28511
    }
28512
 
3430 rajveer 28513
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28514
    public boolean isSet(_Fields field) {
28515
      if (field == null) {
28516
        throw new IllegalArgumentException();
28517
      }
1245 chandransh 28518
 
28519
      switch (field) {
3061 chandransh 28520
      case ORDER_ID:
28521
        return isSetOrderId();
28522
      case JACKET_NUMBER:
28523
        return isSetJacketNumber();
28524
      case IMEI_NUMBER:
28525
        return isSetImeiNumber();
28526
      case ITEM_NUMBER:
28527
        return isSetItemNumber();
28528
      case BILLED_BY:
28529
        return isSetBilledBy();
28530
      case BILLING_TYPE:
28531
        return isSetBillingType();
1245 chandransh 28532
      }
28533
      throw new IllegalStateException();
28534
    }
28535
 
28536
    @Override
28537
    public boolean equals(Object that) {
28538
      if (that == null)
28539
        return false;
3061 chandransh 28540
      if (that instanceof addJacketNumber_args)
28541
        return this.equals((addJacketNumber_args)that);
1245 chandransh 28542
      return false;
28543
    }
28544
 
3061 chandransh 28545
    public boolean equals(addJacketNumber_args that) {
1245 chandransh 28546
      if (that == null)
28547
        return false;
28548
 
3061 chandransh 28549
      boolean this_present_orderId = true;
28550
      boolean that_present_orderId = true;
28551
      if (this_present_orderId || that_present_orderId) {
28552
        if (!(this_present_orderId && that_present_orderId))
1245 chandransh 28553
          return false;
3061 chandransh 28554
        if (this.orderId != that.orderId)
1245 chandransh 28555
          return false;
28556
      }
28557
 
3061 chandransh 28558
      boolean this_present_jacketNumber = true;
28559
      boolean that_present_jacketNumber = true;
28560
      if (this_present_jacketNumber || that_present_jacketNumber) {
28561
        if (!(this_present_jacketNumber && that_present_jacketNumber))
1245 chandransh 28562
          return false;
3061 chandransh 28563
        if (this.jacketNumber != that.jacketNumber)
1245 chandransh 28564
          return false;
28565
      }
28566
 
3061 chandransh 28567
      boolean this_present_imeiNumber = true;
28568
      boolean that_present_imeiNumber = true;
28569
      if (this_present_imeiNumber || that_present_imeiNumber) {
28570
        if (!(this_present_imeiNumber && that_present_imeiNumber))
28571
          return false;
28572
        if (this.imeiNumber != that.imeiNumber)
28573
          return false;
28574
      }
28575
 
28576
      boolean this_present_itemNumber = true && this.isSetItemNumber();
28577
      boolean that_present_itemNumber = true && that.isSetItemNumber();
28578
      if (this_present_itemNumber || that_present_itemNumber) {
28579
        if (!(this_present_itemNumber && that_present_itemNumber))
28580
          return false;
28581
        if (!this.itemNumber.equals(that.itemNumber))
28582
          return false;
28583
      }
28584
 
28585
      boolean this_present_billedBy = true && this.isSetBilledBy();
28586
      boolean that_present_billedBy = true && that.isSetBilledBy();
28587
      if (this_present_billedBy || that_present_billedBy) {
28588
        if (!(this_present_billedBy && that_present_billedBy))
28589
          return false;
28590
        if (!this.billedBy.equals(that.billedBy))
28591
          return false;
28592
      }
28593
 
28594
      boolean this_present_billingType = true;
28595
      boolean that_present_billingType = true;
28596
      if (this_present_billingType || that_present_billingType) {
28597
        if (!(this_present_billingType && that_present_billingType))
28598
          return false;
28599
        if (this.billingType != that.billingType)
28600
          return false;
28601
      }
28602
 
1245 chandransh 28603
      return true;
28604
    }
28605
 
28606
    @Override
28607
    public int hashCode() {
28608
      return 0;
28609
    }
28610
 
3061 chandransh 28611
    public int compareTo(addJacketNumber_args other) {
28612
      if (!getClass().equals(other.getClass())) {
28613
        return getClass().getName().compareTo(other.getClass().getName());
28614
      }
28615
 
28616
      int lastComparison = 0;
28617
      addJacketNumber_args typedOther = (addJacketNumber_args)other;
28618
 
3430 rajveer 28619
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
3061 chandransh 28620
      if (lastComparison != 0) {
28621
        return lastComparison;
28622
      }
3430 rajveer 28623
      if (isSetOrderId()) {
28624
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
28625
        if (lastComparison != 0) {
28626
          return lastComparison;
28627
        }
3061 chandransh 28628
      }
3430 rajveer 28629
      lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(typedOther.isSetJacketNumber());
3061 chandransh 28630
      if (lastComparison != 0) {
28631
        return lastComparison;
28632
      }
3430 rajveer 28633
      if (isSetJacketNumber()) {
28634
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jacketNumber, typedOther.jacketNumber);
28635
        if (lastComparison != 0) {
28636
          return lastComparison;
28637
        }
3061 chandransh 28638
      }
3430 rajveer 28639
      lastComparison = Boolean.valueOf(isSetImeiNumber()).compareTo(typedOther.isSetImeiNumber());
3061 chandransh 28640
      if (lastComparison != 0) {
28641
        return lastComparison;
28642
      }
3430 rajveer 28643
      if (isSetImeiNumber()) {
28644
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imeiNumber, typedOther.imeiNumber);
28645
        if (lastComparison != 0) {
28646
          return lastComparison;
28647
        }
3061 chandransh 28648
      }
3430 rajveer 28649
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
3061 chandransh 28650
      if (lastComparison != 0) {
28651
        return lastComparison;
28652
      }
3430 rajveer 28653
      if (isSetItemNumber()) {
28654
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
28655
        if (lastComparison != 0) {
28656
          return lastComparison;
28657
        }
3061 chandransh 28658
      }
3430 rajveer 28659
      lastComparison = Boolean.valueOf(isSetBilledBy()).compareTo(typedOther.isSetBilledBy());
3061 chandransh 28660
      if (lastComparison != 0) {
28661
        return lastComparison;
28662
      }
3430 rajveer 28663
      if (isSetBilledBy()) {
28664
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billedBy, typedOther.billedBy);
28665
        if (lastComparison != 0) {
28666
          return lastComparison;
28667
        }
3061 chandransh 28668
      }
3430 rajveer 28669
      lastComparison = Boolean.valueOf(isSetBillingType()).compareTo(typedOther.isSetBillingType());
3061 chandransh 28670
      if (lastComparison != 0) {
28671
        return lastComparison;
28672
      }
3430 rajveer 28673
      if (isSetBillingType()) {
28674
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingType, typedOther.billingType);
28675
        if (lastComparison != 0) {
28676
          return lastComparison;
28677
        }
3061 chandransh 28678
      }
28679
      return 0;
28680
    }
28681
 
3430 rajveer 28682
    public _Fields fieldForId(int fieldId) {
28683
      return _Fields.findByThriftId(fieldId);
28684
    }
28685
 
28686
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28687
      org.apache.thrift.protocol.TField field;
1245 chandransh 28688
      iprot.readStructBegin();
28689
      while (true)
28690
      {
28691
        field = iprot.readFieldBegin();
3430 rajveer 28692
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1245 chandransh 28693
          break;
28694
        }
3430 rajveer 28695
        switch (field.id) {
28696
          case 1: // ORDER_ID
28697
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28698
              this.orderId = iprot.readI64();
28699
              setOrderIdIsSet(true);
28700
            } else { 
28701
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28702
            }
28703
            break;
28704
          case 2: // JACKET_NUMBER
28705
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28706
              this.jacketNumber = iprot.readI64();
28707
              setJacketNumberIsSet(true);
28708
            } else { 
28709
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28710
            }
28711
            break;
28712
          case 3: // IMEI_NUMBER
28713
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28714
              this.imeiNumber = iprot.readI64();
28715
              setImeiNumberIsSet(true);
28716
            } else { 
28717
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28718
            }
28719
            break;
28720
          case 4: // ITEM_NUMBER
28721
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
28722
              this.itemNumber = iprot.readString();
28723
            } else { 
28724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28725
            }
28726
            break;
28727
          case 5: // BILLED_BY
28728
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
28729
              this.billedBy = iprot.readString();
28730
            } else { 
28731
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28732
            }
28733
            break;
28734
          case 6: // BILLING_TYPE
28735
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28736
              this.billingType = iprot.readI64();
28737
              setBillingTypeIsSet(true);
28738
            } else { 
28739
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28740
            }
28741
            break;
28742
          default:
28743
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1245 chandransh 28744
        }
3430 rajveer 28745
        iprot.readFieldEnd();
1245 chandransh 28746
      }
28747
      iprot.readStructEnd();
28748
      validate();
28749
    }
28750
 
3430 rajveer 28751
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1245 chandransh 28752
      validate();
28753
 
28754
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 28755
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
28756
      oprot.writeI64(this.orderId);
1245 chandransh 28757
      oprot.writeFieldEnd();
3061 chandransh 28758
      oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
28759
      oprot.writeI64(this.jacketNumber);
28760
      oprot.writeFieldEnd();
28761
      oprot.writeFieldBegin(IMEI_NUMBER_FIELD_DESC);
28762
      oprot.writeI64(this.imeiNumber);
28763
      oprot.writeFieldEnd();
28764
      if (this.itemNumber != null) {
28765
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
28766
        oprot.writeString(this.itemNumber);
1245 chandransh 28767
        oprot.writeFieldEnd();
28768
      }
3061 chandransh 28769
      if (this.billedBy != null) {
28770
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
28771
        oprot.writeString(this.billedBy);
28772
        oprot.writeFieldEnd();
28773
      }
28774
      oprot.writeFieldBegin(BILLING_TYPE_FIELD_DESC);
28775
      oprot.writeI64(this.billingType);
28776
      oprot.writeFieldEnd();
1245 chandransh 28777
      oprot.writeFieldStop();
28778
      oprot.writeStructEnd();
28779
    }
28780
 
28781
    @Override
28782
    public String toString() {
3061 chandransh 28783
      StringBuilder sb = new StringBuilder("addJacketNumber_args(");
1245 chandransh 28784
      boolean first = true;
28785
 
3061 chandransh 28786
      sb.append("orderId:");
28787
      sb.append(this.orderId);
1245 chandransh 28788
      first = false;
28789
      if (!first) sb.append(", ");
3061 chandransh 28790
      sb.append("jacketNumber:");
28791
      sb.append(this.jacketNumber);
28792
      first = false;
28793
      if (!first) sb.append(", ");
28794
      sb.append("imeiNumber:");
28795
      sb.append(this.imeiNumber);
28796
      first = false;
28797
      if (!first) sb.append(", ");
28798
      sb.append("itemNumber:");
28799
      if (this.itemNumber == null) {
1245 chandransh 28800
        sb.append("null");
28801
      } else {
3061 chandransh 28802
        sb.append(this.itemNumber);
1245 chandransh 28803
      }
28804
      first = false;
3061 chandransh 28805
      if (!first) sb.append(", ");
28806
      sb.append("billedBy:");
28807
      if (this.billedBy == null) {
28808
        sb.append("null");
28809
      } else {
28810
        sb.append(this.billedBy);
28811
      }
28812
      first = false;
28813
      if (!first) sb.append(", ");
28814
      sb.append("billingType:");
28815
      sb.append(this.billingType);
28816
      first = false;
1245 chandransh 28817
      sb.append(")");
28818
      return sb.toString();
28819
    }
28820
 
3430 rajveer 28821
    public void validate() throws org.apache.thrift.TException {
1245 chandransh 28822
      // check for required fields
28823
    }
28824
 
3430 rajveer 28825
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28826
      try {
28827
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28828
      } catch (org.apache.thrift.TException te) {
28829
        throw new java.io.IOException(te);
28830
      }
28831
    }
28832
 
28833
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28834
      try {
3469 chandransh 28835
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28836
        __isset_bit_vector = new BitSet(1);
3430 rajveer 28837
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28838
      } catch (org.apache.thrift.TException te) {
28839
        throw new java.io.IOException(te);
28840
      }
28841
    }
28842
 
1245 chandransh 28843
  }
28844
 
3430 rajveer 28845
  public static class addJacketNumber_result implements org.apache.thrift.TBase<addJacketNumber_result, addJacketNumber_result._Fields>, java.io.Serializable, Cloneable   {
28846
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addJacketNumber_result");
1245 chandransh 28847
 
3430 rajveer 28848
    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);
28849
    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 28850
 
3430 rajveer 28851
    private boolean success; // required
28852
    private TransactionServiceException ex; // required
1245 chandransh 28853
 
28854
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28855
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 28856
      SUCCESS((short)0, "success"),
1245 chandransh 28857
      EX((short)1, "ex");
28858
 
28859
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28860
 
28861
      static {
28862
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28863
          byName.put(field.getFieldName(), field);
28864
        }
28865
      }
28866
 
28867
      /**
28868
       * Find the _Fields constant that matches fieldId, or null if its not found.
28869
       */
28870
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28871
        switch(fieldId) {
28872
          case 0: // SUCCESS
28873
            return SUCCESS;
28874
          case 1: // EX
28875
            return EX;
28876
          default:
28877
            return null;
28878
        }
1245 chandransh 28879
      }
28880
 
28881
      /**
28882
       * Find the _Fields constant that matches fieldId, throwing an exception
28883
       * if it is not found.
28884
       */
28885
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28886
        _Fields fields = findByThriftId(fieldId);
28887
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28888
        return fields;
28889
      }
28890
 
28891
      /**
28892
       * Find the _Fields constant that matches name, or null if its not found.
28893
       */
28894
      public static _Fields findByName(String name) {
28895
        return byName.get(name);
28896
      }
28897
 
28898
      private final short _thriftId;
28899
      private final String _fieldName;
28900
 
28901
      _Fields(short thriftId, String fieldName) {
28902
        _thriftId = thriftId;
28903
        _fieldName = fieldName;
28904
      }
28905
 
28906
      public short getThriftFieldId() {
28907
        return _thriftId;
28908
      }
28909
 
28910
      public String getFieldName() {
28911
        return _fieldName;
28912
      }
28913
    }
28914
 
28915
    // isset id assignments
3061 chandransh 28916
    private static final int __SUCCESS_ISSET_ID = 0;
28917
    private BitSet __isset_bit_vector = new BitSet(1);
1245 chandransh 28918
 
3430 rajveer 28919
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1245 chandransh 28920
    static {
3430 rajveer 28921
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28922
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28923
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
28924
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28925
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28926
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28927
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addJacketNumber_result.class, metaDataMap);
1245 chandransh 28928
    }
28929
 
3061 chandransh 28930
    public addJacketNumber_result() {
1245 chandransh 28931
    }
28932
 
3061 chandransh 28933
    public addJacketNumber_result(
28934
      boolean success,
1245 chandransh 28935
      TransactionServiceException ex)
28936
    {
28937
      this();
3061 chandransh 28938
      this.success = success;
28939
      setSuccessIsSet(true);
1245 chandransh 28940
      this.ex = ex;
28941
    }
28942
 
28943
    /**
28944
     * Performs a deep copy on <i>other</i>.
28945
     */
3061 chandransh 28946
    public addJacketNumber_result(addJacketNumber_result other) {
28947
      __isset_bit_vector.clear();
28948
      __isset_bit_vector.or(other.__isset_bit_vector);
28949
      this.success = other.success;
1245 chandransh 28950
      if (other.isSetEx()) {
28951
        this.ex = new TransactionServiceException(other.ex);
28952
      }
28953
    }
28954
 
3061 chandransh 28955
    public addJacketNumber_result deepCopy() {
28956
      return new addJacketNumber_result(this);
1245 chandransh 28957
    }
28958
 
3430 rajveer 28959
    @Override
28960
    public void clear() {
28961
      setSuccessIsSet(false);
28962
      this.success = false;
28963
      this.ex = null;
1245 chandransh 28964
    }
28965
 
3061 chandransh 28966
    public boolean isSuccess() {
28967
      return this.success;
28968
    }
28969
 
3430 rajveer 28970
    public void setSuccess(boolean success) {
3061 chandransh 28971
      this.success = success;
28972
      setSuccessIsSet(true);
28973
    }
28974
 
28975
    public void unsetSuccess() {
28976
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
28977
    }
28978
 
3430 rajveer 28979
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 28980
    public boolean isSetSuccess() {
28981
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
28982
    }
28983
 
28984
    public void setSuccessIsSet(boolean value) {
28985
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
28986
    }
28987
 
1245 chandransh 28988
    public TransactionServiceException getEx() {
28989
      return this.ex;
28990
    }
28991
 
3430 rajveer 28992
    public void setEx(TransactionServiceException ex) {
1245 chandransh 28993
      this.ex = ex;
28994
    }
28995
 
28996
    public void unsetEx() {
28997
      this.ex = null;
28998
    }
28999
 
3430 rajveer 29000
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
1245 chandransh 29001
    public boolean isSetEx() {
29002
      return this.ex != null;
29003
    }
29004
 
29005
    public void setExIsSet(boolean value) {
29006
      if (!value) {
29007
        this.ex = null;
29008
      }
29009
    }
29010
 
29011
    public void setFieldValue(_Fields field, Object value) {
29012
      switch (field) {
3061 chandransh 29013
      case SUCCESS:
29014
        if (value == null) {
29015
          unsetSuccess();
29016
        } else {
29017
          setSuccess((Boolean)value);
29018
        }
29019
        break;
29020
 
1245 chandransh 29021
      case EX:
29022
        if (value == null) {
29023
          unsetEx();
29024
        } else {
29025
          setEx((TransactionServiceException)value);
29026
        }
29027
        break;
29028
 
29029
      }
29030
    }
29031
 
29032
    public Object getFieldValue(_Fields field) {
29033
      switch (field) {
3061 chandransh 29034
      case SUCCESS:
3430 rajveer 29035
        return Boolean.valueOf(isSuccess());
3061 chandransh 29036
 
1245 chandransh 29037
      case EX:
29038
        return getEx();
29039
 
29040
      }
29041
      throw new IllegalStateException();
29042
    }
29043
 
3430 rajveer 29044
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29045
    public boolean isSet(_Fields field) {
29046
      if (field == null) {
29047
        throw new IllegalArgumentException();
29048
      }
1245 chandransh 29049
 
29050
      switch (field) {
3061 chandransh 29051
      case SUCCESS:
29052
        return isSetSuccess();
1245 chandransh 29053
      case EX:
29054
        return isSetEx();
29055
      }
29056
      throw new IllegalStateException();
29057
    }
29058
 
29059
    @Override
29060
    public boolean equals(Object that) {
29061
      if (that == null)
29062
        return false;
3061 chandransh 29063
      if (that instanceof addJacketNumber_result)
29064
        return this.equals((addJacketNumber_result)that);
1245 chandransh 29065
      return false;
29066
    }
29067
 
3061 chandransh 29068
    public boolean equals(addJacketNumber_result that) {
1245 chandransh 29069
      if (that == null)
29070
        return false;
29071
 
3061 chandransh 29072
      boolean this_present_success = true;
29073
      boolean that_present_success = true;
29074
      if (this_present_success || that_present_success) {
29075
        if (!(this_present_success && that_present_success))
29076
          return false;
29077
        if (this.success != that.success)
29078
          return false;
29079
      }
29080
 
1245 chandransh 29081
      boolean this_present_ex = true && this.isSetEx();
29082
      boolean that_present_ex = true && that.isSetEx();
29083
      if (this_present_ex || that_present_ex) {
29084
        if (!(this_present_ex && that_present_ex))
29085
          return false;
29086
        if (!this.ex.equals(that.ex))
29087
          return false;
29088
      }
29089
 
29090
      return true;
29091
    }
29092
 
29093
    @Override
29094
    public int hashCode() {
29095
      return 0;
29096
    }
29097
 
3061 chandransh 29098
    public int compareTo(addJacketNumber_result other) {
1245 chandransh 29099
      if (!getClass().equals(other.getClass())) {
29100
        return getClass().getName().compareTo(other.getClass().getName());
29101
      }
29102
 
29103
      int lastComparison = 0;
3061 chandransh 29104
      addJacketNumber_result typedOther = (addJacketNumber_result)other;
1245 chandransh 29105
 
3430 rajveer 29106
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3061 chandransh 29107
      if (lastComparison != 0) {
29108
        return lastComparison;
29109
      }
3430 rajveer 29110
      if (isSetSuccess()) {
29111
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29112
        if (lastComparison != 0) {
29113
          return lastComparison;
29114
        }
3061 chandransh 29115
      }
3430 rajveer 29116
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1245 chandransh 29117
      if (lastComparison != 0) {
29118
        return lastComparison;
29119
      }
3430 rajveer 29120
      if (isSetEx()) {
29121
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
29122
        if (lastComparison != 0) {
29123
          return lastComparison;
29124
        }
1245 chandransh 29125
      }
29126
      return 0;
29127
    }
29128
 
3430 rajveer 29129
    public _Fields fieldForId(int fieldId) {
29130
      return _Fields.findByThriftId(fieldId);
29131
    }
29132
 
29133
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29134
      org.apache.thrift.protocol.TField field;
1245 chandransh 29135
      iprot.readStructBegin();
29136
      while (true)
29137
      {
29138
        field = iprot.readFieldBegin();
3430 rajveer 29139
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1245 chandransh 29140
          break;
29141
        }
3430 rajveer 29142
        switch (field.id) {
29143
          case 0: // SUCCESS
29144
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
29145
              this.success = iprot.readBool();
29146
              setSuccessIsSet(true);
29147
            } else { 
29148
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29149
            }
29150
            break;
29151
          case 1: // EX
29152
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29153
              this.ex = new TransactionServiceException();
29154
              this.ex.read(iprot);
29155
            } else { 
29156
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29157
            }
29158
            break;
29159
          default:
29160
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1245 chandransh 29161
        }
3430 rajveer 29162
        iprot.readFieldEnd();
1245 chandransh 29163
      }
29164
      iprot.readStructEnd();
29165
      validate();
29166
    }
29167
 
3430 rajveer 29168
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1245 chandransh 29169
      oprot.writeStructBegin(STRUCT_DESC);
29170
 
3061 chandransh 29171
      if (this.isSetSuccess()) {
29172
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29173
        oprot.writeBool(this.success);
29174
        oprot.writeFieldEnd();
29175
      } else if (this.isSetEx()) {
1245 chandransh 29176
        oprot.writeFieldBegin(EX_FIELD_DESC);
29177
        this.ex.write(oprot);
29178
        oprot.writeFieldEnd();
29179
      }
29180
      oprot.writeFieldStop();
29181
      oprot.writeStructEnd();
29182
    }
29183
 
29184
    @Override
29185
    public String toString() {
3061 chandransh 29186
      StringBuilder sb = new StringBuilder("addJacketNumber_result(");
1245 chandransh 29187
      boolean first = true;
29188
 
3061 chandransh 29189
      sb.append("success:");
29190
      sb.append(this.success);
29191
      first = false;
29192
      if (!first) sb.append(", ");
1245 chandransh 29193
      sb.append("ex:");
29194
      if (this.ex == null) {
29195
        sb.append("null");
29196
      } else {
29197
        sb.append(this.ex);
29198
      }
29199
      first = false;
29200
      sb.append(")");
29201
      return sb.toString();
29202
    }
29203
 
3430 rajveer 29204
    public void validate() throws org.apache.thrift.TException {
1245 chandransh 29205
      // check for required fields
29206
    }
29207
 
3430 rajveer 29208
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29209
      try {
29210
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29211
      } catch (org.apache.thrift.TException te) {
29212
        throw new java.io.IOException(te);
29213
      }
29214
    }
29215
 
29216
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29217
      try {
29218
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29219
      } catch (org.apache.thrift.TException te) {
29220
        throw new java.io.IOException(te);
29221
      }
29222
    }
29223
 
1245 chandransh 29224
  }
29225
 
3430 rajveer 29226
  public static class markOrdersAsManifested_args implements org.apache.thrift.TBase<markOrdersAsManifested_args, markOrdersAsManifested_args._Fields>, java.io.Serializable, Cloneable   {
29227
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsManifested_args");
1406 ankur.sing 29228
 
3430 rajveer 29229
    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);
29230
    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);
29231
    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 29232
 
3430 rajveer 29233
    private long warehouseId; // required
29234
    private long providerId; // required
29235
    private boolean cod; // required
1406 ankur.sing 29236
 
29237
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29238
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 29239
      WAREHOUSE_ID((short)1, "warehouseId"),
29240
      PROVIDER_ID((short)2, "providerId"),
29241
      COD((short)3, "cod");
1406 ankur.sing 29242
 
29243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29244
 
29245
      static {
29246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29247
          byName.put(field.getFieldName(), field);
29248
        }
29249
      }
29250
 
29251
      /**
29252
       * Find the _Fields constant that matches fieldId, or null if its not found.
29253
       */
29254
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29255
        switch(fieldId) {
29256
          case 1: // WAREHOUSE_ID
29257
            return WAREHOUSE_ID;
29258
          case 2: // PROVIDER_ID
29259
            return PROVIDER_ID;
29260
          case 3: // COD
29261
            return COD;
29262
          default:
29263
            return null;
29264
        }
1406 ankur.sing 29265
      }
29266
 
29267
      /**
29268
       * Find the _Fields constant that matches fieldId, throwing an exception
29269
       * if it is not found.
29270
       */
29271
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29272
        _Fields fields = findByThriftId(fieldId);
29273
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29274
        return fields;
29275
      }
29276
 
29277
      /**
29278
       * Find the _Fields constant that matches name, or null if its not found.
29279
       */
29280
      public static _Fields findByName(String name) {
29281
        return byName.get(name);
29282
      }
29283
 
29284
      private final short _thriftId;
29285
      private final String _fieldName;
29286
 
29287
      _Fields(short thriftId, String fieldName) {
29288
        _thriftId = thriftId;
29289
        _fieldName = fieldName;
29290
      }
29291
 
29292
      public short getThriftFieldId() {
29293
        return _thriftId;
29294
      }
29295
 
29296
      public String getFieldName() {
29297
        return _fieldName;
29298
      }
29299
    }
29300
 
29301
    // isset id assignments
3061 chandransh 29302
    private static final int __WAREHOUSEID_ISSET_ID = 0;
29303
    private static final int __PROVIDERID_ISSET_ID = 1;
29304
    private static final int __COD_ISSET_ID = 2;
29305
    private BitSet __isset_bit_vector = new BitSet(3);
1406 ankur.sing 29306
 
3430 rajveer 29307
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1406 ankur.sing 29308
    static {
3430 rajveer 29309
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29310
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29311
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29312
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29313
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29314
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29315
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
29316
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29317
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsManifested_args.class, metaDataMap);
1406 ankur.sing 29318
    }
29319
 
3061 chandransh 29320
    public markOrdersAsManifested_args() {
1406 ankur.sing 29321
    }
29322
 
3061 chandransh 29323
    public markOrdersAsManifested_args(
29324
      long warehouseId,
1406 ankur.sing 29325
      long providerId,
3061 chandransh 29326
      boolean cod)
1406 ankur.sing 29327
    {
29328
      this();
3061 chandransh 29329
      this.warehouseId = warehouseId;
29330
      setWarehouseIdIsSet(true);
1406 ankur.sing 29331
      this.providerId = providerId;
29332
      setProviderIdIsSet(true);
3061 chandransh 29333
      this.cod = cod;
29334
      setCodIsSet(true);
1406 ankur.sing 29335
    }
29336
 
29337
    /**
29338
     * Performs a deep copy on <i>other</i>.
29339
     */
3061 chandransh 29340
    public markOrdersAsManifested_args(markOrdersAsManifested_args other) {
1406 ankur.sing 29341
      __isset_bit_vector.clear();
29342
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 29343
      this.warehouseId = other.warehouseId;
1406 ankur.sing 29344
      this.providerId = other.providerId;
3061 chandransh 29345
      this.cod = other.cod;
1406 ankur.sing 29346
    }
29347
 
3061 chandransh 29348
    public markOrdersAsManifested_args deepCopy() {
29349
      return new markOrdersAsManifested_args(this);
1406 ankur.sing 29350
    }
29351
 
3430 rajveer 29352
    @Override
29353
    public void clear() {
29354
      setWarehouseIdIsSet(false);
29355
      this.warehouseId = 0;
29356
      setProviderIdIsSet(false);
29357
      this.providerId = 0;
29358
      setCodIsSet(false);
29359
      this.cod = false;
1406 ankur.sing 29360
    }
29361
 
3061 chandransh 29362
    public long getWarehouseId() {
29363
      return this.warehouseId;
29364
    }
29365
 
3430 rajveer 29366
    public void setWarehouseId(long warehouseId) {
3061 chandransh 29367
      this.warehouseId = warehouseId;
29368
      setWarehouseIdIsSet(true);
29369
    }
29370
 
29371
    public void unsetWarehouseId() {
29372
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
29373
    }
29374
 
3430 rajveer 29375
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
3061 chandransh 29376
    public boolean isSetWarehouseId() {
29377
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
29378
    }
29379
 
29380
    public void setWarehouseIdIsSet(boolean value) {
29381
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
29382
    }
29383
 
1406 ankur.sing 29384
    public long getProviderId() {
29385
      return this.providerId;
29386
    }
29387
 
3430 rajveer 29388
    public void setProviderId(long providerId) {
1406 ankur.sing 29389
      this.providerId = providerId;
29390
      setProviderIdIsSet(true);
29391
    }
29392
 
29393
    public void unsetProviderId() {
29394
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
29395
    }
29396
 
3430 rajveer 29397
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1406 ankur.sing 29398
    public boolean isSetProviderId() {
29399
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
29400
    }
29401
 
29402
    public void setProviderIdIsSet(boolean value) {
29403
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
29404
    }
29405
 
3061 chandransh 29406
    public boolean isCod() {
29407
      return this.cod;
1406 ankur.sing 29408
    }
29409
 
3430 rajveer 29410
    public void setCod(boolean cod) {
3061 chandransh 29411
      this.cod = cod;
29412
      setCodIsSet(true);
1406 ankur.sing 29413
    }
29414
 
3061 chandransh 29415
    public void unsetCod() {
29416
      __isset_bit_vector.clear(__COD_ISSET_ID);
1406 ankur.sing 29417
    }
29418
 
3430 rajveer 29419
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
3061 chandransh 29420
    public boolean isSetCod() {
29421
      return __isset_bit_vector.get(__COD_ISSET_ID);
1406 ankur.sing 29422
    }
29423
 
3061 chandransh 29424
    public void setCodIsSet(boolean value) {
29425
      __isset_bit_vector.set(__COD_ISSET_ID, value);
1406 ankur.sing 29426
    }
29427
 
29428
    public void setFieldValue(_Fields field, Object value) {
29429
      switch (field) {
3061 chandransh 29430
      case WAREHOUSE_ID:
29431
        if (value == null) {
29432
          unsetWarehouseId();
29433
        } else {
29434
          setWarehouseId((Long)value);
29435
        }
29436
        break;
29437
 
1406 ankur.sing 29438
      case PROVIDER_ID:
29439
        if (value == null) {
29440
          unsetProviderId();
29441
        } else {
29442
          setProviderId((Long)value);
29443
        }
29444
        break;
29445
 
3061 chandransh 29446
      case COD:
1406 ankur.sing 29447
        if (value == null) {
3061 chandransh 29448
          unsetCod();
1406 ankur.sing 29449
        } else {
3061 chandransh 29450
          setCod((Boolean)value);
1406 ankur.sing 29451
        }
29452
        break;
29453
 
29454
      }
29455
    }
29456
 
29457
    public Object getFieldValue(_Fields field) {
29458
      switch (field) {
3061 chandransh 29459
      case WAREHOUSE_ID:
3430 rajveer 29460
        return Long.valueOf(getWarehouseId());
3061 chandransh 29461
 
1406 ankur.sing 29462
      case PROVIDER_ID:
3430 rajveer 29463
        return Long.valueOf(getProviderId());
1406 ankur.sing 29464
 
3061 chandransh 29465
      case COD:
3430 rajveer 29466
        return Boolean.valueOf(isCod());
1406 ankur.sing 29467
 
29468
      }
29469
      throw new IllegalStateException();
29470
    }
29471
 
3430 rajveer 29472
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29473
    public boolean isSet(_Fields field) {
29474
      if (field == null) {
29475
        throw new IllegalArgumentException();
29476
      }
1406 ankur.sing 29477
 
29478
      switch (field) {
3061 chandransh 29479
      case WAREHOUSE_ID:
29480
        return isSetWarehouseId();
1406 ankur.sing 29481
      case PROVIDER_ID:
29482
        return isSetProviderId();
3061 chandransh 29483
      case COD:
29484
        return isSetCod();
1406 ankur.sing 29485
      }
29486
      throw new IllegalStateException();
29487
    }
29488
 
29489
    @Override
29490
    public boolean equals(Object that) {
29491
      if (that == null)
29492
        return false;
3061 chandransh 29493
      if (that instanceof markOrdersAsManifested_args)
29494
        return this.equals((markOrdersAsManifested_args)that);
1406 ankur.sing 29495
      return false;
29496
    }
29497
 
3061 chandransh 29498
    public boolean equals(markOrdersAsManifested_args that) {
1406 ankur.sing 29499
      if (that == null)
29500
        return false;
29501
 
3061 chandransh 29502
      boolean this_present_warehouseId = true;
29503
      boolean that_present_warehouseId = true;
29504
      if (this_present_warehouseId || that_present_warehouseId) {
29505
        if (!(this_present_warehouseId && that_present_warehouseId))
29506
          return false;
29507
        if (this.warehouseId != that.warehouseId)
29508
          return false;
29509
      }
29510
 
1406 ankur.sing 29511
      boolean this_present_providerId = true;
29512
      boolean that_present_providerId = true;
29513
      if (this_present_providerId || that_present_providerId) {
29514
        if (!(this_present_providerId && that_present_providerId))
29515
          return false;
29516
        if (this.providerId != that.providerId)
29517
          return false;
29518
      }
29519
 
3061 chandransh 29520
      boolean this_present_cod = true;
29521
      boolean that_present_cod = true;
29522
      if (this_present_cod || that_present_cod) {
29523
        if (!(this_present_cod && that_present_cod))
1406 ankur.sing 29524
          return false;
3061 chandransh 29525
        if (this.cod != that.cod)
1406 ankur.sing 29526
          return false;
29527
      }
29528
 
29529
      return true;
29530
    }
29531
 
29532
    @Override
29533
    public int hashCode() {
29534
      return 0;
29535
    }
29536
 
3061 chandransh 29537
    public int compareTo(markOrdersAsManifested_args other) {
1406 ankur.sing 29538
      if (!getClass().equals(other.getClass())) {
29539
        return getClass().getName().compareTo(other.getClass().getName());
29540
      }
29541
 
29542
      int lastComparison = 0;
3061 chandransh 29543
      markOrdersAsManifested_args typedOther = (markOrdersAsManifested_args)other;
1406 ankur.sing 29544
 
3430 rajveer 29545
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
3061 chandransh 29546
      if (lastComparison != 0) {
29547
        return lastComparison;
29548
      }
3430 rajveer 29549
      if (isSetWarehouseId()) {
29550
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
29551
        if (lastComparison != 0) {
29552
          return lastComparison;
29553
        }
3061 chandransh 29554
      }
3430 rajveer 29555
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1406 ankur.sing 29556
      if (lastComparison != 0) {
29557
        return lastComparison;
29558
      }
3430 rajveer 29559
      if (isSetProviderId()) {
29560
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
29561
        if (lastComparison != 0) {
29562
          return lastComparison;
29563
        }
1406 ankur.sing 29564
      }
3430 rajveer 29565
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
1406 ankur.sing 29566
      if (lastComparison != 0) {
29567
        return lastComparison;
29568
      }
3430 rajveer 29569
      if (isSetCod()) {
29570
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
29571
        if (lastComparison != 0) {
29572
          return lastComparison;
29573
        }
1406 ankur.sing 29574
      }
29575
      return 0;
29576
    }
29577
 
3430 rajveer 29578
    public _Fields fieldForId(int fieldId) {
29579
      return _Fields.findByThriftId(fieldId);
29580
    }
29581
 
29582
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29583
      org.apache.thrift.protocol.TField field;
1406 ankur.sing 29584
      iprot.readStructBegin();
29585
      while (true)
29586
      {
29587
        field = iprot.readFieldBegin();
3430 rajveer 29588
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1406 ankur.sing 29589
          break;
29590
        }
3430 rajveer 29591
        switch (field.id) {
29592
          case 1: // WAREHOUSE_ID
29593
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29594
              this.warehouseId = iprot.readI64();
29595
              setWarehouseIdIsSet(true);
29596
            } else { 
29597
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29598
            }
29599
            break;
29600
          case 2: // PROVIDER_ID
29601
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29602
              this.providerId = iprot.readI64();
29603
              setProviderIdIsSet(true);
29604
            } else { 
29605
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29606
            }
29607
            break;
29608
          case 3: // COD
29609
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
29610
              this.cod = iprot.readBool();
29611
              setCodIsSet(true);
29612
            } else { 
29613
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29614
            }
29615
            break;
29616
          default:
29617
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1406 ankur.sing 29618
        }
3430 rajveer 29619
        iprot.readFieldEnd();
1406 ankur.sing 29620
      }
29621
      iprot.readStructEnd();
29622
      validate();
29623
    }
29624
 
3430 rajveer 29625
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1406 ankur.sing 29626
      validate();
29627
 
29628
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 29629
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
29630
      oprot.writeI64(this.warehouseId);
29631
      oprot.writeFieldEnd();
1406 ankur.sing 29632
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
29633
      oprot.writeI64(this.providerId);
29634
      oprot.writeFieldEnd();
3061 chandransh 29635
      oprot.writeFieldBegin(COD_FIELD_DESC);
29636
      oprot.writeBool(this.cod);
1406 ankur.sing 29637
      oprot.writeFieldEnd();
29638
      oprot.writeFieldStop();
29639
      oprot.writeStructEnd();
29640
    }
29641
 
29642
    @Override
29643
    public String toString() {
3061 chandransh 29644
      StringBuilder sb = new StringBuilder("markOrdersAsManifested_args(");
1406 ankur.sing 29645
      boolean first = true;
29646
 
3061 chandransh 29647
      sb.append("warehouseId:");
29648
      sb.append(this.warehouseId);
29649
      first = false;
29650
      if (!first) sb.append(", ");
1406 ankur.sing 29651
      sb.append("providerId:");
29652
      sb.append(this.providerId);
29653
      first = false;
29654
      if (!first) sb.append(", ");
3061 chandransh 29655
      sb.append("cod:");
29656
      sb.append(this.cod);
1406 ankur.sing 29657
      first = false;
29658
      sb.append(")");
29659
      return sb.toString();
29660
    }
29661
 
3430 rajveer 29662
    public void validate() throws org.apache.thrift.TException {
1406 ankur.sing 29663
      // check for required fields
29664
    }
29665
 
3430 rajveer 29666
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29667
      try {
29668
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29669
      } catch (org.apache.thrift.TException te) {
29670
        throw new java.io.IOException(te);
29671
      }
29672
    }
29673
 
29674
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29675
      try {
29676
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29677
      } catch (org.apache.thrift.TException te) {
29678
        throw new java.io.IOException(te);
29679
      }
29680
    }
29681
 
1406 ankur.sing 29682
  }
29683
 
3430 rajveer 29684
  public static class markOrdersAsManifested_result implements org.apache.thrift.TBase<markOrdersAsManifested_result, markOrdersAsManifested_result._Fields>, java.io.Serializable, Cloneable   {
29685
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsManifested_result");
1406 ankur.sing 29686
 
3430 rajveer 29687
    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);
29688
    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 29689
 
3430 rajveer 29690
    private boolean success; // required
29691
    private TransactionServiceException ex; // required
1406 ankur.sing 29692
 
29693
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29694
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 29695
      SUCCESS((short)0, "success"),
29696
      EX((short)1, "ex");
1406 ankur.sing 29697
 
29698
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29699
 
29700
      static {
29701
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29702
          byName.put(field.getFieldName(), field);
29703
        }
29704
      }
29705
 
29706
      /**
29707
       * Find the _Fields constant that matches fieldId, or null if its not found.
29708
       */
29709
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29710
        switch(fieldId) {
29711
          case 0: // SUCCESS
29712
            return SUCCESS;
29713
          case 1: // EX
29714
            return EX;
29715
          default:
29716
            return null;
29717
        }
1406 ankur.sing 29718
      }
29719
 
29720
      /**
29721
       * Find the _Fields constant that matches fieldId, throwing an exception
29722
       * if it is not found.
29723
       */
29724
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29725
        _Fields fields = findByThriftId(fieldId);
29726
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29727
        return fields;
29728
      }
29729
 
29730
      /**
29731
       * Find the _Fields constant that matches name, or null if its not found.
29732
       */
29733
      public static _Fields findByName(String name) {
29734
        return byName.get(name);
29735
      }
29736
 
29737
      private final short _thriftId;
29738
      private final String _fieldName;
29739
 
29740
      _Fields(short thriftId, String fieldName) {
29741
        _thriftId = thriftId;
29742
        _fieldName = fieldName;
29743
      }
29744
 
29745
      public short getThriftFieldId() {
29746
        return _thriftId;
29747
      }
29748
 
29749
      public String getFieldName() {
29750
        return _fieldName;
29751
      }
29752
    }
29753
 
29754
    // isset id assignments
3061 chandransh 29755
    private static final int __SUCCESS_ISSET_ID = 0;
29756
    private BitSet __isset_bit_vector = new BitSet(1);
1406 ankur.sing 29757
 
3430 rajveer 29758
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1406 ankur.sing 29759
    static {
3430 rajveer 29760
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29761
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29762
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
29763
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29764
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29765
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29766
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsManifested_result.class, metaDataMap);
1406 ankur.sing 29767
    }
29768
 
3061 chandransh 29769
    public markOrdersAsManifested_result() {
1406 ankur.sing 29770
    }
29771
 
3061 chandransh 29772
    public markOrdersAsManifested_result(
29773
      boolean success,
29774
      TransactionServiceException ex)
1406 ankur.sing 29775
    {
29776
      this();
29777
      this.success = success;
3061 chandransh 29778
      setSuccessIsSet(true);
29779
      this.ex = ex;
1406 ankur.sing 29780
    }
29781
 
29782
    /**
29783
     * Performs a deep copy on <i>other</i>.
29784
     */
3061 chandransh 29785
    public markOrdersAsManifested_result(markOrdersAsManifested_result other) {
29786
      __isset_bit_vector.clear();
29787
      __isset_bit_vector.or(other.__isset_bit_vector);
29788
      this.success = other.success;
29789
      if (other.isSetEx()) {
29790
        this.ex = new TransactionServiceException(other.ex);
1406 ankur.sing 29791
      }
29792
    }
29793
 
3061 chandransh 29794
    public markOrdersAsManifested_result deepCopy() {
29795
      return new markOrdersAsManifested_result(this);
1406 ankur.sing 29796
    }
29797
 
3430 rajveer 29798
    @Override
29799
    public void clear() {
29800
      setSuccessIsSet(false);
29801
      this.success = false;
29802
      this.ex = null;
1406 ankur.sing 29803
    }
29804
 
3061 chandransh 29805
    public boolean isSuccess() {
29806
      return this.success;
1406 ankur.sing 29807
    }
29808
 
3430 rajveer 29809
    public void setSuccess(boolean success) {
3061 chandransh 29810
      this.success = success;
29811
      setSuccessIsSet(true);
1406 ankur.sing 29812
    }
29813
 
3061 chandransh 29814
    public void unsetSuccess() {
29815
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
1406 ankur.sing 29816
    }
29817
 
3430 rajveer 29818
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 29819
    public boolean isSetSuccess() {
29820
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
1406 ankur.sing 29821
    }
29822
 
3061 chandransh 29823
    public void setSuccessIsSet(boolean value) {
29824
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
29825
    }
29826
 
29827
    public TransactionServiceException getEx() {
29828
      return this.ex;
29829
    }
29830
 
3430 rajveer 29831
    public void setEx(TransactionServiceException ex) {
3061 chandransh 29832
      this.ex = ex;
1406 ankur.sing 29833
    }
29834
 
3061 chandransh 29835
    public void unsetEx() {
29836
      this.ex = null;
1406 ankur.sing 29837
    }
29838
 
3430 rajveer 29839
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 29840
    public boolean isSetEx() {
29841
      return this.ex != null;
1406 ankur.sing 29842
    }
29843
 
3061 chandransh 29844
    public void setExIsSet(boolean value) {
1406 ankur.sing 29845
      if (!value) {
3061 chandransh 29846
        this.ex = null;
1406 ankur.sing 29847
      }
29848
    }
29849
 
29850
    public void setFieldValue(_Fields field, Object value) {
29851
      switch (field) {
29852
      case SUCCESS:
29853
        if (value == null) {
29854
          unsetSuccess();
29855
        } else {
3061 chandransh 29856
          setSuccess((Boolean)value);
1406 ankur.sing 29857
        }
29858
        break;
29859
 
3061 chandransh 29860
      case EX:
29861
        if (value == null) {
29862
          unsetEx();
29863
        } else {
29864
          setEx((TransactionServiceException)value);
29865
        }
29866
        break;
29867
 
1406 ankur.sing 29868
      }
29869
    }
29870
 
29871
    public Object getFieldValue(_Fields field) {
29872
      switch (field) {
29873
      case SUCCESS:
3430 rajveer 29874
        return Boolean.valueOf(isSuccess());
1406 ankur.sing 29875
 
3061 chandransh 29876
      case EX:
29877
        return getEx();
29878
 
1406 ankur.sing 29879
      }
29880
      throw new IllegalStateException();
29881
    }
29882
 
3430 rajveer 29883
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29884
    public boolean isSet(_Fields field) {
29885
      if (field == null) {
29886
        throw new IllegalArgumentException();
29887
      }
1406 ankur.sing 29888
 
29889
      switch (field) {
29890
      case SUCCESS:
29891
        return isSetSuccess();
3061 chandransh 29892
      case EX:
29893
        return isSetEx();
1406 ankur.sing 29894
      }
29895
      throw new IllegalStateException();
29896
    }
29897
 
29898
    @Override
29899
    public boolean equals(Object that) {
29900
      if (that == null)
29901
        return false;
3061 chandransh 29902
      if (that instanceof markOrdersAsManifested_result)
29903
        return this.equals((markOrdersAsManifested_result)that);
1406 ankur.sing 29904
      return false;
29905
    }
29906
 
3061 chandransh 29907
    public boolean equals(markOrdersAsManifested_result that) {
1406 ankur.sing 29908
      if (that == null)
29909
        return false;
29910
 
3061 chandransh 29911
      boolean this_present_success = true;
29912
      boolean that_present_success = true;
1406 ankur.sing 29913
      if (this_present_success || that_present_success) {
29914
        if (!(this_present_success && that_present_success))
29915
          return false;
3061 chandransh 29916
        if (this.success != that.success)
1406 ankur.sing 29917
          return false;
29918
      }
29919
 
3061 chandransh 29920
      boolean this_present_ex = true && this.isSetEx();
29921
      boolean that_present_ex = true && that.isSetEx();
29922
      if (this_present_ex || that_present_ex) {
29923
        if (!(this_present_ex && that_present_ex))
29924
          return false;
29925
        if (!this.ex.equals(that.ex))
29926
          return false;
29927
      }
29928
 
1406 ankur.sing 29929
      return true;
29930
    }
29931
 
29932
    @Override
29933
    public int hashCode() {
29934
      return 0;
29935
    }
29936
 
3061 chandransh 29937
    public int compareTo(markOrdersAsManifested_result other) {
1406 ankur.sing 29938
      if (!getClass().equals(other.getClass())) {
29939
        return getClass().getName().compareTo(other.getClass().getName());
29940
      }
29941
 
29942
      int lastComparison = 0;
3061 chandransh 29943
      markOrdersAsManifested_result typedOther = (markOrdersAsManifested_result)other;
1406 ankur.sing 29944
 
3430 rajveer 29945
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1406 ankur.sing 29946
      if (lastComparison != 0) {
29947
        return lastComparison;
29948
      }
3430 rajveer 29949
      if (isSetSuccess()) {
29950
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29951
        if (lastComparison != 0) {
29952
          return lastComparison;
29953
        }
1406 ankur.sing 29954
      }
3430 rajveer 29955
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
3061 chandransh 29956
      if (lastComparison != 0) {
29957
        return lastComparison;
29958
      }
3430 rajveer 29959
      if (isSetEx()) {
29960
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
29961
        if (lastComparison != 0) {
29962
          return lastComparison;
29963
        }
3061 chandransh 29964
      }
1406 ankur.sing 29965
      return 0;
29966
    }
29967
 
3430 rajveer 29968
    public _Fields fieldForId(int fieldId) {
29969
      return _Fields.findByThriftId(fieldId);
29970
    }
29971
 
29972
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29973
      org.apache.thrift.protocol.TField field;
1406 ankur.sing 29974
      iprot.readStructBegin();
29975
      while (true)
29976
      {
29977
        field = iprot.readFieldBegin();
3430 rajveer 29978
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1406 ankur.sing 29979
          break;
29980
        }
3430 rajveer 29981
        switch (field.id) {
29982
          case 0: // SUCCESS
29983
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
29984
              this.success = iprot.readBool();
29985
              setSuccessIsSet(true);
29986
            } else { 
29987
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29988
            }
29989
            break;
29990
          case 1: // EX
29991
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29992
              this.ex = new TransactionServiceException();
29993
              this.ex.read(iprot);
29994
            } else { 
29995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29996
            }
29997
            break;
29998
          default:
29999
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1406 ankur.sing 30000
        }
3430 rajveer 30001
        iprot.readFieldEnd();
1406 ankur.sing 30002
      }
30003
      iprot.readStructEnd();
30004
      validate();
30005
    }
30006
 
3430 rajveer 30007
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1406 ankur.sing 30008
      oprot.writeStructBegin(STRUCT_DESC);
30009
 
30010
      if (this.isSetSuccess()) {
30011
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3061 chandransh 30012
        oprot.writeBool(this.success);
1406 ankur.sing 30013
        oprot.writeFieldEnd();
3061 chandransh 30014
      } else if (this.isSetEx()) {
30015
        oprot.writeFieldBegin(EX_FIELD_DESC);
30016
        this.ex.write(oprot);
30017
        oprot.writeFieldEnd();
1406 ankur.sing 30018
      }
30019
      oprot.writeFieldStop();
30020
      oprot.writeStructEnd();
30021
    }
30022
 
30023
    @Override
30024
    public String toString() {
3061 chandransh 30025
      StringBuilder sb = new StringBuilder("markOrdersAsManifested_result(");
1406 ankur.sing 30026
      boolean first = true;
30027
 
30028
      sb.append("success:");
3061 chandransh 30029
      sb.append(this.success);
30030
      first = false;
30031
      if (!first) sb.append(", ");
30032
      sb.append("ex:");
30033
      if (this.ex == null) {
1406 ankur.sing 30034
        sb.append("null");
30035
      } else {
3061 chandransh 30036
        sb.append(this.ex);
1406 ankur.sing 30037
      }
30038
      first = false;
30039
      sb.append(")");
30040
      return sb.toString();
30041
    }
30042
 
3430 rajveer 30043
    public void validate() throws org.apache.thrift.TException {
1406 ankur.sing 30044
      // check for required fields
30045
    }
30046
 
3430 rajveer 30047
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30048
      try {
30049
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30050
      } catch (org.apache.thrift.TException te) {
30051
        throw new java.io.IOException(te);
30052
      }
30053
    }
30054
 
30055
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30056
      try {
30057
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30058
      } catch (org.apache.thrift.TException te) {
30059
        throw new java.io.IOException(te);
30060
      }
30061
    }
30062
 
1406 ankur.sing 30063
  }
30064
 
3430 rajveer 30065
  public static class markOrdersAsPickedUp_args implements org.apache.thrift.TBase<markOrdersAsPickedUp_args, markOrdersAsPickedUp_args._Fields>, java.io.Serializable, Cloneable   {
30066
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsPickedUp_args");
305 ashish 30067
 
3430 rajveer 30068
    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);
30069
    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 30070
 
3430 rajveer 30071
    private long providerId; // required
30072
    private Map<String,String> pickupDetails; // required
305 ashish 30073
 
30074
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30075
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 30076
      PROVIDER_ID((short)1, "providerId"),
30077
      PICKUP_DETAILS((short)2, "pickupDetails");
305 ashish 30078
 
30079
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30080
 
30081
      static {
30082
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30083
          byName.put(field.getFieldName(), field);
30084
        }
30085
      }
30086
 
30087
      /**
30088
       * Find the _Fields constant that matches fieldId, or null if its not found.
30089
       */
30090
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30091
        switch(fieldId) {
30092
          case 1: // PROVIDER_ID
30093
            return PROVIDER_ID;
30094
          case 2: // PICKUP_DETAILS
30095
            return PICKUP_DETAILS;
30096
          default:
30097
            return null;
30098
        }
305 ashish 30099
      }
30100
 
30101
      /**
30102
       * Find the _Fields constant that matches fieldId, throwing an exception
30103
       * if it is not found.
30104
       */
30105
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30106
        _Fields fields = findByThriftId(fieldId);
30107
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30108
        return fields;
30109
      }
30110
 
30111
      /**
30112
       * Find the _Fields constant that matches name, or null if its not found.
30113
       */
30114
      public static _Fields findByName(String name) {
30115
        return byName.get(name);
30116
      }
30117
 
30118
      private final short _thriftId;
30119
      private final String _fieldName;
30120
 
30121
      _Fields(short thriftId, String fieldName) {
30122
        _thriftId = thriftId;
30123
        _fieldName = fieldName;
30124
      }
30125
 
30126
      public short getThriftFieldId() {
30127
        return _thriftId;
30128
      }
30129
 
30130
      public String getFieldName() {
30131
        return _fieldName;
30132
      }
30133
    }
30134
 
30135
    // isset id assignments
3061 chandransh 30136
    private static final int __PROVIDERID_ISSET_ID = 0;
30137
    private BitSet __isset_bit_vector = new BitSet(1);
305 ashish 30138
 
3430 rajveer 30139
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
305 ashish 30140
    static {
3430 rajveer 30141
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30142
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30143
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30144
      tmpMap.put(_Fields.PICKUP_DETAILS, new org.apache.thrift.meta_data.FieldMetaData("pickupDetails", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30145
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
30146
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
30147
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
30148
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30149
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsPickedUp_args.class, metaDataMap);
305 ashish 30150
    }
30151
 
3061 chandransh 30152
    public markOrdersAsPickedUp_args() {
305 ashish 30153
    }
30154
 
3061 chandransh 30155
    public markOrdersAsPickedUp_args(
30156
      long providerId,
30157
      Map<String,String> pickupDetails)
305 ashish 30158
    {
30159
      this();
3061 chandransh 30160
      this.providerId = providerId;
30161
      setProviderIdIsSet(true);
30162
      this.pickupDetails = pickupDetails;
305 ashish 30163
    }
30164
 
30165
    /**
30166
     * Performs a deep copy on <i>other</i>.
30167
     */
3061 chandransh 30168
    public markOrdersAsPickedUp_args(markOrdersAsPickedUp_args other) {
305 ashish 30169
      __isset_bit_vector.clear();
30170
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 30171
      this.providerId = other.providerId;
30172
      if (other.isSetPickupDetails()) {
30173
        Map<String,String> __this__pickupDetails = new HashMap<String,String>();
30174
        for (Map.Entry<String, String> other_element : other.pickupDetails.entrySet()) {
30175
 
30176
          String other_element_key = other_element.getKey();
30177
          String other_element_value = other_element.getValue();
30178
 
30179
          String __this__pickupDetails_copy_key = other_element_key;
30180
 
30181
          String __this__pickupDetails_copy_value = other_element_value;
30182
 
30183
          __this__pickupDetails.put(__this__pickupDetails_copy_key, __this__pickupDetails_copy_value);
30184
        }
30185
        this.pickupDetails = __this__pickupDetails;
30186
      }
305 ashish 30187
    }
30188
 
3061 chandransh 30189
    public markOrdersAsPickedUp_args deepCopy() {
30190
      return new markOrdersAsPickedUp_args(this);
305 ashish 30191
    }
30192
 
3430 rajveer 30193
    @Override
30194
    public void clear() {
30195
      setProviderIdIsSet(false);
30196
      this.providerId = 0;
30197
      this.pickupDetails = null;
305 ashish 30198
    }
30199
 
3061 chandransh 30200
    public long getProviderId() {
30201
      return this.providerId;
305 ashish 30202
    }
30203
 
3430 rajveer 30204
    public void setProviderId(long providerId) {
3061 chandransh 30205
      this.providerId = providerId;
30206
      setProviderIdIsSet(true);
305 ashish 30207
    }
30208
 
3061 chandransh 30209
    public void unsetProviderId() {
30210
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
305 ashish 30211
    }
30212
 
3430 rajveer 30213
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 30214
    public boolean isSetProviderId() {
30215
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
305 ashish 30216
    }
30217
 
3061 chandransh 30218
    public void setProviderIdIsSet(boolean value) {
30219
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
305 ashish 30220
    }
30221
 
3061 chandransh 30222
    public int getPickupDetailsSize() {
30223
      return (this.pickupDetails == null) ? 0 : this.pickupDetails.size();
305 ashish 30224
    }
30225
 
3061 chandransh 30226
    public void putToPickupDetails(String key, String val) {
30227
      if (this.pickupDetails == null) {
30228
        this.pickupDetails = new HashMap<String,String>();
30229
      }
30230
      this.pickupDetails.put(key, val);
30231
    }
30232
 
30233
    public Map<String,String> getPickupDetails() {
30234
      return this.pickupDetails;
30235
    }
30236
 
3430 rajveer 30237
    public void setPickupDetails(Map<String,String> pickupDetails) {
3061 chandransh 30238
      this.pickupDetails = pickupDetails;
305 ashish 30239
    }
30240
 
3061 chandransh 30241
    public void unsetPickupDetails() {
30242
      this.pickupDetails = null;
305 ashish 30243
    }
30244
 
3430 rajveer 30245
    /** Returns true if field pickupDetails is set (has been assigned a value) and false otherwise */
3061 chandransh 30246
    public boolean isSetPickupDetails() {
30247
      return this.pickupDetails != null;
305 ashish 30248
    }
30249
 
3061 chandransh 30250
    public void setPickupDetailsIsSet(boolean value) {
30251
      if (!value) {
30252
        this.pickupDetails = null;
30253
      }
305 ashish 30254
    }
30255
 
30256
    public void setFieldValue(_Fields field, Object value) {
30257
      switch (field) {
3061 chandransh 30258
      case PROVIDER_ID:
305 ashish 30259
        if (value == null) {
3061 chandransh 30260
          unsetProviderId();
305 ashish 30261
        } else {
3061 chandransh 30262
          setProviderId((Long)value);
305 ashish 30263
        }
30264
        break;
30265
 
3061 chandransh 30266
      case PICKUP_DETAILS:
305 ashish 30267
        if (value == null) {
3061 chandransh 30268
          unsetPickupDetails();
305 ashish 30269
        } else {
3061 chandransh 30270
          setPickupDetails((Map<String,String>)value);
305 ashish 30271
        }
30272
        break;
30273
 
30274
      }
30275
    }
30276
 
30277
    public Object getFieldValue(_Fields field) {
30278
      switch (field) {
3061 chandransh 30279
      case PROVIDER_ID:
3430 rajveer 30280
        return Long.valueOf(getProviderId());
305 ashish 30281
 
3061 chandransh 30282
      case PICKUP_DETAILS:
30283
        return getPickupDetails();
305 ashish 30284
 
30285
      }
30286
      throw new IllegalStateException();
30287
    }
30288
 
3430 rajveer 30289
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30290
    public boolean isSet(_Fields field) {
30291
      if (field == null) {
30292
        throw new IllegalArgumentException();
30293
      }
305 ashish 30294
 
30295
      switch (field) {
3061 chandransh 30296
      case PROVIDER_ID:
30297
        return isSetProviderId();
30298
      case PICKUP_DETAILS:
30299
        return isSetPickupDetails();
305 ashish 30300
      }
30301
      throw new IllegalStateException();
30302
    }
30303
 
30304
    @Override
30305
    public boolean equals(Object that) {
30306
      if (that == null)
30307
        return false;
3061 chandransh 30308
      if (that instanceof markOrdersAsPickedUp_args)
30309
        return this.equals((markOrdersAsPickedUp_args)that);
305 ashish 30310
      return false;
30311
    }
30312
 
3061 chandransh 30313
    public boolean equals(markOrdersAsPickedUp_args that) {
305 ashish 30314
      if (that == null)
30315
        return false;
30316
 
3061 chandransh 30317
      boolean this_present_providerId = true;
30318
      boolean that_present_providerId = true;
30319
      if (this_present_providerId || that_present_providerId) {
30320
        if (!(this_present_providerId && that_present_providerId))
305 ashish 30321
          return false;
3061 chandransh 30322
        if (this.providerId != that.providerId)
305 ashish 30323
          return false;
30324
      }
30325
 
3061 chandransh 30326
      boolean this_present_pickupDetails = true && this.isSetPickupDetails();
30327
      boolean that_present_pickupDetails = true && that.isSetPickupDetails();
30328
      if (this_present_pickupDetails || that_present_pickupDetails) {
30329
        if (!(this_present_pickupDetails && that_present_pickupDetails))
305 ashish 30330
          return false;
3061 chandransh 30331
        if (!this.pickupDetails.equals(that.pickupDetails))
305 ashish 30332
          return false;
30333
      }
30334
 
30335
      return true;
30336
    }
30337
 
30338
    @Override
30339
    public int hashCode() {
30340
      return 0;
30341
    }
30342
 
3430 rajveer 30343
    public int compareTo(markOrdersAsPickedUp_args other) {
30344
      if (!getClass().equals(other.getClass())) {
30345
        return getClass().getName().compareTo(other.getClass().getName());
30346
      }
30347
 
30348
      int lastComparison = 0;
30349
      markOrdersAsPickedUp_args typedOther = (markOrdersAsPickedUp_args)other;
30350
 
30351
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
30352
      if (lastComparison != 0) {
30353
        return lastComparison;
30354
      }
30355
      if (isSetProviderId()) {
30356
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
30357
        if (lastComparison != 0) {
30358
          return lastComparison;
30359
        }
30360
      }
30361
      lastComparison = Boolean.valueOf(isSetPickupDetails()).compareTo(typedOther.isSetPickupDetails());
30362
      if (lastComparison != 0) {
30363
        return lastComparison;
30364
      }
30365
      if (isSetPickupDetails()) {
30366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupDetails, typedOther.pickupDetails);
30367
        if (lastComparison != 0) {
30368
          return lastComparison;
30369
        }
30370
      }
30371
      return 0;
30372
    }
30373
 
30374
    public _Fields fieldForId(int fieldId) {
30375
      return _Fields.findByThriftId(fieldId);
30376
    }
30377
 
30378
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30379
      org.apache.thrift.protocol.TField field;
305 ashish 30380
      iprot.readStructBegin();
30381
      while (true)
30382
      {
30383
        field = iprot.readFieldBegin();
3430 rajveer 30384
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
305 ashish 30385
          break;
30386
        }
3430 rajveer 30387
        switch (field.id) {
30388
          case 1: // PROVIDER_ID
30389
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30390
              this.providerId = iprot.readI64();
30391
              setProviderIdIsSet(true);
30392
            } else { 
30393
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30394
            }
30395
            break;
30396
          case 2: // PICKUP_DETAILS
30397
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
30398
              {
30399
                org.apache.thrift.protocol.TMap _map68 = iprot.readMapBegin();
30400
                this.pickupDetails = new HashMap<String,String>(2*_map68.size);
30401
                for (int _i69 = 0; _i69 < _map68.size; ++_i69)
3061 chandransh 30402
                {
3430 rajveer 30403
                  String _key70; // required
30404
                  String _val71; // required
30405
                  _key70 = iprot.readString();
30406
                  _val71 = iprot.readString();
30407
                  this.pickupDetails.put(_key70, _val71);
3061 chandransh 30408
                }
3430 rajveer 30409
                iprot.readMapEnd();
305 ashish 30410
              }
3430 rajveer 30411
            } else { 
30412
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30413
            }
30414
            break;
30415
          default:
30416
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
305 ashish 30417
        }
3430 rajveer 30418
        iprot.readFieldEnd();
305 ashish 30419
      }
30420
      iprot.readStructEnd();
30421
      validate();
30422
    }
30423
 
3430 rajveer 30424
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
305 ashish 30425
      validate();
30426
 
30427
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 30428
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
30429
      oprot.writeI64(this.providerId);
305 ashish 30430
      oprot.writeFieldEnd();
3061 chandransh 30431
      if (this.pickupDetails != null) {
30432
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
30433
        {
3430 rajveer 30434
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.pickupDetails.size()));
3427 chandransh 30435
          for (Map.Entry<String, String> _iter72 : this.pickupDetails.entrySet())
3061 chandransh 30436
          {
3427 chandransh 30437
            oprot.writeString(_iter72.getKey());
30438
            oprot.writeString(_iter72.getValue());
3061 chandransh 30439
          }
30440
          oprot.writeMapEnd();
30441
        }
30442
        oprot.writeFieldEnd();
30443
      }
305 ashish 30444
      oprot.writeFieldStop();
30445
      oprot.writeStructEnd();
30446
    }
30447
 
30448
    @Override
30449
    public String toString() {
3061 chandransh 30450
      StringBuilder sb = new StringBuilder("markOrdersAsPickedUp_args(");
305 ashish 30451
      boolean first = true;
30452
 
3061 chandransh 30453
      sb.append("providerId:");
30454
      sb.append(this.providerId);
305 ashish 30455
      first = false;
30456
      if (!first) sb.append(", ");
3061 chandransh 30457
      sb.append("pickupDetails:");
30458
      if (this.pickupDetails == null) {
30459
        sb.append("null");
30460
      } else {
30461
        sb.append(this.pickupDetails);
30462
      }
305 ashish 30463
      first = false;
30464
      sb.append(")");
30465
      return sb.toString();
30466
    }
30467
 
3430 rajveer 30468
    public void validate() throws org.apache.thrift.TException {
305 ashish 30469
      // check for required fields
30470
    }
30471
 
3430 rajveer 30472
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30473
      try {
30474
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30475
      } catch (org.apache.thrift.TException te) {
30476
        throw new java.io.IOException(te);
30477
      }
30478
    }
30479
 
30480
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30481
      try {
30482
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30483
      } catch (org.apache.thrift.TException te) {
30484
        throw new java.io.IOException(te);
30485
      }
30486
    }
30487
 
305 ashish 30488
  }
30489
 
3430 rajveer 30490
  public static class markOrdersAsPickedUp_result implements org.apache.thrift.TBase<markOrdersAsPickedUp_result, markOrdersAsPickedUp_result._Fields>, java.io.Serializable, Cloneable   {
30491
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsPickedUp_result");
305 ashish 30492
 
3430 rajveer 30493
    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);
30494
    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 30495
 
3430 rajveer 30496
    private List<Order> success; // required
30497
    private TransactionServiceException ex; // required
305 ashish 30498
 
30499
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30500
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 30501
      SUCCESS((short)0, "success"),
30502
      EX((short)1, "ex");
305 ashish 30503
 
30504
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30505
 
30506
      static {
30507
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30508
          byName.put(field.getFieldName(), field);
30509
        }
30510
      }
30511
 
30512
      /**
30513
       * Find the _Fields constant that matches fieldId, or null if its not found.
30514
       */
30515
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30516
        switch(fieldId) {
30517
          case 0: // SUCCESS
30518
            return SUCCESS;
30519
          case 1: // EX
30520
            return EX;
30521
          default:
30522
            return null;
30523
        }
305 ashish 30524
      }
30525
 
30526
      /**
30527
       * Find the _Fields constant that matches fieldId, throwing an exception
30528
       * if it is not found.
30529
       */
30530
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30531
        _Fields fields = findByThriftId(fieldId);
30532
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30533
        return fields;
30534
      }
30535
 
30536
      /**
30537
       * Find the _Fields constant that matches name, or null if its not found.
30538
       */
30539
      public static _Fields findByName(String name) {
30540
        return byName.get(name);
30541
      }
30542
 
30543
      private final short _thriftId;
30544
      private final String _fieldName;
30545
 
30546
      _Fields(short thriftId, String fieldName) {
30547
        _thriftId = thriftId;
30548
        _fieldName = fieldName;
30549
      }
30550
 
30551
      public short getThriftFieldId() {
30552
        return _thriftId;
30553
      }
30554
 
30555
      public String getFieldName() {
30556
        return _fieldName;
30557
      }
30558
    }
30559
 
30560
    // isset id assignments
30561
 
3430 rajveer 30562
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
305 ashish 30563
    static {
3430 rajveer 30564
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30565
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30566
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30567
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
30568
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30569
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30570
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30571
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsPickedUp_result.class, metaDataMap);
305 ashish 30572
    }
30573
 
3061 chandransh 30574
    public markOrdersAsPickedUp_result() {
305 ashish 30575
    }
30576
 
3061 chandransh 30577
    public markOrdersAsPickedUp_result(
30578
      List<Order> success,
30579
      TransactionServiceException ex)
305 ashish 30580
    {
30581
      this();
30582
      this.success = success;
3061 chandransh 30583
      this.ex = ex;
305 ashish 30584
    }
30585
 
30586
    /**
30587
     * Performs a deep copy on <i>other</i>.
30588
     */
3061 chandransh 30589
    public markOrdersAsPickedUp_result(markOrdersAsPickedUp_result other) {
305 ashish 30590
      if (other.isSetSuccess()) {
3061 chandransh 30591
        List<Order> __this__success = new ArrayList<Order>();
30592
        for (Order other_element : other.success) {
30593
          __this__success.add(new Order(other_element));
305 ashish 30594
        }
30595
        this.success = __this__success;
30596
      }
3061 chandransh 30597
      if (other.isSetEx()) {
30598
        this.ex = new TransactionServiceException(other.ex);
30599
      }
305 ashish 30600
    }
30601
 
3061 chandransh 30602
    public markOrdersAsPickedUp_result deepCopy() {
30603
      return new markOrdersAsPickedUp_result(this);
305 ashish 30604
    }
30605
 
3430 rajveer 30606
    @Override
30607
    public void clear() {
30608
      this.success = null;
30609
      this.ex = null;
305 ashish 30610
    }
30611
 
30612
    public int getSuccessSize() {
30613
      return (this.success == null) ? 0 : this.success.size();
30614
    }
30615
 
3061 chandransh 30616
    public java.util.Iterator<Order> getSuccessIterator() {
305 ashish 30617
      return (this.success == null) ? null : this.success.iterator();
30618
    }
30619
 
3061 chandransh 30620
    public void addToSuccess(Order elem) {
305 ashish 30621
      if (this.success == null) {
3061 chandransh 30622
        this.success = new ArrayList<Order>();
305 ashish 30623
      }
30624
      this.success.add(elem);
30625
    }
30626
 
3061 chandransh 30627
    public List<Order> getSuccess() {
305 ashish 30628
      return this.success;
30629
    }
30630
 
3430 rajveer 30631
    public void setSuccess(List<Order> success) {
305 ashish 30632
      this.success = success;
30633
    }
30634
 
30635
    public void unsetSuccess() {
30636
      this.success = null;
30637
    }
30638
 
3430 rajveer 30639
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
305 ashish 30640
    public boolean isSetSuccess() {
30641
      return this.success != null;
30642
    }
30643
 
30644
    public void setSuccessIsSet(boolean value) {
30645
      if (!value) {
30646
        this.success = null;
30647
      }
30648
    }
30649
 
3061 chandransh 30650
    public TransactionServiceException getEx() {
30651
      return this.ex;
30652
    }
30653
 
3430 rajveer 30654
    public void setEx(TransactionServiceException ex) {
3061 chandransh 30655
      this.ex = ex;
30656
    }
30657
 
30658
    public void unsetEx() {
30659
      this.ex = null;
30660
    }
30661
 
3430 rajveer 30662
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 30663
    public boolean isSetEx() {
30664
      return this.ex != null;
30665
    }
30666
 
30667
    public void setExIsSet(boolean value) {
30668
      if (!value) {
30669
        this.ex = null;
30670
      }
30671
    }
30672
 
305 ashish 30673
    public void setFieldValue(_Fields field, Object value) {
30674
      switch (field) {
30675
      case SUCCESS:
30676
        if (value == null) {
30677
          unsetSuccess();
30678
        } else {
3061 chandransh 30679
          setSuccess((List<Order>)value);
305 ashish 30680
        }
30681
        break;
30682
 
3061 chandransh 30683
      case EX:
30684
        if (value == null) {
30685
          unsetEx();
30686
        } else {
30687
          setEx((TransactionServiceException)value);
30688
        }
30689
        break;
30690
 
305 ashish 30691
      }
30692
    }
30693
 
30694
    public Object getFieldValue(_Fields field) {
30695
      switch (field) {
30696
      case SUCCESS:
30697
        return getSuccess();
30698
 
3061 chandransh 30699
      case EX:
30700
        return getEx();
30701
 
305 ashish 30702
      }
30703
      throw new IllegalStateException();
30704
    }
30705
 
3430 rajveer 30706
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30707
    public boolean isSet(_Fields field) {
30708
      if (field == null) {
30709
        throw new IllegalArgumentException();
30710
      }
305 ashish 30711
 
30712
      switch (field) {
30713
      case SUCCESS:
30714
        return isSetSuccess();
3061 chandransh 30715
      case EX:
30716
        return isSetEx();
305 ashish 30717
      }
30718
      throw new IllegalStateException();
30719
    }
30720
 
30721
    @Override
30722
    public boolean equals(Object that) {
30723
      if (that == null)
30724
        return false;
3061 chandransh 30725
      if (that instanceof markOrdersAsPickedUp_result)
30726
        return this.equals((markOrdersAsPickedUp_result)that);
305 ashish 30727
      return false;
30728
    }
30729
 
3061 chandransh 30730
    public boolean equals(markOrdersAsPickedUp_result that) {
305 ashish 30731
      if (that == null)
30732
        return false;
30733
 
30734
      boolean this_present_success = true && this.isSetSuccess();
30735
      boolean that_present_success = true && that.isSetSuccess();
30736
      if (this_present_success || that_present_success) {
30737
        if (!(this_present_success && that_present_success))
30738
          return false;
30739
        if (!this.success.equals(that.success))
30740
          return false;
30741
      }
30742
 
3061 chandransh 30743
      boolean this_present_ex = true && this.isSetEx();
30744
      boolean that_present_ex = true && that.isSetEx();
30745
      if (this_present_ex || that_present_ex) {
30746
        if (!(this_present_ex && that_present_ex))
30747
          return false;
30748
        if (!this.ex.equals(that.ex))
30749
          return false;
30750
      }
30751
 
305 ashish 30752
      return true;
30753
    }
30754
 
30755
    @Override
30756
    public int hashCode() {
30757
      return 0;
30758
    }
30759
 
3061 chandransh 30760
    public int compareTo(markOrdersAsPickedUp_result other) {
305 ashish 30761
      if (!getClass().equals(other.getClass())) {
30762
        return getClass().getName().compareTo(other.getClass().getName());
30763
      }
30764
 
30765
      int lastComparison = 0;
3061 chandransh 30766
      markOrdersAsPickedUp_result typedOther = (markOrdersAsPickedUp_result)other;
305 ashish 30767
 
3430 rajveer 30768
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
305 ashish 30769
      if (lastComparison != 0) {
30770
        return lastComparison;
30771
      }
3430 rajveer 30772
      if (isSetSuccess()) {
30773
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30774
        if (lastComparison != 0) {
30775
          return lastComparison;
30776
        }
305 ashish 30777
      }
3430 rajveer 30778
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
3061 chandransh 30779
      if (lastComparison != 0) {
30780
        return lastComparison;
30781
      }
3430 rajveer 30782
      if (isSetEx()) {
30783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
30784
        if (lastComparison != 0) {
30785
          return lastComparison;
30786
        }
3061 chandransh 30787
      }
305 ashish 30788
      return 0;
30789
    }
30790
 
3430 rajveer 30791
    public _Fields fieldForId(int fieldId) {
30792
      return _Fields.findByThriftId(fieldId);
30793
    }
30794
 
30795
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30796
      org.apache.thrift.protocol.TField field;
305 ashish 30797
      iprot.readStructBegin();
30798
      while (true)
30799
      {
30800
        field = iprot.readFieldBegin();
3430 rajveer 30801
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
305 ashish 30802
          break;
30803
        }
3430 rajveer 30804
        switch (field.id) {
30805
          case 0: // SUCCESS
30806
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30807
              {
30808
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
30809
                this.success = new ArrayList<Order>(_list73.size);
30810
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
305 ashish 30811
                {
3430 rajveer 30812
                  Order _elem75; // required
30813
                  _elem75 = new Order();
30814
                  _elem75.read(iprot);
30815
                  this.success.add(_elem75);
305 ashish 30816
                }
3430 rajveer 30817
                iprot.readListEnd();
305 ashish 30818
              }
3430 rajveer 30819
            } else { 
30820
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30821
            }
30822
            break;
30823
          case 1: // EX
30824
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30825
              this.ex = new TransactionServiceException();
30826
              this.ex.read(iprot);
30827
            } else { 
30828
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30829
            }
30830
            break;
30831
          default:
30832
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
305 ashish 30833
        }
3430 rajveer 30834
        iprot.readFieldEnd();
305 ashish 30835
      }
30836
      iprot.readStructEnd();
30837
      validate();
30838
    }
30839
 
3430 rajveer 30840
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
305 ashish 30841
      oprot.writeStructBegin(STRUCT_DESC);
30842
 
30843
      if (this.isSetSuccess()) {
30844
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30845
        {
3430 rajveer 30846
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3427 chandransh 30847
          for (Order _iter76 : this.success)
305 ashish 30848
          {
3427 chandransh 30849
            _iter76.write(oprot);
305 ashish 30850
          }
30851
          oprot.writeListEnd();
30852
        }
30853
        oprot.writeFieldEnd();
3061 chandransh 30854
      } else if (this.isSetEx()) {
30855
        oprot.writeFieldBegin(EX_FIELD_DESC);
30856
        this.ex.write(oprot);
30857
        oprot.writeFieldEnd();
305 ashish 30858
      }
30859
      oprot.writeFieldStop();
30860
      oprot.writeStructEnd();
30861
    }
30862
 
30863
    @Override
30864
    public String toString() {
3061 chandransh 30865
      StringBuilder sb = new StringBuilder("markOrdersAsPickedUp_result(");
305 ashish 30866
      boolean first = true;
30867
 
30868
      sb.append("success:");
30869
      if (this.success == null) {
30870
        sb.append("null");
30871
      } else {
30872
        sb.append(this.success);
30873
      }
30874
      first = false;
3061 chandransh 30875
      if (!first) sb.append(", ");
30876
      sb.append("ex:");
30877
      if (this.ex == null) {
30878
        sb.append("null");
30879
      } else {
30880
        sb.append(this.ex);
30881
      }
30882
      first = false;
305 ashish 30883
      sb.append(")");
30884
      return sb.toString();
30885
    }
30886
 
3430 rajveer 30887
    public void validate() throws org.apache.thrift.TException {
305 ashish 30888
      // check for required fields
30889
    }
30890
 
3430 rajveer 30891
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30892
      try {
30893
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30894
      } catch (org.apache.thrift.TException te) {
30895
        throw new java.io.IOException(te);
30896
      }
30897
    }
30898
 
30899
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30900
      try {
30901
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30902
      } catch (org.apache.thrift.TException te) {
30903
        throw new java.io.IOException(te);
30904
      }
30905
    }
30906
 
305 ashish 30907
  }
30908
 
3430 rajveer 30909
  public static class markOrdersAsDelivered_args implements org.apache.thrift.TBase<markOrdersAsDelivered_args, markOrdersAsDelivered_args._Fields>, java.io.Serializable, Cloneable   {
30910
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsDelivered_args");
305 ashish 30911
 
3430 rajveer 30912
    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);
30913
    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 30914
 
3430 rajveer 30915
    private long providerId; // required
30916
    private Map<String,String> deliveredOrders; // required
305 ashish 30917
 
30918
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30919
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 30920
      PROVIDER_ID((short)1, "providerId"),
30921
      DELIVERED_ORDERS((short)2, "deliveredOrders");
305 ashish 30922
 
30923
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30924
 
30925
      static {
30926
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30927
          byName.put(field.getFieldName(), field);
30928
        }
30929
      }
30930
 
30931
      /**
30932
       * Find the _Fields constant that matches fieldId, or null if its not found.
30933
       */
30934
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30935
        switch(fieldId) {
30936
          case 1: // PROVIDER_ID
30937
            return PROVIDER_ID;
30938
          case 2: // DELIVERED_ORDERS
30939
            return DELIVERED_ORDERS;
30940
          default:
30941
            return null;
30942
        }
305 ashish 30943
      }
30944
 
30945
      /**
30946
       * Find the _Fields constant that matches fieldId, throwing an exception
30947
       * if it is not found.
30948
       */
30949
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30950
        _Fields fields = findByThriftId(fieldId);
30951
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30952
        return fields;
30953
      }
30954
 
30955
      /**
30956
       * Find the _Fields constant that matches name, or null if its not found.
30957
       */
30958
      public static _Fields findByName(String name) {
30959
        return byName.get(name);
30960
      }
30961
 
30962
      private final short _thriftId;
30963
      private final String _fieldName;
30964
 
30965
      _Fields(short thriftId, String fieldName) {
30966
        _thriftId = thriftId;
30967
        _fieldName = fieldName;
30968
      }
30969
 
30970
      public short getThriftFieldId() {
30971
        return _thriftId;
30972
      }
30973
 
30974
      public String getFieldName() {
30975
        return _fieldName;
30976
      }
30977
    }
30978
 
30979
    // isset id assignments
3061 chandransh 30980
    private static final int __PROVIDERID_ISSET_ID = 0;
30981
    private BitSet __isset_bit_vector = new BitSet(1);
305 ashish 30982
 
3430 rajveer 30983
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
305 ashish 30984
    static {
3430 rajveer 30985
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30986
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30987
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30988
      tmpMap.put(_Fields.DELIVERED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("deliveredOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30989
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
30990
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
30991
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
30992
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30993
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_args.class, metaDataMap);
305 ashish 30994
    }
30995
 
3061 chandransh 30996
    public markOrdersAsDelivered_args() {
305 ashish 30997
    }
30998
 
3061 chandransh 30999
    public markOrdersAsDelivered_args(
31000
      long providerId,
31001
      Map<String,String> deliveredOrders)
305 ashish 31002
    {
31003
      this();
3061 chandransh 31004
      this.providerId = providerId;
31005
      setProviderIdIsSet(true);
31006
      this.deliveredOrders = deliveredOrders;
305 ashish 31007
    }
31008
 
31009
    /**
31010
     * Performs a deep copy on <i>other</i>.
31011
     */
3061 chandransh 31012
    public markOrdersAsDelivered_args(markOrdersAsDelivered_args other) {
305 ashish 31013
      __isset_bit_vector.clear();
31014
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 31015
      this.providerId = other.providerId;
31016
      if (other.isSetDeliveredOrders()) {
31017
        Map<String,String> __this__deliveredOrders = new HashMap<String,String>();
31018
        for (Map.Entry<String, String> other_element : other.deliveredOrders.entrySet()) {
305 ashish 31019
 
3061 chandransh 31020
          String other_element_key = other_element.getKey();
31021
          String other_element_value = other_element.getValue();
305 ashish 31022
 
3061 chandransh 31023
          String __this__deliveredOrders_copy_key = other_element_key;
305 ashish 31024
 
3061 chandransh 31025
          String __this__deliveredOrders_copy_value = other_element_value;
305 ashish 31026
 
3061 chandransh 31027
          __this__deliveredOrders.put(__this__deliveredOrders_copy_key, __this__deliveredOrders_copy_value);
31028
        }
31029
        this.deliveredOrders = __this__deliveredOrders;
31030
      }
305 ashish 31031
    }
31032
 
3061 chandransh 31033
    public markOrdersAsDelivered_args deepCopy() {
31034
      return new markOrdersAsDelivered_args(this);
305 ashish 31035
    }
31036
 
3430 rajveer 31037
    @Override
31038
    public void clear() {
31039
      setProviderIdIsSet(false);
31040
      this.providerId = 0;
31041
      this.deliveredOrders = null;
305 ashish 31042
    }
31043
 
3061 chandransh 31044
    public long getProviderId() {
31045
      return this.providerId;
305 ashish 31046
    }
31047
 
3430 rajveer 31048
    public void setProviderId(long providerId) {
3061 chandransh 31049
      this.providerId = providerId;
31050
      setProviderIdIsSet(true);
305 ashish 31051
    }
31052
 
3061 chandransh 31053
    public void unsetProviderId() {
31054
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
305 ashish 31055
    }
31056
 
3430 rajveer 31057
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 31058
    public boolean isSetProviderId() {
31059
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
305 ashish 31060
    }
31061
 
3061 chandransh 31062
    public void setProviderIdIsSet(boolean value) {
31063
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
305 ashish 31064
    }
31065
 
3061 chandransh 31066
    public int getDeliveredOrdersSize() {
31067
      return (this.deliveredOrders == null) ? 0 : this.deliveredOrders.size();
305 ashish 31068
    }
31069
 
3061 chandransh 31070
    public void putToDeliveredOrders(String key, String val) {
31071
      if (this.deliveredOrders == null) {
31072
        this.deliveredOrders = new HashMap<String,String>();
31073
      }
31074
      this.deliveredOrders.put(key, val);
305 ashish 31075
    }
31076
 
3061 chandransh 31077
    public Map<String,String> getDeliveredOrders() {
31078
      return this.deliveredOrders;
305 ashish 31079
    }
31080
 
3430 rajveer 31081
    public void setDeliveredOrders(Map<String,String> deliveredOrders) {
3061 chandransh 31082
      this.deliveredOrders = deliveredOrders;
305 ashish 31083
    }
31084
 
3061 chandransh 31085
    public void unsetDeliveredOrders() {
31086
      this.deliveredOrders = null;
305 ashish 31087
    }
31088
 
3430 rajveer 31089
    /** Returns true if field deliveredOrders is set (has been assigned a value) and false otherwise */
3061 chandransh 31090
    public boolean isSetDeliveredOrders() {
31091
      return this.deliveredOrders != null;
305 ashish 31092
    }
31093
 
3061 chandransh 31094
    public void setDeliveredOrdersIsSet(boolean value) {
305 ashish 31095
      if (!value) {
3061 chandransh 31096
        this.deliveredOrders = null;
305 ashish 31097
      }
31098
    }
31099
 
31100
    public void setFieldValue(_Fields field, Object value) {
31101
      switch (field) {
3061 chandransh 31102
      case PROVIDER_ID:
305 ashish 31103
        if (value == null) {
3061 chandransh 31104
          unsetProviderId();
305 ashish 31105
        } else {
3061 chandransh 31106
          setProviderId((Long)value);
305 ashish 31107
        }
31108
        break;
31109
 
3061 chandransh 31110
      case DELIVERED_ORDERS:
305 ashish 31111
        if (value == null) {
3061 chandransh 31112
          unsetDeliveredOrders();
305 ashish 31113
        } else {
3061 chandransh 31114
          setDeliveredOrders((Map<String,String>)value);
305 ashish 31115
        }
31116
        break;
31117
 
31118
      }
31119
    }
31120
 
31121
    public Object getFieldValue(_Fields field) {
31122
      switch (field) {
3061 chandransh 31123
      case PROVIDER_ID:
3430 rajveer 31124
        return Long.valueOf(getProviderId());
305 ashish 31125
 
3061 chandransh 31126
      case DELIVERED_ORDERS:
31127
        return getDeliveredOrders();
305 ashish 31128
 
31129
      }
31130
      throw new IllegalStateException();
31131
    }
31132
 
3430 rajveer 31133
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31134
    public boolean isSet(_Fields field) {
31135
      if (field == null) {
31136
        throw new IllegalArgumentException();
31137
      }
305 ashish 31138
 
31139
      switch (field) {
3061 chandransh 31140
      case PROVIDER_ID:
31141
        return isSetProviderId();
31142
      case DELIVERED_ORDERS:
31143
        return isSetDeliveredOrders();
305 ashish 31144
      }
31145
      throw new IllegalStateException();
31146
    }
31147
 
31148
    @Override
31149
    public boolean equals(Object that) {
31150
      if (that == null)
31151
        return false;
3061 chandransh 31152
      if (that instanceof markOrdersAsDelivered_args)
31153
        return this.equals((markOrdersAsDelivered_args)that);
305 ashish 31154
      return false;
31155
    }
31156
 
3061 chandransh 31157
    public boolean equals(markOrdersAsDelivered_args that) {
305 ashish 31158
      if (that == null)
31159
        return false;
31160
 
3061 chandransh 31161
      boolean this_present_providerId = true;
31162
      boolean that_present_providerId = true;
31163
      if (this_present_providerId || that_present_providerId) {
31164
        if (!(this_present_providerId && that_present_providerId))
305 ashish 31165
          return false;
3061 chandransh 31166
        if (this.providerId != that.providerId)
305 ashish 31167
          return false;
31168
      }
31169
 
3061 chandransh 31170
      boolean this_present_deliveredOrders = true && this.isSetDeliveredOrders();
31171
      boolean that_present_deliveredOrders = true && that.isSetDeliveredOrders();
31172
      if (this_present_deliveredOrders || that_present_deliveredOrders) {
31173
        if (!(this_present_deliveredOrders && that_present_deliveredOrders))
305 ashish 31174
          return false;
3061 chandransh 31175
        if (!this.deliveredOrders.equals(that.deliveredOrders))
305 ashish 31176
          return false;
31177
      }
31178
 
31179
      return true;
31180
    }
31181
 
31182
    @Override
31183
    public int hashCode() {
31184
      return 0;
31185
    }
31186
 
3430 rajveer 31187
    public int compareTo(markOrdersAsDelivered_args other) {
31188
      if (!getClass().equals(other.getClass())) {
31189
        return getClass().getName().compareTo(other.getClass().getName());
31190
      }
31191
 
31192
      int lastComparison = 0;
31193
      markOrdersAsDelivered_args typedOther = (markOrdersAsDelivered_args)other;
31194
 
31195
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
31196
      if (lastComparison != 0) {
31197
        return lastComparison;
31198
      }
31199
      if (isSetProviderId()) {
31200
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
31201
        if (lastComparison != 0) {
31202
          return lastComparison;
31203
        }
31204
      }
31205
      lastComparison = Boolean.valueOf(isSetDeliveredOrders()).compareTo(typedOther.isSetDeliveredOrders());
31206
      if (lastComparison != 0) {
31207
        return lastComparison;
31208
      }
31209
      if (isSetDeliveredOrders()) {
31210
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveredOrders, typedOther.deliveredOrders);
31211
        if (lastComparison != 0) {
31212
          return lastComparison;
31213
        }
31214
      }
31215
      return 0;
31216
    }
31217
 
31218
    public _Fields fieldForId(int fieldId) {
31219
      return _Fields.findByThriftId(fieldId);
31220
    }
31221
 
31222
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31223
      org.apache.thrift.protocol.TField field;
305 ashish 31224
      iprot.readStructBegin();
31225
      while (true)
31226
      {
31227
        field = iprot.readFieldBegin();
3430 rajveer 31228
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
305 ashish 31229
          break;
31230
        }
3430 rajveer 31231
        switch (field.id) {
31232
          case 1: // PROVIDER_ID
31233
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31234
              this.providerId = iprot.readI64();
31235
              setProviderIdIsSet(true);
31236
            } else { 
31237
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31238
            }
31239
            break;
31240
          case 2: // DELIVERED_ORDERS
31241
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
31242
              {
31243
                org.apache.thrift.protocol.TMap _map77 = iprot.readMapBegin();
31244
                this.deliveredOrders = new HashMap<String,String>(2*_map77.size);
31245
                for (int _i78 = 0; _i78 < _map77.size; ++_i78)
3061 chandransh 31246
                {
3430 rajveer 31247
                  String _key79; // required
31248
                  String _val80; // required
31249
                  _key79 = iprot.readString();
31250
                  _val80 = iprot.readString();
31251
                  this.deliveredOrders.put(_key79, _val80);
3061 chandransh 31252
                }
3430 rajveer 31253
                iprot.readMapEnd();
305 ashish 31254
              }
3430 rajveer 31255
            } else { 
31256
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31257
            }
31258
            break;
31259
          default:
31260
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
305 ashish 31261
        }
3430 rajveer 31262
        iprot.readFieldEnd();
305 ashish 31263
      }
31264
      iprot.readStructEnd();
31265
      validate();
31266
    }
31267
 
3430 rajveer 31268
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
305 ashish 31269
      validate();
31270
 
31271
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 31272
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
31273
      oprot.writeI64(this.providerId);
305 ashish 31274
      oprot.writeFieldEnd();
3061 chandransh 31275
      if (this.deliveredOrders != null) {
31276
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
31277
        {
3430 rajveer 31278
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.deliveredOrders.size()));
3427 chandransh 31279
          for (Map.Entry<String, String> _iter81 : this.deliveredOrders.entrySet())
3061 chandransh 31280
          {
3427 chandransh 31281
            oprot.writeString(_iter81.getKey());
31282
            oprot.writeString(_iter81.getValue());
3061 chandransh 31283
          }
31284
          oprot.writeMapEnd();
31285
        }
305 ashish 31286
        oprot.writeFieldEnd();
31287
      }
31288
      oprot.writeFieldStop();
31289
      oprot.writeStructEnd();
31290
    }
31291
 
31292
    @Override
31293
    public String toString() {
3061 chandransh 31294
      StringBuilder sb = new StringBuilder("markOrdersAsDelivered_args(");
305 ashish 31295
      boolean first = true;
31296
 
3061 chandransh 31297
      sb.append("providerId:");
31298
      sb.append(this.providerId);
305 ashish 31299
      first = false;
31300
      if (!first) sb.append(", ");
3061 chandransh 31301
      sb.append("deliveredOrders:");
31302
      if (this.deliveredOrders == null) {
305 ashish 31303
        sb.append("null");
31304
      } else {
3061 chandransh 31305
        sb.append(this.deliveredOrders);
305 ashish 31306
      }
31307
      first = false;
31308
      sb.append(")");
31309
      return sb.toString();
31310
    }
31311
 
3430 rajveer 31312
    public void validate() throws org.apache.thrift.TException {
305 ashish 31313
      // check for required fields
31314
    }
31315
 
3430 rajveer 31316
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31317
      try {
31318
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31319
      } catch (org.apache.thrift.TException te) {
31320
        throw new java.io.IOException(te);
31321
      }
31322
    }
31323
 
31324
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31325
      try {
31326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31327
      } catch (org.apache.thrift.TException te) {
31328
        throw new java.io.IOException(te);
31329
      }
31330
    }
31331
 
305 ashish 31332
  }
31333
 
3430 rajveer 31334
  public static class markOrdersAsDelivered_result implements org.apache.thrift.TBase<markOrdersAsDelivered_result, markOrdersAsDelivered_result._Fields>, java.io.Serializable, Cloneable   {
31335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsDelivered_result");
305 ashish 31336
 
3430 rajveer 31337
    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 31338
 
3430 rajveer 31339
    private TransactionServiceException ex; // required
305 ashish 31340
 
31341
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 31342
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 31343
      EX((short)1, "ex");
305 ashish 31344
 
31345
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31346
 
31347
      static {
31348
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31349
          byName.put(field.getFieldName(), field);
31350
        }
31351
      }
31352
 
31353
      /**
31354
       * Find the _Fields constant that matches fieldId, or null if its not found.
31355
       */
31356
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 31357
        switch(fieldId) {
31358
          case 1: // EX
31359
            return EX;
31360
          default:
31361
            return null;
31362
        }
305 ashish 31363
      }
31364
 
31365
      /**
31366
       * Find the _Fields constant that matches fieldId, throwing an exception
31367
       * if it is not found.
31368
       */
31369
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31370
        _Fields fields = findByThriftId(fieldId);
31371
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31372
        return fields;
31373
      }
31374
 
31375
      /**
31376
       * Find the _Fields constant that matches name, or null if its not found.
31377
       */
31378
      public static _Fields findByName(String name) {
31379
        return byName.get(name);
31380
      }
31381
 
31382
      private final short _thriftId;
31383
      private final String _fieldName;
31384
 
31385
      _Fields(short thriftId, String fieldName) {
31386
        _thriftId = thriftId;
31387
        _fieldName = fieldName;
31388
      }
31389
 
31390
      public short getThriftFieldId() {
31391
        return _thriftId;
31392
      }
31393
 
31394
      public String getFieldName() {
31395
        return _fieldName;
31396
      }
31397
    }
3061 chandransh 31398
 
31399
    // isset id assignments
31400
 
3430 rajveer 31401
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
305 ashish 31402
    static {
3430 rajveer 31403
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31404
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31405
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31406
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31407
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_result.class, metaDataMap);
305 ashish 31408
    }
31409
 
3061 chandransh 31410
    public markOrdersAsDelivered_result() {
305 ashish 31411
    }
31412
 
3061 chandransh 31413
    public markOrdersAsDelivered_result(
31414
      TransactionServiceException ex)
31415
    {
31416
      this();
31417
      this.ex = ex;
31418
    }
31419
 
305 ashish 31420
    /**
31421
     * Performs a deep copy on <i>other</i>.
31422
     */
3061 chandransh 31423
    public markOrdersAsDelivered_result(markOrdersAsDelivered_result other) {
31424
      if (other.isSetEx()) {
31425
        this.ex = new TransactionServiceException(other.ex);
31426
      }
305 ashish 31427
    }
31428
 
3061 chandransh 31429
    public markOrdersAsDelivered_result deepCopy() {
31430
      return new markOrdersAsDelivered_result(this);
305 ashish 31431
    }
31432
 
3430 rajveer 31433
    @Override
31434
    public void clear() {
31435
      this.ex = null;
305 ashish 31436
    }
31437
 
3061 chandransh 31438
    public TransactionServiceException getEx() {
31439
      return this.ex;
305 ashish 31440
    }
31441
 
3430 rajveer 31442
    public void setEx(TransactionServiceException ex) {
3061 chandransh 31443
      this.ex = ex;
305 ashish 31444
    }
31445
 
3061 chandransh 31446
    public void unsetEx() {
31447
      this.ex = null;
305 ashish 31448
    }
31449
 
3430 rajveer 31450
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 31451
    public boolean isSetEx() {
31452
      return this.ex != null;
305 ashish 31453
    }
31454
 
3061 chandransh 31455
    public void setExIsSet(boolean value) {
31456
      if (!value) {
31457
        this.ex = null;
305 ashish 31458
      }
31459
    }
31460
 
3061 chandransh 31461
    public void setFieldValue(_Fields field, Object value) {
31462
      switch (field) {
31463
      case EX:
31464
        if (value == null) {
31465
          unsetEx();
305 ashish 31466
        } else {
3061 chandransh 31467
          setEx((TransactionServiceException)value);
305 ashish 31468
        }
3061 chandransh 31469
        break;
305 ashish 31470
 
1598 ankur.sing 31471
      }
31472
    }
31473
 
31474
    public Object getFieldValue(_Fields field) {
31475
      switch (field) {
3061 chandransh 31476
      case EX:
31477
        return getEx();
31478
 
1598 ankur.sing 31479
      }
31480
      throw new IllegalStateException();
31481
    }
31482
 
3430 rajveer 31483
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31484
    public boolean isSet(_Fields field) {
31485
      if (field == null) {
31486
        throw new IllegalArgumentException();
31487
      }
1598 ankur.sing 31488
 
31489
      switch (field) {
3061 chandransh 31490
      case EX:
31491
        return isSetEx();
1598 ankur.sing 31492
      }
31493
      throw new IllegalStateException();
31494
    }
31495
 
31496
    @Override
31497
    public boolean equals(Object that) {
31498
      if (that == null)
31499
        return false;
3061 chandransh 31500
      if (that instanceof markOrdersAsDelivered_result)
31501
        return this.equals((markOrdersAsDelivered_result)that);
1598 ankur.sing 31502
      return false;
31503
    }
31504
 
3061 chandransh 31505
    public boolean equals(markOrdersAsDelivered_result that) {
1598 ankur.sing 31506
      if (that == null)
31507
        return false;
31508
 
3061 chandransh 31509
      boolean this_present_ex = true && this.isSetEx();
31510
      boolean that_present_ex = true && that.isSetEx();
31511
      if (this_present_ex || that_present_ex) {
31512
        if (!(this_present_ex && that_present_ex))
31513
          return false;
31514
        if (!this.ex.equals(that.ex))
31515
          return false;
31516
      }
31517
 
1598 ankur.sing 31518
      return true;
31519
    }
31520
 
31521
    @Override
31522
    public int hashCode() {
31523
      return 0;
31524
    }
31525
 
3061 chandransh 31526
    public int compareTo(markOrdersAsDelivered_result other) {
1598 ankur.sing 31527
      if (!getClass().equals(other.getClass())) {
31528
        return getClass().getName().compareTo(other.getClass().getName());
31529
      }
31530
 
31531
      int lastComparison = 0;
3061 chandransh 31532
      markOrdersAsDelivered_result typedOther = (markOrdersAsDelivered_result)other;
1598 ankur.sing 31533
 
3430 rajveer 31534
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
3061 chandransh 31535
      if (lastComparison != 0) {
31536
        return lastComparison;
31537
      }
3430 rajveer 31538
      if (isSetEx()) {
31539
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
31540
        if (lastComparison != 0) {
31541
          return lastComparison;
31542
        }
3061 chandransh 31543
      }
1598 ankur.sing 31544
      return 0;
31545
    }
31546
 
3430 rajveer 31547
    public _Fields fieldForId(int fieldId) {
31548
      return _Fields.findByThriftId(fieldId);
31549
    }
31550
 
31551
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31552
      org.apache.thrift.protocol.TField field;
1598 ankur.sing 31553
      iprot.readStructBegin();
31554
      while (true)
31555
      {
31556
        field = iprot.readFieldBegin();
3430 rajveer 31557
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1598 ankur.sing 31558
          break;
31559
        }
3430 rajveer 31560
        switch (field.id) {
31561
          case 1: // EX
31562
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
31563
              this.ex = new TransactionServiceException();
31564
              this.ex.read(iprot);
31565
            } else { 
31566
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31567
            }
31568
            break;
31569
          default:
31570
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1598 ankur.sing 31571
        }
3430 rajveer 31572
        iprot.readFieldEnd();
1598 ankur.sing 31573
      }
31574
      iprot.readStructEnd();
31575
      validate();
31576
    }
31577
 
3430 rajveer 31578
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 31579
      oprot.writeStructBegin(STRUCT_DESC);
1598 ankur.sing 31580
 
3061 chandransh 31581
      if (this.isSetEx()) {
31582
        oprot.writeFieldBegin(EX_FIELD_DESC);
31583
        this.ex.write(oprot);
31584
        oprot.writeFieldEnd();
31585
      }
1598 ankur.sing 31586
      oprot.writeFieldStop();
31587
      oprot.writeStructEnd();
31588
    }
31589
 
31590
    @Override
31591
    public String toString() {
3061 chandransh 31592
      StringBuilder sb = new StringBuilder("markOrdersAsDelivered_result(");
1598 ankur.sing 31593
      boolean first = true;
31594
 
3061 chandransh 31595
      sb.append("ex:");
31596
      if (this.ex == null) {
31597
        sb.append("null");
31598
      } else {
31599
        sb.append(this.ex);
31600
      }
31601
      first = false;
1598 ankur.sing 31602
      sb.append(")");
31603
      return sb.toString();
31604
    }
31605
 
3430 rajveer 31606
    public void validate() throws org.apache.thrift.TException {
1598 ankur.sing 31607
      // check for required fields
31608
    }
31609
 
3430 rajveer 31610
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31611
      try {
31612
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31613
      } catch (org.apache.thrift.TException te) {
31614
        throw new java.io.IOException(te);
31615
      }
31616
    }
31617
 
31618
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31619
      try {
31620
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31621
      } catch (org.apache.thrift.TException te) {
31622
        throw new java.io.IOException(te);
31623
      }
31624
    }
31625
 
1598 ankur.sing 31626
  }
31627
 
3430 rajveer 31628
  public static class markOrdersAsFailed_args implements org.apache.thrift.TBase<markOrdersAsFailed_args, markOrdersAsFailed_args._Fields>, java.io.Serializable, Cloneable   {
31629
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsFailed_args");
1598 ankur.sing 31630
 
3430 rajveer 31631
    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);
31632
    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 31633
 
3430 rajveer 31634
    private long providerId; // required
31635
    private Map<String,String> returnedOrders; // required
1598 ankur.sing 31636
 
31637
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 31638
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 31639
      PROVIDER_ID((short)1, "providerId"),
31640
      RETURNED_ORDERS((short)2, "returnedOrders");
1598 ankur.sing 31641
 
31642
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31643
 
31644
      static {
31645
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31646
          byName.put(field.getFieldName(), field);
31647
        }
31648
      }
31649
 
31650
      /**
31651
       * Find the _Fields constant that matches fieldId, or null if its not found.
31652
       */
31653
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 31654
        switch(fieldId) {
31655
          case 1: // PROVIDER_ID
31656
            return PROVIDER_ID;
31657
          case 2: // RETURNED_ORDERS
31658
            return RETURNED_ORDERS;
31659
          default:
31660
            return null;
31661
        }
1598 ankur.sing 31662
      }
31663
 
31664
      /**
31665
       * Find the _Fields constant that matches fieldId, throwing an exception
31666
       * if it is not found.
31667
       */
31668
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31669
        _Fields fields = findByThriftId(fieldId);
31670
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31671
        return fields;
31672
      }
31673
 
31674
      /**
31675
       * Find the _Fields constant that matches name, or null if its not found.
31676
       */
31677
      public static _Fields findByName(String name) {
31678
        return byName.get(name);
31679
      }
31680
 
31681
      private final short _thriftId;
31682
      private final String _fieldName;
31683
 
31684
      _Fields(short thriftId, String fieldName) {
31685
        _thriftId = thriftId;
31686
        _fieldName = fieldName;
31687
      }
31688
 
31689
      public short getThriftFieldId() {
31690
        return _thriftId;
31691
      }
31692
 
31693
      public String getFieldName() {
31694
        return _fieldName;
31695
      }
31696
    }
31697
 
31698
    // isset id assignments
3061 chandransh 31699
    private static final int __PROVIDERID_ISSET_ID = 0;
1598 ankur.sing 31700
    private BitSet __isset_bit_vector = new BitSet(1);
31701
 
3430 rajveer 31702
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1598 ankur.sing 31703
    static {
3430 rajveer 31704
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31705
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31706
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31707
      tmpMap.put(_Fields.RETURNED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("returnedOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31708
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
31709
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
31710
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
31711
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31712
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsFailed_args.class, metaDataMap);
1598 ankur.sing 31713
    }
31714
 
3061 chandransh 31715
    public markOrdersAsFailed_args() {
1598 ankur.sing 31716
    }
31717
 
3061 chandransh 31718
    public markOrdersAsFailed_args(
31719
      long providerId,
31720
      Map<String,String> returnedOrders)
1598 ankur.sing 31721
    {
31722
      this();
3061 chandransh 31723
      this.providerId = providerId;
31724
      setProviderIdIsSet(true);
31725
      this.returnedOrders = returnedOrders;
1598 ankur.sing 31726
    }
31727
 
31728
    /**
31729
     * Performs a deep copy on <i>other</i>.
31730
     */
3061 chandransh 31731
    public markOrdersAsFailed_args(markOrdersAsFailed_args other) {
1598 ankur.sing 31732
      __isset_bit_vector.clear();
31733
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 31734
      this.providerId = other.providerId;
31735
      if (other.isSetReturnedOrders()) {
31736
        Map<String,String> __this__returnedOrders = new HashMap<String,String>();
31737
        for (Map.Entry<String, String> other_element : other.returnedOrders.entrySet()) {
1598 ankur.sing 31738
 
3061 chandransh 31739
          String other_element_key = other_element.getKey();
31740
          String other_element_value = other_element.getValue();
1598 ankur.sing 31741
 
3061 chandransh 31742
          String __this__returnedOrders_copy_key = other_element_key;
1598 ankur.sing 31743
 
3061 chandransh 31744
          String __this__returnedOrders_copy_value = other_element_value;
31745
 
31746
          __this__returnedOrders.put(__this__returnedOrders_copy_key, __this__returnedOrders_copy_value);
31747
        }
31748
        this.returnedOrders = __this__returnedOrders;
31749
      }
1598 ankur.sing 31750
    }
31751
 
3061 chandransh 31752
    public markOrdersAsFailed_args deepCopy() {
31753
      return new markOrdersAsFailed_args(this);
1598 ankur.sing 31754
    }
31755
 
3430 rajveer 31756
    @Override
31757
    public void clear() {
31758
      setProviderIdIsSet(false);
31759
      this.providerId = 0;
31760
      this.returnedOrders = null;
1598 ankur.sing 31761
    }
31762
 
3061 chandransh 31763
    public long getProviderId() {
31764
      return this.providerId;
1598 ankur.sing 31765
    }
31766
 
3430 rajveer 31767
    public void setProviderId(long providerId) {
3061 chandransh 31768
      this.providerId = providerId;
31769
      setProviderIdIsSet(true);
1598 ankur.sing 31770
    }
31771
 
3061 chandransh 31772
    public void unsetProviderId() {
31773
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1598 ankur.sing 31774
    }
31775
 
3430 rajveer 31776
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 31777
    public boolean isSetProviderId() {
31778
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1598 ankur.sing 31779
    }
31780
 
3061 chandransh 31781
    public void setProviderIdIsSet(boolean value) {
31782
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
1598 ankur.sing 31783
    }
31784
 
3061 chandransh 31785
    public int getReturnedOrdersSize() {
31786
      return (this.returnedOrders == null) ? 0 : this.returnedOrders.size();
1598 ankur.sing 31787
    }
31788
 
3061 chandransh 31789
    public void putToReturnedOrders(String key, String val) {
31790
      if (this.returnedOrders == null) {
31791
        this.returnedOrders = new HashMap<String,String>();
1598 ankur.sing 31792
      }
3061 chandransh 31793
      this.returnedOrders.put(key, val);
1598 ankur.sing 31794
    }
31795
 
3061 chandransh 31796
    public Map<String,String> getReturnedOrders() {
31797
      return this.returnedOrders;
1598 ankur.sing 31798
    }
31799
 
3430 rajveer 31800
    public void setReturnedOrders(Map<String,String> returnedOrders) {
3061 chandransh 31801
      this.returnedOrders = returnedOrders;
1598 ankur.sing 31802
    }
31803
 
3061 chandransh 31804
    public void unsetReturnedOrders() {
31805
      this.returnedOrders = null;
1598 ankur.sing 31806
    }
31807
 
3430 rajveer 31808
    /** Returns true if field returnedOrders is set (has been assigned a value) and false otherwise */
3061 chandransh 31809
    public boolean isSetReturnedOrders() {
31810
      return this.returnedOrders != null;
1598 ankur.sing 31811
    }
31812
 
3061 chandransh 31813
    public void setReturnedOrdersIsSet(boolean value) {
31814
      if (!value) {
31815
        this.returnedOrders = null;
1598 ankur.sing 31816
      }
31817
    }
31818
 
3061 chandransh 31819
    public void setFieldValue(_Fields field, Object value) {
31820
      switch (field) {
31821
      case PROVIDER_ID:
31822
        if (value == null) {
31823
          unsetProviderId();
1598 ankur.sing 31824
        } else {
3061 chandransh 31825
          setProviderId((Long)value);
1598 ankur.sing 31826
        }
3061 chandransh 31827
        break;
1598 ankur.sing 31828
 
3061 chandransh 31829
      case RETURNED_ORDERS:
31830
        if (value == null) {
31831
          unsetReturnedOrders();
31832
        } else {
31833
          setReturnedOrders((Map<String,String>)value);
1629 ankur.sing 31834
        }
3061 chandransh 31835
        break;
1629 ankur.sing 31836
 
31837
      }
31838
    }
31839
 
31840
    public Object getFieldValue(_Fields field) {
31841
      switch (field) {
3061 chandransh 31842
      case PROVIDER_ID:
3430 rajveer 31843
        return Long.valueOf(getProviderId());
3061 chandransh 31844
 
31845
      case RETURNED_ORDERS:
31846
        return getReturnedOrders();
31847
 
1629 ankur.sing 31848
      }
31849
      throw new IllegalStateException();
31850
    }
31851
 
3430 rajveer 31852
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31853
    public boolean isSet(_Fields field) {
31854
      if (field == null) {
31855
        throw new IllegalArgumentException();
31856
      }
1629 ankur.sing 31857
 
31858
      switch (field) {
3061 chandransh 31859
      case PROVIDER_ID:
31860
        return isSetProviderId();
31861
      case RETURNED_ORDERS:
31862
        return isSetReturnedOrders();
1629 ankur.sing 31863
      }
31864
      throw new IllegalStateException();
31865
    }
31866
 
31867
    @Override
31868
    public boolean equals(Object that) {
31869
      if (that == null)
31870
        return false;
3061 chandransh 31871
      if (that instanceof markOrdersAsFailed_args)
31872
        return this.equals((markOrdersAsFailed_args)that);
1629 ankur.sing 31873
      return false;
31874
    }
31875
 
3061 chandransh 31876
    public boolean equals(markOrdersAsFailed_args that) {
1629 ankur.sing 31877
      if (that == null)
31878
        return false;
31879
 
3061 chandransh 31880
      boolean this_present_providerId = true;
31881
      boolean that_present_providerId = true;
31882
      if (this_present_providerId || that_present_providerId) {
31883
        if (!(this_present_providerId && that_present_providerId))
31884
          return false;
31885
        if (this.providerId != that.providerId)
31886
          return false;
31887
      }
31888
 
31889
      boolean this_present_returnedOrders = true && this.isSetReturnedOrders();
31890
      boolean that_present_returnedOrders = true && that.isSetReturnedOrders();
31891
      if (this_present_returnedOrders || that_present_returnedOrders) {
31892
        if (!(this_present_returnedOrders && that_present_returnedOrders))
31893
          return false;
31894
        if (!this.returnedOrders.equals(that.returnedOrders))
31895
          return false;
31896
      }
31897
 
1629 ankur.sing 31898
      return true;
31899
    }
31900
 
31901
    @Override
31902
    public int hashCode() {
31903
      return 0;
31904
    }
31905
 
3430 rajveer 31906
    public int compareTo(markOrdersAsFailed_args other) {
31907
      if (!getClass().equals(other.getClass())) {
31908
        return getClass().getName().compareTo(other.getClass().getName());
31909
      }
31910
 
31911
      int lastComparison = 0;
31912
      markOrdersAsFailed_args typedOther = (markOrdersAsFailed_args)other;
31913
 
31914
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
31915
      if (lastComparison != 0) {
31916
        return lastComparison;
31917
      }
31918
      if (isSetProviderId()) {
31919
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
31920
        if (lastComparison != 0) {
31921
          return lastComparison;
31922
        }
31923
      }
31924
      lastComparison = Boolean.valueOf(isSetReturnedOrders()).compareTo(typedOther.isSetReturnedOrders());
31925
      if (lastComparison != 0) {
31926
        return lastComparison;
31927
      }
31928
      if (isSetReturnedOrders()) {
31929
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnedOrders, typedOther.returnedOrders);
31930
        if (lastComparison != 0) {
31931
          return lastComparison;
31932
        }
31933
      }
31934
      return 0;
31935
    }
31936
 
31937
    public _Fields fieldForId(int fieldId) {
31938
      return _Fields.findByThriftId(fieldId);
31939
    }
31940
 
31941
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31942
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 31943
      iprot.readStructBegin();
31944
      while (true)
31945
      {
31946
        field = iprot.readFieldBegin();
3430 rajveer 31947
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 31948
          break;
31949
        }
3430 rajveer 31950
        switch (field.id) {
31951
          case 1: // PROVIDER_ID
31952
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31953
              this.providerId = iprot.readI64();
31954
              setProviderIdIsSet(true);
31955
            } else { 
31956
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31957
            }
31958
            break;
31959
          case 2: // RETURNED_ORDERS
31960
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
31961
              {
31962
                org.apache.thrift.protocol.TMap _map82 = iprot.readMapBegin();
31963
                this.returnedOrders = new HashMap<String,String>(2*_map82.size);
31964
                for (int _i83 = 0; _i83 < _map82.size; ++_i83)
3061 chandransh 31965
                {
3430 rajveer 31966
                  String _key84; // required
31967
                  String _val85; // required
31968
                  _key84 = iprot.readString();
31969
                  _val85 = iprot.readString();
31970
                  this.returnedOrders.put(_key84, _val85);
3061 chandransh 31971
                }
3430 rajveer 31972
                iprot.readMapEnd();
3061 chandransh 31973
              }
3430 rajveer 31974
            } else { 
31975
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31976
            }
31977
            break;
31978
          default:
31979
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 31980
        }
3430 rajveer 31981
        iprot.readFieldEnd();
1629 ankur.sing 31982
      }
31983
      iprot.readStructEnd();
31984
      validate();
31985
    }
31986
 
3430 rajveer 31987
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 31988
      validate();
31989
 
31990
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 31991
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
31992
      oprot.writeI64(this.providerId);
31993
      oprot.writeFieldEnd();
31994
      if (this.returnedOrders != null) {
31995
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
31996
        {
3430 rajveer 31997
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.returnedOrders.size()));
3427 chandransh 31998
          for (Map.Entry<String, String> _iter86 : this.returnedOrders.entrySet())
3061 chandransh 31999
          {
3427 chandransh 32000
            oprot.writeString(_iter86.getKey());
32001
            oprot.writeString(_iter86.getValue());
3061 chandransh 32002
          }
32003
          oprot.writeMapEnd();
32004
        }
32005
        oprot.writeFieldEnd();
32006
      }
1629 ankur.sing 32007
      oprot.writeFieldStop();
32008
      oprot.writeStructEnd();
32009
    }
32010
 
32011
    @Override
32012
    public String toString() {
3061 chandransh 32013
      StringBuilder sb = new StringBuilder("markOrdersAsFailed_args(");
1629 ankur.sing 32014
      boolean first = true;
32015
 
3061 chandransh 32016
      sb.append("providerId:");
32017
      sb.append(this.providerId);
32018
      first = false;
32019
      if (!first) sb.append(", ");
32020
      sb.append("returnedOrders:");
32021
      if (this.returnedOrders == null) {
32022
        sb.append("null");
32023
      } else {
32024
        sb.append(this.returnedOrders);
32025
      }
32026
      first = false;
1629 ankur.sing 32027
      sb.append(")");
32028
      return sb.toString();
32029
    }
32030
 
3430 rajveer 32031
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 32032
      // check for required fields
32033
    }
32034
 
3430 rajveer 32035
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32036
      try {
32037
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32038
      } catch (org.apache.thrift.TException te) {
32039
        throw new java.io.IOException(te);
32040
      }
32041
    }
32042
 
32043
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32044
      try {
32045
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32046
      } catch (org.apache.thrift.TException te) {
32047
        throw new java.io.IOException(te);
32048
      }
32049
    }
32050
 
1629 ankur.sing 32051
  }
32052
 
3430 rajveer 32053
  public static class markOrdersAsFailed_result implements org.apache.thrift.TBase<markOrdersAsFailed_result, markOrdersAsFailed_result._Fields>, java.io.Serializable, Cloneable   {
32054
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsFailed_result");
1629 ankur.sing 32055
 
3430 rajveer 32056
    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 32057
 
3430 rajveer 32058
    private TransactionServiceException ex; // required
1629 ankur.sing 32059
 
32060
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32061
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 32062
      EX((short)1, "ex");
1629 ankur.sing 32063
 
32064
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32065
 
32066
      static {
32067
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32068
          byName.put(field.getFieldName(), field);
32069
        }
32070
      }
32071
 
32072
      /**
32073
       * Find the _Fields constant that matches fieldId, or null if its not found.
32074
       */
32075
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32076
        switch(fieldId) {
32077
          case 1: // EX
32078
            return EX;
32079
          default:
32080
            return null;
32081
        }
1629 ankur.sing 32082
      }
32083
 
32084
      /**
32085
       * Find the _Fields constant that matches fieldId, throwing an exception
32086
       * if it is not found.
32087
       */
32088
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32089
        _Fields fields = findByThriftId(fieldId);
32090
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32091
        return fields;
32092
      }
32093
 
32094
      /**
32095
       * Find the _Fields constant that matches name, or null if its not found.
32096
       */
32097
      public static _Fields findByName(String name) {
32098
        return byName.get(name);
32099
      }
32100
 
32101
      private final short _thriftId;
32102
      private final String _fieldName;
32103
 
32104
      _Fields(short thriftId, String fieldName) {
32105
        _thriftId = thriftId;
32106
        _fieldName = fieldName;
32107
      }
32108
 
32109
      public short getThriftFieldId() {
32110
        return _thriftId;
32111
      }
32112
 
32113
      public String getFieldName() {
32114
        return _fieldName;
32115
      }
32116
    }
32117
 
32118
    // isset id assignments
32119
 
3430 rajveer 32120
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 32121
    static {
3430 rajveer 32122
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32123
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32124
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32125
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32126
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsFailed_result.class, metaDataMap);
1629 ankur.sing 32127
    }
32128
 
3061 chandransh 32129
    public markOrdersAsFailed_result() {
1629 ankur.sing 32130
    }
32131
 
3061 chandransh 32132
    public markOrdersAsFailed_result(
32133
      TransactionServiceException ex)
1629 ankur.sing 32134
    {
32135
      this();
3061 chandransh 32136
      this.ex = ex;
1629 ankur.sing 32137
    }
32138
 
32139
    /**
32140
     * Performs a deep copy on <i>other</i>.
32141
     */
3061 chandransh 32142
    public markOrdersAsFailed_result(markOrdersAsFailed_result other) {
32143
      if (other.isSetEx()) {
32144
        this.ex = new TransactionServiceException(other.ex);
32145
      }
1629 ankur.sing 32146
    }
32147
 
3061 chandransh 32148
    public markOrdersAsFailed_result deepCopy() {
32149
      return new markOrdersAsFailed_result(this);
1629 ankur.sing 32150
    }
32151
 
3430 rajveer 32152
    @Override
32153
    public void clear() {
32154
      this.ex = null;
1629 ankur.sing 32155
    }
32156
 
3061 chandransh 32157
    public TransactionServiceException getEx() {
32158
      return this.ex;
1629 ankur.sing 32159
    }
32160
 
3430 rajveer 32161
    public void setEx(TransactionServiceException ex) {
3061 chandransh 32162
      this.ex = ex;
1629 ankur.sing 32163
    }
32164
 
3061 chandransh 32165
    public void unsetEx() {
32166
      this.ex = null;
1629 ankur.sing 32167
    }
32168
 
3430 rajveer 32169
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 32170
    public boolean isSetEx() {
32171
      return this.ex != null;
1629 ankur.sing 32172
    }
32173
 
3061 chandransh 32174
    public void setExIsSet(boolean value) {
32175
      if (!value) {
32176
        this.ex = null;
32177
      }
1629 ankur.sing 32178
    }
32179
 
32180
    public void setFieldValue(_Fields field, Object value) {
32181
      switch (field) {
3061 chandransh 32182
      case EX:
1629 ankur.sing 32183
        if (value == null) {
3061 chandransh 32184
          unsetEx();
1629 ankur.sing 32185
        } else {
3061 chandransh 32186
          setEx((TransactionServiceException)value);
1629 ankur.sing 32187
        }
32188
        break;
32189
 
32190
      }
32191
    }
32192
 
32193
    public Object getFieldValue(_Fields field) {
32194
      switch (field) {
3061 chandransh 32195
      case EX:
32196
        return getEx();
1629 ankur.sing 32197
 
32198
      }
32199
      throw new IllegalStateException();
32200
    }
32201
 
3430 rajveer 32202
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32203
    public boolean isSet(_Fields field) {
32204
      if (field == null) {
32205
        throw new IllegalArgumentException();
32206
      }
1629 ankur.sing 32207
 
32208
      switch (field) {
3061 chandransh 32209
      case EX:
32210
        return isSetEx();
1629 ankur.sing 32211
      }
32212
      throw new IllegalStateException();
32213
    }
32214
 
32215
    @Override
32216
    public boolean equals(Object that) {
32217
      if (that == null)
32218
        return false;
3061 chandransh 32219
      if (that instanceof markOrdersAsFailed_result)
32220
        return this.equals((markOrdersAsFailed_result)that);
1629 ankur.sing 32221
      return false;
32222
    }
32223
 
3061 chandransh 32224
    public boolean equals(markOrdersAsFailed_result that) {
1629 ankur.sing 32225
      if (that == null)
32226
        return false;
32227
 
3061 chandransh 32228
      boolean this_present_ex = true && this.isSetEx();
32229
      boolean that_present_ex = true && that.isSetEx();
32230
      if (this_present_ex || that_present_ex) {
32231
        if (!(this_present_ex && that_present_ex))
1629 ankur.sing 32232
          return false;
3061 chandransh 32233
        if (!this.ex.equals(that.ex))
1629 ankur.sing 32234
          return false;
32235
      }
32236
 
32237
      return true;
32238
    }
32239
 
32240
    @Override
32241
    public int hashCode() {
32242
      return 0;
32243
    }
32244
 
3061 chandransh 32245
    public int compareTo(markOrdersAsFailed_result other) {
1629 ankur.sing 32246
      if (!getClass().equals(other.getClass())) {
32247
        return getClass().getName().compareTo(other.getClass().getName());
32248
      }
32249
 
32250
      int lastComparison = 0;
3061 chandransh 32251
      markOrdersAsFailed_result typedOther = (markOrdersAsFailed_result)other;
1629 ankur.sing 32252
 
3430 rajveer 32253
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1629 ankur.sing 32254
      if (lastComparison != 0) {
32255
        return lastComparison;
32256
      }
3430 rajveer 32257
      if (isSetEx()) {
32258
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
32259
        if (lastComparison != 0) {
32260
          return lastComparison;
32261
        }
1629 ankur.sing 32262
      }
32263
      return 0;
32264
    }
32265
 
3430 rajveer 32266
    public _Fields fieldForId(int fieldId) {
32267
      return _Fields.findByThriftId(fieldId);
32268
    }
32269
 
32270
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32271
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 32272
      iprot.readStructBegin();
32273
      while (true)
32274
      {
32275
        field = iprot.readFieldBegin();
3430 rajveer 32276
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 32277
          break;
32278
        }
3430 rajveer 32279
        switch (field.id) {
32280
          case 1: // EX
32281
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32282
              this.ex = new TransactionServiceException();
32283
              this.ex.read(iprot);
32284
            } else { 
32285
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32286
            }
32287
            break;
32288
          default:
32289
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 32290
        }
3430 rajveer 32291
        iprot.readFieldEnd();
1629 ankur.sing 32292
      }
32293
      iprot.readStructEnd();
32294
      validate();
32295
    }
32296
 
3430 rajveer 32297
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 32298
      oprot.writeStructBegin(STRUCT_DESC);
32299
 
3061 chandransh 32300
      if (this.isSetEx()) {
32301
        oprot.writeFieldBegin(EX_FIELD_DESC);
32302
        this.ex.write(oprot);
1629 ankur.sing 32303
        oprot.writeFieldEnd();
32304
      }
32305
      oprot.writeFieldStop();
32306
      oprot.writeStructEnd();
32307
    }
32308
 
32309
    @Override
32310
    public String toString() {
3061 chandransh 32311
      StringBuilder sb = new StringBuilder("markOrdersAsFailed_result(");
1629 ankur.sing 32312
      boolean first = true;
32313
 
3061 chandransh 32314
      sb.append("ex:");
32315
      if (this.ex == null) {
32316
        sb.append("null");
32317
      } else {
32318
        sb.append(this.ex);
32319
      }
1629 ankur.sing 32320
      first = false;
32321
      sb.append(")");
32322
      return sb.toString();
32323
    }
32324
 
3430 rajveer 32325
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 32326
      // check for required fields
32327
    }
32328
 
3430 rajveer 32329
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32330
      try {
32331
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32332
      } catch (org.apache.thrift.TException te) {
32333
        throw new java.io.IOException(te);
32334
      }
32335
    }
32336
 
32337
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32338
      try {
32339
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32340
      } catch (org.apache.thrift.TException te) {
32341
        throw new java.io.IOException(te);
32342
      }
32343
    }
32344
 
1629 ankur.sing 32345
  }
32346
 
3430 rajveer 32347
  public static class updateNonDeliveryReason_args implements org.apache.thrift.TBase<updateNonDeliveryReason_args, updateNonDeliveryReason_args._Fields>, java.io.Serializable, Cloneable   {
32348
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNonDeliveryReason_args");
1629 ankur.sing 32349
 
3430 rajveer 32350
    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);
32351
    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 32352
 
3430 rajveer 32353
    private long providerId; // required
32354
    private Map<String,String> undeliveredOrders; // required
1629 ankur.sing 32355
 
32356
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32357
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 32358
      PROVIDER_ID((short)1, "providerId"),
32359
      UNDELIVERED_ORDERS((short)2, "undeliveredOrders");
1629 ankur.sing 32360
 
32361
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32362
 
32363
      static {
32364
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32365
          byName.put(field.getFieldName(), field);
32366
        }
32367
      }
32368
 
32369
      /**
32370
       * Find the _Fields constant that matches fieldId, or null if its not found.
32371
       */
32372
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32373
        switch(fieldId) {
32374
          case 1: // PROVIDER_ID
32375
            return PROVIDER_ID;
32376
          case 2: // UNDELIVERED_ORDERS
32377
            return UNDELIVERED_ORDERS;
32378
          default:
32379
            return null;
32380
        }
1629 ankur.sing 32381
      }
32382
 
32383
      /**
32384
       * Find the _Fields constant that matches fieldId, throwing an exception
32385
       * if it is not found.
32386
       */
32387
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32388
        _Fields fields = findByThriftId(fieldId);
32389
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32390
        return fields;
32391
      }
32392
 
32393
      /**
32394
       * Find the _Fields constant that matches name, or null if its not found.
32395
       */
32396
      public static _Fields findByName(String name) {
32397
        return byName.get(name);
32398
      }
32399
 
32400
      private final short _thriftId;
32401
      private final String _fieldName;
32402
 
32403
      _Fields(short thriftId, String fieldName) {
32404
        _thriftId = thriftId;
32405
        _fieldName = fieldName;
32406
      }
32407
 
32408
      public short getThriftFieldId() {
32409
        return _thriftId;
32410
      }
32411
 
32412
      public String getFieldName() {
32413
        return _fieldName;
32414
      }
32415
    }
3061 chandransh 32416
 
32417
    // isset id assignments
32418
    private static final int __PROVIDERID_ISSET_ID = 0;
32419
    private BitSet __isset_bit_vector = new BitSet(1);
32420
 
3430 rajveer 32421
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 32422
    static {
3430 rajveer 32423
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32424
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32425
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32426
      tmpMap.put(_Fields.UNDELIVERED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("undeliveredOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32427
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
32428
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
32429
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
32430
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32431
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_args.class, metaDataMap);
1629 ankur.sing 32432
    }
32433
 
3061 chandransh 32434
    public updateNonDeliveryReason_args() {
1629 ankur.sing 32435
    }
32436
 
3061 chandransh 32437
    public updateNonDeliveryReason_args(
32438
      long providerId,
32439
      Map<String,String> undeliveredOrders)
32440
    {
32441
      this();
32442
      this.providerId = providerId;
32443
      setProviderIdIsSet(true);
32444
      this.undeliveredOrders = undeliveredOrders;
32445
    }
32446
 
1629 ankur.sing 32447
    /**
32448
     * Performs a deep copy on <i>other</i>.
32449
     */
3061 chandransh 32450
    public updateNonDeliveryReason_args(updateNonDeliveryReason_args other) {
32451
      __isset_bit_vector.clear();
32452
      __isset_bit_vector.or(other.__isset_bit_vector);
32453
      this.providerId = other.providerId;
32454
      if (other.isSetUndeliveredOrders()) {
32455
        Map<String,String> __this__undeliveredOrders = new HashMap<String,String>();
32456
        for (Map.Entry<String, String> other_element : other.undeliveredOrders.entrySet()) {
32457
 
32458
          String other_element_key = other_element.getKey();
32459
          String other_element_value = other_element.getValue();
32460
 
32461
          String __this__undeliveredOrders_copy_key = other_element_key;
32462
 
32463
          String __this__undeliveredOrders_copy_value = other_element_value;
32464
 
32465
          __this__undeliveredOrders.put(__this__undeliveredOrders_copy_key, __this__undeliveredOrders_copy_value);
32466
        }
32467
        this.undeliveredOrders = __this__undeliveredOrders;
32468
      }
1629 ankur.sing 32469
    }
32470
 
3061 chandransh 32471
    public updateNonDeliveryReason_args deepCopy() {
32472
      return new updateNonDeliveryReason_args(this);
1629 ankur.sing 32473
    }
32474
 
3430 rajveer 32475
    @Override
32476
    public void clear() {
32477
      setProviderIdIsSet(false);
32478
      this.providerId = 0;
32479
      this.undeliveredOrders = null;
1629 ankur.sing 32480
    }
32481
 
3061 chandransh 32482
    public long getProviderId() {
32483
      return this.providerId;
32484
    }
32485
 
3430 rajveer 32486
    public void setProviderId(long providerId) {
3061 chandransh 32487
      this.providerId = providerId;
32488
      setProviderIdIsSet(true);
32489
    }
32490
 
32491
    public void unsetProviderId() {
32492
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
32493
    }
32494
 
3430 rajveer 32495
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 32496
    public boolean isSetProviderId() {
32497
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
32498
    }
32499
 
32500
    public void setProviderIdIsSet(boolean value) {
32501
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
32502
    }
32503
 
32504
    public int getUndeliveredOrdersSize() {
32505
      return (this.undeliveredOrders == null) ? 0 : this.undeliveredOrders.size();
32506
    }
32507
 
32508
    public void putToUndeliveredOrders(String key, String val) {
32509
      if (this.undeliveredOrders == null) {
32510
        this.undeliveredOrders = new HashMap<String,String>();
32511
      }
32512
      this.undeliveredOrders.put(key, val);
32513
    }
32514
 
32515
    public Map<String,String> getUndeliveredOrders() {
32516
      return this.undeliveredOrders;
32517
    }
32518
 
3430 rajveer 32519
    public void setUndeliveredOrders(Map<String,String> undeliveredOrders) {
3061 chandransh 32520
      this.undeliveredOrders = undeliveredOrders;
32521
    }
32522
 
32523
    public void unsetUndeliveredOrders() {
32524
      this.undeliveredOrders = null;
32525
    }
32526
 
3430 rajveer 32527
    /** Returns true if field undeliveredOrders is set (has been assigned a value) and false otherwise */
3061 chandransh 32528
    public boolean isSetUndeliveredOrders() {
32529
      return this.undeliveredOrders != null;
32530
    }
32531
 
32532
    public void setUndeliveredOrdersIsSet(boolean value) {
32533
      if (!value) {
32534
        this.undeliveredOrders = null;
32535
      }
32536
    }
32537
 
1629 ankur.sing 32538
    public void setFieldValue(_Fields field, Object value) {
32539
      switch (field) {
3061 chandransh 32540
      case PROVIDER_ID:
32541
        if (value == null) {
32542
          unsetProviderId();
32543
        } else {
32544
          setProviderId((Long)value);
32545
        }
32546
        break;
32547
 
32548
      case UNDELIVERED_ORDERS:
32549
        if (value == null) {
32550
          unsetUndeliveredOrders();
32551
        } else {
32552
          setUndeliveredOrders((Map<String,String>)value);
32553
        }
32554
        break;
32555
 
1629 ankur.sing 32556
      }
32557
    }
32558
 
32559
    public Object getFieldValue(_Fields field) {
32560
      switch (field) {
3061 chandransh 32561
      case PROVIDER_ID:
3430 rajveer 32562
        return Long.valueOf(getProviderId());
3061 chandransh 32563
 
32564
      case UNDELIVERED_ORDERS:
32565
        return getUndeliveredOrders();
32566
 
1629 ankur.sing 32567
      }
32568
      throw new IllegalStateException();
32569
    }
32570
 
3430 rajveer 32571
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32572
    public boolean isSet(_Fields field) {
32573
      if (field == null) {
32574
        throw new IllegalArgumentException();
32575
      }
1629 ankur.sing 32576
 
32577
      switch (field) {
3061 chandransh 32578
      case PROVIDER_ID:
32579
        return isSetProviderId();
32580
      case UNDELIVERED_ORDERS:
32581
        return isSetUndeliveredOrders();
1629 ankur.sing 32582
      }
32583
      throw new IllegalStateException();
32584
    }
32585
 
32586
    @Override
32587
    public boolean equals(Object that) {
32588
      if (that == null)
32589
        return false;
3061 chandransh 32590
      if (that instanceof updateNonDeliveryReason_args)
32591
        return this.equals((updateNonDeliveryReason_args)that);
1629 ankur.sing 32592
      return false;
32593
    }
32594
 
3061 chandransh 32595
    public boolean equals(updateNonDeliveryReason_args that) {
1629 ankur.sing 32596
      if (that == null)
32597
        return false;
32598
 
3061 chandransh 32599
      boolean this_present_providerId = true;
32600
      boolean that_present_providerId = true;
32601
      if (this_present_providerId || that_present_providerId) {
32602
        if (!(this_present_providerId && that_present_providerId))
32603
          return false;
32604
        if (this.providerId != that.providerId)
32605
          return false;
32606
      }
32607
 
32608
      boolean this_present_undeliveredOrders = true && this.isSetUndeliveredOrders();
32609
      boolean that_present_undeliveredOrders = true && that.isSetUndeliveredOrders();
32610
      if (this_present_undeliveredOrders || that_present_undeliveredOrders) {
32611
        if (!(this_present_undeliveredOrders && that_present_undeliveredOrders))
32612
          return false;
32613
        if (!this.undeliveredOrders.equals(that.undeliveredOrders))
32614
          return false;
32615
      }
32616
 
1629 ankur.sing 32617
      return true;
32618
    }
32619
 
32620
    @Override
32621
    public int hashCode() {
32622
      return 0;
32623
    }
32624
 
3430 rajveer 32625
    public int compareTo(updateNonDeliveryReason_args other) {
32626
      if (!getClass().equals(other.getClass())) {
32627
        return getClass().getName().compareTo(other.getClass().getName());
32628
      }
32629
 
32630
      int lastComparison = 0;
32631
      updateNonDeliveryReason_args typedOther = (updateNonDeliveryReason_args)other;
32632
 
32633
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
32634
      if (lastComparison != 0) {
32635
        return lastComparison;
32636
      }
32637
      if (isSetProviderId()) {
32638
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
32639
        if (lastComparison != 0) {
32640
          return lastComparison;
32641
        }
32642
      }
32643
      lastComparison = Boolean.valueOf(isSetUndeliveredOrders()).compareTo(typedOther.isSetUndeliveredOrders());
32644
      if (lastComparison != 0) {
32645
        return lastComparison;
32646
      }
32647
      if (isSetUndeliveredOrders()) {
32648
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.undeliveredOrders, typedOther.undeliveredOrders);
32649
        if (lastComparison != 0) {
32650
          return lastComparison;
32651
        }
32652
      }
32653
      return 0;
32654
    }
32655
 
32656
    public _Fields fieldForId(int fieldId) {
32657
      return _Fields.findByThriftId(fieldId);
32658
    }
32659
 
32660
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32661
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 32662
      iprot.readStructBegin();
32663
      while (true)
32664
      {
32665
        field = iprot.readFieldBegin();
3430 rajveer 32666
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 32667
          break;
32668
        }
3430 rajveer 32669
        switch (field.id) {
32670
          case 1: // PROVIDER_ID
32671
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32672
              this.providerId = iprot.readI64();
32673
              setProviderIdIsSet(true);
32674
            } else { 
32675
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32676
            }
32677
            break;
32678
          case 2: // UNDELIVERED_ORDERS
32679
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
32680
              {
32681
                org.apache.thrift.protocol.TMap _map87 = iprot.readMapBegin();
32682
                this.undeliveredOrders = new HashMap<String,String>(2*_map87.size);
32683
                for (int _i88 = 0; _i88 < _map87.size; ++_i88)
3061 chandransh 32684
                {
3430 rajveer 32685
                  String _key89; // required
32686
                  String _val90; // required
32687
                  _key89 = iprot.readString();
32688
                  _val90 = iprot.readString();
32689
                  this.undeliveredOrders.put(_key89, _val90);
3061 chandransh 32690
                }
3430 rajveer 32691
                iprot.readMapEnd();
3061 chandransh 32692
              }
3430 rajveer 32693
            } else { 
32694
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32695
            }
32696
            break;
32697
          default:
32698
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 32699
        }
3430 rajveer 32700
        iprot.readFieldEnd();
1629 ankur.sing 32701
      }
32702
      iprot.readStructEnd();
32703
      validate();
32704
    }
32705
 
3430 rajveer 32706
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 32707
      validate();
32708
 
32709
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 32710
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
32711
      oprot.writeI64(this.providerId);
32712
      oprot.writeFieldEnd();
32713
      if (this.undeliveredOrders != null) {
32714
        oprot.writeFieldBegin(UNDELIVERED_ORDERS_FIELD_DESC);
32715
        {
3430 rajveer 32716
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.undeliveredOrders.size()));
3427 chandransh 32717
          for (Map.Entry<String, String> _iter91 : this.undeliveredOrders.entrySet())
3061 chandransh 32718
          {
3427 chandransh 32719
            oprot.writeString(_iter91.getKey());
32720
            oprot.writeString(_iter91.getValue());
3061 chandransh 32721
          }
32722
          oprot.writeMapEnd();
32723
        }
32724
        oprot.writeFieldEnd();
32725
      }
1629 ankur.sing 32726
      oprot.writeFieldStop();
32727
      oprot.writeStructEnd();
32728
    }
32729
 
32730
    @Override
32731
    public String toString() {
3061 chandransh 32732
      StringBuilder sb = new StringBuilder("updateNonDeliveryReason_args(");
1629 ankur.sing 32733
      boolean first = true;
32734
 
3061 chandransh 32735
      sb.append("providerId:");
32736
      sb.append(this.providerId);
32737
      first = false;
32738
      if (!first) sb.append(", ");
32739
      sb.append("undeliveredOrders:");
32740
      if (this.undeliveredOrders == null) {
32741
        sb.append("null");
32742
      } else {
32743
        sb.append(this.undeliveredOrders);
32744
      }
32745
      first = false;
1629 ankur.sing 32746
      sb.append(")");
32747
      return sb.toString();
32748
    }
32749
 
3430 rajveer 32750
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 32751
      // check for required fields
32752
    }
32753
 
3430 rajveer 32754
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32755
      try {
32756
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32757
      } catch (org.apache.thrift.TException te) {
32758
        throw new java.io.IOException(te);
32759
      }
32760
    }
32761
 
32762
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32763
      try {
32764
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32765
      } catch (org.apache.thrift.TException te) {
32766
        throw new java.io.IOException(te);
32767
      }
32768
    }
32769
 
1629 ankur.sing 32770
  }
32771
 
3430 rajveer 32772
  public static class updateNonDeliveryReason_result implements org.apache.thrift.TBase<updateNonDeliveryReason_result, updateNonDeliveryReason_result._Fields>, java.io.Serializable, Cloneable   {
32773
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNonDeliveryReason_result");
1629 ankur.sing 32774
 
3430 rajveer 32775
    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 32776
 
3430 rajveer 32777
    private TransactionServiceException ex; // required
1629 ankur.sing 32778
 
32779
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32780
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 32781
      EX((short)1, "ex");
1629 ankur.sing 32782
 
32783
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32784
 
32785
      static {
32786
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32787
          byName.put(field.getFieldName(), field);
32788
        }
32789
      }
32790
 
32791
      /**
32792
       * Find the _Fields constant that matches fieldId, or null if its not found.
32793
       */
32794
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32795
        switch(fieldId) {
32796
          case 1: // EX
32797
            return EX;
32798
          default:
32799
            return null;
32800
        }
1629 ankur.sing 32801
      }
32802
 
32803
      /**
32804
       * Find the _Fields constant that matches fieldId, throwing an exception
32805
       * if it is not found.
32806
       */
32807
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32808
        _Fields fields = findByThriftId(fieldId);
32809
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32810
        return fields;
32811
      }
32812
 
32813
      /**
32814
       * Find the _Fields constant that matches name, or null if its not found.
32815
       */
32816
      public static _Fields findByName(String name) {
32817
        return byName.get(name);
32818
      }
32819
 
32820
      private final short _thriftId;
32821
      private final String _fieldName;
32822
 
32823
      _Fields(short thriftId, String fieldName) {
32824
        _thriftId = thriftId;
32825
        _fieldName = fieldName;
32826
      }
32827
 
32828
      public short getThriftFieldId() {
32829
        return _thriftId;
32830
      }
32831
 
32832
      public String getFieldName() {
32833
        return _fieldName;
32834
      }
32835
    }
32836
 
32837
    // isset id assignments
32838
 
3430 rajveer 32839
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 32840
    static {
3430 rajveer 32841
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32842
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32843
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32844
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32845
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_result.class, metaDataMap);
1629 ankur.sing 32846
    }
32847
 
3061 chandransh 32848
    public updateNonDeliveryReason_result() {
1629 ankur.sing 32849
    }
32850
 
3061 chandransh 32851
    public updateNonDeliveryReason_result(
32852
      TransactionServiceException ex)
1629 ankur.sing 32853
    {
32854
      this();
3061 chandransh 32855
      this.ex = ex;
1629 ankur.sing 32856
    }
32857
 
32858
    /**
32859
     * Performs a deep copy on <i>other</i>.
32860
     */
3061 chandransh 32861
    public updateNonDeliveryReason_result(updateNonDeliveryReason_result other) {
32862
      if (other.isSetEx()) {
32863
        this.ex = new TransactionServiceException(other.ex);
1629 ankur.sing 32864
      }
32865
    }
32866
 
3061 chandransh 32867
    public updateNonDeliveryReason_result deepCopy() {
32868
      return new updateNonDeliveryReason_result(this);
1629 ankur.sing 32869
    }
32870
 
3430 rajveer 32871
    @Override
32872
    public void clear() {
32873
      this.ex = null;
1629 ankur.sing 32874
    }
32875
 
3061 chandransh 32876
    public TransactionServiceException getEx() {
32877
      return this.ex;
1629 ankur.sing 32878
    }
32879
 
3430 rajveer 32880
    public void setEx(TransactionServiceException ex) {
3061 chandransh 32881
      this.ex = ex;
1629 ankur.sing 32882
    }
32883
 
3061 chandransh 32884
    public void unsetEx() {
32885
      this.ex = null;
1629 ankur.sing 32886
    }
32887
 
3430 rajveer 32888
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
3061 chandransh 32889
    public boolean isSetEx() {
32890
      return this.ex != null;
1629 ankur.sing 32891
    }
32892
 
3061 chandransh 32893
    public void setExIsSet(boolean value) {
1731 ankur.sing 32894
      if (!value) {
3061 chandransh 32895
        this.ex = null;
1731 ankur.sing 32896
      }
1629 ankur.sing 32897
    }
32898
 
32899
    public void setFieldValue(_Fields field, Object value) {
32900
      switch (field) {
3061 chandransh 32901
      case EX:
1629 ankur.sing 32902
        if (value == null) {
3061 chandransh 32903
          unsetEx();
1629 ankur.sing 32904
        } else {
3061 chandransh 32905
          setEx((TransactionServiceException)value);
1629 ankur.sing 32906
        }
32907
        break;
32908
 
32909
      }
32910
    }
32911
 
32912
    public Object getFieldValue(_Fields field) {
32913
      switch (field) {
3061 chandransh 32914
      case EX:
32915
        return getEx();
1629 ankur.sing 32916
 
32917
      }
32918
      throw new IllegalStateException();
32919
    }
32920
 
3430 rajveer 32921
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32922
    public boolean isSet(_Fields field) {
32923
      if (field == null) {
32924
        throw new IllegalArgumentException();
32925
      }
1629 ankur.sing 32926
 
32927
      switch (field) {
3061 chandransh 32928
      case EX:
32929
        return isSetEx();
1629 ankur.sing 32930
      }
32931
      throw new IllegalStateException();
32932
    }
32933
 
32934
    @Override
32935
    public boolean equals(Object that) {
32936
      if (that == null)
32937
        return false;
3061 chandransh 32938
      if (that instanceof updateNonDeliveryReason_result)
32939
        return this.equals((updateNonDeliveryReason_result)that);
1629 ankur.sing 32940
      return false;
32941
    }
32942
 
3061 chandransh 32943
    public boolean equals(updateNonDeliveryReason_result that) {
1629 ankur.sing 32944
      if (that == null)
32945
        return false;
32946
 
3061 chandransh 32947
      boolean this_present_ex = true && this.isSetEx();
32948
      boolean that_present_ex = true && that.isSetEx();
32949
      if (this_present_ex || that_present_ex) {
32950
        if (!(this_present_ex && that_present_ex))
1629 ankur.sing 32951
          return false;
3061 chandransh 32952
        if (!this.ex.equals(that.ex))
1629 ankur.sing 32953
          return false;
32954
      }
32955
 
32956
      return true;
32957
    }
32958
 
32959
    @Override
32960
    public int hashCode() {
32961
      return 0;
32962
    }
32963
 
3061 chandransh 32964
    public int compareTo(updateNonDeliveryReason_result other) {
1629 ankur.sing 32965
      if (!getClass().equals(other.getClass())) {
32966
        return getClass().getName().compareTo(other.getClass().getName());
32967
      }
32968
 
32969
      int lastComparison = 0;
3061 chandransh 32970
      updateNonDeliveryReason_result typedOther = (updateNonDeliveryReason_result)other;
1629 ankur.sing 32971
 
3430 rajveer 32972
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
1629 ankur.sing 32973
      if (lastComparison != 0) {
32974
        return lastComparison;
32975
      }
3430 rajveer 32976
      if (isSetEx()) {
32977
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
32978
        if (lastComparison != 0) {
32979
          return lastComparison;
32980
        }
1629 ankur.sing 32981
      }
32982
      return 0;
32983
    }
32984
 
3430 rajveer 32985
    public _Fields fieldForId(int fieldId) {
32986
      return _Fields.findByThriftId(fieldId);
32987
    }
32988
 
32989
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32990
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 32991
      iprot.readStructBegin();
32992
      while (true)
32993
      {
32994
        field = iprot.readFieldBegin();
3430 rajveer 32995
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 32996
          break;
32997
        }
3430 rajveer 32998
        switch (field.id) {
32999
          case 1: // EX
33000
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33001
              this.ex = new TransactionServiceException();
33002
              this.ex.read(iprot);
33003
            } else { 
33004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33005
            }
33006
            break;
33007
          default:
33008
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 33009
        }
3430 rajveer 33010
        iprot.readFieldEnd();
1629 ankur.sing 33011
      }
33012
      iprot.readStructEnd();
33013
      validate();
33014
    }
33015
 
3430 rajveer 33016
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 33017
      oprot.writeStructBegin(STRUCT_DESC);
33018
 
3061 chandransh 33019
      if (this.isSetEx()) {
33020
        oprot.writeFieldBegin(EX_FIELD_DESC);
33021
        this.ex.write(oprot);
1629 ankur.sing 33022
        oprot.writeFieldEnd();
33023
      }
33024
      oprot.writeFieldStop();
33025
      oprot.writeStructEnd();
33026
    }
33027
 
33028
    @Override
33029
    public String toString() {
3061 chandransh 33030
      StringBuilder sb = new StringBuilder("updateNonDeliveryReason_result(");
1629 ankur.sing 33031
      boolean first = true;
33032
 
3061 chandransh 33033
      sb.append("ex:");
33034
      if (this.ex == null) {
1731 ankur.sing 33035
        sb.append("null");
33036
      } else {
3061 chandransh 33037
        sb.append(this.ex);
1731 ankur.sing 33038
      }
1629 ankur.sing 33039
      first = false;
33040
      sb.append(")");
33041
      return sb.toString();
33042
    }
33043
 
3430 rajveer 33044
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 33045
      // check for required fields
33046
    }
33047
 
3430 rajveer 33048
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33049
      try {
33050
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33051
      } catch (org.apache.thrift.TException te) {
33052
        throw new java.io.IOException(te);
33053
      }
33054
    }
33055
 
33056
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33057
      try {
33058
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33059
      } catch (org.apache.thrift.TException te) {
33060
        throw new java.io.IOException(te);
33061
      }
33062
    }
33063
 
1629 ankur.sing 33064
  }
33065
 
3430 rajveer 33066
  public static class getUndeliveredOrders_args implements org.apache.thrift.TBase<getUndeliveredOrders_args, getUndeliveredOrders_args._Fields>, java.io.Serializable, Cloneable   {
33067
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUndeliveredOrders_args");
1886 ankur.sing 33068
 
3430 rajveer 33069
    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);
33070
    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 33071
 
3430 rajveer 33072
    private long providerId; // required
33073
    private long warehouseId; // required
1886 ankur.sing 33074
 
33075
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33076
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 33077
      PROVIDER_ID((short)1, "providerId"),
33078
      WAREHOUSE_ID((short)2, "warehouseId");
1886 ankur.sing 33079
 
33080
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33081
 
33082
      static {
33083
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33084
          byName.put(field.getFieldName(), field);
33085
        }
33086
      }
33087
 
33088
      /**
33089
       * Find the _Fields constant that matches fieldId, or null if its not found.
33090
       */
33091
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33092
        switch(fieldId) {
33093
          case 1: // PROVIDER_ID
33094
            return PROVIDER_ID;
33095
          case 2: // WAREHOUSE_ID
33096
            return WAREHOUSE_ID;
33097
          default:
33098
            return null;
33099
        }
1886 ankur.sing 33100
      }
33101
 
33102
      /**
33103
       * Find the _Fields constant that matches fieldId, throwing an exception
33104
       * if it is not found.
33105
       */
33106
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33107
        _Fields fields = findByThriftId(fieldId);
33108
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33109
        return fields;
33110
      }
33111
 
33112
      /**
33113
       * Find the _Fields constant that matches name, or null if its not found.
33114
       */
33115
      public static _Fields findByName(String name) {
33116
        return byName.get(name);
33117
      }
33118
 
33119
      private final short _thriftId;
33120
      private final String _fieldName;
33121
 
33122
      _Fields(short thriftId, String fieldName) {
33123
        _thriftId = thriftId;
33124
        _fieldName = fieldName;
33125
      }
33126
 
33127
      public short getThriftFieldId() {
33128
        return _thriftId;
33129
      }
33130
 
33131
      public String getFieldName() {
33132
        return _fieldName;
33133
      }
33134
    }
33135
 
33136
    // isset id assignments
3061 chandransh 33137
    private static final int __PROVIDERID_ISSET_ID = 0;
33138
    private static final int __WAREHOUSEID_ISSET_ID = 1;
33139
    private BitSet __isset_bit_vector = new BitSet(2);
1886 ankur.sing 33140
 
3430 rajveer 33141
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1886 ankur.sing 33142
    static {
3430 rajveer 33143
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33144
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33145
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33146
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33147
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33148
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33149
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUndeliveredOrders_args.class, metaDataMap);
1886 ankur.sing 33150
    }
33151
 
3061 chandransh 33152
    public getUndeliveredOrders_args() {
1886 ankur.sing 33153
    }
33154
 
3061 chandransh 33155
    public getUndeliveredOrders_args(
33156
      long providerId,
33157
      long warehouseId)
1886 ankur.sing 33158
    {
33159
      this();
3061 chandransh 33160
      this.providerId = providerId;
33161
      setProviderIdIsSet(true);
33162
      this.warehouseId = warehouseId;
33163
      setWarehouseIdIsSet(true);
1886 ankur.sing 33164
    }
33165
 
33166
    /**
33167
     * Performs a deep copy on <i>other</i>.
33168
     */
3061 chandransh 33169
    public getUndeliveredOrders_args(getUndeliveredOrders_args other) {
1886 ankur.sing 33170
      __isset_bit_vector.clear();
33171
      __isset_bit_vector.or(other.__isset_bit_vector);
3061 chandransh 33172
      this.providerId = other.providerId;
33173
      this.warehouseId = other.warehouseId;
1886 ankur.sing 33174
    }
33175
 
3061 chandransh 33176
    public getUndeliveredOrders_args deepCopy() {
33177
      return new getUndeliveredOrders_args(this);
1886 ankur.sing 33178
    }
33179
 
3430 rajveer 33180
    @Override
33181
    public void clear() {
33182
      setProviderIdIsSet(false);
33183
      this.providerId = 0;
33184
      setWarehouseIdIsSet(false);
33185
      this.warehouseId = 0;
1886 ankur.sing 33186
    }
33187
 
3061 chandransh 33188
    public long getProviderId() {
33189
      return this.providerId;
1886 ankur.sing 33190
    }
33191
 
3430 rajveer 33192
    public void setProviderId(long providerId) {
3061 chandransh 33193
      this.providerId = providerId;
33194
      setProviderIdIsSet(true);
1886 ankur.sing 33195
    }
33196
 
3061 chandransh 33197
    public void unsetProviderId() {
33198
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1886 ankur.sing 33199
    }
33200
 
3430 rajveer 33201
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3061 chandransh 33202
    public boolean isSetProviderId() {
33203
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1886 ankur.sing 33204
    }
33205
 
3061 chandransh 33206
    public void setProviderIdIsSet(boolean value) {
33207
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
1886 ankur.sing 33208
    }
33209
 
3061 chandransh 33210
    public long getWarehouseId() {
33211
      return this.warehouseId;
33212
    }
33213
 
3430 rajveer 33214
    public void setWarehouseId(long warehouseId) {
3061 chandransh 33215
      this.warehouseId = warehouseId;
33216
      setWarehouseIdIsSet(true);
33217
    }
33218
 
33219
    public void unsetWarehouseId() {
33220
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
33221
    }
33222
 
3430 rajveer 33223
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
3061 chandransh 33224
    public boolean isSetWarehouseId() {
33225
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
33226
    }
33227
 
33228
    public void setWarehouseIdIsSet(boolean value) {
33229
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
33230
    }
33231
 
1886 ankur.sing 33232
    public void setFieldValue(_Fields field, Object value) {
33233
      switch (field) {
3061 chandransh 33234
      case PROVIDER_ID:
1886 ankur.sing 33235
        if (value == null) {
3061 chandransh 33236
          unsetProviderId();
1886 ankur.sing 33237
        } else {
3061 chandransh 33238
          setProviderId((Long)value);
1886 ankur.sing 33239
        }
33240
        break;
33241
 
3061 chandransh 33242
      case WAREHOUSE_ID:
33243
        if (value == null) {
33244
          unsetWarehouseId();
33245
        } else {
33246
          setWarehouseId((Long)value);
33247
        }
33248
        break;
33249
 
1886 ankur.sing 33250
      }
33251
    }
33252
 
33253
    public Object getFieldValue(_Fields field) {
33254
      switch (field) {
3061 chandransh 33255
      case PROVIDER_ID:
3430 rajveer 33256
        return Long.valueOf(getProviderId());
1886 ankur.sing 33257
 
3061 chandransh 33258
      case WAREHOUSE_ID:
3430 rajveer 33259
        return Long.valueOf(getWarehouseId());
3061 chandransh 33260
 
1886 ankur.sing 33261
      }
33262
      throw new IllegalStateException();
33263
    }
33264
 
3430 rajveer 33265
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33266
    public boolean isSet(_Fields field) {
33267
      if (field == null) {
33268
        throw new IllegalArgumentException();
33269
      }
1886 ankur.sing 33270
 
33271
      switch (field) {
3061 chandransh 33272
      case PROVIDER_ID:
33273
        return isSetProviderId();
33274
      case WAREHOUSE_ID:
33275
        return isSetWarehouseId();
1886 ankur.sing 33276
      }
33277
      throw new IllegalStateException();
33278
    }
33279
 
33280
    @Override
33281
    public boolean equals(Object that) {
33282
      if (that == null)
33283
        return false;
3061 chandransh 33284
      if (that instanceof getUndeliveredOrders_args)
33285
        return this.equals((getUndeliveredOrders_args)that);
1886 ankur.sing 33286
      return false;
33287
    }
33288
 
3061 chandransh 33289
    public boolean equals(getUndeliveredOrders_args that) {
1886 ankur.sing 33290
      if (that == null)
33291
        return false;
33292
 
3061 chandransh 33293
      boolean this_present_providerId = true;
33294
      boolean that_present_providerId = true;
33295
      if (this_present_providerId || that_present_providerId) {
33296
        if (!(this_present_providerId && that_present_providerId))
1886 ankur.sing 33297
          return false;
3061 chandransh 33298
        if (this.providerId != that.providerId)
1886 ankur.sing 33299
          return false;
33300
      }
33301
 
3061 chandransh 33302
      boolean this_present_warehouseId = true;
33303
      boolean that_present_warehouseId = true;
33304
      if (this_present_warehouseId || that_present_warehouseId) {
33305
        if (!(this_present_warehouseId && that_present_warehouseId))
33306
          return false;
33307
        if (this.warehouseId != that.warehouseId)
33308
          return false;
33309
      }
33310
 
1886 ankur.sing 33311
      return true;
33312
    }
33313
 
33314
    @Override
33315
    public int hashCode() {
33316
      return 0;
33317
    }
33318
 
3061 chandransh 33319
    public int compareTo(getUndeliveredOrders_args other) {
1886 ankur.sing 33320
      if (!getClass().equals(other.getClass())) {
33321
        return getClass().getName().compareTo(other.getClass().getName());
33322
      }
33323
 
33324
      int lastComparison = 0;
3061 chandransh 33325
      getUndeliveredOrders_args typedOther = (getUndeliveredOrders_args)other;
1886 ankur.sing 33326
 
3430 rajveer 33327
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1886 ankur.sing 33328
      if (lastComparison != 0) {
33329
        return lastComparison;
33330
      }
3430 rajveer 33331
      if (isSetProviderId()) {
33332
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
33333
        if (lastComparison != 0) {
33334
          return lastComparison;
33335
        }
1886 ankur.sing 33336
      }
3430 rajveer 33337
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
3061 chandransh 33338
      if (lastComparison != 0) {
33339
        return lastComparison;
33340
      }
3430 rajveer 33341
      if (isSetWarehouseId()) {
33342
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
33343
        if (lastComparison != 0) {
33344
          return lastComparison;
33345
        }
3061 chandransh 33346
      }
1886 ankur.sing 33347
      return 0;
33348
    }
33349
 
3430 rajveer 33350
    public _Fields fieldForId(int fieldId) {
33351
      return _Fields.findByThriftId(fieldId);
33352
    }
33353
 
33354
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33355
      org.apache.thrift.protocol.TField field;
1886 ankur.sing 33356
      iprot.readStructBegin();
33357
      while (true)
33358
      {
33359
        field = iprot.readFieldBegin();
3430 rajveer 33360
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1886 ankur.sing 33361
          break;
33362
        }
3430 rajveer 33363
        switch (field.id) {
33364
          case 1: // PROVIDER_ID
33365
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33366
              this.providerId = iprot.readI64();
33367
              setProviderIdIsSet(true);
33368
            } else { 
33369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33370
            }
33371
            break;
33372
          case 2: // WAREHOUSE_ID
33373
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33374
              this.warehouseId = iprot.readI64();
33375
              setWarehouseIdIsSet(true);
33376
            } else { 
33377
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33378
            }
33379
            break;
33380
          default:
33381
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1886 ankur.sing 33382
        }
3430 rajveer 33383
        iprot.readFieldEnd();
1886 ankur.sing 33384
      }
33385
      iprot.readStructEnd();
33386
      validate();
33387
    }
33388
 
3430 rajveer 33389
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1886 ankur.sing 33390
      validate();
33391
 
33392
      oprot.writeStructBegin(STRUCT_DESC);
3061 chandransh 33393
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
33394
      oprot.writeI64(this.providerId);
1886 ankur.sing 33395
      oprot.writeFieldEnd();
3061 chandransh 33396
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
33397
      oprot.writeI64(this.warehouseId);
33398
      oprot.writeFieldEnd();
1886 ankur.sing 33399
      oprot.writeFieldStop();
33400
      oprot.writeStructEnd();
33401
    }
33402
 
33403
    @Override
33404
    public String toString() {
3061 chandransh 33405
      StringBuilder sb = new StringBuilder("getUndeliveredOrders_args(");
1886 ankur.sing 33406
      boolean first = true;
33407
 
3061 chandransh 33408
      sb.append("providerId:");
33409
      sb.append(this.providerId);
1886 ankur.sing 33410
      first = false;
3061 chandransh 33411
      if (!first) sb.append(", ");
33412
      sb.append("warehouseId:");
33413
      sb.append(this.warehouseId);
33414
      first = false;
1886 ankur.sing 33415
      sb.append(")");
33416
      return sb.toString();
33417
    }
33418
 
3430 rajveer 33419
    public void validate() throws org.apache.thrift.TException {
1886 ankur.sing 33420
      // check for required fields
33421
    }
33422
 
3430 rajveer 33423
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33424
      try {
33425
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33426
      } catch (org.apache.thrift.TException te) {
33427
        throw new java.io.IOException(te);
33428
      }
33429
    }
33430
 
33431
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33432
      try {
33433
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33434
      } catch (org.apache.thrift.TException te) {
33435
        throw new java.io.IOException(te);
33436
      }
33437
    }
33438
 
1886 ankur.sing 33439
  }
33440
 
3430 rajveer 33441
  public static class getUndeliveredOrders_result implements org.apache.thrift.TBase<getUndeliveredOrders_result, getUndeliveredOrders_result._Fields>, java.io.Serializable, Cloneable   {
33442
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUndeliveredOrders_result");
1886 ankur.sing 33443
 
3430 rajveer 33444
    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 33445
 
3430 rajveer 33446
    private List<Order> success; // required
1886 ankur.sing 33447
 
33448
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33449
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1886 ankur.sing 33450
      SUCCESS((short)0, "success");
33451
 
33452
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33453
 
33454
      static {
33455
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33456
          byName.put(field.getFieldName(), field);
33457
        }
33458
      }
33459
 
33460
      /**
33461
       * Find the _Fields constant that matches fieldId, or null if its not found.
33462
       */
33463
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33464
        switch(fieldId) {
33465
          case 0: // SUCCESS
33466
            return SUCCESS;
33467
          default:
33468
            return null;
33469
        }
1886 ankur.sing 33470
      }
33471
 
33472
      /**
33473
       * Find the _Fields constant that matches fieldId, throwing an exception
33474
       * if it is not found.
33475
       */
33476
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33477
        _Fields fields = findByThriftId(fieldId);
33478
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33479
        return fields;
33480
      }
33481
 
33482
      /**
33483
       * Find the _Fields constant that matches name, or null if its not found.
33484
       */
33485
      public static _Fields findByName(String name) {
33486
        return byName.get(name);
33487
      }
33488
 
33489
      private final short _thriftId;
33490
      private final String _fieldName;
33491
 
33492
      _Fields(short thriftId, String fieldName) {
33493
        _thriftId = thriftId;
33494
        _fieldName = fieldName;
33495
      }
33496
 
33497
      public short getThriftFieldId() {
33498
        return _thriftId;
33499
      }
33500
 
33501
      public String getFieldName() {
33502
        return _fieldName;
33503
      }
33504
    }
33505
 
33506
    // isset id assignments
33507
 
3430 rajveer 33508
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1886 ankur.sing 33509
    static {
3430 rajveer 33510
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33511
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33512
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33513
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
33514
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33515
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUndeliveredOrders_result.class, metaDataMap);
1886 ankur.sing 33516
    }
33517
 
3061 chandransh 33518
    public getUndeliveredOrders_result() {
1886 ankur.sing 33519
    }
33520
 
3061 chandransh 33521
    public getUndeliveredOrders_result(
1886 ankur.sing 33522
      List<Order> success)
33523
    {
33524
      this();
33525
      this.success = success;
33526
    }
33527
 
33528
    /**
33529
     * Performs a deep copy on <i>other</i>.
33530
     */
3061 chandransh 33531
    public getUndeliveredOrders_result(getUndeliveredOrders_result other) {
1886 ankur.sing 33532
      if (other.isSetSuccess()) {
33533
        List<Order> __this__success = new ArrayList<Order>();
33534
        for (Order other_element : other.success) {
33535
          __this__success.add(new Order(other_element));
33536
        }
33537
        this.success = __this__success;
33538
      }
33539
    }
33540
 
3061 chandransh 33541
    public getUndeliveredOrders_result deepCopy() {
33542
      return new getUndeliveredOrders_result(this);
1886 ankur.sing 33543
    }
33544
 
3430 rajveer 33545
    @Override
33546
    public void clear() {
33547
      this.success = null;
1886 ankur.sing 33548
    }
33549
 
33550
    public int getSuccessSize() {
33551
      return (this.success == null) ? 0 : this.success.size();
33552
    }
33553
 
33554
    public java.util.Iterator<Order> getSuccessIterator() {
33555
      return (this.success == null) ? null : this.success.iterator();
33556
    }
33557
 
33558
    public void addToSuccess(Order elem) {
33559
      if (this.success == null) {
33560
        this.success = new ArrayList<Order>();
33561
      }
33562
      this.success.add(elem);
33563
    }
33564
 
33565
    public List<Order> getSuccess() {
33566
      return this.success;
33567
    }
33568
 
3430 rajveer 33569
    public void setSuccess(List<Order> success) {
1886 ankur.sing 33570
      this.success = success;
33571
    }
33572
 
33573
    public void unsetSuccess() {
33574
      this.success = null;
33575
    }
33576
 
3430 rajveer 33577
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1886 ankur.sing 33578
    public boolean isSetSuccess() {
33579
      return this.success != null;
33580
    }
33581
 
33582
    public void setSuccessIsSet(boolean value) {
33583
      if (!value) {
33584
        this.success = null;
33585
      }
33586
    }
33587
 
33588
    public void setFieldValue(_Fields field, Object value) {
33589
      switch (field) {
33590
      case SUCCESS:
33591
        if (value == null) {
33592
          unsetSuccess();
33593
        } else {
33594
          setSuccess((List<Order>)value);
33595
        }
33596
        break;
33597
 
33598
      }
33599
    }
33600
 
33601
    public Object getFieldValue(_Fields field) {
33602
      switch (field) {
33603
      case SUCCESS:
33604
        return getSuccess();
33605
 
33606
      }
33607
      throw new IllegalStateException();
33608
    }
33609
 
3430 rajveer 33610
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33611
    public boolean isSet(_Fields field) {
33612
      if (field == null) {
33613
        throw new IllegalArgumentException();
33614
      }
1886 ankur.sing 33615
 
33616
      switch (field) {
33617
      case SUCCESS:
33618
        return isSetSuccess();
33619
      }
33620
      throw new IllegalStateException();
33621
    }
33622
 
33623
    @Override
33624
    public boolean equals(Object that) {
33625
      if (that == null)
33626
        return false;
3061 chandransh 33627
      if (that instanceof getUndeliveredOrders_result)
33628
        return this.equals((getUndeliveredOrders_result)that);
1886 ankur.sing 33629
      return false;
33630
    }
33631
 
3061 chandransh 33632
    public boolean equals(getUndeliveredOrders_result that) {
1886 ankur.sing 33633
      if (that == null)
33634
        return false;
33635
 
33636
      boolean this_present_success = true && this.isSetSuccess();
33637
      boolean that_present_success = true && that.isSetSuccess();
33638
      if (this_present_success || that_present_success) {
33639
        if (!(this_present_success && that_present_success))
33640
          return false;
33641
        if (!this.success.equals(that.success))
33642
          return false;
33643
      }
33644
 
33645
      return true;
33646
    }
33647
 
33648
    @Override
33649
    public int hashCode() {
33650
      return 0;
33651
    }
33652
 
3061 chandransh 33653
    public int compareTo(getUndeliveredOrders_result other) {
1886 ankur.sing 33654
      if (!getClass().equals(other.getClass())) {
33655
        return getClass().getName().compareTo(other.getClass().getName());
33656
      }
33657
 
33658
      int lastComparison = 0;
3061 chandransh 33659
      getUndeliveredOrders_result typedOther = (getUndeliveredOrders_result)other;
1886 ankur.sing 33660
 
3430 rajveer 33661
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1886 ankur.sing 33662
      if (lastComparison != 0) {
33663
        return lastComparison;
33664
      }
3430 rajveer 33665
      if (isSetSuccess()) {
33666
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33667
        if (lastComparison != 0) {
33668
          return lastComparison;
33669
        }
1886 ankur.sing 33670
      }
33671
      return 0;
33672
    }
33673
 
3430 rajveer 33674
    public _Fields fieldForId(int fieldId) {
33675
      return _Fields.findByThriftId(fieldId);
33676
    }
33677
 
33678
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33679
      org.apache.thrift.protocol.TField field;
1886 ankur.sing 33680
      iprot.readStructBegin();
33681
      while (true)
33682
      {
33683
        field = iprot.readFieldBegin();
3430 rajveer 33684
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1886 ankur.sing 33685
          break;
33686
        }
3430 rajveer 33687
        switch (field.id) {
33688
          case 0: // SUCCESS
33689
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33690
              {
33691
                org.apache.thrift.protocol.TList _list92 = iprot.readListBegin();
33692
                this.success = new ArrayList<Order>(_list92.size);
33693
                for (int _i93 = 0; _i93 < _list92.size; ++_i93)
1886 ankur.sing 33694
                {
3430 rajveer 33695
                  Order _elem94; // required
33696
                  _elem94 = new Order();
33697
                  _elem94.read(iprot);
33698
                  this.success.add(_elem94);
1886 ankur.sing 33699
                }
3430 rajveer 33700
                iprot.readListEnd();
1886 ankur.sing 33701
              }
3430 rajveer 33702
            } else { 
33703
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33704
            }
33705
            break;
33706
          default:
33707
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1886 ankur.sing 33708
        }
3430 rajveer 33709
        iprot.readFieldEnd();
1886 ankur.sing 33710
      }
33711
      iprot.readStructEnd();
33712
      validate();
33713
    }
33714
 
3430 rajveer 33715
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1886 ankur.sing 33716
      oprot.writeStructBegin(STRUCT_DESC);
33717
 
33718
      if (this.isSetSuccess()) {
33719
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33720
        {
3430 rajveer 33721
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3427 chandransh 33722
          for (Order _iter95 : this.success)
1886 ankur.sing 33723
          {
3427 chandransh 33724
            _iter95.write(oprot);
1886 ankur.sing 33725
          }
33726
          oprot.writeListEnd();
33727
        }
33728
        oprot.writeFieldEnd();
33729
      }
33730
      oprot.writeFieldStop();
33731
      oprot.writeStructEnd();
33732
    }
33733
 
33734
    @Override
33735
    public String toString() {
3061 chandransh 33736
      StringBuilder sb = new StringBuilder("getUndeliveredOrders_result(");
1886 ankur.sing 33737
      boolean first = true;
33738
 
33739
      sb.append("success:");
33740
      if (this.success == null) {
33741
        sb.append("null");
33742
      } else {
33743
        sb.append(this.success);
33744
      }
33745
      first = false;
33746
      sb.append(")");
33747
      return sb.toString();
33748
    }
33749
 
3430 rajveer 33750
    public void validate() throws org.apache.thrift.TException {
1886 ankur.sing 33751
      // check for required fields
33752
    }
33753
 
3430 rajveer 33754
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33755
      try {
33756
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33757
      } catch (org.apache.thrift.TException te) {
33758
        throw new java.io.IOException(te);
33759
      }
33760
    }
33761
 
33762
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33763
      try {
33764
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33765
      } catch (org.apache.thrift.TException te) {
33766
        throw new java.io.IOException(te);
33767
      }
33768
    }
33769
 
1886 ankur.sing 33770
  }
33771
 
3430 rajveer 33772
  public static class toggleDOAFlag_args implements org.apache.thrift.TBase<toggleDOAFlag_args, toggleDOAFlag_args._Fields>, java.io.Serializable, Cloneable   {
33773
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("toggleDOAFlag_args");
2538 chandransh 33774
 
3430 rajveer 33775
    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 33776
 
3430 rajveer 33777
    private long orderId; // required
2538 chandransh 33778
 
33779
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33780
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 33781
      ORDER_ID((short)1, "orderId");
33782
 
33783
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33784
 
33785
      static {
33786
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33787
          byName.put(field.getFieldName(), field);
33788
        }
33789
      }
33790
 
33791
      /**
33792
       * Find the _Fields constant that matches fieldId, or null if its not found.
33793
       */
33794
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33795
        switch(fieldId) {
33796
          case 1: // ORDER_ID
33797
            return ORDER_ID;
33798
          default:
33799
            return null;
33800
        }
2538 chandransh 33801
      }
33802
 
33803
      /**
33804
       * Find the _Fields constant that matches fieldId, throwing an exception
33805
       * if it is not found.
33806
       */
33807
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33808
        _Fields fields = findByThriftId(fieldId);
33809
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33810
        return fields;
33811
      }
33812
 
33813
      /**
33814
       * Find the _Fields constant that matches name, or null if its not found.
33815
       */
33816
      public static _Fields findByName(String name) {
33817
        return byName.get(name);
33818
      }
33819
 
33820
      private final short _thriftId;
33821
      private final String _fieldName;
33822
 
33823
      _Fields(short thriftId, String fieldName) {
33824
        _thriftId = thriftId;
33825
        _fieldName = fieldName;
33826
      }
33827
 
33828
      public short getThriftFieldId() {
33829
        return _thriftId;
33830
      }
33831
 
33832
      public String getFieldName() {
33833
        return _fieldName;
33834
      }
33835
    }
33836
 
33837
    // isset id assignments
33838
    private static final int __ORDERID_ISSET_ID = 0;
33839
    private BitSet __isset_bit_vector = new BitSet(1);
33840
 
3430 rajveer 33841
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 33842
    static {
3430 rajveer 33843
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33844
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33845
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33846
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33847
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(toggleDOAFlag_args.class, metaDataMap);
2538 chandransh 33848
    }
33849
 
33850
    public toggleDOAFlag_args() {
33851
    }
33852
 
33853
    public toggleDOAFlag_args(
33854
      long orderId)
33855
    {
33856
      this();
33857
      this.orderId = orderId;
33858
      setOrderIdIsSet(true);
33859
    }
33860
 
33861
    /**
33862
     * Performs a deep copy on <i>other</i>.
33863
     */
33864
    public toggleDOAFlag_args(toggleDOAFlag_args other) {
33865
      __isset_bit_vector.clear();
33866
      __isset_bit_vector.or(other.__isset_bit_vector);
33867
      this.orderId = other.orderId;
33868
    }
33869
 
33870
    public toggleDOAFlag_args deepCopy() {
33871
      return new toggleDOAFlag_args(this);
33872
    }
33873
 
3430 rajveer 33874
    @Override
33875
    public void clear() {
33876
      setOrderIdIsSet(false);
33877
      this.orderId = 0;
2538 chandransh 33878
    }
33879
 
33880
    public long getOrderId() {
33881
      return this.orderId;
33882
    }
33883
 
3430 rajveer 33884
    public void setOrderId(long orderId) {
2538 chandransh 33885
      this.orderId = orderId;
33886
      setOrderIdIsSet(true);
33887
    }
33888
 
33889
    public void unsetOrderId() {
33890
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
33891
    }
33892
 
3430 rajveer 33893
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2538 chandransh 33894
    public boolean isSetOrderId() {
33895
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
33896
    }
33897
 
33898
    public void setOrderIdIsSet(boolean value) {
33899
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
33900
    }
33901
 
33902
    public void setFieldValue(_Fields field, Object value) {
33903
      switch (field) {
33904
      case ORDER_ID:
33905
        if (value == null) {
33906
          unsetOrderId();
33907
        } else {
33908
          setOrderId((Long)value);
33909
        }
33910
        break;
33911
 
33912
      }
33913
    }
33914
 
33915
    public Object getFieldValue(_Fields field) {
33916
      switch (field) {
33917
      case ORDER_ID:
3430 rajveer 33918
        return Long.valueOf(getOrderId());
2538 chandransh 33919
 
33920
      }
33921
      throw new IllegalStateException();
33922
    }
33923
 
3430 rajveer 33924
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33925
    public boolean isSet(_Fields field) {
33926
      if (field == null) {
33927
        throw new IllegalArgumentException();
33928
      }
2538 chandransh 33929
 
33930
      switch (field) {
33931
      case ORDER_ID:
33932
        return isSetOrderId();
33933
      }
33934
      throw new IllegalStateException();
33935
    }
33936
 
33937
    @Override
33938
    public boolean equals(Object that) {
33939
      if (that == null)
33940
        return false;
33941
      if (that instanceof toggleDOAFlag_args)
33942
        return this.equals((toggleDOAFlag_args)that);
33943
      return false;
33944
    }
33945
 
33946
    public boolean equals(toggleDOAFlag_args that) {
33947
      if (that == null)
33948
        return false;
33949
 
33950
      boolean this_present_orderId = true;
33951
      boolean that_present_orderId = true;
33952
      if (this_present_orderId || that_present_orderId) {
33953
        if (!(this_present_orderId && that_present_orderId))
33954
          return false;
33955
        if (this.orderId != that.orderId)
33956
          return false;
33957
      }
33958
 
33959
      return true;
33960
    }
33961
 
33962
    @Override
33963
    public int hashCode() {
33964
      return 0;
33965
    }
33966
 
33967
    public int compareTo(toggleDOAFlag_args other) {
33968
      if (!getClass().equals(other.getClass())) {
33969
        return getClass().getName().compareTo(other.getClass().getName());
33970
      }
33971
 
33972
      int lastComparison = 0;
33973
      toggleDOAFlag_args typedOther = (toggleDOAFlag_args)other;
33974
 
3430 rajveer 33975
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2538 chandransh 33976
      if (lastComparison != 0) {
33977
        return lastComparison;
33978
      }
3430 rajveer 33979
      if (isSetOrderId()) {
33980
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
33981
        if (lastComparison != 0) {
33982
          return lastComparison;
33983
        }
2538 chandransh 33984
      }
33985
      return 0;
33986
    }
33987
 
3430 rajveer 33988
    public _Fields fieldForId(int fieldId) {
33989
      return _Fields.findByThriftId(fieldId);
33990
    }
33991
 
33992
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33993
      org.apache.thrift.protocol.TField field;
2538 chandransh 33994
      iprot.readStructBegin();
33995
      while (true)
33996
      {
33997
        field = iprot.readFieldBegin();
3430 rajveer 33998
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 33999
          break;
34000
        }
3430 rajveer 34001
        switch (field.id) {
34002
          case 1: // ORDER_ID
34003
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34004
              this.orderId = iprot.readI64();
34005
              setOrderIdIsSet(true);
34006
            } else { 
34007
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34008
            }
34009
            break;
34010
          default:
34011
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 34012
        }
3430 rajveer 34013
        iprot.readFieldEnd();
2538 chandransh 34014
      }
34015
      iprot.readStructEnd();
34016
      validate();
34017
    }
34018
 
3430 rajveer 34019
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 34020
      validate();
34021
 
34022
      oprot.writeStructBegin(STRUCT_DESC);
34023
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
34024
      oprot.writeI64(this.orderId);
34025
      oprot.writeFieldEnd();
34026
      oprot.writeFieldStop();
34027
      oprot.writeStructEnd();
34028
    }
34029
 
34030
    @Override
34031
    public String toString() {
34032
      StringBuilder sb = new StringBuilder("toggleDOAFlag_args(");
34033
      boolean first = true;
34034
 
34035
      sb.append("orderId:");
34036
      sb.append(this.orderId);
34037
      first = false;
34038
      sb.append(")");
34039
      return sb.toString();
34040
    }
34041
 
3430 rajveer 34042
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 34043
      // check for required fields
34044
    }
34045
 
3430 rajveer 34046
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34047
      try {
34048
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34049
      } catch (org.apache.thrift.TException te) {
34050
        throw new java.io.IOException(te);
34051
      }
34052
    }
34053
 
34054
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34055
      try {
34056
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34057
      } catch (org.apache.thrift.TException te) {
34058
        throw new java.io.IOException(te);
34059
      }
34060
    }
34061
 
2538 chandransh 34062
  }
34063
 
3430 rajveer 34064
  public static class toggleDOAFlag_result implements org.apache.thrift.TBase<toggleDOAFlag_result, toggleDOAFlag_result._Fields>, java.io.Serializable, Cloneable   {
34065
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("toggleDOAFlag_result");
2538 chandransh 34066
 
3430 rajveer 34067
    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);
34068
    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 34069
 
3430 rajveer 34070
    private boolean success; // required
34071
    private TransactionServiceException ex; // required
2538 chandransh 34072
 
34073
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34074
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 34075
      SUCCESS((short)0, "success"),
34076
      EX((short)1, "ex");
34077
 
34078
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34079
 
34080
      static {
34081
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34082
          byName.put(field.getFieldName(), field);
34083
        }
34084
      }
34085
 
34086
      /**
34087
       * Find the _Fields constant that matches fieldId, or null if its not found.
34088
       */
34089
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34090
        switch(fieldId) {
34091
          case 0: // SUCCESS
34092
            return SUCCESS;
34093
          case 1: // EX
34094
            return EX;
34095
          default:
34096
            return null;
34097
        }
2538 chandransh 34098
      }
34099
 
34100
      /**
34101
       * Find the _Fields constant that matches fieldId, throwing an exception
34102
       * if it is not found.
34103
       */
34104
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34105
        _Fields fields = findByThriftId(fieldId);
34106
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34107
        return fields;
34108
      }
34109
 
34110
      /**
34111
       * Find the _Fields constant that matches name, or null if its not found.
34112
       */
34113
      public static _Fields findByName(String name) {
34114
        return byName.get(name);
34115
      }
34116
 
34117
      private final short _thriftId;
34118
      private final String _fieldName;
34119
 
34120
      _Fields(short thriftId, String fieldName) {
34121
        _thriftId = thriftId;
34122
        _fieldName = fieldName;
34123
      }
34124
 
34125
      public short getThriftFieldId() {
34126
        return _thriftId;
34127
      }
34128
 
34129
      public String getFieldName() {
34130
        return _fieldName;
34131
      }
34132
    }
34133
 
34134
    // isset id assignments
34135
    private static final int __SUCCESS_ISSET_ID = 0;
34136
    private BitSet __isset_bit_vector = new BitSet(1);
34137
 
3430 rajveer 34138
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 34139
    static {
3430 rajveer 34140
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34141
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34142
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
34143
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34144
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34145
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34146
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(toggleDOAFlag_result.class, metaDataMap);
2538 chandransh 34147
    }
34148
 
34149
    public toggleDOAFlag_result() {
34150
    }
34151
 
34152
    public toggleDOAFlag_result(
34153
      boolean success,
34154
      TransactionServiceException ex)
34155
    {
34156
      this();
34157
      this.success = success;
34158
      setSuccessIsSet(true);
34159
      this.ex = ex;
34160
    }
34161
 
34162
    /**
34163
     * Performs a deep copy on <i>other</i>.
34164
     */
34165
    public toggleDOAFlag_result(toggleDOAFlag_result other) {
34166
      __isset_bit_vector.clear();
34167
      __isset_bit_vector.or(other.__isset_bit_vector);
34168
      this.success = other.success;
34169
      if (other.isSetEx()) {
34170
        this.ex = new TransactionServiceException(other.ex);
34171
      }
34172
    }
34173
 
34174
    public toggleDOAFlag_result deepCopy() {
34175
      return new toggleDOAFlag_result(this);
34176
    }
34177
 
3430 rajveer 34178
    @Override
34179
    public void clear() {
34180
      setSuccessIsSet(false);
34181
      this.success = false;
34182
      this.ex = null;
2538 chandransh 34183
    }
34184
 
34185
    public boolean isSuccess() {
34186
      return this.success;
34187
    }
34188
 
3430 rajveer 34189
    public void setSuccess(boolean success) {
2538 chandransh 34190
      this.success = success;
34191
      setSuccessIsSet(true);
34192
    }
34193
 
34194
    public void unsetSuccess() {
34195
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
34196
    }
34197
 
3430 rajveer 34198
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2538 chandransh 34199
    public boolean isSetSuccess() {
34200
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
34201
    }
34202
 
34203
    public void setSuccessIsSet(boolean value) {
34204
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
34205
    }
34206
 
34207
    public TransactionServiceException getEx() {
34208
      return this.ex;
34209
    }
34210
 
3430 rajveer 34211
    public void setEx(TransactionServiceException ex) {
2538 chandransh 34212
      this.ex = ex;
34213
    }
34214
 
34215
    public void unsetEx() {
34216
      this.ex = null;
34217
    }
34218
 
3430 rajveer 34219
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2538 chandransh 34220
    public boolean isSetEx() {
34221
      return this.ex != null;
34222
    }
34223
 
34224
    public void setExIsSet(boolean value) {
34225
      if (!value) {
34226
        this.ex = null;
34227
      }
34228
    }
34229
 
34230
    public void setFieldValue(_Fields field, Object value) {
34231
      switch (field) {
34232
      case SUCCESS:
34233
        if (value == null) {
34234
          unsetSuccess();
34235
        } else {
34236
          setSuccess((Boolean)value);
34237
        }
34238
        break;
34239
 
34240
      case EX:
34241
        if (value == null) {
34242
          unsetEx();
34243
        } else {
34244
          setEx((TransactionServiceException)value);
34245
        }
34246
        break;
34247
 
34248
      }
34249
    }
34250
 
34251
    public Object getFieldValue(_Fields field) {
34252
      switch (field) {
34253
      case SUCCESS:
3430 rajveer 34254
        return Boolean.valueOf(isSuccess());
2538 chandransh 34255
 
34256
      case EX:
34257
        return getEx();
34258
 
34259
      }
34260
      throw new IllegalStateException();
34261
    }
34262
 
3430 rajveer 34263
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34264
    public boolean isSet(_Fields field) {
34265
      if (field == null) {
34266
        throw new IllegalArgumentException();
34267
      }
2538 chandransh 34268
 
34269
      switch (field) {
34270
      case SUCCESS:
34271
        return isSetSuccess();
34272
      case EX:
34273
        return isSetEx();
34274
      }
34275
      throw new IllegalStateException();
34276
    }
34277
 
34278
    @Override
34279
    public boolean equals(Object that) {
34280
      if (that == null)
34281
        return false;
34282
      if (that instanceof toggleDOAFlag_result)
34283
        return this.equals((toggleDOAFlag_result)that);
34284
      return false;
34285
    }
34286
 
34287
    public boolean equals(toggleDOAFlag_result that) {
34288
      if (that == null)
34289
        return false;
34290
 
34291
      boolean this_present_success = true;
34292
      boolean that_present_success = true;
34293
      if (this_present_success || that_present_success) {
34294
        if (!(this_present_success && that_present_success))
34295
          return false;
34296
        if (this.success != that.success)
34297
          return false;
34298
      }
34299
 
34300
      boolean this_present_ex = true && this.isSetEx();
34301
      boolean that_present_ex = true && that.isSetEx();
34302
      if (this_present_ex || that_present_ex) {
34303
        if (!(this_present_ex && that_present_ex))
34304
          return false;
34305
        if (!this.ex.equals(that.ex))
34306
          return false;
34307
      }
34308
 
34309
      return true;
34310
    }
34311
 
34312
    @Override
34313
    public int hashCode() {
34314
      return 0;
34315
    }
34316
 
34317
    public int compareTo(toggleDOAFlag_result other) {
34318
      if (!getClass().equals(other.getClass())) {
34319
        return getClass().getName().compareTo(other.getClass().getName());
34320
      }
34321
 
34322
      int lastComparison = 0;
34323
      toggleDOAFlag_result typedOther = (toggleDOAFlag_result)other;
34324
 
3430 rajveer 34325
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2538 chandransh 34326
      if (lastComparison != 0) {
34327
        return lastComparison;
34328
      }
3430 rajveer 34329
      if (isSetSuccess()) {
34330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34331
        if (lastComparison != 0) {
34332
          return lastComparison;
34333
        }
2538 chandransh 34334
      }
3430 rajveer 34335
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2538 chandransh 34336
      if (lastComparison != 0) {
34337
        return lastComparison;
34338
      }
3430 rajveer 34339
      if (isSetEx()) {
34340
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
34341
        if (lastComparison != 0) {
34342
          return lastComparison;
34343
        }
2538 chandransh 34344
      }
34345
      return 0;
34346
    }
34347
 
3430 rajveer 34348
    public _Fields fieldForId(int fieldId) {
34349
      return _Fields.findByThriftId(fieldId);
34350
    }
34351
 
34352
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34353
      org.apache.thrift.protocol.TField field;
2538 chandransh 34354
      iprot.readStructBegin();
34355
      while (true)
34356
      {
34357
        field = iprot.readFieldBegin();
3430 rajveer 34358
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 34359
          break;
34360
        }
3430 rajveer 34361
        switch (field.id) {
34362
          case 0: // SUCCESS
34363
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
34364
              this.success = iprot.readBool();
34365
              setSuccessIsSet(true);
34366
            } else { 
34367
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34368
            }
34369
            break;
34370
          case 1: // EX
34371
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
34372
              this.ex = new TransactionServiceException();
34373
              this.ex.read(iprot);
34374
            } else { 
34375
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34376
            }
34377
            break;
34378
          default:
34379
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 34380
        }
3430 rajveer 34381
        iprot.readFieldEnd();
2538 chandransh 34382
      }
34383
      iprot.readStructEnd();
34384
      validate();
34385
    }
34386
 
3430 rajveer 34387
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 34388
      oprot.writeStructBegin(STRUCT_DESC);
34389
 
34390
      if (this.isSetSuccess()) {
34391
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34392
        oprot.writeBool(this.success);
34393
        oprot.writeFieldEnd();
34394
      } else if (this.isSetEx()) {
34395
        oprot.writeFieldBegin(EX_FIELD_DESC);
34396
        this.ex.write(oprot);
34397
        oprot.writeFieldEnd();
34398
      }
34399
      oprot.writeFieldStop();
34400
      oprot.writeStructEnd();
34401
    }
34402
 
34403
    @Override
34404
    public String toString() {
34405
      StringBuilder sb = new StringBuilder("toggleDOAFlag_result(");
34406
      boolean first = true;
34407
 
34408
      sb.append("success:");
34409
      sb.append(this.success);
34410
      first = false;
34411
      if (!first) sb.append(", ");
34412
      sb.append("ex:");
34413
      if (this.ex == null) {
34414
        sb.append("null");
34415
      } else {
34416
        sb.append(this.ex);
34417
      }
34418
      first = false;
34419
      sb.append(")");
34420
      return sb.toString();
34421
    }
34422
 
3430 rajveer 34423
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 34424
      // check for required fields
34425
    }
34426
 
3430 rajveer 34427
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34428
      try {
34429
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34430
      } catch (org.apache.thrift.TException te) {
34431
        throw new java.io.IOException(te);
34432
      }
34433
    }
34434
 
34435
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34436
      try {
34437
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34438
      } catch (org.apache.thrift.TException te) {
34439
        throw new java.io.IOException(te);
34440
      }
34441
    }
34442
 
2538 chandransh 34443
  }
34444
 
3430 rajveer 34445
  public static class requestPickupNumber_args implements org.apache.thrift.TBase<requestPickupNumber_args, requestPickupNumber_args._Fields>, java.io.Serializable, Cloneable   {
34446
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestPickupNumber_args");
2538 chandransh 34447
 
3430 rajveer 34448
    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 34449
 
3430 rajveer 34450
    private long orderId; // required
2538 chandransh 34451
 
34452
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34453
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 34454
      ORDER_ID((short)1, "orderId");
34455
 
34456
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34457
 
34458
      static {
34459
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34460
          byName.put(field.getFieldName(), field);
34461
        }
34462
      }
34463
 
34464
      /**
34465
       * Find the _Fields constant that matches fieldId, or null if its not found.
34466
       */
34467
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34468
        switch(fieldId) {
34469
          case 1: // ORDER_ID
34470
            return ORDER_ID;
34471
          default:
34472
            return null;
34473
        }
2538 chandransh 34474
      }
34475
 
34476
      /**
34477
       * Find the _Fields constant that matches fieldId, throwing an exception
34478
       * if it is not found.
34479
       */
34480
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34481
        _Fields fields = findByThriftId(fieldId);
34482
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34483
        return fields;
34484
      }
34485
 
34486
      /**
34487
       * Find the _Fields constant that matches name, or null if its not found.
34488
       */
34489
      public static _Fields findByName(String name) {
34490
        return byName.get(name);
34491
      }
34492
 
34493
      private final short _thriftId;
34494
      private final String _fieldName;
34495
 
34496
      _Fields(short thriftId, String fieldName) {
34497
        _thriftId = thriftId;
34498
        _fieldName = fieldName;
34499
      }
34500
 
34501
      public short getThriftFieldId() {
34502
        return _thriftId;
34503
      }
34504
 
34505
      public String getFieldName() {
34506
        return _fieldName;
34507
      }
34508
    }
34509
 
34510
    // isset id assignments
34511
    private static final int __ORDERID_ISSET_ID = 0;
34512
    private BitSet __isset_bit_vector = new BitSet(1);
34513
 
3430 rajveer 34514
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 34515
    static {
3430 rajveer 34516
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34517
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34518
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34519
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34520
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestPickupNumber_args.class, metaDataMap);
2538 chandransh 34521
    }
34522
 
34523
    public requestPickupNumber_args() {
34524
    }
34525
 
34526
    public requestPickupNumber_args(
34527
      long orderId)
34528
    {
34529
      this();
34530
      this.orderId = orderId;
34531
      setOrderIdIsSet(true);
34532
    }
34533
 
34534
    /**
34535
     * Performs a deep copy on <i>other</i>.
34536
     */
34537
    public requestPickupNumber_args(requestPickupNumber_args other) {
34538
      __isset_bit_vector.clear();
34539
      __isset_bit_vector.or(other.__isset_bit_vector);
34540
      this.orderId = other.orderId;
34541
    }
34542
 
34543
    public requestPickupNumber_args deepCopy() {
34544
      return new requestPickupNumber_args(this);
34545
    }
34546
 
3430 rajveer 34547
    @Override
34548
    public void clear() {
34549
      setOrderIdIsSet(false);
34550
      this.orderId = 0;
2538 chandransh 34551
    }
34552
 
34553
    public long getOrderId() {
34554
      return this.orderId;
34555
    }
34556
 
3430 rajveer 34557
    public void setOrderId(long orderId) {
2538 chandransh 34558
      this.orderId = orderId;
34559
      setOrderIdIsSet(true);
34560
    }
34561
 
34562
    public void unsetOrderId() {
34563
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
34564
    }
34565
 
3430 rajveer 34566
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2538 chandransh 34567
    public boolean isSetOrderId() {
34568
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
34569
    }
34570
 
34571
    public void setOrderIdIsSet(boolean value) {
34572
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
34573
    }
34574
 
34575
    public void setFieldValue(_Fields field, Object value) {
34576
      switch (field) {
34577
      case ORDER_ID:
34578
        if (value == null) {
34579
          unsetOrderId();
34580
        } else {
34581
          setOrderId((Long)value);
34582
        }
34583
        break;
34584
 
34585
      }
34586
    }
34587
 
34588
    public Object getFieldValue(_Fields field) {
34589
      switch (field) {
34590
      case ORDER_ID:
3430 rajveer 34591
        return Long.valueOf(getOrderId());
2538 chandransh 34592
 
34593
      }
34594
      throw new IllegalStateException();
34595
    }
34596
 
3430 rajveer 34597
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34598
    public boolean isSet(_Fields field) {
34599
      if (field == null) {
34600
        throw new IllegalArgumentException();
34601
      }
2538 chandransh 34602
 
34603
      switch (field) {
34604
      case ORDER_ID:
34605
        return isSetOrderId();
34606
      }
34607
      throw new IllegalStateException();
34608
    }
34609
 
34610
    @Override
34611
    public boolean equals(Object that) {
34612
      if (that == null)
34613
        return false;
34614
      if (that instanceof requestPickupNumber_args)
34615
        return this.equals((requestPickupNumber_args)that);
34616
      return false;
34617
    }
34618
 
34619
    public boolean equals(requestPickupNumber_args that) {
34620
      if (that == null)
34621
        return false;
34622
 
34623
      boolean this_present_orderId = true;
34624
      boolean that_present_orderId = true;
34625
      if (this_present_orderId || that_present_orderId) {
34626
        if (!(this_present_orderId && that_present_orderId))
34627
          return false;
34628
        if (this.orderId != that.orderId)
34629
          return false;
34630
      }
34631
 
34632
      return true;
34633
    }
34634
 
34635
    @Override
34636
    public int hashCode() {
34637
      return 0;
34638
    }
34639
 
34640
    public int compareTo(requestPickupNumber_args other) {
34641
      if (!getClass().equals(other.getClass())) {
34642
        return getClass().getName().compareTo(other.getClass().getName());
34643
      }
34644
 
34645
      int lastComparison = 0;
34646
      requestPickupNumber_args typedOther = (requestPickupNumber_args)other;
34647
 
3430 rajveer 34648
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2538 chandransh 34649
      if (lastComparison != 0) {
34650
        return lastComparison;
34651
      }
3430 rajveer 34652
      if (isSetOrderId()) {
34653
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
34654
        if (lastComparison != 0) {
34655
          return lastComparison;
34656
        }
2538 chandransh 34657
      }
34658
      return 0;
34659
    }
34660
 
3430 rajveer 34661
    public _Fields fieldForId(int fieldId) {
34662
      return _Fields.findByThriftId(fieldId);
34663
    }
34664
 
34665
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34666
      org.apache.thrift.protocol.TField field;
2538 chandransh 34667
      iprot.readStructBegin();
34668
      while (true)
34669
      {
34670
        field = iprot.readFieldBegin();
3430 rajveer 34671
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 34672
          break;
34673
        }
3430 rajveer 34674
        switch (field.id) {
34675
          case 1: // ORDER_ID
34676
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34677
              this.orderId = iprot.readI64();
34678
              setOrderIdIsSet(true);
34679
            } else { 
34680
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34681
            }
34682
            break;
34683
          default:
34684
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 34685
        }
3430 rajveer 34686
        iprot.readFieldEnd();
2538 chandransh 34687
      }
34688
      iprot.readStructEnd();
34689
      validate();
34690
    }
34691
 
3430 rajveer 34692
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 34693
      validate();
34694
 
34695
      oprot.writeStructBegin(STRUCT_DESC);
34696
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
34697
      oprot.writeI64(this.orderId);
34698
      oprot.writeFieldEnd();
34699
      oprot.writeFieldStop();
34700
      oprot.writeStructEnd();
34701
    }
34702
 
34703
    @Override
34704
    public String toString() {
34705
      StringBuilder sb = new StringBuilder("requestPickupNumber_args(");
34706
      boolean first = true;
34707
 
34708
      sb.append("orderId:");
34709
      sb.append(this.orderId);
34710
      first = false;
34711
      sb.append(")");
34712
      return sb.toString();
34713
    }
34714
 
3430 rajveer 34715
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 34716
      // check for required fields
34717
    }
34718
 
3430 rajveer 34719
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34720
      try {
34721
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34722
      } catch (org.apache.thrift.TException te) {
34723
        throw new java.io.IOException(te);
34724
      }
34725
    }
34726
 
34727
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34728
      try {
34729
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34730
      } catch (org.apache.thrift.TException te) {
34731
        throw new java.io.IOException(te);
34732
      }
34733
    }
34734
 
2538 chandransh 34735
  }
34736
 
3430 rajveer 34737
  public static class requestPickupNumber_result implements org.apache.thrift.TBase<requestPickupNumber_result, requestPickupNumber_result._Fields>, java.io.Serializable, Cloneable   {
34738
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestPickupNumber_result");
2538 chandransh 34739
 
3430 rajveer 34740
    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);
34741
    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 34742
 
3430 rajveer 34743
    private boolean success; // required
34744
    private TransactionServiceException ex; // required
2538 chandransh 34745
 
34746
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34747
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 34748
      SUCCESS((short)0, "success"),
34749
      EX((short)1, "ex");
34750
 
34751
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34752
 
34753
      static {
34754
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34755
          byName.put(field.getFieldName(), field);
34756
        }
34757
      }
34758
 
34759
      /**
34760
       * Find the _Fields constant that matches fieldId, or null if its not found.
34761
       */
34762
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34763
        switch(fieldId) {
34764
          case 0: // SUCCESS
34765
            return SUCCESS;
34766
          case 1: // EX
34767
            return EX;
34768
          default:
34769
            return null;
34770
        }
2538 chandransh 34771
      }
34772
 
34773
      /**
34774
       * Find the _Fields constant that matches fieldId, throwing an exception
34775
       * if it is not found.
34776
       */
34777
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34778
        _Fields fields = findByThriftId(fieldId);
34779
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34780
        return fields;
34781
      }
34782
 
34783
      /**
34784
       * Find the _Fields constant that matches name, or null if its not found.
34785
       */
34786
      public static _Fields findByName(String name) {
34787
        return byName.get(name);
34788
      }
34789
 
34790
      private final short _thriftId;
34791
      private final String _fieldName;
34792
 
34793
      _Fields(short thriftId, String fieldName) {
34794
        _thriftId = thriftId;
34795
        _fieldName = fieldName;
34796
      }
34797
 
34798
      public short getThriftFieldId() {
34799
        return _thriftId;
34800
      }
34801
 
34802
      public String getFieldName() {
34803
        return _fieldName;
34804
      }
34805
    }
34806
 
34807
    // isset id assignments
34808
    private static final int __SUCCESS_ISSET_ID = 0;
34809
    private BitSet __isset_bit_vector = new BitSet(1);
34810
 
3430 rajveer 34811
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 34812
    static {
3430 rajveer 34813
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34814
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34815
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
34816
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34817
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34818
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34819
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestPickupNumber_result.class, metaDataMap);
2538 chandransh 34820
    }
34821
 
34822
    public requestPickupNumber_result() {
34823
    }
34824
 
34825
    public requestPickupNumber_result(
34826
      boolean success,
34827
      TransactionServiceException ex)
34828
    {
34829
      this();
34830
      this.success = success;
34831
      setSuccessIsSet(true);
34832
      this.ex = ex;
34833
    }
34834
 
34835
    /**
34836
     * Performs a deep copy on <i>other</i>.
34837
     */
34838
    public requestPickupNumber_result(requestPickupNumber_result other) {
34839
      __isset_bit_vector.clear();
34840
      __isset_bit_vector.or(other.__isset_bit_vector);
34841
      this.success = other.success;
34842
      if (other.isSetEx()) {
34843
        this.ex = new TransactionServiceException(other.ex);
34844
      }
34845
    }
34846
 
34847
    public requestPickupNumber_result deepCopy() {
34848
      return new requestPickupNumber_result(this);
34849
    }
34850
 
3430 rajveer 34851
    @Override
34852
    public void clear() {
34853
      setSuccessIsSet(false);
34854
      this.success = false;
34855
      this.ex = null;
2538 chandransh 34856
    }
34857
 
34858
    public boolean isSuccess() {
34859
      return this.success;
34860
    }
34861
 
3430 rajveer 34862
    public void setSuccess(boolean success) {
2538 chandransh 34863
      this.success = success;
34864
      setSuccessIsSet(true);
34865
    }
34866
 
34867
    public void unsetSuccess() {
34868
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
34869
    }
34870
 
3430 rajveer 34871
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2538 chandransh 34872
    public boolean isSetSuccess() {
34873
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
34874
    }
34875
 
34876
    public void setSuccessIsSet(boolean value) {
34877
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
34878
    }
34879
 
34880
    public TransactionServiceException getEx() {
34881
      return this.ex;
34882
    }
34883
 
3430 rajveer 34884
    public void setEx(TransactionServiceException ex) {
2538 chandransh 34885
      this.ex = ex;
34886
    }
34887
 
34888
    public void unsetEx() {
34889
      this.ex = null;
34890
    }
34891
 
3430 rajveer 34892
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2538 chandransh 34893
    public boolean isSetEx() {
34894
      return this.ex != null;
34895
    }
34896
 
34897
    public void setExIsSet(boolean value) {
34898
      if (!value) {
34899
        this.ex = null;
34900
      }
34901
    }
34902
 
34903
    public void setFieldValue(_Fields field, Object value) {
34904
      switch (field) {
34905
      case SUCCESS:
34906
        if (value == null) {
34907
          unsetSuccess();
34908
        } else {
34909
          setSuccess((Boolean)value);
34910
        }
34911
        break;
34912
 
34913
      case EX:
34914
        if (value == null) {
34915
          unsetEx();
34916
        } else {
34917
          setEx((TransactionServiceException)value);
34918
        }
34919
        break;
34920
 
34921
      }
34922
    }
34923
 
34924
    public Object getFieldValue(_Fields field) {
34925
      switch (field) {
34926
      case SUCCESS:
3430 rajveer 34927
        return Boolean.valueOf(isSuccess());
2538 chandransh 34928
 
34929
      case EX:
34930
        return getEx();
34931
 
34932
      }
34933
      throw new IllegalStateException();
34934
    }
34935
 
3430 rajveer 34936
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34937
    public boolean isSet(_Fields field) {
34938
      if (field == null) {
34939
        throw new IllegalArgumentException();
34940
      }
2538 chandransh 34941
 
34942
      switch (field) {
34943
      case SUCCESS:
34944
        return isSetSuccess();
34945
      case EX:
34946
        return isSetEx();
34947
      }
34948
      throw new IllegalStateException();
34949
    }
34950
 
34951
    @Override
34952
    public boolean equals(Object that) {
34953
      if (that == null)
34954
        return false;
34955
      if (that instanceof requestPickupNumber_result)
34956
        return this.equals((requestPickupNumber_result)that);
34957
      return false;
34958
    }
34959
 
34960
    public boolean equals(requestPickupNumber_result that) {
34961
      if (that == null)
34962
        return false;
34963
 
34964
      boolean this_present_success = true;
34965
      boolean that_present_success = true;
34966
      if (this_present_success || that_present_success) {
34967
        if (!(this_present_success && that_present_success))
34968
          return false;
34969
        if (this.success != that.success)
34970
          return false;
34971
      }
34972
 
34973
      boolean this_present_ex = true && this.isSetEx();
34974
      boolean that_present_ex = true && that.isSetEx();
34975
      if (this_present_ex || that_present_ex) {
34976
        if (!(this_present_ex && that_present_ex))
34977
          return false;
34978
        if (!this.ex.equals(that.ex))
34979
          return false;
34980
      }
34981
 
34982
      return true;
34983
    }
34984
 
34985
    @Override
34986
    public int hashCode() {
34987
      return 0;
34988
    }
34989
 
34990
    public int compareTo(requestPickupNumber_result other) {
34991
      if (!getClass().equals(other.getClass())) {
34992
        return getClass().getName().compareTo(other.getClass().getName());
34993
      }
34994
 
34995
      int lastComparison = 0;
34996
      requestPickupNumber_result typedOther = (requestPickupNumber_result)other;
34997
 
3430 rajveer 34998
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2538 chandransh 34999
      if (lastComparison != 0) {
35000
        return lastComparison;
35001
      }
3430 rajveer 35002
      if (isSetSuccess()) {
35003
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35004
        if (lastComparison != 0) {
35005
          return lastComparison;
35006
        }
2538 chandransh 35007
      }
3430 rajveer 35008
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2538 chandransh 35009
      if (lastComparison != 0) {
35010
        return lastComparison;
35011
      }
3430 rajveer 35012
      if (isSetEx()) {
35013
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
35014
        if (lastComparison != 0) {
35015
          return lastComparison;
35016
        }
2538 chandransh 35017
      }
35018
      return 0;
35019
    }
35020
 
3430 rajveer 35021
    public _Fields fieldForId(int fieldId) {
35022
      return _Fields.findByThriftId(fieldId);
35023
    }
35024
 
35025
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35026
      org.apache.thrift.protocol.TField field;
2538 chandransh 35027
      iprot.readStructBegin();
35028
      while (true)
35029
      {
35030
        field = iprot.readFieldBegin();
3430 rajveer 35031
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 35032
          break;
35033
        }
3430 rajveer 35034
        switch (field.id) {
35035
          case 0: // SUCCESS
35036
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
35037
              this.success = iprot.readBool();
35038
              setSuccessIsSet(true);
35039
            } else { 
35040
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35041
            }
35042
            break;
35043
          case 1: // EX
35044
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35045
              this.ex = new TransactionServiceException();
35046
              this.ex.read(iprot);
35047
            } else { 
35048
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35049
            }
35050
            break;
35051
          default:
35052
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 35053
        }
3430 rajveer 35054
        iprot.readFieldEnd();
2538 chandransh 35055
      }
35056
      iprot.readStructEnd();
35057
      validate();
35058
    }
35059
 
3430 rajveer 35060
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 35061
      oprot.writeStructBegin(STRUCT_DESC);
35062
 
35063
      if (this.isSetSuccess()) {
35064
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35065
        oprot.writeBool(this.success);
35066
        oprot.writeFieldEnd();
35067
      } else if (this.isSetEx()) {
35068
        oprot.writeFieldBegin(EX_FIELD_DESC);
35069
        this.ex.write(oprot);
35070
        oprot.writeFieldEnd();
35071
      }
35072
      oprot.writeFieldStop();
35073
      oprot.writeStructEnd();
35074
    }
35075
 
35076
    @Override
35077
    public String toString() {
35078
      StringBuilder sb = new StringBuilder("requestPickupNumber_result(");
35079
      boolean first = true;
35080
 
35081
      sb.append("success:");
35082
      sb.append(this.success);
35083
      first = false;
35084
      if (!first) sb.append(", ");
35085
      sb.append("ex:");
35086
      if (this.ex == null) {
35087
        sb.append("null");
35088
      } else {
35089
        sb.append(this.ex);
35090
      }
35091
      first = false;
35092
      sb.append(")");
35093
      return sb.toString();
35094
    }
35095
 
3430 rajveer 35096
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 35097
      // check for required fields
35098
    }
35099
 
3430 rajveer 35100
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35101
      try {
35102
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35103
      } catch (org.apache.thrift.TException te) {
35104
        throw new java.io.IOException(te);
35105
      }
35106
    }
35107
 
35108
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35109
      try {
35110
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35111
      } catch (org.apache.thrift.TException te) {
35112
        throw new java.io.IOException(te);
35113
      }
35114
    }
35115
 
2538 chandransh 35116
  }
35117
 
3430 rajveer 35118
  public static class authorizePickup_args implements org.apache.thrift.TBase<authorizePickup_args, authorizePickup_args._Fields>, java.io.Serializable, Cloneable   {
35119
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authorizePickup_args");
2538 chandransh 35120
 
3430 rajveer 35121
    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);
35122
    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 35123
 
3430 rajveer 35124
    private long orderId; // required
35125
    private String pickupNumber; // required
2538 chandransh 35126
 
35127
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35128
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 35129
      ORDER_ID((short)1, "orderId"),
35130
      PICKUP_NUMBER((short)2, "pickupNumber");
35131
 
35132
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35133
 
35134
      static {
35135
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35136
          byName.put(field.getFieldName(), field);
35137
        }
35138
      }
35139
 
35140
      /**
35141
       * Find the _Fields constant that matches fieldId, or null if its not found.
35142
       */
35143
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35144
        switch(fieldId) {
35145
          case 1: // ORDER_ID
35146
            return ORDER_ID;
35147
          case 2: // PICKUP_NUMBER
35148
            return PICKUP_NUMBER;
35149
          default:
35150
            return null;
35151
        }
2538 chandransh 35152
      }
35153
 
35154
      /**
35155
       * Find the _Fields constant that matches fieldId, throwing an exception
35156
       * if it is not found.
35157
       */
35158
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35159
        _Fields fields = findByThriftId(fieldId);
35160
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35161
        return fields;
35162
      }
35163
 
35164
      /**
35165
       * Find the _Fields constant that matches name, or null if its not found.
35166
       */
35167
      public static _Fields findByName(String name) {
35168
        return byName.get(name);
35169
      }
35170
 
35171
      private final short _thriftId;
35172
      private final String _fieldName;
35173
 
35174
      _Fields(short thriftId, String fieldName) {
35175
        _thriftId = thriftId;
35176
        _fieldName = fieldName;
35177
      }
35178
 
35179
      public short getThriftFieldId() {
35180
        return _thriftId;
35181
      }
35182
 
35183
      public String getFieldName() {
35184
        return _fieldName;
35185
      }
35186
    }
35187
 
35188
    // isset id assignments
35189
    private static final int __ORDERID_ISSET_ID = 0;
35190
    private BitSet __isset_bit_vector = new BitSet(1);
35191
 
3430 rajveer 35192
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 35193
    static {
3430 rajveer 35194
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35195
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35196
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35197
      tmpMap.put(_Fields.PICKUP_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("pickupNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35198
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
35199
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35200
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authorizePickup_args.class, metaDataMap);
2538 chandransh 35201
    }
35202
 
35203
    public authorizePickup_args() {
35204
    }
35205
 
35206
    public authorizePickup_args(
35207
      long orderId,
35208
      String pickupNumber)
35209
    {
35210
      this();
35211
      this.orderId = orderId;
35212
      setOrderIdIsSet(true);
35213
      this.pickupNumber = pickupNumber;
35214
    }
35215
 
35216
    /**
35217
     * Performs a deep copy on <i>other</i>.
35218
     */
35219
    public authorizePickup_args(authorizePickup_args other) {
35220
      __isset_bit_vector.clear();
35221
      __isset_bit_vector.or(other.__isset_bit_vector);
35222
      this.orderId = other.orderId;
35223
      if (other.isSetPickupNumber()) {
35224
        this.pickupNumber = other.pickupNumber;
35225
      }
35226
    }
35227
 
35228
    public authorizePickup_args deepCopy() {
35229
      return new authorizePickup_args(this);
35230
    }
35231
 
3430 rajveer 35232
    @Override
35233
    public void clear() {
35234
      setOrderIdIsSet(false);
35235
      this.orderId = 0;
35236
      this.pickupNumber = null;
2538 chandransh 35237
    }
35238
 
35239
    public long getOrderId() {
35240
      return this.orderId;
35241
    }
35242
 
3430 rajveer 35243
    public void setOrderId(long orderId) {
2538 chandransh 35244
      this.orderId = orderId;
35245
      setOrderIdIsSet(true);
35246
    }
35247
 
35248
    public void unsetOrderId() {
35249
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
35250
    }
35251
 
3430 rajveer 35252
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2538 chandransh 35253
    public boolean isSetOrderId() {
35254
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
35255
    }
35256
 
35257
    public void setOrderIdIsSet(boolean value) {
35258
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
35259
    }
35260
 
35261
    public String getPickupNumber() {
35262
      return this.pickupNumber;
35263
    }
35264
 
3430 rajveer 35265
    public void setPickupNumber(String pickupNumber) {
2538 chandransh 35266
      this.pickupNumber = pickupNumber;
35267
    }
35268
 
35269
    public void unsetPickupNumber() {
35270
      this.pickupNumber = null;
35271
    }
35272
 
3430 rajveer 35273
    /** Returns true if field pickupNumber is set (has been assigned a value) and false otherwise */
2538 chandransh 35274
    public boolean isSetPickupNumber() {
35275
      return this.pickupNumber != null;
35276
    }
35277
 
35278
    public void setPickupNumberIsSet(boolean value) {
35279
      if (!value) {
35280
        this.pickupNumber = null;
35281
      }
35282
    }
35283
 
35284
    public void setFieldValue(_Fields field, Object value) {
35285
      switch (field) {
35286
      case ORDER_ID:
35287
        if (value == null) {
35288
          unsetOrderId();
35289
        } else {
35290
          setOrderId((Long)value);
35291
        }
35292
        break;
35293
 
35294
      case PICKUP_NUMBER:
35295
        if (value == null) {
35296
          unsetPickupNumber();
35297
        } else {
35298
          setPickupNumber((String)value);
35299
        }
35300
        break;
35301
 
35302
      }
35303
    }
35304
 
35305
    public Object getFieldValue(_Fields field) {
35306
      switch (field) {
35307
      case ORDER_ID:
3430 rajveer 35308
        return Long.valueOf(getOrderId());
2538 chandransh 35309
 
35310
      case PICKUP_NUMBER:
35311
        return getPickupNumber();
35312
 
35313
      }
35314
      throw new IllegalStateException();
35315
    }
35316
 
3430 rajveer 35317
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35318
    public boolean isSet(_Fields field) {
35319
      if (field == null) {
35320
        throw new IllegalArgumentException();
35321
      }
2538 chandransh 35322
 
35323
      switch (field) {
35324
      case ORDER_ID:
35325
        return isSetOrderId();
35326
      case PICKUP_NUMBER:
35327
        return isSetPickupNumber();
35328
      }
35329
      throw new IllegalStateException();
35330
    }
35331
 
35332
    @Override
35333
    public boolean equals(Object that) {
35334
      if (that == null)
35335
        return false;
35336
      if (that instanceof authorizePickup_args)
35337
        return this.equals((authorizePickup_args)that);
35338
      return false;
35339
    }
35340
 
35341
    public boolean equals(authorizePickup_args that) {
35342
      if (that == null)
35343
        return false;
35344
 
35345
      boolean this_present_orderId = true;
35346
      boolean that_present_orderId = true;
35347
      if (this_present_orderId || that_present_orderId) {
35348
        if (!(this_present_orderId && that_present_orderId))
35349
          return false;
35350
        if (this.orderId != that.orderId)
35351
          return false;
35352
      }
35353
 
35354
      boolean this_present_pickupNumber = true && this.isSetPickupNumber();
35355
      boolean that_present_pickupNumber = true && that.isSetPickupNumber();
35356
      if (this_present_pickupNumber || that_present_pickupNumber) {
35357
        if (!(this_present_pickupNumber && that_present_pickupNumber))
35358
          return false;
35359
        if (!this.pickupNumber.equals(that.pickupNumber))
35360
          return false;
35361
      }
35362
 
35363
      return true;
35364
    }
35365
 
35366
    @Override
35367
    public int hashCode() {
35368
      return 0;
35369
    }
35370
 
35371
    public int compareTo(authorizePickup_args other) {
35372
      if (!getClass().equals(other.getClass())) {
35373
        return getClass().getName().compareTo(other.getClass().getName());
35374
      }
35375
 
35376
      int lastComparison = 0;
35377
      authorizePickup_args typedOther = (authorizePickup_args)other;
35378
 
3430 rajveer 35379
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2538 chandransh 35380
      if (lastComparison != 0) {
35381
        return lastComparison;
35382
      }
3430 rajveer 35383
      if (isSetOrderId()) {
35384
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
35385
        if (lastComparison != 0) {
35386
          return lastComparison;
35387
        }
2538 chandransh 35388
      }
3430 rajveer 35389
      lastComparison = Boolean.valueOf(isSetPickupNumber()).compareTo(typedOther.isSetPickupNumber());
2538 chandransh 35390
      if (lastComparison != 0) {
35391
        return lastComparison;
35392
      }
3430 rajveer 35393
      if (isSetPickupNumber()) {
35394
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupNumber, typedOther.pickupNumber);
35395
        if (lastComparison != 0) {
35396
          return lastComparison;
35397
        }
2538 chandransh 35398
      }
35399
      return 0;
35400
    }
35401
 
3430 rajveer 35402
    public _Fields fieldForId(int fieldId) {
35403
      return _Fields.findByThriftId(fieldId);
35404
    }
35405
 
35406
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35407
      org.apache.thrift.protocol.TField field;
2538 chandransh 35408
      iprot.readStructBegin();
35409
      while (true)
35410
      {
35411
        field = iprot.readFieldBegin();
3430 rajveer 35412
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 35413
          break;
35414
        }
3430 rajveer 35415
        switch (field.id) {
35416
          case 1: // ORDER_ID
35417
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35418
              this.orderId = iprot.readI64();
35419
              setOrderIdIsSet(true);
35420
            } else { 
35421
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35422
            }
35423
            break;
35424
          case 2: // PICKUP_NUMBER
35425
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
35426
              this.pickupNumber = iprot.readString();
35427
            } else { 
35428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35429
            }
35430
            break;
35431
          default:
35432
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 35433
        }
3430 rajveer 35434
        iprot.readFieldEnd();
2538 chandransh 35435
      }
35436
      iprot.readStructEnd();
35437
      validate();
35438
    }
35439
 
3430 rajveer 35440
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 35441
      validate();
35442
 
35443
      oprot.writeStructBegin(STRUCT_DESC);
35444
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
35445
      oprot.writeI64(this.orderId);
35446
      oprot.writeFieldEnd();
35447
      if (this.pickupNumber != null) {
35448
        oprot.writeFieldBegin(PICKUP_NUMBER_FIELD_DESC);
35449
        oprot.writeString(this.pickupNumber);
35450
        oprot.writeFieldEnd();
35451
      }
35452
      oprot.writeFieldStop();
35453
      oprot.writeStructEnd();
35454
    }
35455
 
35456
    @Override
35457
    public String toString() {
35458
      StringBuilder sb = new StringBuilder("authorizePickup_args(");
35459
      boolean first = true;
35460
 
35461
      sb.append("orderId:");
35462
      sb.append(this.orderId);
35463
      first = false;
35464
      if (!first) sb.append(", ");
35465
      sb.append("pickupNumber:");
35466
      if (this.pickupNumber == null) {
35467
        sb.append("null");
35468
      } else {
35469
        sb.append(this.pickupNumber);
35470
      }
35471
      first = false;
35472
      sb.append(")");
35473
      return sb.toString();
35474
    }
35475
 
3430 rajveer 35476
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 35477
      // check for required fields
35478
    }
35479
 
3430 rajveer 35480
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35481
      try {
35482
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35483
      } catch (org.apache.thrift.TException te) {
35484
        throw new java.io.IOException(te);
35485
      }
35486
    }
35487
 
35488
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35489
      try {
35490
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35491
      } catch (org.apache.thrift.TException te) {
35492
        throw new java.io.IOException(te);
35493
      }
35494
    }
35495
 
2538 chandransh 35496
  }
35497
 
3430 rajveer 35498
  public static class authorizePickup_result implements org.apache.thrift.TBase<authorizePickup_result, authorizePickup_result._Fields>, java.io.Serializable, Cloneable   {
35499
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authorizePickup_result");
2538 chandransh 35500
 
3430 rajveer 35501
    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);
35502
    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 35503
 
3430 rajveer 35504
    private boolean success; // required
35505
    private TransactionServiceException ex; // required
2538 chandransh 35506
 
35507
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35508
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2538 chandransh 35509
      SUCCESS((short)0, "success"),
35510
      EX((short)1, "ex");
35511
 
35512
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35513
 
35514
      static {
35515
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35516
          byName.put(field.getFieldName(), field);
35517
        }
35518
      }
35519
 
35520
      /**
35521
       * Find the _Fields constant that matches fieldId, or null if its not found.
35522
       */
35523
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35524
        switch(fieldId) {
35525
          case 0: // SUCCESS
35526
            return SUCCESS;
35527
          case 1: // EX
35528
            return EX;
35529
          default:
35530
            return null;
35531
        }
2538 chandransh 35532
      }
35533
 
35534
      /**
35535
       * Find the _Fields constant that matches fieldId, throwing an exception
35536
       * if it is not found.
35537
       */
35538
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35539
        _Fields fields = findByThriftId(fieldId);
35540
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35541
        return fields;
35542
      }
35543
 
35544
      /**
35545
       * Find the _Fields constant that matches name, or null if its not found.
35546
       */
35547
      public static _Fields findByName(String name) {
35548
        return byName.get(name);
35549
      }
35550
 
35551
      private final short _thriftId;
35552
      private final String _fieldName;
35553
 
35554
      _Fields(short thriftId, String fieldName) {
35555
        _thriftId = thriftId;
35556
        _fieldName = fieldName;
35557
      }
35558
 
35559
      public short getThriftFieldId() {
35560
        return _thriftId;
35561
      }
35562
 
35563
      public String getFieldName() {
35564
        return _fieldName;
35565
      }
35566
    }
35567
 
35568
    // isset id assignments
35569
    private static final int __SUCCESS_ISSET_ID = 0;
35570
    private BitSet __isset_bit_vector = new BitSet(1);
35571
 
3430 rajveer 35572
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2538 chandransh 35573
    static {
3430 rajveer 35574
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35575
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35576
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
35577
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35578
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
35579
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35580
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authorizePickup_result.class, metaDataMap);
2538 chandransh 35581
    }
35582
 
35583
    public authorizePickup_result() {
35584
    }
35585
 
35586
    public authorizePickup_result(
35587
      boolean success,
35588
      TransactionServiceException ex)
35589
    {
35590
      this();
35591
      this.success = success;
35592
      setSuccessIsSet(true);
35593
      this.ex = ex;
35594
    }
35595
 
35596
    /**
35597
     * Performs a deep copy on <i>other</i>.
35598
     */
35599
    public authorizePickup_result(authorizePickup_result other) {
35600
      __isset_bit_vector.clear();
35601
      __isset_bit_vector.or(other.__isset_bit_vector);
35602
      this.success = other.success;
35603
      if (other.isSetEx()) {
35604
        this.ex = new TransactionServiceException(other.ex);
35605
      }
35606
    }
35607
 
35608
    public authorizePickup_result deepCopy() {
35609
      return new authorizePickup_result(this);
35610
    }
35611
 
3430 rajveer 35612
    @Override
35613
    public void clear() {
35614
      setSuccessIsSet(false);
35615
      this.success = false;
35616
      this.ex = null;
2538 chandransh 35617
    }
35618
 
35619
    public boolean isSuccess() {
35620
      return this.success;
35621
    }
35622
 
3430 rajveer 35623
    public void setSuccess(boolean success) {
2538 chandransh 35624
      this.success = success;
35625
      setSuccessIsSet(true);
35626
    }
35627
 
35628
    public void unsetSuccess() {
35629
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
35630
    }
35631
 
3430 rajveer 35632
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2538 chandransh 35633
    public boolean isSetSuccess() {
35634
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
35635
    }
35636
 
35637
    public void setSuccessIsSet(boolean value) {
35638
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
35639
    }
35640
 
35641
    public TransactionServiceException getEx() {
35642
      return this.ex;
35643
    }
35644
 
3430 rajveer 35645
    public void setEx(TransactionServiceException ex) {
2538 chandransh 35646
      this.ex = ex;
35647
    }
35648
 
35649
    public void unsetEx() {
35650
      this.ex = null;
35651
    }
35652
 
3430 rajveer 35653
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2538 chandransh 35654
    public boolean isSetEx() {
35655
      return this.ex != null;
35656
    }
35657
 
35658
    public void setExIsSet(boolean value) {
35659
      if (!value) {
35660
        this.ex = null;
35661
      }
35662
    }
35663
 
35664
    public void setFieldValue(_Fields field, Object value) {
35665
      switch (field) {
35666
      case SUCCESS:
35667
        if (value == null) {
35668
          unsetSuccess();
35669
        } else {
35670
          setSuccess((Boolean)value);
35671
        }
35672
        break;
35673
 
35674
      case EX:
35675
        if (value == null) {
35676
          unsetEx();
35677
        } else {
35678
          setEx((TransactionServiceException)value);
35679
        }
35680
        break;
35681
 
35682
      }
35683
    }
35684
 
35685
    public Object getFieldValue(_Fields field) {
35686
      switch (field) {
35687
      case SUCCESS:
3430 rajveer 35688
        return Boolean.valueOf(isSuccess());
2538 chandransh 35689
 
35690
      case EX:
35691
        return getEx();
35692
 
35693
      }
35694
      throw new IllegalStateException();
35695
    }
35696
 
3430 rajveer 35697
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35698
    public boolean isSet(_Fields field) {
35699
      if (field == null) {
35700
        throw new IllegalArgumentException();
35701
      }
2538 chandransh 35702
 
35703
      switch (field) {
35704
      case SUCCESS:
35705
        return isSetSuccess();
35706
      case EX:
35707
        return isSetEx();
35708
      }
35709
      throw new IllegalStateException();
35710
    }
35711
 
35712
    @Override
35713
    public boolean equals(Object that) {
35714
      if (that == null)
35715
        return false;
35716
      if (that instanceof authorizePickup_result)
35717
        return this.equals((authorizePickup_result)that);
35718
      return false;
35719
    }
35720
 
35721
    public boolean equals(authorizePickup_result that) {
35722
      if (that == null)
35723
        return false;
35724
 
35725
      boolean this_present_success = true;
35726
      boolean that_present_success = true;
35727
      if (this_present_success || that_present_success) {
35728
        if (!(this_present_success && that_present_success))
35729
          return false;
35730
        if (this.success != that.success)
35731
          return false;
35732
      }
35733
 
35734
      boolean this_present_ex = true && this.isSetEx();
35735
      boolean that_present_ex = true && that.isSetEx();
35736
      if (this_present_ex || that_present_ex) {
35737
        if (!(this_present_ex && that_present_ex))
35738
          return false;
35739
        if (!this.ex.equals(that.ex))
35740
          return false;
35741
      }
35742
 
35743
      return true;
35744
    }
35745
 
35746
    @Override
35747
    public int hashCode() {
35748
      return 0;
35749
    }
35750
 
35751
    public int compareTo(authorizePickup_result other) {
35752
      if (!getClass().equals(other.getClass())) {
35753
        return getClass().getName().compareTo(other.getClass().getName());
35754
      }
35755
 
35756
      int lastComparison = 0;
35757
      authorizePickup_result typedOther = (authorizePickup_result)other;
35758
 
3430 rajveer 35759
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2538 chandransh 35760
      if (lastComparison != 0) {
35761
        return lastComparison;
35762
      }
3430 rajveer 35763
      if (isSetSuccess()) {
35764
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35765
        if (lastComparison != 0) {
35766
          return lastComparison;
35767
        }
2538 chandransh 35768
      }
3430 rajveer 35769
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2538 chandransh 35770
      if (lastComparison != 0) {
35771
        return lastComparison;
35772
      }
3430 rajveer 35773
      if (isSetEx()) {
35774
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
35775
        if (lastComparison != 0) {
35776
          return lastComparison;
35777
        }
2538 chandransh 35778
      }
35779
      return 0;
35780
    }
35781
 
3430 rajveer 35782
    public _Fields fieldForId(int fieldId) {
35783
      return _Fields.findByThriftId(fieldId);
35784
    }
35785
 
35786
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35787
      org.apache.thrift.protocol.TField field;
2538 chandransh 35788
      iprot.readStructBegin();
35789
      while (true)
35790
      {
35791
        field = iprot.readFieldBegin();
3430 rajveer 35792
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2538 chandransh 35793
          break;
35794
        }
3430 rajveer 35795
        switch (field.id) {
35796
          case 0: // SUCCESS
35797
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
35798
              this.success = iprot.readBool();
35799
              setSuccessIsSet(true);
35800
            } else { 
35801
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35802
            }
35803
            break;
35804
          case 1: // EX
35805
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35806
              this.ex = new TransactionServiceException();
35807
              this.ex.read(iprot);
35808
            } else { 
35809
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35810
            }
35811
            break;
35812
          default:
35813
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2538 chandransh 35814
        }
3430 rajveer 35815
        iprot.readFieldEnd();
2538 chandransh 35816
      }
35817
      iprot.readStructEnd();
35818
      validate();
35819
    }
35820
 
3430 rajveer 35821
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2538 chandransh 35822
      oprot.writeStructBegin(STRUCT_DESC);
35823
 
35824
      if (this.isSetSuccess()) {
35825
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35826
        oprot.writeBool(this.success);
35827
        oprot.writeFieldEnd();
35828
      } else if (this.isSetEx()) {
35829
        oprot.writeFieldBegin(EX_FIELD_DESC);
35830
        this.ex.write(oprot);
35831
        oprot.writeFieldEnd();
35832
      }
35833
      oprot.writeFieldStop();
35834
      oprot.writeStructEnd();
35835
    }
35836
 
35837
    @Override
35838
    public String toString() {
35839
      StringBuilder sb = new StringBuilder("authorizePickup_result(");
35840
      boolean first = true;
35841
 
35842
      sb.append("success:");
35843
      sb.append(this.success);
35844
      first = false;
35845
      if (!first) sb.append(", ");
35846
      sb.append("ex:");
35847
      if (this.ex == null) {
35848
        sb.append("null");
35849
      } else {
35850
        sb.append(this.ex);
35851
      }
35852
      first = false;
35853
      sb.append(")");
35854
      return sb.toString();
35855
    }
35856
 
3430 rajveer 35857
    public void validate() throws org.apache.thrift.TException {
2538 chandransh 35858
      // check for required fields
35859
    }
35860
 
3430 rajveer 35861
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35862
      try {
35863
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35864
      } catch (org.apache.thrift.TException te) {
35865
        throw new java.io.IOException(te);
35866
      }
35867
    }
35868
 
35869
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35870
      try {
35871
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35872
      } catch (org.apache.thrift.TException te) {
35873
        throw new java.io.IOException(te);
35874
      }
35875
    }
35876
 
2538 chandransh 35877
  }
35878
 
3430 rajveer 35879
  public static class markDoasAsPickedUp_args implements org.apache.thrift.TBase<markDoasAsPickedUp_args, markDoasAsPickedUp_args._Fields>, java.io.Serializable, Cloneable   {
35880
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markDoasAsPickedUp_args");
2765 chandransh 35881
 
3430 rajveer 35882
    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);
35883
    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 35884
 
3430 rajveer 35885
    private long providerId; // required
35886
    private Map<String,String> pickupDetails; // required
2765 chandransh 35887
 
35888
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35889
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2765 chandransh 35890
      PROVIDER_ID((short)1, "providerId"),
35891
      PICKUP_DETAILS((short)2, "pickupDetails");
35892
 
35893
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35894
 
35895
      static {
35896
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35897
          byName.put(field.getFieldName(), field);
35898
        }
35899
      }
35900
 
35901
      /**
35902
       * Find the _Fields constant that matches fieldId, or null if its not found.
35903
       */
35904
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35905
        switch(fieldId) {
35906
          case 1: // PROVIDER_ID
35907
            return PROVIDER_ID;
35908
          case 2: // PICKUP_DETAILS
35909
            return PICKUP_DETAILS;
35910
          default:
35911
            return null;
35912
        }
2765 chandransh 35913
      }
35914
 
35915
      /**
35916
       * Find the _Fields constant that matches fieldId, throwing an exception
35917
       * if it is not found.
35918
       */
35919
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35920
        _Fields fields = findByThriftId(fieldId);
35921
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35922
        return fields;
35923
      }
35924
 
35925
      /**
35926
       * Find the _Fields constant that matches name, or null if its not found.
35927
       */
35928
      public static _Fields findByName(String name) {
35929
        return byName.get(name);
35930
      }
35931
 
35932
      private final short _thriftId;
35933
      private final String _fieldName;
35934
 
35935
      _Fields(short thriftId, String fieldName) {
35936
        _thriftId = thriftId;
35937
        _fieldName = fieldName;
35938
      }
35939
 
35940
      public short getThriftFieldId() {
35941
        return _thriftId;
35942
      }
35943
 
35944
      public String getFieldName() {
35945
        return _fieldName;
35946
      }
35947
    }
35948
 
35949
    // isset id assignments
35950
    private static final int __PROVIDERID_ISSET_ID = 0;
35951
    private BitSet __isset_bit_vector = new BitSet(1);
35952
 
3430 rajveer 35953
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2765 chandransh 35954
    static {
3430 rajveer 35955
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35956
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35957
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35958
      tmpMap.put(_Fields.PICKUP_DETAILS, new org.apache.thrift.meta_data.FieldMetaData("pickupDetails", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35959
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
35960
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
35961
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
35962
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35963
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markDoasAsPickedUp_args.class, metaDataMap);
2765 chandransh 35964
    }
35965
 
35966
    public markDoasAsPickedUp_args() {
35967
    }
35968
 
35969
    public markDoasAsPickedUp_args(
35970
      long providerId,
35971
      Map<String,String> pickupDetails)
35972
    {
35973
      this();
35974
      this.providerId = providerId;
35975
      setProviderIdIsSet(true);
35976
      this.pickupDetails = pickupDetails;
35977
    }
35978
 
35979
    /**
35980
     * Performs a deep copy on <i>other</i>.
35981
     */
35982
    public markDoasAsPickedUp_args(markDoasAsPickedUp_args other) {
35983
      __isset_bit_vector.clear();
35984
      __isset_bit_vector.or(other.__isset_bit_vector);
35985
      this.providerId = other.providerId;
35986
      if (other.isSetPickupDetails()) {
35987
        Map<String,String> __this__pickupDetails = new HashMap<String,String>();
35988
        for (Map.Entry<String, String> other_element : other.pickupDetails.entrySet()) {
35989
 
35990
          String other_element_key = other_element.getKey();
35991
          String other_element_value = other_element.getValue();
35992
 
35993
          String __this__pickupDetails_copy_key = other_element_key;
35994
 
35995
          String __this__pickupDetails_copy_value = other_element_value;
35996
 
35997
          __this__pickupDetails.put(__this__pickupDetails_copy_key, __this__pickupDetails_copy_value);
35998
        }
35999
        this.pickupDetails = __this__pickupDetails;
36000
      }
36001
    }
36002
 
36003
    public markDoasAsPickedUp_args deepCopy() {
36004
      return new markDoasAsPickedUp_args(this);
36005
    }
36006
 
3430 rajveer 36007
    @Override
36008
    public void clear() {
36009
      setProviderIdIsSet(false);
36010
      this.providerId = 0;
36011
      this.pickupDetails = null;
2765 chandransh 36012
    }
36013
 
36014
    public long getProviderId() {
36015
      return this.providerId;
36016
    }
36017
 
3430 rajveer 36018
    public void setProviderId(long providerId) {
2765 chandransh 36019
      this.providerId = providerId;
36020
      setProviderIdIsSet(true);
36021
    }
36022
 
36023
    public void unsetProviderId() {
36024
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
36025
    }
36026
 
3430 rajveer 36027
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
2765 chandransh 36028
    public boolean isSetProviderId() {
36029
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
36030
    }
36031
 
36032
    public void setProviderIdIsSet(boolean value) {
36033
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
36034
    }
36035
 
36036
    public int getPickupDetailsSize() {
36037
      return (this.pickupDetails == null) ? 0 : this.pickupDetails.size();
36038
    }
36039
 
36040
    public void putToPickupDetails(String key, String val) {
36041
      if (this.pickupDetails == null) {
36042
        this.pickupDetails = new HashMap<String,String>();
36043
      }
36044
      this.pickupDetails.put(key, val);
36045
    }
36046
 
36047
    public Map<String,String> getPickupDetails() {
36048
      return this.pickupDetails;
36049
    }
36050
 
3430 rajveer 36051
    public void setPickupDetails(Map<String,String> pickupDetails) {
2765 chandransh 36052
      this.pickupDetails = pickupDetails;
36053
    }
36054
 
36055
    public void unsetPickupDetails() {
36056
      this.pickupDetails = null;
36057
    }
36058
 
3430 rajveer 36059
    /** Returns true if field pickupDetails is set (has been assigned a value) and false otherwise */
2765 chandransh 36060
    public boolean isSetPickupDetails() {
36061
      return this.pickupDetails != null;
36062
    }
36063
 
36064
    public void setPickupDetailsIsSet(boolean value) {
36065
      if (!value) {
36066
        this.pickupDetails = null;
36067
      }
36068
    }
36069
 
36070
    public void setFieldValue(_Fields field, Object value) {
36071
      switch (field) {
36072
      case PROVIDER_ID:
36073
        if (value == null) {
36074
          unsetProviderId();
36075
        } else {
36076
          setProviderId((Long)value);
36077
        }
36078
        break;
36079
 
36080
      case PICKUP_DETAILS:
36081
        if (value == null) {
36082
          unsetPickupDetails();
36083
        } else {
36084
          setPickupDetails((Map<String,String>)value);
36085
        }
36086
        break;
36087
 
36088
      }
36089
    }
36090
 
36091
    public Object getFieldValue(_Fields field) {
36092
      switch (field) {
36093
      case PROVIDER_ID:
3430 rajveer 36094
        return Long.valueOf(getProviderId());
2765 chandransh 36095
 
36096
      case PICKUP_DETAILS:
36097
        return getPickupDetails();
36098
 
36099
      }
36100
      throw new IllegalStateException();
36101
    }
36102
 
3430 rajveer 36103
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36104
    public boolean isSet(_Fields field) {
36105
      if (field == null) {
36106
        throw new IllegalArgumentException();
36107
      }
2765 chandransh 36108
 
36109
      switch (field) {
36110
      case PROVIDER_ID:
36111
        return isSetProviderId();
36112
      case PICKUP_DETAILS:
36113
        return isSetPickupDetails();
36114
      }
36115
      throw new IllegalStateException();
36116
    }
36117
 
36118
    @Override
36119
    public boolean equals(Object that) {
36120
      if (that == null)
36121
        return false;
36122
      if (that instanceof markDoasAsPickedUp_args)
36123
        return this.equals((markDoasAsPickedUp_args)that);
36124
      return false;
36125
    }
36126
 
36127
    public boolean equals(markDoasAsPickedUp_args that) {
36128
      if (that == null)
36129
        return false;
36130
 
36131
      boolean this_present_providerId = true;
36132
      boolean that_present_providerId = true;
36133
      if (this_present_providerId || that_present_providerId) {
36134
        if (!(this_present_providerId && that_present_providerId))
36135
          return false;
36136
        if (this.providerId != that.providerId)
36137
          return false;
36138
      }
36139
 
36140
      boolean this_present_pickupDetails = true && this.isSetPickupDetails();
36141
      boolean that_present_pickupDetails = true && that.isSetPickupDetails();
36142
      if (this_present_pickupDetails || that_present_pickupDetails) {
36143
        if (!(this_present_pickupDetails && that_present_pickupDetails))
36144
          return false;
36145
        if (!this.pickupDetails.equals(that.pickupDetails))
36146
          return false;
36147
      }
36148
 
36149
      return true;
36150
    }
36151
 
36152
    @Override
36153
    public int hashCode() {
36154
      return 0;
36155
    }
36156
 
3430 rajveer 36157
    public int compareTo(markDoasAsPickedUp_args other) {
36158
      if (!getClass().equals(other.getClass())) {
36159
        return getClass().getName().compareTo(other.getClass().getName());
36160
      }
36161
 
36162
      int lastComparison = 0;
36163
      markDoasAsPickedUp_args typedOther = (markDoasAsPickedUp_args)other;
36164
 
36165
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
36166
      if (lastComparison != 0) {
36167
        return lastComparison;
36168
      }
36169
      if (isSetProviderId()) {
36170
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
36171
        if (lastComparison != 0) {
36172
          return lastComparison;
36173
        }
36174
      }
36175
      lastComparison = Boolean.valueOf(isSetPickupDetails()).compareTo(typedOther.isSetPickupDetails());
36176
      if (lastComparison != 0) {
36177
        return lastComparison;
36178
      }
36179
      if (isSetPickupDetails()) {
36180
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupDetails, typedOther.pickupDetails);
36181
        if (lastComparison != 0) {
36182
          return lastComparison;
36183
        }
36184
      }
36185
      return 0;
36186
    }
36187
 
36188
    public _Fields fieldForId(int fieldId) {
36189
      return _Fields.findByThriftId(fieldId);
36190
    }
36191
 
36192
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36193
      org.apache.thrift.protocol.TField field;
2765 chandransh 36194
      iprot.readStructBegin();
36195
      while (true)
36196
      {
36197
        field = iprot.readFieldBegin();
3430 rajveer 36198
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2765 chandransh 36199
          break;
36200
        }
3430 rajveer 36201
        switch (field.id) {
36202
          case 1: // PROVIDER_ID
36203
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36204
              this.providerId = iprot.readI64();
36205
              setProviderIdIsSet(true);
36206
            } else { 
36207
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36208
            }
36209
            break;
36210
          case 2: // PICKUP_DETAILS
36211
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
36212
              {
36213
                org.apache.thrift.protocol.TMap _map96 = iprot.readMapBegin();
36214
                this.pickupDetails = new HashMap<String,String>(2*_map96.size);
36215
                for (int _i97 = 0; _i97 < _map96.size; ++_i97)
2765 chandransh 36216
                {
3430 rajveer 36217
                  String _key98; // required
36218
                  String _val99; // required
36219
                  _key98 = iprot.readString();
36220
                  _val99 = iprot.readString();
36221
                  this.pickupDetails.put(_key98, _val99);
2765 chandransh 36222
                }
3430 rajveer 36223
                iprot.readMapEnd();
2765 chandransh 36224
              }
3430 rajveer 36225
            } else { 
36226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36227
            }
36228
            break;
36229
          default:
36230
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2765 chandransh 36231
        }
3430 rajveer 36232
        iprot.readFieldEnd();
2765 chandransh 36233
      }
36234
      iprot.readStructEnd();
36235
      validate();
36236
    }
36237
 
3430 rajveer 36238
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2765 chandransh 36239
      validate();
36240
 
36241
      oprot.writeStructBegin(STRUCT_DESC);
36242
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
36243
      oprot.writeI64(this.providerId);
36244
      oprot.writeFieldEnd();
36245
      if (this.pickupDetails != null) {
36246
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
36247
        {
3430 rajveer 36248
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.pickupDetails.size()));
3427 chandransh 36249
          for (Map.Entry<String, String> _iter100 : this.pickupDetails.entrySet())
2765 chandransh 36250
          {
3427 chandransh 36251
            oprot.writeString(_iter100.getKey());
36252
            oprot.writeString(_iter100.getValue());
2765 chandransh 36253
          }
36254
          oprot.writeMapEnd();
36255
        }
36256
        oprot.writeFieldEnd();
36257
      }
36258
      oprot.writeFieldStop();
36259
      oprot.writeStructEnd();
36260
    }
36261
 
36262
    @Override
36263
    public String toString() {
36264
      StringBuilder sb = new StringBuilder("markDoasAsPickedUp_args(");
36265
      boolean first = true;
36266
 
36267
      sb.append("providerId:");
36268
      sb.append(this.providerId);
36269
      first = false;
36270
      if (!first) sb.append(", ");
36271
      sb.append("pickupDetails:");
36272
      if (this.pickupDetails == null) {
36273
        sb.append("null");
36274
      } else {
36275
        sb.append(this.pickupDetails);
36276
      }
36277
      first = false;
36278
      sb.append(")");
36279
      return sb.toString();
36280
    }
36281
 
3430 rajveer 36282
    public void validate() throws org.apache.thrift.TException {
2765 chandransh 36283
      // check for required fields
36284
    }
36285
 
3430 rajveer 36286
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36287
      try {
36288
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36289
      } catch (org.apache.thrift.TException te) {
36290
        throw new java.io.IOException(te);
36291
      }
36292
    }
36293
 
36294
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36295
      try {
36296
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36297
      } catch (org.apache.thrift.TException te) {
36298
        throw new java.io.IOException(te);
36299
      }
36300
    }
36301
 
2765 chandransh 36302
  }
36303
 
3430 rajveer 36304
  public static class markDoasAsPickedUp_result implements org.apache.thrift.TBase<markDoasAsPickedUp_result, markDoasAsPickedUp_result._Fields>, java.io.Serializable, Cloneable   {
36305
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markDoasAsPickedUp_result");
2765 chandransh 36306
 
3430 rajveer 36307
    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 36308
 
3430 rajveer 36309
    private List<Order> success; // required
2765 chandransh 36310
 
36311
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36312
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2765 chandransh 36313
      SUCCESS((short)0, "success");
36314
 
36315
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36316
 
36317
      static {
36318
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36319
          byName.put(field.getFieldName(), field);
36320
        }
36321
      }
36322
 
36323
      /**
36324
       * Find the _Fields constant that matches fieldId, or null if its not found.
36325
       */
36326
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36327
        switch(fieldId) {
36328
          case 0: // SUCCESS
36329
            return SUCCESS;
36330
          default:
36331
            return null;
36332
        }
2765 chandransh 36333
      }
36334
 
36335
      /**
36336
       * Find the _Fields constant that matches fieldId, throwing an exception
36337
       * if it is not found.
36338
       */
36339
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36340
        _Fields fields = findByThriftId(fieldId);
36341
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36342
        return fields;
36343
      }
36344
 
36345
      /**
36346
       * Find the _Fields constant that matches name, or null if its not found.
36347
       */
36348
      public static _Fields findByName(String name) {
36349
        return byName.get(name);
36350
      }
36351
 
36352
      private final short _thriftId;
36353
      private final String _fieldName;
36354
 
36355
      _Fields(short thriftId, String fieldName) {
36356
        _thriftId = thriftId;
36357
        _fieldName = fieldName;
36358
      }
36359
 
36360
      public short getThriftFieldId() {
36361
        return _thriftId;
36362
      }
36363
 
36364
      public String getFieldName() {
36365
        return _fieldName;
36366
      }
36367
    }
36368
 
36369
    // isset id assignments
36370
 
3430 rajveer 36371
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2765 chandransh 36372
    static {
3430 rajveer 36373
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36374
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36375
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
36376
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
36377
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36378
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markDoasAsPickedUp_result.class, metaDataMap);
2765 chandransh 36379
    }
36380
 
36381
    public markDoasAsPickedUp_result() {
36382
    }
36383
 
36384
    public markDoasAsPickedUp_result(
36385
      List<Order> success)
36386
    {
36387
      this();
36388
      this.success = success;
36389
    }
36390
 
36391
    /**
36392
     * Performs a deep copy on <i>other</i>.
36393
     */
36394
    public markDoasAsPickedUp_result(markDoasAsPickedUp_result other) {
36395
      if (other.isSetSuccess()) {
36396
        List<Order> __this__success = new ArrayList<Order>();
36397
        for (Order other_element : other.success) {
36398
          __this__success.add(new Order(other_element));
36399
        }
36400
        this.success = __this__success;
36401
      }
36402
    }
36403
 
36404
    public markDoasAsPickedUp_result deepCopy() {
36405
      return new markDoasAsPickedUp_result(this);
36406
    }
36407
 
3430 rajveer 36408
    @Override
36409
    public void clear() {
36410
      this.success = null;
2765 chandransh 36411
    }
36412
 
36413
    public int getSuccessSize() {
36414
      return (this.success == null) ? 0 : this.success.size();
36415
    }
36416
 
36417
    public java.util.Iterator<Order> getSuccessIterator() {
36418
      return (this.success == null) ? null : this.success.iterator();
36419
    }
36420
 
36421
    public void addToSuccess(Order elem) {
36422
      if (this.success == null) {
36423
        this.success = new ArrayList<Order>();
36424
      }
36425
      this.success.add(elem);
36426
    }
36427
 
36428
    public List<Order> getSuccess() {
36429
      return this.success;
36430
    }
36431
 
3430 rajveer 36432
    public void setSuccess(List<Order> success) {
2765 chandransh 36433
      this.success = success;
36434
    }
36435
 
36436
    public void unsetSuccess() {
36437
      this.success = null;
36438
    }
36439
 
3430 rajveer 36440
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2765 chandransh 36441
    public boolean isSetSuccess() {
36442
      return this.success != null;
36443
    }
36444
 
36445
    public void setSuccessIsSet(boolean value) {
36446
      if (!value) {
36447
        this.success = null;
36448
      }
36449
    }
36450
 
36451
    public void setFieldValue(_Fields field, Object value) {
36452
      switch (field) {
36453
      case SUCCESS:
36454
        if (value == null) {
36455
          unsetSuccess();
36456
        } else {
36457
          setSuccess((List<Order>)value);
36458
        }
36459
        break;
36460
 
36461
      }
36462
    }
36463
 
36464
    public Object getFieldValue(_Fields field) {
36465
      switch (field) {
36466
      case SUCCESS:
36467
        return getSuccess();
36468
 
36469
      }
36470
      throw new IllegalStateException();
36471
    }
36472
 
3430 rajveer 36473
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36474
    public boolean isSet(_Fields field) {
36475
      if (field == null) {
36476
        throw new IllegalArgumentException();
36477
      }
2765 chandransh 36478
 
36479
      switch (field) {
36480
      case SUCCESS:
36481
        return isSetSuccess();
36482
      }
36483
      throw new IllegalStateException();
36484
    }
36485
 
36486
    @Override
36487
    public boolean equals(Object that) {
36488
      if (that == null)
36489
        return false;
36490
      if (that instanceof markDoasAsPickedUp_result)
36491
        return this.equals((markDoasAsPickedUp_result)that);
36492
      return false;
36493
    }
36494
 
36495
    public boolean equals(markDoasAsPickedUp_result that) {
36496
      if (that == null)
36497
        return false;
36498
 
36499
      boolean this_present_success = true && this.isSetSuccess();
36500
      boolean that_present_success = true && that.isSetSuccess();
36501
      if (this_present_success || that_present_success) {
36502
        if (!(this_present_success && that_present_success))
36503
          return false;
36504
        if (!this.success.equals(that.success))
36505
          return false;
36506
      }
36507
 
36508
      return true;
36509
    }
36510
 
36511
    @Override
36512
    public int hashCode() {
36513
      return 0;
36514
    }
36515
 
36516
    public int compareTo(markDoasAsPickedUp_result other) {
36517
      if (!getClass().equals(other.getClass())) {
36518
        return getClass().getName().compareTo(other.getClass().getName());
36519
      }
36520
 
36521
      int lastComparison = 0;
36522
      markDoasAsPickedUp_result typedOther = (markDoasAsPickedUp_result)other;
36523
 
3430 rajveer 36524
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2765 chandransh 36525
      if (lastComparison != 0) {
36526
        return lastComparison;
36527
      }
3430 rajveer 36528
      if (isSetSuccess()) {
36529
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36530
        if (lastComparison != 0) {
36531
          return lastComparison;
36532
        }
2765 chandransh 36533
      }
36534
      return 0;
36535
    }
36536
 
3430 rajveer 36537
    public _Fields fieldForId(int fieldId) {
36538
      return _Fields.findByThriftId(fieldId);
36539
    }
36540
 
36541
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36542
      org.apache.thrift.protocol.TField field;
2765 chandransh 36543
      iprot.readStructBegin();
36544
      while (true)
36545
      {
36546
        field = iprot.readFieldBegin();
3430 rajveer 36547
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2765 chandransh 36548
          break;
36549
        }
3430 rajveer 36550
        switch (field.id) {
36551
          case 0: // SUCCESS
36552
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
36553
              {
36554
                org.apache.thrift.protocol.TList _list101 = iprot.readListBegin();
36555
                this.success = new ArrayList<Order>(_list101.size);
36556
                for (int _i102 = 0; _i102 < _list101.size; ++_i102)
2765 chandransh 36557
                {
3430 rajveer 36558
                  Order _elem103; // required
36559
                  _elem103 = new Order();
36560
                  _elem103.read(iprot);
36561
                  this.success.add(_elem103);
2765 chandransh 36562
                }
3430 rajveer 36563
                iprot.readListEnd();
2765 chandransh 36564
              }
3430 rajveer 36565
            } else { 
36566
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36567
            }
36568
            break;
36569
          default:
36570
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2765 chandransh 36571
        }
3430 rajveer 36572
        iprot.readFieldEnd();
2765 chandransh 36573
      }
36574
      iprot.readStructEnd();
36575
      validate();
36576
    }
36577
 
3430 rajveer 36578
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2765 chandransh 36579
      oprot.writeStructBegin(STRUCT_DESC);
36580
 
36581
      if (this.isSetSuccess()) {
36582
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36583
        {
3430 rajveer 36584
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3427 chandransh 36585
          for (Order _iter104 : this.success)
2765 chandransh 36586
          {
3427 chandransh 36587
            _iter104.write(oprot);
2765 chandransh 36588
          }
36589
          oprot.writeListEnd();
36590
        }
36591
        oprot.writeFieldEnd();
36592
      }
36593
      oprot.writeFieldStop();
36594
      oprot.writeStructEnd();
36595
    }
36596
 
36597
    @Override
36598
    public String toString() {
36599
      StringBuilder sb = new StringBuilder("markDoasAsPickedUp_result(");
36600
      boolean first = true;
36601
 
36602
      sb.append("success:");
36603
      if (this.success == null) {
36604
        sb.append("null");
36605
      } else {
36606
        sb.append(this.success);
36607
      }
36608
      first = false;
36609
      sb.append(")");
36610
      return sb.toString();
36611
    }
36612
 
3430 rajveer 36613
    public void validate() throws org.apache.thrift.TException {
2765 chandransh 36614
      // check for required fields
36615
    }
36616
 
3430 rajveer 36617
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36618
      try {
36619
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36620
      } catch (org.apache.thrift.TException te) {
36621
        throw new java.io.IOException(te);
36622
      }
36623
    }
36624
 
36625
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36626
      try {
36627
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36628
      } catch (org.apache.thrift.TException te) {
36629
        throw new java.io.IOException(te);
36630
      }
36631
    }
36632
 
2765 chandransh 36633
  }
36634
 
3430 rajveer 36635
  public static class receiveReturn_args implements org.apache.thrift.TBase<receiveReturn_args, receiveReturn_args._Fields>, java.io.Serializable, Cloneable   {
36636
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("receiveReturn_args");
2590 chandransh 36637
 
3430 rajveer 36638
    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 36639
 
3430 rajveer 36640
    private long orderId; // required
2590 chandransh 36641
 
36642
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36643
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2590 chandransh 36644
      ORDER_ID((short)1, "orderId");
36645
 
36646
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36647
 
36648
      static {
36649
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36650
          byName.put(field.getFieldName(), field);
36651
        }
36652
      }
36653
 
36654
      /**
36655
       * Find the _Fields constant that matches fieldId, or null if its not found.
36656
       */
36657
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36658
        switch(fieldId) {
36659
          case 1: // ORDER_ID
36660
            return ORDER_ID;
36661
          default:
36662
            return null;
36663
        }
2590 chandransh 36664
      }
36665
 
36666
      /**
36667
       * Find the _Fields constant that matches fieldId, throwing an exception
36668
       * if it is not found.
36669
       */
36670
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36671
        _Fields fields = findByThriftId(fieldId);
36672
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36673
        return fields;
36674
      }
36675
 
36676
      /**
36677
       * Find the _Fields constant that matches name, or null if its not found.
36678
       */
36679
      public static _Fields findByName(String name) {
36680
        return byName.get(name);
36681
      }
36682
 
36683
      private final short _thriftId;
36684
      private final String _fieldName;
36685
 
36686
      _Fields(short thriftId, String fieldName) {
36687
        _thriftId = thriftId;
36688
        _fieldName = fieldName;
36689
      }
36690
 
36691
      public short getThriftFieldId() {
36692
        return _thriftId;
36693
      }
36694
 
36695
      public String getFieldName() {
36696
        return _fieldName;
36697
      }
36698
    }
36699
 
36700
    // isset id assignments
36701
    private static final int __ORDERID_ISSET_ID = 0;
36702
    private BitSet __isset_bit_vector = new BitSet(1);
36703
 
3430 rajveer 36704
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2590 chandransh 36705
    static {
3430 rajveer 36706
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36707
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36708
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36709
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36710
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(receiveReturn_args.class, metaDataMap);
2590 chandransh 36711
    }
36712
 
2615 chandransh 36713
    public receiveReturn_args() {
2590 chandransh 36714
    }
36715
 
2615 chandransh 36716
    public receiveReturn_args(
2590 chandransh 36717
      long orderId)
36718
    {
36719
      this();
36720
      this.orderId = orderId;
36721
      setOrderIdIsSet(true);
36722
    }
36723
 
36724
    /**
36725
     * Performs a deep copy on <i>other</i>.
36726
     */
2615 chandransh 36727
    public receiveReturn_args(receiveReturn_args other) {
2590 chandransh 36728
      __isset_bit_vector.clear();
36729
      __isset_bit_vector.or(other.__isset_bit_vector);
36730
      this.orderId = other.orderId;
36731
    }
36732
 
2615 chandransh 36733
    public receiveReturn_args deepCopy() {
36734
      return new receiveReturn_args(this);
2590 chandransh 36735
    }
36736
 
3430 rajveer 36737
    @Override
36738
    public void clear() {
36739
      setOrderIdIsSet(false);
36740
      this.orderId = 0;
2590 chandransh 36741
    }
36742
 
36743
    public long getOrderId() {
36744
      return this.orderId;
36745
    }
36746
 
3430 rajveer 36747
    public void setOrderId(long orderId) {
2590 chandransh 36748
      this.orderId = orderId;
36749
      setOrderIdIsSet(true);
36750
    }
36751
 
36752
    public void unsetOrderId() {
36753
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
36754
    }
36755
 
3430 rajveer 36756
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2590 chandransh 36757
    public boolean isSetOrderId() {
36758
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
36759
    }
36760
 
36761
    public void setOrderIdIsSet(boolean value) {
36762
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
36763
    }
36764
 
36765
    public void setFieldValue(_Fields field, Object value) {
36766
      switch (field) {
36767
      case ORDER_ID:
36768
        if (value == null) {
36769
          unsetOrderId();
36770
        } else {
36771
          setOrderId((Long)value);
36772
        }
36773
        break;
36774
 
36775
      }
36776
    }
36777
 
36778
    public Object getFieldValue(_Fields field) {
36779
      switch (field) {
36780
      case ORDER_ID:
3430 rajveer 36781
        return Long.valueOf(getOrderId());
2590 chandransh 36782
 
36783
      }
36784
      throw new IllegalStateException();
36785
    }
36786
 
3430 rajveer 36787
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36788
    public boolean isSet(_Fields field) {
36789
      if (field == null) {
36790
        throw new IllegalArgumentException();
36791
      }
2590 chandransh 36792
 
36793
      switch (field) {
36794
      case ORDER_ID:
36795
        return isSetOrderId();
36796
      }
36797
      throw new IllegalStateException();
36798
    }
36799
 
36800
    @Override
36801
    public boolean equals(Object that) {
36802
      if (that == null)
36803
        return false;
2615 chandransh 36804
      if (that instanceof receiveReturn_args)
36805
        return this.equals((receiveReturn_args)that);
2590 chandransh 36806
      return false;
36807
    }
36808
 
2615 chandransh 36809
    public boolean equals(receiveReturn_args that) {
2590 chandransh 36810
      if (that == null)
36811
        return false;
36812
 
36813
      boolean this_present_orderId = true;
36814
      boolean that_present_orderId = true;
36815
      if (this_present_orderId || that_present_orderId) {
36816
        if (!(this_present_orderId && that_present_orderId))
36817
          return false;
36818
        if (this.orderId != that.orderId)
36819
          return false;
36820
      }
36821
 
36822
      return true;
36823
    }
36824
 
36825
    @Override
36826
    public int hashCode() {
36827
      return 0;
36828
    }
36829
 
2615 chandransh 36830
    public int compareTo(receiveReturn_args other) {
2590 chandransh 36831
      if (!getClass().equals(other.getClass())) {
36832
        return getClass().getName().compareTo(other.getClass().getName());
36833
      }
36834
 
36835
      int lastComparison = 0;
2615 chandransh 36836
      receiveReturn_args typedOther = (receiveReturn_args)other;
2590 chandransh 36837
 
3430 rajveer 36838
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2590 chandransh 36839
      if (lastComparison != 0) {
36840
        return lastComparison;
36841
      }
3430 rajveer 36842
      if (isSetOrderId()) {
36843
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
36844
        if (lastComparison != 0) {
36845
          return lastComparison;
36846
        }
2590 chandransh 36847
      }
36848
      return 0;
36849
    }
36850
 
3430 rajveer 36851
    public _Fields fieldForId(int fieldId) {
36852
      return _Fields.findByThriftId(fieldId);
36853
    }
36854
 
36855
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36856
      org.apache.thrift.protocol.TField field;
2590 chandransh 36857
      iprot.readStructBegin();
36858
      while (true)
36859
      {
36860
        field = iprot.readFieldBegin();
3430 rajveer 36861
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2590 chandransh 36862
          break;
36863
        }
3430 rajveer 36864
        switch (field.id) {
36865
          case 1: // ORDER_ID
36866
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36867
              this.orderId = iprot.readI64();
36868
              setOrderIdIsSet(true);
36869
            } else { 
36870
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36871
            }
36872
            break;
36873
          default:
36874
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2590 chandransh 36875
        }
3430 rajveer 36876
        iprot.readFieldEnd();
2590 chandransh 36877
      }
36878
      iprot.readStructEnd();
36879
      validate();
36880
    }
36881
 
3430 rajveer 36882
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2590 chandransh 36883
      validate();
36884
 
36885
      oprot.writeStructBegin(STRUCT_DESC);
36886
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
36887
      oprot.writeI64(this.orderId);
36888
      oprot.writeFieldEnd();
36889
      oprot.writeFieldStop();
36890
      oprot.writeStructEnd();
36891
    }
36892
 
36893
    @Override
36894
    public String toString() {
2615 chandransh 36895
      StringBuilder sb = new StringBuilder("receiveReturn_args(");
2590 chandransh 36896
      boolean first = true;
36897
 
36898
      sb.append("orderId:");
36899
      sb.append(this.orderId);
36900
      first = false;
36901
      sb.append(")");
36902
      return sb.toString();
36903
    }
36904
 
3430 rajveer 36905
    public void validate() throws org.apache.thrift.TException {
2590 chandransh 36906
      // check for required fields
36907
    }
36908
 
3430 rajveer 36909
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36910
      try {
36911
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36912
      } catch (org.apache.thrift.TException te) {
36913
        throw new java.io.IOException(te);
36914
      }
36915
    }
36916
 
36917
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36918
      try {
36919
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36920
      } catch (org.apache.thrift.TException te) {
36921
        throw new java.io.IOException(te);
36922
      }
36923
    }
36924
 
2590 chandransh 36925
  }
36926
 
3430 rajveer 36927
  public static class receiveReturn_result implements org.apache.thrift.TBase<receiveReturn_result, receiveReturn_result._Fields>, java.io.Serializable, Cloneable   {
36928
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("receiveReturn_result");
2590 chandransh 36929
 
3430 rajveer 36930
    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);
36931
    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 36932
 
3430 rajveer 36933
    private boolean success; // required
36934
    private TransactionServiceException ex; // required
2590 chandransh 36935
 
36936
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36937
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2590 chandransh 36938
      SUCCESS((short)0, "success"),
36939
      EX((short)1, "ex");
36940
 
36941
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36942
 
36943
      static {
36944
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36945
          byName.put(field.getFieldName(), field);
36946
        }
36947
      }
36948
 
36949
      /**
36950
       * Find the _Fields constant that matches fieldId, or null if its not found.
36951
       */
36952
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36953
        switch(fieldId) {
36954
          case 0: // SUCCESS
36955
            return SUCCESS;
36956
          case 1: // EX
36957
            return EX;
36958
          default:
36959
            return null;
36960
        }
2590 chandransh 36961
      }
36962
 
36963
      /**
36964
       * Find the _Fields constant that matches fieldId, throwing an exception
36965
       * if it is not found.
36966
       */
36967
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36968
        _Fields fields = findByThriftId(fieldId);
36969
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36970
        return fields;
36971
      }
36972
 
36973
      /**
36974
       * Find the _Fields constant that matches name, or null if its not found.
36975
       */
36976
      public static _Fields findByName(String name) {
36977
        return byName.get(name);
36978
      }
36979
 
36980
      private final short _thriftId;
36981
      private final String _fieldName;
36982
 
36983
      _Fields(short thriftId, String fieldName) {
36984
        _thriftId = thriftId;
36985
        _fieldName = fieldName;
36986
      }
36987
 
36988
      public short getThriftFieldId() {
36989
        return _thriftId;
36990
      }
36991
 
36992
      public String getFieldName() {
36993
        return _fieldName;
36994
      }
36995
    }
36996
 
36997
    // isset id assignments
36998
    private static final int __SUCCESS_ISSET_ID = 0;
36999
    private BitSet __isset_bit_vector = new BitSet(1);
37000
 
3430 rajveer 37001
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2590 chandransh 37002
    static {
3430 rajveer 37003
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37004
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37005
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
37006
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37007
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37008
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37009
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(receiveReturn_result.class, metaDataMap);
2590 chandransh 37010
    }
37011
 
2615 chandransh 37012
    public receiveReturn_result() {
2590 chandransh 37013
    }
37014
 
2615 chandransh 37015
    public receiveReturn_result(
2590 chandransh 37016
      boolean success,
37017
      TransactionServiceException ex)
37018
    {
37019
      this();
37020
      this.success = success;
37021
      setSuccessIsSet(true);
37022
      this.ex = ex;
37023
    }
37024
 
37025
    /**
37026
     * Performs a deep copy on <i>other</i>.
37027
     */
2615 chandransh 37028
    public receiveReturn_result(receiveReturn_result other) {
2590 chandransh 37029
      __isset_bit_vector.clear();
37030
      __isset_bit_vector.or(other.__isset_bit_vector);
37031
      this.success = other.success;
37032
      if (other.isSetEx()) {
37033
        this.ex = new TransactionServiceException(other.ex);
37034
      }
37035
    }
37036
 
2615 chandransh 37037
    public receiveReturn_result deepCopy() {
37038
      return new receiveReturn_result(this);
2590 chandransh 37039
    }
37040
 
3430 rajveer 37041
    @Override
37042
    public void clear() {
37043
      setSuccessIsSet(false);
37044
      this.success = false;
37045
      this.ex = null;
2590 chandransh 37046
    }
37047
 
37048
    public boolean isSuccess() {
37049
      return this.success;
37050
    }
37051
 
3430 rajveer 37052
    public void setSuccess(boolean success) {
2590 chandransh 37053
      this.success = success;
37054
      setSuccessIsSet(true);
37055
    }
37056
 
37057
    public void unsetSuccess() {
37058
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
37059
    }
37060
 
3430 rajveer 37061
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2590 chandransh 37062
    public boolean isSetSuccess() {
37063
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
37064
    }
37065
 
37066
    public void setSuccessIsSet(boolean value) {
37067
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
37068
    }
37069
 
37070
    public TransactionServiceException getEx() {
37071
      return this.ex;
37072
    }
37073
 
3430 rajveer 37074
    public void setEx(TransactionServiceException ex) {
2590 chandransh 37075
      this.ex = ex;
37076
    }
37077
 
37078
    public void unsetEx() {
37079
      this.ex = null;
37080
    }
37081
 
3430 rajveer 37082
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2590 chandransh 37083
    public boolean isSetEx() {
37084
      return this.ex != null;
37085
    }
37086
 
37087
    public void setExIsSet(boolean value) {
37088
      if (!value) {
37089
        this.ex = null;
37090
      }
37091
    }
37092
 
37093
    public void setFieldValue(_Fields field, Object value) {
37094
      switch (field) {
37095
      case SUCCESS:
37096
        if (value == null) {
37097
          unsetSuccess();
37098
        } else {
37099
          setSuccess((Boolean)value);
37100
        }
37101
        break;
37102
 
37103
      case EX:
37104
        if (value == null) {
37105
          unsetEx();
37106
        } else {
37107
          setEx((TransactionServiceException)value);
37108
        }
37109
        break;
37110
 
37111
      }
37112
    }
37113
 
37114
    public Object getFieldValue(_Fields field) {
37115
      switch (field) {
37116
      case SUCCESS:
3430 rajveer 37117
        return Boolean.valueOf(isSuccess());
2590 chandransh 37118
 
37119
      case EX:
37120
        return getEx();
37121
 
37122
      }
37123
      throw new IllegalStateException();
37124
    }
37125
 
3430 rajveer 37126
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37127
    public boolean isSet(_Fields field) {
37128
      if (field == null) {
37129
        throw new IllegalArgumentException();
37130
      }
2590 chandransh 37131
 
37132
      switch (field) {
37133
      case SUCCESS:
37134
        return isSetSuccess();
37135
      case EX:
37136
        return isSetEx();
37137
      }
37138
      throw new IllegalStateException();
37139
    }
37140
 
37141
    @Override
37142
    public boolean equals(Object that) {
37143
      if (that == null)
37144
        return false;
2615 chandransh 37145
      if (that instanceof receiveReturn_result)
37146
        return this.equals((receiveReturn_result)that);
2590 chandransh 37147
      return false;
37148
    }
37149
 
2615 chandransh 37150
    public boolean equals(receiveReturn_result that) {
2590 chandransh 37151
      if (that == null)
37152
        return false;
37153
 
37154
      boolean this_present_success = true;
37155
      boolean that_present_success = true;
37156
      if (this_present_success || that_present_success) {
37157
        if (!(this_present_success && that_present_success))
37158
          return false;
37159
        if (this.success != that.success)
37160
          return false;
37161
      }
37162
 
37163
      boolean this_present_ex = true && this.isSetEx();
37164
      boolean that_present_ex = true && that.isSetEx();
37165
      if (this_present_ex || that_present_ex) {
37166
        if (!(this_present_ex && that_present_ex))
37167
          return false;
37168
        if (!this.ex.equals(that.ex))
37169
          return false;
37170
      }
37171
 
37172
      return true;
37173
    }
37174
 
37175
    @Override
37176
    public int hashCode() {
37177
      return 0;
37178
    }
37179
 
2615 chandransh 37180
    public int compareTo(receiveReturn_result other) {
2590 chandransh 37181
      if (!getClass().equals(other.getClass())) {
37182
        return getClass().getName().compareTo(other.getClass().getName());
37183
      }
37184
 
37185
      int lastComparison = 0;
2615 chandransh 37186
      receiveReturn_result typedOther = (receiveReturn_result)other;
2590 chandransh 37187
 
3430 rajveer 37188
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2590 chandransh 37189
      if (lastComparison != 0) {
37190
        return lastComparison;
37191
      }
3430 rajveer 37192
      if (isSetSuccess()) {
37193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37194
        if (lastComparison != 0) {
37195
          return lastComparison;
37196
        }
2590 chandransh 37197
      }
3430 rajveer 37198
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2590 chandransh 37199
      if (lastComparison != 0) {
37200
        return lastComparison;
37201
      }
3430 rajveer 37202
      if (isSetEx()) {
37203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
37204
        if (lastComparison != 0) {
37205
          return lastComparison;
37206
        }
2590 chandransh 37207
      }
37208
      return 0;
37209
    }
37210
 
3430 rajveer 37211
    public _Fields fieldForId(int fieldId) {
37212
      return _Fields.findByThriftId(fieldId);
37213
    }
37214
 
37215
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37216
      org.apache.thrift.protocol.TField field;
2590 chandransh 37217
      iprot.readStructBegin();
37218
      while (true)
37219
      {
37220
        field = iprot.readFieldBegin();
3430 rajveer 37221
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2590 chandransh 37222
          break;
37223
        }
3430 rajveer 37224
        switch (field.id) {
37225
          case 0: // SUCCESS
37226
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
37227
              this.success = iprot.readBool();
37228
              setSuccessIsSet(true);
37229
            } else { 
37230
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37231
            }
37232
            break;
37233
          case 1: // EX
37234
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
37235
              this.ex = new TransactionServiceException();
37236
              this.ex.read(iprot);
37237
            } else { 
37238
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37239
            }
37240
            break;
37241
          default:
37242
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2590 chandransh 37243
        }
3430 rajveer 37244
        iprot.readFieldEnd();
2590 chandransh 37245
      }
37246
      iprot.readStructEnd();
37247
      validate();
37248
    }
37249
 
3430 rajveer 37250
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2590 chandransh 37251
      oprot.writeStructBegin(STRUCT_DESC);
37252
 
37253
      if (this.isSetSuccess()) {
37254
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37255
        oprot.writeBool(this.success);
37256
        oprot.writeFieldEnd();
37257
      } else if (this.isSetEx()) {
37258
        oprot.writeFieldBegin(EX_FIELD_DESC);
37259
        this.ex.write(oprot);
37260
        oprot.writeFieldEnd();
37261
      }
37262
      oprot.writeFieldStop();
37263
      oprot.writeStructEnd();
37264
    }
37265
 
37266
    @Override
37267
    public String toString() {
2615 chandransh 37268
      StringBuilder sb = new StringBuilder("receiveReturn_result(");
2590 chandransh 37269
      boolean first = true;
37270
 
37271
      sb.append("success:");
37272
      sb.append(this.success);
37273
      first = false;
37274
      if (!first) sb.append(", ");
37275
      sb.append("ex:");
37276
      if (this.ex == null) {
37277
        sb.append("null");
37278
      } else {
37279
        sb.append(this.ex);
37280
      }
37281
      first = false;
37282
      sb.append(")");
37283
      return sb.toString();
37284
    }
37285
 
3430 rajveer 37286
    public void validate() throws org.apache.thrift.TException {
2590 chandransh 37287
      // check for required fields
37288
    }
37289
 
3430 rajveer 37290
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37291
      try {
37292
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37293
      } catch (org.apache.thrift.TException te) {
37294
        throw new java.io.IOException(te);
37295
      }
37296
    }
37297
 
37298
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37299
      try {
37300
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37301
      } catch (org.apache.thrift.TException te) {
37302
        throw new java.io.IOException(te);
37303
      }
37304
    }
37305
 
2590 chandransh 37306
  }
37307
 
3430 rajveer 37308
  public static class validateDoa_args implements org.apache.thrift.TBase<validateDoa_args, validateDoa_args._Fields>, java.io.Serializable, Cloneable   {
37309
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateDoa_args");
2590 chandransh 37310
 
3430 rajveer 37311
    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);
37312
    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 37313
 
3430 rajveer 37314
    private long orderId; // required
37315
    private boolean isValid; // required
2590 chandransh 37316
 
37317
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37318
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2590 chandransh 37319
      ORDER_ID((short)1, "orderId"),
37320
      IS_VALID((short)2, "isValid");
37321
 
37322
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37323
 
37324
      static {
37325
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37326
          byName.put(field.getFieldName(), field);
37327
        }
37328
      }
37329
 
37330
      /**
37331
       * Find the _Fields constant that matches fieldId, or null if its not found.
37332
       */
37333
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37334
        switch(fieldId) {
37335
          case 1: // ORDER_ID
37336
            return ORDER_ID;
37337
          case 2: // IS_VALID
37338
            return IS_VALID;
37339
          default:
37340
            return null;
37341
        }
2590 chandransh 37342
      }
37343
 
37344
      /**
37345
       * Find the _Fields constant that matches fieldId, throwing an exception
37346
       * if it is not found.
37347
       */
37348
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37349
        _Fields fields = findByThriftId(fieldId);
37350
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37351
        return fields;
37352
      }
37353
 
37354
      /**
37355
       * Find the _Fields constant that matches name, or null if its not found.
37356
       */
37357
      public static _Fields findByName(String name) {
37358
        return byName.get(name);
37359
      }
37360
 
37361
      private final short _thriftId;
37362
      private final String _fieldName;
37363
 
37364
      _Fields(short thriftId, String fieldName) {
37365
        _thriftId = thriftId;
37366
        _fieldName = fieldName;
37367
      }
37368
 
37369
      public short getThriftFieldId() {
37370
        return _thriftId;
37371
      }
37372
 
37373
      public String getFieldName() {
37374
        return _fieldName;
37375
      }
37376
    }
37377
 
37378
    // isset id assignments
37379
    private static final int __ORDERID_ISSET_ID = 0;
37380
    private static final int __ISVALID_ISSET_ID = 1;
37381
    private BitSet __isset_bit_vector = new BitSet(2);
37382
 
3430 rajveer 37383
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2590 chandransh 37384
    static {
3430 rajveer 37385
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37386
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37387
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
37388
      tmpMap.put(_Fields.IS_VALID, new org.apache.thrift.meta_data.FieldMetaData("isValid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37389
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
37390
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37391
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateDoa_args.class, metaDataMap);
2590 chandransh 37392
    }
37393
 
37394
    public validateDoa_args() {
37395
    }
37396
 
37397
    public validateDoa_args(
37398
      long orderId,
37399
      boolean isValid)
37400
    {
37401
      this();
37402
      this.orderId = orderId;
37403
      setOrderIdIsSet(true);
37404
      this.isValid = isValid;
37405
      setIsValidIsSet(true);
37406
    }
37407
 
37408
    /**
37409
     * Performs a deep copy on <i>other</i>.
37410
     */
37411
    public validateDoa_args(validateDoa_args other) {
37412
      __isset_bit_vector.clear();
37413
      __isset_bit_vector.or(other.__isset_bit_vector);
37414
      this.orderId = other.orderId;
37415
      this.isValid = other.isValid;
37416
    }
37417
 
37418
    public validateDoa_args deepCopy() {
37419
      return new validateDoa_args(this);
37420
    }
37421
 
3430 rajveer 37422
    @Override
37423
    public void clear() {
37424
      setOrderIdIsSet(false);
37425
      this.orderId = 0;
37426
      setIsValidIsSet(false);
37427
      this.isValid = false;
2590 chandransh 37428
    }
37429
 
37430
    public long getOrderId() {
37431
      return this.orderId;
37432
    }
37433
 
3430 rajveer 37434
    public void setOrderId(long orderId) {
2590 chandransh 37435
      this.orderId = orderId;
37436
      setOrderIdIsSet(true);
37437
    }
37438
 
37439
    public void unsetOrderId() {
37440
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
37441
    }
37442
 
3430 rajveer 37443
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2590 chandransh 37444
    public boolean isSetOrderId() {
37445
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
37446
    }
37447
 
37448
    public void setOrderIdIsSet(boolean value) {
37449
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
37450
    }
37451
 
37452
    public boolean isIsValid() {
37453
      return this.isValid;
37454
    }
37455
 
3430 rajveer 37456
    public void setIsValid(boolean isValid) {
2590 chandransh 37457
      this.isValid = isValid;
37458
      setIsValidIsSet(true);
37459
    }
37460
 
37461
    public void unsetIsValid() {
37462
      __isset_bit_vector.clear(__ISVALID_ISSET_ID);
37463
    }
37464
 
3430 rajveer 37465
    /** Returns true if field isValid is set (has been assigned a value) and false otherwise */
2590 chandransh 37466
    public boolean isSetIsValid() {
37467
      return __isset_bit_vector.get(__ISVALID_ISSET_ID);
37468
    }
37469
 
37470
    public void setIsValidIsSet(boolean value) {
37471
      __isset_bit_vector.set(__ISVALID_ISSET_ID, value);
37472
    }
37473
 
37474
    public void setFieldValue(_Fields field, Object value) {
37475
      switch (field) {
37476
      case ORDER_ID:
37477
        if (value == null) {
37478
          unsetOrderId();
37479
        } else {
37480
          setOrderId((Long)value);
37481
        }
37482
        break;
37483
 
37484
      case IS_VALID:
37485
        if (value == null) {
37486
          unsetIsValid();
37487
        } else {
37488
          setIsValid((Boolean)value);
37489
        }
37490
        break;
37491
 
37492
      }
37493
    }
37494
 
37495
    public Object getFieldValue(_Fields field) {
37496
      switch (field) {
37497
      case ORDER_ID:
3430 rajveer 37498
        return Long.valueOf(getOrderId());
2590 chandransh 37499
 
37500
      case IS_VALID:
3430 rajveer 37501
        return Boolean.valueOf(isIsValid());
2590 chandransh 37502
 
37503
      }
37504
      throw new IllegalStateException();
37505
    }
37506
 
3430 rajveer 37507
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37508
    public boolean isSet(_Fields field) {
37509
      if (field == null) {
37510
        throw new IllegalArgumentException();
37511
      }
2590 chandransh 37512
 
37513
      switch (field) {
37514
      case ORDER_ID:
37515
        return isSetOrderId();
37516
      case IS_VALID:
37517
        return isSetIsValid();
37518
      }
37519
      throw new IllegalStateException();
37520
    }
37521
 
37522
    @Override
37523
    public boolean equals(Object that) {
37524
      if (that == null)
37525
        return false;
37526
      if (that instanceof validateDoa_args)
37527
        return this.equals((validateDoa_args)that);
37528
      return false;
37529
    }
37530
 
37531
    public boolean equals(validateDoa_args that) {
37532
      if (that == null)
37533
        return false;
37534
 
37535
      boolean this_present_orderId = true;
37536
      boolean that_present_orderId = true;
37537
      if (this_present_orderId || that_present_orderId) {
37538
        if (!(this_present_orderId && that_present_orderId))
37539
          return false;
37540
        if (this.orderId != that.orderId)
37541
          return false;
37542
      }
37543
 
37544
      boolean this_present_isValid = true;
37545
      boolean that_present_isValid = true;
37546
      if (this_present_isValid || that_present_isValid) {
37547
        if (!(this_present_isValid && that_present_isValid))
37548
          return false;
37549
        if (this.isValid != that.isValid)
37550
          return false;
37551
      }
37552
 
37553
      return true;
37554
    }
37555
 
37556
    @Override
37557
    public int hashCode() {
37558
      return 0;
37559
    }
37560
 
37561
    public int compareTo(validateDoa_args other) {
37562
      if (!getClass().equals(other.getClass())) {
37563
        return getClass().getName().compareTo(other.getClass().getName());
37564
      }
37565
 
37566
      int lastComparison = 0;
37567
      validateDoa_args typedOther = (validateDoa_args)other;
37568
 
3430 rajveer 37569
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2590 chandransh 37570
      if (lastComparison != 0) {
37571
        return lastComparison;
37572
      }
3430 rajveer 37573
      if (isSetOrderId()) {
37574
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
37575
        if (lastComparison != 0) {
37576
          return lastComparison;
37577
        }
2590 chandransh 37578
      }
3430 rajveer 37579
      lastComparison = Boolean.valueOf(isSetIsValid()).compareTo(typedOther.isSetIsValid());
2590 chandransh 37580
      if (lastComparison != 0) {
37581
        return lastComparison;
37582
      }
3430 rajveer 37583
      if (isSetIsValid()) {
37584
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isValid, typedOther.isValid);
37585
        if (lastComparison != 0) {
37586
          return lastComparison;
37587
        }
2590 chandransh 37588
      }
37589
      return 0;
37590
    }
37591
 
3430 rajveer 37592
    public _Fields fieldForId(int fieldId) {
37593
      return _Fields.findByThriftId(fieldId);
37594
    }
37595
 
37596
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37597
      org.apache.thrift.protocol.TField field;
2590 chandransh 37598
      iprot.readStructBegin();
37599
      while (true)
37600
      {
37601
        field = iprot.readFieldBegin();
3430 rajveer 37602
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2590 chandransh 37603
          break;
37604
        }
3430 rajveer 37605
        switch (field.id) {
37606
          case 1: // ORDER_ID
37607
            if (field.type == org.apache.thrift.protocol.TType.I64) {
37608
              this.orderId = iprot.readI64();
37609
              setOrderIdIsSet(true);
37610
            } else { 
37611
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37612
            }
37613
            break;
37614
          case 2: // IS_VALID
37615
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
37616
              this.isValid = iprot.readBool();
37617
              setIsValidIsSet(true);
37618
            } else { 
37619
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37620
            }
37621
            break;
37622
          default:
37623
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2590 chandransh 37624
        }
3430 rajveer 37625
        iprot.readFieldEnd();
2590 chandransh 37626
      }
37627
      iprot.readStructEnd();
37628
      validate();
37629
    }
37630
 
3430 rajveer 37631
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2590 chandransh 37632
      validate();
37633
 
37634
      oprot.writeStructBegin(STRUCT_DESC);
37635
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
37636
      oprot.writeI64(this.orderId);
37637
      oprot.writeFieldEnd();
37638
      oprot.writeFieldBegin(IS_VALID_FIELD_DESC);
37639
      oprot.writeBool(this.isValid);
37640
      oprot.writeFieldEnd();
37641
      oprot.writeFieldStop();
37642
      oprot.writeStructEnd();
37643
    }
37644
 
37645
    @Override
37646
    public String toString() {
37647
      StringBuilder sb = new StringBuilder("validateDoa_args(");
37648
      boolean first = true;
37649
 
37650
      sb.append("orderId:");
37651
      sb.append(this.orderId);
37652
      first = false;
37653
      if (!first) sb.append(", ");
37654
      sb.append("isValid:");
37655
      sb.append(this.isValid);
37656
      first = false;
37657
      sb.append(")");
37658
      return sb.toString();
37659
    }
37660
 
3430 rajveer 37661
    public void validate() throws org.apache.thrift.TException {
2590 chandransh 37662
      // check for required fields
37663
    }
37664
 
3430 rajveer 37665
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37666
      try {
37667
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37668
      } catch (org.apache.thrift.TException te) {
37669
        throw new java.io.IOException(te);
37670
      }
37671
    }
37672
 
37673
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37674
      try {
37675
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37676
      } catch (org.apache.thrift.TException te) {
37677
        throw new java.io.IOException(te);
37678
      }
37679
    }
37680
 
2590 chandransh 37681
  }
37682
 
3430 rajveer 37683
  public static class validateDoa_result implements org.apache.thrift.TBase<validateDoa_result, validateDoa_result._Fields>, java.io.Serializable, Cloneable   {
37684
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateDoa_result");
2590 chandransh 37685
 
3430 rajveer 37686
    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);
37687
    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 37688
 
3430 rajveer 37689
    private boolean success; // required
37690
    private TransactionServiceException ex; // required
2590 chandransh 37691
 
37692
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37693
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2590 chandransh 37694
      SUCCESS((short)0, "success"),
37695
      EX((short)1, "ex");
37696
 
37697
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37698
 
37699
      static {
37700
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37701
          byName.put(field.getFieldName(), field);
37702
        }
37703
      }
37704
 
37705
      /**
37706
       * Find the _Fields constant that matches fieldId, or null if its not found.
37707
       */
37708
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37709
        switch(fieldId) {
37710
          case 0: // SUCCESS
37711
            return SUCCESS;
37712
          case 1: // EX
37713
            return EX;
37714
          default:
37715
            return null;
37716
        }
2590 chandransh 37717
      }
37718
 
37719
      /**
37720
       * Find the _Fields constant that matches fieldId, throwing an exception
37721
       * if it is not found.
37722
       */
37723
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37724
        _Fields fields = findByThriftId(fieldId);
37725
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37726
        return fields;
37727
      }
37728
 
37729
      /**
37730
       * Find the _Fields constant that matches name, or null if its not found.
37731
       */
37732
      public static _Fields findByName(String name) {
37733
        return byName.get(name);
37734
      }
37735
 
37736
      private final short _thriftId;
37737
      private final String _fieldName;
37738
 
37739
      _Fields(short thriftId, String fieldName) {
37740
        _thriftId = thriftId;
37741
        _fieldName = fieldName;
37742
      }
37743
 
37744
      public short getThriftFieldId() {
37745
        return _thriftId;
37746
      }
37747
 
37748
      public String getFieldName() {
37749
        return _fieldName;
37750
      }
37751
    }
37752
 
37753
    // isset id assignments
37754
    private static final int __SUCCESS_ISSET_ID = 0;
37755
    private BitSet __isset_bit_vector = new BitSet(1);
37756
 
3430 rajveer 37757
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2590 chandransh 37758
    static {
3430 rajveer 37759
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37760
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37761
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
37762
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37764
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37765
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateDoa_result.class, metaDataMap);
2590 chandransh 37766
    }
37767
 
37768
    public validateDoa_result() {
37769
    }
37770
 
37771
    public validateDoa_result(
37772
      boolean success,
37773
      TransactionServiceException ex)
37774
    {
37775
      this();
37776
      this.success = success;
37777
      setSuccessIsSet(true);
37778
      this.ex = ex;
37779
    }
37780
 
37781
    /**
37782
     * Performs a deep copy on <i>other</i>.
37783
     */
37784
    public validateDoa_result(validateDoa_result other) {
37785
      __isset_bit_vector.clear();
37786
      __isset_bit_vector.or(other.__isset_bit_vector);
37787
      this.success = other.success;
37788
      if (other.isSetEx()) {
37789
        this.ex = new TransactionServiceException(other.ex);
37790
      }
37791
    }
37792
 
37793
    public validateDoa_result deepCopy() {
37794
      return new validateDoa_result(this);
37795
    }
37796
 
3430 rajveer 37797
    @Override
37798
    public void clear() {
37799
      setSuccessIsSet(false);
37800
      this.success = false;
37801
      this.ex = null;
2590 chandransh 37802
    }
37803
 
37804
    public boolean isSuccess() {
37805
      return this.success;
37806
    }
37807
 
3430 rajveer 37808
    public void setSuccess(boolean success) {
2590 chandransh 37809
      this.success = success;
37810
      setSuccessIsSet(true);
37811
    }
37812
 
37813
    public void unsetSuccess() {
37814
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
37815
    }
37816
 
3430 rajveer 37817
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2590 chandransh 37818
    public boolean isSetSuccess() {
37819
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
37820
    }
37821
 
37822
    public void setSuccessIsSet(boolean value) {
37823
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
37824
    }
37825
 
37826
    public TransactionServiceException getEx() {
37827
      return this.ex;
37828
    }
37829
 
3430 rajveer 37830
    public void setEx(TransactionServiceException ex) {
2590 chandransh 37831
      this.ex = ex;
37832
    }
37833
 
37834
    public void unsetEx() {
37835
      this.ex = null;
37836
    }
37837
 
3430 rajveer 37838
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2590 chandransh 37839
    public boolean isSetEx() {
37840
      return this.ex != null;
37841
    }
37842
 
37843
    public void setExIsSet(boolean value) {
37844
      if (!value) {
37845
        this.ex = null;
37846
      }
37847
    }
37848
 
37849
    public void setFieldValue(_Fields field, Object value) {
37850
      switch (field) {
37851
      case SUCCESS:
37852
        if (value == null) {
37853
          unsetSuccess();
37854
        } else {
37855
          setSuccess((Boolean)value);
37856
        }
37857
        break;
37858
 
37859
      case EX:
37860
        if (value == null) {
37861
          unsetEx();
37862
        } else {
37863
          setEx((TransactionServiceException)value);
37864
        }
37865
        break;
37866
 
37867
      }
37868
    }
37869
 
37870
    public Object getFieldValue(_Fields field) {
37871
      switch (field) {
37872
      case SUCCESS:
3430 rajveer 37873
        return Boolean.valueOf(isSuccess());
2590 chandransh 37874
 
37875
      case EX:
37876
        return getEx();
37877
 
37878
      }
37879
      throw new IllegalStateException();
37880
    }
37881
 
3430 rajveer 37882
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37883
    public boolean isSet(_Fields field) {
37884
      if (field == null) {
37885
        throw new IllegalArgumentException();
37886
      }
2590 chandransh 37887
 
37888
      switch (field) {
37889
      case SUCCESS:
37890
        return isSetSuccess();
37891
      case EX:
37892
        return isSetEx();
37893
      }
37894
      throw new IllegalStateException();
37895
    }
37896
 
37897
    @Override
37898
    public boolean equals(Object that) {
37899
      if (that == null)
37900
        return false;
37901
      if (that instanceof validateDoa_result)
37902
        return this.equals((validateDoa_result)that);
37903
      return false;
37904
    }
37905
 
37906
    public boolean equals(validateDoa_result that) {
37907
      if (that == null)
37908
        return false;
37909
 
37910
      boolean this_present_success = true;
37911
      boolean that_present_success = true;
37912
      if (this_present_success || that_present_success) {
37913
        if (!(this_present_success && that_present_success))
37914
          return false;
37915
        if (this.success != that.success)
37916
          return false;
37917
      }
37918
 
37919
      boolean this_present_ex = true && this.isSetEx();
37920
      boolean that_present_ex = true && that.isSetEx();
37921
      if (this_present_ex || that_present_ex) {
37922
        if (!(this_present_ex && that_present_ex))
37923
          return false;
37924
        if (!this.ex.equals(that.ex))
37925
          return false;
37926
      }
37927
 
37928
      return true;
37929
    }
37930
 
37931
    @Override
37932
    public int hashCode() {
37933
      return 0;
37934
    }
37935
 
37936
    public int compareTo(validateDoa_result other) {
37937
      if (!getClass().equals(other.getClass())) {
37938
        return getClass().getName().compareTo(other.getClass().getName());
37939
      }
37940
 
37941
      int lastComparison = 0;
37942
      validateDoa_result typedOther = (validateDoa_result)other;
37943
 
3430 rajveer 37944
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2590 chandransh 37945
      if (lastComparison != 0) {
37946
        return lastComparison;
37947
      }
3430 rajveer 37948
      if (isSetSuccess()) {
37949
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37950
        if (lastComparison != 0) {
37951
          return lastComparison;
37952
        }
2590 chandransh 37953
      }
3430 rajveer 37954
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2590 chandransh 37955
      if (lastComparison != 0) {
37956
        return lastComparison;
37957
      }
3430 rajveer 37958
      if (isSetEx()) {
37959
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
37960
        if (lastComparison != 0) {
37961
          return lastComparison;
37962
        }
2590 chandransh 37963
      }
37964
      return 0;
37965
    }
37966
 
3430 rajveer 37967
    public _Fields fieldForId(int fieldId) {
37968
      return _Fields.findByThriftId(fieldId);
37969
    }
37970
 
37971
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37972
      org.apache.thrift.protocol.TField field;
2590 chandransh 37973
      iprot.readStructBegin();
37974
      while (true)
37975
      {
37976
        field = iprot.readFieldBegin();
3430 rajveer 37977
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2590 chandransh 37978
          break;
37979
        }
3430 rajveer 37980
        switch (field.id) {
37981
          case 0: // SUCCESS
37982
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
37983
              this.success = iprot.readBool();
37984
              setSuccessIsSet(true);
37985
            } else { 
37986
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37987
            }
37988
            break;
37989
          case 1: // EX
37990
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
37991
              this.ex = new TransactionServiceException();
37992
              this.ex.read(iprot);
37993
            } else { 
37994
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37995
            }
37996
            break;
37997
          default:
37998
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2590 chandransh 37999
        }
3430 rajveer 38000
        iprot.readFieldEnd();
2590 chandransh 38001
      }
38002
      iprot.readStructEnd();
38003
      validate();
38004
    }
38005
 
3430 rajveer 38006
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2590 chandransh 38007
      oprot.writeStructBegin(STRUCT_DESC);
38008
 
38009
      if (this.isSetSuccess()) {
38010
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38011
        oprot.writeBool(this.success);
38012
        oprot.writeFieldEnd();
38013
      } else if (this.isSetEx()) {
38014
        oprot.writeFieldBegin(EX_FIELD_DESC);
38015
        this.ex.write(oprot);
38016
        oprot.writeFieldEnd();
38017
      }
38018
      oprot.writeFieldStop();
38019
      oprot.writeStructEnd();
38020
    }
38021
 
38022
    @Override
38023
    public String toString() {
38024
      StringBuilder sb = new StringBuilder("validateDoa_result(");
38025
      boolean first = true;
38026
 
38027
      sb.append("success:");
38028
      sb.append(this.success);
38029
      first = false;
38030
      if (!first) sb.append(", ");
38031
      sb.append("ex:");
38032
      if (this.ex == null) {
38033
        sb.append("null");
38034
      } else {
38035
        sb.append(this.ex);
38036
      }
38037
      first = false;
38038
      sb.append(")");
38039
      return sb.toString();
38040
    }
38041
 
3430 rajveer 38042
    public void validate() throws org.apache.thrift.TException {
2590 chandransh 38043
      // check for required fields
38044
    }
38045
 
3430 rajveer 38046
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38047
      try {
38048
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38049
      } catch (org.apache.thrift.TException te) {
38050
        throw new java.io.IOException(te);
38051
      }
38052
    }
38053
 
38054
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38055
      try {
38056
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38057
      } catch (org.apache.thrift.TException te) {
38058
        throw new java.io.IOException(te);
38059
      }
38060
    }
38061
 
2590 chandransh 38062
  }
38063
 
3430 rajveer 38064
  public static class reshipOrder_args implements org.apache.thrift.TBase<reshipOrder_args, reshipOrder_args._Fields>, java.io.Serializable, Cloneable   {
38065
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipOrder_args");
2615 chandransh 38066
 
3430 rajveer 38067
    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 38068
 
3430 rajveer 38069
    private long orderId; // required
2615 chandransh 38070
 
38071
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38072
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2615 chandransh 38073
      ORDER_ID((short)1, "orderId");
38074
 
38075
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38076
 
38077
      static {
38078
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38079
          byName.put(field.getFieldName(), field);
38080
        }
38081
      }
38082
 
38083
      /**
38084
       * Find the _Fields constant that matches fieldId, or null if its not found.
38085
       */
38086
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38087
        switch(fieldId) {
38088
          case 1: // ORDER_ID
38089
            return ORDER_ID;
38090
          default:
38091
            return null;
38092
        }
2615 chandransh 38093
      }
38094
 
38095
      /**
38096
       * Find the _Fields constant that matches fieldId, throwing an exception
38097
       * if it is not found.
38098
       */
38099
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38100
        _Fields fields = findByThriftId(fieldId);
38101
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38102
        return fields;
38103
      }
38104
 
38105
      /**
38106
       * Find the _Fields constant that matches name, or null if its not found.
38107
       */
38108
      public static _Fields findByName(String name) {
38109
        return byName.get(name);
38110
      }
38111
 
38112
      private final short _thriftId;
38113
      private final String _fieldName;
38114
 
38115
      _Fields(short thriftId, String fieldName) {
38116
        _thriftId = thriftId;
38117
        _fieldName = fieldName;
38118
      }
38119
 
38120
      public short getThriftFieldId() {
38121
        return _thriftId;
38122
      }
38123
 
38124
      public String getFieldName() {
38125
        return _fieldName;
38126
      }
38127
    }
38128
 
38129
    // isset id assignments
38130
    private static final int __ORDERID_ISSET_ID = 0;
38131
    private BitSet __isset_bit_vector = new BitSet(1);
38132
 
3430 rajveer 38133
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2615 chandransh 38134
    static {
3430 rajveer 38135
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38136
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38137
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38138
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38139
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipOrder_args.class, metaDataMap);
2615 chandransh 38140
    }
38141
 
38142
    public reshipOrder_args() {
38143
    }
38144
 
38145
    public reshipOrder_args(
38146
      long orderId)
38147
    {
38148
      this();
38149
      this.orderId = orderId;
38150
      setOrderIdIsSet(true);
38151
    }
38152
 
38153
    /**
38154
     * Performs a deep copy on <i>other</i>.
38155
     */
38156
    public reshipOrder_args(reshipOrder_args other) {
38157
      __isset_bit_vector.clear();
38158
      __isset_bit_vector.or(other.__isset_bit_vector);
38159
      this.orderId = other.orderId;
38160
    }
38161
 
38162
    public reshipOrder_args deepCopy() {
38163
      return new reshipOrder_args(this);
38164
    }
38165
 
3430 rajveer 38166
    @Override
38167
    public void clear() {
38168
      setOrderIdIsSet(false);
38169
      this.orderId = 0;
2615 chandransh 38170
    }
38171
 
38172
    public long getOrderId() {
38173
      return this.orderId;
38174
    }
38175
 
3430 rajveer 38176
    public void setOrderId(long orderId) {
2615 chandransh 38177
      this.orderId = orderId;
38178
      setOrderIdIsSet(true);
38179
    }
38180
 
38181
    public void unsetOrderId() {
38182
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
38183
    }
38184
 
3430 rajveer 38185
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2615 chandransh 38186
    public boolean isSetOrderId() {
38187
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
38188
    }
38189
 
38190
    public void setOrderIdIsSet(boolean value) {
38191
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
38192
    }
38193
 
38194
    public void setFieldValue(_Fields field, Object value) {
38195
      switch (field) {
38196
      case ORDER_ID:
38197
        if (value == null) {
38198
          unsetOrderId();
38199
        } else {
38200
          setOrderId((Long)value);
38201
        }
38202
        break;
38203
 
38204
      }
38205
    }
38206
 
38207
    public Object getFieldValue(_Fields field) {
38208
      switch (field) {
38209
      case ORDER_ID:
3430 rajveer 38210
        return Long.valueOf(getOrderId());
2615 chandransh 38211
 
38212
      }
38213
      throw new IllegalStateException();
38214
    }
38215
 
3430 rajveer 38216
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38217
    public boolean isSet(_Fields field) {
38218
      if (field == null) {
38219
        throw new IllegalArgumentException();
38220
      }
2615 chandransh 38221
 
38222
      switch (field) {
38223
      case ORDER_ID:
38224
        return isSetOrderId();
38225
      }
38226
      throw new IllegalStateException();
38227
    }
38228
 
38229
    @Override
38230
    public boolean equals(Object that) {
38231
      if (that == null)
38232
        return false;
38233
      if (that instanceof reshipOrder_args)
38234
        return this.equals((reshipOrder_args)that);
38235
      return false;
38236
    }
38237
 
38238
    public boolean equals(reshipOrder_args that) {
38239
      if (that == null)
38240
        return false;
38241
 
38242
      boolean this_present_orderId = true;
38243
      boolean that_present_orderId = true;
38244
      if (this_present_orderId || that_present_orderId) {
38245
        if (!(this_present_orderId && that_present_orderId))
38246
          return false;
38247
        if (this.orderId != that.orderId)
38248
          return false;
38249
      }
38250
 
38251
      return true;
38252
    }
38253
 
38254
    @Override
38255
    public int hashCode() {
38256
      return 0;
38257
    }
38258
 
38259
    public int compareTo(reshipOrder_args other) {
38260
      if (!getClass().equals(other.getClass())) {
38261
        return getClass().getName().compareTo(other.getClass().getName());
38262
      }
38263
 
38264
      int lastComparison = 0;
38265
      reshipOrder_args typedOther = (reshipOrder_args)other;
38266
 
3430 rajveer 38267
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2615 chandransh 38268
      if (lastComparison != 0) {
38269
        return lastComparison;
38270
      }
3430 rajveer 38271
      if (isSetOrderId()) {
38272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
38273
        if (lastComparison != 0) {
38274
          return lastComparison;
38275
        }
2615 chandransh 38276
      }
38277
      return 0;
38278
    }
38279
 
3430 rajveer 38280
    public _Fields fieldForId(int fieldId) {
38281
      return _Fields.findByThriftId(fieldId);
38282
    }
38283
 
38284
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38285
      org.apache.thrift.protocol.TField field;
2615 chandransh 38286
      iprot.readStructBegin();
38287
      while (true)
38288
      {
38289
        field = iprot.readFieldBegin();
3430 rajveer 38290
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2615 chandransh 38291
          break;
38292
        }
3430 rajveer 38293
        switch (field.id) {
38294
          case 1: // ORDER_ID
38295
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38296
              this.orderId = iprot.readI64();
38297
              setOrderIdIsSet(true);
38298
            } else { 
38299
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38300
            }
38301
            break;
38302
          default:
38303
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2615 chandransh 38304
        }
3430 rajveer 38305
        iprot.readFieldEnd();
2615 chandransh 38306
      }
38307
      iprot.readStructEnd();
38308
      validate();
38309
    }
38310
 
3430 rajveer 38311
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2615 chandransh 38312
      validate();
38313
 
38314
      oprot.writeStructBegin(STRUCT_DESC);
38315
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
38316
      oprot.writeI64(this.orderId);
38317
      oprot.writeFieldEnd();
38318
      oprot.writeFieldStop();
38319
      oprot.writeStructEnd();
38320
    }
38321
 
38322
    @Override
38323
    public String toString() {
38324
      StringBuilder sb = new StringBuilder("reshipOrder_args(");
38325
      boolean first = true;
38326
 
38327
      sb.append("orderId:");
38328
      sb.append(this.orderId);
38329
      first = false;
38330
      sb.append(")");
38331
      return sb.toString();
38332
    }
38333
 
3430 rajveer 38334
    public void validate() throws org.apache.thrift.TException {
2615 chandransh 38335
      // check for required fields
38336
    }
38337
 
3430 rajveer 38338
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38339
      try {
38340
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38341
      } catch (org.apache.thrift.TException te) {
38342
        throw new java.io.IOException(te);
38343
      }
38344
    }
38345
 
38346
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38347
      try {
38348
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38349
      } catch (org.apache.thrift.TException te) {
38350
        throw new java.io.IOException(te);
38351
      }
38352
    }
38353
 
2615 chandransh 38354
  }
38355
 
3430 rajveer 38356
  public static class reshipOrder_result implements org.apache.thrift.TBase<reshipOrder_result, reshipOrder_result._Fields>, java.io.Serializable, Cloneable   {
38357
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipOrder_result");
2615 chandransh 38358
 
3430 rajveer 38359
    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);
38360
    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 38361
 
3430 rajveer 38362
    private long success; // required
38363
    private TransactionServiceException ex; // required
2615 chandransh 38364
 
38365
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38366
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2615 chandransh 38367
      SUCCESS((short)0, "success"),
38368
      EX((short)1, "ex");
38369
 
38370
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38371
 
38372
      static {
38373
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38374
          byName.put(field.getFieldName(), field);
38375
        }
38376
      }
38377
 
38378
      /**
38379
       * Find the _Fields constant that matches fieldId, or null if its not found.
38380
       */
38381
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38382
        switch(fieldId) {
38383
          case 0: // SUCCESS
38384
            return SUCCESS;
38385
          case 1: // EX
38386
            return EX;
38387
          default:
38388
            return null;
38389
        }
2615 chandransh 38390
      }
38391
 
38392
      /**
38393
       * Find the _Fields constant that matches fieldId, throwing an exception
38394
       * if it is not found.
38395
       */
38396
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38397
        _Fields fields = findByThriftId(fieldId);
38398
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38399
        return fields;
38400
      }
38401
 
38402
      /**
38403
       * Find the _Fields constant that matches name, or null if its not found.
38404
       */
38405
      public static _Fields findByName(String name) {
38406
        return byName.get(name);
38407
      }
38408
 
38409
      private final short _thriftId;
38410
      private final String _fieldName;
38411
 
38412
      _Fields(short thriftId, String fieldName) {
38413
        _thriftId = thriftId;
38414
        _fieldName = fieldName;
38415
      }
38416
 
38417
      public short getThriftFieldId() {
38418
        return _thriftId;
38419
      }
38420
 
38421
      public String getFieldName() {
38422
        return _fieldName;
38423
      }
38424
    }
38425
 
38426
    // isset id assignments
38427
    private static final int __SUCCESS_ISSET_ID = 0;
38428
    private BitSet __isset_bit_vector = new BitSet(1);
38429
 
3430 rajveer 38430
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2615 chandransh 38431
    static {
3430 rajveer 38432
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38433
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38434
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38435
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38436
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
38437
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38438
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipOrder_result.class, metaDataMap);
2615 chandransh 38439
    }
38440
 
38441
    public reshipOrder_result() {
38442
    }
38443
 
38444
    public reshipOrder_result(
38445
      long success,
38446
      TransactionServiceException ex)
38447
    {
38448
      this();
38449
      this.success = success;
38450
      setSuccessIsSet(true);
38451
      this.ex = ex;
38452
    }
38453
 
38454
    /**
38455
     * Performs a deep copy on <i>other</i>.
38456
     */
38457
    public reshipOrder_result(reshipOrder_result other) {
38458
      __isset_bit_vector.clear();
38459
      __isset_bit_vector.or(other.__isset_bit_vector);
38460
      this.success = other.success;
38461
      if (other.isSetEx()) {
38462
        this.ex = new TransactionServiceException(other.ex);
38463
      }
38464
    }
38465
 
38466
    public reshipOrder_result deepCopy() {
38467
      return new reshipOrder_result(this);
38468
    }
38469
 
3430 rajveer 38470
    @Override
38471
    public void clear() {
38472
      setSuccessIsSet(false);
38473
      this.success = 0;
38474
      this.ex = null;
2615 chandransh 38475
    }
38476
 
38477
    public long getSuccess() {
38478
      return this.success;
38479
    }
38480
 
3430 rajveer 38481
    public void setSuccess(long success) {
2615 chandransh 38482
      this.success = success;
38483
      setSuccessIsSet(true);
38484
    }
38485
 
38486
    public void unsetSuccess() {
38487
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
38488
    }
38489
 
3430 rajveer 38490
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2615 chandransh 38491
    public boolean isSetSuccess() {
38492
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
38493
    }
38494
 
38495
    public void setSuccessIsSet(boolean value) {
38496
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
38497
    }
38498
 
38499
    public TransactionServiceException getEx() {
38500
      return this.ex;
38501
    }
38502
 
3430 rajveer 38503
    public void setEx(TransactionServiceException ex) {
2615 chandransh 38504
      this.ex = ex;
38505
    }
38506
 
38507
    public void unsetEx() {
38508
      this.ex = null;
38509
    }
38510
 
3430 rajveer 38511
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2615 chandransh 38512
    public boolean isSetEx() {
38513
      return this.ex != null;
38514
    }
38515
 
38516
    public void setExIsSet(boolean value) {
38517
      if (!value) {
38518
        this.ex = null;
38519
      }
38520
    }
38521
 
38522
    public void setFieldValue(_Fields field, Object value) {
38523
      switch (field) {
38524
      case SUCCESS:
38525
        if (value == null) {
38526
          unsetSuccess();
38527
        } else {
38528
          setSuccess((Long)value);
38529
        }
38530
        break;
38531
 
38532
      case EX:
38533
        if (value == null) {
38534
          unsetEx();
38535
        } else {
38536
          setEx((TransactionServiceException)value);
38537
        }
38538
        break;
38539
 
38540
      }
38541
    }
38542
 
38543
    public Object getFieldValue(_Fields field) {
38544
      switch (field) {
38545
      case SUCCESS:
3430 rajveer 38546
        return Long.valueOf(getSuccess());
2615 chandransh 38547
 
38548
      case EX:
38549
        return getEx();
38550
 
38551
      }
38552
      throw new IllegalStateException();
38553
    }
38554
 
3430 rajveer 38555
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38556
    public boolean isSet(_Fields field) {
38557
      if (field == null) {
38558
        throw new IllegalArgumentException();
38559
      }
2615 chandransh 38560
 
38561
      switch (field) {
38562
      case SUCCESS:
38563
        return isSetSuccess();
38564
      case EX:
38565
        return isSetEx();
38566
      }
38567
      throw new IllegalStateException();
38568
    }
38569
 
38570
    @Override
38571
    public boolean equals(Object that) {
38572
      if (that == null)
38573
        return false;
38574
      if (that instanceof reshipOrder_result)
38575
        return this.equals((reshipOrder_result)that);
38576
      return false;
38577
    }
38578
 
38579
    public boolean equals(reshipOrder_result that) {
38580
      if (that == null)
38581
        return false;
38582
 
38583
      boolean this_present_success = true;
38584
      boolean that_present_success = true;
38585
      if (this_present_success || that_present_success) {
38586
        if (!(this_present_success && that_present_success))
38587
          return false;
38588
        if (this.success != that.success)
38589
          return false;
38590
      }
38591
 
38592
      boolean this_present_ex = true && this.isSetEx();
38593
      boolean that_present_ex = true && that.isSetEx();
38594
      if (this_present_ex || that_present_ex) {
38595
        if (!(this_present_ex && that_present_ex))
38596
          return false;
38597
        if (!this.ex.equals(that.ex))
38598
          return false;
38599
      }
38600
 
38601
      return true;
38602
    }
38603
 
38604
    @Override
38605
    public int hashCode() {
38606
      return 0;
38607
    }
38608
 
38609
    public int compareTo(reshipOrder_result other) {
38610
      if (!getClass().equals(other.getClass())) {
38611
        return getClass().getName().compareTo(other.getClass().getName());
38612
      }
38613
 
38614
      int lastComparison = 0;
38615
      reshipOrder_result typedOther = (reshipOrder_result)other;
38616
 
3430 rajveer 38617
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2615 chandransh 38618
      if (lastComparison != 0) {
38619
        return lastComparison;
38620
      }
3430 rajveer 38621
      if (isSetSuccess()) {
38622
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
38623
        if (lastComparison != 0) {
38624
          return lastComparison;
38625
        }
2615 chandransh 38626
      }
3430 rajveer 38627
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2615 chandransh 38628
      if (lastComparison != 0) {
38629
        return lastComparison;
38630
      }
3430 rajveer 38631
      if (isSetEx()) {
38632
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
38633
        if (lastComparison != 0) {
38634
          return lastComparison;
38635
        }
2615 chandransh 38636
      }
38637
      return 0;
38638
    }
38639
 
3430 rajveer 38640
    public _Fields fieldForId(int fieldId) {
38641
      return _Fields.findByThriftId(fieldId);
38642
    }
38643
 
38644
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38645
      org.apache.thrift.protocol.TField field;
2615 chandransh 38646
      iprot.readStructBegin();
38647
      while (true)
38648
      {
38649
        field = iprot.readFieldBegin();
3430 rajveer 38650
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2615 chandransh 38651
          break;
38652
        }
3430 rajveer 38653
        switch (field.id) {
38654
          case 0: // SUCCESS
38655
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38656
              this.success = iprot.readI64();
38657
              setSuccessIsSet(true);
38658
            } else { 
38659
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38660
            }
38661
            break;
38662
          case 1: // EX
38663
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
38664
              this.ex = new TransactionServiceException();
38665
              this.ex.read(iprot);
38666
            } else { 
38667
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38668
            }
38669
            break;
38670
          default:
38671
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2615 chandransh 38672
        }
3430 rajveer 38673
        iprot.readFieldEnd();
2615 chandransh 38674
      }
38675
      iprot.readStructEnd();
38676
      validate();
38677
    }
38678
 
3430 rajveer 38679
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2615 chandransh 38680
      oprot.writeStructBegin(STRUCT_DESC);
38681
 
38682
      if (this.isSetSuccess()) {
38683
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38684
        oprot.writeI64(this.success);
38685
        oprot.writeFieldEnd();
38686
      } else if (this.isSetEx()) {
38687
        oprot.writeFieldBegin(EX_FIELD_DESC);
38688
        this.ex.write(oprot);
38689
        oprot.writeFieldEnd();
38690
      }
38691
      oprot.writeFieldStop();
38692
      oprot.writeStructEnd();
38693
    }
38694
 
38695
    @Override
38696
    public String toString() {
38697
      StringBuilder sb = new StringBuilder("reshipOrder_result(");
38698
      boolean first = true;
38699
 
38700
      sb.append("success:");
38701
      sb.append(this.success);
38702
      first = false;
38703
      if (!first) sb.append(", ");
38704
      sb.append("ex:");
38705
      if (this.ex == null) {
38706
        sb.append("null");
38707
      } else {
38708
        sb.append(this.ex);
38709
      }
38710
      first = false;
38711
      sb.append(")");
38712
      return sb.toString();
38713
    }
38714
 
3430 rajveer 38715
    public void validate() throws org.apache.thrift.TException {
2615 chandransh 38716
      // check for required fields
38717
    }
38718
 
3430 rajveer 38719
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38720
      try {
38721
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38722
      } catch (org.apache.thrift.TException te) {
38723
        throw new java.io.IOException(te);
38724
      }
38725
    }
38726
 
38727
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38728
      try {
38729
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38730
      } catch (org.apache.thrift.TException te) {
38731
        throw new java.io.IOException(te);
38732
      }
38733
    }
38734
 
2615 chandransh 38735
  }
38736
 
3430 rajveer 38737
  public static class refundOrder_args implements org.apache.thrift.TBase<refundOrder_args, refundOrder_args._Fields>, java.io.Serializable, Cloneable   {
38738
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundOrder_args");
2615 chandransh 38739
 
3430 rajveer 38740
    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);
38741
    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);
38742
    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 38743
 
3430 rajveer 38744
    private long orderId; // required
38745
    private String refundedBy; // required
38746
    private String reason; // required
2615 chandransh 38747
 
38748
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38749
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3226 chandransh 38750
      ORDER_ID((short)1, "orderId"),
38751
      REFUNDED_BY((short)2, "refundedBy"),
38752
      REASON((short)3, "reason");
2615 chandransh 38753
 
38754
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38755
 
38756
      static {
38757
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38758
          byName.put(field.getFieldName(), field);
38759
        }
38760
      }
38761
 
38762
      /**
38763
       * Find the _Fields constant that matches fieldId, or null if its not found.
38764
       */
38765
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38766
        switch(fieldId) {
38767
          case 1: // ORDER_ID
38768
            return ORDER_ID;
38769
          case 2: // REFUNDED_BY
38770
            return REFUNDED_BY;
38771
          case 3: // REASON
38772
            return REASON;
38773
          default:
38774
            return null;
38775
        }
2615 chandransh 38776
      }
38777
 
38778
      /**
38779
       * Find the _Fields constant that matches fieldId, throwing an exception
38780
       * if it is not found.
38781
       */
38782
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38783
        _Fields fields = findByThriftId(fieldId);
38784
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38785
        return fields;
38786
      }
38787
 
38788
      /**
38789
       * Find the _Fields constant that matches name, or null if its not found.
38790
       */
38791
      public static _Fields findByName(String name) {
38792
        return byName.get(name);
38793
      }
38794
 
38795
      private final short _thriftId;
38796
      private final String _fieldName;
38797
 
38798
      _Fields(short thriftId, String fieldName) {
38799
        _thriftId = thriftId;
38800
        _fieldName = fieldName;
38801
      }
38802
 
38803
      public short getThriftFieldId() {
38804
        return _thriftId;
38805
      }
38806
 
38807
      public String getFieldName() {
38808
        return _fieldName;
38809
      }
38810
    }
38811
 
38812
    // isset id assignments
38813
    private static final int __ORDERID_ISSET_ID = 0;
38814
    private BitSet __isset_bit_vector = new BitSet(1);
38815
 
3430 rajveer 38816
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2615 chandransh 38817
    static {
3430 rajveer 38818
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38819
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38820
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38821
      tmpMap.put(_Fields.REFUNDED_BY, new org.apache.thrift.meta_data.FieldMetaData("refundedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38822
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
38823
      tmpMap.put(_Fields.REASON, new org.apache.thrift.meta_data.FieldMetaData("reason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38824
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
38825
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38826
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundOrder_args.class, metaDataMap);
2615 chandransh 38827
    }
38828
 
38829
    public refundOrder_args() {
38830
    }
38831
 
38832
    public refundOrder_args(
3226 chandransh 38833
      long orderId,
38834
      String refundedBy,
38835
      String reason)
2615 chandransh 38836
    {
38837
      this();
38838
      this.orderId = orderId;
38839
      setOrderIdIsSet(true);
3226 chandransh 38840
      this.refundedBy = refundedBy;
38841
      this.reason = reason;
2615 chandransh 38842
    }
38843
 
38844
    /**
38845
     * Performs a deep copy on <i>other</i>.
38846
     */
38847
    public refundOrder_args(refundOrder_args other) {
38848
      __isset_bit_vector.clear();
38849
      __isset_bit_vector.or(other.__isset_bit_vector);
38850
      this.orderId = other.orderId;
3226 chandransh 38851
      if (other.isSetRefundedBy()) {
38852
        this.refundedBy = other.refundedBy;
38853
      }
38854
      if (other.isSetReason()) {
38855
        this.reason = other.reason;
38856
      }
2615 chandransh 38857
    }
38858
 
38859
    public refundOrder_args deepCopy() {
38860
      return new refundOrder_args(this);
38861
    }
38862
 
3430 rajveer 38863
    @Override
38864
    public void clear() {
38865
      setOrderIdIsSet(false);
38866
      this.orderId = 0;
38867
      this.refundedBy = null;
38868
      this.reason = null;
2615 chandransh 38869
    }
38870
 
38871
    public long getOrderId() {
38872
      return this.orderId;
38873
    }
38874
 
3430 rajveer 38875
    public void setOrderId(long orderId) {
2615 chandransh 38876
      this.orderId = orderId;
38877
      setOrderIdIsSet(true);
38878
    }
38879
 
38880
    public void unsetOrderId() {
38881
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
38882
    }
38883
 
3430 rajveer 38884
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
2615 chandransh 38885
    public boolean isSetOrderId() {
38886
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
38887
    }
38888
 
38889
    public void setOrderIdIsSet(boolean value) {
38890
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
38891
    }
38892
 
3226 chandransh 38893
    public String getRefundedBy() {
38894
      return this.refundedBy;
38895
    }
38896
 
3430 rajveer 38897
    public void setRefundedBy(String refundedBy) {
3226 chandransh 38898
      this.refundedBy = refundedBy;
38899
    }
38900
 
38901
    public void unsetRefundedBy() {
38902
      this.refundedBy = null;
38903
    }
38904
 
3430 rajveer 38905
    /** Returns true if field refundedBy is set (has been assigned a value) and false otherwise */
3226 chandransh 38906
    public boolean isSetRefundedBy() {
38907
      return this.refundedBy != null;
38908
    }
38909
 
38910
    public void setRefundedByIsSet(boolean value) {
38911
      if (!value) {
38912
        this.refundedBy = null;
38913
      }
38914
    }
38915
 
38916
    public String getReason() {
38917
      return this.reason;
38918
    }
38919
 
3430 rajveer 38920
    public void setReason(String reason) {
3226 chandransh 38921
      this.reason = reason;
38922
    }
38923
 
38924
    public void unsetReason() {
38925
      this.reason = null;
38926
    }
38927
 
3430 rajveer 38928
    /** Returns true if field reason is set (has been assigned a value) and false otherwise */
3226 chandransh 38929
    public boolean isSetReason() {
38930
      return this.reason != null;
38931
    }
38932
 
38933
    public void setReasonIsSet(boolean value) {
38934
      if (!value) {
38935
        this.reason = null;
38936
      }
38937
    }
38938
 
2615 chandransh 38939
    public void setFieldValue(_Fields field, Object value) {
38940
      switch (field) {
38941
      case ORDER_ID:
38942
        if (value == null) {
38943
          unsetOrderId();
38944
        } else {
38945
          setOrderId((Long)value);
38946
        }
38947
        break;
38948
 
3226 chandransh 38949
      case REFUNDED_BY:
38950
        if (value == null) {
38951
          unsetRefundedBy();
38952
        } else {
38953
          setRefundedBy((String)value);
38954
        }
38955
        break;
38956
 
38957
      case REASON:
38958
        if (value == null) {
38959
          unsetReason();
38960
        } else {
38961
          setReason((String)value);
38962
        }
38963
        break;
38964
 
2615 chandransh 38965
      }
38966
    }
38967
 
38968
    public Object getFieldValue(_Fields field) {
38969
      switch (field) {
38970
      case ORDER_ID:
3430 rajveer 38971
        return Long.valueOf(getOrderId());
2615 chandransh 38972
 
3226 chandransh 38973
      case REFUNDED_BY:
38974
        return getRefundedBy();
38975
 
38976
      case REASON:
38977
        return getReason();
38978
 
2615 chandransh 38979
      }
38980
      throw new IllegalStateException();
38981
    }
38982
 
3430 rajveer 38983
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38984
    public boolean isSet(_Fields field) {
38985
      if (field == null) {
38986
        throw new IllegalArgumentException();
38987
      }
2615 chandransh 38988
 
38989
      switch (field) {
38990
      case ORDER_ID:
38991
        return isSetOrderId();
3226 chandransh 38992
      case REFUNDED_BY:
38993
        return isSetRefundedBy();
38994
      case REASON:
38995
        return isSetReason();
2615 chandransh 38996
      }
38997
      throw new IllegalStateException();
38998
    }
38999
 
39000
    @Override
39001
    public boolean equals(Object that) {
39002
      if (that == null)
39003
        return false;
39004
      if (that instanceof refundOrder_args)
39005
        return this.equals((refundOrder_args)that);
39006
      return false;
39007
    }
39008
 
39009
    public boolean equals(refundOrder_args that) {
39010
      if (that == null)
39011
        return false;
39012
 
39013
      boolean this_present_orderId = true;
39014
      boolean that_present_orderId = true;
39015
      if (this_present_orderId || that_present_orderId) {
39016
        if (!(this_present_orderId && that_present_orderId))
39017
          return false;
39018
        if (this.orderId != that.orderId)
39019
          return false;
39020
      }
39021
 
3226 chandransh 39022
      boolean this_present_refundedBy = true && this.isSetRefundedBy();
39023
      boolean that_present_refundedBy = true && that.isSetRefundedBy();
39024
      if (this_present_refundedBy || that_present_refundedBy) {
39025
        if (!(this_present_refundedBy && that_present_refundedBy))
39026
          return false;
39027
        if (!this.refundedBy.equals(that.refundedBy))
39028
          return false;
39029
      }
39030
 
39031
      boolean this_present_reason = true && this.isSetReason();
39032
      boolean that_present_reason = true && that.isSetReason();
39033
      if (this_present_reason || that_present_reason) {
39034
        if (!(this_present_reason && that_present_reason))
39035
          return false;
39036
        if (!this.reason.equals(that.reason))
39037
          return false;
39038
      }
39039
 
2615 chandransh 39040
      return true;
39041
    }
39042
 
39043
    @Override
39044
    public int hashCode() {
39045
      return 0;
39046
    }
39047
 
39048
    public int compareTo(refundOrder_args other) {
39049
      if (!getClass().equals(other.getClass())) {
39050
        return getClass().getName().compareTo(other.getClass().getName());
39051
      }
39052
 
39053
      int lastComparison = 0;
39054
      refundOrder_args typedOther = (refundOrder_args)other;
39055
 
3430 rajveer 39056
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2615 chandransh 39057
      if (lastComparison != 0) {
39058
        return lastComparison;
39059
      }
3430 rajveer 39060
      if (isSetOrderId()) {
39061
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
39062
        if (lastComparison != 0) {
39063
          return lastComparison;
39064
        }
2615 chandransh 39065
      }
3430 rajveer 39066
      lastComparison = Boolean.valueOf(isSetRefundedBy()).compareTo(typedOther.isSetRefundedBy());
3226 chandransh 39067
      if (lastComparison != 0) {
39068
        return lastComparison;
39069
      }
3430 rajveer 39070
      if (isSetRefundedBy()) {
39071
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundedBy, typedOther.refundedBy);
39072
        if (lastComparison != 0) {
39073
          return lastComparison;
39074
        }
3226 chandransh 39075
      }
3430 rajveer 39076
      lastComparison = Boolean.valueOf(isSetReason()).compareTo(typedOther.isSetReason());
3226 chandransh 39077
      if (lastComparison != 0) {
39078
        return lastComparison;
39079
      }
3430 rajveer 39080
      if (isSetReason()) {
39081
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reason, typedOther.reason);
39082
        if (lastComparison != 0) {
39083
          return lastComparison;
39084
        }
3226 chandransh 39085
      }
2615 chandransh 39086
      return 0;
39087
    }
39088
 
3430 rajveer 39089
    public _Fields fieldForId(int fieldId) {
39090
      return _Fields.findByThriftId(fieldId);
39091
    }
39092
 
39093
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39094
      org.apache.thrift.protocol.TField field;
2615 chandransh 39095
      iprot.readStructBegin();
39096
      while (true)
39097
      {
39098
        field = iprot.readFieldBegin();
3430 rajveer 39099
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2615 chandransh 39100
          break;
39101
        }
3430 rajveer 39102
        switch (field.id) {
39103
          case 1: // ORDER_ID
39104
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39105
              this.orderId = iprot.readI64();
39106
              setOrderIdIsSet(true);
39107
            } else { 
39108
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39109
            }
39110
            break;
39111
          case 2: // REFUNDED_BY
39112
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
39113
              this.refundedBy = iprot.readString();
39114
            } else { 
39115
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39116
            }
39117
            break;
39118
          case 3: // REASON
39119
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
39120
              this.reason = iprot.readString();
39121
            } else { 
39122
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39123
            }
39124
            break;
39125
          default:
39126
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2615 chandransh 39127
        }
3430 rajveer 39128
        iprot.readFieldEnd();
2615 chandransh 39129
      }
39130
      iprot.readStructEnd();
39131
      validate();
39132
    }
39133
 
3430 rajveer 39134
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2615 chandransh 39135
      validate();
39136
 
39137
      oprot.writeStructBegin(STRUCT_DESC);
39138
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
39139
      oprot.writeI64(this.orderId);
39140
      oprot.writeFieldEnd();
3226 chandransh 39141
      if (this.refundedBy != null) {
39142
        oprot.writeFieldBegin(REFUNDED_BY_FIELD_DESC);
39143
        oprot.writeString(this.refundedBy);
39144
        oprot.writeFieldEnd();
39145
      }
39146
      if (this.reason != null) {
39147
        oprot.writeFieldBegin(REASON_FIELD_DESC);
39148
        oprot.writeString(this.reason);
39149
        oprot.writeFieldEnd();
39150
      }
2615 chandransh 39151
      oprot.writeFieldStop();
39152
      oprot.writeStructEnd();
39153
    }
39154
 
39155
    @Override
39156
    public String toString() {
39157
      StringBuilder sb = new StringBuilder("refundOrder_args(");
39158
      boolean first = true;
39159
 
39160
      sb.append("orderId:");
39161
      sb.append(this.orderId);
39162
      first = false;
3226 chandransh 39163
      if (!first) sb.append(", ");
39164
      sb.append("refundedBy:");
39165
      if (this.refundedBy == null) {
39166
        sb.append("null");
39167
      } else {
39168
        sb.append(this.refundedBy);
39169
      }
39170
      first = false;
39171
      if (!first) sb.append(", ");
39172
      sb.append("reason:");
39173
      if (this.reason == null) {
39174
        sb.append("null");
39175
      } else {
39176
        sb.append(this.reason);
39177
      }
39178
      first = false;
2615 chandransh 39179
      sb.append(")");
39180
      return sb.toString();
39181
    }
39182
 
3430 rajveer 39183
    public void validate() throws org.apache.thrift.TException {
2615 chandransh 39184
      // check for required fields
39185
    }
39186
 
3430 rajveer 39187
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39188
      try {
39189
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39190
      } catch (org.apache.thrift.TException te) {
39191
        throw new java.io.IOException(te);
39192
      }
39193
    }
39194
 
39195
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39196
      try {
39197
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39198
      } catch (org.apache.thrift.TException te) {
39199
        throw new java.io.IOException(te);
39200
      }
39201
    }
39202
 
2615 chandransh 39203
  }
39204
 
3430 rajveer 39205
  public static class refundOrder_result implements org.apache.thrift.TBase<refundOrder_result, refundOrder_result._Fields>, java.io.Serializable, Cloneable   {
39206
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundOrder_result");
2615 chandransh 39207
 
3430 rajveer 39208
    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);
39209
    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 39210
 
3430 rajveer 39211
    private boolean success; // required
39212
    private TransactionServiceException ex; // required
2615 chandransh 39213
 
39214
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39215
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2615 chandransh 39216
      SUCCESS((short)0, "success"),
39217
      EX((short)1, "ex");
39218
 
39219
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39220
 
39221
      static {
39222
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39223
          byName.put(field.getFieldName(), field);
39224
        }
39225
      }
39226
 
39227
      /**
39228
       * Find the _Fields constant that matches fieldId, or null if its not found.
39229
       */
39230
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39231
        switch(fieldId) {
39232
          case 0: // SUCCESS
39233
            return SUCCESS;
39234
          case 1: // EX
39235
            return EX;
39236
          default:
39237
            return null;
39238
        }
2615 chandransh 39239
      }
39240
 
39241
      /**
39242
       * Find the _Fields constant that matches fieldId, throwing an exception
39243
       * if it is not found.
39244
       */
39245
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39246
        _Fields fields = findByThriftId(fieldId);
39247
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39248
        return fields;
39249
      }
39250
 
39251
      /**
39252
       * Find the _Fields constant that matches name, or null if its not found.
39253
       */
39254
      public static _Fields findByName(String name) {
39255
        return byName.get(name);
39256
      }
39257
 
39258
      private final short _thriftId;
39259
      private final String _fieldName;
39260
 
39261
      _Fields(short thriftId, String fieldName) {
39262
        _thriftId = thriftId;
39263
        _fieldName = fieldName;
39264
      }
39265
 
39266
      public short getThriftFieldId() {
39267
        return _thriftId;
39268
      }
39269
 
39270
      public String getFieldName() {
39271
        return _fieldName;
39272
      }
39273
    }
39274
 
39275
    // isset id assignments
39276
    private static final int __SUCCESS_ISSET_ID = 0;
39277
    private BitSet __isset_bit_vector = new BitSet(1);
39278
 
3430 rajveer 39279
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2615 chandransh 39280
    static {
3430 rajveer 39281
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39282
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39283
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
39284
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39285
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39286
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39287
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundOrder_result.class, metaDataMap);
2615 chandransh 39288
    }
39289
 
39290
    public refundOrder_result() {
39291
    }
39292
 
39293
    public refundOrder_result(
39294
      boolean success,
39295
      TransactionServiceException ex)
39296
    {
39297
      this();
39298
      this.success = success;
39299
      setSuccessIsSet(true);
39300
      this.ex = ex;
39301
    }
39302
 
39303
    /**
39304
     * Performs a deep copy on <i>other</i>.
39305
     */
39306
    public refundOrder_result(refundOrder_result other) {
39307
      __isset_bit_vector.clear();
39308
      __isset_bit_vector.or(other.__isset_bit_vector);
39309
      this.success = other.success;
39310
      if (other.isSetEx()) {
39311
        this.ex = new TransactionServiceException(other.ex);
39312
      }
39313
    }
39314
 
39315
    public refundOrder_result deepCopy() {
39316
      return new refundOrder_result(this);
39317
    }
39318
 
3430 rajveer 39319
    @Override
39320
    public void clear() {
39321
      setSuccessIsSet(false);
39322
      this.success = false;
39323
      this.ex = null;
2615 chandransh 39324
    }
39325
 
39326
    public boolean isSuccess() {
39327
      return this.success;
39328
    }
39329
 
3430 rajveer 39330
    public void setSuccess(boolean success) {
2615 chandransh 39331
      this.success = success;
39332
      setSuccessIsSet(true);
39333
    }
39334
 
39335
    public void unsetSuccess() {
39336
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
39337
    }
39338
 
3430 rajveer 39339
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2615 chandransh 39340
    public boolean isSetSuccess() {
39341
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
39342
    }
39343
 
39344
    public void setSuccessIsSet(boolean value) {
39345
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
39346
    }
39347
 
39348
    public TransactionServiceException getEx() {
39349
      return this.ex;
39350
    }
39351
 
3430 rajveer 39352
    public void setEx(TransactionServiceException ex) {
2615 chandransh 39353
      this.ex = ex;
39354
    }
39355
 
39356
    public void unsetEx() {
39357
      this.ex = null;
39358
    }
39359
 
3430 rajveer 39360
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2615 chandransh 39361
    public boolean isSetEx() {
39362
      return this.ex != null;
39363
    }
39364
 
39365
    public void setExIsSet(boolean value) {
39366
      if (!value) {
39367
        this.ex = null;
39368
      }
39369
    }
39370
 
39371
    public void setFieldValue(_Fields field, Object value) {
39372
      switch (field) {
39373
      case SUCCESS:
39374
        if (value == null) {
39375
          unsetSuccess();
39376
        } else {
39377
          setSuccess((Boolean)value);
39378
        }
39379
        break;
39380
 
39381
      case EX:
39382
        if (value == null) {
39383
          unsetEx();
39384
        } else {
39385
          setEx((TransactionServiceException)value);
39386
        }
39387
        break;
39388
 
39389
      }
39390
    }
39391
 
39392
    public Object getFieldValue(_Fields field) {
39393
      switch (field) {
39394
      case SUCCESS:
3430 rajveer 39395
        return Boolean.valueOf(isSuccess());
2615 chandransh 39396
 
39397
      case EX:
39398
        return getEx();
39399
 
39400
      }
39401
      throw new IllegalStateException();
39402
    }
39403
 
3430 rajveer 39404
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39405
    public boolean isSet(_Fields field) {
39406
      if (field == null) {
39407
        throw new IllegalArgumentException();
39408
      }
2615 chandransh 39409
 
39410
      switch (field) {
39411
      case SUCCESS:
39412
        return isSetSuccess();
39413
      case EX:
39414
        return isSetEx();
39415
      }
39416
      throw new IllegalStateException();
39417
    }
39418
 
39419
    @Override
39420
    public boolean equals(Object that) {
39421
      if (that == null)
39422
        return false;
39423
      if (that instanceof refundOrder_result)
39424
        return this.equals((refundOrder_result)that);
39425
      return false;
39426
    }
39427
 
39428
    public boolean equals(refundOrder_result that) {
39429
      if (that == null)
39430
        return false;
39431
 
39432
      boolean this_present_success = true;
39433
      boolean that_present_success = true;
39434
      if (this_present_success || that_present_success) {
39435
        if (!(this_present_success && that_present_success))
39436
          return false;
39437
        if (this.success != that.success)
39438
          return false;
39439
      }
39440
 
39441
      boolean this_present_ex = true && this.isSetEx();
39442
      boolean that_present_ex = true && that.isSetEx();
39443
      if (this_present_ex || that_present_ex) {
39444
        if (!(this_present_ex && that_present_ex))
39445
          return false;
39446
        if (!this.ex.equals(that.ex))
39447
          return false;
39448
      }
39449
 
39450
      return true;
39451
    }
39452
 
39453
    @Override
39454
    public int hashCode() {
39455
      return 0;
39456
    }
39457
 
39458
    public int compareTo(refundOrder_result other) {
39459
      if (!getClass().equals(other.getClass())) {
39460
        return getClass().getName().compareTo(other.getClass().getName());
39461
      }
39462
 
39463
      int lastComparison = 0;
39464
      refundOrder_result typedOther = (refundOrder_result)other;
39465
 
3430 rajveer 39466
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2615 chandransh 39467
      if (lastComparison != 0) {
39468
        return lastComparison;
39469
      }
3430 rajveer 39470
      if (isSetSuccess()) {
39471
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
39472
        if (lastComparison != 0) {
39473
          return lastComparison;
39474
        }
2615 chandransh 39475
      }
3430 rajveer 39476
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2615 chandransh 39477
      if (lastComparison != 0) {
39478
        return lastComparison;
39479
      }
3430 rajveer 39480
      if (isSetEx()) {
39481
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
39482
        if (lastComparison != 0) {
39483
          return lastComparison;
39484
        }
2615 chandransh 39485
      }
39486
      return 0;
39487
    }
39488
 
3430 rajveer 39489
    public _Fields fieldForId(int fieldId) {
39490
      return _Fields.findByThriftId(fieldId);
39491
    }
39492
 
39493
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39494
      org.apache.thrift.protocol.TField field;
2615 chandransh 39495
      iprot.readStructBegin();
39496
      while (true)
39497
      {
39498
        field = iprot.readFieldBegin();
3430 rajveer 39499
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2615 chandransh 39500
          break;
39501
        }
3430 rajveer 39502
        switch (field.id) {
39503
          case 0: // SUCCESS
39504
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
39505
              this.success = iprot.readBool();
39506
              setSuccessIsSet(true);
39507
            } else { 
39508
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39509
            }
39510
            break;
39511
          case 1: // EX
39512
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
39513
              this.ex = new TransactionServiceException();
39514
              this.ex.read(iprot);
39515
            } else { 
39516
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39517
            }
39518
            break;
39519
          default:
39520
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2615 chandransh 39521
        }
3430 rajveer 39522
        iprot.readFieldEnd();
2615 chandransh 39523
      }
39524
      iprot.readStructEnd();
39525
      validate();
39526
    }
39527
 
3430 rajveer 39528
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2615 chandransh 39529
      oprot.writeStructBegin(STRUCT_DESC);
39530
 
39531
      if (this.isSetSuccess()) {
39532
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39533
        oprot.writeBool(this.success);
39534
        oprot.writeFieldEnd();
39535
      } else if (this.isSetEx()) {
39536
        oprot.writeFieldBegin(EX_FIELD_DESC);
39537
        this.ex.write(oprot);
39538
        oprot.writeFieldEnd();
39539
      }
39540
      oprot.writeFieldStop();
39541
      oprot.writeStructEnd();
39542
    }
39543
 
39544
    @Override
39545
    public String toString() {
39546
      StringBuilder sb = new StringBuilder("refundOrder_result(");
39547
      boolean first = true;
39548
 
39549
      sb.append("success:");
39550
      sb.append(this.success);
39551
      first = false;
39552
      if (!first) sb.append(", ");
39553
      sb.append("ex:");
39554
      if (this.ex == null) {
39555
        sb.append("null");
39556
      } else {
39557
        sb.append(this.ex);
39558
      }
39559
      first = false;
39560
      sb.append(")");
39561
      return sb.toString();
39562
    }
39563
 
3430 rajveer 39564
    public void validate() throws org.apache.thrift.TException {
2615 chandransh 39565
      // check for required fields
39566
    }
39567
 
3430 rajveer 39568
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39569
      try {
39570
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39571
      } catch (org.apache.thrift.TException te) {
39572
        throw new java.io.IOException(te);
39573
      }
39574
    }
39575
 
39576
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39577
      try {
39578
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39579
      } catch (org.apache.thrift.TException te) {
39580
        throw new java.io.IOException(te);
39581
      }
39582
    }
39583
 
2615 chandransh 39584
  }
39585
 
3430 rajveer 39586
  public static class getReturnOrders_args implements org.apache.thrift.TBase<getReturnOrders_args, getReturnOrders_args._Fields>, java.io.Serializable, Cloneable   {
39587
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrders_args");
2690 chandransh 39588
 
3430 rajveer 39589
    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);
39590
    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);
39591
    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 39592
 
3430 rajveer 39593
    private long warehouseId; // required
39594
    private long fromDate; // required
39595
    private long toDate; // required
2690 chandransh 39596
 
39597
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39598
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 39599
      WAREHOUSE_ID((short)1, "warehouseId"),
39600
      FROM_DATE((short)2, "fromDate"),
39601
      TO_DATE((short)3, "toDate");
39602
 
39603
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39604
 
39605
      static {
39606
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39607
          byName.put(field.getFieldName(), field);
39608
        }
39609
      }
39610
 
39611
      /**
39612
       * Find the _Fields constant that matches fieldId, or null if its not found.
39613
       */
39614
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39615
        switch(fieldId) {
39616
          case 1: // WAREHOUSE_ID
39617
            return WAREHOUSE_ID;
39618
          case 2: // FROM_DATE
39619
            return FROM_DATE;
39620
          case 3: // TO_DATE
39621
            return TO_DATE;
39622
          default:
39623
            return null;
39624
        }
2690 chandransh 39625
      }
39626
 
39627
      /**
39628
       * Find the _Fields constant that matches fieldId, throwing an exception
39629
       * if it is not found.
39630
       */
39631
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39632
        _Fields fields = findByThriftId(fieldId);
39633
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39634
        return fields;
39635
      }
39636
 
39637
      /**
39638
       * Find the _Fields constant that matches name, or null if its not found.
39639
       */
39640
      public static _Fields findByName(String name) {
39641
        return byName.get(name);
39642
      }
39643
 
39644
      private final short _thriftId;
39645
      private final String _fieldName;
39646
 
39647
      _Fields(short thriftId, String fieldName) {
39648
        _thriftId = thriftId;
39649
        _fieldName = fieldName;
39650
      }
39651
 
39652
      public short getThriftFieldId() {
39653
        return _thriftId;
39654
      }
39655
 
39656
      public String getFieldName() {
39657
        return _fieldName;
39658
      }
39659
    }
39660
 
39661
    // isset id assignments
39662
    private static final int __WAREHOUSEID_ISSET_ID = 0;
39663
    private static final int __FROMDATE_ISSET_ID = 1;
39664
    private static final int __TODATE_ISSET_ID = 2;
39665
    private BitSet __isset_bit_vector = new BitSet(3);
39666
 
3430 rajveer 39667
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 39668
    static {
3430 rajveer 39669
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39670
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39671
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39672
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39673
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39674
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39675
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39676
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39677
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrders_args.class, metaDataMap);
2690 chandransh 39678
    }
39679
 
39680
    public getReturnOrders_args() {
39681
    }
39682
 
39683
    public getReturnOrders_args(
39684
      long warehouseId,
39685
      long fromDate,
39686
      long toDate)
39687
    {
39688
      this();
39689
      this.warehouseId = warehouseId;
39690
      setWarehouseIdIsSet(true);
39691
      this.fromDate = fromDate;
39692
      setFromDateIsSet(true);
39693
      this.toDate = toDate;
39694
      setToDateIsSet(true);
39695
    }
39696
 
39697
    /**
39698
     * Performs a deep copy on <i>other</i>.
39699
     */
39700
    public getReturnOrders_args(getReturnOrders_args other) {
39701
      __isset_bit_vector.clear();
39702
      __isset_bit_vector.or(other.__isset_bit_vector);
39703
      this.warehouseId = other.warehouseId;
39704
      this.fromDate = other.fromDate;
39705
      this.toDate = other.toDate;
39706
    }
39707
 
39708
    public getReturnOrders_args deepCopy() {
39709
      return new getReturnOrders_args(this);
39710
    }
39711
 
3430 rajveer 39712
    @Override
39713
    public void clear() {
39714
      setWarehouseIdIsSet(false);
39715
      this.warehouseId = 0;
39716
      setFromDateIsSet(false);
39717
      this.fromDate = 0;
39718
      setToDateIsSet(false);
39719
      this.toDate = 0;
2690 chandransh 39720
    }
39721
 
39722
    public long getWarehouseId() {
39723
      return this.warehouseId;
39724
    }
39725
 
3430 rajveer 39726
    public void setWarehouseId(long warehouseId) {
2690 chandransh 39727
      this.warehouseId = warehouseId;
39728
      setWarehouseIdIsSet(true);
39729
    }
39730
 
39731
    public void unsetWarehouseId() {
39732
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
39733
    }
39734
 
3430 rajveer 39735
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
2690 chandransh 39736
    public boolean isSetWarehouseId() {
39737
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
39738
    }
39739
 
39740
    public void setWarehouseIdIsSet(boolean value) {
39741
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
39742
    }
39743
 
39744
    public long getFromDate() {
39745
      return this.fromDate;
39746
    }
39747
 
3430 rajveer 39748
    public void setFromDate(long fromDate) {
2690 chandransh 39749
      this.fromDate = fromDate;
39750
      setFromDateIsSet(true);
39751
    }
39752
 
39753
    public void unsetFromDate() {
39754
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
39755
    }
39756
 
3430 rajveer 39757
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
2690 chandransh 39758
    public boolean isSetFromDate() {
39759
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
39760
    }
39761
 
39762
    public void setFromDateIsSet(boolean value) {
39763
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
39764
    }
39765
 
39766
    public long getToDate() {
39767
      return this.toDate;
39768
    }
39769
 
3430 rajveer 39770
    public void setToDate(long toDate) {
2690 chandransh 39771
      this.toDate = toDate;
39772
      setToDateIsSet(true);
39773
    }
39774
 
39775
    public void unsetToDate() {
39776
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
39777
    }
39778
 
3430 rajveer 39779
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
2690 chandransh 39780
    public boolean isSetToDate() {
39781
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
39782
    }
39783
 
39784
    public void setToDateIsSet(boolean value) {
39785
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
39786
    }
39787
 
39788
    public void setFieldValue(_Fields field, Object value) {
39789
      switch (field) {
39790
      case WAREHOUSE_ID:
39791
        if (value == null) {
39792
          unsetWarehouseId();
39793
        } else {
39794
          setWarehouseId((Long)value);
39795
        }
39796
        break;
39797
 
39798
      case FROM_DATE:
39799
        if (value == null) {
39800
          unsetFromDate();
39801
        } else {
39802
          setFromDate((Long)value);
39803
        }
39804
        break;
39805
 
39806
      case TO_DATE:
39807
        if (value == null) {
39808
          unsetToDate();
39809
        } else {
39810
          setToDate((Long)value);
39811
        }
39812
        break;
39813
 
39814
      }
39815
    }
39816
 
39817
    public Object getFieldValue(_Fields field) {
39818
      switch (field) {
39819
      case WAREHOUSE_ID:
3430 rajveer 39820
        return Long.valueOf(getWarehouseId());
2690 chandransh 39821
 
39822
      case FROM_DATE:
3430 rajveer 39823
        return Long.valueOf(getFromDate());
2690 chandransh 39824
 
39825
      case TO_DATE:
3430 rajveer 39826
        return Long.valueOf(getToDate());
2690 chandransh 39827
 
39828
      }
39829
      throw new IllegalStateException();
39830
    }
39831
 
3430 rajveer 39832
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39833
    public boolean isSet(_Fields field) {
39834
      if (field == null) {
39835
        throw new IllegalArgumentException();
39836
      }
2690 chandransh 39837
 
39838
      switch (field) {
39839
      case WAREHOUSE_ID:
39840
        return isSetWarehouseId();
39841
      case FROM_DATE:
39842
        return isSetFromDate();
39843
      case TO_DATE:
39844
        return isSetToDate();
39845
      }
39846
      throw new IllegalStateException();
39847
    }
39848
 
39849
    @Override
39850
    public boolean equals(Object that) {
39851
      if (that == null)
39852
        return false;
39853
      if (that instanceof getReturnOrders_args)
39854
        return this.equals((getReturnOrders_args)that);
39855
      return false;
39856
    }
39857
 
39858
    public boolean equals(getReturnOrders_args that) {
39859
      if (that == null)
39860
        return false;
39861
 
39862
      boolean this_present_warehouseId = true;
39863
      boolean that_present_warehouseId = true;
39864
      if (this_present_warehouseId || that_present_warehouseId) {
39865
        if (!(this_present_warehouseId && that_present_warehouseId))
39866
          return false;
39867
        if (this.warehouseId != that.warehouseId)
39868
          return false;
39869
      }
39870
 
39871
      boolean this_present_fromDate = true;
39872
      boolean that_present_fromDate = true;
39873
      if (this_present_fromDate || that_present_fromDate) {
39874
        if (!(this_present_fromDate && that_present_fromDate))
39875
          return false;
39876
        if (this.fromDate != that.fromDate)
39877
          return false;
39878
      }
39879
 
39880
      boolean this_present_toDate = true;
39881
      boolean that_present_toDate = true;
39882
      if (this_present_toDate || that_present_toDate) {
39883
        if (!(this_present_toDate && that_present_toDate))
39884
          return false;
39885
        if (this.toDate != that.toDate)
39886
          return false;
39887
      }
39888
 
39889
      return true;
39890
    }
39891
 
39892
    @Override
39893
    public int hashCode() {
39894
      return 0;
39895
    }
39896
 
39897
    public int compareTo(getReturnOrders_args other) {
39898
      if (!getClass().equals(other.getClass())) {
39899
        return getClass().getName().compareTo(other.getClass().getName());
39900
      }
39901
 
39902
      int lastComparison = 0;
39903
      getReturnOrders_args typedOther = (getReturnOrders_args)other;
39904
 
3430 rajveer 39905
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
2690 chandransh 39906
      if (lastComparison != 0) {
39907
        return lastComparison;
39908
      }
3430 rajveer 39909
      if (isSetWarehouseId()) {
39910
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
39911
        if (lastComparison != 0) {
39912
          return lastComparison;
39913
        }
2690 chandransh 39914
      }
3430 rajveer 39915
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
2690 chandransh 39916
      if (lastComparison != 0) {
39917
        return lastComparison;
39918
      }
3430 rajveer 39919
      if (isSetFromDate()) {
39920
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
39921
        if (lastComparison != 0) {
39922
          return lastComparison;
39923
        }
2690 chandransh 39924
      }
3430 rajveer 39925
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
2690 chandransh 39926
      if (lastComparison != 0) {
39927
        return lastComparison;
39928
      }
3430 rajveer 39929
      if (isSetToDate()) {
39930
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
39931
        if (lastComparison != 0) {
39932
          return lastComparison;
39933
        }
2690 chandransh 39934
      }
39935
      return 0;
39936
    }
39937
 
3430 rajveer 39938
    public _Fields fieldForId(int fieldId) {
39939
      return _Fields.findByThriftId(fieldId);
39940
    }
39941
 
39942
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39943
      org.apache.thrift.protocol.TField field;
2690 chandransh 39944
      iprot.readStructBegin();
39945
      while (true)
39946
      {
39947
        field = iprot.readFieldBegin();
3430 rajveer 39948
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 39949
          break;
39950
        }
3430 rajveer 39951
        switch (field.id) {
39952
          case 1: // WAREHOUSE_ID
39953
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39954
              this.warehouseId = iprot.readI64();
39955
              setWarehouseIdIsSet(true);
39956
            } else { 
39957
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39958
            }
39959
            break;
39960
          case 2: // FROM_DATE
39961
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39962
              this.fromDate = iprot.readI64();
39963
              setFromDateIsSet(true);
39964
            } else { 
39965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39966
            }
39967
            break;
39968
          case 3: // TO_DATE
39969
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39970
              this.toDate = iprot.readI64();
39971
              setToDateIsSet(true);
39972
            } else { 
39973
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39974
            }
39975
            break;
39976
          default:
39977
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 39978
        }
3430 rajveer 39979
        iprot.readFieldEnd();
2690 chandransh 39980
      }
39981
      iprot.readStructEnd();
39982
      validate();
39983
    }
39984
 
3430 rajveer 39985
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 39986
      validate();
39987
 
39988
      oprot.writeStructBegin(STRUCT_DESC);
39989
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
39990
      oprot.writeI64(this.warehouseId);
39991
      oprot.writeFieldEnd();
39992
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
39993
      oprot.writeI64(this.fromDate);
39994
      oprot.writeFieldEnd();
39995
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
39996
      oprot.writeI64(this.toDate);
39997
      oprot.writeFieldEnd();
39998
      oprot.writeFieldStop();
39999
      oprot.writeStructEnd();
40000
    }
40001
 
40002
    @Override
40003
    public String toString() {
40004
      StringBuilder sb = new StringBuilder("getReturnOrders_args(");
40005
      boolean first = true;
40006
 
40007
      sb.append("warehouseId:");
40008
      sb.append(this.warehouseId);
40009
      first = false;
40010
      if (!first) sb.append(", ");
40011
      sb.append("fromDate:");
40012
      sb.append(this.fromDate);
40013
      first = false;
40014
      if (!first) sb.append(", ");
40015
      sb.append("toDate:");
40016
      sb.append(this.toDate);
40017
      first = false;
40018
      sb.append(")");
40019
      return sb.toString();
40020
    }
40021
 
3430 rajveer 40022
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 40023
      // check for required fields
40024
    }
40025
 
3430 rajveer 40026
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40027
      try {
40028
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40029
      } catch (org.apache.thrift.TException te) {
40030
        throw new java.io.IOException(te);
40031
      }
40032
    }
40033
 
40034
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40035
      try {
40036
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40037
      } catch (org.apache.thrift.TException te) {
40038
        throw new java.io.IOException(te);
40039
      }
40040
    }
40041
 
2690 chandransh 40042
  }
40043
 
3430 rajveer 40044
  public static class getReturnOrders_result implements org.apache.thrift.TBase<getReturnOrders_result, getReturnOrders_result._Fields>, java.io.Serializable, Cloneable   {
40045
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrders_result");
2690 chandransh 40046
 
3430 rajveer 40047
    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 40048
 
3430 rajveer 40049
    private List<ReturnOrder> success; // required
2690 chandransh 40050
 
40051
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40052
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 40053
      SUCCESS((short)0, "success");
40054
 
40055
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40056
 
40057
      static {
40058
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40059
          byName.put(field.getFieldName(), field);
40060
        }
40061
      }
40062
 
40063
      /**
40064
       * Find the _Fields constant that matches fieldId, or null if its not found.
40065
       */
40066
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40067
        switch(fieldId) {
40068
          case 0: // SUCCESS
40069
            return SUCCESS;
40070
          default:
40071
            return null;
40072
        }
2690 chandransh 40073
      }
40074
 
40075
      /**
40076
       * Find the _Fields constant that matches fieldId, throwing an exception
40077
       * if it is not found.
40078
       */
40079
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40080
        _Fields fields = findByThriftId(fieldId);
40081
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40082
        return fields;
40083
      }
40084
 
40085
      /**
40086
       * Find the _Fields constant that matches name, or null if its not found.
40087
       */
40088
      public static _Fields findByName(String name) {
40089
        return byName.get(name);
40090
      }
40091
 
40092
      private final short _thriftId;
40093
      private final String _fieldName;
40094
 
40095
      _Fields(short thriftId, String fieldName) {
40096
        _thriftId = thriftId;
40097
        _fieldName = fieldName;
40098
      }
40099
 
40100
      public short getThriftFieldId() {
40101
        return _thriftId;
40102
      }
40103
 
40104
      public String getFieldName() {
40105
        return _fieldName;
40106
      }
40107
    }
40108
 
40109
    // isset id assignments
40110
 
3430 rajveer 40111
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 40112
    static {
3430 rajveer 40113
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40114
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40115
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
40116
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnOrder.class))));
40117
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40118
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrders_result.class, metaDataMap);
2690 chandransh 40119
    }
40120
 
40121
    public getReturnOrders_result() {
40122
    }
40123
 
40124
    public getReturnOrders_result(
40125
      List<ReturnOrder> success)
40126
    {
40127
      this();
40128
      this.success = success;
40129
    }
40130
 
40131
    /**
40132
     * Performs a deep copy on <i>other</i>.
40133
     */
40134
    public getReturnOrders_result(getReturnOrders_result other) {
40135
      if (other.isSetSuccess()) {
40136
        List<ReturnOrder> __this__success = new ArrayList<ReturnOrder>();
40137
        for (ReturnOrder other_element : other.success) {
40138
          __this__success.add(new ReturnOrder(other_element));
40139
        }
40140
        this.success = __this__success;
40141
      }
40142
    }
40143
 
40144
    public getReturnOrders_result deepCopy() {
40145
      return new getReturnOrders_result(this);
40146
    }
40147
 
3430 rajveer 40148
    @Override
40149
    public void clear() {
40150
      this.success = null;
2690 chandransh 40151
    }
40152
 
40153
    public int getSuccessSize() {
40154
      return (this.success == null) ? 0 : this.success.size();
40155
    }
40156
 
40157
    public java.util.Iterator<ReturnOrder> getSuccessIterator() {
40158
      return (this.success == null) ? null : this.success.iterator();
40159
    }
40160
 
40161
    public void addToSuccess(ReturnOrder elem) {
40162
      if (this.success == null) {
40163
        this.success = new ArrayList<ReturnOrder>();
40164
      }
40165
      this.success.add(elem);
40166
    }
40167
 
40168
    public List<ReturnOrder> getSuccess() {
40169
      return this.success;
40170
    }
40171
 
3430 rajveer 40172
    public void setSuccess(List<ReturnOrder> success) {
2690 chandransh 40173
      this.success = success;
40174
    }
40175
 
40176
    public void unsetSuccess() {
40177
      this.success = null;
40178
    }
40179
 
3430 rajveer 40180
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2690 chandransh 40181
    public boolean isSetSuccess() {
40182
      return this.success != null;
40183
    }
40184
 
40185
    public void setSuccessIsSet(boolean value) {
40186
      if (!value) {
40187
        this.success = null;
40188
      }
40189
    }
40190
 
40191
    public void setFieldValue(_Fields field, Object value) {
40192
      switch (field) {
40193
      case SUCCESS:
40194
        if (value == null) {
40195
          unsetSuccess();
40196
        } else {
40197
          setSuccess((List<ReturnOrder>)value);
40198
        }
40199
        break;
40200
 
40201
      }
40202
    }
40203
 
40204
    public Object getFieldValue(_Fields field) {
40205
      switch (field) {
40206
      case SUCCESS:
40207
        return getSuccess();
40208
 
40209
      }
40210
      throw new IllegalStateException();
40211
    }
40212
 
3430 rajveer 40213
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40214
    public boolean isSet(_Fields field) {
40215
      if (field == null) {
40216
        throw new IllegalArgumentException();
40217
      }
2690 chandransh 40218
 
40219
      switch (field) {
40220
      case SUCCESS:
40221
        return isSetSuccess();
40222
      }
40223
      throw new IllegalStateException();
40224
    }
40225
 
40226
    @Override
40227
    public boolean equals(Object that) {
40228
      if (that == null)
40229
        return false;
40230
      if (that instanceof getReturnOrders_result)
40231
        return this.equals((getReturnOrders_result)that);
40232
      return false;
40233
    }
40234
 
40235
    public boolean equals(getReturnOrders_result that) {
40236
      if (that == null)
40237
        return false;
40238
 
40239
      boolean this_present_success = true && this.isSetSuccess();
40240
      boolean that_present_success = true && that.isSetSuccess();
40241
      if (this_present_success || that_present_success) {
40242
        if (!(this_present_success && that_present_success))
40243
          return false;
40244
        if (!this.success.equals(that.success))
40245
          return false;
40246
      }
40247
 
40248
      return true;
40249
    }
40250
 
40251
    @Override
40252
    public int hashCode() {
40253
      return 0;
40254
    }
40255
 
40256
    public int compareTo(getReturnOrders_result other) {
40257
      if (!getClass().equals(other.getClass())) {
40258
        return getClass().getName().compareTo(other.getClass().getName());
40259
      }
40260
 
40261
      int lastComparison = 0;
40262
      getReturnOrders_result typedOther = (getReturnOrders_result)other;
40263
 
3430 rajveer 40264
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2690 chandransh 40265
      if (lastComparison != 0) {
40266
        return lastComparison;
40267
      }
3430 rajveer 40268
      if (isSetSuccess()) {
40269
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
40270
        if (lastComparison != 0) {
40271
          return lastComparison;
40272
        }
2690 chandransh 40273
      }
40274
      return 0;
40275
    }
40276
 
3430 rajveer 40277
    public _Fields fieldForId(int fieldId) {
40278
      return _Fields.findByThriftId(fieldId);
40279
    }
40280
 
40281
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40282
      org.apache.thrift.protocol.TField field;
2690 chandransh 40283
      iprot.readStructBegin();
40284
      while (true)
40285
      {
40286
        field = iprot.readFieldBegin();
3430 rajveer 40287
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 40288
          break;
40289
        }
3430 rajveer 40290
        switch (field.id) {
40291
          case 0: // SUCCESS
40292
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
40293
              {
40294
                org.apache.thrift.protocol.TList _list105 = iprot.readListBegin();
40295
                this.success = new ArrayList<ReturnOrder>(_list105.size);
40296
                for (int _i106 = 0; _i106 < _list105.size; ++_i106)
2690 chandransh 40297
                {
3430 rajveer 40298
                  ReturnOrder _elem107; // required
40299
                  _elem107 = new ReturnOrder();
40300
                  _elem107.read(iprot);
40301
                  this.success.add(_elem107);
2690 chandransh 40302
                }
3430 rajveer 40303
                iprot.readListEnd();
2690 chandransh 40304
              }
3430 rajveer 40305
            } else { 
40306
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40307
            }
40308
            break;
40309
          default:
40310
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 40311
        }
3430 rajveer 40312
        iprot.readFieldEnd();
2690 chandransh 40313
      }
40314
      iprot.readStructEnd();
40315
      validate();
40316
    }
40317
 
3430 rajveer 40318
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 40319
      oprot.writeStructBegin(STRUCT_DESC);
40320
 
40321
      if (this.isSetSuccess()) {
40322
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40323
        {
3430 rajveer 40324
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3427 chandransh 40325
          for (ReturnOrder _iter108 : this.success)
2690 chandransh 40326
          {
3427 chandransh 40327
            _iter108.write(oprot);
2690 chandransh 40328
          }
40329
          oprot.writeListEnd();
40330
        }
40331
        oprot.writeFieldEnd();
40332
      }
40333
      oprot.writeFieldStop();
40334
      oprot.writeStructEnd();
40335
    }
40336
 
40337
    @Override
40338
    public String toString() {
40339
      StringBuilder sb = new StringBuilder("getReturnOrders_result(");
40340
      boolean first = true;
40341
 
40342
      sb.append("success:");
40343
      if (this.success == null) {
40344
        sb.append("null");
40345
      } else {
40346
        sb.append(this.success);
40347
      }
40348
      first = false;
40349
      sb.append(")");
40350
      return sb.toString();
40351
    }
40352
 
3430 rajveer 40353
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 40354
      // check for required fields
40355
    }
40356
 
3430 rajveer 40357
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40358
      try {
40359
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40360
      } catch (org.apache.thrift.TException te) {
40361
        throw new java.io.IOException(te);
40362
      }
40363
    }
40364
 
40365
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40366
      try {
40367
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40368
      } catch (org.apache.thrift.TException te) {
40369
        throw new java.io.IOException(te);
40370
      }
40371
    }
40372
 
2690 chandransh 40373
  }
40374
 
3430 rajveer 40375
  public static class getReturnOrder_args implements org.apache.thrift.TBase<getReturnOrder_args, getReturnOrder_args._Fields>, java.io.Serializable, Cloneable   {
40376
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrder_args");
2700 chandransh 40377
 
3430 rajveer 40378
    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 40379
 
3430 rajveer 40380
    private long id; // required
2700 chandransh 40381
 
40382
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40383
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2700 chandransh 40384
      ID((short)1, "id");
40385
 
40386
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40387
 
40388
      static {
40389
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40390
          byName.put(field.getFieldName(), field);
40391
        }
40392
      }
40393
 
40394
      /**
40395
       * Find the _Fields constant that matches fieldId, or null if its not found.
40396
       */
40397
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40398
        switch(fieldId) {
40399
          case 1: // ID
40400
            return ID;
40401
          default:
40402
            return null;
40403
        }
2700 chandransh 40404
      }
40405
 
40406
      /**
40407
       * Find the _Fields constant that matches fieldId, throwing an exception
40408
       * if it is not found.
40409
       */
40410
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40411
        _Fields fields = findByThriftId(fieldId);
40412
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40413
        return fields;
40414
      }
40415
 
40416
      /**
40417
       * Find the _Fields constant that matches name, or null if its not found.
40418
       */
40419
      public static _Fields findByName(String name) {
40420
        return byName.get(name);
40421
      }
40422
 
40423
      private final short _thriftId;
40424
      private final String _fieldName;
40425
 
40426
      _Fields(short thriftId, String fieldName) {
40427
        _thriftId = thriftId;
40428
        _fieldName = fieldName;
40429
      }
40430
 
40431
      public short getThriftFieldId() {
40432
        return _thriftId;
40433
      }
40434
 
40435
      public String getFieldName() {
40436
        return _fieldName;
40437
      }
40438
    }
40439
 
40440
    // isset id assignments
40441
    private static final int __ID_ISSET_ID = 0;
40442
    private BitSet __isset_bit_vector = new BitSet(1);
40443
 
3430 rajveer 40444
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2700 chandransh 40445
    static {
3430 rajveer 40446
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40447
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40448
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40449
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40450
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrder_args.class, metaDataMap);
2700 chandransh 40451
    }
40452
 
40453
    public getReturnOrder_args() {
40454
    }
40455
 
40456
    public getReturnOrder_args(
40457
      long id)
40458
    {
40459
      this();
40460
      this.id = id;
40461
      setIdIsSet(true);
40462
    }
40463
 
40464
    /**
40465
     * Performs a deep copy on <i>other</i>.
40466
     */
40467
    public getReturnOrder_args(getReturnOrder_args other) {
40468
      __isset_bit_vector.clear();
40469
      __isset_bit_vector.or(other.__isset_bit_vector);
40470
      this.id = other.id;
40471
    }
40472
 
40473
    public getReturnOrder_args deepCopy() {
40474
      return new getReturnOrder_args(this);
40475
    }
40476
 
3430 rajveer 40477
    @Override
40478
    public void clear() {
40479
      setIdIsSet(false);
40480
      this.id = 0;
2700 chandransh 40481
    }
40482
 
40483
    public long getId() {
40484
      return this.id;
40485
    }
40486
 
3430 rajveer 40487
    public void setId(long id) {
2700 chandransh 40488
      this.id = id;
40489
      setIdIsSet(true);
40490
    }
40491
 
40492
    public void unsetId() {
40493
      __isset_bit_vector.clear(__ID_ISSET_ID);
40494
    }
40495
 
3430 rajveer 40496
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
2700 chandransh 40497
    public boolean isSetId() {
40498
      return __isset_bit_vector.get(__ID_ISSET_ID);
40499
    }
40500
 
40501
    public void setIdIsSet(boolean value) {
40502
      __isset_bit_vector.set(__ID_ISSET_ID, value);
40503
    }
40504
 
40505
    public void setFieldValue(_Fields field, Object value) {
40506
      switch (field) {
40507
      case ID:
40508
        if (value == null) {
40509
          unsetId();
40510
        } else {
40511
          setId((Long)value);
40512
        }
40513
        break;
40514
 
40515
      }
40516
    }
40517
 
40518
    public Object getFieldValue(_Fields field) {
40519
      switch (field) {
40520
      case ID:
3430 rajveer 40521
        return Long.valueOf(getId());
2700 chandransh 40522
 
40523
      }
40524
      throw new IllegalStateException();
40525
    }
40526
 
3430 rajveer 40527
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40528
    public boolean isSet(_Fields field) {
40529
      if (field == null) {
40530
        throw new IllegalArgumentException();
40531
      }
2700 chandransh 40532
 
40533
      switch (field) {
40534
      case ID:
40535
        return isSetId();
40536
      }
40537
      throw new IllegalStateException();
40538
    }
40539
 
40540
    @Override
40541
    public boolean equals(Object that) {
40542
      if (that == null)
40543
        return false;
40544
      if (that instanceof getReturnOrder_args)
40545
        return this.equals((getReturnOrder_args)that);
40546
      return false;
40547
    }
40548
 
40549
    public boolean equals(getReturnOrder_args that) {
40550
      if (that == null)
40551
        return false;
40552
 
40553
      boolean this_present_id = true;
40554
      boolean that_present_id = true;
40555
      if (this_present_id || that_present_id) {
40556
        if (!(this_present_id && that_present_id))
40557
          return false;
40558
        if (this.id != that.id)
40559
          return false;
40560
      }
40561
 
40562
      return true;
40563
    }
40564
 
40565
    @Override
40566
    public int hashCode() {
40567
      return 0;
40568
    }
40569
 
40570
    public int compareTo(getReturnOrder_args other) {
40571
      if (!getClass().equals(other.getClass())) {
40572
        return getClass().getName().compareTo(other.getClass().getName());
40573
      }
40574
 
40575
      int lastComparison = 0;
40576
      getReturnOrder_args typedOther = (getReturnOrder_args)other;
40577
 
3430 rajveer 40578
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
2700 chandransh 40579
      if (lastComparison != 0) {
40580
        return lastComparison;
40581
      }
3430 rajveer 40582
      if (isSetId()) {
40583
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
40584
        if (lastComparison != 0) {
40585
          return lastComparison;
40586
        }
2700 chandransh 40587
      }
40588
      return 0;
40589
    }
40590
 
3430 rajveer 40591
    public _Fields fieldForId(int fieldId) {
40592
      return _Fields.findByThriftId(fieldId);
40593
    }
40594
 
40595
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40596
      org.apache.thrift.protocol.TField field;
2700 chandransh 40597
      iprot.readStructBegin();
40598
      while (true)
40599
      {
40600
        field = iprot.readFieldBegin();
3430 rajveer 40601
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2700 chandransh 40602
          break;
40603
        }
3430 rajveer 40604
        switch (field.id) {
40605
          case 1: // ID
40606
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40607
              this.id = iprot.readI64();
40608
              setIdIsSet(true);
40609
            } else { 
40610
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40611
            }
40612
            break;
40613
          default:
40614
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2700 chandransh 40615
        }
3430 rajveer 40616
        iprot.readFieldEnd();
2700 chandransh 40617
      }
40618
      iprot.readStructEnd();
40619
      validate();
40620
    }
40621
 
3430 rajveer 40622
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2700 chandransh 40623
      validate();
40624
 
40625
      oprot.writeStructBegin(STRUCT_DESC);
40626
      oprot.writeFieldBegin(ID_FIELD_DESC);
40627
      oprot.writeI64(this.id);
40628
      oprot.writeFieldEnd();
40629
      oprot.writeFieldStop();
40630
      oprot.writeStructEnd();
40631
    }
40632
 
40633
    @Override
40634
    public String toString() {
40635
      StringBuilder sb = new StringBuilder("getReturnOrder_args(");
40636
      boolean first = true;
40637
 
40638
      sb.append("id:");
40639
      sb.append(this.id);
40640
      first = false;
40641
      sb.append(")");
40642
      return sb.toString();
40643
    }
40644
 
3430 rajveer 40645
    public void validate() throws org.apache.thrift.TException {
2700 chandransh 40646
      // check for required fields
40647
    }
40648
 
3430 rajveer 40649
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40650
      try {
40651
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40652
      } catch (org.apache.thrift.TException te) {
40653
        throw new java.io.IOException(te);
40654
      }
40655
    }
40656
 
40657
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40658
      try {
40659
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40660
      } catch (org.apache.thrift.TException te) {
40661
        throw new java.io.IOException(te);
40662
      }
40663
    }
40664
 
2700 chandransh 40665
  }
40666
 
3430 rajveer 40667
  public static class getReturnOrder_result implements org.apache.thrift.TBase<getReturnOrder_result, getReturnOrder_result._Fields>, java.io.Serializable, Cloneable   {
40668
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrder_result");
2700 chandransh 40669
 
3430 rajveer 40670
    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);
40671
    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 40672
 
3430 rajveer 40673
    private ReturnOrder success; // required
40674
    private TransactionServiceException ex; // required
2700 chandransh 40675
 
40676
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40677
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2700 chandransh 40678
      SUCCESS((short)0, "success"),
40679
      EX((short)1, "ex");
40680
 
40681
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40682
 
40683
      static {
40684
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40685
          byName.put(field.getFieldName(), field);
40686
        }
40687
      }
40688
 
40689
      /**
40690
       * Find the _Fields constant that matches fieldId, or null if its not found.
40691
       */
40692
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40693
        switch(fieldId) {
40694
          case 0: // SUCCESS
40695
            return SUCCESS;
40696
          case 1: // EX
40697
            return EX;
40698
          default:
40699
            return null;
40700
        }
2700 chandransh 40701
      }
40702
 
40703
      /**
40704
       * Find the _Fields constant that matches fieldId, throwing an exception
40705
       * if it is not found.
40706
       */
40707
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40708
        _Fields fields = findByThriftId(fieldId);
40709
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40710
        return fields;
40711
      }
40712
 
40713
      /**
40714
       * Find the _Fields constant that matches name, or null if its not found.
40715
       */
40716
      public static _Fields findByName(String name) {
40717
        return byName.get(name);
40718
      }
40719
 
40720
      private final short _thriftId;
40721
      private final String _fieldName;
40722
 
40723
      _Fields(short thriftId, String fieldName) {
40724
        _thriftId = thriftId;
40725
        _fieldName = fieldName;
40726
      }
40727
 
40728
      public short getThriftFieldId() {
40729
        return _thriftId;
40730
      }
40731
 
40732
      public String getFieldName() {
40733
        return _fieldName;
40734
      }
40735
    }
40736
 
40737
    // isset id assignments
40738
 
3430 rajveer 40739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2700 chandransh 40740
    static {
3430 rajveer 40741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40742
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40743
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnOrder.class)));
40744
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40745
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
40746
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40747
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrder_result.class, metaDataMap);
2700 chandransh 40748
    }
40749
 
40750
    public getReturnOrder_result() {
40751
    }
40752
 
40753
    public getReturnOrder_result(
40754
      ReturnOrder success,
40755
      TransactionServiceException ex)
40756
    {
40757
      this();
40758
      this.success = success;
40759
      this.ex = ex;
40760
    }
40761
 
40762
    /**
40763
     * Performs a deep copy on <i>other</i>.
40764
     */
40765
    public getReturnOrder_result(getReturnOrder_result other) {
40766
      if (other.isSetSuccess()) {
40767
        this.success = new ReturnOrder(other.success);
40768
      }
40769
      if (other.isSetEx()) {
40770
        this.ex = new TransactionServiceException(other.ex);
40771
      }
40772
    }
40773
 
40774
    public getReturnOrder_result deepCopy() {
40775
      return new getReturnOrder_result(this);
40776
    }
40777
 
3430 rajveer 40778
    @Override
40779
    public void clear() {
40780
      this.success = null;
40781
      this.ex = null;
2700 chandransh 40782
    }
40783
 
40784
    public ReturnOrder getSuccess() {
40785
      return this.success;
40786
    }
40787
 
3430 rajveer 40788
    public void setSuccess(ReturnOrder success) {
2700 chandransh 40789
      this.success = success;
40790
    }
40791
 
40792
    public void unsetSuccess() {
40793
      this.success = null;
40794
    }
40795
 
3430 rajveer 40796
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2700 chandransh 40797
    public boolean isSetSuccess() {
40798
      return this.success != null;
40799
    }
40800
 
40801
    public void setSuccessIsSet(boolean value) {
40802
      if (!value) {
40803
        this.success = null;
40804
      }
40805
    }
40806
 
40807
    public TransactionServiceException getEx() {
40808
      return this.ex;
40809
    }
40810
 
3430 rajveer 40811
    public void setEx(TransactionServiceException ex) {
2700 chandransh 40812
      this.ex = ex;
40813
    }
40814
 
40815
    public void unsetEx() {
40816
      this.ex = null;
40817
    }
40818
 
3430 rajveer 40819
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2700 chandransh 40820
    public boolean isSetEx() {
40821
      return this.ex != null;
40822
    }
40823
 
40824
    public void setExIsSet(boolean value) {
40825
      if (!value) {
40826
        this.ex = null;
40827
      }
40828
    }
40829
 
40830
    public void setFieldValue(_Fields field, Object value) {
40831
      switch (field) {
40832
      case SUCCESS:
40833
        if (value == null) {
40834
          unsetSuccess();
40835
        } else {
40836
          setSuccess((ReturnOrder)value);
40837
        }
40838
        break;
40839
 
40840
      case EX:
40841
        if (value == null) {
40842
          unsetEx();
40843
        } else {
40844
          setEx((TransactionServiceException)value);
40845
        }
40846
        break;
40847
 
40848
      }
40849
    }
40850
 
40851
    public Object getFieldValue(_Fields field) {
40852
      switch (field) {
40853
      case SUCCESS:
40854
        return getSuccess();
40855
 
40856
      case EX:
40857
        return getEx();
40858
 
40859
      }
40860
      throw new IllegalStateException();
40861
    }
40862
 
3430 rajveer 40863
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40864
    public boolean isSet(_Fields field) {
40865
      if (field == null) {
40866
        throw new IllegalArgumentException();
40867
      }
2700 chandransh 40868
 
40869
      switch (field) {
40870
      case SUCCESS:
40871
        return isSetSuccess();
40872
      case EX:
40873
        return isSetEx();
40874
      }
40875
      throw new IllegalStateException();
40876
    }
40877
 
40878
    @Override
40879
    public boolean equals(Object that) {
40880
      if (that == null)
40881
        return false;
40882
      if (that instanceof getReturnOrder_result)
40883
        return this.equals((getReturnOrder_result)that);
40884
      return false;
40885
    }
40886
 
40887
    public boolean equals(getReturnOrder_result that) {
40888
      if (that == null)
40889
        return false;
40890
 
40891
      boolean this_present_success = true && this.isSetSuccess();
40892
      boolean that_present_success = true && that.isSetSuccess();
40893
      if (this_present_success || that_present_success) {
40894
        if (!(this_present_success && that_present_success))
40895
          return false;
40896
        if (!this.success.equals(that.success))
40897
          return false;
40898
      }
40899
 
40900
      boolean this_present_ex = true && this.isSetEx();
40901
      boolean that_present_ex = true && that.isSetEx();
40902
      if (this_present_ex || that_present_ex) {
40903
        if (!(this_present_ex && that_present_ex))
40904
          return false;
40905
        if (!this.ex.equals(that.ex))
40906
          return false;
40907
      }
40908
 
40909
      return true;
40910
    }
40911
 
40912
    @Override
40913
    public int hashCode() {
40914
      return 0;
40915
    }
40916
 
40917
    public int compareTo(getReturnOrder_result other) {
40918
      if (!getClass().equals(other.getClass())) {
40919
        return getClass().getName().compareTo(other.getClass().getName());
40920
      }
40921
 
40922
      int lastComparison = 0;
40923
      getReturnOrder_result typedOther = (getReturnOrder_result)other;
40924
 
3430 rajveer 40925
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2700 chandransh 40926
      if (lastComparison != 0) {
40927
        return lastComparison;
40928
      }
3430 rajveer 40929
      if (isSetSuccess()) {
40930
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
40931
        if (lastComparison != 0) {
40932
          return lastComparison;
40933
        }
2700 chandransh 40934
      }
3430 rajveer 40935
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2700 chandransh 40936
      if (lastComparison != 0) {
40937
        return lastComparison;
40938
      }
3430 rajveer 40939
      if (isSetEx()) {
40940
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
40941
        if (lastComparison != 0) {
40942
          return lastComparison;
40943
        }
2700 chandransh 40944
      }
40945
      return 0;
40946
    }
40947
 
3430 rajveer 40948
    public _Fields fieldForId(int fieldId) {
40949
      return _Fields.findByThriftId(fieldId);
40950
    }
40951
 
40952
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40953
      org.apache.thrift.protocol.TField field;
2700 chandransh 40954
      iprot.readStructBegin();
40955
      while (true)
40956
      {
40957
        field = iprot.readFieldBegin();
3430 rajveer 40958
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2700 chandransh 40959
          break;
40960
        }
3430 rajveer 40961
        switch (field.id) {
40962
          case 0: // SUCCESS
40963
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
40964
              this.success = new ReturnOrder();
40965
              this.success.read(iprot);
40966
            } else { 
40967
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40968
            }
40969
            break;
40970
          case 1: // EX
40971
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
40972
              this.ex = new TransactionServiceException();
40973
              this.ex.read(iprot);
40974
            } else { 
40975
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40976
            }
40977
            break;
40978
          default:
40979
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2700 chandransh 40980
        }
3430 rajveer 40981
        iprot.readFieldEnd();
2700 chandransh 40982
      }
40983
      iprot.readStructEnd();
40984
      validate();
40985
    }
40986
 
3430 rajveer 40987
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2700 chandransh 40988
      oprot.writeStructBegin(STRUCT_DESC);
40989
 
40990
      if (this.isSetSuccess()) {
40991
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40992
        this.success.write(oprot);
40993
        oprot.writeFieldEnd();
40994
      } else if (this.isSetEx()) {
40995
        oprot.writeFieldBegin(EX_FIELD_DESC);
40996
        this.ex.write(oprot);
40997
        oprot.writeFieldEnd();
40998
      }
40999
      oprot.writeFieldStop();
41000
      oprot.writeStructEnd();
41001
    }
41002
 
41003
    @Override
41004
    public String toString() {
41005
      StringBuilder sb = new StringBuilder("getReturnOrder_result(");
41006
      boolean first = true;
41007
 
41008
      sb.append("success:");
41009
      if (this.success == null) {
41010
        sb.append("null");
41011
      } else {
41012
        sb.append(this.success);
41013
      }
41014
      first = false;
41015
      if (!first) sb.append(", ");
41016
      sb.append("ex:");
41017
      if (this.ex == null) {
41018
        sb.append("null");
41019
      } else {
41020
        sb.append(this.ex);
41021
      }
41022
      first = false;
41023
      sb.append(")");
41024
      return sb.toString();
41025
    }
41026
 
3430 rajveer 41027
    public void validate() throws org.apache.thrift.TException {
2700 chandransh 41028
      // check for required fields
41029
    }
41030
 
3430 rajveer 41031
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41032
      try {
41033
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41034
      } catch (org.apache.thrift.TException te) {
41035
        throw new java.io.IOException(te);
41036
      }
41037
    }
41038
 
41039
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41040
      try {
41041
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41042
      } catch (org.apache.thrift.TException te) {
41043
        throw new java.io.IOException(te);
41044
      }
41045
    }
41046
 
2700 chandransh 41047
  }
41048
 
3430 rajveer 41049
  public static class processReturn_args implements org.apache.thrift.TBase<processReturn_args, processReturn_args._Fields>, java.io.Serializable, Cloneable   {
41050
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processReturn_args");
2690 chandransh 41051
 
3430 rajveer 41052
    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 41053
 
3430 rajveer 41054
    private long returnOrderId; // required
2690 chandransh 41055
 
41056
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41057
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 41058
      RETURN_ORDER_ID((short)1, "returnOrderId");
41059
 
41060
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41061
 
41062
      static {
41063
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41064
          byName.put(field.getFieldName(), field);
41065
        }
41066
      }
41067
 
41068
      /**
41069
       * Find the _Fields constant that matches fieldId, or null if its not found.
41070
       */
41071
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41072
        switch(fieldId) {
41073
          case 1: // RETURN_ORDER_ID
41074
            return RETURN_ORDER_ID;
41075
          default:
41076
            return null;
41077
        }
2690 chandransh 41078
      }
41079
 
41080
      /**
41081
       * Find the _Fields constant that matches fieldId, throwing an exception
41082
       * if it is not found.
41083
       */
41084
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41085
        _Fields fields = findByThriftId(fieldId);
41086
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41087
        return fields;
41088
      }
41089
 
41090
      /**
41091
       * Find the _Fields constant that matches name, or null if its not found.
41092
       */
41093
      public static _Fields findByName(String name) {
41094
        return byName.get(name);
41095
      }
41096
 
41097
      private final short _thriftId;
41098
      private final String _fieldName;
41099
 
41100
      _Fields(short thriftId, String fieldName) {
41101
        _thriftId = thriftId;
41102
        _fieldName = fieldName;
41103
      }
41104
 
41105
      public short getThriftFieldId() {
41106
        return _thriftId;
41107
      }
41108
 
41109
      public String getFieldName() {
41110
        return _fieldName;
41111
      }
41112
    }
41113
 
41114
    // isset id assignments
41115
    private static final int __RETURNORDERID_ISSET_ID = 0;
41116
    private BitSet __isset_bit_vector = new BitSet(1);
41117
 
3430 rajveer 41118
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 41119
    static {
3430 rajveer 41120
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41121
      tmpMap.put(_Fields.RETURN_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("returnOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41122
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41123
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41124
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processReturn_args.class, metaDataMap);
2690 chandransh 41125
    }
41126
 
41127
    public processReturn_args() {
41128
    }
41129
 
41130
    public processReturn_args(
41131
      long returnOrderId)
41132
    {
41133
      this();
41134
      this.returnOrderId = returnOrderId;
41135
      setReturnOrderIdIsSet(true);
41136
    }
41137
 
41138
    /**
41139
     * Performs a deep copy on <i>other</i>.
41140
     */
41141
    public processReturn_args(processReturn_args other) {
41142
      __isset_bit_vector.clear();
41143
      __isset_bit_vector.or(other.__isset_bit_vector);
41144
      this.returnOrderId = other.returnOrderId;
41145
    }
41146
 
41147
    public processReturn_args deepCopy() {
41148
      return new processReturn_args(this);
41149
    }
41150
 
3430 rajveer 41151
    @Override
41152
    public void clear() {
41153
      setReturnOrderIdIsSet(false);
41154
      this.returnOrderId = 0;
2690 chandransh 41155
    }
41156
 
41157
    public long getReturnOrderId() {
41158
      return this.returnOrderId;
41159
    }
41160
 
3430 rajveer 41161
    public void setReturnOrderId(long returnOrderId) {
2690 chandransh 41162
      this.returnOrderId = returnOrderId;
41163
      setReturnOrderIdIsSet(true);
41164
    }
41165
 
41166
    public void unsetReturnOrderId() {
41167
      __isset_bit_vector.clear(__RETURNORDERID_ISSET_ID);
41168
    }
41169
 
3430 rajveer 41170
    /** Returns true if field returnOrderId is set (has been assigned a value) and false otherwise */
2690 chandransh 41171
    public boolean isSetReturnOrderId() {
41172
      return __isset_bit_vector.get(__RETURNORDERID_ISSET_ID);
41173
    }
41174
 
41175
    public void setReturnOrderIdIsSet(boolean value) {
41176
      __isset_bit_vector.set(__RETURNORDERID_ISSET_ID, value);
41177
    }
41178
 
41179
    public void setFieldValue(_Fields field, Object value) {
41180
      switch (field) {
41181
      case RETURN_ORDER_ID:
41182
        if (value == null) {
41183
          unsetReturnOrderId();
41184
        } else {
41185
          setReturnOrderId((Long)value);
41186
        }
41187
        break;
41188
 
41189
      }
41190
    }
41191
 
41192
    public Object getFieldValue(_Fields field) {
41193
      switch (field) {
41194
      case RETURN_ORDER_ID:
3430 rajveer 41195
        return Long.valueOf(getReturnOrderId());
2690 chandransh 41196
 
41197
      }
41198
      throw new IllegalStateException();
41199
    }
41200
 
3430 rajveer 41201
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41202
    public boolean isSet(_Fields field) {
41203
      if (field == null) {
41204
        throw new IllegalArgumentException();
41205
      }
2690 chandransh 41206
 
41207
      switch (field) {
41208
      case RETURN_ORDER_ID:
41209
        return isSetReturnOrderId();
41210
      }
41211
      throw new IllegalStateException();
41212
    }
41213
 
41214
    @Override
41215
    public boolean equals(Object that) {
41216
      if (that == null)
41217
        return false;
41218
      if (that instanceof processReturn_args)
41219
        return this.equals((processReturn_args)that);
41220
      return false;
41221
    }
41222
 
41223
    public boolean equals(processReturn_args that) {
41224
      if (that == null)
41225
        return false;
41226
 
41227
      boolean this_present_returnOrderId = true;
41228
      boolean that_present_returnOrderId = true;
41229
      if (this_present_returnOrderId || that_present_returnOrderId) {
41230
        if (!(this_present_returnOrderId && that_present_returnOrderId))
41231
          return false;
41232
        if (this.returnOrderId != that.returnOrderId)
41233
          return false;
41234
      }
41235
 
41236
      return true;
41237
    }
41238
 
41239
    @Override
41240
    public int hashCode() {
41241
      return 0;
41242
    }
41243
 
41244
    public int compareTo(processReturn_args other) {
41245
      if (!getClass().equals(other.getClass())) {
41246
        return getClass().getName().compareTo(other.getClass().getName());
41247
      }
41248
 
41249
      int lastComparison = 0;
41250
      processReturn_args typedOther = (processReturn_args)other;
41251
 
3430 rajveer 41252
      lastComparison = Boolean.valueOf(isSetReturnOrderId()).compareTo(typedOther.isSetReturnOrderId());
2690 chandransh 41253
      if (lastComparison != 0) {
41254
        return lastComparison;
41255
      }
3430 rajveer 41256
      if (isSetReturnOrderId()) {
41257
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnOrderId, typedOther.returnOrderId);
41258
        if (lastComparison != 0) {
41259
          return lastComparison;
41260
        }
2690 chandransh 41261
      }
41262
      return 0;
41263
    }
41264
 
3430 rajveer 41265
    public _Fields fieldForId(int fieldId) {
41266
      return _Fields.findByThriftId(fieldId);
41267
    }
41268
 
41269
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41270
      org.apache.thrift.protocol.TField field;
2690 chandransh 41271
      iprot.readStructBegin();
41272
      while (true)
41273
      {
41274
        field = iprot.readFieldBegin();
3430 rajveer 41275
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 41276
          break;
41277
        }
3430 rajveer 41278
        switch (field.id) {
41279
          case 1: // RETURN_ORDER_ID
41280
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41281
              this.returnOrderId = iprot.readI64();
41282
              setReturnOrderIdIsSet(true);
41283
            } else { 
41284
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41285
            }
41286
            break;
41287
          default:
41288
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 41289
        }
3430 rajveer 41290
        iprot.readFieldEnd();
2690 chandransh 41291
      }
41292
      iprot.readStructEnd();
41293
      validate();
41294
    }
41295
 
3430 rajveer 41296
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 41297
      validate();
41298
 
41299
      oprot.writeStructBegin(STRUCT_DESC);
41300
      oprot.writeFieldBegin(RETURN_ORDER_ID_FIELD_DESC);
41301
      oprot.writeI64(this.returnOrderId);
41302
      oprot.writeFieldEnd();
41303
      oprot.writeFieldStop();
41304
      oprot.writeStructEnd();
41305
    }
41306
 
41307
    @Override
41308
    public String toString() {
41309
      StringBuilder sb = new StringBuilder("processReturn_args(");
41310
      boolean first = true;
41311
 
41312
      sb.append("returnOrderId:");
41313
      sb.append(this.returnOrderId);
41314
      first = false;
41315
      sb.append(")");
41316
      return sb.toString();
41317
    }
41318
 
3430 rajveer 41319
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 41320
      // check for required fields
41321
    }
41322
 
3430 rajveer 41323
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41324
      try {
41325
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41326
      } catch (org.apache.thrift.TException te) {
41327
        throw new java.io.IOException(te);
41328
      }
41329
    }
41330
 
41331
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41332
      try {
41333
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41334
      } catch (org.apache.thrift.TException te) {
41335
        throw new java.io.IOException(te);
41336
      }
41337
    }
41338
 
2690 chandransh 41339
  }
41340
 
3430 rajveer 41341
  public static class processReturn_result implements org.apache.thrift.TBase<processReturn_result, processReturn_result._Fields>, java.io.Serializable, Cloneable   {
41342
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processReturn_result");
2690 chandransh 41343
 
3430 rajveer 41344
    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 41345
 
3430 rajveer 41346
    private TransactionServiceException ex; // required
2690 chandransh 41347
 
41348
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41349
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 41350
      EX((short)1, "ex");
41351
 
41352
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41353
 
41354
      static {
41355
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41356
          byName.put(field.getFieldName(), field);
41357
        }
41358
      }
41359
 
41360
      /**
41361
       * Find the _Fields constant that matches fieldId, or null if its not found.
41362
       */
41363
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41364
        switch(fieldId) {
41365
          case 1: // EX
41366
            return EX;
41367
          default:
41368
            return null;
41369
        }
2690 chandransh 41370
      }
41371
 
41372
      /**
41373
       * Find the _Fields constant that matches fieldId, throwing an exception
41374
       * if it is not found.
41375
       */
41376
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41377
        _Fields fields = findByThriftId(fieldId);
41378
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41379
        return fields;
41380
      }
41381
 
41382
      /**
41383
       * Find the _Fields constant that matches name, or null if its not found.
41384
       */
41385
      public static _Fields findByName(String name) {
41386
        return byName.get(name);
41387
      }
41388
 
41389
      private final short _thriftId;
41390
      private final String _fieldName;
41391
 
41392
      _Fields(short thriftId, String fieldName) {
41393
        _thriftId = thriftId;
41394
        _fieldName = fieldName;
41395
      }
41396
 
41397
      public short getThriftFieldId() {
41398
        return _thriftId;
41399
      }
41400
 
41401
      public String getFieldName() {
41402
        return _fieldName;
41403
      }
41404
    }
41405
 
41406
    // isset id assignments
41407
 
3430 rajveer 41408
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 41409
    static {
3430 rajveer 41410
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41411
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41412
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
41413
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41414
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processReturn_result.class, metaDataMap);
2690 chandransh 41415
    }
41416
 
41417
    public processReturn_result() {
41418
    }
41419
 
41420
    public processReturn_result(
41421
      TransactionServiceException ex)
41422
    {
41423
      this();
41424
      this.ex = ex;
41425
    }
41426
 
41427
    /**
41428
     * Performs a deep copy on <i>other</i>.
41429
     */
41430
    public processReturn_result(processReturn_result other) {
41431
      if (other.isSetEx()) {
41432
        this.ex = new TransactionServiceException(other.ex);
41433
      }
41434
    }
41435
 
41436
    public processReturn_result deepCopy() {
41437
      return new processReturn_result(this);
41438
    }
41439
 
3430 rajveer 41440
    @Override
41441
    public void clear() {
41442
      this.ex = null;
2690 chandransh 41443
    }
41444
 
41445
    public TransactionServiceException getEx() {
41446
      return this.ex;
41447
    }
41448
 
3430 rajveer 41449
    public void setEx(TransactionServiceException ex) {
2690 chandransh 41450
      this.ex = ex;
41451
    }
41452
 
41453
    public void unsetEx() {
41454
      this.ex = null;
41455
    }
41456
 
3430 rajveer 41457
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2690 chandransh 41458
    public boolean isSetEx() {
41459
      return this.ex != null;
41460
    }
41461
 
41462
    public void setExIsSet(boolean value) {
41463
      if (!value) {
41464
        this.ex = null;
41465
      }
41466
    }
41467
 
41468
    public void setFieldValue(_Fields field, Object value) {
41469
      switch (field) {
41470
      case EX:
41471
        if (value == null) {
41472
          unsetEx();
41473
        } else {
41474
          setEx((TransactionServiceException)value);
41475
        }
41476
        break;
41477
 
41478
      }
41479
    }
41480
 
41481
    public Object getFieldValue(_Fields field) {
41482
      switch (field) {
41483
      case EX:
41484
        return getEx();
41485
 
41486
      }
41487
      throw new IllegalStateException();
41488
    }
41489
 
3430 rajveer 41490
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41491
    public boolean isSet(_Fields field) {
41492
      if (field == null) {
41493
        throw new IllegalArgumentException();
41494
      }
2690 chandransh 41495
 
41496
      switch (field) {
41497
      case EX:
41498
        return isSetEx();
41499
      }
41500
      throw new IllegalStateException();
41501
    }
41502
 
41503
    @Override
41504
    public boolean equals(Object that) {
41505
      if (that == null)
41506
        return false;
41507
      if (that instanceof processReturn_result)
41508
        return this.equals((processReturn_result)that);
41509
      return false;
41510
    }
41511
 
41512
    public boolean equals(processReturn_result that) {
41513
      if (that == null)
41514
        return false;
41515
 
41516
      boolean this_present_ex = true && this.isSetEx();
41517
      boolean that_present_ex = true && that.isSetEx();
41518
      if (this_present_ex || that_present_ex) {
41519
        if (!(this_present_ex && that_present_ex))
41520
          return false;
41521
        if (!this.ex.equals(that.ex))
41522
          return false;
41523
      }
41524
 
41525
      return true;
41526
    }
41527
 
41528
    @Override
41529
    public int hashCode() {
41530
      return 0;
41531
    }
41532
 
41533
    public int compareTo(processReturn_result other) {
41534
      if (!getClass().equals(other.getClass())) {
41535
        return getClass().getName().compareTo(other.getClass().getName());
41536
      }
41537
 
41538
      int lastComparison = 0;
41539
      processReturn_result typedOther = (processReturn_result)other;
41540
 
3430 rajveer 41541
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2690 chandransh 41542
      if (lastComparison != 0) {
41543
        return lastComparison;
41544
      }
3430 rajveer 41545
      if (isSetEx()) {
41546
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
41547
        if (lastComparison != 0) {
41548
          return lastComparison;
41549
        }
2690 chandransh 41550
      }
41551
      return 0;
41552
    }
41553
 
3430 rajveer 41554
    public _Fields fieldForId(int fieldId) {
41555
      return _Fields.findByThriftId(fieldId);
41556
    }
41557
 
41558
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41559
      org.apache.thrift.protocol.TField field;
2690 chandransh 41560
      iprot.readStructBegin();
41561
      while (true)
41562
      {
41563
        field = iprot.readFieldBegin();
3430 rajveer 41564
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 41565
          break;
41566
        }
3430 rajveer 41567
        switch (field.id) {
41568
          case 1: // EX
41569
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
41570
              this.ex = new TransactionServiceException();
41571
              this.ex.read(iprot);
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);
2690 chandransh 41578
        }
3430 rajveer 41579
        iprot.readFieldEnd();
2690 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 {
2690 chandransh 41586
      oprot.writeStructBegin(STRUCT_DESC);
41587
 
41588
      if (this.isSetEx()) {
41589
        oprot.writeFieldBegin(EX_FIELD_DESC);
41590
        this.ex.write(oprot);
41591
        oprot.writeFieldEnd();
41592
      }
41593
      oprot.writeFieldStop();
41594
      oprot.writeStructEnd();
41595
    }
41596
 
41597
    @Override
41598
    public String toString() {
41599
      StringBuilder sb = new StringBuilder("processReturn_result(");
41600
      boolean first = true;
41601
 
41602
      sb.append("ex:");
41603
      if (this.ex == null) {
41604
        sb.append("null");
41605
      } else {
41606
        sb.append(this.ex);
41607
      }
41608
      first = false;
41609
      sb.append(")");
41610
      return sb.toString();
41611
    }
41612
 
3430 rajveer 41613
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 41614
      // check for required fields
41615
    }
41616
 
3430 rajveer 41617
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41618
      try {
41619
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41620
      } catch (org.apache.thrift.TException te) {
41621
        throw new java.io.IOException(te);
41622
      }
41623
    }
41624
 
41625
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41626
      try {
41627
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41628
      } catch (org.apache.thrift.TException te) {
41629
        throw new java.io.IOException(te);
41630
      }
41631
    }
41632
 
2690 chandransh 41633
  }
41634
 
3430 rajveer 41635
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
41636
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
2819 chandransh 41637
 
3430 rajveer 41638
    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 41639
 
3430 rajveer 41640
    private long warehouseId; // required
2819 chandransh 41641
 
41642
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41643
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2819 chandransh 41644
      WAREHOUSE_ID((short)1, "warehouseId");
41645
 
41646
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41647
 
41648
      static {
41649
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41650
          byName.put(field.getFieldName(), field);
41651
        }
41652
      }
41653
 
41654
      /**
41655
       * Find the _Fields constant that matches fieldId, or null if its not found.
41656
       */
41657
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41658
        switch(fieldId) {
41659
          case 1: // WAREHOUSE_ID
41660
            return WAREHOUSE_ID;
41661
          default:
41662
            return null;
41663
        }
2819 chandransh 41664
      }
41665
 
41666
      /**
41667
       * Find the _Fields constant that matches fieldId, throwing an exception
41668
       * if it is not found.
41669
       */
41670
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41671
        _Fields fields = findByThriftId(fieldId);
41672
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41673
        return fields;
41674
      }
41675
 
41676
      /**
41677
       * Find the _Fields constant that matches name, or null if its not found.
41678
       */
41679
      public static _Fields findByName(String name) {
41680
        return byName.get(name);
41681
      }
41682
 
41683
      private final short _thriftId;
41684
      private final String _fieldName;
41685
 
41686
      _Fields(short thriftId, String fieldName) {
41687
        _thriftId = thriftId;
41688
        _fieldName = fieldName;
41689
      }
41690
 
41691
      public short getThriftFieldId() {
41692
        return _thriftId;
41693
      }
41694
 
41695
      public String getFieldName() {
41696
        return _fieldName;
41697
      }
41698
    }
41699
 
41700
    // isset id assignments
41701
    private static final int __WAREHOUSEID_ISSET_ID = 0;
41702
    private BitSet __isset_bit_vector = new BitSet(1);
41703
 
3430 rajveer 41704
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2819 chandransh 41705
    static {
3430 rajveer 41706
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41707
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41708
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41709
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41710
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_args.class, metaDataMap);
2819 chandransh 41711
    }
41712
 
41713
    public createPurchaseOrder_args() {
41714
    }
41715
 
41716
    public createPurchaseOrder_args(
41717
      long warehouseId)
41718
    {
41719
      this();
41720
      this.warehouseId = warehouseId;
41721
      setWarehouseIdIsSet(true);
41722
    }
41723
 
41724
    /**
41725
     * Performs a deep copy on <i>other</i>.
41726
     */
41727
    public createPurchaseOrder_args(createPurchaseOrder_args other) {
41728
      __isset_bit_vector.clear();
41729
      __isset_bit_vector.or(other.__isset_bit_vector);
41730
      this.warehouseId = other.warehouseId;
41731
    }
41732
 
41733
    public createPurchaseOrder_args deepCopy() {
41734
      return new createPurchaseOrder_args(this);
41735
    }
41736
 
3430 rajveer 41737
    @Override
41738
    public void clear() {
41739
      setWarehouseIdIsSet(false);
41740
      this.warehouseId = 0;
2819 chandransh 41741
    }
41742
 
41743
    public long getWarehouseId() {
41744
      return this.warehouseId;
41745
    }
41746
 
3430 rajveer 41747
    public void setWarehouseId(long warehouseId) {
2819 chandransh 41748
      this.warehouseId = warehouseId;
41749
      setWarehouseIdIsSet(true);
41750
    }
41751
 
41752
    public void unsetWarehouseId() {
41753
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
41754
    }
41755
 
3430 rajveer 41756
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
2819 chandransh 41757
    public boolean isSetWarehouseId() {
41758
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
41759
    }
41760
 
41761
    public void setWarehouseIdIsSet(boolean value) {
41762
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
41763
    }
41764
 
41765
    public void setFieldValue(_Fields field, Object value) {
41766
      switch (field) {
41767
      case WAREHOUSE_ID:
41768
        if (value == null) {
41769
          unsetWarehouseId();
41770
        } else {
41771
          setWarehouseId((Long)value);
41772
        }
41773
        break;
41774
 
41775
      }
41776
    }
41777
 
41778
    public Object getFieldValue(_Fields field) {
41779
      switch (field) {
41780
      case WAREHOUSE_ID:
3430 rajveer 41781
        return Long.valueOf(getWarehouseId());
2819 chandransh 41782
 
41783
      }
41784
      throw new IllegalStateException();
41785
    }
41786
 
3430 rajveer 41787
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41788
    public boolean isSet(_Fields field) {
41789
      if (field == null) {
41790
        throw new IllegalArgumentException();
41791
      }
2819 chandransh 41792
 
41793
      switch (field) {
41794
      case WAREHOUSE_ID:
41795
        return isSetWarehouseId();
41796
      }
41797
      throw new IllegalStateException();
41798
    }
41799
 
41800
    @Override
41801
    public boolean equals(Object that) {
41802
      if (that == null)
41803
        return false;
41804
      if (that instanceof createPurchaseOrder_args)
41805
        return this.equals((createPurchaseOrder_args)that);
41806
      return false;
41807
    }
41808
 
41809
    public boolean equals(createPurchaseOrder_args that) {
41810
      if (that == null)
41811
        return false;
41812
 
41813
      boolean this_present_warehouseId = true;
41814
      boolean that_present_warehouseId = true;
41815
      if (this_present_warehouseId || that_present_warehouseId) {
41816
        if (!(this_present_warehouseId && that_present_warehouseId))
41817
          return false;
41818
        if (this.warehouseId != that.warehouseId)
41819
          return false;
41820
      }
41821
 
41822
      return true;
41823
    }
41824
 
41825
    @Override
41826
    public int hashCode() {
41827
      return 0;
41828
    }
41829
 
41830
    public int compareTo(createPurchaseOrder_args other) {
41831
      if (!getClass().equals(other.getClass())) {
41832
        return getClass().getName().compareTo(other.getClass().getName());
41833
      }
41834
 
41835
      int lastComparison = 0;
41836
      createPurchaseOrder_args typedOther = (createPurchaseOrder_args)other;
41837
 
3430 rajveer 41838
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
2819 chandransh 41839
      if (lastComparison != 0) {
41840
        return lastComparison;
41841
      }
3430 rajveer 41842
      if (isSetWarehouseId()) {
41843
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
41844
        if (lastComparison != 0) {
41845
          return lastComparison;
41846
        }
2819 chandransh 41847
      }
41848
      return 0;
41849
    }
41850
 
3430 rajveer 41851
    public _Fields fieldForId(int fieldId) {
41852
      return _Fields.findByThriftId(fieldId);
41853
    }
41854
 
41855
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41856
      org.apache.thrift.protocol.TField field;
2819 chandransh 41857
      iprot.readStructBegin();
41858
      while (true)
41859
      {
41860
        field = iprot.readFieldBegin();
3430 rajveer 41861
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2819 chandransh 41862
          break;
41863
        }
3430 rajveer 41864
        switch (field.id) {
41865
          case 1: // WAREHOUSE_ID
41866
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41867
              this.warehouseId = iprot.readI64();
41868
              setWarehouseIdIsSet(true);
41869
            } else { 
41870
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41871
            }
41872
            break;
41873
          default:
41874
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2819 chandransh 41875
        }
3430 rajveer 41876
        iprot.readFieldEnd();
2819 chandransh 41877
      }
41878
      iprot.readStructEnd();
41879
      validate();
41880
    }
41881
 
3430 rajveer 41882
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2819 chandransh 41883
      validate();
41884
 
41885
      oprot.writeStructBegin(STRUCT_DESC);
41886
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
41887
      oprot.writeI64(this.warehouseId);
41888
      oprot.writeFieldEnd();
41889
      oprot.writeFieldStop();
41890
      oprot.writeStructEnd();
41891
    }
41892
 
41893
    @Override
41894
    public String toString() {
41895
      StringBuilder sb = new StringBuilder("createPurchaseOrder_args(");
41896
      boolean first = true;
41897
 
41898
      sb.append("warehouseId:");
41899
      sb.append(this.warehouseId);
41900
      first = false;
41901
      sb.append(")");
41902
      return sb.toString();
41903
    }
41904
 
3430 rajveer 41905
    public void validate() throws org.apache.thrift.TException {
2819 chandransh 41906
      // check for required fields
41907
    }
41908
 
3430 rajveer 41909
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41910
      try {
41911
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41912
      } catch (org.apache.thrift.TException te) {
41913
        throw new java.io.IOException(te);
41914
      }
41915
    }
41916
 
41917
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41918
      try {
41919
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41920
      } catch (org.apache.thrift.TException te) {
41921
        throw new java.io.IOException(te);
41922
      }
41923
    }
41924
 
2819 chandransh 41925
  }
41926
 
3430 rajveer 41927
  public static class createPurchaseOrder_result implements org.apache.thrift.TBase<createPurchaseOrder_result, createPurchaseOrder_result._Fields>, java.io.Serializable, Cloneable   {
41928
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_result");
2819 chandransh 41929
 
3430 rajveer 41930
    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);
41931
    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 41932
 
3430 rajveer 41933
    private long success; // required
41934
    private TransactionServiceException ex; // required
2819 chandransh 41935
 
41936
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41937
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2819 chandransh 41938
      SUCCESS((short)0, "success"),
41939
      EX((short)1, "ex");
41940
 
41941
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41942
 
41943
      static {
41944
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41945
          byName.put(field.getFieldName(), field);
41946
        }
41947
      }
41948
 
41949
      /**
41950
       * Find the _Fields constant that matches fieldId, or null if its not found.
41951
       */
41952
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41953
        switch(fieldId) {
41954
          case 0: // SUCCESS
41955
            return SUCCESS;
41956
          case 1: // EX
41957
            return EX;
41958
          default:
41959
            return null;
41960
        }
2819 chandransh 41961
      }
41962
 
41963
      /**
41964
       * Find the _Fields constant that matches fieldId, throwing an exception
41965
       * if it is not found.
41966
       */
41967
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41968
        _Fields fields = findByThriftId(fieldId);
41969
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41970
        return fields;
41971
      }
41972
 
41973
      /**
41974
       * Find the _Fields constant that matches name, or null if its not found.
41975
       */
41976
      public static _Fields findByName(String name) {
41977
        return byName.get(name);
41978
      }
41979
 
41980
      private final short _thriftId;
41981
      private final String _fieldName;
41982
 
41983
      _Fields(short thriftId, String fieldName) {
41984
        _thriftId = thriftId;
41985
        _fieldName = fieldName;
41986
      }
41987
 
41988
      public short getThriftFieldId() {
41989
        return _thriftId;
41990
      }
41991
 
41992
      public String getFieldName() {
41993
        return _fieldName;
41994
      }
41995
    }
41996
 
41997
    // isset id assignments
41998
    private static final int __SUCCESS_ISSET_ID = 0;
41999
    private BitSet __isset_bit_vector = new BitSet(1);
42000
 
3430 rajveer 42001
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2819 chandransh 42002
    static {
3430 rajveer 42003
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42004
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42005
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42006
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42007
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
42008
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42009
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_result.class, metaDataMap);
2819 chandransh 42010
    }
42011
 
42012
    public createPurchaseOrder_result() {
42013
    }
42014
 
42015
    public createPurchaseOrder_result(
42016
      long success,
42017
      TransactionServiceException ex)
42018
    {
42019
      this();
42020
      this.success = success;
42021
      setSuccessIsSet(true);
42022
      this.ex = ex;
42023
    }
42024
 
42025
    /**
42026
     * Performs a deep copy on <i>other</i>.
42027
     */
42028
    public createPurchaseOrder_result(createPurchaseOrder_result other) {
42029
      __isset_bit_vector.clear();
42030
      __isset_bit_vector.or(other.__isset_bit_vector);
42031
      this.success = other.success;
42032
      if (other.isSetEx()) {
42033
        this.ex = new TransactionServiceException(other.ex);
42034
      }
42035
    }
42036
 
42037
    public createPurchaseOrder_result deepCopy() {
42038
      return new createPurchaseOrder_result(this);
42039
    }
42040
 
3430 rajveer 42041
    @Override
42042
    public void clear() {
42043
      setSuccessIsSet(false);
42044
      this.success = 0;
42045
      this.ex = null;
2819 chandransh 42046
    }
42047
 
42048
    public long getSuccess() {
42049
      return this.success;
42050
    }
42051
 
3430 rajveer 42052
    public void setSuccess(long success) {
2819 chandransh 42053
      this.success = success;
42054
      setSuccessIsSet(true);
42055
    }
42056
 
42057
    public void unsetSuccess() {
42058
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
42059
    }
42060
 
3430 rajveer 42061
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2819 chandransh 42062
    public boolean isSetSuccess() {
42063
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
42064
    }
42065
 
42066
    public void setSuccessIsSet(boolean value) {
42067
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
42068
    }
42069
 
42070
    public TransactionServiceException getEx() {
42071
      return this.ex;
42072
    }
42073
 
3430 rajveer 42074
    public void setEx(TransactionServiceException ex) {
2819 chandransh 42075
      this.ex = ex;
42076
    }
42077
 
42078
    public void unsetEx() {
42079
      this.ex = null;
42080
    }
42081
 
3430 rajveer 42082
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
2819 chandransh 42083
    public boolean isSetEx() {
42084
      return this.ex != null;
42085
    }
42086
 
42087
    public void setExIsSet(boolean value) {
42088
      if (!value) {
42089
        this.ex = null;
42090
      }
42091
    }
42092
 
42093
    public void setFieldValue(_Fields field, Object value) {
42094
      switch (field) {
42095
      case SUCCESS:
42096
        if (value == null) {
42097
          unsetSuccess();
42098
        } else {
42099
          setSuccess((Long)value);
42100
        }
42101
        break;
42102
 
42103
      case EX:
42104
        if (value == null) {
42105
          unsetEx();
42106
        } else {
42107
          setEx((TransactionServiceException)value);
42108
        }
42109
        break;
42110
 
42111
      }
42112
    }
42113
 
42114
    public Object getFieldValue(_Fields field) {
42115
      switch (field) {
42116
      case SUCCESS:
3430 rajveer 42117
        return Long.valueOf(getSuccess());
2819 chandransh 42118
 
42119
      case EX:
42120
        return getEx();
42121
 
42122
      }
42123
      throw new IllegalStateException();
42124
    }
42125
 
3430 rajveer 42126
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42127
    public boolean isSet(_Fields field) {
42128
      if (field == null) {
42129
        throw new IllegalArgumentException();
42130
      }
2819 chandransh 42131
 
42132
      switch (field) {
42133
      case SUCCESS:
42134
        return isSetSuccess();
42135
      case EX:
42136
        return isSetEx();
42137
      }
42138
      throw new IllegalStateException();
42139
    }
42140
 
42141
    @Override
42142
    public boolean equals(Object that) {
42143
      if (that == null)
42144
        return false;
42145
      if (that instanceof createPurchaseOrder_result)
42146
        return this.equals((createPurchaseOrder_result)that);
42147
      return false;
42148
    }
42149
 
42150
    public boolean equals(createPurchaseOrder_result that) {
42151
      if (that == null)
42152
        return false;
42153
 
42154
      boolean this_present_success = true;
42155
      boolean that_present_success = true;
42156
      if (this_present_success || that_present_success) {
42157
        if (!(this_present_success && that_present_success))
42158
          return false;
42159
        if (this.success != that.success)
42160
          return false;
42161
      }
42162
 
42163
      boolean this_present_ex = true && this.isSetEx();
42164
      boolean that_present_ex = true && that.isSetEx();
42165
      if (this_present_ex || that_present_ex) {
42166
        if (!(this_present_ex && that_present_ex))
42167
          return false;
42168
        if (!this.ex.equals(that.ex))
42169
          return false;
42170
      }
42171
 
42172
      return true;
42173
    }
42174
 
42175
    @Override
42176
    public int hashCode() {
42177
      return 0;
42178
    }
42179
 
42180
    public int compareTo(createPurchaseOrder_result other) {
42181
      if (!getClass().equals(other.getClass())) {
42182
        return getClass().getName().compareTo(other.getClass().getName());
42183
      }
42184
 
42185
      int lastComparison = 0;
42186
      createPurchaseOrder_result typedOther = (createPurchaseOrder_result)other;
42187
 
3430 rajveer 42188
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2819 chandransh 42189
      if (lastComparison != 0) {
42190
        return lastComparison;
42191
      }
3430 rajveer 42192
      if (isSetSuccess()) {
42193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
42194
        if (lastComparison != 0) {
42195
          return lastComparison;
42196
        }
2819 chandransh 42197
      }
3430 rajveer 42198
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
2819 chandransh 42199
      if (lastComparison != 0) {
42200
        return lastComparison;
42201
      }
3430 rajveer 42202
      if (isSetEx()) {
42203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
42204
        if (lastComparison != 0) {
42205
          return lastComparison;
42206
        }
2819 chandransh 42207
      }
42208
      return 0;
42209
    }
42210
 
3430 rajveer 42211
    public _Fields fieldForId(int fieldId) {
42212
      return _Fields.findByThriftId(fieldId);
42213
    }
42214
 
42215
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42216
      org.apache.thrift.protocol.TField field;
2819 chandransh 42217
      iprot.readStructBegin();
42218
      while (true)
42219
      {
42220
        field = iprot.readFieldBegin();
3430 rajveer 42221
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2819 chandransh 42222
          break;
42223
        }
3430 rajveer 42224
        switch (field.id) {
42225
          case 0: // SUCCESS
42226
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42227
              this.success = iprot.readI64();
42228
              setSuccessIsSet(true);
42229
            } else { 
42230
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42231
            }
42232
            break;
42233
          case 1: // EX
42234
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
42235
              this.ex = new TransactionServiceException();
42236
              this.ex.read(iprot);
42237
            } else { 
42238
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42239
            }
42240
            break;
42241
          default:
42242
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2819 chandransh 42243
        }
3430 rajveer 42244
        iprot.readFieldEnd();
2819 chandransh 42245
      }
42246
      iprot.readStructEnd();
42247
      validate();
42248
    }
42249
 
3430 rajveer 42250
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2819 chandransh 42251
      oprot.writeStructBegin(STRUCT_DESC);
42252
 
42253
      if (this.isSetSuccess()) {
42254
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42255
        oprot.writeI64(this.success);
42256
        oprot.writeFieldEnd();
42257
      } else if (this.isSetEx()) {
42258
        oprot.writeFieldBegin(EX_FIELD_DESC);
42259
        this.ex.write(oprot);
42260
        oprot.writeFieldEnd();
42261
      }
42262
      oprot.writeFieldStop();
42263
      oprot.writeStructEnd();
42264
    }
42265
 
42266
    @Override
42267
    public String toString() {
42268
      StringBuilder sb = new StringBuilder("createPurchaseOrder_result(");
42269
      boolean first = true;
42270
 
42271
      sb.append("success:");
42272
      sb.append(this.success);
42273
      first = false;
42274
      if (!first) sb.append(", ");
42275
      sb.append("ex:");
42276
      if (this.ex == null) {
42277
        sb.append("null");
42278
      } else {
42279
        sb.append(this.ex);
42280
      }
42281
      first = false;
42282
      sb.append(")");
42283
      return sb.toString();
42284
    }
42285
 
3430 rajveer 42286
    public void validate() throws org.apache.thrift.TException {
2819 chandransh 42287
      // check for required fields
42288
    }
42289
 
3430 rajveer 42290
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42291
      try {
42292
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42293
      } catch (org.apache.thrift.TException te) {
42294
        throw new java.io.IOException(te);
42295
      }
42296
    }
42297
 
42298
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42299
      try {
42300
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42301
      } catch (org.apache.thrift.TException te) {
42302
        throw new java.io.IOException(te);
42303
      }
42304
    }
42305
 
2819 chandransh 42306
  }
42307
 
3451 chandransh 42308
  public static class updateWeight_args implements org.apache.thrift.TBase<updateWeight_args, updateWeight_args._Fields>, java.io.Serializable, Cloneable   {
42309
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateWeight_args");
42310
 
42311
    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);
42312
    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);
42313
 
42314
    private long orderId; // required
42315
    private double weight; // required
42316
 
42317
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42318
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42319
      ORDER_ID((short)1, "orderId"),
42320
      WEIGHT((short)2, "weight");
42321
 
42322
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42323
 
42324
      static {
42325
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42326
          byName.put(field.getFieldName(), field);
42327
        }
42328
      }
42329
 
42330
      /**
42331
       * Find the _Fields constant that matches fieldId, or null if its not found.
42332
       */
42333
      public static _Fields findByThriftId(int fieldId) {
42334
        switch(fieldId) {
42335
          case 1: // ORDER_ID
42336
            return ORDER_ID;
42337
          case 2: // WEIGHT
42338
            return WEIGHT;
42339
          default:
42340
            return null;
42341
        }
42342
      }
42343
 
42344
      /**
42345
       * Find the _Fields constant that matches fieldId, throwing an exception
42346
       * if it is not found.
42347
       */
42348
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42349
        _Fields fields = findByThriftId(fieldId);
42350
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42351
        return fields;
42352
      }
42353
 
42354
      /**
42355
       * Find the _Fields constant that matches name, or null if its not found.
42356
       */
42357
      public static _Fields findByName(String name) {
42358
        return byName.get(name);
42359
      }
42360
 
42361
      private final short _thriftId;
42362
      private final String _fieldName;
42363
 
42364
      _Fields(short thriftId, String fieldName) {
42365
        _thriftId = thriftId;
42366
        _fieldName = fieldName;
42367
      }
42368
 
42369
      public short getThriftFieldId() {
42370
        return _thriftId;
42371
      }
42372
 
42373
      public String getFieldName() {
42374
        return _fieldName;
42375
      }
42376
    }
42377
 
42378
    // isset id assignments
42379
    private static final int __ORDERID_ISSET_ID = 0;
42380
    private static final int __WEIGHT_ISSET_ID = 1;
42381
    private BitSet __isset_bit_vector = new BitSet(2);
42382
 
42383
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42384
    static {
42385
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42386
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42387
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42388
      tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42389
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
42390
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42391
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateWeight_args.class, metaDataMap);
42392
    }
42393
 
42394
    public updateWeight_args() {
42395
    }
42396
 
42397
    public updateWeight_args(
42398
      long orderId,
42399
      double weight)
42400
    {
42401
      this();
42402
      this.orderId = orderId;
42403
      setOrderIdIsSet(true);
42404
      this.weight = weight;
42405
      setWeightIsSet(true);
42406
    }
42407
 
42408
    /**
42409
     * Performs a deep copy on <i>other</i>.
42410
     */
42411
    public updateWeight_args(updateWeight_args other) {
42412
      __isset_bit_vector.clear();
42413
      __isset_bit_vector.or(other.__isset_bit_vector);
42414
      this.orderId = other.orderId;
42415
      this.weight = other.weight;
42416
    }
42417
 
42418
    public updateWeight_args deepCopy() {
42419
      return new updateWeight_args(this);
42420
    }
42421
 
42422
    @Override
42423
    public void clear() {
42424
      setOrderIdIsSet(false);
42425
      this.orderId = 0;
42426
      setWeightIsSet(false);
42427
      this.weight = 0.0;
42428
    }
42429
 
42430
    public long getOrderId() {
42431
      return this.orderId;
42432
    }
42433
 
42434
    public void setOrderId(long orderId) {
42435
      this.orderId = orderId;
42436
      setOrderIdIsSet(true);
42437
    }
42438
 
42439
    public void unsetOrderId() {
42440
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
42441
    }
42442
 
42443
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
42444
    public boolean isSetOrderId() {
42445
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
42446
    }
42447
 
42448
    public void setOrderIdIsSet(boolean value) {
42449
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
42450
    }
42451
 
42452
    public double getWeight() {
42453
      return this.weight;
42454
    }
42455
 
42456
    public void setWeight(double weight) {
42457
      this.weight = weight;
42458
      setWeightIsSet(true);
42459
    }
42460
 
42461
    public void unsetWeight() {
42462
      __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
42463
    }
42464
 
42465
    /** Returns true if field weight is set (has been assigned a value) and false otherwise */
42466
    public boolean isSetWeight() {
42467
      return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
42468
    }
42469
 
42470
    public void setWeightIsSet(boolean value) {
42471
      __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
42472
    }
42473
 
42474
    public void setFieldValue(_Fields field, Object value) {
42475
      switch (field) {
42476
      case ORDER_ID:
42477
        if (value == null) {
42478
          unsetOrderId();
42479
        } else {
42480
          setOrderId((Long)value);
42481
        }
42482
        break;
42483
 
42484
      case WEIGHT:
42485
        if (value == null) {
42486
          unsetWeight();
42487
        } else {
42488
          setWeight((Double)value);
42489
        }
42490
        break;
42491
 
42492
      }
42493
    }
42494
 
42495
    public Object getFieldValue(_Fields field) {
42496
      switch (field) {
42497
      case ORDER_ID:
42498
        return Long.valueOf(getOrderId());
42499
 
42500
      case WEIGHT:
42501
        return Double.valueOf(getWeight());
42502
 
42503
      }
42504
      throw new IllegalStateException();
42505
    }
42506
 
42507
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42508
    public boolean isSet(_Fields field) {
42509
      if (field == null) {
42510
        throw new IllegalArgumentException();
42511
      }
42512
 
42513
      switch (field) {
42514
      case ORDER_ID:
42515
        return isSetOrderId();
42516
      case WEIGHT:
42517
        return isSetWeight();
42518
      }
42519
      throw new IllegalStateException();
42520
    }
42521
 
42522
    @Override
42523
    public boolean equals(Object that) {
42524
      if (that == null)
42525
        return false;
42526
      if (that instanceof updateWeight_args)
42527
        return this.equals((updateWeight_args)that);
42528
      return false;
42529
    }
42530
 
42531
    public boolean equals(updateWeight_args that) {
42532
      if (that == null)
42533
        return false;
42534
 
42535
      boolean this_present_orderId = true;
42536
      boolean that_present_orderId = true;
42537
      if (this_present_orderId || that_present_orderId) {
42538
        if (!(this_present_orderId && that_present_orderId))
42539
          return false;
42540
        if (this.orderId != that.orderId)
42541
          return false;
42542
      }
42543
 
42544
      boolean this_present_weight = true;
42545
      boolean that_present_weight = true;
42546
      if (this_present_weight || that_present_weight) {
42547
        if (!(this_present_weight && that_present_weight))
42548
          return false;
42549
        if (this.weight != that.weight)
42550
          return false;
42551
      }
42552
 
42553
      return true;
42554
    }
42555
 
42556
    @Override
42557
    public int hashCode() {
42558
      return 0;
42559
    }
42560
 
42561
    public int compareTo(updateWeight_args other) {
42562
      if (!getClass().equals(other.getClass())) {
42563
        return getClass().getName().compareTo(other.getClass().getName());
42564
      }
42565
 
42566
      int lastComparison = 0;
42567
      updateWeight_args typedOther = (updateWeight_args)other;
42568
 
42569
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
42570
      if (lastComparison != 0) {
42571
        return lastComparison;
42572
      }
42573
      if (isSetOrderId()) {
42574
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
42575
        if (lastComparison != 0) {
42576
          return lastComparison;
42577
        }
42578
      }
42579
      lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
42580
      if (lastComparison != 0) {
42581
        return lastComparison;
42582
      }
42583
      if (isSetWeight()) {
42584
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
42585
        if (lastComparison != 0) {
42586
          return lastComparison;
42587
        }
42588
      }
42589
      return 0;
42590
    }
42591
 
42592
    public _Fields fieldForId(int fieldId) {
42593
      return _Fields.findByThriftId(fieldId);
42594
    }
42595
 
42596
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42597
      org.apache.thrift.protocol.TField field;
42598
      iprot.readStructBegin();
42599
      while (true)
42600
      {
42601
        field = iprot.readFieldBegin();
42602
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42603
          break;
42604
        }
42605
        switch (field.id) {
42606
          case 1: // ORDER_ID
42607
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42608
              this.orderId = iprot.readI64();
42609
              setOrderIdIsSet(true);
42610
            } else { 
42611
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42612
            }
42613
            break;
42614
          case 2: // WEIGHT
42615
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
42616
              this.weight = iprot.readDouble();
42617
              setWeightIsSet(true);
42618
            } else { 
42619
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42620
            }
42621
            break;
42622
          default:
42623
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42624
        }
42625
        iprot.readFieldEnd();
42626
      }
42627
      iprot.readStructEnd();
42628
      validate();
42629
    }
42630
 
42631
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42632
      validate();
42633
 
42634
      oprot.writeStructBegin(STRUCT_DESC);
42635
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
42636
      oprot.writeI64(this.orderId);
42637
      oprot.writeFieldEnd();
42638
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
42639
      oprot.writeDouble(this.weight);
42640
      oprot.writeFieldEnd();
42641
      oprot.writeFieldStop();
42642
      oprot.writeStructEnd();
42643
    }
42644
 
42645
    @Override
42646
    public String toString() {
42647
      StringBuilder sb = new StringBuilder("updateWeight_args(");
42648
      boolean first = true;
42649
 
42650
      sb.append("orderId:");
42651
      sb.append(this.orderId);
42652
      first = false;
42653
      if (!first) sb.append(", ");
42654
      sb.append("weight:");
42655
      sb.append(this.weight);
42656
      first = false;
42657
      sb.append(")");
42658
      return sb.toString();
42659
    }
42660
 
42661
    public void validate() throws org.apache.thrift.TException {
42662
      // check for required fields
42663
    }
42664
 
42665
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42666
      try {
42667
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42668
      } catch (org.apache.thrift.TException te) {
42669
        throw new java.io.IOException(te);
42670
      }
42671
    }
42672
 
42673
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42674
      try {
42675
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42676
      } catch (org.apache.thrift.TException te) {
42677
        throw new java.io.IOException(te);
42678
      }
42679
    }
42680
 
42681
  }
42682
 
42683
  public static class updateWeight_result implements org.apache.thrift.TBase<updateWeight_result, updateWeight_result._Fields>, java.io.Serializable, Cloneable   {
42684
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateWeight_result");
42685
 
42686
    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);
42687
    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);
42688
 
42689
    private Order success; // required
42690
    private TransactionServiceException ex; // required
42691
 
42692
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42693
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42694
      SUCCESS((short)0, "success"),
42695
      EX((short)1, "ex");
42696
 
42697
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42698
 
42699
      static {
42700
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42701
          byName.put(field.getFieldName(), field);
42702
        }
42703
      }
42704
 
42705
      /**
42706
       * Find the _Fields constant that matches fieldId, or null if its not found.
42707
       */
42708
      public static _Fields findByThriftId(int fieldId) {
42709
        switch(fieldId) {
42710
          case 0: // SUCCESS
42711
            return SUCCESS;
42712
          case 1: // EX
42713
            return EX;
42714
          default:
42715
            return null;
42716
        }
42717
      }
42718
 
42719
      /**
42720
       * Find the _Fields constant that matches fieldId, throwing an exception
42721
       * if it is not found.
42722
       */
42723
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42724
        _Fields fields = findByThriftId(fieldId);
42725
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42726
        return fields;
42727
      }
42728
 
42729
      /**
42730
       * Find the _Fields constant that matches name, or null if its not found.
42731
       */
42732
      public static _Fields findByName(String name) {
42733
        return byName.get(name);
42734
      }
42735
 
42736
      private final short _thriftId;
42737
      private final String _fieldName;
42738
 
42739
      _Fields(short thriftId, String fieldName) {
42740
        _thriftId = thriftId;
42741
        _fieldName = fieldName;
42742
      }
42743
 
42744
      public short getThriftFieldId() {
42745
        return _thriftId;
42746
      }
42747
 
42748
      public String getFieldName() {
42749
        return _fieldName;
42750
      }
42751
    }
42752
 
42753
    // isset id assignments
42754
 
42755
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42756
    static {
42757
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42758
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42759
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
42760
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42761
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
42762
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42763
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateWeight_result.class, metaDataMap);
42764
    }
42765
 
42766
    public updateWeight_result() {
42767
    }
42768
 
42769
    public updateWeight_result(
42770
      Order success,
42771
      TransactionServiceException ex)
42772
    {
42773
      this();
42774
      this.success = success;
42775
      this.ex = ex;
42776
    }
42777
 
42778
    /**
42779
     * Performs a deep copy on <i>other</i>.
42780
     */
42781
    public updateWeight_result(updateWeight_result other) {
42782
      if (other.isSetSuccess()) {
42783
        this.success = new Order(other.success);
42784
      }
42785
      if (other.isSetEx()) {
42786
        this.ex = new TransactionServiceException(other.ex);
42787
      }
42788
    }
42789
 
42790
    public updateWeight_result deepCopy() {
42791
      return new updateWeight_result(this);
42792
    }
42793
 
42794
    @Override
42795
    public void clear() {
42796
      this.success = null;
42797
      this.ex = null;
42798
    }
42799
 
42800
    public Order getSuccess() {
42801
      return this.success;
42802
    }
42803
 
42804
    public void setSuccess(Order success) {
42805
      this.success = success;
42806
    }
42807
 
42808
    public void unsetSuccess() {
42809
      this.success = null;
42810
    }
42811
 
42812
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
42813
    public boolean isSetSuccess() {
42814
      return this.success != null;
42815
    }
42816
 
42817
    public void setSuccessIsSet(boolean value) {
42818
      if (!value) {
42819
        this.success = null;
42820
      }
42821
    }
42822
 
42823
    public TransactionServiceException getEx() {
42824
      return this.ex;
42825
    }
42826
 
42827
    public void setEx(TransactionServiceException ex) {
42828
      this.ex = ex;
42829
    }
42830
 
42831
    public void unsetEx() {
42832
      this.ex = null;
42833
    }
42834
 
42835
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
42836
    public boolean isSetEx() {
42837
      return this.ex != null;
42838
    }
42839
 
42840
    public void setExIsSet(boolean value) {
42841
      if (!value) {
42842
        this.ex = null;
42843
      }
42844
    }
42845
 
42846
    public void setFieldValue(_Fields field, Object value) {
42847
      switch (field) {
42848
      case SUCCESS:
42849
        if (value == null) {
42850
          unsetSuccess();
42851
        } else {
42852
          setSuccess((Order)value);
42853
        }
42854
        break;
42855
 
42856
      case EX:
42857
        if (value == null) {
42858
          unsetEx();
42859
        } else {
42860
          setEx((TransactionServiceException)value);
42861
        }
42862
        break;
42863
 
42864
      }
42865
    }
42866
 
42867
    public Object getFieldValue(_Fields field) {
42868
      switch (field) {
42869
      case SUCCESS:
42870
        return getSuccess();
42871
 
42872
      case EX:
42873
        return getEx();
42874
 
42875
      }
42876
      throw new IllegalStateException();
42877
    }
42878
 
42879
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42880
    public boolean isSet(_Fields field) {
42881
      if (field == null) {
42882
        throw new IllegalArgumentException();
42883
      }
42884
 
42885
      switch (field) {
42886
      case SUCCESS:
42887
        return isSetSuccess();
42888
      case EX:
42889
        return isSetEx();
42890
      }
42891
      throw new IllegalStateException();
42892
    }
42893
 
42894
    @Override
42895
    public boolean equals(Object that) {
42896
      if (that == null)
42897
        return false;
42898
      if (that instanceof updateWeight_result)
42899
        return this.equals((updateWeight_result)that);
42900
      return false;
42901
    }
42902
 
42903
    public boolean equals(updateWeight_result that) {
42904
      if (that == null)
42905
        return false;
42906
 
42907
      boolean this_present_success = true && this.isSetSuccess();
42908
      boolean that_present_success = true && that.isSetSuccess();
42909
      if (this_present_success || that_present_success) {
42910
        if (!(this_present_success && that_present_success))
42911
          return false;
42912
        if (!this.success.equals(that.success))
42913
          return false;
42914
      }
42915
 
42916
      boolean this_present_ex = true && this.isSetEx();
42917
      boolean that_present_ex = true && that.isSetEx();
42918
      if (this_present_ex || that_present_ex) {
42919
        if (!(this_present_ex && that_present_ex))
42920
          return false;
42921
        if (!this.ex.equals(that.ex))
42922
          return false;
42923
      }
42924
 
42925
      return true;
42926
    }
42927
 
42928
    @Override
42929
    public int hashCode() {
42930
      return 0;
42931
    }
42932
 
42933
    public int compareTo(updateWeight_result other) {
42934
      if (!getClass().equals(other.getClass())) {
42935
        return getClass().getName().compareTo(other.getClass().getName());
42936
      }
42937
 
42938
      int lastComparison = 0;
42939
      updateWeight_result typedOther = (updateWeight_result)other;
42940
 
42941
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
42942
      if (lastComparison != 0) {
42943
        return lastComparison;
42944
      }
42945
      if (isSetSuccess()) {
42946
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
42947
        if (lastComparison != 0) {
42948
          return lastComparison;
42949
        }
42950
      }
42951
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
42952
      if (lastComparison != 0) {
42953
        return lastComparison;
42954
      }
42955
      if (isSetEx()) {
42956
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
42957
        if (lastComparison != 0) {
42958
          return lastComparison;
42959
        }
42960
      }
42961
      return 0;
42962
    }
42963
 
42964
    public _Fields fieldForId(int fieldId) {
42965
      return _Fields.findByThriftId(fieldId);
42966
    }
42967
 
42968
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42969
      org.apache.thrift.protocol.TField field;
42970
      iprot.readStructBegin();
42971
      while (true)
42972
      {
42973
        field = iprot.readFieldBegin();
42974
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42975
          break;
42976
        }
42977
        switch (field.id) {
42978
          case 0: // SUCCESS
42979
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
42980
              this.success = new Order();
42981
              this.success.read(iprot);
42982
            } else { 
42983
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42984
            }
42985
            break;
42986
          case 1: // EX
42987
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
42988
              this.ex = new TransactionServiceException();
42989
              this.ex.read(iprot);
42990
            } else { 
42991
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42992
            }
42993
            break;
42994
          default:
42995
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42996
        }
42997
        iprot.readFieldEnd();
42998
      }
42999
      iprot.readStructEnd();
43000
      validate();
43001
    }
43002
 
43003
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43004
      oprot.writeStructBegin(STRUCT_DESC);
43005
 
43006
      if (this.isSetSuccess()) {
43007
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43008
        this.success.write(oprot);
43009
        oprot.writeFieldEnd();
43010
      } else if (this.isSetEx()) {
43011
        oprot.writeFieldBegin(EX_FIELD_DESC);
43012
        this.ex.write(oprot);
43013
        oprot.writeFieldEnd();
43014
      }
43015
      oprot.writeFieldStop();
43016
      oprot.writeStructEnd();
43017
    }
43018
 
43019
    @Override
43020
    public String toString() {
43021
      StringBuilder sb = new StringBuilder("updateWeight_result(");
43022
      boolean first = true;
43023
 
43024
      sb.append("success:");
43025
      if (this.success == null) {
43026
        sb.append("null");
43027
      } else {
43028
        sb.append(this.success);
43029
      }
43030
      first = false;
43031
      if (!first) sb.append(", ");
43032
      sb.append("ex:");
43033
      if (this.ex == null) {
43034
        sb.append("null");
43035
      } else {
43036
        sb.append(this.ex);
43037
      }
43038
      first = false;
43039
      sb.append(")");
43040
      return sb.toString();
43041
    }
43042
 
43043
    public void validate() throws org.apache.thrift.TException {
43044
      // check for required fields
43045
    }
43046
 
43047
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43048
      try {
43049
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43050
      } catch (org.apache.thrift.TException te) {
43051
        throw new java.io.IOException(te);
43052
      }
43053
    }
43054
 
43055
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43056
      try {
43057
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43058
      } catch (org.apache.thrift.TException te) {
43059
        throw new java.io.IOException(te);
43060
      }
43061
    }
43062
 
43063
  }
43064
 
3469 chandransh 43065
  public static class changeItem_args implements org.apache.thrift.TBase<changeItem_args, changeItem_args._Fields>, java.io.Serializable, Cloneable   {
43066
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItem_args");
43067
 
43068
    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);
43069
    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);
43070
 
43071
    private long orderId; // required
43072
    private long itemId; // required
43073
 
43074
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43075
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43076
      ORDER_ID((short)1, "orderId"),
43077
      ITEM_ID((short)2, "itemId");
43078
 
43079
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43080
 
43081
      static {
43082
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43083
          byName.put(field.getFieldName(), field);
43084
        }
43085
      }
43086
 
43087
      /**
43088
       * Find the _Fields constant that matches fieldId, or null if its not found.
43089
       */
43090
      public static _Fields findByThriftId(int fieldId) {
43091
        switch(fieldId) {
43092
          case 1: // ORDER_ID
43093
            return ORDER_ID;
43094
          case 2: // ITEM_ID
43095
            return ITEM_ID;
43096
          default:
43097
            return null;
43098
        }
43099
      }
43100
 
43101
      /**
43102
       * Find the _Fields constant that matches fieldId, throwing an exception
43103
       * if it is not found.
43104
       */
43105
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43106
        _Fields fields = findByThriftId(fieldId);
43107
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43108
        return fields;
43109
      }
43110
 
43111
      /**
43112
       * Find the _Fields constant that matches name, or null if its not found.
43113
       */
43114
      public static _Fields findByName(String name) {
43115
        return byName.get(name);
43116
      }
43117
 
43118
      private final short _thriftId;
43119
      private final String _fieldName;
43120
 
43121
      _Fields(short thriftId, String fieldName) {
43122
        _thriftId = thriftId;
43123
        _fieldName = fieldName;
43124
      }
43125
 
43126
      public short getThriftFieldId() {
43127
        return _thriftId;
43128
      }
43129
 
43130
      public String getFieldName() {
43131
        return _fieldName;
43132
      }
43133
    }
43134
 
43135
    // isset id assignments
43136
    private static final int __ORDERID_ISSET_ID = 0;
43137
    private static final int __ITEMID_ISSET_ID = 1;
43138
    private BitSet __isset_bit_vector = new BitSet(2);
43139
 
43140
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43141
    static {
43142
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43143
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43144
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43145
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43146
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43147
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43148
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItem_args.class, metaDataMap);
43149
    }
43150
 
43151
    public changeItem_args() {
43152
    }
43153
 
43154
    public changeItem_args(
43155
      long orderId,
43156
      long itemId)
43157
    {
43158
      this();
43159
      this.orderId = orderId;
43160
      setOrderIdIsSet(true);
43161
      this.itemId = itemId;
43162
      setItemIdIsSet(true);
43163
    }
43164
 
43165
    /**
43166
     * Performs a deep copy on <i>other</i>.
43167
     */
43168
    public changeItem_args(changeItem_args other) {
43169
      __isset_bit_vector.clear();
43170
      __isset_bit_vector.or(other.__isset_bit_vector);
43171
      this.orderId = other.orderId;
43172
      this.itemId = other.itemId;
43173
    }
43174
 
43175
    public changeItem_args deepCopy() {
43176
      return new changeItem_args(this);
43177
    }
43178
 
43179
    @Override
43180
    public void clear() {
43181
      setOrderIdIsSet(false);
43182
      this.orderId = 0;
43183
      setItemIdIsSet(false);
43184
      this.itemId = 0;
43185
    }
43186
 
43187
    public long getOrderId() {
43188
      return this.orderId;
43189
    }
43190
 
43191
    public void setOrderId(long orderId) {
43192
      this.orderId = orderId;
43193
      setOrderIdIsSet(true);
43194
    }
43195
 
43196
    public void unsetOrderId() {
43197
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
43198
    }
43199
 
43200
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
43201
    public boolean isSetOrderId() {
43202
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
43203
    }
43204
 
43205
    public void setOrderIdIsSet(boolean value) {
43206
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
43207
    }
43208
 
43209
    public long getItemId() {
43210
      return this.itemId;
43211
    }
43212
 
43213
    public void setItemId(long itemId) {
43214
      this.itemId = itemId;
43215
      setItemIdIsSet(true);
43216
    }
43217
 
43218
    public void unsetItemId() {
43219
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
43220
    }
43221
 
43222
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
43223
    public boolean isSetItemId() {
43224
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
43225
    }
43226
 
43227
    public void setItemIdIsSet(boolean value) {
43228
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
43229
    }
43230
 
43231
    public void setFieldValue(_Fields field, Object value) {
43232
      switch (field) {
43233
      case ORDER_ID:
43234
        if (value == null) {
43235
          unsetOrderId();
43236
        } else {
43237
          setOrderId((Long)value);
43238
        }
43239
        break;
43240
 
43241
      case ITEM_ID:
43242
        if (value == null) {
43243
          unsetItemId();
43244
        } else {
43245
          setItemId((Long)value);
43246
        }
43247
        break;
43248
 
43249
      }
43250
    }
43251
 
43252
    public Object getFieldValue(_Fields field) {
43253
      switch (field) {
43254
      case ORDER_ID:
43255
        return Long.valueOf(getOrderId());
43256
 
43257
      case ITEM_ID:
43258
        return Long.valueOf(getItemId());
43259
 
43260
      }
43261
      throw new IllegalStateException();
43262
    }
43263
 
43264
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43265
    public boolean isSet(_Fields field) {
43266
      if (field == null) {
43267
        throw new IllegalArgumentException();
43268
      }
43269
 
43270
      switch (field) {
43271
      case ORDER_ID:
43272
        return isSetOrderId();
43273
      case ITEM_ID:
43274
        return isSetItemId();
43275
      }
43276
      throw new IllegalStateException();
43277
    }
43278
 
43279
    @Override
43280
    public boolean equals(Object that) {
43281
      if (that == null)
43282
        return false;
43283
      if (that instanceof changeItem_args)
43284
        return this.equals((changeItem_args)that);
43285
      return false;
43286
    }
43287
 
43288
    public boolean equals(changeItem_args that) {
43289
      if (that == null)
43290
        return false;
43291
 
43292
      boolean this_present_orderId = true;
43293
      boolean that_present_orderId = true;
43294
      if (this_present_orderId || that_present_orderId) {
43295
        if (!(this_present_orderId && that_present_orderId))
43296
          return false;
43297
        if (this.orderId != that.orderId)
43298
          return false;
43299
      }
43300
 
43301
      boolean this_present_itemId = true;
43302
      boolean that_present_itemId = true;
43303
      if (this_present_itemId || that_present_itemId) {
43304
        if (!(this_present_itemId && that_present_itemId))
43305
          return false;
43306
        if (this.itemId != that.itemId)
43307
          return false;
43308
      }
43309
 
43310
      return true;
43311
    }
43312
 
43313
    @Override
43314
    public int hashCode() {
43315
      return 0;
43316
    }
43317
 
43318
    public int compareTo(changeItem_args other) {
43319
      if (!getClass().equals(other.getClass())) {
43320
        return getClass().getName().compareTo(other.getClass().getName());
43321
      }
43322
 
43323
      int lastComparison = 0;
43324
      changeItem_args typedOther = (changeItem_args)other;
43325
 
43326
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
43327
      if (lastComparison != 0) {
43328
        return lastComparison;
43329
      }
43330
      if (isSetOrderId()) {
43331
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
43332
        if (lastComparison != 0) {
43333
          return lastComparison;
43334
        }
43335
      }
43336
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
43337
      if (lastComparison != 0) {
43338
        return lastComparison;
43339
      }
43340
      if (isSetItemId()) {
43341
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
43342
        if (lastComparison != 0) {
43343
          return lastComparison;
43344
        }
43345
      }
43346
      return 0;
43347
    }
43348
 
43349
    public _Fields fieldForId(int fieldId) {
43350
      return _Fields.findByThriftId(fieldId);
43351
    }
43352
 
43353
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43354
      org.apache.thrift.protocol.TField field;
43355
      iprot.readStructBegin();
43356
      while (true)
43357
      {
43358
        field = iprot.readFieldBegin();
43359
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
43360
          break;
43361
        }
43362
        switch (field.id) {
43363
          case 1: // ORDER_ID
43364
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43365
              this.orderId = iprot.readI64();
43366
              setOrderIdIsSet(true);
43367
            } else { 
43368
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43369
            }
43370
            break;
43371
          case 2: // ITEM_ID
43372
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43373
              this.itemId = iprot.readI64();
43374
              setItemIdIsSet(true);
43375
            } else { 
43376
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43377
            }
43378
            break;
43379
          default:
43380
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43381
        }
43382
        iprot.readFieldEnd();
43383
      }
43384
      iprot.readStructEnd();
43385
      validate();
43386
    }
43387
 
43388
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43389
      validate();
43390
 
43391
      oprot.writeStructBegin(STRUCT_DESC);
43392
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
43393
      oprot.writeI64(this.orderId);
43394
      oprot.writeFieldEnd();
43395
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
43396
      oprot.writeI64(this.itemId);
43397
      oprot.writeFieldEnd();
43398
      oprot.writeFieldStop();
43399
      oprot.writeStructEnd();
43400
    }
43401
 
43402
    @Override
43403
    public String toString() {
43404
      StringBuilder sb = new StringBuilder("changeItem_args(");
43405
      boolean first = true;
43406
 
43407
      sb.append("orderId:");
43408
      sb.append(this.orderId);
43409
      first = false;
43410
      if (!first) sb.append(", ");
43411
      sb.append("itemId:");
43412
      sb.append(this.itemId);
43413
      first = false;
43414
      sb.append(")");
43415
      return sb.toString();
43416
    }
43417
 
43418
    public void validate() throws org.apache.thrift.TException {
43419
      // check for required fields
43420
    }
43421
 
43422
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43423
      try {
43424
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43425
      } catch (org.apache.thrift.TException te) {
43426
        throw new java.io.IOException(te);
43427
      }
43428
    }
43429
 
43430
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43431
      try {
43432
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43433
      } catch (org.apache.thrift.TException te) {
43434
        throw new java.io.IOException(te);
43435
      }
43436
    }
43437
 
43438
  }
43439
 
43440
  public static class changeItem_result implements org.apache.thrift.TBase<changeItem_result, changeItem_result._Fields>, java.io.Serializable, Cloneable   {
43441
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItem_result");
43442
 
43443
    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);
43444
    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);
43445
 
43446
    private Order success; // required
43447
    private TransactionServiceException ex; // required
43448
 
43449
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43450
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43451
      SUCCESS((short)0, "success"),
43452
      EX((short)1, "ex");
43453
 
43454
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43455
 
43456
      static {
43457
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43458
          byName.put(field.getFieldName(), field);
43459
        }
43460
      }
43461
 
43462
      /**
43463
       * Find the _Fields constant that matches fieldId, or null if its not found.
43464
       */
43465
      public static _Fields findByThriftId(int fieldId) {
43466
        switch(fieldId) {
43467
          case 0: // SUCCESS
43468
            return SUCCESS;
43469
          case 1: // EX
43470
            return EX;
43471
          default:
43472
            return null;
43473
        }
43474
      }
43475
 
43476
      /**
43477
       * Find the _Fields constant that matches fieldId, throwing an exception
43478
       * if it is not found.
43479
       */
43480
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43481
        _Fields fields = findByThriftId(fieldId);
43482
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43483
        return fields;
43484
      }
43485
 
43486
      /**
43487
       * Find the _Fields constant that matches name, or null if its not found.
43488
       */
43489
      public static _Fields findByName(String name) {
43490
        return byName.get(name);
43491
      }
43492
 
43493
      private final short _thriftId;
43494
      private final String _fieldName;
43495
 
43496
      _Fields(short thriftId, String fieldName) {
43497
        _thriftId = thriftId;
43498
        _fieldName = fieldName;
43499
      }
43500
 
43501
      public short getThriftFieldId() {
43502
        return _thriftId;
43503
      }
43504
 
43505
      public String getFieldName() {
43506
        return _fieldName;
43507
      }
43508
    }
43509
 
43510
    // isset id assignments
43511
 
43512
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43513
    static {
43514
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43515
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43516
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
43517
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43518
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
43519
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43520
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItem_result.class, metaDataMap);
43521
    }
43522
 
43523
    public changeItem_result() {
43524
    }
43525
 
43526
    public changeItem_result(
43527
      Order success,
43528
      TransactionServiceException ex)
43529
    {
43530
      this();
43531
      this.success = success;
43532
      this.ex = ex;
43533
    }
43534
 
43535
    /**
43536
     * Performs a deep copy on <i>other</i>.
43537
     */
43538
    public changeItem_result(changeItem_result other) {
43539
      if (other.isSetSuccess()) {
43540
        this.success = new Order(other.success);
43541
      }
43542
      if (other.isSetEx()) {
43543
        this.ex = new TransactionServiceException(other.ex);
43544
      }
43545
    }
43546
 
43547
    public changeItem_result deepCopy() {
43548
      return new changeItem_result(this);
43549
    }
43550
 
43551
    @Override
43552
    public void clear() {
43553
      this.success = null;
43554
      this.ex = null;
43555
    }
43556
 
43557
    public Order getSuccess() {
43558
      return this.success;
43559
    }
43560
 
43561
    public void setSuccess(Order success) {
43562
      this.success = success;
43563
    }
43564
 
43565
    public void unsetSuccess() {
43566
      this.success = null;
43567
    }
43568
 
43569
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
43570
    public boolean isSetSuccess() {
43571
      return this.success != null;
43572
    }
43573
 
43574
    public void setSuccessIsSet(boolean value) {
43575
      if (!value) {
43576
        this.success = null;
43577
      }
43578
    }
43579
 
43580
    public TransactionServiceException getEx() {
43581
      return this.ex;
43582
    }
43583
 
43584
    public void setEx(TransactionServiceException ex) {
43585
      this.ex = ex;
43586
    }
43587
 
43588
    public void unsetEx() {
43589
      this.ex = null;
43590
    }
43591
 
43592
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
43593
    public boolean isSetEx() {
43594
      return this.ex != null;
43595
    }
43596
 
43597
    public void setExIsSet(boolean value) {
43598
      if (!value) {
43599
        this.ex = null;
43600
      }
43601
    }
43602
 
43603
    public void setFieldValue(_Fields field, Object value) {
43604
      switch (field) {
43605
      case SUCCESS:
43606
        if (value == null) {
43607
          unsetSuccess();
43608
        } else {
43609
          setSuccess((Order)value);
43610
        }
43611
        break;
43612
 
43613
      case EX:
43614
        if (value == null) {
43615
          unsetEx();
43616
        } else {
43617
          setEx((TransactionServiceException)value);
43618
        }
43619
        break;
43620
 
43621
      }
43622
    }
43623
 
43624
    public Object getFieldValue(_Fields field) {
43625
      switch (field) {
43626
      case SUCCESS:
43627
        return getSuccess();
43628
 
43629
      case EX:
43630
        return getEx();
43631
 
43632
      }
43633
      throw new IllegalStateException();
43634
    }
43635
 
43636
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43637
    public boolean isSet(_Fields field) {
43638
      if (field == null) {
43639
        throw new IllegalArgumentException();
43640
      }
43641
 
43642
      switch (field) {
43643
      case SUCCESS:
43644
        return isSetSuccess();
43645
      case EX:
43646
        return isSetEx();
43647
      }
43648
      throw new IllegalStateException();
43649
    }
43650
 
43651
    @Override
43652
    public boolean equals(Object that) {
43653
      if (that == null)
43654
        return false;
43655
      if (that instanceof changeItem_result)
43656
        return this.equals((changeItem_result)that);
43657
      return false;
43658
    }
43659
 
43660
    public boolean equals(changeItem_result that) {
43661
      if (that == null)
43662
        return false;
43663
 
43664
      boolean this_present_success = true && this.isSetSuccess();
43665
      boolean that_present_success = true && that.isSetSuccess();
43666
      if (this_present_success || that_present_success) {
43667
        if (!(this_present_success && that_present_success))
43668
          return false;
43669
        if (!this.success.equals(that.success))
43670
          return false;
43671
      }
43672
 
43673
      boolean this_present_ex = true && this.isSetEx();
43674
      boolean that_present_ex = true && that.isSetEx();
43675
      if (this_present_ex || that_present_ex) {
43676
        if (!(this_present_ex && that_present_ex))
43677
          return false;
43678
        if (!this.ex.equals(that.ex))
43679
          return false;
43680
      }
43681
 
43682
      return true;
43683
    }
43684
 
43685
    @Override
43686
    public int hashCode() {
43687
      return 0;
43688
    }
43689
 
43690
    public int compareTo(changeItem_result other) {
43691
      if (!getClass().equals(other.getClass())) {
43692
        return getClass().getName().compareTo(other.getClass().getName());
43693
      }
43694
 
43695
      int lastComparison = 0;
43696
      changeItem_result typedOther = (changeItem_result)other;
43697
 
43698
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
43699
      if (lastComparison != 0) {
43700
        return lastComparison;
43701
      }
43702
      if (isSetSuccess()) {
43703
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
43704
        if (lastComparison != 0) {
43705
          return lastComparison;
43706
        }
43707
      }
43708
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
43709
      if (lastComparison != 0) {
43710
        return lastComparison;
43711
      }
43712
      if (isSetEx()) {
43713
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
43714
        if (lastComparison != 0) {
43715
          return lastComparison;
43716
        }
43717
      }
43718
      return 0;
43719
    }
43720
 
43721
    public _Fields fieldForId(int fieldId) {
43722
      return _Fields.findByThriftId(fieldId);
43723
    }
43724
 
43725
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43726
      org.apache.thrift.protocol.TField field;
43727
      iprot.readStructBegin();
43728
      while (true)
43729
      {
43730
        field = iprot.readFieldBegin();
43731
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
43732
          break;
43733
        }
43734
        switch (field.id) {
43735
          case 0: // SUCCESS
43736
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
43737
              this.success = new Order();
43738
              this.success.read(iprot);
43739
            } else { 
43740
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43741
            }
43742
            break;
43743
          case 1: // EX
43744
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
43745
              this.ex = new TransactionServiceException();
43746
              this.ex.read(iprot);
43747
            } else { 
43748
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43749
            }
43750
            break;
43751
          default:
43752
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43753
        }
43754
        iprot.readFieldEnd();
43755
      }
43756
      iprot.readStructEnd();
43757
      validate();
43758
    }
43759
 
43760
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43761
      oprot.writeStructBegin(STRUCT_DESC);
43762
 
43763
      if (this.isSetSuccess()) {
43764
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43765
        this.success.write(oprot);
43766
        oprot.writeFieldEnd();
43767
      } else if (this.isSetEx()) {
43768
        oprot.writeFieldBegin(EX_FIELD_DESC);
43769
        this.ex.write(oprot);
43770
        oprot.writeFieldEnd();
43771
      }
43772
      oprot.writeFieldStop();
43773
      oprot.writeStructEnd();
43774
    }
43775
 
43776
    @Override
43777
    public String toString() {
43778
      StringBuilder sb = new StringBuilder("changeItem_result(");
43779
      boolean first = true;
43780
 
43781
      sb.append("success:");
43782
      if (this.success == null) {
43783
        sb.append("null");
43784
      } else {
43785
        sb.append(this.success);
43786
      }
43787
      first = false;
43788
      if (!first) sb.append(", ");
43789
      sb.append("ex:");
43790
      if (this.ex == null) {
43791
        sb.append("null");
43792
      } else {
43793
        sb.append(this.ex);
43794
      }
43795
      first = false;
43796
      sb.append(")");
43797
      return sb.toString();
43798
    }
43799
 
43800
    public void validate() throws org.apache.thrift.TException {
43801
      // check for required fields
43802
    }
43803
 
43804
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43805
      try {
43806
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43807
      } catch (org.apache.thrift.TException te) {
43808
        throw new java.io.IOException(te);
43809
      }
43810
    }
43811
 
43812
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43813
      try {
43814
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43815
      } catch (org.apache.thrift.TException te) {
43816
        throw new java.io.IOException(te);
43817
      }
43818
    }
43819
 
43820
  }
43821
 
43822
  public static class shiftToWarehouse_args implements org.apache.thrift.TBase<shiftToWarehouse_args, shiftToWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
43823
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shiftToWarehouse_args");
43824
 
43825
    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);
43826
    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);
43827
 
43828
    private long orderId; // required
43829
    private long warehouseId; // required
43830
 
43831
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43832
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43833
      ORDER_ID((short)1, "orderId"),
43834
      WAREHOUSE_ID((short)2, "warehouseId");
43835
 
43836
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43837
 
43838
      static {
43839
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43840
          byName.put(field.getFieldName(), field);
43841
        }
43842
      }
43843
 
43844
      /**
43845
       * Find the _Fields constant that matches fieldId, or null if its not found.
43846
       */
43847
      public static _Fields findByThriftId(int fieldId) {
43848
        switch(fieldId) {
43849
          case 1: // ORDER_ID
43850
            return ORDER_ID;
43851
          case 2: // WAREHOUSE_ID
43852
            return WAREHOUSE_ID;
43853
          default:
43854
            return null;
43855
        }
43856
      }
43857
 
43858
      /**
43859
       * Find the _Fields constant that matches fieldId, throwing an exception
43860
       * if it is not found.
43861
       */
43862
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43863
        _Fields fields = findByThriftId(fieldId);
43864
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43865
        return fields;
43866
      }
43867
 
43868
      /**
43869
       * Find the _Fields constant that matches name, or null if its not found.
43870
       */
43871
      public static _Fields findByName(String name) {
43872
        return byName.get(name);
43873
      }
43874
 
43875
      private final short _thriftId;
43876
      private final String _fieldName;
43877
 
43878
      _Fields(short thriftId, String fieldName) {
43879
        _thriftId = thriftId;
43880
        _fieldName = fieldName;
43881
      }
43882
 
43883
      public short getThriftFieldId() {
43884
        return _thriftId;
43885
      }
43886
 
43887
      public String getFieldName() {
43888
        return _fieldName;
43889
      }
43890
    }
43891
 
43892
    // isset id assignments
43893
    private static final int __ORDERID_ISSET_ID = 0;
43894
    private static final int __WAREHOUSEID_ISSET_ID = 1;
43895
    private BitSet __isset_bit_vector = new BitSet(2);
43896
 
43897
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43898
    static {
43899
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43900
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43901
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43902
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43903
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43904
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43905
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shiftToWarehouse_args.class, metaDataMap);
43906
    }
43907
 
43908
    public shiftToWarehouse_args() {
43909
    }
43910
 
43911
    public shiftToWarehouse_args(
43912
      long orderId,
43913
      long warehouseId)
43914
    {
43915
      this();
43916
      this.orderId = orderId;
43917
      setOrderIdIsSet(true);
43918
      this.warehouseId = warehouseId;
43919
      setWarehouseIdIsSet(true);
43920
    }
43921
 
43922
    /**
43923
     * Performs a deep copy on <i>other</i>.
43924
     */
43925
    public shiftToWarehouse_args(shiftToWarehouse_args other) {
43926
      __isset_bit_vector.clear();
43927
      __isset_bit_vector.or(other.__isset_bit_vector);
43928
      this.orderId = other.orderId;
43929
      this.warehouseId = other.warehouseId;
43930
    }
43931
 
43932
    public shiftToWarehouse_args deepCopy() {
43933
      return new shiftToWarehouse_args(this);
43934
    }
43935
 
43936
    @Override
43937
    public void clear() {
43938
      setOrderIdIsSet(false);
43939
      this.orderId = 0;
43940
      setWarehouseIdIsSet(false);
43941
      this.warehouseId = 0;
43942
    }
43943
 
43944
    public long getOrderId() {
43945
      return this.orderId;
43946
    }
43947
 
43948
    public void setOrderId(long orderId) {
43949
      this.orderId = orderId;
43950
      setOrderIdIsSet(true);
43951
    }
43952
 
43953
    public void unsetOrderId() {
43954
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
43955
    }
43956
 
43957
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
43958
    public boolean isSetOrderId() {
43959
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
43960
    }
43961
 
43962
    public void setOrderIdIsSet(boolean value) {
43963
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
43964
    }
43965
 
43966
    public long getWarehouseId() {
43967
      return this.warehouseId;
43968
    }
43969
 
43970
    public void setWarehouseId(long warehouseId) {
43971
      this.warehouseId = warehouseId;
43972
      setWarehouseIdIsSet(true);
43973
    }
43974
 
43975
    public void unsetWarehouseId() {
43976
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
43977
    }
43978
 
43979
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
43980
    public boolean isSetWarehouseId() {
43981
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
43982
    }
43983
 
43984
    public void setWarehouseIdIsSet(boolean value) {
43985
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
43986
    }
43987
 
43988
    public void setFieldValue(_Fields field, Object value) {
43989
      switch (field) {
43990
      case ORDER_ID:
43991
        if (value == null) {
43992
          unsetOrderId();
43993
        } else {
43994
          setOrderId((Long)value);
43995
        }
43996
        break;
43997
 
43998
      case WAREHOUSE_ID:
43999
        if (value == null) {
44000
          unsetWarehouseId();
44001
        } else {
44002
          setWarehouseId((Long)value);
44003
        }
44004
        break;
44005
 
44006
      }
44007
    }
44008
 
44009
    public Object getFieldValue(_Fields field) {
44010
      switch (field) {
44011
      case ORDER_ID:
44012
        return Long.valueOf(getOrderId());
44013
 
44014
      case WAREHOUSE_ID:
44015
        return Long.valueOf(getWarehouseId());
44016
 
44017
      }
44018
      throw new IllegalStateException();
44019
    }
44020
 
44021
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44022
    public boolean isSet(_Fields field) {
44023
      if (field == null) {
44024
        throw new IllegalArgumentException();
44025
      }
44026
 
44027
      switch (field) {
44028
      case ORDER_ID:
44029
        return isSetOrderId();
44030
      case WAREHOUSE_ID:
44031
        return isSetWarehouseId();
44032
      }
44033
      throw new IllegalStateException();
44034
    }
44035
 
44036
    @Override
44037
    public boolean equals(Object that) {
44038
      if (that == null)
44039
        return false;
44040
      if (that instanceof shiftToWarehouse_args)
44041
        return this.equals((shiftToWarehouse_args)that);
44042
      return false;
44043
    }
44044
 
44045
    public boolean equals(shiftToWarehouse_args that) {
44046
      if (that == null)
44047
        return false;
44048
 
44049
      boolean this_present_orderId = true;
44050
      boolean that_present_orderId = true;
44051
      if (this_present_orderId || that_present_orderId) {
44052
        if (!(this_present_orderId && that_present_orderId))
44053
          return false;
44054
        if (this.orderId != that.orderId)
44055
          return false;
44056
      }
44057
 
44058
      boolean this_present_warehouseId = true;
44059
      boolean that_present_warehouseId = true;
44060
      if (this_present_warehouseId || that_present_warehouseId) {
44061
        if (!(this_present_warehouseId && that_present_warehouseId))
44062
          return false;
44063
        if (this.warehouseId != that.warehouseId)
44064
          return false;
44065
      }
44066
 
44067
      return true;
44068
    }
44069
 
44070
    @Override
44071
    public int hashCode() {
44072
      return 0;
44073
    }
44074
 
44075
    public int compareTo(shiftToWarehouse_args other) {
44076
      if (!getClass().equals(other.getClass())) {
44077
        return getClass().getName().compareTo(other.getClass().getName());
44078
      }
44079
 
44080
      int lastComparison = 0;
44081
      shiftToWarehouse_args typedOther = (shiftToWarehouse_args)other;
44082
 
44083
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
44084
      if (lastComparison != 0) {
44085
        return lastComparison;
44086
      }
44087
      if (isSetOrderId()) {
44088
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
44089
        if (lastComparison != 0) {
44090
          return lastComparison;
44091
        }
44092
      }
44093
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
44094
      if (lastComparison != 0) {
44095
        return lastComparison;
44096
      }
44097
      if (isSetWarehouseId()) {
44098
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
44099
        if (lastComparison != 0) {
44100
          return lastComparison;
44101
        }
44102
      }
44103
      return 0;
44104
    }
44105
 
44106
    public _Fields fieldForId(int fieldId) {
44107
      return _Fields.findByThriftId(fieldId);
44108
    }
44109
 
44110
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44111
      org.apache.thrift.protocol.TField field;
44112
      iprot.readStructBegin();
44113
      while (true)
44114
      {
44115
        field = iprot.readFieldBegin();
44116
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44117
          break;
44118
        }
44119
        switch (field.id) {
44120
          case 1: // ORDER_ID
44121
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44122
              this.orderId = iprot.readI64();
44123
              setOrderIdIsSet(true);
44124
            } else { 
44125
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44126
            }
44127
            break;
44128
          case 2: // WAREHOUSE_ID
44129
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44130
              this.warehouseId = iprot.readI64();
44131
              setWarehouseIdIsSet(true);
44132
            } else { 
44133
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44134
            }
44135
            break;
44136
          default:
44137
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44138
        }
44139
        iprot.readFieldEnd();
44140
      }
44141
      iprot.readStructEnd();
44142
      validate();
44143
    }
44144
 
44145
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44146
      validate();
44147
 
44148
      oprot.writeStructBegin(STRUCT_DESC);
44149
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
44150
      oprot.writeI64(this.orderId);
44151
      oprot.writeFieldEnd();
44152
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
44153
      oprot.writeI64(this.warehouseId);
44154
      oprot.writeFieldEnd();
44155
      oprot.writeFieldStop();
44156
      oprot.writeStructEnd();
44157
    }
44158
 
44159
    @Override
44160
    public String toString() {
44161
      StringBuilder sb = new StringBuilder("shiftToWarehouse_args(");
44162
      boolean first = true;
44163
 
44164
      sb.append("orderId:");
44165
      sb.append(this.orderId);
44166
      first = false;
44167
      if (!first) sb.append(", ");
44168
      sb.append("warehouseId:");
44169
      sb.append(this.warehouseId);
44170
      first = false;
44171
      sb.append(")");
44172
      return sb.toString();
44173
    }
44174
 
44175
    public void validate() throws org.apache.thrift.TException {
44176
      // check for required fields
44177
    }
44178
 
44179
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44180
      try {
44181
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44182
      } catch (org.apache.thrift.TException te) {
44183
        throw new java.io.IOException(te);
44184
      }
44185
    }
44186
 
44187
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44188
      try {
44189
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44190
      } catch (org.apache.thrift.TException te) {
44191
        throw new java.io.IOException(te);
44192
      }
44193
    }
44194
 
44195
  }
44196
 
44197
  public static class shiftToWarehouse_result implements org.apache.thrift.TBase<shiftToWarehouse_result, shiftToWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
44198
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shiftToWarehouse_result");
44199
 
44200
    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);
44201
    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);
44202
 
44203
    private Order success; // required
44204
    private TransactionServiceException ex; // required
44205
 
44206
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44207
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44208
      SUCCESS((short)0, "success"),
44209
      EX((short)1, "ex");
44210
 
44211
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44212
 
44213
      static {
44214
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44215
          byName.put(field.getFieldName(), field);
44216
        }
44217
      }
44218
 
44219
      /**
44220
       * Find the _Fields constant that matches fieldId, or null if its not found.
44221
       */
44222
      public static _Fields findByThriftId(int fieldId) {
44223
        switch(fieldId) {
44224
          case 0: // SUCCESS
44225
            return SUCCESS;
44226
          case 1: // EX
44227
            return EX;
44228
          default:
44229
            return null;
44230
        }
44231
      }
44232
 
44233
      /**
44234
       * Find the _Fields constant that matches fieldId, throwing an exception
44235
       * if it is not found.
44236
       */
44237
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44238
        _Fields fields = findByThriftId(fieldId);
44239
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44240
        return fields;
44241
      }
44242
 
44243
      /**
44244
       * Find the _Fields constant that matches name, or null if its not found.
44245
       */
44246
      public static _Fields findByName(String name) {
44247
        return byName.get(name);
44248
      }
44249
 
44250
      private final short _thriftId;
44251
      private final String _fieldName;
44252
 
44253
      _Fields(short thriftId, String fieldName) {
44254
        _thriftId = thriftId;
44255
        _fieldName = fieldName;
44256
      }
44257
 
44258
      public short getThriftFieldId() {
44259
        return _thriftId;
44260
      }
44261
 
44262
      public String getFieldName() {
44263
        return _fieldName;
44264
      }
44265
    }
44266
 
44267
    // isset id assignments
44268
 
44269
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44270
    static {
44271
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44272
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44273
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
44274
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44275
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
44276
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44277
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shiftToWarehouse_result.class, metaDataMap);
44278
    }
44279
 
44280
    public shiftToWarehouse_result() {
44281
    }
44282
 
44283
    public shiftToWarehouse_result(
44284
      Order success,
44285
      TransactionServiceException ex)
44286
    {
44287
      this();
44288
      this.success = success;
44289
      this.ex = ex;
44290
    }
44291
 
44292
    /**
44293
     * Performs a deep copy on <i>other</i>.
44294
     */
44295
    public shiftToWarehouse_result(shiftToWarehouse_result other) {
44296
      if (other.isSetSuccess()) {
44297
        this.success = new Order(other.success);
44298
      }
44299
      if (other.isSetEx()) {
44300
        this.ex = new TransactionServiceException(other.ex);
44301
      }
44302
    }
44303
 
44304
    public shiftToWarehouse_result deepCopy() {
44305
      return new shiftToWarehouse_result(this);
44306
    }
44307
 
44308
    @Override
44309
    public void clear() {
44310
      this.success = null;
44311
      this.ex = null;
44312
    }
44313
 
44314
    public Order getSuccess() {
44315
      return this.success;
44316
    }
44317
 
44318
    public void setSuccess(Order success) {
44319
      this.success = success;
44320
    }
44321
 
44322
    public void unsetSuccess() {
44323
      this.success = null;
44324
    }
44325
 
44326
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
44327
    public boolean isSetSuccess() {
44328
      return this.success != null;
44329
    }
44330
 
44331
    public void setSuccessIsSet(boolean value) {
44332
      if (!value) {
44333
        this.success = null;
44334
      }
44335
    }
44336
 
44337
    public TransactionServiceException getEx() {
44338
      return this.ex;
44339
    }
44340
 
44341
    public void setEx(TransactionServiceException ex) {
44342
      this.ex = ex;
44343
    }
44344
 
44345
    public void unsetEx() {
44346
      this.ex = null;
44347
    }
44348
 
44349
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
44350
    public boolean isSetEx() {
44351
      return this.ex != null;
44352
    }
44353
 
44354
    public void setExIsSet(boolean value) {
44355
      if (!value) {
44356
        this.ex = null;
44357
      }
44358
    }
44359
 
44360
    public void setFieldValue(_Fields field, Object value) {
44361
      switch (field) {
44362
      case SUCCESS:
44363
        if (value == null) {
44364
          unsetSuccess();
44365
        } else {
44366
          setSuccess((Order)value);
44367
        }
44368
        break;
44369
 
44370
      case EX:
44371
        if (value == null) {
44372
          unsetEx();
44373
        } else {
44374
          setEx((TransactionServiceException)value);
44375
        }
44376
        break;
44377
 
44378
      }
44379
    }
44380
 
44381
    public Object getFieldValue(_Fields field) {
44382
      switch (field) {
44383
      case SUCCESS:
44384
        return getSuccess();
44385
 
44386
      case EX:
44387
        return getEx();
44388
 
44389
      }
44390
      throw new IllegalStateException();
44391
    }
44392
 
44393
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44394
    public boolean isSet(_Fields field) {
44395
      if (field == null) {
44396
        throw new IllegalArgumentException();
44397
      }
44398
 
44399
      switch (field) {
44400
      case SUCCESS:
44401
        return isSetSuccess();
44402
      case EX:
44403
        return isSetEx();
44404
      }
44405
      throw new IllegalStateException();
44406
    }
44407
 
44408
    @Override
44409
    public boolean equals(Object that) {
44410
      if (that == null)
44411
        return false;
44412
      if (that instanceof shiftToWarehouse_result)
44413
        return this.equals((shiftToWarehouse_result)that);
44414
      return false;
44415
    }
44416
 
44417
    public boolean equals(shiftToWarehouse_result that) {
44418
      if (that == null)
44419
        return false;
44420
 
44421
      boolean this_present_success = true && this.isSetSuccess();
44422
      boolean that_present_success = true && that.isSetSuccess();
44423
      if (this_present_success || that_present_success) {
44424
        if (!(this_present_success && that_present_success))
44425
          return false;
44426
        if (!this.success.equals(that.success))
44427
          return false;
44428
      }
44429
 
44430
      boolean this_present_ex = true && this.isSetEx();
44431
      boolean that_present_ex = true && that.isSetEx();
44432
      if (this_present_ex || that_present_ex) {
44433
        if (!(this_present_ex && that_present_ex))
44434
          return false;
44435
        if (!this.ex.equals(that.ex))
44436
          return false;
44437
      }
44438
 
44439
      return true;
44440
    }
44441
 
44442
    @Override
44443
    public int hashCode() {
44444
      return 0;
44445
    }
44446
 
44447
    public int compareTo(shiftToWarehouse_result other) {
44448
      if (!getClass().equals(other.getClass())) {
44449
        return getClass().getName().compareTo(other.getClass().getName());
44450
      }
44451
 
44452
      int lastComparison = 0;
44453
      shiftToWarehouse_result typedOther = (shiftToWarehouse_result)other;
44454
 
44455
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
44456
      if (lastComparison != 0) {
44457
        return lastComparison;
44458
      }
44459
      if (isSetSuccess()) {
44460
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
44461
        if (lastComparison != 0) {
44462
          return lastComparison;
44463
        }
44464
      }
44465
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
44466
      if (lastComparison != 0) {
44467
        return lastComparison;
44468
      }
44469
      if (isSetEx()) {
44470
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
44471
        if (lastComparison != 0) {
44472
          return lastComparison;
44473
        }
44474
      }
44475
      return 0;
44476
    }
44477
 
44478
    public _Fields fieldForId(int fieldId) {
44479
      return _Fields.findByThriftId(fieldId);
44480
    }
44481
 
44482
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44483
      org.apache.thrift.protocol.TField field;
44484
      iprot.readStructBegin();
44485
      while (true)
44486
      {
44487
        field = iprot.readFieldBegin();
44488
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44489
          break;
44490
        }
44491
        switch (field.id) {
44492
          case 0: // SUCCESS
44493
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
44494
              this.success = new Order();
44495
              this.success.read(iprot);
44496
            } else { 
44497
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44498
            }
44499
            break;
44500
          case 1: // EX
44501
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
44502
              this.ex = new TransactionServiceException();
44503
              this.ex.read(iprot);
44504
            } else { 
44505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44506
            }
44507
            break;
44508
          default:
44509
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44510
        }
44511
        iprot.readFieldEnd();
44512
      }
44513
      iprot.readStructEnd();
44514
      validate();
44515
    }
44516
 
44517
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44518
      oprot.writeStructBegin(STRUCT_DESC);
44519
 
44520
      if (this.isSetSuccess()) {
44521
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
44522
        this.success.write(oprot);
44523
        oprot.writeFieldEnd();
44524
      } else if (this.isSetEx()) {
44525
        oprot.writeFieldBegin(EX_FIELD_DESC);
44526
        this.ex.write(oprot);
44527
        oprot.writeFieldEnd();
44528
      }
44529
      oprot.writeFieldStop();
44530
      oprot.writeStructEnd();
44531
    }
44532
 
44533
    @Override
44534
    public String toString() {
44535
      StringBuilder sb = new StringBuilder("shiftToWarehouse_result(");
44536
      boolean first = true;
44537
 
44538
      sb.append("success:");
44539
      if (this.success == null) {
44540
        sb.append("null");
44541
      } else {
44542
        sb.append(this.success);
44543
      }
44544
      first = false;
44545
      if (!first) sb.append(", ");
44546
      sb.append("ex:");
44547
      if (this.ex == null) {
44548
        sb.append("null");
44549
      } else {
44550
        sb.append(this.ex);
44551
      }
44552
      first = false;
44553
      sb.append(")");
44554
      return sb.toString();
44555
    }
44556
 
44557
    public void validate() throws org.apache.thrift.TException {
44558
      // check for required fields
44559
    }
44560
 
44561
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44562
      try {
44563
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44564
      } catch (org.apache.thrift.TException te) {
44565
        throw new java.io.IOException(te);
44566
      }
44567
    }
44568
 
44569
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44570
      try {
44571
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44572
      } catch (org.apache.thrift.TException te) {
44573
        throw new java.io.IOException(te);
44574
      }
44575
    }
44576
 
44577
  }
44578
 
68 ashish 44579
}